3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.14
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-x use the X Window System"
21 **--with-motif use Motif/Lesstif"
23 **--with-shared create shared libraries"
25 **--with-optimise create optimised code"
27 **--with-debug_flag create code with WXDEBUG define set to 1"
29 **--with-debug_info create code with debuging information"
31 **--with-debug_gdb create code with extra GDB debuging information"
33 **--with-mem_traing create code with memory tracing"
35 **--with-dmalloc use dmalloc memory debug library (www.letters.com/dmalloc/)"
37 **--with-profile create code with profiling information"
39 **--with_apple_ieee use the Apple IEEE codec"
41 **--with-threads for enabling threads"
43 **--with-dynlib to compile wxLibrary class"
45 **--without-zlib don't use zlib for LZW comression"
47 **--without-libpng don't use libpng (PNG image format)"
49 **--without-libjpeg don't use libjpeg (JPEG image format)"
51 **--with-odbc use iODBC and wxODBC classes"
53 **--with-timedate use wxTime and wxDate classes"
55 **--with-intl use internationalization system"
57 **--with-config use wxConfig class"
59 **--with-streams use wxStream etc classes"
61 **--with-serial use class serialization"
63 **--with-sockets use wxSocket etc classes"
65 **--with-afmfonts use Adobe Font Metric Font table"
67 **--with-PS-normalized use normalized PS fonts"
69 **--with-postscript use wxPostscriptDC device context"
71 **--with-unicode compile wxString with Unicode support"
73 **--with-wcsrtombs use wcsrtombs instead of (buggy in GNU libc5) wcstombs"
75 **--with-wxresources use wxWindows's resources"
77 **--with-prologio use Prolog IO library"
79 **--with-rpc use Prolog's remote procedure calls"
81 **--with-ipc use interprocess communication (wxSocket etc.)"
83 **--with-resources use X resources for saving information"
85 **--with-clipboard use wxClipboard classes"
87 **--with-tooltips use tooltips"
89 **--with-dnd use Drag'n'Drop classes"
91 **--with-mdi use multiple document interface architecture"
93 **--with-docview use document view architecture"
95 **--with-printarch use printing architecture"
97 **--with-help use help (using external browser at present)"
99 **--with-gtk-prefix=PFX Prefix where GTK is installed"
101 **--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed"
103 # Initialize some variables set by options.
104 # The variables have the same names as the options, with
105 # dashes changed to underlines.
107 cache_file
=.
/config.cache
116 program_transform_name
=s
,x
,x
,
124 bindir
='${exec_prefix}/bin'
125 sbindir
='${exec_prefix}/sbin'
126 libexecdir
='${exec_prefix}/libexec'
127 datadir
='${prefix}/share'
128 sysconfdir
='${prefix}/etc'
129 sharedstatedir
='${prefix}/com'
130 localstatedir
='${prefix}/var'
131 libdir
='${exec_prefix}/lib'
132 includedir
='${prefix}/include'
133 oldincludedir
='/usr/include'
134 infodir
='${prefix}/info'
135 mandir
='${prefix}/man'
137 # Initialize some other variables.
140 SHELL
=${CONFIG_SHELL-/bin/sh}
141 # Maximum number of lines to put in a shell here document.
148 # If the previous option needs an argument, assign it.
149 if test -n "$ac_prev"; then
150 eval "$ac_prev=\$ac_option"
156 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
160 # Accept the important Cygnus configure options, so we can diagnose typos.
164 -bindir | --bindir | --bindi | --bind | --bin | --bi)
166 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
167 bindir
="$ac_optarg" ;;
169 -build | --build | --buil | --bui | --bu)
171 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
172 build
="$ac_optarg" ;;
174 -cache-file | --cache-file | --cache-fil | --cache-fi \
175 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
176 ac_prev
=cache_file
;;
177 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
178 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
179 cache_file
="$ac_optarg" ;;
181 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
183 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
185 datadir
="$ac_optarg" ;;
187 -disable-* | --disable-*)
188 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
189 # Reject names that are not valid shell variable names.
190 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
191 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
193 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
194 eval "enable_${ac_feature}=no" ;;
196 -enable-* | --enable-*)
197 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
198 # Reject names that are not valid shell variable names.
199 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
200 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
202 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
207 eval "enable_${ac_feature}='$ac_optarg'" ;;
209 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
210 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
211 | --exec | --exe | --ex)
212 ac_prev
=exec_prefix
;;
213 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
214 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
215 | --exec=* | --exe=* | --ex=*)
216 exec_prefix
="$ac_optarg" ;;
218 -gas | --gas | --ga | --g)
219 # Obsolete; use --with-gas.
222 -help | --help | --hel | --he)
223 # Omit some internal or obsolete options to make the list less imposing.
224 # This message is too long to be a string in the A/UX 3.1 sh.
226 Usage: configure [options] [host]
227 Options: [defaults in brackets after descriptions]
229 --cache-file=FILE cache test results in FILE
230 --help print this message
231 --no-create do not create output files
232 --quiet, --silent do not print \`checking...' messages
233 --version print the version of autoconf that created configure
234 Directory and file names:
235 --prefix=PREFIX install architecture-independent files in PREFIX
237 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
239 --bindir=DIR user executables in DIR [EPREFIX/bin]
240 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
241 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
242 --datadir=DIR read-only architecture-independent data in DIR
244 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
245 --sharedstatedir=DIR modifiable architecture-independent data in DIR
247 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
248 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
249 --includedir=DIR C header files in DIR [PREFIX/include]
250 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
251 --infodir=DIR info documentation in DIR [PREFIX/info]
252 --mandir=DIR man documentation in DIR [PREFIX/man]
253 --srcdir=DIR find the sources in DIR [configure dir or ..]
254 --program-prefix=PREFIX prepend PREFIX to installed program names
255 --program-suffix=SUFFIX append SUFFIX to installed program names
256 --program-transform-name=PROGRAM
257 run sed PROGRAM on installed program names
261 --build=BUILD configure for building on BUILD [BUILD=HOST]
262 --host=HOST configure for HOST [guessed]
263 --target=TARGET configure for TARGET [TARGET=HOST]
264 Features and packages:
265 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
266 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
267 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
268 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
269 --x-includes=DIR X include files are in DIR
270 --x-libraries=DIR X library files are in DIR
272 if test -n "$ac_help"; then
273 echo "--enable and --with options recognized:$ac_help"
277 -host | --host | --hos | --ho)
279 -host=* | --host=* | --hos=* | --ho=*)
282 -includedir | --includedir | --includedi | --included | --include \
283 | --includ | --inclu | --incl | --inc)
284 ac_prev
=includedir
;;
285 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
286 | --includ=* | --inclu=* | --incl=* | --inc=*)
287 includedir
="$ac_optarg" ;;
289 -infodir | --infodir | --infodi | --infod | --info | --inf)
291 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
292 infodir
="$ac_optarg" ;;
294 -libdir | --libdir | --libdi | --libd)
296 -libdir=* | --libdir=* | --libdi=* | --libd=*)
297 libdir
="$ac_optarg" ;;
299 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
300 | --libexe | --libex | --libe)
301 ac_prev
=libexecdir
;;
302 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
303 | --libexe=* | --libex=* | --libe=*)
304 libexecdir
="$ac_optarg" ;;
306 -localstatedir | --localstatedir | --localstatedi | --localstated \
307 | --localstate | --localstat | --localsta | --localst \
308 | --locals | --local | --loca | --loc | --lo)
309 ac_prev
=localstatedir
;;
310 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
311 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
312 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
313 localstatedir
="$ac_optarg" ;;
315 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
317 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
318 mandir
="$ac_optarg" ;;
321 # Obsolete; use --without-fp.
324 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
328 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
329 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
332 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
333 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
334 | --oldin | --oldi | --old | --ol | --o)
335 ac_prev
=oldincludedir
;;
336 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
337 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
338 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
339 oldincludedir
="$ac_optarg" ;;
341 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
343 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
344 prefix
="$ac_optarg" ;;
346 -program-prefix | --program-prefix | --program-prefi | --program-pref \
347 | --program-pre | --program-pr | --program-p)
348 ac_prev
=program_prefix
;;
349 -program-prefix=* | --program-prefix=* | --program-prefi=* \
350 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
351 program_prefix
="$ac_optarg" ;;
353 -program-suffix | --program-suffix | --program-suffi | --program-suff \
354 | --program-suf | --program-su | --program-s)
355 ac_prev
=program_suffix
;;
356 -program-suffix=* | --program-suffix=* | --program-suffi=* \
357 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
358 program_suffix
="$ac_optarg" ;;
360 -program-transform-name | --program-transform-name \
361 | --program-transform-nam | --program-transform-na \
362 | --program-transform-n | --program-transform- \
363 | --program-transform | --program-transfor \
364 | --program-transfo | --program-transf \
365 | --program-trans | --program-tran \
366 | --progr-tra | --program-tr | --program-t)
367 ac_prev
=program_transform_name
;;
368 -program-transform-name=* | --program-transform-name=* \
369 | --program-transform-nam=* | --program-transform-na=* \
370 | --program-transform-n=* | --program-transform-=* \
371 | --program-transform=* | --program-transfor=* \
372 | --program-transfo=* | --program-transf=* \
373 | --program-trans=* | --program-tran=* \
374 | --progr-tra=* | --program-tr=* | --program-t=*)
375 program_transform_name
="$ac_optarg" ;;
377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
378 | -silent | --silent | --silen | --sile | --sil)
381 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
383 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
385 sbindir
="$ac_optarg" ;;
387 -sharedstatedir | --sharedstatedir | --sharedstatedi \
388 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
389 | --sharedst | --shareds | --shared | --share | --shar \
391 ac_prev
=sharedstatedir
;;
392 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
393 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
394 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
396 sharedstatedir
="$ac_optarg" ;;
398 -site | --site | --sit)
400 -site=* | --site=* | --sit=*)
403 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
405 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
406 srcdir
="$ac_optarg" ;;
408 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
409 | --syscon | --sysco | --sysc | --sys | --sy)
410 ac_prev
=sysconfdir
;;
411 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
412 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
413 sysconfdir
="$ac_optarg" ;;
415 -target | --target | --targe | --targ | --tar | --ta | --t)
417 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
418 target
="$ac_optarg" ;;
420 -v | -verbose | --verbose | --verbos | --verbo | --verb)
423 -version | --version | --versio | --versi | --vers)
424 echo "configure generated by autoconf version 2.14"
428 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
429 # Reject names that are not valid shell variable names.
430 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
431 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
433 ac_package
=`echo $ac_package| sed 's/-/_/g'`
438 eval "with_${ac_package}='$ac_optarg'" ;;
440 -without-* | --without-*)
441 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
442 # Reject names that are not valid shell variable names.
443 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
444 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
446 ac_package
=`echo $ac_package| sed 's/-/_/g'`
447 eval "with_${ac_package}=no" ;;
450 # Obsolete; use --with-x.
453 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
454 | --x-incl | --x-inc | --x-in | --x-i)
455 ac_prev
=x_includes
;;
456 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
457 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
458 x_includes
="$ac_optarg" ;;
460 -x-libraries | --x-libraries | --x-librarie | --x-librari \
461 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
462 ac_prev
=x_libraries
;;
463 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
464 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
465 x_libraries
="$ac_optarg" ;;
467 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
471 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
472 echo "configure: warning: $ac_option: invalid host type" 1>&2
474 if test "x$nonopt" != xNONE
; then
475 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
483 if test -n "$ac_prev"; then
484 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
487 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
489 # File descriptor usage:
492 # 2 errors and warnings
493 # 3 some systems may open it to /dev/tty
494 # 4 used on the Kubota Titan
495 # 6 checking for... messages and results
496 # 5 compiler messages saved in config.log
497 if test "$silent" = yes; then
505 This file contains any messages produced by compilers while
506 running configure, to aid debugging if configure makes a mistake.
509 # Strip out --no-create and --no-recursion so they do not pile up.
510 # Also quote any args containing shell metacharacters.
515 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
516 | --no-cr | --no-c) ;;
517 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
518 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
519 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
520 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
521 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
526 # Only set these to C if already set. These must not be set unconditionally
527 # because not all systems understand e.g. LANG=C (notably SCO).
528 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
529 # Non-C LC_CTYPE values break the ctype check.
530 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
531 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
532 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
533 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
535 # confdefs.h avoids OS command line length limits that DEFS can exceed.
536 rm -rf conftest
* confdefs.h
537 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
540 # A filename unique to this package, relative to the directory that
541 # configure is in, which we can look for to find out if srcdir is correct.
542 ac_unique_file
=configure.
in
544 # Find the source files, if location was not specified.
545 if test -z "$srcdir"; then
546 ac_srcdir_defaulted
=yes
547 # Try the directory containing this script, then its parent.
549 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
550 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
552 if test ! -r $srcdir/$ac_unique_file; then
556 ac_srcdir_defaulted
=no
558 if test ! -r $srcdir/$ac_unique_file; then
559 if test "$ac_srcdir_defaulted" = yes; then
560 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
562 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
565 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
567 # Prefer explicitly selected file to automatically selected ones.
568 if test -z "$CONFIG_SITE"; then
569 if test "x$prefix" != xNONE
; then
570 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
572 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
575 for ac_site_file
in $CONFIG_SITE; do
576 if test -r "$ac_site_file"; then
577 echo "loading site script $ac_site_file"
582 if test -r "$cache_file"; then
583 echo "loading cache $cache_file"
586 echo "creating cache $cache_file"
591 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
592 ac_cpp
='$CPP $CPPFLAGS'
593 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
594 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
595 cross_compiling
=$ac_cv_prog_cc_cross
599 if (echo "testing\c"; echo 1,2,3) | grep c
>/dev
/null
; then
600 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
601 if (echo -n testing
; echo 1,2,3) | sed s
/-n/xn
/ | grep xn
>/dev
/null
; then
608 ac_n
= ac_c
='\c' ac_t
=
616 if test "x$OS" = "x"; then
618 { echo "configure: error: "The system variable OS has not been
set"
619 "please
set is everytime befor compiling on this system
"
620 "A good example
for this system would be
:"
621 "setenv OSTYPE
$UNAME for csh as a SHELL
"
622 "EXPORT OSTYPE
=$UNAME for sh as SHELL
"
623 "please
set this and restart again.
"
633 /usr/Motif-1.2/include \
634 /usr/Motif-2.1/include \
636 /usr/include/Motif1.2 \
637 /opt/xpm/include/X11 \
639 /usr/Motif1.2/include \
655 /usr/local/X11R6/include \
656 /usr/local/X11R5/include \
657 /usr/local/X11R4/include \
659 /usr/local/include/X11R6 \
660 /usr/local/include/X11R5 \
661 /usr/local/include/X11R4 \
665 /usr/local/X11/include \
666 /usr/local/include/X11 \
670 /usr/XFree86/include/X11 \
677 /usr/unsupported/include \
678 /usr/athena/include \
679 /usr/local/x11r5/include \
680 /usr/lpp/Xamples/include \
682 /usr/local/include/gtk \
683 /usr/local/include/qt \
686 /usr/openwin/include \
687 /usr/openwin/share/include \
690 SEARCH_LIB
="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
694 # Extract the first word of "gcc", so it can be a program name with args.
695 set dummy gcc
; ac_word
=$2
696 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
697 echo "configure:698: checking for $ac_word" >&5
698 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
699 echo $ac_n "(cached) $ac_c" 1>&6
701 if test -n "$CC"; then
702 ac_cv_prog_CC
="$CC" # Let the user override the test.
704 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
706 for ac_dir
in $ac_dummy; do
707 test -z "$ac_dir" && ac_dir
=.
708 if test -f $ac_dir/$ac_word; then
717 if test -n "$CC"; then
718 echo "$ac_t""$CC" 1>&6
720 echo "$ac_t""no" 1>&6
723 if test -z "$CC"; then
724 # Extract the first word of "cc", so it can be a program name with args.
725 set dummy cc
; ac_word
=$2
726 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
727 echo "configure:728: checking for $ac_word" >&5
728 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
731 if test -n "$CC"; then
732 ac_cv_prog_CC
="$CC" # Let the user override the test.
734 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
737 for ac_dir
in $ac_dummy; do
738 test -z "$ac_dir" && ac_dir
=.
739 if test -f $ac_dir/$ac_word; then
740 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
749 if test $ac_prog_rejected = yes; then
750 # We found a bogon in the path, so make sure we never use it.
751 set dummy
$ac_cv_prog_CC
753 if test $# -gt 0; then
754 # We chose a different compiler from the bogus one.
755 # However, it has the same basename, so the bogon will be chosen
756 # first if we set CC to just the basename; use the full file name.
758 set dummy
"$ac_dir/$ac_word" "$@"
766 if test -n "$CC"; then
767 echo "$ac_t""$CC" 1>&6
769 echo "$ac_t""no" 1>&6
772 if test -z "$CC"; then
775 # Extract the first word of "cl", so it can be a program name with args.
776 set dummy cl
; ac_word
=$2
777 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
778 echo "configure:779: checking for $ac_word" >&5
779 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
780 echo $ac_n "(cached) $ac_c" 1>&6
782 if test -n "$CC"; then
783 ac_cv_prog_CC
="$CC" # Let the user override the test.
785 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
787 for ac_dir
in $ac_dummy; do
788 test -z "$ac_dir" && ac_dir
=.
789 if test -f $ac_dir/$ac_word; then
798 if test -n "$CC"; then
799 echo "$ac_t""$CC" 1>&6
801 echo "$ac_t""no" 1>&6
806 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
809 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
810 echo "configure:811: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
813 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
814 ac_cpp
='$CPP $CPPFLAGS'
815 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
816 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
817 cross_compiling
=$ac_cv_prog_cc_cross
819 cat > conftest.
$ac_ext << EOF
821 #line 822 "configure"
822 #include "confdefs.h"
826 if { (eval echo configure
:827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
827 ac_cv_prog_cc_works
=yes
828 # If we can't run a trivial program, we are probably using a cross compiler.
829 if (.
/conftest
; exit) 2>/dev
/null
; then
830 ac_cv_prog_cc_cross
=no
832 ac_cv_prog_cc_cross
=yes
835 echo "configure: failed program was:" >&5
836 cat conftest.
$ac_ext >&5
837 ac_cv_prog_cc_works
=no
841 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
842 ac_cpp
='$CPP $CPPFLAGS'
843 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
844 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
845 cross_compiling
=$ac_cv_prog_cc_cross
847 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
848 if test $ac_cv_prog_cc_works = no
; then
849 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
851 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
852 echo "configure:853: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
853 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
854 cross_compiling
=$ac_cv_prog_cc_cross
856 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
857 echo "configure:858: checking whether we are using GNU C" >&5
858 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
859 echo $ac_n "(cached) $ac_c" 1>&6
861 cat > conftest.c
<<EOF
866 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:867: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
873 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
875 if test $ac_cv_prog_gcc = yes; then
881 ac_test_CFLAGS
="${CFLAGS+set}"
882 ac_save_CFLAGS
="$CFLAGS"
884 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
885 echo "configure:886: checking whether ${CC-cc} accepts -g" >&5
886 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
887 echo $ac_n "(cached) $ac_c" 1>&6
889 echo 'void f(){}' > conftest.c
890 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
899 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
900 if test "$ac_test_CFLAGS" = set; then
901 CFLAGS
="$ac_save_CFLAGS"
902 elif test $ac_cv_prog_cc_g = yes; then
903 if test "$GCC" = yes; then
909 if test "$GCC" = yes; then
917 CFLAGS
=`echo "$CFLAGS" | sed 's/-g//g'`
919 if test "x$CC" != xcc
; then
920 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6
921 echo "configure:922: checking whether $CC and cc understand -c and -o together" >&5
923 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6
924 echo "configure:925: checking whether cc understands -c and -o together" >&5
926 set dummy
$CC; ac_cc
="`echo $2 |
927 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`"
928 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then
929 echo $ac_n "(cached) $ac_c" 1>&6
931 echo 'foo(){}' > conftest.c
932 # Make sure it works both with $CC and with simple cc.
933 # We do the test twice because some compilers refuse to overwrite an
934 # existing .o file with -o, though they will create one.
935 ac_try
='${CC-cc} -c conftest.c -o conftest.o 1>&5'
936 if { (eval echo configure
:937: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
937 test -f conftest.o
&& { (eval echo configure
:938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
939 eval ac_cv_prog_cc_
${ac_cc}_c_o
=yes
940 if test "x$CC" != xcc
; then
941 # Test first that cc exists at all.
942 if { ac_try
='cc -c conftest.c 1>&5'; { (eval echo configure
:943: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then
943 ac_try
='cc -c conftest.c -o conftest.o 1>&5'
944 if { (eval echo configure
:945: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&
945 test -f conftest.o
&& { (eval echo configure
:946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };
950 # cc exists but doesn't like -o.
951 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
956 eval ac_cv_prog_cc_
${ac_cc}_c_o
=no
961 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then
962 echo "$ac_t""yes" 1>&6
964 echo "$ac_t""no" 1>&6
965 cat >> confdefs.h
<<\EOF
966 #define NO_MINUS_C_MINUS_O 1
971 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
972 echo "configure:973: checking how to run the C preprocessor" >&5
973 # On Suns, sometimes $CPP names a directory.
974 if test -n "$CPP" && test -d "$CPP"; then
977 if test -z "$CPP"; then
978 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
979 echo $ac_n "(cached) $ac_c" 1>&6
981 # This must be in double quotes, not single quotes, because CPP may get
982 # substituted into the Makefile and "${CC-cc}" will confuse make.
984 # On the NeXT, cc -E runs the code through the compiler's parser,
985 # not just through cpp.
986 cat > conftest.
$ac_ext <<EOF
987 #line 988 "configure"
988 #include "confdefs.h"
992 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
993 { (eval echo configure
:994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
994 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
995 if test -z "$ac_err"; then
999 echo "configure: failed program was:" >&5
1000 cat conftest.
$ac_ext >&5
1002 CPP
="${CC-cc} -E -traditional-cpp"
1003 cat > conftest.
$ac_ext <<EOF
1004 #line 1005 "configure"
1005 #include "confdefs.h"
1009 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1010 { (eval echo configure
:1011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1011 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1012 if test -z "$ac_err"; then
1016 echo "configure: failed program was:" >&5
1017 cat conftest.
$ac_ext >&5
1019 CPP
="${CC-cc} -nologo -E"
1020 cat > conftest.
$ac_ext <<EOF
1021 #line 1022 "configure"
1022 #include "confdefs.h"
1026 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1027 { (eval echo configure
:1028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1028 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1029 if test -z "$ac_err"; then
1033 echo "configure: failed program was:" >&5
1034 cat conftest.
$ac_ext >&5
1043 ac_cv_prog_CPP
="$CPP"
1045 CPP
="$ac_cv_prog_CPP"
1047 ac_cv_prog_CPP
="$CPP"
1049 echo "$ac_t""$CPP" 1>&6
1051 if test $ac_cv_prog_gcc = yes; then
1052 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1053 echo "configure:1054: checking whether ${CC-cc} needs -traditional" >&5
1054 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1055 echo $ac_n "(cached) $ac_c" 1>&6
1057 ac_pattern
="Autoconf.*'x'"
1058 cat > conftest.
$ac_ext <<EOF
1059 #line 1060 "configure"
1060 #include "confdefs.h"
1064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1065 egrep "$ac_pattern" >/dev
/null
2>&1; then
1067 ac_cv_prog_gcc_traditional
=yes
1070 ac_cv_prog_gcc_traditional
=no
1075 if test $ac_cv_prog_gcc_traditional = no
; then
1076 cat > conftest.
$ac_ext <<EOF
1077 #line 1078 "configure"
1078 #include "confdefs.h"
1082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1083 egrep "$ac_pattern" >/dev
/null
2>&1; then
1085 ac_cv_prog_gcc_traditional
=yes
1092 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1093 if test $ac_cv_prog_gcc_traditional = yes; then
1094 CC
="$CC -traditional"
1101 for ac_prog
in $CCC c
++ g
++ gcc CC cxx cc
++ cl
1103 # Extract the first word of "$ac_prog", so it can be a program name with args.
1104 set dummy
$ac_prog; ac_word
=$2
1105 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1106 echo "configure:1107: checking for $ac_word" >&5
1107 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1108 echo $ac_n "(cached) $ac_c" 1>&6
1110 if test -n "$CXX"; then
1111 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
1113 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1115 for ac_dir
in $ac_dummy; do
1116 test -z "$ac_dir" && ac_dir
=.
1117 if test -f $ac_dir/$ac_word; then
1118 ac_cv_prog_CXX
="$ac_prog"
1125 CXX
="$ac_cv_prog_CXX"
1126 if test -n "$CXX"; then
1127 echo "$ac_t""$CXX" 1>&6
1129 echo "$ac_t""no" 1>&6
1132 test -n "$CXX" && break
1134 test -n "$CXX" || CXX
="gcc"
1137 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1138 echo "configure:1139: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1141 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1142 ac_cpp
='$CXXCPP $CPPFLAGS'
1143 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1144 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1145 cross_compiling
=$ac_cv_prog_cxx_cross
1147 cat > conftest.
$ac_ext << EOF
1149 #line 1150 "configure"
1150 #include "confdefs.h"
1152 int main(){return(0);}
1154 if { (eval echo configure
:1155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1155 ac_cv_prog_cxx_works
=yes
1156 # If we can't run a trivial program, we are probably using a cross compiler.
1157 if (.
/conftest
; exit) 2>/dev
/null
; then
1158 ac_cv_prog_cxx_cross
=no
1160 ac_cv_prog_cxx_cross
=yes
1163 echo "configure: failed program was:" >&5
1164 cat conftest.
$ac_ext >&5
1165 ac_cv_prog_cxx_works
=no
1169 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1170 ac_cpp
='$CPP $CPPFLAGS'
1171 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1172 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1173 cross_compiling
=$ac_cv_prog_cc_cross
1175 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1176 if test $ac_cv_prog_cxx_works = no
; then
1177 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1179 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1180 echo "configure:1181: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1181 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1182 cross_compiling
=$ac_cv_prog_cxx_cross
1184 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether we are using GNU C++" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1189 cat > conftest.C
<<EOF
1194 if { ac_try
='${CXX-g++} -E conftest.C'; { (eval echo configure
:1195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev
/null
2>&1; then
1201 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1203 if test $ac_cv_prog_gxx = yes; then
1209 ac_test_CXXFLAGS
="${CXXFLAGS+set}"
1210 ac_save_CXXFLAGS
="$CXXFLAGS"
1212 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether ${CXX-g++} accepts -g" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1217 echo 'void f(){}' > conftest.cc
1218 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1219 ac_cv_prog_cxx_g
=yes
1227 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1228 if test "$ac_test_CXXFLAGS" = set; then
1229 CXXFLAGS
="$ac_save_CXXFLAGS"
1230 elif test $ac_cv_prog_cxx_g = yes; then
1231 if test "$GXX" = yes; then
1237 if test "$GXX" = yes; then
1244 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
1245 echo "configure:1246: checking how to run the C++ preprocessor" >&5
1246 if test -z "$CXXCPP"; then
1247 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1251 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1252 ac_cpp
='$CXXCPP $CPPFLAGS'
1253 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1254 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1255 cross_compiling
=$ac_cv_prog_cxx_cross
1256 CXXCPP
="${CXX-g++} -E"
1257 cat > conftest.
$ac_ext <<EOF
1258 #line 1259 "configure"
1259 #include "confdefs.h"
1262 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1263 { (eval echo configure
:1264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1264 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1265 if test -z "$ac_err"; then
1269 echo "configure: failed program was:" >&5
1270 cat conftest.
$ac_ext >&5
1275 ac_cv_prog_CXXCPP
="$CXXCPP"
1277 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1278 ac_cpp
='$CPP $CPPFLAGS'
1279 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1280 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1281 cross_compiling
=$ac_cv_prog_cc_cross
1284 CXXCPP
="$ac_cv_prog_CXXCPP"
1285 echo "$ac_t""$CXXCPP" 1>&6
1288 CXXFLAGS
=`echo "$CXXFLAGS" | sed 's/-g//g'`
1291 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1292 ac_cpp
='$CPP $CPPFLAGS'
1293 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1294 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1295 cross_compiling
=$ac_cv_prog_cc_cross
1298 # Extract the first word of "ranlib", so it can be a program name with args.
1299 set dummy ranlib
; ac_word
=$2
1300 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1301 echo "configure:1302: checking for $ac_word" >&5
1302 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1303 echo $ac_n "(cached) $ac_c" 1>&6
1305 if test -n "$RANLIB"; then
1306 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
1308 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1310 for ac_dir
in $ac_dummy; do
1311 test -z "$ac_dir" && ac_dir
=.
1312 if test -f $ac_dir/$ac_word; then
1313 ac_cv_prog_RANLIB
="ranlib"
1318 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
1321 RANLIB
="$ac_cv_prog_RANLIB"
1322 if test -n "$RANLIB"; then
1323 echo "$ac_t""$RANLIB" 1>&6
1325 echo "$ac_t""no" 1>&6
1329 # Extract the first word of "ar", so it can be a program name with args.
1330 set dummy
ar; ac_word
=$2
1331 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1332 echo "configure:1333: checking for $ac_word" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1336 if test -n "$AR"; then
1337 ac_cv_prog_AR
="$AR" # Let the user override the test.
1339 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1341 for ac_dir
in $ac_dummy; do
1342 test -z "$ac_dir" && ac_dir
=.
1343 if test -f $ac_dir/$ac_word; then
1349 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR
="ar"
1353 if test -n "$AR"; then
1354 echo "$ac_t""$AR" 1>&6
1356 echo "$ac_t""no" 1>&6
1361 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
1362 if test -f $ac_dir/install-sh; then
1364 ac_install_sh
="$ac_aux_dir/install-sh -c"
1366 elif test -f $ac_dir/install.sh
; then
1368 ac_install_sh
="$ac_aux_dir/install.sh -c"
1372 if test -z "$ac_aux_dir"; then
1373 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1375 ac_config_guess
=$ac_aux_dir/config.guess
1376 ac_config_sub
=$ac_aux_dir/config.sub
1377 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
1379 # Find a good install program. We prefer a C program (faster),
1380 # so one script is as good as another. But avoid the broken or
1381 # incompatible versions:
1382 # SysV /etc/install, /usr/sbin/install
1383 # SunOS /usr/etc/install
1384 # IRIX /sbin/install
1386 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1387 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1388 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1389 # ./install, which can be erroneously created by make from ./install.sh.
1390 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1391 echo "configure:1392: checking for a BSD compatible install" >&5
1392 if test -z "$INSTALL"; then
1393 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1394 echo $ac_n "(cached) $ac_c" 1>&6
1396 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
1397 for ac_dir
in $PATH; do
1398 # Account for people who put trailing slashes in PATH elements.
1400 /|.
/|.
//|/etc
/*|/usr
/sbin
/*|/usr
/etc
/*|/sbin
/*|/usr
/afsws
/bin
/*|/usr
/ucb
/*) ;;
1402 # OSF1 and SCO ODT 3.0 have their own names for install.
1403 # Don't use installbsd from OSF since it installs stuff as root
1405 for ac_prog
in ginstall scoinst
install; do
1406 if test -f $ac_dir/$ac_prog; then
1407 if test $ac_prog = install &&
1408 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
1409 # AIX install. It has an incompatible calling convention.
1412 ac_cv_path_install
="$ac_dir/$ac_prog -c"
1423 if test "${ac_cv_path_install+set}" = set; then
1424 INSTALL
="$ac_cv_path_install"
1426 # As a last resort, use the slow shell script. We don't cache a
1427 # path for INSTALL within a source directory, because that will
1428 # break other packages using the cache if that directory is
1429 # removed, or if the path is relative.
1430 INSTALL
="$ac_install_sh"
1433 echo "$ac_t""$INSTALL" 1>&6
1435 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1436 # It thinks the first close brace ends the variable substitution.
1437 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
1439 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
1441 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
1444 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1445 echo "configure:1446: checking whether ln -s works" >&5
1446 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1447 echo $ac_n "(cached) $ac_c" 1>&6
1450 if ln -s X conftestdata
2>/dev
/null
1453 ac_cv_prog_LN_S
="ln -s"
1458 LN_S
="$ac_cv_prog_LN_S"
1459 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1460 echo "$ac_t""yes" 1>&6
1462 echo "$ac_t""no" 1>&6
1466 for ac_prog
in mawk gawk nawk
awk
1468 # Extract the first word of "$ac_prog", so it can be a program name with args.
1469 set dummy
$ac_prog; ac_word
=$2
1470 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1471 echo "configure:1472: checking for $ac_word" >&5
1472 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then
1473 echo $ac_n "(cached) $ac_c" 1>&6
1475 if test -n "$AWK"; then
1476 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1478 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1480 for ac_dir
in $ac_dummy; do
1481 test -z "$ac_dir" && ac_dir
=.
1482 if test -f $ac_dir/$ac_word; then
1483 ac_cv_prog_AWK
="$ac_prog"
1490 AWK
="$ac_cv_prog_AWK"
1491 if test -n "$AWK"; then
1492 echo "$ac_t""$AWK" 1>&6
1494 echo "$ac_t""no" 1>&6
1497 test -n "$AWK" && break
1501 # Extract the first word of "strip", so it can be a program name with args.
1502 set dummy strip
; ac_word
=$2
1503 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1504 echo "configure:1505: checking for $ac_word" >&5
1505 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1506 echo $ac_n "(cached) $ac_c" 1>&6
1508 if test -n "$STRIP"; then
1509 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
1511 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1513 for ac_dir
in $ac_dummy; do
1514 test -z "$ac_dir" && ac_dir
=.
1515 if test -f $ac_dir/$ac_word; then
1516 ac_cv_prog_STRIP
="strip"
1521 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP
="true"
1524 STRIP
="$ac_cv_prog_STRIP"
1525 if test -n "$STRIP"; then
1526 echo "$ac_t""$STRIP" 1>&6
1528 echo "$ac_t""no" 1>&6
1532 echo $ac_n "checking "make for VPATH support
"""... $ac_c" 1>&6
1533 echo "configure:1534: checking "make for VPATH support
"" >&5
1534 cat - << EOF > confMake
1540 if test ! -d sub
; then
1543 echo dummy
> sub
/file
1544 ${MAKE-make} -f confMake VPATH
=sub
2> config.log
> /dev
/null
1546 rm -f sub
/file check final_file confMake
1548 if test "$RESULT" = 0; then
1549 echo "$ac_t""yes" 1>&6
1551 echo "$ac_t""no" 1>&6
1552 { echo "configure: error: You need a make-utility that is able to use the variable
1554 If your version of make does not support VPATH correctly" 1>&2; exit 1; }
1558 # If we find X, set shell vars x_includes and x_libraries to the
1559 # paths, otherwise set no_x=yes.
1560 # Uses ac_ vars as temps to allow command line to override cache and checks.
1561 # --without-x overrides everything else, but does not touch the cache.
1562 echo $ac_n "checking for X""... $ac_c" 1>&6
1563 echo "configure:1564: checking for X" >&5
1565 # Check whether --with-x or --without-x was given.
1566 if test "${with_x+set}" = set; then
1571 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1572 if test "x$with_x" = xno
; then
1573 # The user explicitly disabled X.
1576 if test "x$x_includes" != xNONE
&& test "x$x_libraries" != xNONE
; then
1577 # Both variables are already set.
1580 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1581 echo $ac_n "(cached) $ac_c" 1>&6
1583 # One or both of the vars are not set, and there is no cached value.
1584 ac_x_includes
=NO ac_x_libraries
=NO
1586 if mkdir conftestdir
; then
1588 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1589 cat > Imakefile
<<'EOF'
1591 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1593 if (xmkmf
) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
1594 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1595 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
1596 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1597 for ac_extension
in a so sl
; do
1598 if test ! -f $ac_im_usrlibdir/libX11.
$ac_extension &&
1599 test -f $ac_im_libdir/libX11.
$ac_extension; then
1600 ac_im_usrlibdir
=$ac_im_libdir; break
1603 # Screen out bogus values from the imake configuration. They are
1604 # bogus both because they are the default anyway, and because
1605 # using them would break gcc on systems where it needs fixed includes.
1606 case "$ac_im_incroot" in
1608 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
="$ac_im_incroot" ;;
1610 case "$ac_im_usrlibdir" in
1612 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
="$ac_im_usrlibdir" ;;
1619 if test "$ac_x_includes" = NO
; then
1620 # Guess where to find include files, by looking for this one X11 .h file.
1621 test -z "$x_direct_test_include" && x_direct_test_include
=X
11/Intrinsic.h
1623 # First, try using that file with no special directory specified.
1624 cat > conftest.
$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 #include <$x_direct_test_include>
1629 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1630 { (eval echo configure
:1631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1631 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1632 if test -z "$ac_err"; then
1634 # We can compile using X headers with no special include directory.
1638 echo "configure: failed program was:" >&5
1639 cat conftest.
$ac_ext >&5
1641 # Look for the header file in a standard set of common directories.
1642 # Check X11 before X11Rn because it is often a symlink to the current release.
1645 /usr
/X
11R
6/include \
1646 /usr
/X
11R
5/include \
1647 /usr
/X
11R
4/include \
1650 /usr
/include
/X11R6 \
1651 /usr
/include
/X11R5 \
1652 /usr
/include
/X11R4 \
1654 /usr
/local
/X
11/include \
1655 /usr
/local
/X
11R
6/include \
1656 /usr
/local
/X
11R
5/include \
1657 /usr
/local
/X
11R
4/include \
1659 /usr
/local
/include
/X11 \
1660 /usr
/local
/include
/X11R6 \
1661 /usr
/local
/include
/X11R5 \
1662 /usr
/local
/include
/X11R4 \
1666 /usr
/XFree
86/include
/X11 \
1669 /usr
/local
/include \
1670 /usr
/unsupported
/include \
1671 /usr
/athena
/include \
1672 /usr
/local
/x
11r
5/include \
1673 /usr
/lpp
/Xamples
/include \
1675 /usr
/openwin
/include \
1676 /usr
/openwin
/share
/include \
1679 if test -r "$ac_dir/$x_direct_test_include"; then
1680 ac_x_includes
=$ac_dir
1686 fi # $ac_x_includes = NO
1688 if test "$ac_x_libraries" = NO
; then
1689 # Check for the libraries.
1691 test -z "$x_direct_test_library" && x_direct_test_library
=Xt
1692 test -z "$x_direct_test_function" && x_direct_test_function
=XtMalloc
1694 # See if we find them without any special options.
1695 # Don't add to $LIBS permanently.
1696 ac_save_LIBS
="$LIBS"
1697 LIBS
="-l$x_direct_test_library $LIBS"
1698 cat > conftest.
$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1703 ${x_direct_test_function}()
1706 if { (eval echo configure
:1707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1708 LIBS
="$ac_save_LIBS"
1709 # We can link X programs with no special library path.
1712 echo "configure: failed program was:" >&5
1713 cat conftest.
$ac_ext >&5
1715 LIBS
="$ac_save_LIBS"
1716 # First see if replacing the include by lib works.
1717 # Check X11 before X11Rn because it is often a symlink to the current release.
1718 for ac_dir
in `echo "$ac_x_includes" | sed s/include/lib/` \
1729 /usr
/local
/X
11/lib \
1730 /usr
/local
/X
11R
6/lib \
1731 /usr
/local
/X
11R
5/lib \
1732 /usr
/local
/X
11R
4/lib \
1734 /usr
/local
/lib
/X11 \
1735 /usr
/local
/lib
/X11R6 \
1736 /usr
/local
/lib
/X11R5 \
1737 /usr
/local
/lib
/X11R4 \
1741 /usr
/XFree
86/lib
/X11 \
1745 /usr
/unsupported
/lib \
1747 /usr
/local
/x
11r
5/lib \
1748 /usr
/lpp
/Xamples
/lib \
1752 /usr
/openwin
/share
/lib \
1755 for ac_extension
in a so sl
; do
1756 if test -r $ac_dir/lib
${x_direct_test_library}.
$ac_extension; then
1757 ac_x_libraries
=$ac_dir
1764 fi # $ac_x_libraries = NO
1766 if test "$ac_x_includes" = NO
|| test "$ac_x_libraries" = NO
; then
1767 # Didn't find X anywhere. Cache the known absence of X.
1768 ac_cv_have_x
="have_x=no"
1770 # Record where we found X for the cache.
1771 ac_cv_have_x
="have_x=yes \
1772 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1776 eval "$ac_cv_have_x"
1779 if test "$have_x" != yes; then
1780 echo "$ac_t""$have_x" 1>&6
1783 # If each of the values was on the command line, it overrides each guess.
1784 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
1785 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
1786 # Update the cache value to reflect the command line values.
1787 ac_cv_have_x
="have_x=yes \
1788 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1789 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1792 if test "$no_x" = yes; then
1793 # Not all programs may use this symbol, but it does not hurt to define it.
1794 cat >> confdefs.h
<<\EOF
1795 #define X_DISPLAY_MISSING 1
1798 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
1800 if test -n "$x_includes"; then
1801 X_CFLAGS
="$X_CFLAGS -I$x_includes"
1804 # It would also be nice to do this for all -L options, not just this one.
1805 if test -n "$x_libraries"; then
1806 X_LIBS
="$X_LIBS -L$x_libraries"
1807 # For Solaris; some versions of Sun CC require a space after -R and
1808 # others require no space. Words are not sufficient . . . .
1809 case "`(uname -sr) 2>/dev/null`" in
1811 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1812 echo "configure:1813: checking whether -R must be followed by a space" >&5
1813 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS -R$x_libraries"
1814 cat > conftest.
$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1822 if { (eval echo configure
:1823: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1826 echo "configure: failed program was:" >&5
1827 cat conftest.
$ac_ext >&5
1832 if test $ac_R_nospace = yes; then
1833 echo "$ac_t""no" 1>&6
1834 X_LIBS
="$X_LIBS -R$x_libraries"
1836 LIBS
="$ac_xsave_LIBS -R $x_libraries"
1837 cat > conftest.
$ac_ext <<EOF
1838 #line 1839 "configure"
1839 #include "confdefs.h"
1845 if { (eval echo configure
:1846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1849 echo "configure: failed program was:" >&5
1850 cat conftest.
$ac_ext >&5
1855 if test $ac_R_space = yes; then
1856 echo "$ac_t""yes" 1>&6
1857 X_LIBS
="$X_LIBS -R $x_libraries"
1859 echo "$ac_t""neither works" 1>&6
1862 LIBS
="$ac_xsave_LIBS"
1866 # Check for system-dependent libraries X programs must link with.
1867 # Do this before checking for the system-independent R6 libraries
1868 # (-lICE), since we may need -lsocket or whatever for X linking.
1870 if test "$ISC" = yes; then
1871 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
1873 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1874 # libraries were built with DECnet support. And karl@cs.umb.edu says
1875 # the Alpha needs dnet_stub (dnet does not exist).
1876 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1877 echo "configure:1878: checking for dnet_ntoa in -ldnet" >&5
1878 ac_lib_var
=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1879 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1880 echo $ac_n "(cached) $ac_c" 1>&6
1882 ac_save_LIBS
="$LIBS"
1884 cat > conftest.
$ac_ext <<EOF
1885 #line 1886 "configure"
1886 #include "confdefs.h"
1887 /* Override any gcc2 internal prototype to avoid an error. */
1888 /* We use char because int might match the return type of a gcc2
1889 builtin and then its argument prototype would still apply. */
1896 if { (eval echo configure
:1897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1898 eval "ac_cv_lib_$ac_lib_var=yes"
1900 echo "configure: failed program was:" >&5
1901 cat conftest.
$ac_ext >&5
1903 eval "ac_cv_lib_$ac_lib_var=no"
1906 LIBS
="$ac_save_LIBS"
1909 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1910 echo "$ac_t""yes" 1>&6
1911 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
1913 echo "$ac_t""no" 1>&6
1916 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
1917 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1918 echo "configure:1919: checking for dnet_ntoa in -ldnet_stub" >&5
1919 ac_lib_var
=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1921 echo $ac_n "(cached) $ac_c" 1>&6
1923 ac_save_LIBS
="$LIBS"
1924 LIBS
="-ldnet_stub $LIBS"
1925 cat > conftest.
$ac_ext <<EOF
1926 #line 1927 "configure"
1927 #include "confdefs.h"
1928 /* Override any gcc2 internal prototype to avoid an error. */
1929 /* We use char because int might match the return type of a gcc2
1930 builtin and then its argument prototype would still apply. */
1937 if { (eval echo configure
:1938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1939 eval "ac_cv_lib_$ac_lib_var=yes"
1941 echo "configure: failed program was:" >&5
1942 cat conftest.
$ac_ext >&5
1944 eval "ac_cv_lib_$ac_lib_var=no"
1947 LIBS
="$ac_save_LIBS"
1950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1951 echo "$ac_t""yes" 1>&6
1952 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
1954 echo "$ac_t""no" 1>&6
1959 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1960 # to get the SysV transport functions.
1961 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1963 # The nsl library prevents programs from opening the X display
1964 # on Irix 5.2, according to dickey@clark.net.
1965 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1966 echo "configure:1967: checking for gethostbyname" >&5
1967 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1968 echo $ac_n "(cached) $ac_c" 1>&6
1970 cat > conftest.
$ac_ext <<EOF
1971 #line 1972 "configure"
1972 #include "confdefs.h"
1973 /* System header to define __stub macros and hopefully few prototypes,
1974 which can conflict with char gethostbyname(); below. */
1976 /* Override any gcc2 internal prototype to avoid an error. */
1977 /* We use char because int might match the return type of a gcc2
1978 builtin and then its argument prototype would still apply. */
1979 char gethostbyname();
1984 /* The GNU C library defines this for functions which it implements
1985 to always fail with ENOSYS. Some functions are actually named
1986 something starting with __ and the normal name is an alias. */
1987 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1995 if { (eval echo configure
:1996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1997 eval "ac_cv_func_gethostbyname=yes"
1999 echo "configure: failed program was:" >&5
2000 cat conftest.
$ac_ext >&5
2002 eval "ac_cv_func_gethostbyname=no"
2007 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2008 echo "$ac_t""yes" 1>&6
2011 echo "$ac_t""no" 1>&6
2014 if test $ac_cv_func_gethostbyname = no
; then
2015 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2016 echo "configure:2017: checking for gethostbyname in -lnsl" >&5
2017 ac_lib_var
=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2018 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2021 ac_save_LIBS
="$LIBS"
2023 cat > conftest.
$ac_ext <<EOF
2024 #line 2025 "configure"
2025 #include "confdefs.h"
2026 /* Override any gcc2 internal prototype to avoid an error. */
2027 /* We use char because int might match the return type of a gcc2
2028 builtin and then its argument prototype would still apply. */
2029 char gethostbyname();
2035 if { (eval echo configure
:2036: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2037 eval "ac_cv_lib_$ac_lib_var=yes"
2039 echo "configure: failed program was:" >&5
2040 cat conftest.
$ac_ext >&5
2042 eval "ac_cv_lib_$ac_lib_var=no"
2045 LIBS
="$ac_save_LIBS"
2048 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2049 echo "$ac_t""yes" 1>&6
2050 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
2052 echo "$ac_t""no" 1>&6
2057 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2058 # socket/setsockopt and other routines are undefined under SCO ODT
2059 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2060 # on later versions), says simon@lia.di.epfl.ch: it contains
2061 # gethostby* variants that don't use the nameserver (or something).
2062 # -lsocket must be given before -lnsl if both are needed.
2063 # We assume that if connect needs -lnsl, so does gethostbyname.
2064 echo $ac_n "checking for connect""... $ac_c" 1>&6
2065 echo "configure:2066: checking for connect" >&5
2066 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2067 echo $ac_n "(cached) $ac_c" 1>&6
2069 cat > conftest.
$ac_ext <<EOF
2070 #line 2071 "configure"
2071 #include "confdefs.h"
2072 /* System header to define __stub macros and hopefully few prototypes,
2073 which can conflict with char connect(); below. */
2075 /* Override any gcc2 internal prototype to avoid an error. */
2076 /* We use char because int might match the return type of a gcc2
2077 builtin and then its argument prototype would still apply. */
2083 /* The GNU C library defines this for functions which it implements
2084 to always fail with ENOSYS. Some functions are actually named
2085 something starting with __ and the normal name is an alias. */
2086 #if defined (__stub_connect) || defined (__stub___connect)
2094 if { (eval echo configure
:2095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2096 eval "ac_cv_func_connect=yes"
2098 echo "configure: failed program was:" >&5
2099 cat conftest.
$ac_ext >&5
2101 eval "ac_cv_func_connect=no"
2106 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2107 echo "$ac_t""yes" 1>&6
2110 echo "$ac_t""no" 1>&6
2113 if test $ac_cv_func_connect = no
; then
2114 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2115 echo "configure:2116: checking for connect in -lsocket" >&5
2116 ac_lib_var
=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2118 echo $ac_n "(cached) $ac_c" 1>&6
2120 ac_save_LIBS
="$LIBS"
2121 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
2122 cat > conftest.
$ac_ext <<EOF
2123 #line 2124 "configure"
2124 #include "confdefs.h"
2125 /* Override any gcc2 internal prototype to avoid an error. */
2126 /* We use char because int might match the return type of a gcc2
2127 builtin and then its argument prototype would still apply. */
2134 if { (eval echo configure
:2135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2136 eval "ac_cv_lib_$ac_lib_var=yes"
2138 echo "configure: failed program was:" >&5
2139 cat conftest.
$ac_ext >&5
2141 eval "ac_cv_lib_$ac_lib_var=no"
2144 LIBS
="$ac_save_LIBS"
2147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2148 echo "$ac_t""yes" 1>&6
2149 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
2151 echo "$ac_t""no" 1>&6
2156 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2157 echo $ac_n "checking for remove""... $ac_c" 1>&6
2158 echo "configure:2159: checking for remove" >&5
2159 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2160 echo $ac_n "(cached) $ac_c" 1>&6
2162 cat > conftest.
$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2165 /* System header to define __stub macros and hopefully few prototypes,
2166 which can conflict with char remove(); below. */
2168 /* Override any gcc2 internal prototype to avoid an error. */
2169 /* We use char because int might match the return type of a gcc2
2170 builtin and then its argument prototype would still apply. */
2176 /* The GNU C library defines this for functions which it implements
2177 to always fail with ENOSYS. Some functions are actually named
2178 something starting with __ and the normal name is an alias. */
2179 #if defined (__stub_remove) || defined (__stub___remove)
2187 if { (eval echo configure
:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2189 eval "ac_cv_func_remove=yes"
2191 echo "configure: failed program was:" >&5
2192 cat conftest.
$ac_ext >&5
2194 eval "ac_cv_func_remove=no"
2199 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2200 echo "$ac_t""yes" 1>&6
2203 echo "$ac_t""no" 1>&6
2206 if test $ac_cv_func_remove = no
; then
2207 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2208 echo "configure:2209: checking for remove in -lposix" >&5
2209 ac_lib_var
=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2210 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2211 echo $ac_n "(cached) $ac_c" 1>&6
2213 ac_save_LIBS
="$LIBS"
2214 LIBS
="-lposix $LIBS"
2215 cat > conftest.
$ac_ext <<EOF
2216 #line 2217 "configure"
2217 #include "confdefs.h"
2218 /* Override any gcc2 internal prototype to avoid an error. */
2219 /* We use char because int might match the return type of a gcc2
2220 builtin and then its argument prototype would still apply. */
2227 if { (eval echo configure
:2228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2229 eval "ac_cv_lib_$ac_lib_var=yes"
2231 echo "configure: failed program was:" >&5
2232 cat conftest.
$ac_ext >&5
2234 eval "ac_cv_lib_$ac_lib_var=no"
2237 LIBS
="$ac_save_LIBS"
2240 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2241 echo "$ac_t""yes" 1>&6
2242 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
2244 echo "$ac_t""no" 1>&6
2249 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2250 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2251 echo "configure:2252: checking for shmat" >&5
2252 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2253 echo $ac_n "(cached) $ac_c" 1>&6
2255 cat > conftest.
$ac_ext <<EOF
2256 #line 2257 "configure"
2257 #include "confdefs.h"
2258 /* System header to define __stub macros and hopefully few prototypes,
2259 which can conflict with char shmat(); below. */
2261 /* Override any gcc2 internal prototype to avoid an error. */
2262 /* We use char because int might match the return type of a gcc2
2263 builtin and then its argument prototype would still apply. */
2269 /* The GNU C library defines this for functions which it implements
2270 to always fail with ENOSYS. Some functions are actually named
2271 something starting with __ and the normal name is an alias. */
2272 #if defined (__stub_shmat) || defined (__stub___shmat)
2280 if { (eval echo configure
:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2282 eval "ac_cv_func_shmat=yes"
2284 echo "configure: failed program was:" >&5
2285 cat conftest.
$ac_ext >&5
2287 eval "ac_cv_func_shmat=no"
2292 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2293 echo "$ac_t""yes" 1>&6
2296 echo "$ac_t""no" 1>&6
2299 if test $ac_cv_func_shmat = no
; then
2300 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2301 echo "configure:2302: checking for shmat in -lipc" >&5
2302 ac_lib_var
=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2303 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2304 echo $ac_n "(cached) $ac_c" 1>&6
2306 ac_save_LIBS
="$LIBS"
2308 cat > conftest.
$ac_ext <<EOF
2309 #line 2310 "configure"
2310 #include "confdefs.h"
2311 /* Override any gcc2 internal prototype to avoid an error. */
2312 /* We use char because int might match the return type of a gcc2
2313 builtin and then its argument prototype would still apply. */
2320 if { (eval echo configure
:2321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2322 eval "ac_cv_lib_$ac_lib_var=yes"
2324 echo "configure: failed program was:" >&5
2325 cat conftest.
$ac_ext >&5
2327 eval "ac_cv_lib_$ac_lib_var=no"
2330 LIBS
="$ac_save_LIBS"
2333 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2334 echo "$ac_t""yes" 1>&6
2335 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
2337 echo "$ac_t""no" 1>&6
2343 # Check for libraries that X11R6 Xt/Xaw programs need.
2344 ac_save_LDFLAGS
="$LDFLAGS"
2345 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
2346 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2347 # check for ICE first), but we must link in the order -lSM -lICE or
2348 # we get undefined symbols. So assume we have SM if we have ICE.
2349 # These have to be linked with before -lX11, unlike the other
2350 # libraries we check for below, so use a different variable.
2351 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2352 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2353 echo "configure:2354: checking for IceConnectionNumber in -lICE" >&5
2354 ac_lib_var
=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2355 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2356 echo $ac_n "(cached) $ac_c" 1>&6
2358 ac_save_LIBS
="$LIBS"
2359 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
2360 cat > conftest.
$ac_ext <<EOF
2361 #line 2362 "configure"
2362 #include "confdefs.h"
2363 /* Override any gcc2 internal prototype to avoid an error. */
2364 /* We use char because int might match the return type of a gcc2
2365 builtin and then its argument prototype would still apply. */
2366 char IceConnectionNumber();
2369 IceConnectionNumber()
2372 if { (eval echo configure
:2373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2374 eval "ac_cv_lib_$ac_lib_var=yes"
2376 echo "configure: failed program was:" >&5
2377 cat conftest.
$ac_ext >&5
2379 eval "ac_cv_lib_$ac_lib_var=no"
2382 LIBS
="$ac_save_LIBS"
2385 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2386 echo "$ac_t""yes" 1>&6
2387 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
2389 echo "$ac_t""no" 1>&6
2392 LDFLAGS
="$ac_save_LDFLAGS"
2398 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
2400 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2401 echo $ac_n "checking for $ac_hdr that defines DIR""... $ac_c" 1>&6
2402 echo "configure:2403: checking for $ac_hdr that defines DIR" >&5
2403 if eval "test \"`echo '$''{'ac_cv_header_dirent_$ac_safe'+set}'`\" = set"; then
2404 echo $ac_n "(cached) $ac_c" 1>&6
2406 cat > conftest.
$ac_ext <<EOF
2407 #line 2408 "configure"
2408 #include "confdefs.h"
2409 #include <sys/types.h>
2415 if { (eval echo configure
:2416: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2417 eval "ac_cv_header_dirent_$ac_safe=yes"
2419 echo "configure: failed program was:" >&5
2420 cat conftest.
$ac_ext >&5
2422 eval "ac_cv_header_dirent_$ac_safe=no"
2426 if eval "test \"`echo '$ac_cv_header_dirent_'$ac_safe`\" = yes"; then
2427 echo "$ac_t""yes" 1>&6
2428 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2429 cat >> confdefs.h
<<EOF
2430 #define $ac_tr_hdr 1
2432 ac_header_dirent
=$ac_hdr; break
2434 echo "$ac_t""no" 1>&6
2437 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
2438 if test $ac_header_dirent = dirent.h
; then
2439 echo $ac_n "checking for opendir in -ldir""... $ac_c" 1>&6
2440 echo "configure:2441: checking for opendir in -ldir" >&5
2441 ac_lib_var
=`echo dir'_'opendir | sed 'y%./+-%__p_%'`
2442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2445 ac_save_LIBS
="$LIBS"
2447 cat > conftest.
$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2450 /* Override any gcc2 internal prototype to avoid an error. */
2451 /* We use char because int might match the return type of a gcc2
2452 builtin and then its argument prototype would still apply. */
2459 if { (eval echo configure
:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2461 eval "ac_cv_lib_$ac_lib_var=yes"
2463 echo "configure: failed program was:" >&5
2464 cat conftest.
$ac_ext >&5
2466 eval "ac_cv_lib_$ac_lib_var=no"
2469 LIBS
="$ac_save_LIBS"
2472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2476 echo "$ac_t""no" 1>&6
2480 echo $ac_n "checking for opendir in -lx""... $ac_c" 1>&6
2481 echo "configure:2482: checking for opendir in -lx" >&5
2482 ac_lib_var
=`echo x'_'opendir | sed 'y%./+-%__p_%'`
2483 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2484 echo $ac_n "(cached) $ac_c" 1>&6
2486 ac_save_LIBS
="$LIBS"
2488 cat > conftest.
$ac_ext <<EOF
2489 #line 2490 "configure"
2490 #include "confdefs.h"
2491 /* Override any gcc2 internal prototype to avoid an error. */
2492 /* We use char because int might match the return type of a gcc2
2493 builtin and then its argument prototype would still apply. */
2500 if { (eval echo configure
:2501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2502 eval "ac_cv_lib_$ac_lib_var=yes"
2504 echo "configure: failed program was:" >&5
2505 cat conftest.
$ac_ext >&5
2507 eval "ac_cv_lib_$ac_lib_var=no"
2510 LIBS
="$ac_save_LIBS"
2513 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2514 echo "$ac_t""yes" 1>&6
2517 echo "$ac_t""no" 1>&6
2522 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2523 echo "configure:2524: checking for ANSI C header files" >&5
2524 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2525 echo $ac_n "(cached) $ac_c" 1>&6
2527 cat > conftest.
$ac_ext <<EOF
2528 #line 2529 "configure"
2529 #include "confdefs.h"
2535 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2536 { (eval echo configure
:2537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2537 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2538 if test -z "$ac_err"; then
2540 ac_cv_header_stdc
=yes
2543 echo "configure: failed program was:" >&5
2544 cat conftest.
$ac_ext >&5
2546 ac_cv_header_stdc
=no
2550 if test $ac_cv_header_stdc = yes; then
2551 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2552 cat > conftest.
$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2558 egrep "memchr" >/dev
/null
2>&1; then
2562 ac_cv_header_stdc
=no
2568 if test $ac_cv_header_stdc = yes; then
2569 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2570 cat > conftest.
$ac_ext <<EOF
2571 #line 2572 "configure"
2572 #include "confdefs.h"
2575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2576 egrep "free" >/dev
/null
2>&1; then
2580 ac_cv_header_stdc
=no
2586 if test $ac_cv_header_stdc = yes; then
2587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2588 if test "$cross_compiling" = yes; then
2591 cat > conftest.
$ac_ext <<EOF
2592 #line 2593 "configure"
2593 #include "confdefs.h"
2595 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2596 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2597 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2598 int main () { int i; for (i = 0; i < 256; i++)
2599 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2603 if { (eval echo configure
:2604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2607 echo "configure: failed program was:" >&5
2608 cat conftest.
$ac_ext >&5
2610 ac_cv_header_stdc
=no
2618 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2619 if test $ac_cv_header_stdc = yes; then
2620 cat >> confdefs.h
<<\EOF
2621 #define STDC_HEADERS 1
2626 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2627 echo "configure:2628: checking for sys/wait.h that is POSIX.1 compatible" >&5
2628 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2631 cat > conftest.
$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 #include <sys/types.h>
2635 #include <sys/wait.h>
2637 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2640 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2645 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2648 if { (eval echo configure
:2649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2650 ac_cv_header_sys_wait_h
=yes
2652 echo "configure: failed program was:" >&5
2653 cat conftest.
$ac_ext >&5
2655 ac_cv_header_sys_wait_h
=no
2660 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2661 if test $ac_cv_header_sys_wait_h = yes; then
2662 cat >> confdefs.h
<<\EOF
2663 #define HAVE_SYS_WAIT_H 1
2668 for ac_hdr
in fcntl.h
2670 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2671 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2672 echo "configure:2673: checking for $ac_hdr" >&5
2673 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2674 echo $ac_n "(cached) $ac_c" 1>&6
2676 cat > conftest.
$ac_ext <<EOF
2677 #line 2678 "configure"
2678 #include "confdefs.h"
2681 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2682 { (eval echo configure
:2683: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2683 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2684 if test -z "$ac_err"; then
2686 eval "ac_cv_header_$ac_safe=yes"
2689 echo "configure: failed program was:" >&5
2690 cat conftest.
$ac_ext >&5
2692 eval "ac_cv_header_$ac_safe=no"
2696 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2697 echo "$ac_t""yes" 1>&6
2698 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2699 cat >> confdefs.h
<<EOF
2700 #define $ac_tr_hdr 1
2704 echo "$ac_t""no" 1>&6
2708 for ac_hdr
in limits.h
2710 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2711 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2712 echo "configure:2713: checking for $ac_hdr" >&5
2713 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2716 cat > conftest.
$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2721 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2722 { (eval echo configure
:2723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2723 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2724 if test -z "$ac_err"; then
2726 eval "ac_cv_header_$ac_safe=yes"
2729 echo "configure: failed program was:" >&5
2730 cat conftest.
$ac_ext >&5
2732 eval "ac_cv_header_$ac_safe=no"
2736 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2737 echo "$ac_t""yes" 1>&6
2738 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2739 cat >> confdefs.h
<<EOF
2740 #define $ac_tr_hdr 1
2744 echo "$ac_t""no" 1>&6
2748 for ac_hdr
in sys
/file.h
2750 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2751 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2752 echo "configure:2753: checking for $ac_hdr" >&5
2753 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2754 echo $ac_n "(cached) $ac_c" 1>&6
2756 cat > conftest.
$ac_ext <<EOF
2757 #line 2758 "configure"
2758 #include "confdefs.h"
2761 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2762 { (eval echo configure
:2763: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2763 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2764 if test -z "$ac_err"; then
2766 eval "ac_cv_header_$ac_safe=yes"
2769 echo "configure: failed program was:" >&5
2770 cat conftest.
$ac_ext >&5
2772 eval "ac_cv_header_$ac_safe=no"
2776 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2777 echo "$ac_t""yes" 1>&6
2778 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2779 cat >> confdefs.h
<<EOF
2780 #define $ac_tr_hdr 1
2784 echo "$ac_t""no" 1>&6
2788 for ac_hdr
in sys
/time.h
2790 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2791 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2792 echo "configure:2793: checking for $ac_hdr" >&5
2793 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2794 echo $ac_n "(cached) $ac_c" 1>&6
2796 cat > conftest.
$ac_ext <<EOF
2797 #line 2798 "configure"
2798 #include "confdefs.h"
2801 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2802 { (eval echo configure
:2803: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2803 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2804 if test -z "$ac_err"; then
2806 eval "ac_cv_header_$ac_safe=yes"
2809 echo "configure: failed program was:" >&5
2810 cat conftest.
$ac_ext >&5
2812 eval "ac_cv_header_$ac_safe=no"
2816 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2817 echo "$ac_t""yes" 1>&6
2818 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2819 cat >> confdefs.h
<<EOF
2820 #define $ac_tr_hdr 1
2824 echo "$ac_t""no" 1>&6
2828 for ac_hdr
in unistd.h
2830 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2831 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2832 echo "configure:2833: checking for $ac_hdr" >&5
2833 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2834 echo $ac_n "(cached) $ac_c" 1>&6
2836 cat > conftest.
$ac_ext <<EOF
2837 #line 2838 "configure"
2838 #include "confdefs.h"
2841 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2842 { (eval echo configure
:2843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2843 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2844 if test -z "$ac_err"; then
2846 eval "ac_cv_header_$ac_safe=yes"
2849 echo "configure: failed program was:" >&5
2850 cat conftest.
$ac_ext >&5
2852 eval "ac_cv_header_$ac_safe=no"
2856 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2857 echo "$ac_t""yes" 1>&6
2858 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2859 cat >> confdefs.h
<<EOF
2860 #define $ac_tr_hdr 1
2864 echo "$ac_t""no" 1>&6
2868 for ac_hdr
in wchar.h
2870 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2871 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2872 echo "configure:2873: checking for $ac_hdr" >&5
2873 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2876 cat > conftest.
$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2881 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2882 { (eval echo configure
:2883: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2883 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2884 if test -z "$ac_err"; then
2886 eval "ac_cv_header_$ac_safe=yes"
2889 echo "configure: failed program was:" >&5
2890 cat conftest.
$ac_ext >&5
2892 eval "ac_cv_header_$ac_safe=no"
2896 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2897 echo "$ac_t""yes" 1>&6
2898 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2899 cat >> confdefs.h
<<EOF
2900 #define $ac_tr_hdr 1
2904 echo "$ac_t""no" 1>&6
2908 for ac_hdr
in wcstr.h
2910 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2911 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2912 echo "configure:2913: checking for $ac_hdr" >&5
2913 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2914 echo $ac_n "(cached) $ac_c" 1>&6
2916 cat > conftest.
$ac_ext <<EOF
2917 #line 2918 "configure"
2918 #include "confdefs.h"
2921 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2922 { (eval echo configure
:2923: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2923 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2924 if test -z "$ac_err"; then
2926 eval "ac_cv_header_$ac_safe=yes"
2929 echo "configure: failed program was:" >&5
2930 cat conftest.
$ac_ext >&5
2932 eval "ac_cv_header_$ac_safe=no"
2936 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2937 echo "$ac_t""yes" 1>&6
2938 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2939 cat >> confdefs.h
<<EOF
2940 #define $ac_tr_hdr 1
2944 echo "$ac_t""no" 1>&6
2948 for ac_hdr
in fnmatch.h
2950 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2951 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2952 echo "configure:2953: checking for $ac_hdr" >&5
2953 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2954 echo $ac_n "(cached) $ac_c" 1>&6
2956 cat > conftest.
$ac_ext <<EOF
2957 #line 2958 "configure"
2958 #include "confdefs.h"
2961 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2962 { (eval echo configure
:2963: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2963 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2964 if test -z "$ac_err"; then
2966 eval "ac_cv_header_$ac_safe=yes"
2969 echo "configure: failed program was:" >&5
2970 cat conftest.
$ac_ext >&5
2972 eval "ac_cv_header_$ac_safe=no"
2976 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2977 echo "$ac_t""yes" 1>&6
2978 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2979 cat >> confdefs.h
<<EOF
2980 #define $ac_tr_hdr 1
2984 echo "$ac_t""no" 1>&6
2988 for ac_hdr
in linux
/joystick.h
2990 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2991 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2992 echo "configure:2993: checking for $ac_hdr" >&5
2993 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2994 echo $ac_n "(cached) $ac_c" 1>&6
2996 cat > conftest.
$ac_ext <<EOF
2997 #line 2998 "configure"
2998 #include "confdefs.h"
3001 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3002 { (eval echo configure
:3003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3003 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3004 if test -z "$ac_err"; then
3006 eval "ac_cv_header_$ac_safe=yes"
3009 echo "configure: failed program was:" >&5
3010 cat conftest.
$ac_ext >&5
3012 eval "ac_cv_header_$ac_safe=no"
3016 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3017 echo "$ac_t""yes" 1>&6
3018 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3019 cat >> confdefs.h
<<EOF
3020 #define $ac_tr_hdr 1
3024 echo "$ac_t""no" 1>&6
3029 if test "$ac_cv_header_linux_joystick_h" = "yes"; then
3030 GTK_JOYSTICK
="gtk/joystick.cpp"
3034 for ac_hdr
in strings.h
3036 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3037 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3038 echo "configure:3039: checking for $ac_hdr" >&5
3039 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3040 echo $ac_n "(cached) $ac_c" 1>&6
3042 cat > conftest.
$ac_ext <<EOF
3043 #line 3044 "configure"
3044 #include "confdefs.h"
3047 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3048 { (eval echo configure
:3049: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3049 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3050 if test -z "$ac_err"; then
3052 eval "ac_cv_header_$ac_safe=yes"
3055 echo "configure: failed program was:" >&5
3056 cat conftest.
$ac_ext >&5
3058 eval "ac_cv_header_$ac_safe=no"
3062 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3063 echo "$ac_t""yes" 1>&6
3064 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3065 cat >> confdefs.h
<<EOF
3066 #define $ac_tr_hdr 1
3070 echo "$ac_t""no" 1>&6
3076 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
3077 echo "configure:3078: checking for vprintf" >&5
3078 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3081 cat > conftest.
$ac_ext <<EOF
3082 #line 3083 "configure"
3083 #include "confdefs.h"
3084 /* System header to define __stub macros and hopefully few prototypes,
3085 which can conflict with char vprintf(); below. */
3087 /* Override any gcc2 internal prototype to avoid an error. */
3088 /* We use char because int might match the return type of a gcc2
3089 builtin and then its argument prototype would still apply. */
3095 /* The GNU C library defines this for functions which it implements
3096 to always fail with ENOSYS. Some functions are actually named
3097 something starting with __ and the normal name is an alias. */
3098 #if defined (__stub_vprintf) || defined (__stub___vprintf)
3106 if { (eval echo configure
:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3108 eval "ac_cv_func_vprintf=yes"
3110 echo "configure: failed program was:" >&5
3111 cat conftest.
$ac_ext >&5
3113 eval "ac_cv_func_vprintf=no"
3118 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
3119 echo "$ac_t""yes" 1>&6
3120 cat >> confdefs.h
<<\EOF
3121 #define HAVE_VPRINTF 1
3125 echo "$ac_t""no" 1>&6
3128 if test "$ac_cv_func_vprintf" != yes; then
3129 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
3130 echo "configure:3131: checking for _doprnt" >&5
3131 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
3132 echo $ac_n "(cached) $ac_c" 1>&6
3134 cat > conftest.
$ac_ext <<EOF
3135 #line 3136 "configure"
3136 #include "confdefs.h"
3137 /* System header to define __stub macros and hopefully few prototypes,
3138 which can conflict with char _doprnt(); below. */
3140 /* Override any gcc2 internal prototype to avoid an error. */
3141 /* We use char because int might match the return type of a gcc2
3142 builtin and then its argument prototype would still apply. */
3148 /* The GNU C library defines this for functions which it implements
3149 to always fail with ENOSYS. Some functions are actually named
3150 something starting with __ and the normal name is an alias. */
3151 #if defined (__stub__doprnt) || defined (__stub____doprnt)
3159 if { (eval echo configure
:3160: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3161 eval "ac_cv_func__doprnt=yes"
3163 echo "configure: failed program was:" >&5
3164 cat conftest.
$ac_ext >&5
3166 eval "ac_cv_func__doprnt=no"
3171 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
3172 echo "$ac_t""yes" 1>&6
3173 cat >> confdefs.h
<<\EOF
3174 #define HAVE_DOPRNT 1
3178 echo "$ac_t""no" 1>&6
3184 for ac_func
in vsnprintf
3186 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3187 echo "configure:3188: checking for $ac_func" >&5
3188 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3189 echo $ac_n "(cached) $ac_c" 1>&6
3191 cat > conftest.
$ac_ext <<EOF
3192 #line 3193 "configure"
3193 #include "confdefs.h"
3194 /* System header to define __stub macros and hopefully few prototypes,
3195 which can conflict with char $ac_func(); below. */
3197 /* Override any gcc2 internal prototype to avoid an error. */
3198 /* We use char because int might match the return type of a gcc2
3199 builtin and then its argument prototype would still apply. */
3205 /* The GNU C library defines this for functions which it implements
3206 to always fail with ENOSYS. Some functions are actually named
3207 something starting with __ and the normal name is an alias. */
3208 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3216 if { (eval echo configure
:3217: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3218 eval "ac_cv_func_$ac_func=yes"
3220 echo "configure: failed program was:" >&5
3221 cat conftest.
$ac_ext >&5
3223 eval "ac_cv_func_$ac_func=no"
3228 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3229 echo "$ac_t""yes" 1>&6
3230 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3231 cat >> confdefs.h
<<EOF
3232 #define $ac_tr_func 1
3234 cat >> confdefs.h
<<\EOF
3235 #define HAVE_VSNPRINTF 1
3239 echo "$ac_t""no" 1>&6
3240 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
3246 for ac_func
in vfork
3248 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3249 echo "configure:3250: checking for $ac_func" >&5
3250 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3251 echo $ac_n "(cached) $ac_c" 1>&6
3253 cat > conftest.
$ac_ext <<EOF
3254 #line 3255 "configure"
3255 #include "confdefs.h"
3256 /* System header to define __stub macros and hopefully few prototypes,
3257 which can conflict with char $ac_func(); below. */
3259 /* Override any gcc2 internal prototype to avoid an error. */
3260 /* We use char because int might match the return type of a gcc2
3261 builtin and then its argument prototype would still apply. */
3267 /* The GNU C library defines this for functions which it implements
3268 to always fail with ENOSYS. Some functions are actually named
3269 something starting with __ and the normal name is an alias. */
3270 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3278 if { (eval echo configure
:3279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3280 eval "ac_cv_func_$ac_func=yes"
3282 echo "configure: failed program was:" >&5
3283 cat conftest.
$ac_ext >&5
3285 eval "ac_cv_func_$ac_func=no"
3290 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3291 echo "$ac_t""yes" 1>&6
3292 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3293 cat >> confdefs.h
<<EOF
3294 #define $ac_tr_func 1
3298 echo "$ac_t""no" 1>&6
3304 for ac_func
in nanosleep
3306 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3307 echo "configure:3308: checking for $ac_func" >&5
3308 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3311 cat > conftest.
$ac_ext <<EOF
3312 #line 3313 "configure"
3313 #include "confdefs.h"
3314 /* System header to define __stub macros and hopefully few prototypes,
3315 which can conflict with char $ac_func(); below. */
3317 /* Override any gcc2 internal prototype to avoid an error. */
3318 /* We use char because int might match the return type of a gcc2
3319 builtin and then its argument prototype would still apply. */
3325 /* The GNU C library defines this for functions which it implements
3326 to always fail with ENOSYS. Some functions are actually named
3327 something starting with __ and the normal name is an alias. */
3328 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3336 if { (eval echo configure
:3337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3338 eval "ac_cv_func_$ac_func=yes"
3340 echo "configure: failed program was:" >&5
3341 cat conftest.
$ac_ext >&5
3343 eval "ac_cv_func_$ac_func=no"
3348 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3349 echo "$ac_t""yes" 1>&6
3350 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3351 cat >> confdefs.h
<<EOF
3352 #define $ac_tr_func 1
3354 cat >> confdefs.h
<<\EOF
3355 #define HAVE_NANOSLEEP 1
3359 echo "$ac_t""no" 1>&6
3360 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
3361 echo "configure:3362: checking for nanosleep in -lposix4" >&5
3362 ac_lib_var
=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
3363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3364 echo $ac_n "(cached) $ac_c" 1>&6
3366 ac_save_LIBS
="$LIBS"
3367 LIBS
="-lposix4 $LIBS"
3368 cat > conftest.
$ac_ext <<EOF
3369 #line 3370 "configure"
3370 #include "confdefs.h"
3371 /* Override any gcc2 internal prototype to avoid an error. */
3372 /* We use char because int might match the return type of a gcc2
3373 builtin and then its argument prototype would still apply. */
3380 if { (eval echo configure
:3381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3382 eval "ac_cv_lib_$ac_lib_var=yes"
3384 echo "configure: failed program was:" >&5
3385 cat conftest.
$ac_ext >&5
3387 eval "ac_cv_lib_$ac_lib_var=no"
3390 LIBS
="$ac_save_LIBS"
3393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3394 echo "$ac_t""yes" 1>&6
3396 cat >> confdefs.h
<<\EOF
3397 #define HAVE_NANOSLEEP 1
3400 POSIX4_LINK
="-lposix4"
3403 echo "$ac_t""no" 1>&6
3405 for ac_func
in usleep
3407 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3408 echo "configure:3409: checking for $ac_func" >&5
3409 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3412 cat > conftest.
$ac_ext <<EOF
3413 #line 3414 "configure"
3414 #include "confdefs.h"
3415 /* System header to define __stub macros and hopefully few prototypes,
3416 which can conflict with char $ac_func(); below. */
3418 /* Override any gcc2 internal prototype to avoid an error. */
3419 /* We use char because int might match the return type of a gcc2
3420 builtin and then its argument prototype would still apply. */
3426 /* The GNU C library defines this for functions which it implements
3427 to always fail with ENOSYS. Some functions are actually named
3428 something starting with __ and the normal name is an alias. */
3429 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3437 if { (eval echo configure
:3438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3439 eval "ac_cv_func_$ac_func=yes"
3441 echo "configure: failed program was:" >&5
3442 cat conftest.
$ac_ext >&5
3444 eval "ac_cv_func_$ac_func=no"
3449 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3450 echo "$ac_t""yes" 1>&6
3451 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3452 cat >> confdefs.h
<<EOF
3453 #define $ac_tr_func 1
3455 cat >> confdefs.h
<<\EOF
3456 #define HAVE_USLEEP 1
3460 echo "$ac_t""no" 1>&6
3461 echo "configure: warning: Sleep() function will not work" 1>&2
3473 for ac_func
in uname gethostname
3475 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3476 echo "configure:3477: checking for $ac_func" >&5
3477 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3478 echo $ac_n "(cached) $ac_c" 1>&6
3480 cat > conftest.
$ac_ext <<EOF
3481 #line 3482 "configure"
3482 #include "confdefs.h"
3483 /* System header to define __stub macros and hopefully few prototypes,
3484 which can conflict with char $ac_func(); below. */
3486 /* Override any gcc2 internal prototype to avoid an error. */
3487 /* We use char because int might match the return type of a gcc2
3488 builtin and then its argument prototype would still apply. */
3494 /* The GNU C library defines this for functions which it implements
3495 to always fail with ENOSYS. Some functions are actually named
3496 something starting with __ and the normal name is an alias. */
3497 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3505 if { (eval echo configure
:3506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3507 eval "ac_cv_func_$ac_func=yes"
3509 echo "configure: failed program was:" >&5
3510 cat conftest.
$ac_ext >&5
3512 eval "ac_cv_func_$ac_func=no"
3517 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3518 echo "$ac_t""yes" 1>&6
3519 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3520 cat >> confdefs.h
<<EOF
3521 #define $ac_tr_func 1
3525 echo "$ac_t""no" 1>&6
3530 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3531 echo "configure:3532: checking for uid_t in sys/types.h" >&5
3532 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3533 echo $ac_n "(cached) $ac_c" 1>&6
3535 cat > conftest.
$ac_ext <<EOF
3536 #line 3537 "configure"
3537 #include "confdefs.h"
3538 #include <sys/types.h>
3540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3541 egrep "uid_t" >/dev
/null
2>&1; then
3543 ac_cv_type_uid_t
=yes
3552 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3553 if test $ac_cv_type_uid_t = no
; then
3554 cat >> confdefs.h
<<\EOF
3558 cat >> confdefs.h
<<\EOF
3564 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6
3565 echo "configure:3566: checking type of array argument to getgroups" >&5
3566 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then
3567 echo $ac_n "(cached) $ac_c" 1>&6
3569 if test "$cross_compiling" = yes; then
3570 ac_cv_type_getgroups
=cross
3572 cat > conftest.
$ac_ext <<EOF
3573 #line 3574 "configure"
3574 #include "confdefs.h"
3576 /* Thanks to Mike Rendell for this test. */
3577 #include <sys/types.h>
3580 #define MAX(x, y) ((x) > (y) ? (x) : (y))
3585 union { gid_t gval; long lval; } val;
3588 for (i = 0; i < NGID; i++)
3589 gidset[i] = val.gval;
3590 n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
3592 /* Exit non-zero if getgroups seems to require an array of ints. This
3593 happens when gid_t is short but getgroups modifies an array of ints. */
3594 exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0);
3598 if { (eval echo configure
:3599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3600 ac_cv_type_getgroups
=gid_t
3602 echo "configure: failed program was:" >&5
3603 cat conftest.
$ac_ext >&5
3605 ac_cv_type_getgroups
=int
3610 if test $ac_cv_type_getgroups = cross
; then
3611 cat > conftest.
$ac_ext <<EOF
3612 #line 3613 "configure"
3613 #include "confdefs.h"
3616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3617 egrep "getgroups.*int.*gid_t" >/dev
/null
2>&1; then
3619 ac_cv_type_getgroups
=gid_t
3622 ac_cv_type_getgroups
=int
3629 echo "$ac_t""$ac_cv_type_getgroups" 1>&6
3630 cat >> confdefs.h
<<EOF
3631 #define GETGROUPS_T $ac_cv_type_getgroups
3635 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
3636 echo "configure:3637: checking for mode_t" >&5
3637 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3640 cat > conftest.
$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 #include <sys/types.h>
3649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3650 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3652 ac_cv_type_mode_t
=yes
3655 ac_cv_type_mode_t
=no
3660 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
3661 if test $ac_cv_type_mode_t = no
; then
3662 cat >> confdefs.h
<<\EOF
3668 echo $ac_n "checking for off_t""... $ac_c" 1>&6
3669 echo "configure:3670: checking for off_t" >&5
3670 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
3671 echo $ac_n "(cached) $ac_c" 1>&6
3673 cat > conftest.
$ac_ext <<EOF
3674 #line 3675 "configure"
3675 #include "confdefs.h"
3676 #include <sys/types.h>
3682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3683 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3685 ac_cv_type_off_t
=yes
3693 echo "$ac_t""$ac_cv_type_off_t" 1>&6
3694 if test $ac_cv_type_off_t = no
; then
3695 cat >> confdefs.h
<<\EOF
3701 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
3702 echo "configure:3703: checking for pid_t" >&5
3703 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
3704 echo $ac_n "(cached) $ac_c" 1>&6
3706 cat > conftest.
$ac_ext <<EOF
3707 #line 3708 "configure"
3708 #include "confdefs.h"
3709 #include <sys/types.h>
3715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3716 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3718 ac_cv_type_pid_t
=yes
3726 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
3727 if test $ac_cv_type_pid_t = no
; then
3728 cat >> confdefs.h
<<\EOF
3734 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
3735 echo "configure:3736: checking return type of signal handlers" >&5
3736 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
3737 echo $ac_n "(cached) $ac_c" 1>&6
3739 cat > conftest.
$ac_ext <<EOF
3740 #line 3741 "configure"
3741 #include "confdefs.h"
3742 #include <sys/types.h>
3748 extern "C" void (*signal (int, void (*)(int)))(int);
3750 void (*signal ()) ();
3757 if { (eval echo configure
:3758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3759 ac_cv_type_signal
=void
3761 echo "configure: failed program was:" >&5
3762 cat conftest.
$ac_ext >&5
3764 ac_cv_type_signal
=int
3769 echo "$ac_t""$ac_cv_type_signal" 1>&6
3770 cat >> confdefs.h
<<EOF
3771 #define RETSIGTYPE $ac_cv_type_signal
3775 echo $ac_n "checking for size_t""... $ac_c" 1>&6
3776 echo "configure:3777: checking for size_t" >&5
3777 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3780 cat > conftest.
$ac_ext <<EOF
3781 #line 3782 "configure"
3782 #include "confdefs.h"
3783 #include <sys/types.h>
3789 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3790 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
3792 ac_cv_type_size_t
=yes
3795 ac_cv_type_size_t
=no
3800 echo "$ac_t""$ac_cv_type_size_t" 1>&6
3801 if test $ac_cv_type_size_t = no
; then
3802 cat >> confdefs.h
<<\EOF
3803 #define size_t unsigned
3808 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
3809 echo "configure:3810: checking for uid_t in sys/types.h" >&5
3810 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
3811 echo $ac_n "(cached) $ac_c" 1>&6
3813 cat > conftest.
$ac_ext <<EOF
3814 #line 3815 "configure"
3815 #include "confdefs.h"
3816 #include <sys/types.h>
3818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3819 egrep "uid_t" >/dev
/null
2>&1; then
3821 ac_cv_type_uid_t
=yes
3830 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
3831 if test $ac_cv_type_uid_t = no
; then
3832 cat >> confdefs.h
<<\EOF
3836 cat >> confdefs.h
<<\EOF
3844 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
3845 echo "configure:3846: checking whether stat file-mode macros are broken" >&5
3846 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
3847 echo $ac_n "(cached) $ac_c" 1>&6
3849 cat > conftest.
$ac_ext <<EOF
3850 #line 3851 "configure"
3851 #include "confdefs.h"
3852 #include <sys/types.h>
3853 #include <sys/stat.h>
3855 #if defined(S_ISBLK) && defined(S_IFDIR)
3856 # if S_ISBLK (S_IFDIR)
3861 #if defined(S_ISBLK) && defined(S_IFCHR)
3862 # if S_ISBLK (S_IFCHR)
3867 #if defined(S_ISLNK) && defined(S_IFREG)
3868 # if S_ISLNK (S_IFREG)
3873 #if defined(S_ISSOCK) && defined(S_IFREG)
3874 # if S_ISSOCK (S_IFREG)
3880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3881 egrep "You lose" >/dev
/null
2>&1; then
3883 ac_cv_header_stat_broken
=yes
3886 ac_cv_header_stat_broken
=no
3892 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
3893 if test $ac_cv_header_stat_broken = yes; then
3894 cat >> confdefs.h
<<\EOF
3895 #define STAT_MACROS_BROKEN 1
3900 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
3901 echo "configure:3902: checking whether time.h and sys/time.h may both be included" >&5
3902 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
3903 echo $ac_n "(cached) $ac_c" 1>&6
3905 cat > conftest.
$ac_ext <<EOF
3906 #line 3907 "configure"
3907 #include "confdefs.h"
3908 #include <sys/types.h>
3909 #include <sys/time.h>
3915 if { (eval echo configure
:3916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3917 ac_cv_header_time
=yes
3919 echo "configure: failed program was:" >&5
3920 cat conftest.
$ac_ext >&5
3922 ac_cv_header_time
=no
3927 echo "$ac_t""$ac_cv_header_time" 1>&6
3928 if test $ac_cv_header_time = yes; then
3929 cat >> confdefs.h
<<\EOF
3930 #define TIME_WITH_SYS_TIME 1
3935 echo $ac_n "checking for st_blksize in struct stat""... $ac_c" 1>&6
3936 echo "configure:3937: checking for st_blksize in struct stat" >&5
3937 if eval "test \"`echo '$''{'ac_cv_struct_st_blksize'+set}'`\" = set"; then
3938 echo $ac_n "(cached) $ac_c" 1>&6
3940 cat > conftest.
$ac_ext <<EOF
3941 #line 3942 "configure"
3942 #include "confdefs.h"
3943 #include <sys/types.h>
3944 #include <sys/stat.h>
3946 struct stat s; s.st_blksize;
3949 if { (eval echo configure
:3950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3951 ac_cv_struct_st_blksize
=yes
3953 echo "configure: failed program was:" >&5
3954 cat conftest.
$ac_ext >&5
3956 ac_cv_struct_st_blksize
=no
3961 echo "$ac_t""$ac_cv_struct_st_blksize" 1>&6
3962 if test $ac_cv_struct_st_blksize = yes; then
3963 cat >> confdefs.h
<<\EOF
3964 #define HAVE_ST_BLKSIZE 1
3969 echo $ac_n "checking for st_blocks in struct stat""... $ac_c" 1>&6
3970 echo "configure:3971: checking for st_blocks in struct stat" >&5
3971 if eval "test \"`echo '$''{'ac_cv_struct_st_blocks'+set}'`\" = set"; then
3972 echo $ac_n "(cached) $ac_c" 1>&6
3974 cat > conftest.
$ac_ext <<EOF
3975 #line 3976 "configure"
3976 #include "confdefs.h"
3977 #include <sys/types.h>
3978 #include <sys/stat.h>
3980 struct stat s; s.st_blocks;
3983 if { (eval echo configure
:3984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3985 ac_cv_struct_st_blocks
=yes
3987 echo "configure: failed program was:" >&5
3988 cat conftest.
$ac_ext >&5
3990 ac_cv_struct_st_blocks
=no
3995 echo "$ac_t""$ac_cv_struct_st_blocks" 1>&6
3996 if test $ac_cv_struct_st_blocks = yes; then
3997 cat >> confdefs.h
<<\EOF
3998 #define HAVE_ST_BLOCKS 1
4002 LIBOBJS
="$LIBOBJS fileblocks.${ac_objext}"
4005 echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
4006 echo "configure:4007: checking for st_rdev in struct stat" >&5
4007 if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
4008 echo $ac_n "(cached) $ac_c" 1>&6
4010 cat > conftest.
$ac_ext <<EOF
4011 #line 4012 "configure"
4012 #include "confdefs.h"
4013 #include <sys/types.h>
4014 #include <sys/stat.h>
4016 struct stat s; s.st_rdev;
4019 if { (eval echo configure
:4020: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4021 ac_cv_struct_st_rdev
=yes
4023 echo "configure: failed program was:" >&5
4024 cat conftest.
$ac_ext >&5
4026 ac_cv_struct_st_rdev
=no
4031 echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
4032 if test $ac_cv_struct_st_rdev = yes; then
4033 cat >> confdefs.h
<<\EOF
4034 #define HAVE_ST_RDEV 1
4039 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
4040 echo "configure:4041: checking whether struct tm is in sys/time.h or time.h" >&5
4041 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
4042 echo $ac_n "(cached) $ac_c" 1>&6
4044 cat > conftest.
$ac_ext <<EOF
4045 #line 4046 "configure"
4046 #include "confdefs.h"
4047 #include <sys/types.h>
4050 struct tm *tp; tp->tm_sec;
4053 if { (eval echo configure
:4054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4055 ac_cv_struct_tm
=time.h
4057 echo "configure: failed program was:" >&5
4058 cat conftest.
$ac_ext >&5
4060 ac_cv_struct_tm
=sys
/time.h
4065 echo "$ac_t""$ac_cv_struct_tm" 1>&6
4066 if test $ac_cv_struct_tm = sys
/time.h
; then
4067 cat >> confdefs.h
<<\EOF
4068 #define TM_IN_SYS_TIME 1
4073 echo $ac_n "checking for tm_zone in struct tm""... $ac_c" 1>&6
4074 echo "configure:4075: checking for tm_zone in struct tm" >&5
4075 if eval "test \"`echo '$''{'ac_cv_struct_tm_zone'+set}'`\" = set"; then
4076 echo $ac_n "(cached) $ac_c" 1>&6
4078 cat > conftest.
$ac_ext <<EOF
4079 #line 4080 "configure"
4080 #include "confdefs.h"
4081 #include <sys/types.h>
4082 #include <$ac_cv_struct_tm>
4084 struct tm tm; tm.tm_zone;
4087 if { (eval echo configure
:4088: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4089 ac_cv_struct_tm_zone
=yes
4091 echo "configure: failed program was:" >&5
4092 cat conftest.
$ac_ext >&5
4094 ac_cv_struct_tm_zone
=no
4099 echo "$ac_t""$ac_cv_struct_tm_zone" 1>&6
4100 if test "$ac_cv_struct_tm_zone" = yes; then
4101 cat >> confdefs.h
<<\EOF
4102 #define HAVE_TM_ZONE 1
4106 echo $ac_n "checking for tzname""... $ac_c" 1>&6
4107 echo "configure:4108: checking for tzname" >&5
4108 if eval "test \"`echo '$''{'ac_cv_var_tzname'+set}'`\" = set"; then
4109 echo $ac_n "(cached) $ac_c" 1>&6
4111 cat > conftest.
$ac_ext <<EOF
4112 #line 4113 "configure"
4113 #include "confdefs.h"
4115 #ifndef tzname /* For SGI. */
4116 extern char *tzname[]; /* RS6000 and others reject char **tzname. */
4122 if { (eval echo configure
:4123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4124 ac_cv_var_tzname
=yes
4126 echo "configure: failed program was:" >&5
4127 cat conftest.
$ac_ext >&5
4134 echo "$ac_t""$ac_cv_var_tzname" 1>&6
4135 if test $ac_cv_var_tzname = yes; then
4136 cat >> confdefs.h
<<\EOF
4137 #define HAVE_TZNAME 1
4145 echo $ac_n "checking for working const""... $ac_c" 1>&6
4146 echo "configure:4147: checking for working const" >&5
4147 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4150 cat > conftest.
$ac_ext <<EOF
4151 #line 4152 "configure"
4152 #include "confdefs.h"
4156 /* Ultrix mips cc rejects this. */
4157 typedef int charset[2]; const charset x;
4158 /* SunOS 4.1.1 cc rejects this. */
4159 char const *const *ccp;
4161 /* NEC SVR4.0.2 mips cc rejects this. */
4162 struct point {int x, y;};
4163 static struct point const zero = {0,0};
4164 /* AIX XL C 1.02.0.0 rejects this.
4165 It does not let you subtract one const X* pointer from another in an arm
4166 of an if-expression whose if-part is not a constant expression */
4167 const char *g = "string";
4168 ccp = &g + (g ? g-g : 0);
4169 /* HPUX 7.0 cc rejects these. */
4172 ccp = (char const *const *) p;
4173 { /* SCO 3.2v4 cc rejects this. */
4175 char const *s = 0 ? (char *) 0 : (char const *) 0;
4179 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4181 const int *foo = &x[0];
4184 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4185 typedef const int *iptr;
4189 { /* AIX XL C 1.02.0.0 rejects this saying
4190 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4191 struct s { int j; const int *ap[3]; };
4192 struct s *b; b->j = 5;
4194 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4200 if { (eval echo configure
:4201: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4204 echo "configure: failed program was:" >&5
4205 cat conftest.
$ac_ext >&5
4212 echo "$ac_t""$ac_cv_c_const" 1>&6
4213 if test $ac_cv_c_const = no
; then
4214 cat >> confdefs.h
<<\EOF
4220 echo $ac_n "checking for inline""... $ac_c" 1>&6
4221 echo "configure:4222: checking for inline" >&5
4222 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4226 for ac_kw
in inline __inline__ __inline
; do
4227 cat > conftest.
$ac_ext <<EOF
4228 #line 4229 "configure"
4229 #include "confdefs.h"
4235 if { (eval echo configure
:4236: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4237 ac_cv_c_inline
=$ac_kw; break
4239 echo "configure: failed program was:" >&5
4240 cat conftest.
$ac_ext >&5
4247 echo "$ac_t""$ac_cv_c_inline" 1>&6
4248 case "$ac_cv_c_inline" in
4250 no
) cat >> confdefs.h
<<\EOF
4254 *) cat >> confdefs.h
<<EOF
4255 #define inline $ac_cv_c_inline
4260 echo $ac_n "checking whether char is unsigned""... $ac_c" 1>&6
4261 echo "configure:4262: checking whether char is unsigned" >&5
4262 if eval "test \"`echo '$''{'ac_cv_c_char_unsigned'+set}'`\" = set"; then
4263 echo $ac_n "(cached) $ac_c" 1>&6
4265 if test "$GCC" = yes; then
4266 # GCC predefines this symbol on systems where it applies.
4267 cat > conftest.
$ac_ext <<EOF
4268 #line 4269 "configure"
4269 #include "confdefs.h"
4270 #ifdef __CHAR_UNSIGNED__
4275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4276 egrep "yes" >/dev
/null
2>&1; then
4278 ac_cv_c_char_unsigned
=yes
4281 ac_cv_c_char_unsigned
=no
4286 if test "$cross_compiling" = yes; then
4287 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4289 cat > conftest.
$ac_ext <<EOF
4290 #line 4291 "configure"
4291 #include "confdefs.h"
4292 /* volatile prevents gcc2 from optimizing the test away on sparcs. */
4293 #if !defined(__STDC__) || __STDC__ != 1
4297 volatile char c = 255; exit(c < 0);
4300 if { (eval echo configure
:4301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4302 ac_cv_c_char_unsigned
=yes
4304 echo "configure: failed program was:" >&5
4305 cat conftest.
$ac_ext >&5
4307 ac_cv_c_char_unsigned
=no
4315 echo "$ac_t""$ac_cv_c_char_unsigned" 1>&6
4316 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
4317 cat >> confdefs.h
<<\EOF
4318 #define __CHAR_UNSIGNED__ 1
4323 echo $ac_n "checking for long double""... $ac_c" 1>&6
4324 echo "configure:4325: checking for long double" >&5
4325 if eval "test \"`echo '$''{'ac_cv_c_long_double'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4328 if test "$GCC" = yes; then
4329 ac_cv_c_long_double
=yes
4331 if test "$cross_compiling" = yes; then
4332 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4334 cat > conftest.
$ac_ext <<EOF
4335 #line 4336 "configure"
4336 #include "confdefs.h"
4338 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
4339 long double foo = 0.0;
4340 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
4341 exit(sizeof(long double) < sizeof(double)); }
4343 if { (eval echo configure
:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4345 ac_cv_c_long_double
=yes
4347 echo "configure: failed program was:" >&5
4348 cat conftest.
$ac_ext >&5
4350 ac_cv_c_long_double
=no
4358 echo "$ac_t""$ac_cv_c_long_double" 1>&6
4359 if test $ac_cv_c_long_double = yes; then
4360 cat >> confdefs.h
<<\EOF
4361 #define HAVE_LONG_DOUBLE 1
4367 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
4368 echo "configure:4369: checking whether byte ordering is bigendian" >&5
4369 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
4370 echo $ac_n "(cached) $ac_c" 1>&6
4372 ac_cv_c_bigendian
=unknown
4373 # See if sys/param.h defines the BYTE_ORDER macro.
4374 cat > conftest.
$ac_ext <<EOF
4375 #line 4376 "configure"
4376 #include "confdefs.h"
4377 #include <sys/types.h>
4378 #include <sys/param.h>
4381 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4386 if { (eval echo configure
:4387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4388 # It does; now see whether it defined to BIG_ENDIAN or not.
4389 cat > conftest.
$ac_ext <<EOF
4390 #line 4391 "configure"
4391 #include "confdefs.h"
4392 #include <sys/types.h>
4393 #include <sys/param.h>
4396 #if BYTE_ORDER != BIG_ENDIAN
4401 if { (eval echo configure
:4402: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4403 ac_cv_c_bigendian
=yes
4405 echo "configure: failed program was:" >&5
4406 cat conftest.
$ac_ext >&5
4408 ac_cv_c_bigendian
=no
4412 echo "configure: failed program was:" >&5
4413 cat conftest.
$ac_ext >&5
4416 if test $ac_cv_c_bigendian = unknown
; then
4417 if test "$cross_compiling" = yes; then
4418 { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
4420 cat > conftest.
$ac_ext <<EOF
4421 #line 4422 "configure"
4422 #include "confdefs.h"
4424 /* Are we little or big endian? From Harbison&Steele. */
4428 char c[sizeof (long)];
4431 exit (u.c[sizeof (long) - 1] == 1);
4434 if { (eval echo configure
:4435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4436 ac_cv_c_bigendian
=no
4438 echo "configure: failed program was:" >&5
4439 cat conftest.
$ac_ext >&5
4441 ac_cv_c_bigendian
=yes
4449 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
4450 if test $ac_cv_c_bigendian = yes; then
4451 cat >> confdefs.h
<<\EOF
4452 #define WORDS_BIGENDIAN 1
4458 echo $ac_n "checking size of int *""... $ac_c" 1>&6
4459 echo "configure:4460: checking size of int *" >&5
4460 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
4461 echo $ac_n "(cached) $ac_c" 1>&6
4463 if test "$cross_compiling" = yes; then
4464 ac_cv_sizeof_int_p
=4
4466 cat > conftest.
$ac_ext <<EOF
4467 #line 4468 "configure"
4468 #include "confdefs.h"
4472 FILE *f=fopen("conftestval", "w");
4474 fprintf(f, "%d\n", sizeof(int *));
4478 if { (eval echo configure
:4479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4480 ac_cv_sizeof_int_p
=`cat conftestval`
4482 echo "configure: failed program was:" >&5
4483 cat conftest.
$ac_ext >&5
4485 ac_cv_sizeof_int_p
=0
4491 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
4492 cat >> confdefs.h
<<EOF
4493 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
4497 echo $ac_n "checking size of int""... $ac_c" 1>&6
4498 echo "configure:4499: checking size of int" >&5
4499 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 if test "$cross_compiling" = yes; then
4505 cat > conftest.
$ac_ext <<EOF
4506 #line 4507 "configure"
4507 #include "confdefs.h"
4511 FILE *f=fopen("conftestval", "w");
4513 fprintf(f, "%d\n", sizeof(int));
4517 if { (eval echo configure
:4518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4519 ac_cv_sizeof_int
=`cat conftestval`
4521 echo "configure: failed program was:" >&5
4522 cat conftest.
$ac_ext >&5
4530 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
4531 cat >> confdefs.h
<<EOF
4532 #define SIZEOF_INT $ac_cv_sizeof_int
4536 echo $ac_n "checking size of long""... $ac_c" 1>&6
4537 echo "configure:4538: checking size of long" >&5
4538 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
4539 echo $ac_n "(cached) $ac_c" 1>&6
4541 if test "$cross_compiling" = yes; then
4544 cat > conftest.
$ac_ext <<EOF
4545 #line 4546 "configure"
4546 #include "confdefs.h"
4550 FILE *f=fopen("conftestval", "w");
4552 fprintf(f, "%d\n", sizeof(long));
4556 if { (eval echo configure
:4557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4558 ac_cv_sizeof_long
=`cat conftestval`
4560 echo "configure: failed program was:" >&5
4561 cat conftest.
$ac_ext >&5
4569 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
4570 cat >> confdefs.h
<<EOF
4571 #define SIZEOF_LONG $ac_cv_sizeof_long
4575 echo $ac_n "checking size of long long""... $ac_c" 1>&6
4576 echo "configure:4577: checking size of long long" >&5
4577 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
4578 echo $ac_n "(cached) $ac_c" 1>&6
4580 if test "$cross_compiling" = yes; then
4581 ac_cv_sizeof_long_long
=0
4583 cat > conftest.
$ac_ext <<EOF
4584 #line 4585 "configure"
4585 #include "confdefs.h"
4589 FILE *f=fopen("conftestval", "w");
4591 fprintf(f, "%d\n", sizeof(long long));
4595 if { (eval echo configure
:4596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4597 ac_cv_sizeof_long_long
=`cat conftestval`
4599 echo "configure: failed program was:" >&5
4600 cat conftest.
$ac_ext >&5
4602 ac_cv_sizeof_long_long
=0
4608 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
4609 cat >> confdefs.h
<<EOF
4610 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
4618 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4619 ac_cpp
='$CXXCPP $CPPFLAGS'
4620 ac_compile
='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4621 ac_link
='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4622 cross_compiling
=$ac_cv_prog_cxx_cross
4625 for ac_hdr
in iostream
4627 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4628 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4629 echo "configure:4630: checking for $ac_hdr" >&5
4630 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4631 echo $ac_n "(cached) $ac_c" 1>&6
4633 cat > conftest.
$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4638 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4639 { (eval echo configure
:4640: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4640 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4641 if test -z "$ac_err"; then
4643 eval "ac_cv_header_$ac_safe=yes"
4646 echo "configure: failed program was:" >&5
4647 cat conftest.
$ac_ext >&5
4649 eval "ac_cv_header_$ac_safe=no"
4653 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4654 echo "$ac_t""yes" 1>&6
4655 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4656 cat >> confdefs.h
<<EOF
4657 #define $ac_tr_hdr 1
4661 echo "$ac_t""no" 1>&6
4665 if test "x$HAVE_IOSTREAM" = "x" ; then
4666 cat >> confdefs.h
<<\EOF
4667 #define wxUSE_IOSTREAMH 1
4672 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
4673 echo "configure:4674: checking if C++ compiler supports bool" >&5
4674 if test "$cross_compiling" = yes; then
4675 echo "$ac_t""no assumed for cross-compilation" 1>&6
4677 cat > conftest.
$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4681 extern "C" void exit(int);
4693 if { (eval echo configure
:4694: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4695 cat >> confdefs.h
<<\EOF
4698 echo "$ac_t""yes" 1>&6
4700 echo "configure: failed program was:" >&5
4701 cat conftest.
$ac_ext >&5
4703 echo "$ac_t""no" 1>&6
4709 echo $ac_n "checking if size_t and int are different types""... $ac_c" 1>&6
4710 echo "configure:4711: checking if size_t and int are different types" >&5
4711 if test "$cross_compiling" = yes; then
4712 echo "$ac_t""no assumed for cross-compilation" 1>&6
4714 cat > conftest.
$ac_ext <<EOF
4715 #line 4716 "configure"
4716 #include "confdefs.h"
4718 extern "C" void exit(int);
4723 void wxFoo(int i) { }
4724 void wxFoo(size_t n) { }
4741 if { (eval echo configure
:4742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
4743 cat >> confdefs.h
<<\EOF
4744 #define wxUSE_SIZE_T_STRING_OPERATOR 1
4746 echo "$ac_t""yes" 1>&6
4748 echo "configure: failed program was:" >&5
4749 cat conftest.
$ac_ext >&5
4751 echo "$ac_t""no" 1>&6
4758 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
4759 ac_cpp
='$CPP $CPPFLAGS'
4760 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
4761 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4762 cross_compiling
=$ac_cv_prog_cc_cross
4768 echo $ac_n "checking for long file names""... $ac_c" 1>&6
4769 echo "configure:4770: checking for long file names" >&5
4770 if eval "test \"`echo '$''{'ac_cv_sys_long_file_names'+set}'`\" = set"; then
4771 echo $ac_n "(cached) $ac_c" 1>&6
4773 ac_cv_sys_long_file_names
=yes
4774 # Test for long file names in all the places we know might matter:
4775 # . the current directory, where building will happen
4776 # $prefix/lib where we will be installing things
4777 # $exec_prefix/lib likewise
4778 # eval it to expand exec_prefix.
4779 # $TMPDIR if set, where it might want to write temporary files
4780 # if $TMPDIR is not set:
4781 # /tmp where it might want to write temporary files
4784 if test -n "$TMPDIR" && test -d "$TMPDIR" && test -w "$TMPDIR"; then
4785 ac_tmpdirs
="$TMPDIR"
4787 ac_tmpdirs
='/tmp /var/tmp /usr/tmp'
4789 for ac_dir
in .
$ac_tmpdirs `eval echo $prefix/lib $exec_prefix/lib` ; do
4790 test -d $ac_dir || continue
4791 test -w $ac_dir || continue # It is less confusing to not echo anything here.
4792 (echo 1 > $ac_dir/conftest9012345
) 2>/dev
/null
4793 (echo 2 > $ac_dir/conftest9012346
) 2>/dev
/null
4794 val
=`cat $ac_dir/conftest9012345 2>/dev/null`
4795 if test ! -f $ac_dir/conftest9012345
|| test "$val" != 1; then
4796 ac_cv_sys_long_file_names
=no
4797 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4800 rm -f $ac_dir/conftest9012345
$ac_dir/conftest9012346
2>/dev
/null
4804 echo "$ac_t""$ac_cv_sys_long_file_names" 1>&6
4805 if test $ac_cv_sys_long_file_names = yes; then
4806 cat >> confdefs.h
<<\EOF
4807 #define HAVE_LONG_FILE_NAMES 1
4815 for ac_prog
in 'bison -y' byacc
4817 # Extract the first word of "$ac_prog", so it can be a program name with args.
4818 set dummy
$ac_prog; ac_word
=$2
4819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4820 echo "configure:4821: checking for $ac_word" >&5
4821 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
4822 echo $ac_n "(cached) $ac_c" 1>&6
4824 if test -n "$YACC"; then
4825 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
4827 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4829 for ac_dir
in $ac_dummy; do
4830 test -z "$ac_dir" && ac_dir
=.
4831 if test -f $ac_dir/$ac_word; then
4832 ac_cv_prog_YACC
="$ac_prog"
4839 YACC
="$ac_cv_prog_YACC"
4840 if test -n "$YACC"; then
4841 echo "$ac_t""$YACC" 1>&6
4843 echo "$ac_t""no" 1>&6
4846 test -n "$YACC" && break
4848 test -n "$YACC" || YACC
="yacc"
4851 # Extract the first word of "flex", so it can be a program name with args.
4852 set dummy flex
; ac_word
=$2
4853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4854 echo "configure:4855: checking for $ac_word" >&5
4855 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
4856 echo $ac_n "(cached) $ac_c" 1>&6
4858 if test -n "$LEX"; then
4859 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4861 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
4863 for ac_dir
in $ac_dummy; do
4864 test -z "$ac_dir" && ac_dir
=.
4865 if test -f $ac_dir/$ac_word; then
4866 ac_cv_prog_LEX
="flex"
4871 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX
="lex"
4874 LEX
="$ac_cv_prog_LEX"
4875 if test -n "$LEX"; then
4876 echo "$ac_t""$LEX" 1>&6
4878 echo "$ac_t""no" 1>&6
4881 if test -z "$LEXLIB"
4887 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
4888 echo "configure:4889: checking for yywrap in -l$ac_lib" >&5
4889 ac_lib_var
=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
4890 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4891 echo $ac_n "(cached) $ac_c" 1>&6
4893 ac_save_LIBS
="$LIBS"
4894 LIBS
="-l$ac_lib $LIBS"
4895 cat > conftest.
$ac_ext <<EOF
4896 #line 4897 "configure"
4897 #include "confdefs.h"
4898 /* Override any gcc2 internal prototype to avoid an error. */
4899 /* We use char because int might match the return type of a gcc2
4900 builtin and then its argument prototype would still apply. */
4907 if { (eval echo configure
:4908: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4909 eval "ac_cv_lib_$ac_lib_var=yes"
4911 echo "configure: failed program was:" >&5
4912 cat conftest.
$ac_ext >&5
4914 eval "ac_cv_lib_$ac_lib_var=no"
4917 LIBS
="$ac_save_LIBS"
4920 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4921 echo "$ac_t""yes" 1>&6
4924 echo "$ac_t""no" 1>&6
4929 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
4930 echo "configure:4931: checking lex output file root" >&5
4931 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
4932 echo $ac_n "(cached) $ac_c" 1>&6
4934 # The minimal lex program is just a single line: %%. But some broken lexes
4935 # (Solaris, I think it was) want two %% lines, so accommodate them.
4938 if test -f lex.yy.c
; then
4939 ac_cv_prog_lex_root
=lex.yy
4940 elif test -f lexyy.c
; then
4941 ac_cv_prog_lex_root
=lexyy
4943 { echo "configure: error: cannot find output from $LEX; giving up" 1>&2; exit 1; }
4947 echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
4948 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
4950 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
4951 echo "configure:4952: checking whether yytext is a pointer" >&5
4952 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4955 # POSIX says lex can declare yytext either as a pointer or an array; the
4956 # default is implementation-dependent. Figure out which it is, since
4957 # not all implementations provide the %pointer and %array declarations.
4958 ac_cv_prog_lex_yytext_pointer
=no
4959 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4960 ac_save_LIBS
="$LIBS"
4961 LIBS
="$LIBS $LEXLIB"
4962 cat > conftest.
$ac_ext <<EOF
4963 #line 4964 "configure"
4964 #include "confdefs.h"
4965 `cat $LEX_OUTPUT_ROOT.c`
4970 if { (eval echo configure
:4971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4972 ac_cv_prog_lex_yytext_pointer
=yes
4974 echo "configure: failed program was:" >&5
4975 cat conftest.
$ac_ext >&5
4978 LIBS
="$ac_save_LIBS"
4979 rm -f "${LEX_OUTPUT_ROOT}.c"
4983 echo "$ac_t""$ac_cv_prog_lex_yytext_pointer" 1>&6
4984 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4985 cat >> confdefs.h
<<\EOF
4986 #define YYTEXT_POINTER 1
4994 for ac_func
in dlopen
4996 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4997 echo "configure:4998: checking for $ac_func" >&5
4998 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4999 echo $ac_n "(cached) $ac_c" 1>&6
5001 cat > conftest.
$ac_ext <<EOF
5002 #line 5003 "configure"
5003 #include "confdefs.h"
5004 /* System header to define __stub macros and hopefully few prototypes,
5005 which can conflict with char $ac_func(); below. */
5007 /* Override any gcc2 internal prototype to avoid an error. */
5008 /* We use char because int might match the return type of a gcc2
5009 builtin and then its argument prototype would still apply. */
5015 /* The GNU C library defines this for functions which it implements
5016 to always fail with ENOSYS. Some functions are actually named
5017 something starting with __ and the normal name is an alias. */
5018 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5026 if { (eval echo configure
:5027: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5028 eval "ac_cv_func_$ac_func=yes"
5030 echo "configure: failed program was:" >&5
5031 cat conftest.
$ac_ext >&5
5033 eval "ac_cv_func_$ac_func=no"
5038 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5039 echo "$ac_t""yes" 1>&6
5040 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5041 cat >> confdefs.h
<<EOF
5042 #define $ac_tr_func 1
5044 cat >> confdefs.h
<<\EOF
5045 #define HAVE_LIBDL 1
5049 echo "$ac_t""no" 1>&6
5050 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
5051 echo "configure:5052: checking for dlopen in -ldl" >&5
5052 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
5053 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5054 echo $ac_n "(cached) $ac_c" 1>&6
5056 ac_save_LIBS
="$LIBS"
5058 cat > conftest.
$ac_ext <<EOF
5059 #line 5060 "configure"
5060 #include "confdefs.h"
5061 /* Override any gcc2 internal prototype to avoid an error. */
5062 /* We use char because int might match the return type of a gcc2
5063 builtin and then its argument prototype would still apply. */
5070 if { (eval echo configure
:5071: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5072 eval "ac_cv_lib_$ac_lib_var=yes"
5074 echo "configure: failed program was:" >&5
5075 cat conftest.
$ac_ext >&5
5077 eval "ac_cv_lib_$ac_lib_var=no"
5080 LIBS
="$ac_save_LIBS"
5083 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5084 echo "$ac_t""yes" 1>&6
5085 cat >> confdefs.h
<<\EOF
5086 #define HAVE_LIBDL 1
5090 echo "$ac_t""no" 1>&6
5091 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
5092 echo "configure:5093: checking for dld_link in -ldld" >&5
5093 ac_lib_var
=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
5094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5095 echo $ac_n "(cached) $ac_c" 1>&6
5097 ac_save_LIBS
="$LIBS"
5099 cat > conftest.
$ac_ext <<EOF
5100 #line 5101 "configure"
5101 #include "confdefs.h"
5102 /* Override any gcc2 internal prototype to avoid an error. */
5103 /* We use char because int might match the return type of a gcc2
5104 builtin and then its argument prototype would still apply. */
5111 if { (eval echo configure
:5112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5113 eval "ac_cv_lib_$ac_lib_var=yes"
5115 echo "configure: failed program was:" >&5
5116 cat conftest.
$ac_ext >&5
5118 eval "ac_cv_lib_$ac_lib_var=no"
5121 LIBS
="$ac_save_LIBS"
5124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5125 echo "$ac_t""yes" 1>&6
5126 cat >> confdefs.h
<<\EOF
5131 echo "$ac_t""no" 1>&6
5132 for ac_func
in shl_load
5134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5135 echo "configure:5136: checking for $ac_func" >&5
5136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5137 echo $ac_n "(cached) $ac_c" 1>&6
5139 cat > conftest.
$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5142 /* System header to define __stub macros and hopefully few prototypes,
5143 which can conflict with char $ac_func(); below. */
5145 /* Override any gcc2 internal prototype to avoid an error. */
5146 /* We use char because int might match the return type of a gcc2
5147 builtin and then its argument prototype would still apply. */
5153 /* The GNU C library defines this for functions which it implements
5154 to always fail with ENOSYS. Some functions are actually named
5155 something starting with __ and the normal name is an alias. */
5156 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5164 if { (eval echo configure
:5165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5166 eval "ac_cv_func_$ac_func=yes"
5168 echo "configure: failed program was:" >&5
5169 cat conftest.
$ac_ext >&5
5171 eval "ac_cv_func_$ac_func=no"
5176 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5177 echo "$ac_t""yes" 1>&6
5178 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5179 cat >> confdefs.h
<<EOF
5180 #define $ac_tr_func 1
5182 cat >> confdefs.h
<<\EOF
5183 #define HAVE_SHL_LOAD 1
5187 echo "$ac_t""no" 1>&6
5203 echo $ac_n "checking for underscore before symbols""... $ac_c" 1>&6
5204 echo "configure:5205: checking for underscore before symbols" >&5
5205 if eval "test \"`echo '$''{'libltdl_cv_uscore'+set}'`\" = set"; then
5206 echo $ac_n "(cached) $ac_c" 1>&6
5209 echo "main(){int i=1;} fnord(){int i=23; int ltuae=42;}" > conftest.c
5210 ${CC} -c conftest.c
> /dev
/null
5211 if (nm conftest.o
| grep _fnord
) > /dev
/null
; then
5212 libltdl_cv_uscore
=yes
5214 libltdl_cv_uscore
=no
5220 echo "$ac_t""$libltdl_cv_uscore" 1>&6
5222 if test x
"$libltdl_cv_uscore" = xyes
; then
5223 if test x
"$ac_cv_func_dlopen" = xyes
||
5224 test x
"$ac_cv_lib_dl_dlopen" = xyes
; then
5225 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
5226 echo "configure:5227: checking whether we have to add an underscore for dlsym" >&5
5227 if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
5228 echo $ac_n "(cached) $ac_c" 1>&6
5230 if test "$cross_compiling" = yes; then
5231 libltdl_cv_need_uscore
=no
5234 cat > conftest.
$ac_ext <<EOF
5235 #line 5236 "configure"
5236 #include "confdefs.h"
5240 fnord() { int i=42;}
5241 main() { void *self, *ptr1, *ptr2; self=dlopen(NULL,RTLD_LAZY);
5242 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
5243 if(ptr1 && !ptr2) exit(0); } exit(1); }
5246 if { (eval echo configure
:5247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
5248 libltdl_cv_need_uscore
=no
5250 echo "configure: failed program was:" >&5
5251 cat conftest.
$ac_ext >&5
5253 libltdl_cv_need_uscore
=yes
5260 echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
5264 if test x
"$libltdl_cv_need_uscore" = xyes
; then
5265 cat >> confdefs.h
<<\EOF
5266 #define NEED_USCORE 1
5272 for ac_func
in strerror
5274 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
5275 echo "configure:5276: checking for $ac_func" >&5
5276 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
5277 echo $ac_n "(cached) $ac_c" 1>&6
5279 cat > conftest.
$ac_ext <<EOF
5280 #line 5281 "configure"
5281 #include "confdefs.h"
5282 /* System header to define __stub macros and hopefully few prototypes,
5283 which can conflict with char $ac_func(); below. */
5285 /* Override any gcc2 internal prototype to avoid an error. */
5286 /* We use char because int might match the return type of a gcc2
5287 builtin and then its argument prototype would still apply. */
5293 /* The GNU C library defines this for functions which it implements
5294 to always fail with ENOSYS. Some functions are actually named
5295 something starting with __ and the normal name is an alias. */
5296 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5304 if { (eval echo configure
:5305: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
5306 eval "ac_cv_func_$ac_func=yes"
5308 echo "configure: failed program was:" >&5
5309 cat conftest.
$ac_ext >&5
5311 eval "ac_cv_func_$ac_func=no"
5316 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
5317 echo "$ac_t""yes" 1>&6
5318 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
5319 cat >> confdefs.h
<<EOF
5320 #define $ac_tr_func 1
5324 echo "$ac_t""no" 1>&6
5330 CHECK_INCLUDE
="-I/usr/include $X_CFLAGS"
5331 CHECK_LIB
="-L/lib -L/usr/lib $X_LIBS"
5335 # Make sure we can run config.sub.
5336 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
5337 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
5340 echo $ac_n "checking host system type""... $ac_c" 1>&6
5341 echo "configure:5342: checking host system type" >&5
5344 case "$host_alias" in
5348 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
5349 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
5351 *) host_alias
=$nonopt ;;
5355 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
5356 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5357 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5358 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5359 echo "$ac_t""$host" 1>&6
5362 configuration
=$host_alias
5384 cat >> confdefs.h
<<\EOF
5388 case "${canonical}" in
5391 cat >> confdefs.h
<<\EOF
5398 cat >> confdefs.h
<<\EOF
5403 if test "x$TMP" = "xalpha"
5406 cat >> confdefs.h
<<\EOF
5412 *-*-irix5* | *-*-irix6* )
5415 cat >> confdefs.h
<<\EOF
5419 cat >> confdefs.h
<<\EOF
5428 cat >> confdefs.h
<<\EOF
5432 cat >> confdefs.h
<<\EOF
5433 #define __SOLARIS__ 1
5436 cat >> confdefs.h
<<\EOF
5445 cat >> confdefs.h
<<\EOF
5449 cat >> confdefs.h
<<\EOF
5453 cat >> confdefs.h
<<\EOF
5458 *-*-freebsd* | *-*-netbsd*)
5461 cat >> confdefs.h
<<\EOF
5462 #define __FREEBSD__ 1
5465 cat >> confdefs.h
<<\EOF
5473 cat >> confdefs.h
<<\EOF
5477 cat >> confdefs.h
<<\EOF
5485 cat >> confdefs.h
<<\EOF
5489 cat >> confdefs.h
<<\EOF
5497 cat >> confdefs.h
<<\EOF
5501 cat >> confdefs.h
<<\EOF
5510 cat >> confdefs.h
<<\EOF
5514 cat >> confdefs.h
<<\EOF
5518 cat >> confdefs.h
<<\EOF
5524 { echo "configure: error: I don't know your system type." 1>&2; exit 1; }
5529 rm -f ${OSTYPE}.system.cache.tmp
5530 touch ${OSTYPE}.system.cache.tmp
5531 touch ${OSTYPE}.system.cache
5536 DEFAULT_wxUSE_MOTIF
=0
5538 DEFAULT_wxUSE_THREADS
=0
5540 DEFAULT_wxUSE_SHARED
=1
5541 DEFAULT_wxUSE_OPTIMISE
=1
5542 DEFAULT_wxUSE_PROFILE
=0
5543 DEFAULT_wxUSE_DEBUG_FLAG
=0
5544 DEFAULT_wxUSE_DEBUG_INFO
=0
5545 DEFAULT_wxUSE_MEM_TRACING
=0
5546 DEFAULT_wxUSE_DMALLOC
=0
5547 DEFAULT_wxUSE_APPLE_IEEE
=1
5548 DEFAULT_wxUSE_IOSTREAMH
=1
5550 DEFAULT_wxUSE_ZLIB
=1
5551 DEFAULT_wxUSE_LIBPNG
=1
5552 DEFAULT_wxUSE_LIBJPEG
=1
5553 DEFAULT_wxUSE_ODBC
=1
5555 DEFAULT_wxUSE_TIMEDATE
=1
5556 DEFAULT_wxUSE_INTL
=1
5557 DEFAULT_wxUSE_CONFIG
=1
5558 DEFAULT_wxUSE_STREAMS
=1
5559 DEFAULT_wxUSE_SOCKETS
=1
5560 DEFAULT_wxUSE_SERIAL
=1
5561 DEFAULT_wxUSE_DYNLIB_CLASS
=1
5563 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
=1
5564 DEFAULT_WX_NORMALIZED_PS_FONTS
=1
5565 DEFAULT_wxUSE_POSTSCRIPT
=1
5568 DEFAULT_wxUSE_RESOURCES
=1
5569 DEFAULT_wxUSE_CLIPBOARD
=1
5570 DEFAULT_wxUSE_TOOLTIPS
=1
5571 DEFAULT_wxUSE_DRAG_AND_DROP
=1
5573 DEFAULT_wxUSE_MDI_ARCHITECTURE
=1
5574 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
=1
5575 DEFAULT_wxUSE_PRINTING_ARCHITECTURE
=1
5577 DEFAULT_wxUSE_PROLOGIO
=1
5578 DEFAULT_wxUSE_WX_RESOURCES
=1
5580 DEFAULT_wxUSE_HELP
=1
5582 DEFAULT_wxUSE_UNICODE
=0
5583 DEFAULT_wxUSE_WCSRTOMBS
=0
5587 echo $ac_n "checking "for gtk
"""... $ac_c" 1>&6
5588 echo "configure:5589: checking "for gtk
"" >&5
5589 # Check whether --with-gtk or --without-gtk was given.
5590 if test "${with_gtk+set}" = set; then
5592 if test "x$with_gtk" = xyes
; then
5593 ac_cv_use_gtk
='wxUSE_GTK="1"'
5595 ac_cv_use_gtk
='wxUSE_GTK="0"'
5599 LINE
=`grep "wxUSE_GTK" ${OSTYPE}.system.cache`
5600 if test "x$LINE" != x
; then
5601 eval "DEFAULT_$LINE"
5603 ac_cv_use_gtk
='wxUSE_GTK='$DEFAULT_wxUSE_GTK
5607 eval "$ac_cv_use_gtk"
5608 echo $ac_cv_use_gtk >> ${OSTYPE}.system.cache.tmp
5609 if test "$wxUSE_GTK" = 1; then
5610 echo "$ac_t""yes" 1>&6
5612 echo "$ac_t""no" 1>&6
5617 echo $ac_n "checking "for qt
"""... $ac_c" 1>&6
5618 echo "configure:5619: checking "for qt
"" >&5
5619 # Check whether --with-qt or --without-qt was given.
5620 if test "${with_qt+set}" = set; then
5622 if test "x$with_qt" = xyes
; then
5623 ac_cv_use_qt
='wxUSE_QT="1"'
5625 ac_cv_use_qt
='wxUSE_QT="0"'
5629 LINE
=`grep "wxUSE_QT" ${OSTYPE}.system.cache`
5630 if test "x$LINE" != x
; then
5631 eval "DEFAULT_$LINE"
5633 ac_cv_use_qt
='wxUSE_QT='$DEFAULT_wxUSE_QT
5637 eval "$ac_cv_use_qt"
5638 echo $ac_cv_use_qt >> ${OSTYPE}.system.cache.tmp
5639 if test "$wxUSE_QT" = 1; then
5640 echo "$ac_t""yes" 1>&6
5642 echo "$ac_t""no" 1>&6
5647 echo $ac_n "checking "for motif
"""... $ac_c" 1>&6
5648 echo "configure:5649: checking "for motif
"" >&5
5649 # Check whether --with-motif or --without-motif was given.
5650 if test "${with_motif+set}" = set; then
5651 withval
="$with_motif"
5652 if test "x$with_motif" = xyes
; then
5653 ac_cv_use_motif
='wxUSE_MOTIF="1"'
5655 ac_cv_use_motif
='wxUSE_MOTIF="0"'
5659 LINE
=`grep "wxUSE_MOTIF" ${OSTYPE}.system.cache`
5660 if test "x$LINE" != x
; then
5661 eval "DEFAULT_$LINE"
5663 ac_cv_use_motif
='wxUSE_MOTIF='$DEFAULT_wxUSE_MOTIF
5667 eval "$ac_cv_use_motif"
5668 echo $ac_cv_use_motif >> ${OSTYPE}.system.cache.tmp
5669 if test "$wxUSE_MOTIF" = 1; then
5670 echo "$ac_t""yes" 1>&6
5672 echo "$ac_t""no" 1>&6
5678 echo $ac_n "checking "for shared
"""... $ac_c" 1>&6
5679 echo "configure:5680: checking "for shared
"" >&5
5680 # Check whether --with-shared or --without-shared was given.
5681 if test "${with_shared+set}" = set; then
5682 withval
="$with_shared"
5683 if test "x$with_shared" = xyes
; then
5684 ac_cv_use_shared
='wxUSE_SHARED="1"'
5686 ac_cv_use_shared
='wxUSE_SHARED="0"'
5690 LINE
=`grep "wxUSE_SHARED" ${OSTYPE}.system.cache`
5691 if test "x$LINE" != x
; then
5692 eval "DEFAULT_$LINE"
5694 ac_cv_use_shared
='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
5698 eval "$ac_cv_use_shared"
5699 echo $ac_cv_use_shared >> ${OSTYPE}.system.cache.tmp
5700 if test "$wxUSE_SHARED" = 1; then
5701 echo "$ac_t""yes" 1>&6
5703 echo "$ac_t""no" 1>&6
5708 echo $ac_n "checking "for optimise
"""... $ac_c" 1>&6
5709 echo "configure:5710: checking "for optimise
"" >&5
5710 # Check whether --with-optimise or --without-optimise was given.
5711 if test "${with_optimise+set}" = set; then
5712 withval
="$with_optimise"
5713 if test "x$with_optimise" = xyes
; then
5714 ac_cv_use_optimise
='wxUSE_OPTIMISE="1"'
5716 ac_cv_use_optimise
='wxUSE_OPTIMISE="0"'
5720 LINE
=`grep "wxUSE_OPTIMISE" ${OSTYPE}.system.cache`
5721 if test "x$LINE" != x
; then
5722 eval "DEFAULT_$LINE"
5724 ac_cv_use_optimise
='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
5728 eval "$ac_cv_use_optimise"
5729 echo $ac_cv_use_optimise >> ${OSTYPE}.system.cache.tmp
5730 if test "$wxUSE_OPTIMISE" = 1; then
5731 echo "$ac_t""yes" 1>&6
5733 echo "$ac_t""no" 1>&6
5738 echo $ac_n "checking "for debug_flag
"""... $ac_c" 1>&6
5739 echo "configure:5740: checking "for debug_flag
"" >&5
5740 # Check whether --with-debug_flag or --without-debug_flag was given.
5741 if test "${with_debug_flag+set}" = set; then
5742 withval
="$with_debug_flag"
5743 if test "x$with_debug_flag" = xyes
; then
5744 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="1"'
5746 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG="0"'
5750 LINE
=`grep "wxUSE_DEBUG_FLAG" ${OSTYPE}.system.cache`
5751 if test "x$LINE" != x
; then
5752 eval "DEFAULT_$LINE"
5754 ac_cv_use_debug_flag
='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
5758 eval "$ac_cv_use_debug_flag"
5759 echo $ac_cv_use_debug_flag >> ${OSTYPE}.system.cache.tmp
5760 if test "$wxUSE_DEBUG_FLAG" = 1; then
5761 echo "$ac_t""yes" 1>&6
5763 echo "$ac_t""no" 1>&6
5768 echo $ac_n "checking "for debug_info
"""... $ac_c" 1>&6
5769 echo "configure:5770: checking "for debug_info
"" >&5
5770 # Check whether --with-debug_info or --without-debug_info was given.
5771 if test "${with_debug_info+set}" = set; then
5772 withval
="$with_debug_info"
5773 if test "x$with_debug_info" = xyes
; then
5774 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="1"'
5776 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO="0"'
5780 LINE
=`grep "wxUSE_DEBUG_INFO" ${OSTYPE}.system.cache`
5781 if test "x$LINE" != x
; then
5782 eval "DEFAULT_$LINE"
5784 ac_cv_use_debug_info
='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
5788 eval "$ac_cv_use_debug_info"
5789 echo $ac_cv_use_debug_info >> ${OSTYPE}.system.cache.tmp
5790 if test "$wxUSE_DEBUG_INFO" = 1; then
5791 echo "$ac_t""yes" 1>&6
5793 echo "$ac_t""no" 1>&6
5798 echo $ac_n "checking "for debug_gdb
"""... $ac_c" 1>&6
5799 echo "configure:5800: checking "for debug_gdb
"" >&5
5800 # Check whether --with-debug_gdb or --without-debug_gdb was given.
5801 if test "${with_debug_gdb+set}" = set; then
5802 withval
="$with_debug_gdb"
5803 if test "x$with_debug_gdb" = xyes
; then
5804 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="1"'
5806 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB="0"'
5810 LINE
=`grep "wxUSE_DEBUG_GDB" ${OSTYPE}.system.cache`
5811 if test "x$LINE" != x
; then
5812 eval "DEFAULT_$LINE"
5814 ac_cv_use_debug_gdb
='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
5818 eval "$ac_cv_use_debug_gdb"
5819 echo $ac_cv_use_debug_gdb >> ${OSTYPE}.system.cache.tmp
5820 if test "$wxUSE_DEBUG_GDB" = 1; then
5821 echo "$ac_t""yes" 1>&6
5823 echo "$ac_t""no" 1>&6
5828 echo $ac_n "checking "for mem_tracing
"""... $ac_c" 1>&6
5829 echo "configure:5830: checking "for mem_tracing
"" >&5
5830 # Check whether --with-mem_tracing or --without-mem_tracing was given.
5831 if test "${with_mem_tracing+set}" = set; then
5832 withval
="$with_mem_tracing"
5833 if test "x$with_mem_tracing" = xyes
; then
5834 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="1"'
5836 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING="0"'
5840 LINE
=`grep "wxUSE_MEM_TRACING" ${OSTYPE}.system.cache`
5841 if test "x$LINE" != x
; then
5842 eval "DEFAULT_$LINE"
5844 ac_cv_use_mem_tracing
='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
5848 eval "$ac_cv_use_mem_tracing"
5849 echo $ac_cv_use_mem_tracing >> ${OSTYPE}.system.cache.tmp
5850 if test "$wxUSE_MEM_TRACING" = 1; then
5851 echo "$ac_t""yes" 1>&6
5853 echo "$ac_t""no" 1>&6
5858 echo $ac_n "checking "for dmalloc
"""... $ac_c" 1>&6
5859 echo "configure:5860: checking "for dmalloc
"" >&5
5860 # Check whether --with-dmalloc or --without-dmalloc was given.
5861 if test "${with_dmalloc+set}" = set; then
5862 withval
="$with_dmalloc"
5863 if test "x$with_dmalloc" = xyes
; then
5864 ac_cv_use_dmalloc
='wxUSE_DMALLOC="1"'
5866 ac_cv_use_dmalloc
='wxUSE_DMALLOC="0"'
5870 LINE
=`grep "wxUSE_DMALLOC" ${OSTYPE}.system.cache`
5871 if test "x$LINE" != x
; then
5872 eval "DEFAULT_$LINE"
5874 ac_cv_use_dmalloc
='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
5878 eval "$ac_cv_use_dmalloc"
5879 echo $ac_cv_use_dmalloc >> ${OSTYPE}.system.cache.tmp
5880 if test "$wxUSE_DMALLOC" = 1; then
5881 echo "$ac_t""yes" 1>&6
5883 echo "$ac_t""no" 1>&6
5888 echo $ac_n "checking "for profile
"""... $ac_c" 1>&6
5889 echo "configure:5890: checking "for profile
"" >&5
5890 # Check whether --with-profile or --without-profile was given.
5891 if test "${with_profile+set}" = set; then
5892 withval
="$with_profile"
5893 if test "x$with_profile" = xyes
; then
5894 ac_cv_use_profile
='wxUSE_PROFILE="1"'
5896 ac_cv_use_profile
='wxUSE_PROFILE="0"'
5900 LINE
=`grep "wxUSE_PROFILE" ${OSTYPE}.system.cache`
5901 if test "x$LINE" != x
; then
5902 eval "DEFAULT_$LINE"
5904 ac_cv_use_profile
='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
5908 eval "$ac_cv_use_profile"
5909 echo $ac_cv_use_profile >> ${OSTYPE}.system.cache.tmp
5910 if test "$wxUSE_PROFILE" = 1; then
5911 echo "$ac_t""yes" 1>&6
5913 echo "$ac_t""no" 1>&6
5918 echo $ac_n "checking "for apple_ieee
"""... $ac_c" 1>&6
5919 echo "configure:5920: checking "for apple_ieee
"" >&5
5920 # Check whether --with-apple_ieee or --without-apple_ieee was given.
5921 if test "${with_apple_ieee+set}" = set; then
5922 withval
="$with_apple_ieee"
5923 if test "x$with_apple_ieee" = xyes
; then
5924 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="1"'
5926 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE="0"'
5930 LINE
=`grep "wxUSE_APPLE_IEEE" ${OSTYPE}.system.cache`
5931 if test "x$LINE" != x
; then
5932 eval "DEFAULT_$LINE"
5934 ac_cv_use_apple_ieee
='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
5938 eval "$ac_cv_use_apple_ieee"
5939 echo $ac_cv_use_apple_ieee >> ${OSTYPE}.system.cache.tmp
5940 if test "$wxUSE_APPLE_IEEE" = 1; then
5941 echo "$ac_t""yes" 1>&6
5943 echo "$ac_t""no" 1>&6
5948 echo $ac_n "checking "for threads
"""... $ac_c" 1>&6
5949 echo "configure:5950: checking "for threads
"" >&5
5950 # Check whether --with-threads or --without-threads was given.
5951 if test "${with_threads+set}" = set; then
5952 withval
="$with_threads"
5953 if test "x$with_threads" = xyes
; then
5954 ac_cv_use_threads
='wxUSE_THREADS="1"'
5956 ac_cv_use_threads
='wxUSE_THREADS="0"'
5960 LINE
=`grep "wxUSE_THREADS" ${OSTYPE}.system.cache`
5961 if test "x$LINE" != x
; then
5962 eval "DEFAULT_$LINE"
5964 ac_cv_use_threads
='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
5968 eval "$ac_cv_use_threads"
5969 echo $ac_cv_use_threads >> ${OSTYPE}.system.cache.tmp
5970 if test "$wxUSE_THREADS" = 1; then
5971 echo "$ac_t""yes" 1>&6
5973 echo "$ac_t""no" 1>&6
5978 echo $ac_n "checking "for dynlib
"""... $ac_c" 1>&6
5979 echo "configure:5980: checking "for dynlib
"" >&5
5980 # Check whether --with-dynlib or --without-dynlib was given.
5981 if test "${with_dynlib+set}" = set; then
5982 withval
="$with_dynlib"
5983 if test "x$with_dynlib" = xyes
; then
5984 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="1"'
5986 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS="0"'
5990 LINE
=`grep "wxUSE_DYNLIB_CLASS" ${OSTYPE}.system.cache`
5991 if test "x$LINE" != x
; then
5992 eval "DEFAULT_$LINE"
5994 ac_cv_use_dynlib
='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
5998 eval "$ac_cv_use_dynlib"
5999 echo $ac_cv_use_dynlib >> ${OSTYPE}.system.cache.tmp
6000 if test "$wxUSE_DYNLIB_CLASS" = 1; then
6001 echo "$ac_t""yes" 1>&6
6003 echo "$ac_t""no" 1>&6
6009 echo $ac_n "checking "for zlib
"""... $ac_c" 1>&6
6010 echo "configure:6011: checking "for zlib
"" >&5
6011 # Check whether --with-zlib or --without-zlib was given.
6012 if test "${with_zlib+set}" = set; then
6013 withval
="$with_zlib"
6014 if test "x$with_zlib" = xyes
; then
6015 ac_cv_use_zlib
='wxUSE_ZLIB="1"'
6017 ac_cv_use_zlib
='wxUSE_ZLIB="0"'
6021 LINE
=`grep "wxUSE_ZLIB" ${OSTYPE}.system.cache`
6022 if test "x$LINE" != x
; then
6023 eval "DEFAULT_$LINE"
6025 ac_cv_use_zlib
='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
6029 eval "$ac_cv_use_zlib"
6030 echo $ac_cv_use_zlib >> ${OSTYPE}.system.cache.tmp
6031 if test "$wxUSE_ZLIB" = 1; then
6032 echo "$ac_t""yes" 1>&6
6034 echo "$ac_t""no" 1>&6
6039 echo $ac_n "checking "for libpng
"""... $ac_c" 1>&6
6040 echo "configure:6041: checking "for libpng
"" >&5
6041 # Check whether --with-libpng or --without-libpng was given.
6042 if test "${with_libpng+set}" = set; then
6043 withval
="$with_libpng"
6044 if test "x$with_libpng" = xyes
; then
6045 ac_cv_use_libpng
='wxUSE_LIBPNG="1"'
6047 ac_cv_use_libpng
='wxUSE_LIBPNG="0"'
6051 LINE
=`grep "wxUSE_LIBPNG" ${OSTYPE}.system.cache`
6052 if test "x$LINE" != x
; then
6053 eval "DEFAULT_$LINE"
6055 ac_cv_use_libpng
='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
6059 eval "$ac_cv_use_libpng"
6060 echo $ac_cv_use_libpng >> ${OSTYPE}.system.cache.tmp
6061 if test "$wxUSE_LIBPNG" = 1; then
6062 echo "$ac_t""yes" 1>&6
6064 echo "$ac_t""no" 1>&6
6069 echo $ac_n "checking "for libjpeg
"""... $ac_c" 1>&6
6070 echo "configure:6071: checking "for libjpeg
"" >&5
6071 # Check whether --with-libjpeg or --without-libjpeg was given.
6072 if test "${with_libjpeg+set}" = set; then
6073 withval
="$with_libjpeg"
6074 if test "x$with_libjpeg" = xyes
; then
6075 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="1"'
6077 ac_cv_use_libjpeg
='wxUSE_LIBJPEG="0"'
6081 LINE
=`grep "wxUSE_LIBJPEG" ${OSTYPE}.system.cache`
6082 if test "x$LINE" != x
; then
6083 eval "DEFAULT_$LINE"
6085 ac_cv_use_libjpeg
='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
6089 eval "$ac_cv_use_libjpeg"
6090 echo $ac_cv_use_libjpeg >> ${OSTYPE}.system.cache.tmp
6091 if test "$wxUSE_LIBJPEG" = 1; then
6092 echo "$ac_t""yes" 1>&6
6094 echo "$ac_t""no" 1>&6
6099 echo $ac_n "checking "for odbc
"""... $ac_c" 1>&6
6100 echo "configure:6101: checking "for odbc
"" >&5
6101 # Check whether --with-odbc or --without-odbc was given.
6102 if test "${with_odbc+set}" = set; then
6103 withval
="$with_odbc"
6104 if test "x$with_odbc" = xyes
; then
6105 ac_cv_use_odbc
='wxUSE_ODBC="1"'
6107 ac_cv_use_odbc
='wxUSE_ODBC="0"'
6111 LINE
=`grep "wxUSE_ODBC" ${OSTYPE}.system.cache`
6112 if test "x$LINE" != x
; then
6113 eval "DEFAULT_$LINE"
6115 ac_cv_use_odbc
='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
6119 eval "$ac_cv_use_odbc"
6120 echo $ac_cv_use_odbc >> ${OSTYPE}.system.cache.tmp
6121 if test "$wxUSE_ODBC" = 1; then
6122 echo "$ac_t""yes" 1>&6
6124 echo "$ac_t""no" 1>&6
6130 echo $ac_n "checking "for timedate
"""... $ac_c" 1>&6
6131 echo "configure:6132: checking "for timedate
"" >&5
6132 # Check whether --with-timedate or --without-timedate was given.
6133 if test "${with_timedate+set}" = set; then
6134 withval
="$with_timedate"
6135 if test "x$with_timedate" = xyes
; then
6136 ac_cv_use_timedate
='wxUSE_TIMEDATE="1"'
6138 ac_cv_use_timedate
='wxUSE_TIMEDATE="0"'
6142 LINE
=`grep "wxUSE_TIMEDATE" ${OSTYPE}.system.cache`
6143 if test "x$LINE" != x
; then
6144 eval "DEFAULT_$LINE"
6146 ac_cv_use_timedate
='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
6150 eval "$ac_cv_use_timedate"
6151 echo $ac_cv_use_timedate >> ${OSTYPE}.system.cache.tmp
6152 if test "$wxUSE_TIMEDATE" = 1; then
6153 echo "$ac_t""yes" 1>&6
6155 echo "$ac_t""no" 1>&6
6160 echo $ac_n "checking "for intl
"""... $ac_c" 1>&6
6161 echo "configure:6162: checking "for intl
"" >&5
6162 # Check whether --with-intl or --without-intl was given.
6163 if test "${with_intl+set}" = set; then
6164 withval
="$with_intl"
6165 if test "x$with_intl" = xyes
; then
6166 ac_cv_use_intl
='wxUSE_INTL="1"'
6168 ac_cv_use_intl
='wxUSE_INTL="0"'
6172 LINE
=`grep "wxUSE_INTL" ${OSTYPE}.system.cache`
6173 if test "x$LINE" != x
; then
6174 eval "DEFAULT_$LINE"
6176 ac_cv_use_intl
='wxUSE_INTL='$DEFAULT_wxUSE_INTL
6180 eval "$ac_cv_use_intl"
6181 echo $ac_cv_use_intl >> ${OSTYPE}.system.cache.tmp
6182 if test "$wxUSE_INTL" = 1; then
6183 echo "$ac_t""yes" 1>&6
6185 echo "$ac_t""no" 1>&6
6190 echo $ac_n "checking "for config
"""... $ac_c" 1>&6
6191 echo "configure:6192: checking "for config
"" >&5
6192 # Check whether --with-config or --without-config was given.
6193 if test "${with_config+set}" = set; then
6194 withval
="$with_config"
6195 if test "x$with_config" = xyes
; then
6196 ac_cv_use_config
='wxUSE_CONFIG="1"'
6198 ac_cv_use_config
='wxUSE_CONFIG="0"'
6202 LINE
=`grep "wxUSE_CONFIG" ${OSTYPE}.system.cache`
6203 if test "x$LINE" != x
; then
6204 eval "DEFAULT_$LINE"
6206 ac_cv_use_config
='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
6210 eval "$ac_cv_use_config"
6211 echo $ac_cv_use_config >> ${OSTYPE}.system.cache.tmp
6212 if test "$wxUSE_CONFIG" = 1; then
6213 echo "$ac_t""yes" 1>&6
6215 echo "$ac_t""no" 1>&6
6220 echo $ac_n "checking "for streams
"""... $ac_c" 1>&6
6221 echo "configure:6222: checking "for streams
"" >&5
6222 # Check whether --with-streams or --without-streams was given.
6223 if test "${with_streams+set}" = set; then
6224 withval
="$with_streams"
6225 if test "x$with_streams" = xyes
; then
6226 ac_cv_use_streams
='wxUSE_STREAMS="1"'
6228 ac_cv_use_streams
='wxUSE_STREAMS="0"'
6232 LINE
=`grep "wxUSE_STREAMS" ${OSTYPE}.system.cache`
6233 if test "x$LINE" != x
; then
6234 eval "DEFAULT_$LINE"
6236 ac_cv_use_streams
='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
6240 eval "$ac_cv_use_streams"
6241 echo $ac_cv_use_streams >> ${OSTYPE}.system.cache.tmp
6242 if test "$wxUSE_STREAMS" = 1; then
6243 echo "$ac_t""yes" 1>&6
6245 echo "$ac_t""no" 1>&6
6250 echo $ac_n "checking "for serial
"""... $ac_c" 1>&6
6251 echo "configure:6252: checking "for serial
"" >&5
6252 # Check whether --with-serial or --without-serial was given.
6253 if test "${with_serial+set}" = set; then
6254 withval
="$with_serial"
6255 if test "x$with_serial" = xyes
; then
6256 ac_cv_use_serial
='wxUSE_SERIAL="1"'
6258 ac_cv_use_serial
='wxUSE_SERIAL="0"'
6262 LINE
=`grep "wxUSE_SERIAL" ${OSTYPE}.system.cache`
6263 if test "x$LINE" != x
; then
6264 eval "DEFAULT_$LINE"
6266 ac_cv_use_serial
='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
6270 eval "$ac_cv_use_serial"
6271 echo $ac_cv_use_serial >> ${OSTYPE}.system.cache.tmp
6272 if test "$wxUSE_SERIAL" = 1; then
6273 echo "$ac_t""yes" 1>&6
6275 echo "$ac_t""no" 1>&6
6280 echo $ac_n "checking "for sockets
"""... $ac_c" 1>&6
6281 echo "configure:6282: checking "for sockets
"" >&5
6282 # Check whether --with-sockets or --without-sockets was given.
6283 if test "${with_sockets+set}" = set; then
6284 withval
="$with_sockets"
6285 if test "x$with_sockets" = xyes
; then
6286 ac_cv_use_sockets
='wxUSE_SOCKETS="1"'
6288 ac_cv_use_sockets
='wxUSE_SOCKETS="0"'
6292 LINE
=`grep "wxUSE_SOCKETS" ${OSTYPE}.system.cache`
6293 if test "x$LINE" != x
; then
6294 eval "DEFAULT_$LINE"
6296 ac_cv_use_sockets
='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
6300 eval "$ac_cv_use_sockets"
6301 echo $ac_cv_use_sockets >> ${OSTYPE}.system.cache.tmp
6302 if test "$wxUSE_SOCKETS" = 1; then
6303 echo "$ac_t""yes" 1>&6
6305 echo "$ac_t""no" 1>&6
6311 echo $ac_n "checking "for afmfonts
"""... $ac_c" 1>&6
6312 echo "configure:6313: checking "for afmfonts
"" >&5
6313 # Check whether --with-afmfonts or --without-afmfonts was given.
6314 if test "${with_afmfonts+set}" = set; then
6315 withval
="$with_afmfonts"
6316 if test "x$with_afmfonts" = xyes
; then
6317 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="1"'
6319 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT="0"'
6323 LINE
=`grep "wxUSE_AFM_FOR_POSTSCRIPT" ${OSTYPE}.system.cache`
6324 if test "x$LINE" != x
; then
6325 eval "DEFAULT_$LINE"
6327 ac_cv_use_afmfonts
='wxUSE_AFM_FOR_POSTSCRIPT='$DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT
6331 eval "$ac_cv_use_afmfonts"
6332 echo $ac_cv_use_afmfonts >> ${OSTYPE}.system.cache.tmp
6333 if test "$wxUSE_AFM_FOR_POSTSCRIPT" = 1; then
6334 echo "$ac_t""yes" 1>&6
6336 echo "$ac_t""no" 1>&6
6341 echo $ac_n "checking "for normalized
"""... $ac_c" 1>&6
6342 echo "configure:6343: checking "for normalized
"" >&5
6343 # Check whether --with-normalized or --without-normalized was given.
6344 if test "${with_normalized+set}" = set; then
6345 withval
="$with_normalized"
6346 if test "x$with_normalized" = xyes
; then
6347 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="1"'
6349 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS="0"'
6353 LINE
=`grep "WX_NORMALIZED_PS_FONTS" ${OSTYPE}.system.cache`
6354 if test "x$LINE" != x
; then
6355 eval "DEFAULT_$LINE"
6357 ac_cv_use_normalized
='WX_NORMALIZED_PS_FONTS='$DEFAULT_WX_NORMALIZED_PS_FONTS
6361 eval "$ac_cv_use_normalized"
6362 echo $ac_cv_use_normalized >> ${OSTYPE}.system.cache.tmp
6363 if test "$WX_NORMALIZED_PS_FONTS" = 1; then
6364 echo "$ac_t""yes" 1>&6
6366 echo "$ac_t""no" 1>&6
6371 echo $ac_n "checking "for postscript
"""... $ac_c" 1>&6
6372 echo "configure:6373: checking "for postscript
"" >&5
6373 # Check whether --with-postscript or --without-postscript was given.
6374 if test "${with_postscript+set}" = set; then
6375 withval
="$with_postscript"
6376 if test "x$with_postscript" = xyes
; then
6377 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="1"'
6379 ac_cv_use_postscript
='wxUSE_POSTSCRIPT="0"'
6383 LINE
=`grep "wxUSE_POSTSCRIPT" ${OSTYPE}.system.cache`
6384 if test "x$LINE" != x
; then
6385 eval "DEFAULT_$LINE"
6387 ac_cv_use_postscript
='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
6391 eval "$ac_cv_use_postscript"
6392 echo $ac_cv_use_postscript >> ${OSTYPE}.system.cache.tmp
6393 if test "$wxUSE_POSTSCRIPT" = 1; then
6394 echo "$ac_t""yes" 1>&6
6396 echo "$ac_t""no" 1>&6
6402 echo $ac_n "checking "for unicode
"""... $ac_c" 1>&6
6403 echo "configure:6404: checking "for unicode
"" >&5
6404 # Check whether --with-unicode or --without-unicode was given.
6405 if test "${with_unicode+set}" = set; then
6406 withval
="$with_unicode"
6407 if test "x$with_unicode" = xyes
; then
6408 ac_cv_use_unicode
='wxUSE_UNICODE="1"'
6410 ac_cv_use_unicode
='wxUSE_UNICODE="0"'
6414 LINE
=`grep "wxUSE_UNICODE" ${OSTYPE}.system.cache`
6415 if test "x$LINE" != x
; then
6416 eval "DEFAULT_$LINE"
6418 ac_cv_use_unicode
='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
6422 eval "$ac_cv_use_unicode"
6423 echo $ac_cv_use_unicode >> ${OSTYPE}.system.cache.tmp
6424 if test "$wxUSE_UNICODE" = 1; then
6425 echo "$ac_t""yes" 1>&6
6427 echo "$ac_t""no" 1>&6
6432 echo $ac_n "checking "for wcsrtombs
"""... $ac_c" 1>&6
6433 echo "configure:6434: checking "for wcsrtombs
"" >&5
6434 # Check whether --with-wcsrtombs or --without-wcsrtombs was given.
6435 if test "${with_wcsrtombs+set}" = set; then
6436 withval
="$with_wcsrtombs"
6437 if test "x$with_wcsrtombs" = xyes
; then
6438 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="1"'
6440 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS="0"'
6444 LINE
=`grep "wxUSE_WCSRTOMBS" ${OSTYPE}.system.cache`
6445 if test "x$LINE" != x
; then
6446 eval "DEFAULT_$LINE"
6448 ac_cv_use_wcsrtombs
='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
6452 eval "$ac_cv_use_wcsrtombs"
6453 echo $ac_cv_use_wcsrtombs >> ${OSTYPE}.system.cache.tmp
6454 if test "$wxUSE_WCSRTOMBS" = 1; then
6455 echo "$ac_t""yes" 1>&6
6457 echo "$ac_t""no" 1>&6
6463 echo $ac_n "checking "for wxresources
"""... $ac_c" 1>&6
6464 echo "configure:6465: checking "for wxresources
"" >&5
6465 # Check whether --with-wxresources or --without-wxresources was given.
6466 if test "${with_wxresources+set}" = set; then
6467 withval
="$with_wxresources"
6468 if test "x$with_wxresources" = xyes
; then
6469 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="1"'
6471 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES="0"'
6475 LINE
=`grep "wxUSE_WX_RESOURCES" ${OSTYPE}.system.cache`
6476 if test "x$LINE" != x
; then
6477 eval "DEFAULT_$LINE"
6479 ac_cv_use_wxresources
='wxUSE_WX_RESOURCES='$DEFAULT_wxUSE_WX_RESOURCES
6483 eval "$ac_cv_use_wxresources"
6484 echo $ac_cv_use_wxresources >> ${OSTYPE}.system.cache.tmp
6485 if test "$wxUSE_WX_RESOURCES" = 1; then
6486 echo "$ac_t""yes" 1>&6
6488 echo "$ac_t""no" 1>&6
6493 echo $ac_n "checking "for prologio
"""... $ac_c" 1>&6
6494 echo "configure:6495: checking "for prologio
"" >&5
6495 # Check whether --with-prologio or --without-prologio was given.
6496 if test "${with_prologio+set}" = set; then
6497 withval
="$with_prologio"
6498 if test "x$with_prologio" = xyes
; then
6499 ac_cv_use_prologio
='wxUSE_PROLOGIO="1"'
6501 ac_cv_use_prologio
='wxUSE_PROLOGIO="0"'
6505 LINE
=`grep "wxUSE_PROLOGIO" ${OSTYPE}.system.cache`
6506 if test "x$LINE" != x
; then
6507 eval "DEFAULT_$LINE"
6509 ac_cv_use_prologio
='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
6513 eval "$ac_cv_use_prologio"
6514 echo $ac_cv_use_prologio >> ${OSTYPE}.system.cache.tmp
6515 if test "$wxUSE_PROLOGIO" = 1; then
6516 echo "$ac_t""yes" 1>&6
6518 echo "$ac_t""no" 1>&6
6523 echo $ac_n "checking "for RPC
"""... $ac_c" 1>&6
6524 echo "configure:6525: checking "for RPC
"" >&5
6525 # Check whether --with-rpc or --without-rpc was given.
6526 if test "${with_rpc+set}" = set; then
6528 if test "x$with_rpc" = xyes
; then
6529 ac_cv_use_rpc
='wxUSE_RPC="1"'
6531 ac_cv_use_rpc
='wxUSE_RPC="0"'
6535 LINE
=`grep "wxUSE_RPC" ${OSTYPE}.system.cache`
6536 if test "x$LINE" != x
; then
6537 eval "DEFAULT_$LINE"
6539 ac_cv_use_rpc
='wxUSE_RPC='$DEFAULT_wxUSE_RPC
6543 eval "$ac_cv_use_rpc"
6544 echo $ac_cv_use_rpc >> ${OSTYPE}.system.cache.tmp
6545 if test "$wxUSE_RPC" = 1; then
6546 echo "$ac_t""yes" 1>&6
6548 echo "$ac_t""no" 1>&6
6554 echo $ac_n "checking "for IPC
"""... $ac_c" 1>&6
6555 echo "configure:6556: checking "for IPC
"" >&5
6556 # Check whether --with-ipc or --without-ipc was given.
6557 if test "${with_ipc+set}" = set; then
6559 if test "x$with_ipc" = xyes
; then
6560 ac_cv_use_ipc
='wxUSE_IPC="1"'
6562 ac_cv_use_ipc
='wxUSE_IPC="0"'
6566 LINE
=`grep "wxUSE_IPC" ${OSTYPE}.system.cache`
6567 if test "x$LINE" != x
; then
6568 eval "DEFAULT_$LINE"
6570 ac_cv_use_ipc
='wxUSE_IPC='$DEFAULT_wxUSE_IPC
6574 eval "$ac_cv_use_ipc"
6575 echo $ac_cv_use_ipc >> ${OSTYPE}.system.cache.tmp
6576 if test "$wxUSE_IPC" = 1; then
6577 echo "$ac_t""yes" 1>&6
6579 echo "$ac_t""no" 1>&6
6584 echo $ac_n "checking "for resources
"""... $ac_c" 1>&6
6585 echo "configure:6586: checking "for resources
"" >&5
6586 # Check whether --with-resources or --without-resources was given.
6587 if test "${with_resources+set}" = set; then
6588 withval
="$with_resources"
6589 if test "x$with_resources" = xyes
; then
6590 ac_cv_use_resources
='wxUSE_RESOURCES="1"'
6592 ac_cv_use_resources
='wxUSE_RESOURCES="0"'
6596 LINE
=`grep "wxUSE_RESOURCES" ${OSTYPE}.system.cache`
6597 if test "x$LINE" != x
; then
6598 eval "DEFAULT_$LINE"
6600 ac_cv_use_resources
='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
6604 eval "$ac_cv_use_resources"
6605 echo $ac_cv_use_resources >> ${OSTYPE}.system.cache.tmp
6606 if test "$wxUSE_RESOURCES" = 1; then
6607 echo "$ac_t""yes" 1>&6
6609 echo "$ac_t""no" 1>&6
6614 echo $ac_n "checking "for clipboard
"""... $ac_c" 1>&6
6615 echo "configure:6616: checking "for clipboard
"" >&5
6616 # Check whether --with-clipboard or --without-clipboard was given.
6617 if test "${with_clipboard+set}" = set; then
6618 withval
="$with_clipboard"
6619 if test "x$with_clipboard" = xyes
; then
6620 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="1"'
6622 ac_cv_use_clipboard
='wxUSE_CLIPBOARD="0"'
6626 LINE
=`grep "wxUSE_CLIPBOARD" ${OSTYPE}.system.cache`
6627 if test "x$LINE" != x
; then
6628 eval "DEFAULT_$LINE"
6630 ac_cv_use_clipboard
='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
6634 eval "$ac_cv_use_clipboard"
6635 echo $ac_cv_use_clipboard >> ${OSTYPE}.system.cache.tmp
6636 if test "$wxUSE_CLIPBOARD" = 1; then
6637 echo "$ac_t""yes" 1>&6
6639 echo "$ac_t""no" 1>&6
6644 echo $ac_n "checking "for tooltips
"""... $ac_c" 1>&6
6645 echo "configure:6646: checking "for tooltips
"" >&5
6646 # Check whether --with-tooltips or --without-tooltips was given.
6647 if test "${with_tooltips+set}" = set; then
6648 withval
="$with_tooltips"
6649 if test "x$with_tooltips" = xyes
; then
6650 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="1"'
6652 ac_cv_use_tooltips
='wxUSE_TOOLTIPS="0"'
6656 LINE
=`grep "wxUSE_TOOLTIPS" ${OSTYPE}.system.cache`
6657 if test "x$LINE" != x
; then
6658 eval "DEFAULT_$LINE"
6660 ac_cv_use_tooltips
='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
6664 eval "$ac_cv_use_tooltips"
6665 echo $ac_cv_use_tooltips >> ${OSTYPE}.system.cache.tmp
6666 if test "$wxUSE_TOOLTIPS" = 1; then
6667 echo "$ac_t""yes" 1>&6
6669 echo "$ac_t""no" 1>&6
6674 echo $ac_n "checking "for dnd
"""... $ac_c" 1>&6
6675 echo "configure:6676: checking "for dnd
"" >&5
6676 # Check whether --with-dnd or --without-dnd was given.
6677 if test "${with_dnd+set}" = set; then
6679 if test "x$with_dnd" = xyes
; then
6680 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="1"'
6682 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP="0"'
6686 LINE
=`grep "wxUSE_DRAG_AND_DROP" ${OSTYPE}.system.cache`
6687 if test "x$LINE" != x
; then
6688 eval "DEFAULT_$LINE"
6690 ac_cv_use_dnd
='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
6694 eval "$ac_cv_use_dnd"
6695 echo $ac_cv_use_dnd >> ${OSTYPE}.system.cache.tmp
6696 if test "$wxUSE_DRAG_AND_DROP" = 1; then
6697 echo "$ac_t""yes" 1>&6
6699 echo "$ac_t""no" 1>&6
6705 echo $ac_n "checking "for mdi
"""... $ac_c" 1>&6
6706 echo "configure:6707: checking "for mdi
"" >&5
6707 # Check whether --with-mdi or --without-mdi was given.
6708 if test "${with_mdi+set}" = set; then
6710 if test "x$with_mdi" = xyes
; then
6711 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="1"'
6713 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE="0"'
6717 LINE
=`grep "wxUSE_MDI_ARCHITECTURE" ${OSTYPE}.system.cache`
6718 if test "x$LINE" != x
; then
6719 eval "DEFAULT_$LINE"
6721 ac_cv_use_mdi
='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
6725 eval "$ac_cv_use_mdi"
6726 echo $ac_cv_use_mdi >> ${OSTYPE}.system.cache.tmp
6727 if test "$wxUSE_MDI_ARCHITECTURE" = 1; then
6728 echo "$ac_t""yes" 1>&6
6730 echo "$ac_t""no" 1>&6
6735 echo $ac_n "checking "for docview
"""... $ac_c" 1>&6
6736 echo "configure:6737: checking "for docview
"" >&5
6737 # Check whether --with-docview or --without-docview was given.
6738 if test "${with_docview+set}" = set; then
6739 withval
="$with_docview"
6740 if test "x$with_docview" = xyes
; then
6741 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="1"'
6743 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE="0"'
6747 LINE
=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${OSTYPE}.system.cache`
6748 if test "x$LINE" != x
; then
6749 eval "DEFAULT_$LINE"
6751 ac_cv_use_docview
='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
6755 eval "$ac_cv_use_docview"
6756 echo $ac_cv_use_docview >> ${OSTYPE}.system.cache.tmp
6757 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1; then
6758 echo "$ac_t""yes" 1>&6
6760 echo "$ac_t""no" 1>&6
6765 echo $ac_n "checking "for printarch
"""... $ac_c" 1>&6
6766 echo "configure:6767: checking "for printarch
"" >&5
6767 # Check whether --with-printarch or --without-printarch was given.
6768 if test "${with_printarch+set}" = set; then
6769 withval
="$with_printarch"
6770 if test "x$with_printarch" = xyes
; then
6771 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="1"'
6773 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE="0"'
6777 LINE
=`grep "wxUSE_PRINTING_ARCHITECTURE" ${OSTYPE}.system.cache`
6778 if test "x$LINE" != x
; then
6779 eval "DEFAULT_$LINE"
6781 ac_cv_use_printarch
='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
6785 eval "$ac_cv_use_printarch"
6786 echo $ac_cv_use_printarch >> ${OSTYPE}.system.cache.tmp
6787 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1; then
6788 echo "$ac_t""yes" 1>&6
6790 echo "$ac_t""no" 1>&6
6795 echo $ac_n "checking "for help"""... $ac_c" 1>&6
6796 echo "configure:6797: checking "for help"" >&5
6797 # Check whether --with-help or --without-help was given.
6798 if test "${with_help+set}" = set; then
6799 withval
="$with_help"
6800 if test "x$with_help" = xyes
; then
6801 ac_cv_use_help
='wxUSE_HELP="1"'
6803 ac_cv_use_help
='wxUSE_HELP="0"'
6807 LINE
=`grep "wxUSE_HELP" ${OSTYPE}.system.cache`
6808 if test "x$LINE" != x
; then
6809 eval "DEFAULT_$LINE"
6811 ac_cv_use_help
='wxUSE_HELP='$DEFAULT_wxUSE_HELP
6815 eval "$ac_cv_use_help"
6816 echo $ac_cv_use_help >> ${OSTYPE}.system.cache.tmp
6817 if test "$wxUSE_HELP" = 1; then
6818 echo "$ac_t""yes" 1>&6
6820 echo "$ac_t""no" 1>&6
6825 if test "$wxUSE_UNIX" = 1 ; then
6826 cat >> confdefs.h
<<\EOF
6832 if test "$USE_LINUX" = 1; then
6833 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
6834 echo "configure:6835: checking for gettext in -lc" >&5
6835 ac_lib_var
=`echo c'_'gettext | sed 'y%./+-%__p_%'`
6836 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
6837 echo $ac_n "(cached) $ac_c" 1>&6
6839 ac_save_LIBS
="$LIBS"
6841 cat > conftest.
$ac_ext <<EOF
6842 #line 6843 "configure"
6843 #include "confdefs.h"
6844 /* Override any gcc2 internal prototype to avoid an error. */
6845 /* We use char because int might match the return type of a gcc2
6846 builtin and then its argument prototype would still apply. */
6853 if { (eval echo configure
:6854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
6855 eval "ac_cv_lib_$ac_lib_var=yes"
6857 echo "configure: failed program was:" >&5
6858 cat conftest.
$ac_ext >&5
6860 eval "ac_cv_lib_$ac_lib_var=no"
6863 LIBS
="$ac_save_LIBS"
6866 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
6867 echo "$ac_t""yes" 1>&6
6868 cat >> confdefs.h
<<\EOF
6869 #define wxHAVE_GLIBC2 1
6873 echo "$ac_t""no" 1>&6
6890 if test "$wxUSE_GTK" = 1; then
6891 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
6892 if test "${with_gtk_prefix+set}" = set; then
6893 withval
="$with_gtk_prefix"
6894 gtk_config_prefix
="$withval"
6896 gtk_config_prefix
=""
6899 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
6900 if test "${with_gtk_exec_prefix+set}" = set; then
6901 withval
="$with_gtk_exec_prefix"
6902 gtk_config_exec_prefix
="$withval"
6904 gtk_config_exec_prefix
=""
6908 if test x
$gtk_config_exec_prefix != x
; then
6909 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
6910 if test x
${GTK_CONFIG+set} != xset
; then
6911 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk
-config
6914 if test x
$gtk_config_prefix != x
; then
6915 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
6916 if test x
${GTK_CONFIG+set} != xset
; then
6917 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk
-config
6921 # Extract the first word of "gtk-config", so it can be a program name with args.
6922 set dummy gtk
-config; ac_word
=$2
6923 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
6924 echo "configure:6925: checking for $ac_word" >&5
6925 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
6926 echo $ac_n "(cached) $ac_c" 1>&6
6928 case "$GTK_CONFIG" in
6930 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
6933 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
6936 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
6938 for ac_dir
in $ac_dummy; do
6939 test -z "$ac_dir" && ac_dir
=.
6940 if test -f $ac_dir/$ac_word; then
6941 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
6946 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
6950 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
6951 if test -n "$GTK_CONFIG"; then
6952 echo "$ac_t""$GTK_CONFIG" 1>&6
6954 echo "$ac_t""no" 1>&6
6957 min_gtk_version
=1.0.0
6958 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
6959 echo "configure:6960: checking for GTK - version >= $min_gtk_version" >&5
6961 if test "$GTK_CONFIG" != "no" ; then
6962 GTK_CFLAGS
=`$GTK_CONFIG --cflags`
6963 GTK_LIBS
=`$GTK_CONFIG --libs`
6964 ac_save_CFLAGS
="$CFLAGS"
6965 ac_save_LIBS
="$LIBS"
6966 CFLAGS
="$CFLAGS $GTK_CFLAGS"
6967 LIBS
="$LIBS $GTK_LIBS"
6968 if test "$cross_compiling" = yes; then
6969 echo $ac_n "cross compiling; assumed OK... $ac_c"
6971 cat > conftest.
$ac_ext <<EOF
6972 #line 6973 "configure"
6973 #include "confdefs.h"
6975 #include <gtk/gtk.h>
6981 int major, minor, micro;
6983 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, µ) != 3) {
6984 printf("%s, bad version string\n", "$min_gtk_version");
6988 if (gtk_minor_version == 1) return FALSE;
6990 return !((gtk_major_version > major) ||
6991 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
6992 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
6996 if { (eval echo configure
:6997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
7000 echo "configure: failed program was:" >&5
7001 cat conftest.
$ac_ext >&5
7008 CFLAGS
="$ac_save_CFLAGS"
7009 LIBS
="$ac_save_LIBS"
7013 if test "x$no_gtk" = x
; then
7014 echo "$ac_t""yes" 1>&6
7016 GUI_TK_INCLUDE
="$GTK_CFLAGS"
7017 GUI_TK_LIBRARY
="$GTK_LIBS"
7020 echo "$ac_t""no" 1>&6
7023 { echo "configure: error: Is gtk-config in path and GTK+ is version 1.2.X or 1.0.X?" 1>&2; exit 1; }
7029 TOOLKIT_DEF
=__WXGTK__
7031 MAKEINCLUDE
=..
/gtk.inc
7034 if test "$wxUSE_QT" = 1; then
7035 echo $ac_n "checking for Qt includes""... $ac_c" 1>&6
7036 echo "configure:7037: checking for Qt includes" >&5
7039 for ac_dir
in $SEARCH_INCLUDE;
7041 if test -f "$ac_dir/qapp.h"; then
7042 ac_find_includes
=$ac_dir
7047 if test "$ac_find_includes" != "" ; then
7048 echo "$ac_t""found $ac_find_includes" 1>&6
7049 echo $ac_n "checking for Qt library""... $ac_c" 1>&6
7050 echo "configure:7051: checking for Qt library" >&5
7053 for ac_dir
in $SEARCH_LIB;
7055 for ac_extension
in a so sl
; do
7056 if test -f "$ac_dir/libqt.$ac_extension"; then
7057 ac_find_libraries
=$ac_dir
7063 if test "$ac_find_libraries" != "" ; then
7065 ac_path_to_include
=$ac_find_includes
7066 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
7068 if test $result = 0; then
7069 ac_path_to_include
=""
7071 ac_path_to_include
="-I$ac_find_includes"
7075 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7077 if test $result = 0; then
7080 ac_path_to_link
="-L$ac_find_libraries"
7083 CHECK_LINK
="$CHECK_INCLUDE $ac_path_to_link"
7084 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
7085 echo "$ac_t""found Qt at $ac_find_libraries" 1>&6
7087 { echo "configure: error: no" 1>&2; exit 1; }
7090 { echo "configure: error: no" 1>&2; exit 1; }
7092 GUI_TK_LINK
="-lX11 -lqt -lm"
7094 TOOLKIT_DEF
=__WXQT__
7096 MAKEINCLUDE
=..
/qt.inc
7099 if test "$wxUSE_MOTIF" = 1; then
7100 echo $ac_n "checking for Motif/Lesstif includes""... $ac_c" 1>&6
7101 echo "configure:7102: checking for Motif/Lesstif includes" >&5
7104 for ac_dir
in $SEARCH_INCLUDE;
7106 if test -f "$ac_dir/Xm/Xm.h"; then
7107 ac_find_includes
=$ac_dir
7112 if test "$ac_find_includes" != "" ; then
7113 echo "$ac_t""found $ac_find_includes" 1>&6
7115 echo "$ac_t""no" 1>&6
7116 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
7119 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
7120 echo "configure:7121: checking for Motif/Lesstif library" >&5
7123 for ac_dir
in $SEARCH_LIB;
7125 for ac_extension
in a so sl
; do
7126 if test -f "$ac_dir/libXm.$ac_extension"; then
7127 ac_find_libraries
=$ac_dir
7133 if test "$ac_find_libraries" != "" ; then
7135 ac_path_to_include
=$ac_find_includes
7136 echo "$CHECK_INCLUDE" | grep "\-I$ac_find_includes" > /dev
/null
7138 if test $result = 0; then
7139 ac_path_to_include
=""
7141 ac_path_to_include
="-I$ac_find_includes"
7145 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7147 if test $result = 0; then
7150 ac_path_to_link
="-L$ac_find_libraries"
7154 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7155 CHECK_INCLUDE
="$CHECK_INCLUDE $ac_path_to_include"
7156 echo "$ac_t""found at $ac_find_libraries" 1>&6
7158 echo "$ac_t""no" 1>&6
7159 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
7162 echo $ac_n "checking for Xt library""... $ac_c" 1>&6
7163 echo "configure:7164: checking for Xt library" >&5
7166 for ac_dir
in $SEARCH_LIB;
7168 for ac_extension
in a so sl
; do
7169 if test -f "$ac_dir/libXt.$ac_extension"; then
7170 ac_find_libraries
=$ac_dir
7176 if test "$ac_find_libraries" != "" ; then
7178 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7180 if test $result = 0; then
7183 ac_path_to_link
="-L$ac_find_libraries"
7186 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7187 echo "$ac_t""found at $ac_find_libraries" 1>&6
7189 echo "$ac_t""no" 1>&6
7190 { echo "configure: error: please set LDFLAGS to contain the location of libXt" 1>&2; exit 1; }
7194 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
7195 echo "configure:7196: checking for Xpm library" >&5
7198 for ac_dir
in $SEARCH_LIB;
7200 for ac_extension
in a so sl
; do
7201 if test -f "$ac_dir/libXpm.$ac_extension"; then
7202 ac_find_libraries
=$ac_dir
7208 if test "$ac_find_libraries" != "" ; then
7210 echo "$CHECK_LIB" | grep "\-L$ac_find_libraries" > /dev
/null
7212 if test $result = 0; then
7215 ac_path_to_link
="-L$ac_find_libraries"
7218 CHECK_LINK
="$CHECK_LIB $ac_path_to_link"
7220 cat >> confdefs.h
<<\EOF
7221 #define wxHAVE_LIB_XPM 1
7224 echo "$ac_t""found at $ac_find_libraries" 1>&6
7226 echo "$ac_t""no" 1>&6
7227 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
7230 GUI_TK_LINK
="-lXm $(XPM_LINK)-lXmu -lXt -lX11 -lm"
7231 GUI_TK_LIBRARY
="$CHECK_LIB $GUI_TK_LINK"
7233 TOOLKIT_DEF
=__WXMOTIF__
7235 MAKEINCLUDE
=..
/motif.inc
7238 if test "$TOOLKIT" = ""; then
7239 { echo "configure: error: You must specify a toolkit: --with-gtk --with-qt --with-motif" 1>&2; exit 1; }
7257 if test "$wxUSE_DEBUG_GDB" = 1 ; then
7262 if test "$wxUSE_DEBUG_INFO" = 1 ; then
7269 if test "$wxUSE_DEBUG_FLAG" = 1 ; then
7270 cat >> confdefs.h
<<EOF
7271 #define WXDEBUG $wxUSE_DEBUG_FLAG
7274 WXDEBUG_DEFINE
="-D__WXDEBUG__"
7277 WXDEBUG_DEFINE
="-DGTK_NO_CHECK_CASTS"
7281 if test "$wxUSE_MEM_TRACING" = 1 ; then
7282 cat >> confdefs.h
<<EOF
7283 #define wxUSE_MEMORY_TRACING $wxUSE_MEM_TRACING
7286 cat >> confdefs.h
<<EOF
7287 #define wxUSE_GLOBAL_MEMORY_OPERATORS $wxUSE_MEM_TRACING
7292 if test "$wxUSE_DMALLOC" = 1 ; then
7293 EXTRA_LINK
="$EXTRA_LINK -ldmalloc"
7298 if test "$wxUSE_PROFILE" = 1 ; then
7303 CXXFLAGS
=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
7304 CFLAGS
=`echo "${CFLAGS}" | sed "s/\-O.//g" `
7305 if test "$wxUSE_OPTIMISE" = 0 ; then
7308 if test "$GCC" = yes ; then
7310 case "${canonical}" in
7312 OPTIMISE
="${OPTIMISE} "
7322 if test "$wxUSE_APPLE_IEEE" = 1 ; then
7323 APPLE_IEEE
="APPLE_IEEE"
7324 cat >> confdefs.h
<<EOF
7325 #define wxUSE_APPLE_IEEE $wxUSE_APPLE_IEEE
7330 wxUSE_IOSTREAMH
=$DEFAULT_wxUSE_IOSTREAMH
7331 cat >> confdefs.h
<<EOF
7332 #define wxUSE_IOSTREAMH $wxUSE_IOSTREAMH
7337 if test "$wxUSE_ZLIB" = 1 ; then
7338 cat >> confdefs.h
<<EOF
7339 #define wxUSE_ZLIB $wxUSE_ZLIB
7342 Z_C_SRC
="\$(Z_C_SRC)"
7346 if test "$wxUSE_LIBPNG" = 1 ; then
7347 cat >> confdefs.h
<<EOF
7348 #define wxUSE_LIBPNG $wxUSE_LIBPNG
7351 PNG_C_SRC
="\$(PNG_C_SRC)"
7355 if test "$wxUSE_LIBJPEG" = 1 ; then
7356 cat >> confdefs.h
<<EOF
7357 #define wxUSE_LIBJPEG $wxUSE_LIBJPEG
7360 JPEG_C_SRC
="\$(JPEG_C_SRC)"
7368 if test "$wxUSE_ODBC" = 1 ; then
7369 cat >> confdefs.h
<<EOF
7370 #define wxUSE_ODBC $wxUSE_ODBC
7373 IODBC_C_SRC
="\$(IODBC_C_SRC)"
7378 if test "$wxUSE_CONFIG" = 1 ; then
7379 cat >> confdefs.h
<<EOF
7380 #define wxUSE_CONFIG $wxUSE_CONFIG
7385 if test "$wxUSE_TIMEDATE" = 1 ; then
7386 cat >> confdefs.h
<<EOF
7387 #define wxUSE_TIMEDATE $wxUSE_TIMEDATE
7392 if test "$wxUSE_INTL" = 1 ; then
7393 cat >> confdefs.h
<<EOF
7394 #define wxUSE_INTL $wxUSE_INTL
7399 if test "$wxUSE_STREAMS" = 1 ; then
7400 cat >> confdefs.h
<<EOF
7401 #define wxUSE_STREAMS $wxUSE_STREAMS
7406 if test "$wxUSE_SOCKETS" = 1 ; then
7407 cat >> confdefs.h
<<EOF
7408 #define wxUSE_SOCKETS $wxUSE_SOCKETS
7413 if test "$wxUSE_SERIAL" = 1 ; then
7414 cat >> confdefs.h
<<EOF
7415 #define wxUSE_SERIAL $wxUSE_SERIAL
7421 if test "$wxUSE_SOCKETS" = "1"; then
7422 echo $ac_n "checking the type of the third argument of getsockname""... $ac_c" 1>&6
7423 echo "configure:7424: checking the type of the third argument of getsockname" >&5
7424 cat > conftest.
$ac_ext <<EOF
7425 #line 7426 "configure"
7426 #include "confdefs.h"
7427 #include <sys/socket.h>
7429 socklen_t len; getsockname(0, NULL, &len);
7432 if { (eval echo configure
:7433: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7434 cat >> confdefs.h
<<\EOF
7435 #define SOCKLEN_T socklen_t
7437 echo "$ac_t""socklen_t" 1>&6
7439 echo "configure: failed program was:" >&5
7440 cat conftest.
$ac_ext >&5
7442 cat > conftest.
$ac_ext <<EOF
7443 #line 7444 "configure"
7444 #include "confdefs.h"
7445 #include <sys/socket.h>
7447 size_t len; getsockname(0, NULL, &len);
7450 if { (eval echo configure
:7451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7452 cat >> confdefs.h
<<\EOF
7453 #define SOCKLEN_T size_t
7455 echo "$ac_t""size_t" 1>&6
7457 echo "configure: failed program was:" >&5
7458 cat conftest.
$ac_ext >&5
7460 cat > conftest.
$ac_ext <<EOF
7461 #line 7462 "configure"
7462 #include "confdefs.h"
7463 #include <sys/socket.h>
7465 int len; getsockname(0, NULL, &len);
7468 if { (eval echo configure
:7469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
7470 cat >> confdefs.h
<<\EOF
7471 #define SOCKLEN_T int
7473 echo "$ac_t""int" 1>&6
7475 echo "configure: failed program was:" >&5
7476 cat conftest.
$ac_ext >&5
7478 echo "$ac_t""unknown" 1>&6
7492 if test "$wxUSE_DYNLIB_CLASS" = "1"; then
7493 for ac_func
in dlopen
7495 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7496 echo "configure:7497: checking for $ac_func" >&5
7497 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7498 echo $ac_n "(cached) $ac_c" 1>&6
7500 cat > conftest.
$ac_ext <<EOF
7501 #line 7502 "configure"
7502 #include "confdefs.h"
7503 /* System header to define __stub macros and hopefully few prototypes,
7504 which can conflict with char $ac_func(); below. */
7506 /* Override any gcc2 internal prototype to avoid an error. */
7507 /* We use char because int might match the return type of a gcc2
7508 builtin and then its argument prototype would still apply. */
7514 /* The GNU C library defines this for functions which it implements
7515 to always fail with ENOSYS. Some functions are actually named
7516 something starting with __ and the normal name is an alias. */
7517 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7525 if { (eval echo configure
:7526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7527 eval "ac_cv_func_$ac_func=yes"
7529 echo "configure: failed program was:" >&5
7530 cat conftest.
$ac_ext >&5
7532 eval "ac_cv_func_$ac_func=no"
7537 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7538 echo "$ac_t""yes" 1>&6
7539 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7540 cat >> confdefs.h
<<EOF
7541 #define $ac_tr_func 1
7543 cat >> confdefs.h
<<\EOF
7544 #define HAVE_DLOPEN 1
7548 echo "$ac_t""no" 1>&6
7549 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
7550 echo "configure:7551: checking for dlopen in -ldl" >&5
7551 ac_lib_var
=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
7552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7553 echo $ac_n "(cached) $ac_c" 1>&6
7555 ac_save_LIBS
="$LIBS"
7557 cat > conftest.
$ac_ext <<EOF
7558 #line 7559 "configure"
7559 #include "confdefs.h"
7560 /* Override any gcc2 internal prototype to avoid an error. */
7561 /* We use char because int might match the return type of a gcc2
7562 builtin and then its argument prototype would still apply. */
7569 if { (eval echo configure
:7570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7571 eval "ac_cv_lib_$ac_lib_var=yes"
7573 echo "configure: failed program was:" >&5
7574 cat conftest.
$ac_ext >&5
7576 eval "ac_cv_lib_$ac_lib_var=no"
7579 LIBS
="$ac_save_LIBS"
7582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7583 echo "$ac_t""yes" 1>&6
7584 cat >> confdefs.h
<<\EOF
7585 #define HAVE_DLOPEN 1
7589 echo "$ac_t""no" 1>&6
7595 for ac_func
in shl_load
7597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
7598 echo "configure:7599: checking for $ac_func" >&5
7599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
7600 echo $ac_n "(cached) $ac_c" 1>&6
7602 cat > conftest.
$ac_ext <<EOF
7603 #line 7604 "configure"
7604 #include "confdefs.h"
7605 /* System header to define __stub macros and hopefully few prototypes,
7606 which can conflict with char $ac_func(); below. */
7608 /* Override any gcc2 internal prototype to avoid an error. */
7609 /* We use char because int might match the return type of a gcc2
7610 builtin and then its argument prototype would still apply. */
7616 /* The GNU C library defines this for functions which it implements
7617 to always fail with ENOSYS. Some functions are actually named
7618 something starting with __ and the normal name is an alias. */
7619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7627 if { (eval echo configure
:7628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7629 eval "ac_cv_func_$ac_func=yes"
7631 echo "configure: failed program was:" >&5
7632 cat conftest.
$ac_ext >&5
7634 eval "ac_cv_func_$ac_func=no"
7639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
7640 echo "$ac_t""yes" 1>&6
7641 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
7642 cat >> confdefs.h
<<EOF
7643 #define $ac_tr_func 1
7645 cat >> confdefs.h
<<\EOF
7646 #define HAVE_SHL_LOAD 1
7650 echo "$ac_t""no" 1>&6
7655 if test "$HAVE_DL_FUNCS" = 0; then
7656 echo "configure: warning: "--with-dynlib will be disabled because no
function was found to load a shared library on this platform
"" 1>&2
7658 wxUSE_DYNLIB_CLASS
=0
7662 if test "$wxUSE_DYNLIB_CLASS" = 1 ; then
7663 cat >> confdefs.h
<<EOF
7664 #define wxUSE_DYNLIB_CLASS $wxUSE_DYNLIB_CLASS
7670 if test "$wxUSE_RPC" = 1 ; then
7671 cat >> confdefs.h
<<EOF
7672 #define wxUSE_RPC $wxUSE_RPC
7677 if test "$wxUSE_WX_RESOURCES" = 1 ; then
7678 cat >> confdefs.h
<<EOF
7679 #define wxUSE_WX_RESOURCES $wxUSE_WX_RESOURCES
7684 if test "$wxUSE_PROLOGIO" = 1 ; then
7685 cat >> confdefs.h
<<EOF
7686 #define wxUSE_PROLOGIO 1
7692 if test "$wxUSE_POSTSCRIPT" = 1 ; then
7693 cat >> confdefs.h
<<EOF
7694 #define wxUSE_POSTSCRIPT 1
7699 cat >> confdefs.h
<<EOF
7700 #define wxUSE_AFM_FOR_POSTSCRIPT $wxUSE_AFM_FOR_POSTSCRIPT
7704 cat >> confdefs.h
<<EOF
7705 #define WX_NORMALIZED_PS_FONTS $WX_NORMALIZED_PS_FONTS
7710 if test "$wxUSE_MDI_ARCHITECTURE" = 1 ; then
7711 cat >> confdefs.h
<<EOF
7712 #define wxUSE_MDI_ARCHITECTURE $wxUSE_MDI_ARCHITECTURE
7717 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = 1 ; then
7718 cat >> confdefs.h
<<EOF
7719 #define wxUSE_DOC_VIEW_ARCHITECTURE $wxUSE_DOC_VIEW_ARCHITECTURE
7724 if test "$wxUSE_PRINTING_ARCHITECTURE" = 1 ; then
7725 cat >> confdefs.h
<<EOF
7726 #define wxUSE_PRINTING_ARCHITECTURE $wxUSE_PRINTING_ARCHITECTURE
7732 if test "$wxUSE_UNICODE" = 1 ; then
7733 cat >> confdefs.h
<<EOF
7734 #define wxUSE_UNICODE 1
7739 if test "$wxUSE_WCSRTOMBS" = 1 ; then
7740 cat >> confdefs.h
<<EOF
7741 #define wxUSE_WCSRTOMBS 1
7747 if test "$wxUSE_IPC" = 1 ; then
7748 cat >> confdefs.h
<<EOF
7754 if test "$wxUSE_RESOURCES" = 1 ; then
7755 cat >> confdefs.h
<<EOF
7756 #define wxUSE_RESOURCES $wxUSE_RESOURCES
7761 if test "$wxUSE_CLIPBOARD" = 1 ; then
7762 cat >> confdefs.h
<<EOF
7763 #define wxUSE_CLIPBOARD $wxUSE_CLIPBOARD
7768 if test "$wxUSE_TOOLTIPS" = 1 ; then
7769 if test "$wxUSE_MOTIF" = 1; then
7770 echo "configure: warning: tooltips are not supported yet under Motif" 1>&2
7774 cat >> confdefs.h
<<EOF
7775 #define wxUSE_TOOLTIPS $wxUSE_TOOLTIPS
7780 if test "$wxUSE_DRAG_AND_DROP" = 1 ; then
7781 cat >> confdefs.h
<<EOF
7782 #define wxUSE_DRAG_AND_DROP $wxUSE_DRAG_AND_DROP
7789 if test "$wxUSE_HELP" = 1 ; then
7791 cat >> confdefs.h
<<EOF
7792 #define wxUSE_HELP $wxUSE_HELP
7803 if test "$wxUSE_THREADS" = "1"; then
7805 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
7806 echo "configure:7807: checking for pthread_create in -lpthread" >&5
7807 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
7808 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7809 echo $ac_n "(cached) $ac_c" 1>&6
7811 ac_save_LIBS
="$LIBS"
7812 LIBS
="-lpthread $LIBS"
7813 cat > conftest.
$ac_ext <<EOF
7814 #line 7815 "configure"
7815 #include "confdefs.h"
7816 /* Override any gcc2 internal prototype to avoid an error. */
7817 /* We use char because int might match the return type of a gcc2
7818 builtin and then its argument prototype would still apply. */
7819 char pthread_create();
7825 if { (eval echo configure
:7826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7827 eval "ac_cv_lib_$ac_lib_var=yes"
7829 echo "configure: failed program was:" >&5
7830 cat conftest.
$ac_ext >&5
7832 eval "ac_cv_lib_$ac_lib_var=no"
7835 LIBS
="$ac_save_LIBS"
7838 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7839 echo "$ac_t""yes" 1>&6
7841 UNIX_THREAD
="unix/threadpsx.cpp"
7842 THREADS_LINK
="pthread"
7845 echo "$ac_t""no" 1>&6
7847 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
7848 echo "configure:7849: checking for pthread_create in -lc_r" >&5
7849 ac_lib_var
=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
7850 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7851 echo $ac_n "(cached) $ac_c" 1>&6
7853 ac_save_LIBS
="$LIBS"
7855 cat > conftest.
$ac_ext <<EOF
7856 #line 7857 "configure"
7857 #include "confdefs.h"
7858 /* Override any gcc2 internal prototype to avoid an error. */
7859 /* We use char because int might match the return type of a gcc2
7860 builtin and then its argument prototype would still apply. */
7861 char pthread_create();
7867 if { (eval echo configure
:7868: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
7869 eval "ac_cv_lib_$ac_lib_var=yes"
7871 echo "configure: failed program was:" >&5
7872 cat conftest.
$ac_ext >&5
7874 eval "ac_cv_lib_$ac_lib_var=no"
7877 LIBS
="$ac_save_LIBS"
7880 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
7881 echo "$ac_t""yes" 1>&6
7883 UNIX_THREAD
="unix/threadpsx.cpp"
7887 echo "$ac_t""no" 1>&6
7889 ac_safe
=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
7890 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
7891 echo "configure:7892: checking for sys/prctl.h" >&5
7892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7893 echo $ac_n "(cached) $ac_c" 1>&6
7895 cat > conftest.
$ac_ext <<EOF
7896 #line 7897 "configure"
7897 #include "confdefs.h"
7898 #include <sys/prctl.h>
7900 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7901 { (eval echo configure
:7902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7902 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7903 if test -z "$ac_err"; then
7905 eval "ac_cv_header_$ac_safe=yes"
7908 echo "configure: failed program was:" >&5
7909 cat conftest.
$ac_ext >&5
7911 eval "ac_cv_header_$ac_safe=no"
7915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7916 echo "$ac_t""yes" 1>&6
7918 UNIX_THREAD
="gtk/threadsgi.cpp"
7921 echo "$ac_t""no" 1>&6
7930 if test "$THREADS_LINK" != ""; then
7931 cat >> confdefs.h
<<\EOF
7932 #define wxUSE_THREADS 1
7936 echo "configure: warning: No thread support on this system" 1>&2
7940 if test -z "$UNIX_THREAD"; then
7944 if test "$wxUSE_THREADS" = "1"; then
7947 for ac_hdr
in sched.h
7949 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
7950 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
7951 echo "configure:7952: checking for $ac_hdr" >&5
7952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
7953 echo $ac_n "(cached) $ac_c" 1>&6
7955 cat > conftest.
$ac_ext <<EOF
7956 #line 7957 "configure"
7957 #include "confdefs.h"
7960 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7961 { (eval echo configure
:7962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7962 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7963 if test -z "$ac_err"; then
7965 eval "ac_cv_header_$ac_safe=yes"
7968 echo "configure: failed program was:" >&5
7969 cat conftest.
$ac_ext >&5
7971 eval "ac_cv_header_$ac_safe=no"
7975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
7976 echo "$ac_t""yes" 1>&6
7977 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
7978 cat >> confdefs.h
<<EOF
7979 #define $ac_tr_hdr 1
7983 echo "$ac_t""no" 1>&6
7988 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
7989 echo "configure:7990: checking for sched_yield in -l$THREADS_LINK" >&5
7990 ac_lib_var
=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
7991 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
7992 echo $ac_n "(cached) $ac_c" 1>&6
7994 ac_save_LIBS
="$LIBS"
7995 LIBS
="-l$THREADS_LINK $LIBS"
7996 cat > conftest.
$ac_ext <<EOF
7997 #line 7998 "configure"
7998 #include "confdefs.h"
7999 /* Override any gcc2 internal prototype to avoid an error. */
8000 /* We use char because int might match the return type of a gcc2
8001 builtin and then its argument prototype would still apply. */
8008 if { (eval echo configure
:8009: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8010 eval "ac_cv_lib_$ac_lib_var=yes"
8012 echo "configure: failed program was:" >&5
8013 cat conftest.
$ac_ext >&5
8015 eval "ac_cv_lib_$ac_lib_var=no"
8018 LIBS
="$ac_save_LIBS"
8021 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8022 echo "$ac_t""yes" 1>&6
8023 cat >> confdefs.h
<<\EOF
8024 #define HAVE_SCHED_YIELD 1
8028 echo "$ac_t""no" 1>&6
8029 echo $ac_n "checking for sched_yield in -l"posix4
"""... $ac_c" 1>&6
8030 echo "configure:8031: checking for sched_yield in -l"posix4
"" >&5
8031 ac_lib_var
=`echo "posix4"'_'sched_yield | sed 'y%./+-%__p_%'`
8032 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8033 echo $ac_n "(cached) $ac_c" 1>&6
8035 ac_save_LIBS
="$LIBS"
8036 LIBS
="-l"posix4
" $LIBS"
8037 cat > conftest.
$ac_ext <<EOF
8038 #line 8039 "configure"
8039 #include "confdefs.h"
8040 /* Override any gcc2 internal prototype to avoid an error. */
8041 /* We use char because int might match the return type of a gcc2
8042 builtin and then its argument prototype would still apply. */
8049 if { (eval echo configure
:8050: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8051 eval "ac_cv_lib_$ac_lib_var=yes"
8053 echo "configure: failed program was:" >&5
8054 cat conftest.
$ac_ext >&5
8056 eval "ac_cv_lib_$ac_lib_var=no"
8059 LIBS
="$ac_save_LIBS"
8062 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8063 echo "$ac_t""yes" 1>&6
8064 cat >> confdefs.h
<<\EOF
8065 #define HAVE_SCHED_YIELD 1
8067 POSIX4_LINK
="-lposix4"
8069 echo "$ac_t""no" 1>&6
8070 echo "configure: warning: wxThread::Yield() will not work properly" 1>&2
8078 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
8079 echo "configure:8080: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
8080 ac_lib_var
=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
8081 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8082 echo $ac_n "(cached) $ac_c" 1>&6
8084 ac_save_LIBS
="$LIBS"
8085 LIBS
="-l$THREADS_LINK $LIBS"
8086 cat > conftest.
$ac_ext <<EOF
8087 #line 8088 "configure"
8088 #include "confdefs.h"
8089 /* Override any gcc2 internal prototype to avoid an error. */
8090 /* We use char because int might match the return type of a gcc2
8091 builtin and then its argument prototype would still apply. */
8092 char pthread_attr_getschedpolicy();
8095 pthread_attr_getschedpolicy()
8098 if { (eval echo configure
:8099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8100 eval "ac_cv_lib_$ac_lib_var=yes"
8102 echo "configure: failed program was:" >&5
8103 cat conftest.
$ac_ext >&5
8105 eval "ac_cv_lib_$ac_lib_var=no"
8108 LIBS
="$ac_save_LIBS"
8111 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8112 echo "$ac_t""yes" 1>&6
8113 cat >> confdefs.h
<<\EOF
8114 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
8118 echo "$ac_t""no" 1>&6
8119 echo $ac_n "checking for pthread_attr_getschedpolicy in -l"posix4
"""... $ac_c" 1>&6
8120 echo "configure:8121: checking for pthread_attr_getschedpolicy in -l"posix4
"" >&5
8121 ac_lib_var
=`echo "posix4"'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
8122 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8123 echo $ac_n "(cached) $ac_c" 1>&6
8125 ac_save_LIBS
="$LIBS"
8126 LIBS
="-l"posix4
" $LIBS"
8127 cat > conftest.
$ac_ext <<EOF
8128 #line 8129 "configure"
8129 #include "confdefs.h"
8130 /* Override any gcc2 internal prototype to avoid an error. */
8131 /* We use char because int might match the return type of a gcc2
8132 builtin and then its argument prototype would still apply. */
8133 char pthread_attr_getschedpolicy();
8136 pthread_attr_getschedpolicy()
8139 if { (eval echo configure
:8140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8141 eval "ac_cv_lib_$ac_lib_var=yes"
8143 echo "configure: failed program was:" >&5
8144 cat conftest.
$ac_ext >&5
8146 eval "ac_cv_lib_$ac_lib_var=no"
8149 LIBS
="$ac_save_LIBS"
8152 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8153 echo "$ac_t""yes" 1>&6
8154 cat >> confdefs.h
<<\EOF
8155 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
8157 POSIX4_LINK
="-lposix4"
8159 echo "$ac_t""no" 1>&6
8160 echo "configure: warning: Setting thread priority will not work" 1>&2
8168 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
8169 echo "configure:8170: checking for pthread_cancel in -l$THREADS_LINK" >&5
8170 ac_lib_var
=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
8171 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8172 echo $ac_n "(cached) $ac_c" 1>&6
8174 ac_save_LIBS
="$LIBS"
8175 LIBS
="-l$THREADS_LINK $LIBS"
8176 cat > conftest.
$ac_ext <<EOF
8177 #line 8178 "configure"
8178 #include "confdefs.h"
8179 /* Override any gcc2 internal prototype to avoid an error. */
8180 /* We use char because int might match the return type of a gcc2
8181 builtin and then its argument prototype would still apply. */
8182 char pthread_cancel();
8188 if { (eval echo configure
:8189: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
8190 eval "ac_cv_lib_$ac_lib_var=yes"
8192 echo "configure: failed program was:" >&5
8193 cat conftest.
$ac_ext >&5
8195 eval "ac_cv_lib_$ac_lib_var=no"
8198 LIBS
="$ac_save_LIBS"
8201 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8202 echo "$ac_t""yes" 1>&6
8203 cat >> confdefs.h
<<\EOF
8204 #define HAVE_PTHREAD_CANCEL 1
8208 echo "$ac_t""no" 1>&6
8209 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
8213 THREADS_LINK
="-l$THREADS_LINK"
8223 case "${canonical}" in
8225 if test "$GCC" != "yes" ; then
8226 CXXFLAGS
="${CXXFLAGS} +a1 -z -Aa -D_HPUX_SOURCE"
8227 CFLAGS
="${CFLAGS} -z -D_HPUX_SOURCE"
8233 CREATE_SHARED
=sharedHpux
8238 CREATE_SHARED
=sharedLinux
8241 *-*-irix5* | *-*-irix6* )
8242 # PICFLAGS can remain empty, as pic is the default
8244 CREATE_SHARED
=sharedIrix
8245 cat >> confdefs.h
<<\EOF
8252 if test "$GCC" != "yes" ; then
8257 CREATE_SHARED
=sharedSolaris2
8258 cat >> confdefs.h
<<\EOF
8265 if test "$GCC" != "yes" ; then
8271 CREATE_SHARED
=sharedSunos4
8272 cat >> confdefs.h
<<\EOF
8278 *-*-freebsd* | *-*-netbsd*)
8280 CREATE_SHARED
=sharedBsd
8281 cat >> confdefs.h
<<\EOF
8289 CREATE_SHARED
=sharedOSF
8293 if test "$GCC" != "yes" ; then
8298 CREATE_SHARED
=sharedDgux
8299 cat >> confdefs.h
<<\EOF
8306 if test "$GCC" != "yes" ; then
8311 CREATE_SHARED
=sharedSysV
8312 cat >> confdefs.h
<<\EOF
8319 if test "$GCC" != "yes" ; then
8322 PICFLAGS
="-fPIC -D__SYSV__"
8324 CREATE_SHARED
=sharedAIX
8325 cat >> confdefs.h
<<\EOF
8336 if test "x$GCC" = xyes
; then
8337 CFLAGS
="${CFLAGS} -Wall -Wno-unused -Wno-uninitialized -D_REENTRANT -DLEX_SCANNER -DHAVE_LIBDL"
8340 if test "x$GXX" = xyes
; then
8341 if test "$wxUSE_MOTIF" = 1; then
8342 CXXFLAGS
="${CXXFLAGS} -Wall -Wno-unused -D_REENTRANT"
8344 CXXFLAGS
="${CXXFLAGS} -Wall -D_REENTRANT"
8348 if test "$wxUSE_SHARED" != 1; then
8358 echo $OS >> system.list
8360 TOOLKIT_DIR
=`echo ${TOOLKIT} | tr "A-Z" "a-z"`
8364 cat > confcache
<<\EOF
8365 # This file is a shell script that caches the results of configure
8366 # tests run on this system so they can be shared between configure
8367 # scripts and configure runs. It is not useful on other systems.
8368 # If it contains results you don't want to keep, you may remove or edit it.
8370 # By default, configure uses ./config.cache as the cache file,
8371 # creating it if it does not exist already. You can give configure
8372 # the --cache-file=FILE option to use a different cache file; that is
8373 # what configure does when it calls configure scripts in
8374 # subdirectories, so they share the cache.
8375 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8376 # config.status only pays attention to the cache file if you give it the
8377 # --recheck option to rerun configure.
8380 # The following way of writing the cache mishandles newlines in values,
8381 # but we know of no workaround that is simple, portable, and efficient.
8382 # So, don't put newlines in cache variables' values.
8383 # Ultrix sh set writes to stderr and can't be redirected directly,
8384 # and sets the high bit in the cache file unless we assign to the vars.
8386 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8388 # `set' does not quote correctly, so add quotes (double-quote substitution
8389 # turns \\\\ into \\, and sed turns \\ into \).
8391 -e "s/'/'\\\\''/g" \
8392 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8395 # `set' quotes correctly as required by POSIX, so do not add quotes.
8396 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8399 if cmp -s $cache_file confcache
; then
8402 if test -w $cache_file; then
8403 echo "updating cache $cache_file"
8404 cat confcache
> $cache_file
8406 echo "not updating unwritable cache $cache_file"
8411 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
8413 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
8414 # Let make expand exec_prefix.
8415 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
8417 # Any assignment to VPATH causes Sun make to only execute
8418 # the first set of double-colon rules, so remove it if not needed.
8419 # If there is a colon in the path, we need to keep it.
8420 if test "x$srcdir" = x.
; then
8421 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
8424 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
8426 DEFS
=-DHAVE_CONFIG_H
8428 # Without the "./", some shells look in PATH for config.status.
8429 : ${CONFIG_STATUS=./config.status}
8431 echo creating
$CONFIG_STATUS
8432 rm -f $CONFIG_STATUS
8433 cat > $CONFIG_STATUS <<EOF
8435 # Generated automatically by configure.
8436 # Run this file to recreate the current configuration.
8437 # This directory was configured as follows,
8438 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8440 # $0 $ac_configure_args
8442 # Compiler output produced by configure, useful for debugging
8443 # configure, is in ./config.log if it exists.
8445 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
8448 case "\$ac_option" in
8449 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8450 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
8451 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
8452 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
8453 echo "$CONFIG_STATUS generated by autoconf version 2.14"
8455 -help | --help | --hel | --he | --h)
8456 echo "\$ac_cs_usage"; exit 0 ;;
8457 *) echo "\$ac_cs_usage"; exit 1 ;;
8461 ac_given_srcdir=$srcdir
8462 ac_given_INSTALL="$INSTALL"
8464 trap 'rm -fr `echo "./setup/substit ./wx-config:./wx-config.in ./include/wx/${TOOLKIT_DIR}/setup.h:./setup/setup.hin" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
8466 cat >> $CONFIG_STATUS <<EOF
8468 # Protect against being on the right side of a sed subst in config.status.
8469 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
8470 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
8474 s%@CFLAGS@%$CFLAGS%g
8475 s%@CPPFLAGS@%$CPPFLAGS%g
8476 s%@CXXFLAGS@%$CXXFLAGS%g
8477 s%@FFLAGS@%$FFLAGS%g
8479 s%@LDFLAGS@%$LDFLAGS%g
8481 s%@exec_prefix@%$exec_prefix%g
8482 s%@prefix@%$prefix%g
8483 s%@program_transform_name@%$program_transform_name%g
8484 s%@bindir@%$bindir%g
8485 s%@sbindir@%$sbindir%g
8486 s%@libexecdir@%$libexecdir%g
8487 s%@datadir@%$datadir%g
8488 s%@sysconfdir@%$sysconfdir%g
8489 s%@sharedstatedir@%$sharedstatedir%g
8490 s%@localstatedir@%$localstatedir%g
8491 s%@libdir@%$libdir%g
8492 s%@includedir@%$includedir%g
8493 s%@oldincludedir@%$oldincludedir%g
8494 s%@infodir@%$infodir%g
8495 s%@mandir@%$mandir%g
8496 s%@WXBASEDIR@%$WXBASEDIR%g
8500 s%@CXXCPP@%$CXXCPP%g
8501 s%@RANLIB@%$RANLIB%g
8503 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
8504 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
8505 s%@INSTALL_DATA@%$INSTALL_DATA%g
8509 s%@X_CFLAGS@%$X_CFLAGS%g
8510 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
8511 s%@X_LIBS@%$X_LIBS%g
8512 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
8513 s%@GTK_JOYSTICK@%$GTK_JOYSTICK%g
8514 s%@LIBOBJS@%$LIBOBJS%g
8517 s%@LEXLIB@%$LEXLIB%g
8518 s%@LEX_OUTPUT_ROOT@%$LEX_OUTPUT_ROOT%g
8519 s%@DL_LIBRARY@%$DL_LIBRARY%g
8521 s%@host_alias@%$host_alias%g
8522 s%@host_cpu@%$host_cpu%g
8523 s%@host_vendor@%$host_vendor%g
8524 s%@host_os@%$host_os%g
8525 s%@GTK_CONFIG@%$GTK_CONFIG%g
8526 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
8527 s%@GTK_LIBS@%$GTK_LIBS%g
8528 s%@GUI_TK_INCLUDE@%$GUI_TK_INCLUDE%g
8529 s%@GUI_TK_LIBRARY@%$GUI_TK_LIBRARY%g
8530 s%@GUI_TK_LINK@%$GUI_TK_LINK%g
8531 s%@WX_LINK@%$WX_LINK%g
8532 s%@TOOLKIT@%$TOOLKIT%g
8533 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
8534 s%@MAKEINCLUDE@%$MAKEINCLUDE%g
8535 s%@WXDEBUG@%$WXDEBUG%g
8536 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
8537 s%@EXTRA_LINK@%$EXTRA_LINK%g
8538 s%@PROFILE@%$PROFILE%g
8539 s%@OPTIMISE@%$OPTIMISE%g
8540 s%@Z_C_SRC@%$Z_C_SRC%g
8541 s%@PNG_C_SRC@%$PNG_C_SRC%g
8542 s%@JPEG_C_SRC@%$JPEG_C_SRC%g
8543 s%@JPEG_LINK@%$JPEG_LINK%g
8544 s%@IODBC_C_SRC@%$IODBC_C_SRC%g
8546 s%@UNIX_THREAD@%$UNIX_THREAD%g
8547 s%@THREADS_LINK@%$THREADS_LINK%g
8548 s%@POSIX4_LINK@%$POSIX4_LINK%g
8550 s%@PICFLAGS@%$PICFLAGS%g
8551 s%@CREATE_SHARED@%$CREATE_SHARED%g
8556 cat >> $CONFIG_STATUS <<\EOF
8558 # Split the substitutions into bite-sized pieces for seds with
8559 # small command number limits, like on Digital OSF/1 and HP-UX.
8560 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
8561 ac_file
=1 # Number of current file.
8562 ac_beg
=1 # First line for current file.
8563 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
8566 while $ac_more_lines; do
8567 if test $ac_beg -gt 1; then
8568 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
8570 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
8572 if test ! -s conftest.s
$ac_file; then
8574 rm -f conftest.s
$ac_file
8576 if test -z "$ac_sed_cmds"; then
8577 ac_sed_cmds
="sed -f conftest.s$ac_file"
8579 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
8581 ac_file
=`expr $ac_file + 1`
8583 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
8586 if test -z "$ac_sed_cmds"; then
8591 cat >> $CONFIG_STATUS <<EOF
8593 CONFIG_FILES=\${CONFIG_FILES-"./setup/substit ./wx-config:./wx-config.in"}
8595 cat >> $CONFIG_STATUS <<\EOF
8596 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
8597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8599 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8600 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8601 *) ac_file_in
="${ac_file}.in" ;;
8604 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
8606 # Remove last slash and all that follows it. Not all systems have dirname.
8607 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8608 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
8609 # The file is in a subdirectory.
8610 test ! -d "$ac_dir" && mkdir "$ac_dir"
8611 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
8612 # A "../" for each directory in $ac_dir_suffix.
8613 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
8615 ac_dir_suffix
= ac_dots
=
8618 case "$ac_given_srcdir" in
8620 if test -z "$ac_dots"; then top_srcdir
=.
8621 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
8622 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
8624 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
8625 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
8628 case "$ac_given_INSTALL" in
8629 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
8630 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
8633 echo creating
"$ac_file"
8635 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
8637 *Makefile
*) ac_comsub
="1i\\
8638 # $configure_input" ;;
8642 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8644 s%@configure_input@%$configure_input%g
8645 s%@srcdir@%$srcdir%g
8646 s%@top_srcdir@%$top_srcdir%g
8647 s%@INSTALL@%$INSTALL%g
8648 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
8652 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
8653 # NAME is the cpp macro being defined and VALUE is the value it is being given.
8655 # ac_d sets the value in "#define NAME VALUE" lines.
8656 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
8657 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
8660 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
8661 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8662 ac_uB
='\([ ]\)%\1#\2define\3'
8665 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
8666 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
8667 ac_eB
='$%\1#\2define\3'
8671 if test "${CONFIG_HEADERS+set}" != set; then
8673 cat >> $CONFIG_STATUS <<EOF
8674 CONFIG_HEADERS="./include/wx/${TOOLKIT_DIR}/setup.h:./setup/setup.hin"
8676 cat >> $CONFIG_STATUS <<\EOF
8678 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
8679 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
8681 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
8682 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
8683 *) ac_file_in
="${ac_file}.in" ;;
8686 echo creating
$ac_file
8688 rm -f conftest.frag conftest.
in conftest.out
8689 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
8690 cat $ac_file_inputs > conftest.
in
8694 # Transform confdefs.h into a sed script conftest.vals that substitutes
8695 # the proper values into config.h.in to produce config.h. And first:
8696 # Protect against being on the right side of a sed subst in config.status.
8697 # Protect against being in an unquoted here document in config.status.
8699 cat > conftest.hdr
<<\EOF
8702 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
8706 sed -n -f conftest.hdr confdefs.h > conftest.vals
8709 # This sed command replaces #undef with comments. This is necessary, for
8710 # example, in the case of _POSIX_SOURCE, which is predefined and required
8711 # on some systems where configure will not decide to define it.
8712 cat >> conftest.vals <<\EOF
8713 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
8716 # Break up conftest.vals because some shells have a limit on
8717 # the size of here documents, and old seds have small limits too.
8722 ac_lines=`grep -c . conftest.vals
`
8723 # grep -c gives empty output for an empty file on some AIX systems.
8724 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
8725 # Write a limited-size here document to conftest.frag.
8726 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
8727 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
8729 sed -f conftest.frag conftest.in > conftest.out
8731 mv conftest.out conftest.in
8733 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
8735 mv conftest.tail conftest.vals
8739 cat >> $CONFIG_STATUS <<\EOF
8740 rm -f conftest.frag conftest.h
8741 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
8742 cat conftest.in >> conftest.h
8744 if cmp -s $ac_file conftest.h 2>/dev/null; then
8745 echo "$ac_file is unchanged"
8748 # Remove last slash and all that follows it. Not all systems have dirname.
8749 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
8750 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
8751 # The file is in a subdirectory.
8752 test ! -d "$ac_dir" && mkdir "$ac_dir"
8755 mv conftest.h $ac_file
8760 cat >> $CONFIG_STATUS <<EOF
8763 cat >> $CONFIG_STATUS <<\EOF
8764 ./setup/general/createall
8767 chmod +x $CONFIG_STATUS
8768 rm -fr confdefs* $ac_clean_files
8769 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
8773 mv ${OSTYPE}.system.cache.tmp ${OSTYPE}.system.cache