]> git.saurik.com Git - wxWidgets.git/blob - samples/configure
new build system
[wxWidgets.git] / samples / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4 # generated automatically by aclocal 1.7.2 -*- Autoconf -*-
5
6 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This file is free software; the Free Software Foundation
9 # gives unlimited permission to copy and/or distribute it,
10 # with or without modifications, as long as this notice is preserved.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
14 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
15 # PARTICULAR PURPOSE.
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 # Guess values for system-dependent variables and create Makefiles.
55 # Generated automatically using autoconf version 2.13
56 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
57 #
58 # This configure script is free software; the Free Software Foundation
59 # gives unlimited permission to copy, distribute and modify it.
60
61 # Defaults:
62 ac_help=
63 ac_default_prefix=/usr/local
64 # Any additions from configure.in:
65
66 # Initialize some variables set by options.
67 # The variables have the same names as the options, with
68 # dashes changed to underlines.
69 build=NONE
70 cache_file=./config.cache
71 exec_prefix=NONE
72 host=NONE
73 no_create=
74 nonopt=NONE
75 no_recursion=
76 prefix=NONE
77 program_prefix=NONE
78 program_suffix=NONE
79 program_transform_name=s,x,x,
80 silent=
81 site=
82 srcdir=
83 target=NONE
84 verbose=
85 x_includes=NONE
86 x_libraries=NONE
87 bindir='${exec_prefix}/bin'
88 sbindir='${exec_prefix}/sbin'
89 libexecdir='${exec_prefix}/libexec'
90 datadir='${prefix}/share'
91 sysconfdir='${prefix}/etc'
92 sharedstatedir='${prefix}/com'
93 localstatedir='${prefix}/var'
94 libdir='${exec_prefix}/lib'
95 includedir='${prefix}/include'
96 oldincludedir='/usr/include'
97 infodir='${prefix}/info'
98 mandir='${prefix}/man'
99
100 # Initialize some other variables.
101 subdirs=
102 MFLAGS= MAKEFLAGS=
103 SHELL=${CONFIG_SHELL-/bin/sh}
104 # Maximum number of lines to put in a shell here document.
105 ac_max_here_lines=12
106
107 ac_prev=
108 for ac_option
109 do
110
111 # If the previous option needs an argument, assign it.
112 if test -n "$ac_prev"; then
113 eval "$ac_prev=\$ac_option"
114 ac_prev=
115 continue
116 fi
117
118 case "$ac_option" in
119 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
120 *) ac_optarg= ;;
121 esac
122
123 # Accept the important Cygnus configure options, so we can diagnose typos.
124
125 case "$ac_option" in
126
127 -bindir | --bindir | --bindi | --bind | --bin | --bi)
128 ac_prev=bindir ;;
129 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
130 bindir="$ac_optarg" ;;
131
132 -build | --build | --buil | --bui | --bu)
133 ac_prev=build ;;
134 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
135 build="$ac_optarg" ;;
136
137 -cache-file | --cache-file | --cache-fil | --cache-fi \
138 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
139 ac_prev=cache_file ;;
140 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
141 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
142 cache_file="$ac_optarg" ;;
143
144 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
145 ac_prev=datadir ;;
146 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
147 | --da=*)
148 datadir="$ac_optarg" ;;
149
150 -disable-* | --disable-*)
151 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
152 # Reject names that are not valid shell variable names.
153 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
154 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 fi
156 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
157 eval "enable_${ac_feature}=no" ;;
158
159 -enable-* | --enable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
164 fi
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 case "$ac_option" in
167 *=*) ;;
168 *) ac_optarg=yes ;;
169 esac
170 eval "enable_${ac_feature}='$ac_optarg'" ;;
171
172 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
173 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
174 | --exec | --exe | --ex)
175 ac_prev=exec_prefix ;;
176 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
177 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
178 | --exec=* | --exe=* | --ex=*)
179 exec_prefix="$ac_optarg" ;;
180
181 -gas | --gas | --ga | --g)
182 # Obsolete; use --with-gas.
183 with_gas=yes ;;
184
185 -help | --help | --hel | --he)
186 # Omit some internal or obsolete options to make the list less imposing.
187 # This message is too long to be a string in the A/UX 3.1 sh.
188 cat << EOF
189 Usage: configure [options] [host]
190 Options: [defaults in brackets after descriptions]
191 Configuration:
192 --cache-file=FILE cache test results in FILE
193 --help print this message
194 --no-create do not create output files
195 --quiet, --silent do not print \`checking...' messages
196 --version print the version of autoconf that created configure
197 Directory and file names:
198 --prefix=PREFIX install architecture-independent files in PREFIX
199 [$ac_default_prefix]
200 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
201 [same as prefix]
202 --bindir=DIR user executables in DIR [EPREFIX/bin]
203 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
204 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
205 --datadir=DIR read-only architecture-independent data in DIR
206 [PREFIX/share]
207 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
208 --sharedstatedir=DIR modifiable architecture-independent data in DIR
209 [PREFIX/com]
210 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
211 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
212 --includedir=DIR C header files in DIR [PREFIX/include]
213 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
214 --infodir=DIR info documentation in DIR [PREFIX/info]
215 --mandir=DIR man documentation in DIR [PREFIX/man]
216 --srcdir=DIR find the sources in DIR [configure dir or ..]
217 --program-prefix=PREFIX prepend PREFIX to installed program names
218 --program-suffix=SUFFIX append SUFFIX to installed program names
219 --program-transform-name=PROGRAM
220 run sed PROGRAM on installed program names
221 EOF
222 cat << EOF
223 Host type:
224 --build=BUILD configure for building on BUILD [BUILD=HOST]
225 --host=HOST configure for HOST [guessed]
226 --target=TARGET configure for TARGET [TARGET=HOST]
227 Features and packages:
228 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
229 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
230 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
231 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
232 --x-includes=DIR X include files are in DIR
233 --x-libraries=DIR X library files are in DIR
234 EOF
235 if test -n "$ac_help"; then
236 echo "--enable and --with options recognized:$ac_help"
237 fi
238 exit 0 ;;
239
240 -host | --host | --hos | --ho)
241 ac_prev=host ;;
242 -host=* | --host=* | --hos=* | --ho=*)
243 host="$ac_optarg" ;;
244
245 -includedir | --includedir | --includedi | --included | --include \
246 | --includ | --inclu | --incl | --inc)
247 ac_prev=includedir ;;
248 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
249 | --includ=* | --inclu=* | --incl=* | --inc=*)
250 includedir="$ac_optarg" ;;
251
252 -infodir | --infodir | --infodi | --infod | --info | --inf)
253 ac_prev=infodir ;;
254 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
255 infodir="$ac_optarg" ;;
256
257 -libdir | --libdir | --libdi | --libd)
258 ac_prev=libdir ;;
259 -libdir=* | --libdir=* | --libdi=* | --libd=*)
260 libdir="$ac_optarg" ;;
261
262 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
263 | --libexe | --libex | --libe)
264 ac_prev=libexecdir ;;
265 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
266 | --libexe=* | --libex=* | --libe=*)
267 libexecdir="$ac_optarg" ;;
268
269 -localstatedir | --localstatedir | --localstatedi | --localstated \
270 | --localstate | --localstat | --localsta | --localst \
271 | --locals | --local | --loca | --loc | --lo)
272 ac_prev=localstatedir ;;
273 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
274 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
275 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
276 localstatedir="$ac_optarg" ;;
277
278 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
279 ac_prev=mandir ;;
280 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
281 mandir="$ac_optarg" ;;
282
283 -nfp | --nfp | --nf)
284 # Obsolete; use --without-fp.
285 with_fp=no ;;
286
287 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
288 | --no-cr | --no-c)
289 no_create=yes ;;
290
291 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
293 no_recursion=yes ;;
294
295 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
296 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
297 | --oldin | --oldi | --old | --ol | --o)
298 ac_prev=oldincludedir ;;
299 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
300 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
301 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
302 oldincludedir="$ac_optarg" ;;
303
304 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
305 ac_prev=prefix ;;
306 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
307 prefix="$ac_optarg" ;;
308
309 -program-prefix | --program-prefix | --program-prefi | --program-pref \
310 | --program-pre | --program-pr | --program-p)
311 ac_prev=program_prefix ;;
312 -program-prefix=* | --program-prefix=* | --program-prefi=* \
313 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
314 program_prefix="$ac_optarg" ;;
315
316 -program-suffix | --program-suffix | --program-suffi | --program-suff \
317 | --program-suf | --program-su | --program-s)
318 ac_prev=program_suffix ;;
319 -program-suffix=* | --program-suffix=* | --program-suffi=* \
320 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
321 program_suffix="$ac_optarg" ;;
322
323 -program-transform-name | --program-transform-name \
324 | --program-transform-nam | --program-transform-na \
325 | --program-transform-n | --program-transform- \
326 | --program-transform | --program-transfor \
327 | --program-transfo | --program-transf \
328 | --program-trans | --program-tran \
329 | --progr-tra | --program-tr | --program-t)
330 ac_prev=program_transform_name ;;
331 -program-transform-name=* | --program-transform-name=* \
332 | --program-transform-nam=* | --program-transform-na=* \
333 | --program-transform-n=* | --program-transform-=* \
334 | --program-transform=* | --program-transfor=* \
335 | --program-transfo=* | --program-transf=* \
336 | --program-trans=* | --program-tran=* \
337 | --progr-tra=* | --program-tr=* | --program-t=*)
338 program_transform_name="$ac_optarg" ;;
339
340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
341 | -silent | --silent | --silen | --sile | --sil)
342 silent=yes ;;
343
344 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
345 ac_prev=sbindir ;;
346 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
347 | --sbi=* | --sb=*)
348 sbindir="$ac_optarg" ;;
349
350 -sharedstatedir | --sharedstatedir | --sharedstatedi \
351 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
352 | --sharedst | --shareds | --shared | --share | --shar \
353 | --sha | --sh)
354 ac_prev=sharedstatedir ;;
355 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
356 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
357 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
358 | --sha=* | --sh=*)
359 sharedstatedir="$ac_optarg" ;;
360
361 -site | --site | --sit)
362 ac_prev=site ;;
363 -site=* | --site=* | --sit=*)
364 site="$ac_optarg" ;;
365
366 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
367 ac_prev=srcdir ;;
368 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
369 srcdir="$ac_optarg" ;;
370
371 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
372 | --syscon | --sysco | --sysc | --sys | --sy)
373 ac_prev=sysconfdir ;;
374 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
375 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
376 sysconfdir="$ac_optarg" ;;
377
378 -target | --target | --targe | --targ | --tar | --ta | --t)
379 ac_prev=target ;;
380 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
381 target="$ac_optarg" ;;
382
383 -v | -verbose | --verbose | --verbos | --verbo | --verb)
384 verbose=yes ;;
385
386 -version | --version | --versio | --versi | --vers)
387 echo "configure generated by autoconf version 2.13"
388 exit 0 ;;
389
390 -with-* | --with-*)
391 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
392 # Reject names that are not valid shell variable names.
393 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
394 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
395 fi
396 ac_package=`echo $ac_package| sed 's/-/_/g'`
397 case "$ac_option" in
398 *=*) ;;
399 *) ac_optarg=yes ;;
400 esac
401 eval "with_${ac_package}='$ac_optarg'" ;;
402
403 -without-* | --without-*)
404 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
405 # Reject names that are not valid shell variable names.
406 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
407 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
408 fi
409 ac_package=`echo $ac_package| sed 's/-/_/g'`
410 eval "with_${ac_package}=no" ;;
411
412 --x)
413 # Obsolete; use --with-x.
414 with_x=yes ;;
415
416 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
417 | --x-incl | --x-inc | --x-in | --x-i)
418 ac_prev=x_includes ;;
419 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
420 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
421 x_includes="$ac_optarg" ;;
422
423 -x-libraries | --x-libraries | --x-librarie | --x-librari \
424 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
425 ac_prev=x_libraries ;;
426 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
427 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
428 x_libraries="$ac_optarg" ;;
429
430 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
431 ;;
432
433 *)
434 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
435 echo "configure: warning: $ac_option: invalid host type" 1>&2
436 fi
437 if test "x$nonopt" != xNONE; then
438 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
439 fi
440 nonopt="$ac_option"
441 ;;
442
443 esac
444 done
445
446 if test -n "$ac_prev"; then
447 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 fi
449
450 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
451
452 # File descriptor usage:
453 # 0 standard input
454 # 1 file creation
455 # 2 errors and warnings
456 # 3 some systems may open it to /dev/tty
457 # 4 used on the Kubota Titan
458 # 6 checking for... messages and results
459 # 5 compiler messages saved in config.log
460 if test "$silent" = yes; then
461 exec 6>/dev/null
462 else
463 exec 6>&1
464 fi
465 exec 5>./config.log
466
467 echo "\
468 This file contains any messages produced by compilers while
469 running configure, to aid debugging if configure makes a mistake.
470 " 1>&5
471
472 # Strip out --no-create and --no-recursion so they do not pile up.
473 # Also quote any args containing shell metacharacters.
474 ac_configure_args=
475 for ac_arg
476 do
477 case "$ac_arg" in
478 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
479 | --no-cr | --no-c) ;;
480 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
481 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
483 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
484 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
485 esac
486 done
487
488 # NLS nuisances.
489 # Only set these to C if already set. These must not be set unconditionally
490 # because not all systems understand e.g. LANG=C (notably SCO).
491 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
492 # Non-C LC_CTYPE values break the ctype check.
493 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
494 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
495 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
496 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
497
498 # confdefs.h avoids OS command line length limits that DEFS can exceed.
499 rm -rf conftest* confdefs.h
500 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
501 echo > confdefs.h
502
503 # A filename unique to this package, relative to the directory that
504 # configure is in, which we can look for to find out if srcdir is correct.
505 ac_unique_file=Makefile.in
506
507 # Find the source files, if location was not specified.
508 if test -z "$srcdir"; then
509 ac_srcdir_defaulted=yes
510 # Try the directory containing this script, then its parent.
511 ac_prog=$0
512 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
513 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
514 srcdir=$ac_confdir
515 if test ! -r $srcdir/$ac_unique_file; then
516 srcdir=..
517 fi
518 else
519 ac_srcdir_defaulted=no
520 fi
521 if test ! -r $srcdir/$ac_unique_file; then
522 if test "$ac_srcdir_defaulted" = yes; then
523 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
524 else
525 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526 fi
527 fi
528 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
529
530 # Prefer explicitly selected file to automatically selected ones.
531 if test -z "$CONFIG_SITE"; then
532 if test "x$prefix" != xNONE; then
533 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
534 else
535 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 fi
537 fi
538 for ac_site_file in $CONFIG_SITE; do
539 if test -r "$ac_site_file"; then
540 echo "loading site script $ac_site_file"
541 . "$ac_site_file"
542 fi
543 done
544
545 if test -r "$cache_file"; then
546 echo "loading cache $cache_file"
547 . $cache_file
548 else
549 echo "creating cache $cache_file"
550 > $cache_file
551 fi
552
553 ac_ext=c
554 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
555 ac_cpp='$CPP $CPPFLAGS'
556 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
557 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
558 cross_compiling=$ac_cv_prog_cc_cross
559
560 ac_exeext=
561 ac_objext=o
562 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565 ac_n= ac_c='
566 ' ac_t=' '
567 else
568 ac_n=-n ac_c= ac_t=
569 fi
570 else
571 ac_n= ac_c='\c' ac_t=
572 fi
573
574
575
576 ac_aux_dir=
577 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
578 if test -f $ac_dir/install-sh; then
579 ac_aux_dir=$ac_dir
580 ac_install_sh="$ac_aux_dir/install-sh -c"
581 break
582 elif test -f $ac_dir/install.sh; then
583 ac_aux_dir=$ac_dir
584 ac_install_sh="$ac_aux_dir/install.sh -c"
585 break
586 fi
587 done
588 if test -z "$ac_aux_dir"; then
589 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
590 fi
591 ac_config_guess=$ac_aux_dir/config.guess
592 ac_config_sub=$ac_aux_dir/config.sub
593 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
594
595
596 # Do some error checking and defaulting for the host and target type.
597 # The inputs are:
598 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
599 #
600 # The rules are:
601 # 1. You are not allowed to specify --host, --target, and nonopt at the
602 # same time.
603 # 2. Host defaults to nonopt.
604 # 3. If nonopt is not specified, then host defaults to the current host,
605 # as determined by config.guess.
606 # 4. Target and build default to nonopt.
607 # 5. If nonopt is not specified, then target and build default to host.
608
609 # The aliases save the names the user supplied, while $host etc.
610 # will get canonicalized.
611 case $host---$target---$nonopt in
612 NONE---*---* | *---NONE---* | *---*---NONE) ;;
613 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
614 esac
615
616
617 # Make sure we can run config.sub.
618 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
619 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
620 fi
621
622 echo $ac_n "checking host system type""... $ac_c" 1>&6
623 echo "configure:624: checking host system type" >&5
624
625 host_alias=$host
626 case "$host_alias" in
627 NONE)
628 case $nonopt in
629 NONE)
630 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
631 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
632 fi ;;
633 *) host_alias=$nonopt ;;
634 esac ;;
635 esac
636
637 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
638 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
639 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
640 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
641 echo "$ac_t""$host" 1>&6
642
643 echo $ac_n "checking target system type""... $ac_c" 1>&6
644 echo "configure:645: checking target system type" >&5
645
646 target_alias=$target
647 case "$target_alias" in
648 NONE)
649 case $nonopt in
650 NONE) target_alias=$host_alias ;;
651 *) target_alias=$nonopt ;;
652 esac ;;
653 esac
654
655 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
656 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
657 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
658 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
659 echo "$ac_t""$target" 1>&6
660
661 echo $ac_n "checking build system type""... $ac_c" 1>&6
662 echo "configure:663: checking build system type" >&5
663
664 build_alias=$build
665 case "$build_alias" in
666 NONE)
667 case $nonopt in
668 NONE) build_alias=$host_alias ;;
669 *) build_alias=$nonopt ;;
670 esac ;;
671 esac
672
673 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
674 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
675 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
676 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
677 echo "$ac_t""$build" 1>&6
678
679 test "$host_alias" != "$target_alias" &&
680 test "$program_prefix$program_suffix$program_transform_name" = \
681 NONENONEs,x,x, &&
682 program_prefix=${target_alias}-
683
684
685 # Extract the first word of "gcc", so it can be a program name with args.
686 set dummy gcc; ac_word=$2
687 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
688 echo "configure:689: checking for $ac_word" >&5
689 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
690 echo $ac_n "(cached) $ac_c" 1>&6
691 else
692 if test -n "$CC"; then
693 ac_cv_prog_CC="$CC" # Let the user override the test.
694 else
695 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
696 ac_dummy="$PATH"
697 for ac_dir in $ac_dummy; do
698 test -z "$ac_dir" && ac_dir=.
699 if test -f $ac_dir/$ac_word; then
700 ac_cv_prog_CC="gcc"
701 break
702 fi
703 done
704 IFS="$ac_save_ifs"
705 fi
706 fi
707 CC="$ac_cv_prog_CC"
708 if test -n "$CC"; then
709 echo "$ac_t""$CC" 1>&6
710 else
711 echo "$ac_t""no" 1>&6
712 fi
713
714 if test -z "$CC"; then
715 # Extract the first word of "cc", so it can be a program name with args.
716 set dummy cc; ac_word=$2
717 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
718 echo "configure:719: checking for $ac_word" >&5
719 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
720 echo $ac_n "(cached) $ac_c" 1>&6
721 else
722 if test -n "$CC"; then
723 ac_cv_prog_CC="$CC" # Let the user override the test.
724 else
725 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
726 ac_prog_rejected=no
727 ac_dummy="$PATH"
728 for ac_dir in $ac_dummy; do
729 test -z "$ac_dir" && ac_dir=.
730 if test -f $ac_dir/$ac_word; then
731 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
732 ac_prog_rejected=yes
733 continue
734 fi
735 ac_cv_prog_CC="cc"
736 break
737 fi
738 done
739 IFS="$ac_save_ifs"
740 if test $ac_prog_rejected = yes; then
741 # We found a bogon in the path, so make sure we never use it.
742 set dummy $ac_cv_prog_CC
743 shift
744 if test $# -gt 0; then
745 # We chose a different compiler from the bogus one.
746 # However, it has the same basename, so the bogon will be chosen
747 # first if we set CC to just the basename; use the full file name.
748 shift
749 set dummy "$ac_dir/$ac_word" "$@"
750 shift
751 ac_cv_prog_CC="$@"
752 fi
753 fi
754 fi
755 fi
756 CC="$ac_cv_prog_CC"
757 if test -n "$CC"; then
758 echo "$ac_t""$CC" 1>&6
759 else
760 echo "$ac_t""no" 1>&6
761 fi
762
763 if test -z "$CC"; then
764 case "`uname -s`" in
765 *win32* | *WIN32*)
766 # Extract the first word of "cl", so it can be a program name with args.
767 set dummy cl; ac_word=$2
768 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
769 echo "configure:770: checking for $ac_word" >&5
770 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
771 echo $ac_n "(cached) $ac_c" 1>&6
772 else
773 if test -n "$CC"; then
774 ac_cv_prog_CC="$CC" # Let the user override the test.
775 else
776 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
777 ac_dummy="$PATH"
778 for ac_dir in $ac_dummy; do
779 test -z "$ac_dir" && ac_dir=.
780 if test -f $ac_dir/$ac_word; then
781 ac_cv_prog_CC="cl"
782 break
783 fi
784 done
785 IFS="$ac_save_ifs"
786 fi
787 fi
788 CC="$ac_cv_prog_CC"
789 if test -n "$CC"; then
790 echo "$ac_t""$CC" 1>&6
791 else
792 echo "$ac_t""no" 1>&6
793 fi
794 ;;
795 esac
796 fi
797 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
798 fi
799
800 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
801 echo "configure:802: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
802
803 ac_ext=c
804 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
805 ac_cpp='$CPP $CPPFLAGS'
806 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
807 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
808 cross_compiling=$ac_cv_prog_cc_cross
809
810 cat > conftest.$ac_ext << EOF
811
812 #line 813 "configure"
813 #include "confdefs.h"
814
815 main(){return(0);}
816 EOF
817 if { (eval echo configure:818: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
818 ac_cv_prog_cc_works=yes
819 # If we can't run a trivial program, we are probably using a cross compiler.
820 if (./conftest; exit) 2>/dev/null; then
821 ac_cv_prog_cc_cross=no
822 else
823 ac_cv_prog_cc_cross=yes
824 fi
825 else
826 echo "configure: failed program was:" >&5
827 cat conftest.$ac_ext >&5
828 ac_cv_prog_cc_works=no
829 fi
830 rm -fr conftest*
831 ac_ext=c
832 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
833 ac_cpp='$CPP $CPPFLAGS'
834 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
835 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
836 cross_compiling=$ac_cv_prog_cc_cross
837
838 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
839 if test $ac_cv_prog_cc_works = no; then
840 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
841 fi
842 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
843 echo "configure:844: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
844 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
845 cross_compiling=$ac_cv_prog_cc_cross
846
847 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
848 echo "configure:849: checking whether we are using GNU C" >&5
849 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
850 echo $ac_n "(cached) $ac_c" 1>&6
851 else
852 cat > conftest.c <<EOF
853 #ifdef __GNUC__
854 yes;
855 #endif
856 EOF
857 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
858 ac_cv_prog_gcc=yes
859 else
860 ac_cv_prog_gcc=no
861 fi
862 fi
863
864 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
865
866 if test $ac_cv_prog_gcc = yes; then
867 GCC=yes
868 else
869 GCC=
870 fi
871
872 ac_test_CFLAGS="${CFLAGS+set}"
873 ac_save_CFLAGS="$CFLAGS"
874 CFLAGS=
875 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
876 echo "configure:877: checking whether ${CC-cc} accepts -g" >&5
877 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
878 echo $ac_n "(cached) $ac_c" 1>&6
879 else
880 echo 'void f(){}' > conftest.c
881 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
882 ac_cv_prog_cc_g=yes
883 else
884 ac_cv_prog_cc_g=no
885 fi
886 rm -f conftest*
887
888 fi
889
890 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
891 if test "$ac_test_CFLAGS" = set; then
892 CFLAGS="$ac_save_CFLAGS"
893 elif test $ac_cv_prog_cc_g = yes; then
894 if test "$GCC" = yes; then
895 CFLAGS="-g -O2"
896 else
897 CFLAGS="-g"
898 fi
899 else
900 if test "$GCC" = yes; then
901 CFLAGS="-O2"
902 else
903 CFLAGS=
904 fi
905 fi
906
907 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
908 do
909 # Extract the first word of "$ac_prog", so it can be a program name with args.
910 set dummy $ac_prog; ac_word=$2
911 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
912 echo "configure:913: checking for $ac_word" >&5
913 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
914 echo $ac_n "(cached) $ac_c" 1>&6
915 else
916 if test -n "$CXX"; then
917 ac_cv_prog_CXX="$CXX" # Let the user override the test.
918 else
919 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
920 ac_dummy="$PATH"
921 for ac_dir in $ac_dummy; do
922 test -z "$ac_dir" && ac_dir=.
923 if test -f $ac_dir/$ac_word; then
924 ac_cv_prog_CXX="$ac_prog"
925 break
926 fi
927 done
928 IFS="$ac_save_ifs"
929 fi
930 fi
931 CXX="$ac_cv_prog_CXX"
932 if test -n "$CXX"; then
933 echo "$ac_t""$CXX" 1>&6
934 else
935 echo "$ac_t""no" 1>&6
936 fi
937
938 test -n "$CXX" && break
939 done
940 test -n "$CXX" || CXX="gcc"
941
942
943 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
944 echo "configure:945: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
945
946 ac_ext=C
947 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
948 ac_cpp='$CXXCPP $CPPFLAGS'
949 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
950 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
951 cross_compiling=$ac_cv_prog_cxx_cross
952
953 cat > conftest.$ac_ext << EOF
954
955 #line 956 "configure"
956 #include "confdefs.h"
957
958 int main(){return(0);}
959 EOF
960 if { (eval echo configure:961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
961 ac_cv_prog_cxx_works=yes
962 # If we can't run a trivial program, we are probably using a cross compiler.
963 if (./conftest; exit) 2>/dev/null; then
964 ac_cv_prog_cxx_cross=no
965 else
966 ac_cv_prog_cxx_cross=yes
967 fi
968 else
969 echo "configure: failed program was:" >&5
970 cat conftest.$ac_ext >&5
971 ac_cv_prog_cxx_works=no
972 fi
973 rm -fr conftest*
974 ac_ext=c
975 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
976 ac_cpp='$CPP $CPPFLAGS'
977 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
978 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
979 cross_compiling=$ac_cv_prog_cc_cross
980
981 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
982 if test $ac_cv_prog_cxx_works = no; then
983 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
984 fi
985 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
986 echo "configure:987: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
987 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
988 cross_compiling=$ac_cv_prog_cxx_cross
989
990 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
991 echo "configure:992: checking whether we are using GNU C++" >&5
992 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
993 echo $ac_n "(cached) $ac_c" 1>&6
994 else
995 cat > conftest.C <<EOF
996 #ifdef __GNUC__
997 yes;
998 #endif
999 EOF
1000 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1001: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1001 ac_cv_prog_gxx=yes
1002 else
1003 ac_cv_prog_gxx=no
1004 fi
1005 fi
1006
1007 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1008
1009 if test $ac_cv_prog_gxx = yes; then
1010 GXX=yes
1011 else
1012 GXX=
1013 fi
1014
1015 ac_test_CXXFLAGS="${CXXFLAGS+set}"
1016 ac_save_CXXFLAGS="$CXXFLAGS"
1017 CXXFLAGS=
1018 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1019 echo "configure:1020: checking whether ${CXX-g++} accepts -g" >&5
1020 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1021 echo $ac_n "(cached) $ac_c" 1>&6
1022 else
1023 echo 'void f(){}' > conftest.cc
1024 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1025 ac_cv_prog_cxx_g=yes
1026 else
1027 ac_cv_prog_cxx_g=no
1028 fi
1029 rm -f conftest*
1030
1031 fi
1032
1033 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1034 if test "$ac_test_CXXFLAGS" = set; then
1035 CXXFLAGS="$ac_save_CXXFLAGS"
1036 elif test $ac_cv_prog_cxx_g = yes; then
1037 if test "$GXX" = yes; then
1038 CXXFLAGS="-g -O2"
1039 else
1040 CXXFLAGS="-g"
1041 fi
1042 else
1043 if test "$GXX" = yes; then
1044 CXXFLAGS="-O2"
1045 else
1046 CXXFLAGS=
1047 fi
1048 fi
1049
1050
1051 if test "x$wx_cv_path_samplesubdirs" = "x"; then
1052 { echo "configure: error: Please run configure from the top level directory." 1>&2; exit 1; }
1053 fi
1054
1055 SAMPLES_SUBDIRS=$wx_cv_path_samplesubdirs
1056
1057
1058 IF_GNU_MAKE=$wx_cv_if_gnu_make
1059 PATH_IFS=$wx_cv_path_ifs
1060 PROGRAM_EXT=$wx_cv_program_ext
1061 WX_TARGET_LIBRARY=$wx_cv_target_library
1062 WX_TARGET_LIBRARY_GL=$wx_cv_target_library_gl
1063 USE_GUI=$wx_cv_use_gui
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
1091
1092 # Extract the first word of "ranlib", so it can be a program name with args.
1093 set dummy ranlib; ac_word=$2
1094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1095 echo "configure:1096: checking for $ac_word" >&5
1096 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1097 echo $ac_n "(cached) $ac_c" 1>&6
1098 else
1099 if test -n "$RANLIB"; then
1100 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1101 else
1102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1103 ac_dummy="$PATH"
1104 for ac_dir in $ac_dummy; do
1105 test -z "$ac_dir" && ac_dir=.
1106 if test -f $ac_dir/$ac_word; then
1107 ac_cv_prog_RANLIB="ranlib"
1108 break
1109 fi
1110 done
1111 IFS="$ac_save_ifs"
1112 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1113 fi
1114 fi
1115 RANLIB="$ac_cv_prog_RANLIB"
1116 if test -n "$RANLIB"; then
1117 echo "$ac_t""$RANLIB" 1>&6
1118 else
1119 echo "$ac_t""no" 1>&6
1120 fi
1121
1122 # Find a good install program. We prefer a C program (faster),
1123 # so one script is as good as another. But avoid the broken or
1124 # incompatible versions:
1125 # SysV /etc/install, /usr/sbin/install
1126 # SunOS /usr/etc/install
1127 # IRIX /sbin/install
1128 # AIX /bin/install
1129 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1130 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1131 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1132 # ./install, which can be erroneously created by make from ./install.sh.
1133 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1134 echo "configure:1135: checking for a BSD compatible install" >&5
1135 if test -z "$INSTALL"; then
1136 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1138 else
1139 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
1140 for ac_dir in $PATH; do
1141 # Account for people who put trailing slashes in PATH elements.
1142 case "$ac_dir/" in
1143 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1144 *)
1145 # OSF1 and SCO ODT 3.0 have their own names for install.
1146 # Don't use installbsd from OSF since it installs stuff as root
1147 # by default.
1148 for ac_prog in ginstall scoinst install; do
1149 if test -f $ac_dir/$ac_prog; then
1150 if test $ac_prog = install &&
1151 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1152 # AIX install. It has an incompatible calling convention.
1153 :
1154 else
1155 ac_cv_path_install="$ac_dir/$ac_prog -c"
1156 break 2
1157 fi
1158 fi
1159 done
1160 ;;
1161 esac
1162 done
1163 IFS="$ac_save_IFS"
1164
1165 fi
1166 if test "${ac_cv_path_install+set}" = set; then
1167 INSTALL="$ac_cv_path_install"
1168 else
1169 # As a last resort, use the slow shell script. We don't cache a
1170 # path for INSTALL within a source directory, because that will
1171 # break other packages using the cache if that directory is
1172 # removed, or if the path is relative.
1173 INSTALL="$ac_install_sh"
1174 fi
1175 fi
1176 echo "$ac_t""$INSTALL" 1>&6
1177
1178 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1179 # It thinks the first close brace ends the variable substitution.
1180 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1181
1182 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1183
1184 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1185
1186 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1187 echo "configure:1188: checking whether ln -s works" >&5
1188 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1189 echo $ac_n "(cached) $ac_c" 1>&6
1190 else
1191 rm -f conftestdata
1192 if ln -s X conftestdata 2>/dev/null
1193 then
1194 rm -f conftestdata
1195 ac_cv_prog_LN_S="ln -s"
1196 else
1197 ac_cv_prog_LN_S=ln
1198 fi
1199 fi
1200 LN_S="$ac_cv_prog_LN_S"
1201 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1202 echo "$ac_t""yes" 1>&6
1203 else
1204 echo "$ac_t""no" 1>&6
1205 fi
1206
1207
1208 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1209 echo "configure:1210: checking whether ${MAKE-make} sets \${MAKE}" >&5
1210 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1211 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1212 echo $ac_n "(cached) $ac_c" 1>&6
1213 else
1214 cat > conftestmake <<\EOF
1215 all:
1216 @echo 'ac_maketemp="${MAKE}"'
1217 EOF
1218 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1219 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1220 if test -n "$ac_maketemp"; then
1221 eval ac_cv_prog_make_${ac_make}_set=yes
1222 else
1223 eval ac_cv_prog_make_${ac_make}_set=no
1224 fi
1225 rm -f conftestmake
1226 fi
1227 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1228 echo "$ac_t""yes" 1>&6
1229 SET_MAKE=
1230 else
1231 echo "$ac_t""no" 1>&6
1232 SET_MAKE="MAKE=${MAKE-make}"
1233 fi
1234
1235
1236
1237 if test "$build" != "$host" ; then
1238 AR=$host_alias-ar
1239 STRIP=$host_alias-strip
1240 else
1241 # Extract the first word of "ar", so it can be a program name with args.
1242 set dummy ar; ac_word=$2
1243 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1244 echo "configure:1245: checking for $ac_word" >&5
1245 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1247 else
1248 if test -n "$AR"; then
1249 ac_cv_prog_AR="$AR" # Let the user override the test.
1250 else
1251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1252 ac_dummy="$PATH"
1253 for ac_dir in $ac_dummy; do
1254 test -z "$ac_dir" && ac_dir=.
1255 if test -f $ac_dir/$ac_word; then
1256 ac_cv_prog_AR="ar"
1257 break
1258 fi
1259 done
1260 IFS="$ac_save_ifs"
1261 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
1262 fi
1263 fi
1264 AR="$ac_cv_prog_AR"
1265 if test -n "$AR"; then
1266 echo "$ac_t""$AR" 1>&6
1267 else
1268 echo "$ac_t""no" 1>&6
1269 fi
1270
1271 # Extract the first word of "strip", so it can be a program name with args.
1272 set dummy strip; ac_word=$2
1273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1274 echo "configure:1275: checking for $ac_word" >&5
1275 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
1276 echo $ac_n "(cached) $ac_c" 1>&6
1277 else
1278 if test -n "$STRIP"; then
1279 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1280 else
1281 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1282 ac_dummy="$PATH"
1283 for ac_dir in $ac_dummy; do
1284 test -z "$ac_dir" && ac_dir=.
1285 if test -f $ac_dir/$ac_word; then
1286 ac_cv_prog_STRIP="strip"
1287 break
1288 fi
1289 done
1290 IFS="$ac_save_ifs"
1291 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
1292 fi
1293 fi
1294 STRIP="$ac_cv_prog_STRIP"
1295 if test -n "$STRIP"; then
1296 echo "$ac_t""$STRIP" 1>&6
1297 else
1298 echo "$ac_t""no" 1>&6
1299 fi
1300
1301 fi
1302
1303 case ${host} in
1304 *-hp-hpux* )
1305 INSTALL_DIR="mkdir"
1306 ;;
1307 *) INSTALL_DIR="$INSTALL -d"
1308 ;;
1309 esac
1310
1311
1312 fi
1313
1314 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
1315 echo "configure:1316: checking if make is GNU make" >&5
1316 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
1317 echo $ac_n "(cached) $ac_c" 1>&6
1318 else
1319
1320 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
1321 egrep -s GNU > /dev/null); then
1322 bakefile_cv_prog_makeisgnu="yes"
1323 else
1324 bakefile_cv_prog_makeisgnu="no"
1325 fi
1326
1327 fi
1328
1329 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
1330
1331 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
1332 IF_GNU_MAKE=""
1333 else
1334 IF_GNU_MAKE="#"
1335 fi
1336
1337
1338
1339 PLATFORM_UNIX=0
1340 PLATFORM_WIN32=0
1341 PLATFORM_MSDOS=0
1342 PLATFORM_MAC=0
1343 PLATFORM_MACOSX=0
1344
1345 case "${host}" in
1346 *-*-cygwin* | *-*-mingw32* )
1347 PLATFORM_WIN32=1
1348 ;;
1349 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
1350 PLATFORM_MSDOS=1
1351 ;;
1352 powerpc-*-darwin* )
1353 PLATFORM_MAC=1
1354 PLATFORM_MACOSX=1
1355 ;;
1356 * )
1357 PLATFORM_UNIX=1
1358 ;;
1359 esac
1360
1361
1362
1363
1364
1365
1366
1367
1368 SO_SUFFIX="so"
1369 EXEEXT=""
1370 DLLPREFIX=lib
1371
1372 case "${host}" in
1373 *-hp-hpux* )
1374 SO_SUFFIX="sl"
1375 ;;
1376 *-*-aix* )
1377 SO_SUFFIX="a"
1378 ;;
1379 *-*-cygwin* | *-*-mingw32* )
1380 SO_SUFFIX="dll"
1381 EXEEXT=".exe"
1382 DLLPREFIX=""
1383 ;;
1384 *-pc-msdosdjgpp | *-pc-os2_emx | *-pc-os2-emx )
1385 EXEEXT=".exe"
1386 DLLPREFIX=""
1387 ;;
1388 powerpc-*-darwin* )
1389 SO_SUFFIX="dylib"
1390 ;;
1391 esac
1392
1393
1394
1395
1396
1397
1398 SHARED_LD_CC="\$(CC) -shared -o"
1399 SHARED_LD_CXX="\$(CXX) -shared -o"
1400
1401 if test "x$GCC" = "xyes"; then
1402 PIC_FLAG="-fPIC"
1403 fi
1404
1405 case "${host}" in
1406 *-hp-hpux* )
1407 if test "x$GCC" = "xyes"; then
1408 SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o"
1409 SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o"
1410 else
1411 LDFLAGS="$LDFLAGS -L/usr/lib"
1412
1413 SHARED_LD_CC="${CC} -b -o"
1414 SHARED_LD_CXX="${CXX} -b -o"
1415 PIC_FLAG="+Z"
1416 fi
1417 ;;
1418
1419 *-*-linux* )
1420 if test "x$GCC" != "xyes"; then
1421 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
1422 echo "configure:1423: checking for Intel compiler" >&5
1423 if eval "test \"`echo '$''{'bakefile_cv_prog_icc'+set}'`\" = set"; then
1424 echo $ac_n "(cached) $ac_c" 1>&6
1425 else
1426
1427 cat > conftest.$ac_ext <<EOF
1428 #line 1429 "configure"
1429 #include "confdefs.h"
1430
1431 int main() {
1432
1433 #ifndef __INTEL_COMPILER
1434 #error Not icc
1435 #endif
1436
1437 ; return 0; }
1438 EOF
1439 if { (eval echo configure:1440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1440 rm -rf conftest*
1441 bakefile_cv_prog_icc=yes
1442 else
1443 echo "configure: failed program was:" >&5
1444 cat conftest.$ac_ext >&5
1445 rm -rf conftest*
1446 bakefile_cv_prog_icc=no
1447
1448 fi
1449 rm -f conftest*
1450
1451 fi
1452
1453 echo "$ac_t""$bakefile_cv_prog_icc" 1>&6
1454 if test "$bakefile_cv_prog_icc" = "yes"; then
1455 PIC_FLAG="-KPIC"
1456 fi
1457 fi
1458 ;;
1459
1460 *-*-solaris2* )
1461 if test "x$GCC" != xyes ; then
1462 SHARED_LD_CC="${CC} -G -o"
1463 SHARED_LD_CXX="${CXX} -G -o"
1464 PIC_FLAG="-KPIC"
1465 fi
1466 ;;
1467
1468 *-*-darwin* )
1469 CFLAGS="$CFLAGS -fno-common"
1470 CXXFLAGS="$CXXFLAGS -fno-common"
1471
1472
1473 cat <<EOF >shared-ld-sh
1474 #!/bin/sh
1475 #-----------------------------------------------------------------------------
1476 #-- Name: distrib/mac/shared-ld-sh
1477 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
1478 #-- Author: Gilles Depeyrot
1479 #-- Copyright: (c) 2002 Gilles Depeyrot
1480 #-- Licence: any use permitted
1481 #-----------------------------------------------------------------------------
1482
1483 verbose=0
1484 args=""
1485 objects=""
1486
1487 while test \${#} -gt 0; do
1488 case \${1} in
1489
1490 -v)
1491 verbose=1
1492 ;;
1493
1494 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
1495 # collect these options and values
1496 args="\${args} \${1} \${2}"
1497 shift
1498 ;;
1499
1500 -l*|-L*|-flat_namespace)
1501 # collect these options
1502 args="\${args} \${1}"
1503 ;;
1504
1505 -dynamiclib)
1506 # skip these options
1507 ;;
1508
1509 -*)
1510 echo "shared-ld: unhandled option '\${1}'"
1511 exit 1
1512 ;;
1513
1514 *.o | *.a)
1515 # collect object files
1516 objects="\${objects} \${1}"
1517 ;;
1518
1519 *)
1520 echo "shared-ld: unhandled argument '\${1}'"
1521 exit 1
1522 ;;
1523
1524 esac
1525 shift
1526 done
1527
1528 #
1529 # Link one module containing all the others
1530 #
1531 if test \${verbose} = 1; then
1532 echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o"
1533 fi
1534 c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o
1535 status=\$?
1536 if test \${status} != 0; then
1537 exit \${status}
1538 fi
1539
1540 #
1541 # Link the shared library from the single module created
1542 #
1543 if test \${verbose} = 1; then
1544 echo "cc -dynamiclib master.\$\$.o \${args}"
1545 fi
1546 c++ -dynamiclib master.\$\$.o \${args}
1547 status=\$?
1548 if test \${status} != 0; then
1549 exit \${status}
1550 fi
1551
1552 #
1553 # Remove intermediate module
1554 #
1555 rm -f master.\$\$.o
1556
1557 exit 0
1558 EOF
1559 chmod +x shared-ld-sh
1560
1561 SHARED_LD_CC="`pwd`/shared-ld-sh -undefined suppress -flat_namespace -o"
1562 SHARED_LD_CXX="$SHARED_LD_CC"
1563 PIC_FLAG="-dynamic -fPIC"
1564 ;;
1565
1566 *-*-aix* )
1567 if test "x$GCC" != "xyes"; then
1568 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
1569 set dummy makeC++SharedLib; ac_word=$2
1570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1571 echo "configure:1572: checking for $ac_word" >&5
1572 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
1573 echo $ac_n "(cached) $ac_c" 1>&6
1574 else
1575 if test -n "$AIX_CXX_LD"; then
1576 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
1577 else
1578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1579 ac_dummy="$PATH"
1580 for ac_dir in $ac_dummy; do
1581 test -z "$ac_dir" && ac_dir=.
1582 if test -f $ac_dir/$ac_word; then
1583 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
1584 break
1585 fi
1586 done
1587 IFS="$ac_save_ifs"
1588 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
1589 fi
1590 fi
1591 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
1592 if test -n "$AIX_CXX_LD"; then
1593 echo "$ac_t""$AIX_CXX_LD" 1>&6
1594 else
1595 echo "$ac_t""no" 1>&6
1596 fi
1597
1598 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
1599 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
1600 fi
1601 ;;
1602
1603 *-*-beos* )
1604 SHARED_LD_CC="${LD} -shared -o"
1605 SHARED_LD_CXX="${LD} -shared -o"
1606 ;;
1607
1608 *-*-irix* )
1609 if test "x$GCC" != "xyes"; then
1610 PIC_FLAG="-KPIC"
1611 fi
1612 ;;
1613
1614 *-*-cygwin* | *-*-mingw32* )
1615 PIC_FLAG=""
1616 ;;
1617
1618 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
1619 *-*-sunos4* | \
1620 *-*-osf* | \
1621 *-*-dgux5* | \
1622 *-*-sysv5* )
1623 ;;
1624
1625 *)
1626 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
1627 esac
1628
1629
1630
1631
1632
1633
1634 USE_SOVERSION=0
1635 USE_SOVERLINUX=0
1636 USE_SOVERSOLARIS=0
1637 USE_SOSYMLINKS=0
1638 USE_MACVERSION=0
1639 SONAME_FLAG=
1640
1641 case "${host}" in
1642 *-*-linux* )
1643 SONAME_FLAG="-Wl,-soname,"
1644 USE_SOVERSION=1
1645 USE_SOVERLINUX=1
1646 USE_SOSYMLINKS=1
1647 ;;
1648
1649 *-*-solaris2* )
1650 SONAME_FLAG="-h "
1651 USE_SOVERSION=1
1652 USE_SOVERSOLARIS=1
1653 USE_SOSYMLINKS=1
1654 ;;
1655
1656 *-*-darwin* )
1657 USE_MACVERSION=1
1658 USE_SOVERSION=1
1659 USE_SOSYMLINKS=1
1660 ;;
1661 esac
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671 DEPS_TYPE=no
1672 if test "x$GCC" = "xyes"; then
1673 DEPS_TYPE=gcc
1674 fi
1675
1676
1677
1678
1679 RESCOMP=
1680 SETFILE=
1681
1682 case ${host} in
1683 *-*-cygwin* | *-*-mingw32* )
1684 if test "$build" != "$host" ; then
1685 RESCOMP=$host_alias-windres
1686 else
1687 # Extract the first word of "windres", so it can be a program name with args.
1688 set dummy windres; ac_word=$2
1689 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1690 echo "configure:1691: checking for $ac_word" >&5
1691 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
1692 echo $ac_n "(cached) $ac_c" 1>&6
1693 else
1694 if test -n "$RESCOMP"; then
1695 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
1696 else
1697 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1698 ac_dummy="$PATH"
1699 for ac_dir in $ac_dummy; do
1700 test -z "$ac_dir" && ac_dir=.
1701 if test -f $ac_dir/$ac_word; then
1702 ac_cv_prog_RESCOMP="windres"
1703 break
1704 fi
1705 done
1706 IFS="$ac_save_ifs"
1707 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres"
1708 fi
1709 fi
1710 RESCOMP="$ac_cv_prog_RESCOMP"
1711 if test -n "$RESCOMP"; then
1712 echo "$ac_t""$RESCOMP" 1>&6
1713 else
1714 echo "$ac_t""no" 1>&6
1715 fi
1716
1717 fi
1718 ;;
1719
1720 *-*-darwin* )
1721 # Extract the first word of "Rez", so it can be a program name with args.
1722 set dummy Rez; ac_word=$2
1723 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1724 echo "configure:1725: checking for $ac_word" >&5
1725 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
1726 echo $ac_n "(cached) $ac_c" 1>&6
1727 else
1728 if test -n "$RESCOMP"; then
1729 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
1730 else
1731 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1732 ac_dummy="$PATH"
1733 for ac_dir in $ac_dummy; do
1734 test -z "$ac_dir" && ac_dir=.
1735 if test -f $ac_dir/$ac_word; then
1736 ac_cv_prog_RESCOMP="Rez"
1737 break
1738 fi
1739 done
1740 IFS="$ac_save_ifs"
1741 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
1742 fi
1743 fi
1744 RESCOMP="$ac_cv_prog_RESCOMP"
1745 if test -n "$RESCOMP"; then
1746 echo "$ac_t""$RESCOMP" 1>&6
1747 else
1748 echo "$ac_t""no" 1>&6
1749 fi
1750
1751 # Extract the first word of "SetFile", so it can be a program name with args.
1752 set dummy SetFile; ac_word=$2
1753 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1754 echo "configure:1755: checking for $ac_word" >&5
1755 if eval "test \"`echo '$''{'ac_cv_prog_SETFILE'+set}'`\" = set"; then
1756 echo $ac_n "(cached) $ac_c" 1>&6
1757 else
1758 if test -n "$SETFILE"; then
1759 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
1760 else
1761 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1762 ac_dummy="$PATH"
1763 for ac_dir in $ac_dummy; do
1764 test -z "$ac_dir" && ac_dir=.
1765 if test -f $ac_dir/$ac_word; then
1766 ac_cv_prog_SETFILE="SetFile"
1767 break
1768 fi
1769 done
1770 IFS="$ac_save_ifs"
1771 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
1772 fi
1773 fi
1774 SETFILE="$ac_cv_prog_SETFILE"
1775 if test -n "$SETFILE"; then
1776 echo "$ac_t""$SETFILE" 1>&6
1777 else
1778 echo "$ac_t""no" 1>&6
1779 fi
1780
1781 ;;
1782 esac
1783
1784
1785
1786
1787
1788
1789
1790 COND_PLATFORM_WIN321="#"
1791 if test "x$PLATFORM_WIN32" = "x1" ; then
1792 COND_PLATFORM_WIN321=
1793 fi
1794
1795 COND_PLATFORM_WIN320="#"
1796 if test "x$PLATFORM_WIN32" = "x0" ; then
1797 COND_PLATFORM_WIN320=
1798 fi
1799
1800 COND_DEPS_TYPEGCC="#"
1801 if test "x$DEPS_TYPE" = "xgcc" ; then
1802 COND_DEPS_TYPEGCC=
1803 fi
1804
1805 COND_WXUSE_ZLIBBUILTIN="#"
1806 if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
1807 COND_WXUSE_ZLIBBUILTIN=
1808 fi
1809
1810 COND_UNICODE1="#"
1811 if test "x$UNICODE" = "x1" ; then
1812 COND_UNICODE1=
1813 fi
1814
1815 COND_BUILDDEBUG="#"
1816 if test "x$BUILD" = "xdebug" ; then
1817 COND_BUILDDEBUG=
1818 fi
1819
1820 COND_WXUSE_LIBJPEGBUILTIN="#"
1821 if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
1822 COND_WXUSE_LIBJPEGBUILTIN=
1823 fi
1824
1825 COND_WXUSE_ODBCBUILTIN="#"
1826 if test "x$wxUSE_ODBC" = "xbuiltin" ; then
1827 COND_WXUSE_ODBCBUILTIN=
1828 fi
1829
1830 COND_WXUSE_LIBPNGBUILTIN="#"
1831 if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
1832 COND_WXUSE_LIBPNGBUILTIN=
1833 fi
1834
1835 COND_MONOLITHIC0="#"
1836 if test "x$MONOLITHIC" = "x0" ; then
1837 COND_MONOLITHIC0=
1838 fi
1839
1840 COND_WXUNIV1="#"
1841 if test "x$WXUNIV" = "x1" ; then
1842 COND_WXUNIV1=
1843 fi
1844
1845 COND_PLATFORM_MAC1="#"
1846 if test "x$PLATFORM_MAC" = "x1" ; then
1847 COND_PLATFORM_MAC1=
1848 fi
1849
1850 COND_TOOLKITMAC="#"
1851 if test "x$TOOLKIT" = "xMAC" ; then
1852 COND_TOOLKITMAC=
1853 fi
1854
1855 COND_MONOLITHIC1="#"
1856 if test "x$MONOLITHIC" = "x1" ; then
1857 COND_MONOLITHIC1=
1858 fi
1859
1860 COND_WXUSE_LIBTIFFBUILTIN="#"
1861 if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
1862 COND_WXUSE_LIBTIFFBUILTIN=
1863 fi
1864
1865 COND_USE_GUI0="#"
1866 if test "x$USE_GUI" = "x0" ; then
1867 COND_USE_GUI0=
1868 fi
1869
1870 COND_USE_GUI1="#"
1871 if test "x$USE_GUI" = "x1" ; then
1872 COND_USE_GUI1=
1873 fi
1874
1875 COND_WXUSE_REGEXBUILTIN="#"
1876 if test "x$wxUSE_REGEX" = "xbuiltin" ; then
1877 COND_WXUSE_REGEXBUILTIN=
1878 fi
1879
1880
1881
1882
1883
1884 trap '' 1 2 15
1885 cat > confcache <<\EOF
1886 # This file is a shell script that caches the results of configure
1887 # tests run on this system so they can be shared between configure
1888 # scripts and configure runs. It is not useful on other systems.
1889 # If it contains results you don't want to keep, you may remove or edit it.
1890 #
1891 # By default, configure uses ./config.cache as the cache file,
1892 # creating it if it does not exist already. You can give configure
1893 # the --cache-file=FILE option to use a different cache file; that is
1894 # what configure does when it calls configure scripts in
1895 # subdirectories, so they share the cache.
1896 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1897 # config.status only pays attention to the cache file if you give it the
1898 # --recheck option to rerun configure.
1899 #
1900 EOF
1901 # The following way of writing the cache mishandles newlines in values,
1902 # but we know of no workaround that is simple, portable, and efficient.
1903 # So, don't put newlines in cache variables' values.
1904 # Ultrix sh set writes to stderr and can't be redirected directly,
1905 # and sets the high bit in the cache file unless we assign to the vars.
1906 (set) 2>&1 |
1907 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1908 *ac_space=\ *)
1909 # `set' does not quote correctly, so add quotes (double-quote substitution
1910 # turns \\\\ into \\, and sed turns \\ into \).
1911 sed -n \
1912 -e "s/'/'\\\\''/g" \
1913 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1914 ;;
1915 *)
1916 # `set' quotes correctly as required by POSIX, so do not add quotes.
1917 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1918 ;;
1919 esac >> confcache
1920 if cmp -s $cache_file confcache; then
1921 :
1922 else
1923 if test -w $cache_file; then
1924 echo "updating cache $cache_file"
1925 cat confcache > $cache_file
1926 else
1927 echo "not updating unwritable cache $cache_file"
1928 fi
1929 fi
1930 rm -f confcache
1931
1932 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1933
1934 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1935 # Let make expand exec_prefix.
1936 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1937
1938 # Any assignment to VPATH causes Sun make to only execute
1939 # the first set of double-colon rules, so remove it if not needed.
1940 # If there is a colon in the path, we need to keep it.
1941 if test "x$srcdir" = x.; then
1942 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
1943 fi
1944
1945 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1946
1947 # Transform confdefs.h into DEFS.
1948 # Protect against shell expansion while executing Makefile rules.
1949 # Protect against Makefile macro expansion.
1950 cat > conftest.defs <<\EOF
1951 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1952 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
1953 s%\[%\\&%g
1954 s%\]%\\&%g
1955 s%\$%$$%g
1956 EOF
1957 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1958 rm -f conftest.defs
1959
1960
1961 # Without the "./", some shells look in PATH for config.status.
1962 : ${CONFIG_STATUS=./config.status}
1963
1964 echo creating $CONFIG_STATUS
1965 rm -f $CONFIG_STATUS
1966 cat > $CONFIG_STATUS <<EOF
1967 #! /bin/sh
1968 # Generated automatically by configure.
1969 # Run this file to recreate the current configuration.
1970 # This directory was configured as follows,
1971 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1972 #
1973 # $0 $ac_configure_args
1974 #
1975 # Compiler output produced by configure, useful for debugging
1976 # configure, is in ./config.log if it exists.
1977
1978 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1979 for ac_option
1980 do
1981 case "\$ac_option" in
1982 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1983 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1984 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1985 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1986 echo "$CONFIG_STATUS generated by autoconf version 2.13"
1987 exit 0 ;;
1988 -help | --help | --hel | --he | --h)
1989 echo "\$ac_cs_usage"; exit 0 ;;
1990 *) echo "\$ac_cs_usage"; exit 1 ;;
1991 esac
1992 done
1993
1994 ac_given_srcdir=$srcdir
1995 ac_given_INSTALL="$INSTALL"
1996
1997 trap 'rm -fr `echo "
1998 Makefile
1999 access/Makefile
2000 artprov/Makefile
2001 caret/Makefile
2002 calendar/Makefile
2003 checklst/Makefile
2004 config/Makefile
2005 controls/Makefile
2006 console/Makefile
2007 db/Makefile
2008 dialogs/Makefile
2009 dialup/Makefile
2010 docview/Makefile
2011 docvwmdi/Makefile
2012 dnd/Makefile
2013 dragimag/Makefile
2014 drawing/Makefile
2015 dynamic/Makefile
2016 erase/Makefile
2017 event/Makefile
2018 exec/Makefile
2019 font/Makefile
2020 grid/Makefile
2021 help/Makefile
2022 image/Makefile
2023 internat/Makefile
2024 ipc/Makefile
2025 joytest/Makefile
2026 keyboard/Makefile
2027 layout/Makefile
2028 listctrl/Makefile
2029 mdi/Makefile
2030 menu/Makefile
2031 memcheck/Makefile
2032 minifram/Makefile
2033 minimal/Makefile
2034 mobile/Makefile
2035 mobile/wxedit/Makefile
2036 mobile/styles/Makefile
2037 multimon/Makefile
2038 notebook/Makefile
2039 oleauto/Makefile
2040 ownerdrw/Makefile
2041 png/Makefile
2042 printing/Makefile
2043 propsize/Makefile
2044 regtest/Makefile
2045 rotate/Makefile
2046 sashtest/Makefile
2047 shaped/Makefile
2048 scroll/Makefile
2049 scrollsub/Makefile
2050 sockets/Makefile
2051 splitter/Makefile
2052 statbar/Makefile
2053 taskbar/Makefile
2054 text/Makefile
2055 thread/Makefile
2056 toolbar/Makefile
2057 treectrl/Makefile
2058 typetest/Makefile
2059 validate/Makefile
2060 widgets/Makefile
2061 wizard/Makefile
2062 htlbox/Makefile
2063 html/Makefile
2064 html/about/Makefile
2065 html/help/Makefile
2066 html/printing/Makefile
2067 html/helpview/Makefile
2068 html/test/Makefile
2069 html/zip/Makefile
2070 html/virtual/Makefile
2071 html/widget/Makefile
2072 opengl/Makefile
2073 opengl/cube/Makefile
2074 opengl/penguin/Makefile
2075 opengl/isosurf/Makefile
2076 " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2077 EOF
2078 cat >> $CONFIG_STATUS <<EOF
2079
2080 # Protect against being on the right side of a sed subst in config.status.
2081 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2082 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2083 $ac_vpsub
2084 $extrasub
2085 s%@SHELL@%$SHELL%g
2086 s%@CFLAGS@%$CFLAGS%g
2087 s%@CPPFLAGS@%$CPPFLAGS%g
2088 s%@CXXFLAGS@%$CXXFLAGS%g
2089 s%@FFLAGS@%$FFLAGS%g
2090 s%@DEFS@%$DEFS%g
2091 s%@LDFLAGS@%$LDFLAGS%g
2092 s%@LIBS@%$LIBS%g
2093 s%@exec_prefix@%$exec_prefix%g
2094 s%@prefix@%$prefix%g
2095 s%@program_transform_name@%$program_transform_name%g
2096 s%@bindir@%$bindir%g
2097 s%@sbindir@%$sbindir%g
2098 s%@libexecdir@%$libexecdir%g
2099 s%@datadir@%$datadir%g
2100 s%@sysconfdir@%$sysconfdir%g
2101 s%@sharedstatedir@%$sharedstatedir%g
2102 s%@localstatedir@%$localstatedir%g
2103 s%@libdir@%$libdir%g
2104 s%@includedir@%$includedir%g
2105 s%@oldincludedir@%$oldincludedir%g
2106 s%@infodir@%$infodir%g
2107 s%@mandir@%$mandir%g
2108 s%@host@%$host%g
2109 s%@host_alias@%$host_alias%g
2110 s%@host_cpu@%$host_cpu%g
2111 s%@host_vendor@%$host_vendor%g
2112 s%@host_os@%$host_os%g
2113 s%@target@%$target%g
2114 s%@target_alias@%$target_alias%g
2115 s%@target_cpu@%$target_cpu%g
2116 s%@target_vendor@%$target_vendor%g
2117 s%@target_os@%$target_os%g
2118 s%@build@%$build%g
2119 s%@build_alias@%$build_alias%g
2120 s%@build_cpu@%$build_cpu%g
2121 s%@build_vendor@%$build_vendor%g
2122 s%@build_os@%$build_os%g
2123 s%@CC@%$CC%g
2124 s%@CXX@%$CXX%g
2125 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
2126 s%@top_builddir@%$top_builddir%g
2127 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
2128 s%@PATH_IFS@%$PATH_IFS%g
2129 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
2130 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
2131 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
2132 s%@wxUSE_ZLIB@%$wxUSE_ZLIB%g
2133 s%@wxUSE_REGEX@%$wxUSE_REGEX%g
2134 s%@wxUSE_ODBC@%$wxUSE_ODBC%g
2135 s%@wxUSE_LIBJPEG@%$wxUSE_LIBJPEG%g
2136 s%@wxUSE_LIBPNG@%$wxUSE_LIBPNG%g
2137 s%@wxUSE_LIBTIFF@%$wxUSE_LIBTIFF%g
2138 s%@TOOLKIT@%$TOOLKIT%g
2139 s%@TOOLKIT_LOWERCASE@%$TOOLKIT_LOWERCASE%g
2140 s%@TOOLKIT_VERSION@%$TOOLKIT_VERSION%g
2141 s%@EXTRALIBS@%$EXTRALIBS%g
2142 s%@WXUNIV@%$WXUNIV%g
2143 s%@UNICODE@%$UNICODE%g
2144 s%@BUILD@%$BUILD%g
2145 s%@SHARED@%$SHARED%g
2146 s%@USE_GUI@%$USE_GUI%g
2147 s%@MONOLITHIC@%$MONOLITHIC%g
2148 s%@SAMPLES_RPATH_FLAG@%$SAMPLES_RPATH_FLAG%g
2149 s%@RANLIB@%$RANLIB%g
2150 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2151 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
2152 s%@INSTALL_DATA@%$INSTALL_DATA%g
2153 s%@LN_S@%$LN_S%g
2154 s%@SET_MAKE@%$SET_MAKE%g
2155 s%@MAKE_SET@%$MAKE_SET%g
2156 s%@AR@%$AR%g
2157 s%@STRIP@%$STRIP%g
2158 s%@INSTALL_DIR@%$INSTALL_DIR%g
2159 s%@PLATFORM_UNIX@%$PLATFORM_UNIX%g
2160 s%@PLATFORM_WIN32@%$PLATFORM_WIN32%g
2161 s%@PLATFORM_MSDOS@%$PLATFORM_MSDOS%g
2162 s%@PLATFORM_MAC@%$PLATFORM_MAC%g
2163 s%@PLATFORM_MACOSX@%$PLATFORM_MACOSX%g
2164 s%@SO_SUFFIX@%$SO_SUFFIX%g
2165 s%@EXEEXT@%$EXEEXT%g
2166 s%@DLLPREFIX@%$DLLPREFIX%g
2167 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
2168 s%@SHARED_LD_CC@%$SHARED_LD_CC%g
2169 s%@SHARED_LD_CXX@%$SHARED_LD_CXX%g
2170 s%@PIC_FLAG@%$PIC_FLAG%g
2171 s%@USE_SOVERSION@%$USE_SOVERSION%g
2172 s%@USE_SOVERLINUX@%$USE_SOVERLINUX%g
2173 s%@USE_SOVERSOLARIS@%$USE_SOVERSOLARIS%g
2174 s%@USE_MACVERSION@%$USE_MACVERSION%g
2175 s%@USE_SOSYMLINKS@%$USE_SOSYMLINKS%g
2176 s%@SONAME_FLAG@%$SONAME_FLAG%g
2177 s%@DEPS_TYPE@%$DEPS_TYPE%g
2178 s%@RESCOMP@%$RESCOMP%g
2179 s%@SETFILE@%$SETFILE%g
2180 s%@COND_PLATFORM_WIN321@%$COND_PLATFORM_WIN321%g
2181 s%@COND_PLATFORM_WIN320@%$COND_PLATFORM_WIN320%g
2182 s%@COND_DEPS_TYPEGCC@%$COND_DEPS_TYPEGCC%g
2183 s%@COND_WXUSE_ZLIBBUILTIN@%$COND_WXUSE_ZLIBBUILTIN%g
2184 s%@COND_UNICODE1@%$COND_UNICODE1%g
2185 s%@COND_BUILDDEBUG@%$COND_BUILDDEBUG%g
2186 s%@COND_WXUSE_LIBJPEGBUILTIN@%$COND_WXUSE_LIBJPEGBUILTIN%g
2187 s%@COND_WXUSE_ODBCBUILTIN@%$COND_WXUSE_ODBCBUILTIN%g
2188 s%@COND_WXUSE_LIBPNGBUILTIN@%$COND_WXUSE_LIBPNGBUILTIN%g
2189 s%@COND_MONOLITHIC0@%$COND_MONOLITHIC0%g
2190 s%@COND_WXUNIV1@%$COND_WXUNIV1%g
2191 s%@COND_PLATFORM_MAC1@%$COND_PLATFORM_MAC1%g
2192 s%@COND_TOOLKITMAC@%$COND_TOOLKITMAC%g
2193 s%@COND_MONOLITHIC1@%$COND_MONOLITHIC1%g
2194 s%@COND_WXUSE_LIBTIFFBUILTIN@%$COND_WXUSE_LIBTIFFBUILTIN%g
2195 s%@COND_USE_GUI0@%$COND_USE_GUI0%g
2196 s%@COND_USE_GUI1@%$COND_USE_GUI1%g
2197 s%@COND_WXUSE_REGEXBUILTIN@%$COND_WXUSE_REGEXBUILTIN%g
2198
2199 CEOF
2200 EOF
2201
2202 cat >> $CONFIG_STATUS <<\EOF
2203
2204 # Split the substitutions into bite-sized pieces for seds with
2205 # small command number limits, like on Digital OSF/1 and HP-UX.
2206 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2207 ac_file=1 # Number of current file.
2208 ac_beg=1 # First line for current file.
2209 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2210 ac_more_lines=:
2211 ac_sed_cmds=""
2212 while $ac_more_lines; do
2213 if test $ac_beg -gt 1; then
2214 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2215 else
2216 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2217 fi
2218 if test ! -s conftest.s$ac_file; then
2219 ac_more_lines=false
2220 rm -f conftest.s$ac_file
2221 else
2222 if test -z "$ac_sed_cmds"; then
2223 ac_sed_cmds="sed -f conftest.s$ac_file"
2224 else
2225 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2226 fi
2227 ac_file=`expr $ac_file + 1`
2228 ac_beg=$ac_end
2229 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2230 fi
2231 done
2232 if test -z "$ac_sed_cmds"; then
2233 ac_sed_cmds=cat
2234 fi
2235 EOF
2236
2237 cat >> $CONFIG_STATUS <<EOF
2238
2239 CONFIG_FILES=\${CONFIG_FILES-"Makefile
2240 access/Makefile
2241 artprov/Makefile
2242 caret/Makefile
2243 calendar/Makefile
2244 checklst/Makefile
2245 config/Makefile
2246 controls/Makefile
2247 console/Makefile
2248 db/Makefile
2249 dialogs/Makefile
2250 dialup/Makefile
2251 docview/Makefile
2252 docvwmdi/Makefile
2253 dnd/Makefile
2254 dragimag/Makefile
2255 drawing/Makefile
2256 dynamic/Makefile
2257 erase/Makefile
2258 event/Makefile
2259 exec/Makefile
2260 font/Makefile
2261 grid/Makefile
2262 help/Makefile
2263 image/Makefile
2264 internat/Makefile
2265 ipc/Makefile
2266 joytest/Makefile
2267 keyboard/Makefile
2268 layout/Makefile
2269 listctrl/Makefile
2270 mdi/Makefile
2271 menu/Makefile
2272 memcheck/Makefile
2273 minifram/Makefile
2274 minimal/Makefile
2275 mobile/Makefile
2276 mobile/wxedit/Makefile
2277 mobile/styles/Makefile
2278 multimon/Makefile
2279 notebook/Makefile
2280 oleauto/Makefile
2281 ownerdrw/Makefile
2282 png/Makefile
2283 printing/Makefile
2284 propsize/Makefile
2285 regtest/Makefile
2286 rotate/Makefile
2287 sashtest/Makefile
2288 shaped/Makefile
2289 scroll/Makefile
2290 scrollsub/Makefile
2291 sockets/Makefile
2292 splitter/Makefile
2293 statbar/Makefile
2294 taskbar/Makefile
2295 text/Makefile
2296 thread/Makefile
2297 toolbar/Makefile
2298 treectrl/Makefile
2299 typetest/Makefile
2300 validate/Makefile
2301 widgets/Makefile
2302 wizard/Makefile
2303 htlbox/Makefile
2304 html/Makefile
2305 html/about/Makefile
2306 html/help/Makefile
2307 html/printing/Makefile
2308 html/helpview/Makefile
2309 html/test/Makefile
2310 html/zip/Makefile
2311 html/virtual/Makefile
2312 html/widget/Makefile
2313 opengl/Makefile
2314 opengl/cube/Makefile
2315 opengl/penguin/Makefile
2316 opengl/isosurf/Makefile
2317 "}
2318 EOF
2319 cat >> $CONFIG_STATUS <<\EOF
2320 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2321 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2322 case "$ac_file" in
2323 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2324 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2325 *) ac_file_in="${ac_file}.in" ;;
2326 esac
2327
2328 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2329
2330 # Remove last slash and all that follows it. Not all systems have dirname.
2331 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2332 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2333 # The file is in a subdirectory.
2334 test ! -d "$ac_dir" && mkdir "$ac_dir"
2335 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2336 # A "../" for each directory in $ac_dir_suffix.
2337 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2338 else
2339 ac_dir_suffix= ac_dots=
2340 fi
2341
2342 case "$ac_given_srcdir" in
2343 .) srcdir=.
2344 if test -z "$ac_dots"; then top_srcdir=.
2345 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2346 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2347 *) # Relative path.
2348 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2349 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2350 esac
2351
2352 case "$ac_given_INSTALL" in
2353 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2354 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2355 esac
2356
2357 echo creating "$ac_file"
2358 rm -f "$ac_file"
2359 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2360 case "$ac_file" in
2361 *Makefile*) ac_comsub="1i\\
2362 # $configure_input" ;;
2363 *) ac_comsub= ;;
2364 esac
2365
2366 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2367 sed -e "$ac_comsub
2368 s%@configure_input@%$configure_input%g
2369 s%@srcdir@%$srcdir%g
2370 s%@top_srcdir@%$top_srcdir%g
2371 s%@INSTALL@%$INSTALL%g
2372 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2373 fi; done
2374 rm -f conftest.s*
2375
2376 EOF
2377 cat >> $CONFIG_STATUS <<EOF
2378
2379 EOF
2380 cat >> $CONFIG_STATUS <<\EOF
2381
2382 exit 0
2383 EOF
2384 chmod +x $CONFIG_STATUS
2385 rm -fr confdefs* $ac_clean_files
2386 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2387