Debian Codegraph @

src/plugins/contrib/wxContribItems/wxchart/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for wxchart 1.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
13
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22 set -o posix
23 fi
24 DUALCASE=1; export DUALCASE # for MKS sh
25
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28 as_unset=unset
29 else
30 as_unset=false
31 fi
32
33
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
36 PS1='$ '
37 PS2='> '
38 PS4='+ '
39
40 # NLS nuisances.
41 for as_var in \
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44 LC_TELEPHONE LC_TIME
45 do
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
48 else
49 $as_unset $as_var
50 fi
51 done
52
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
55 as_expr=expr
56 else
57 as_expr=false
58 fi
59
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61 as_basename=basename
62 else
63 as_basename=false
64 fi
65
66
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
73 echo X/"$0" |
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
77 s/.*/./; q'`
78
79
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
92 chmod +x conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94 PATH_SEPARATOR=';'
95 else
96 PATH_SEPARATOR=:
97 fi
98 rm -f conf$$.sh
99 fi
100
101
102 as_lineno_1=$LINENO
103 as_lineno_2=$LINENO
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
108 # relative or not.
109 case $0 in
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112 for as_dir in $PATH
113 do
114 IFS=$as_save_IFS
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117 done
118
119 ;;
120 esac
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
124 as_myself=$0
125 fi
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
129 fi
130 case $CONFIG_SHELL in
131 '')
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 do
135 IFS=$as_save_IFS
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
138 case $as_dir in
139 /*)
140 if ("$as_dir/$as_base" -c '
141 as_lineno_1=$LINENO
142 as_lineno_2=$LINENO
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
149 export CONFIG_SHELL
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151 fi;;
152 esac
153 done
154 done
155 ;;
156 esac
157
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
167 sed '
168 N
169 s,$,-,
170 : loop
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172 t loop
173 s,-$,,
174 s,^['$as_cr_digits']*\n,,
175 ' >$as_me.lineno &&
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
179
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
183 . ./$as_me.lineno
184 # Exit status is that of the last command.
185 exit
186 }
187
188
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
191 ' ECHO_T=' ' ;;
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194 esac
195
196 if expr a : '\(a\)' >/dev/null 2>&1; then
197 as_expr=expr
198 else
199 as_expr=false
200 fi
201
202 rm -f conf$$ conf$$.exe conf$$.file
203 echo >conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
209 as_ln_s='cp -p'
210 else
211 as_ln_s='ln -s'
212 fi
213 elif ln conf$$.file conf$$ 2>/dev/null; then
214 as_ln_s=ln
215 else
216 as_ln_s='cp -p'
217 fi
218 rm -f conf$$ conf$$.exe conf$$.file
219
220 if mkdir -p . 2>/dev/null; then
221 as_mkdir_p=:
222 else
223 test -d ./-p && rmdir ./-p
224 as_mkdir_p=false
225 fi
226
227 as_executable_p="test -f"
228
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236 # IFS
237 # We need space, tab and new line, in precisely that order.
238 as_nl='
239 '
240 IFS=" $as_nl"
241
242 # CDPATH.
243 $as_unset CDPATH
244
245
246 # Name of the host.
247 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248 # so uname gets run too.
249 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251 exec 6>&1
252
253 #
254 # Initializations.
255 #
256 ac_default_prefix=/usr/local
257 ac_config_libobj_dir=.
258 cross_compiling=no
259 subdirs=
260 MFLAGS=
261 MAKEFLAGS=
262 SHELL=${CONFIG_SHELL-/bin/sh}
263
264 # Maximum number of lines to put in a shell here document.
265 # This variable seems obsolete. It should probably be removed, and
266 # only ac_max_sed_lines should be used.
267 : ${ac_max_here_lines=38}
268
269 # Identity of this package.
270 PACKAGE_NAME='wxchart'
271 PACKAGE_TARNAME='wxchart'
272 PACKAGE_VERSION='0.2'
273 PACKAGE_STRING='wxchart 1.0'
274 PACKAGE_BUGREPORT='[email protected]'
275
276 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CXXCPP WX_CONFIG_PATH WX_CPPFLAGS WX_CFLAGS WX_CXXFLAGS WX_CFLAGS_ONLY WX_CXXFLAGS_ONLY WX_LIBS WX_LIBS_STATIC WX_VERSION WX_VERSION_FULL WX_VERSION_MAJOR WX_VERSION_MINOR WX_PORT WX_GTKPORT_VERSION SET_MAKE MAKE_SET AR ac_ct_AR STRIP ac_ct_STRIP NM ac_ct_NM INSTALL_DIR LDFLAGS_GUI IF_GNU_MAKE PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOS PLATFORM_MACOSX PLATFORM_OS2 PLATFORM_BEOS SO_SUFFIX SO_SUFFIX_MODULE DLLIMP_SUFFIX LIBPREFIX LIBEXT DLLPREFIX DLLPREFIX_MODULE dlldir AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG WINDOWS_IMPLIB USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_SOVERCYGWIN USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING WINDRES ac_ct_WINDRES REZ SETFILE COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_USE_SOSYMLINKS_1 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WINDOWS_IMPLIB_1 COND_WX_DEBUG_0 COND_WX_DEBUG_1 COND_WX_SHARED_0 COND_WX_SHARED_1 LIBOBJS LTLIBOBJS'
277 ac_subst_files=''
278
279 # Initialize some variables set by options.
280 ac_init_help=
281 ac_init_version=false
282 # The variables have the same names as the options, with
283 # dashes changed to underlines.
284 cache_file=/dev/null
285 exec_prefix=NONE
286 no_create=
287 no_recursion=
288 prefix=NONE
289 program_prefix=NONE
290 program_suffix=NONE
291 program_transform_name=s,x,x,
292 silent=
293 site=
294 srcdir=
295 verbose=
296 x_includes=NONE
297 x_libraries=NONE
298
299 # Installation directory options.
300 # These are left unexpanded so users can "make install exec_prefix=/foo"
301 # and all the variables that are supposed to be based on exec_prefix
302 # by default will actually change.
303 # Use braces instead of parens because sh, perl, etc. also accept them.
304 bindir='${exec_prefix}/bin'
305 sbindir='${exec_prefix}/sbin'
306 libexecdir='${exec_prefix}/libexec'
307 datadir='${prefix}/share'
308 sysconfdir='${prefix}/etc'
309 sharedstatedir='${prefix}/com'
310 localstatedir='${prefix}/var'
311 libdir='${exec_prefix}/lib'
312 includedir='${prefix}/include'
313 oldincludedir='/usr/include'
314 infodir='${prefix}/info'
315 mandir='${prefix}/man'
316
317 ac_prev=
318 for ac_option
319 do
320 # If the previous option needs an argument, assign it.
321 if test -n "$ac_prev"; then
322 eval "$ac_prev=\$ac_option"
323 ac_prev=
324 continue
325 fi
326
327 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328
329 # Accept the important Cygnus configure options, so we can diagnose typos.
330
331 case $ac_option in
332
333 -bindir | --bindir | --bindi | --bind | --bin | --bi)
334 ac_prev=bindir ;;
335 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
336 bindir=$ac_optarg ;;
337
338 -build | --build | --buil | --bui | --bu)
339 ac_prev=build_alias ;;
340 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
341 build_alias=$ac_optarg ;;
342
343 -cache-file | --cache-file | --cache-fil | --cache-fi \
344 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
345 ac_prev=cache_file ;;
346 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
347 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
348 cache_file=$ac_optarg ;;
349
350 --config-cache | -C)
351 cache_file=config.cache ;;
352
353 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
354 ac_prev=datadir ;;
355 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
356 | --da=*)
357 datadir=$ac_optarg ;;
358
359 -disable-* | --disable-*)
360 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
361 # Reject names that are not valid shell variable names.
362 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
363 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
364 { (exit 1); exit 1; }; }
365 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
366 eval "enable_$ac_feature=no" ;;
367
368 -enable-* | --enable-*)
369 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
370 # Reject names that are not valid shell variable names.
371 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
372 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
373 { (exit 1); exit 1; }; }
374 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
375 case $ac_option in
376 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
377 *) ac_optarg=yes ;;
378 esac
379 eval "enable_$ac_feature='$ac_optarg'" ;;
380
381 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
382 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
383 | --exec | --exe | --ex)
384 ac_prev=exec_prefix ;;
385 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
386 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
387 | --exec=* | --exe=* | --ex=*)
388 exec_prefix=$ac_optarg ;;
389
390 -gas | --gas | --ga | --g)
391 # Obsolete; use --with-gas.
392 with_gas=yes ;;
393
394 -help | --help | --hel | --he | -h)
395 ac_init_help=long ;;
396 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
397 ac_init_help=recursive ;;
398 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
399 ac_init_help=short ;;
400
401 -host | --host | --hos | --ho)
402 ac_prev=host_alias ;;
403 -host=* | --host=* | --hos=* | --ho=*)
404 host_alias=$ac_optarg ;;
405
406 -includedir | --includedir | --includedi | --included | --include \
407 | --includ | --inclu | --incl | --inc)
408 ac_prev=includedir ;;
409 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
410 | --includ=* | --inclu=* | --incl=* | --inc=*)
411 includedir=$ac_optarg ;;
412
413 -infodir | --infodir | --infodi | --infod | --info | --inf)
414 ac_prev=infodir ;;
415 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
416 infodir=$ac_optarg ;;
417
418 -libdir | --libdir | --libdi | --libd)
419 ac_prev=libdir ;;
420 -libdir=* | --libdir=* | --libdi=* | --libd=*)
421 libdir=$ac_optarg ;;
422
423 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
424 | --libexe | --libex | --libe)
425 ac_prev=libexecdir ;;
426 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
427 | --libexe=* | --libex=* | --libe=*)
428 libexecdir=$ac_optarg ;;
429
430 -localstatedir | --localstatedir | --localstatedi | --localstated \
431 | --localstate | --localstat | --localsta | --localst \
432 | --locals | --local | --loca | --loc | --lo)
433 ac_prev=localstatedir ;;
434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
435 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
436 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
437 localstatedir=$ac_optarg ;;
438
439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
440 ac_prev=mandir ;;
441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
442 mandir=$ac_optarg ;;
443
444 -nfp | --nfp | --nf)
445 # Obsolete; use --without-fp.
446 with_fp=no ;;
447
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c | -n)
450 no_create=yes ;;
451
452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
454 no_recursion=yes ;;
455
456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
458 | --oldin | --oldi | --old | --ol | --o)
459 ac_prev=oldincludedir ;;
460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
463 oldincludedir=$ac_optarg ;;
464
465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
466 ac_prev=prefix ;;
467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
468 prefix=$ac_optarg ;;
469
470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
471 | --program-pre | --program-pr | --program-p)
472 ac_prev=program_prefix ;;
473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
475 program_prefix=$ac_optarg ;;
476
477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
478 | --program-suf | --program-su | --program-s)
479 ac_prev=program_suffix ;;
480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
482 program_suffix=$ac_optarg ;;
483
484 -program-transform-name | --program-transform-name \
485 | --program-transform-nam | --program-transform-na \
486 | --program-transform-n | --program-transform- \
487 | --program-transform | --program-transfor \
488 | --program-transfo | --program-transf \
489 | --program-trans | --program-tran \
490 | --progr-tra | --program-tr | --program-t)
491 ac_prev=program_transform_name ;;
492 -program-transform-name=* | --program-transform-name=* \
493 | --program-transform-nam=* | --program-transform-na=* \
494 | --program-transform-n=* | --program-transform-=* \
495 | --program-transform=* | --program-transfor=* \
496 | --program-transfo=* | --program-transf=* \
497 | --program-trans=* | --program-tran=* \
498 | --progr-tra=* | --program-tr=* | --program-t=*)
499 program_transform_name=$ac_optarg ;;
500
501 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
502 | -silent | --silent | --silen | --sile | --sil)
503 silent=yes ;;
504
505 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
506 ac_prev=sbindir ;;
507 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
508 | --sbi=* | --sb=*)
509 sbindir=$ac_optarg ;;
510
511 -sharedstatedir | --sharedstatedir | --sharedstatedi \
512 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
513 | --sharedst | --shareds | --shared | --share | --shar \
514 | --sha | --sh)
515 ac_prev=sharedstatedir ;;
516 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
517 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
518 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
519 | --sha=* | --sh=*)
520 sharedstatedir=$ac_optarg ;;
521
522 -site | --site | --sit)
523 ac_prev=site ;;
524 -site=* | --site=* | --sit=*)
525 site=$ac_optarg ;;
526
527 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
528 ac_prev=srcdir ;;
529 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
530 srcdir=$ac_optarg ;;
531
532 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
533 | --syscon | --sysco | --sysc | --sys | --sy)
534 ac_prev=sysconfdir ;;
535 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
536 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
537 sysconfdir=$ac_optarg ;;
538
539 -target | --target | --targe | --targ | --tar | --ta | --t)
540 ac_prev=target_alias ;;
541 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
542 target_alias=$ac_optarg ;;
543
544 -v | -verbose | --verbose | --verbos | --verbo | --verb)
545 verbose=yes ;;
546
547 -version | --version | --versio | --versi | --vers | -V)
548 ac_init_version=: ;;
549
550 -with-* | --with-*)
551 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid package name: $ac_package" >&2
555 { (exit 1); exit 1; }; }
556 ac_package=`echo $ac_package| sed 's/-/_/g'`
557 case $ac_option in
558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
559 *) ac_optarg=yes ;;
560 esac
561 eval "with_$ac_package='$ac_optarg'" ;;
562
563 -without-* | --without-*)
564 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid package name: $ac_package" >&2
568 { (exit 1); exit 1; }; }
569 ac_package=`echo $ac_package | sed 's/-/_/g'`
570 eval "with_$ac_package=no" ;;
571
572 --x)
573 # Obsolete; use --with-x.
574 with_x=yes ;;
575
576 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
577 | --x-incl | --x-inc | --x-in | --x-i)
578 ac_prev=x_includes ;;
579 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
580 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
581 x_includes=$ac_optarg ;;
582
583 -x-libraries | --x-libraries | --x-librarie | --x-librari \
584 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
585 ac_prev=x_libraries ;;
586 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
587 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
588 x_libraries=$ac_optarg ;;
589
590 -*) { echo "$as_me: error: unrecognized option: $ac_option
591 Try \`$0 --help' for more information." >&2
592 { (exit 1); exit 1; }; }
593 ;;
594
595 *=*)
596 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
597 # Reject names that are not valid shell variable names.
598 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
599 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
600 { (exit 1); exit 1; }; }
601 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
602 eval "$ac_envvar='$ac_optarg'"
603 export $ac_envvar ;;
604
605 *)
606 # FIXME: should be removed in autoconf 3.0.
607 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
608 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
609 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
610 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
611 ;;
612
613 esac
614 done
615
616 if test -n "$ac_prev"; then
617 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
618 { echo "$as_me: error: missing argument to $ac_option" >&2
619 { (exit 1); exit 1; }; }
620 fi
621
622 # Be sure to have absolute paths.
623 for ac_var in exec_prefix prefix
624 do
625 eval ac_val=$`echo $ac_var`
626 case $ac_val in
627 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
628 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
629 { (exit 1); exit 1; }; };;
630 esac
631 done
632
633 # Be sure to have absolute paths.
634 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
635 localstatedir libdir includedir oldincludedir infodir mandir
636 do
637 eval ac_val=$`echo $ac_var`
638 case $ac_val in
639 [\\/$]* | ?:[\\/]* ) ;;
640 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
641 { (exit 1); exit 1; }; };;
642 esac
643 done
644
645 # There might be people who depend on the old broken behavior: `$host'
646 # used to hold the argument of --host etc.
647 # FIXME: To remove some day.
648 build=$build_alias
649 host=$host_alias
650 target=$target_alias
651
652 # FIXME: To remove some day.
653 if test "x$host_alias" != x; then
654 if test "x$build_alias" = x; then
655 cross_compiling=maybe
656 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
657 If a cross compiler is detected then cross compile mode will be used." >&2
658 elif test "x$build_alias" != "x$host_alias"; then
659 cross_compiling=yes
660 fi
661 fi
662
663 ac_tool_prefix=
664 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665
666 test "$silent" = yes && exec 6>/dev/null
667
668
669 # Find the source files, if location was not specified.
670 if test -z "$srcdir"; then
671 ac_srcdir_defaulted=yes
672 # Try the directory containing this script, then its parent.
673 ac_confdir=`(dirname "$0") 2>/dev/null ||
674 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
675 X"$0" : 'X\(//\)[^/]' \| \
676 X"$0" : 'X\(//\)$' \| \
677 X"$0" : 'X\(/\)' \| \
678 . : '\(.\)' 2>/dev/null ||
679 echo X"$0" |
680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
681 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
682 /^X\(\/\/\)$/{ s//\1/; q; }
683 /^X\(\/\).*/{ s//\1/; q; }
684 s/.*/./; q'`
685 srcdir=$ac_confdir
686 if test ! -r $srcdir/$ac_unique_file; then
687 srcdir=..
688 fi
689 else
690 ac_srcdir_defaulted=no
691 fi
692 if test ! -r $srcdir/$ac_unique_file; then
693 if test "$ac_srcdir_defaulted" = yes; then
694 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
695 { (exit 1); exit 1; }; }
696 else
697 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
698 { (exit 1); exit 1; }; }
699 fi
700 fi
701 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
702 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
703 { (exit 1); exit 1; }; }
704 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
705 ac_env_build_alias_set=${build_alias+set}
706 ac_env_build_alias_value=$build_alias
707 ac_cv_env_build_alias_set=${build_alias+set}
708 ac_cv_env_build_alias_value=$build_alias
709 ac_env_host_alias_set=${host_alias+set}
710 ac_env_host_alias_value=$host_alias
711 ac_cv_env_host_alias_set=${host_alias+set}
712 ac_cv_env_host_alias_value=$host_alias
713 ac_env_target_alias_set=${target_alias+set}
714 ac_env_target_alias_value=$target_alias
715 ac_cv_env_target_alias_set=${target_alias+set}
716 ac_cv_env_target_alias_value=$target_alias
717 ac_env_CC_set=${CC+set}
718 ac_env_CC_value=$CC
719 ac_cv_env_CC_set=${CC+set}
720 ac_cv_env_CC_value=$CC
721 ac_env_CFLAGS_set=${CFLAGS+set}
722 ac_env_CFLAGS_value=$CFLAGS
723 ac_cv_env_CFLAGS_set=${CFLAGS+set}
724 ac_cv_env_CFLAGS_value=$CFLAGS
725 ac_env_LDFLAGS_set=${LDFLAGS+set}
726 ac_env_LDFLAGS_value=$LDFLAGS
727 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
728 ac_cv_env_LDFLAGS_value=$LDFLAGS
729 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
730 ac_env_CPPFLAGS_value=$CPPFLAGS
731 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
732 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
733 ac_env_CXX_set=${CXX+set}
734 ac_env_CXX_value=$CXX
735 ac_cv_env_CXX_set=${CXX+set}
736 ac_cv_env_CXX_value=$CXX
737 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
738 ac_env_CXXFLAGS_value=$CXXFLAGS
739 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
740 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
741 ac_env_CXXCPP_set=${CXXCPP+set}
742 ac_env_CXXCPP_value=$CXXCPP
743 ac_cv_env_CXXCPP_set=${CXXCPP+set}
744 ac_cv_env_CXXCPP_value=$CXXCPP
745
746 #
747 # Report the --help message.
748 #
749 if test "$ac_init_help" = "long"; then
750 # Omit some internal or obsolete options to make the list less imposing.
751 # This message is too long to be a string in the A/UX 3.1 sh.
752 cat <<_ACEOF
753 \`configure' configures wxchart 1.0 to adapt to many kinds of systems.
754
755 Usage: $0 [OPTION]... [VAR=VALUE]...
756
757 To assign environment variables (e.g., CC, CFLAGS...), specify them as
758 VAR=VALUE. See below for descriptions of some of the useful variables.
759
760 Defaults for the options are specified in brackets.
761
762 Configuration:
763 -h, --help display this help and exit
764 --help=short display options specific to this package
765 --help=recursive display the short help of all the included packages
766 -V, --version display version information and exit
767 -q, --quiet, --silent do not print \`checking...' messages
768 --cache-file=FILE cache test results in FILE [disabled]
769 -C, --config-cache alias for \`--cache-file=config.cache'
770 -n, --no-create do not create output files
771 --srcdir=DIR find the sources in DIR [configure dir or \`..']
772
773 _ACEOF
774
775 cat <<_ACEOF
776 Installation directories:
777 --prefix=PREFIX install architecture-independent files in PREFIX
778 [$ac_default_prefix]
779 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
780 [PREFIX]
781
782 By default, \`make install' will install all the files in
783 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
784 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
785 for instance \`--prefix=\$HOME'.
786
787 For better control, use the options below.
788
789 Fine tuning of the installation directories:
790 --bindir=DIR user executables [EPREFIX/bin]
791 --sbindir=DIR system admin executables [EPREFIX/sbin]
792 --libexecdir=DIR program executables [EPREFIX/libexec]
793 --datadir=DIR read-only architecture-independent data [PREFIX/share]
794 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
795 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
796 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
797 --libdir=DIR object code libraries [EPREFIX/lib]
798 --includedir=DIR C header files [PREFIX/include]
799 --oldincludedir=DIR C header files for non-gcc [/usr/include]
800 --infodir=DIR info documentation [PREFIX/info]
801 --mandir=DIR man documentation [PREFIX/man]
802 _ACEOF
803
804 cat <<\_ACEOF
805
806 System types:
807 --build=BUILD configure for building on BUILD [guessed]
808 --host=HOST cross-compile to build programs to run on HOST [BUILD]
809 --target=TARGET configure for building compilers for TARGET [HOST]
810 _ACEOF
811 fi
812
813 if test -n "$ac_init_help"; then
814 case $ac_init_help in
815 short | recursive ) echo "Configuration of wxchart 1.0:";;
816 esac
817 cat <<\_ACEOF
818
819 Optional Features:
820 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
821 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
822 --enable-debug Builds in debug mode (default is auto)
823 --enable-unicode Builds in unicode mode (default is auto)
824 --enable-shared Builds in shared mode (default is auto)
825 --enable-omf use OMF object format (OS/2)
826 --disable-dependency-tracking
827 don't use dependency tracking even if the compiler
828 can
829
830 Optional Packages:
831 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
832 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
833 --with-wxdir=PATH Use uninstalled version of wxWidgets in PATH
834 --with-wx-config=CONFIG wx-config script to use (optional)
835 --with-wx-prefix=PREFIX Prefix where wxWidgets is installed (optional)
836 --with-wx-exec-prefix=PREFIX
837 Exec prefix where wxWidgets is installed (optional)
838 --with-motif Uses the wxMotif port (default is auto)
839 --with-gtk Uses the wxGTK port (default is auto)
840 --with-x11 Uses the wxX11 port (default is auto)
841 --with-mac Uses the wxMac port (default is auto)
842 --with-mgl Uses the wxMGL port (default is auto)
843 --with-msw Uses the wxMSW port (default is auto)
844 --with-wxshared Builds against a shared build of wxWidgets (default
845 is auto)
846
847 Some influential environment variables:
848 CC C compiler command
849 CFLAGS C compiler flags
850 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
851 nonstandard directory <lib dir>
852 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
853 headers in a nonstandard directory <include dir>
854 CXX C++ compiler command
855 CXXFLAGS C++ compiler flags
856 CXXCPP C++ preprocessor
857
858 Use these variables to override the choices made by `configure' or to help
859 it to find libraries and programs with nonstandard names/locations.
860
861 Report bugs to <[email protected]>.
862 _ACEOF
863 fi
864
865 if test "$ac_init_help" = "recursive"; then
866 # If there are subdirs, report their specific --help.
867 ac_popdir=`pwd`
868 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
869 test -d $ac_dir || continue
870 ac_builddir=.
871
872 if test "$ac_dir" != .; then
873 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
874 # A "../" for each directory in $ac_dir_suffix.
875 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
876 else
877 ac_dir_suffix= ac_top_builddir=
878 fi
879
880 case $srcdir in
881 .) # No --srcdir option. We are building in place.
882 ac_srcdir=.
883 if test -z "$ac_top_builddir"; then
884 ac_top_srcdir=.
885 else
886 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
887 fi ;;
888 [\\/]* | ?:[\\/]* ) # Absolute path.
889 ac_srcdir=$srcdir$ac_dir_suffix;
890 ac_top_srcdir=$srcdir ;;
891 *) # Relative path.
892 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
893 ac_top_srcdir=$ac_top_builddir$srcdir ;;
894 esac
895
896 # Do not use `cd foo && pwd` to compute absolute paths, because
897 # the directories may not exist.
898 case `pwd` in
899 .) ac_abs_builddir="$ac_dir";;
900 *)
901 case "$ac_dir" in
902 .) ac_abs_builddir=`pwd`;;
903 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
904 *) ac_abs_builddir=`pwd`/"$ac_dir";;
905 esac;;
906 esac
907 case $ac_abs_builddir in
908 .) ac_abs_top_builddir=${ac_top_builddir}.;;
909 *)
910 case ${ac_top_builddir}. in
911 .) ac_abs_top_builddir=$ac_abs_builddir;;
912 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
913 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
914 esac;;
915 esac
916 case $ac_abs_builddir in
917 .) ac_abs_srcdir=$ac_srcdir;;
918 *)
919 case $ac_srcdir in
920 .) ac_abs_srcdir=$ac_abs_builddir;;
921 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
922 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
923 esac;;
924 esac
925 case $ac_abs_builddir in
926 .) ac_abs_top_srcdir=$ac_top_srcdir;;
927 *)
928 case $ac_top_srcdir in
929 .) ac_abs_top_srcdir=$ac_abs_builddir;;
930 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
931 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
932 esac;;
933 esac
934
935 cd $ac_dir
936 # Check for guested configure; otherwise get Cygnus style configure.
937 if test -f $ac_srcdir/configure.gnu; then
938 echo
939 $SHELL $ac_srcdir/configure.gnu --help=recursive
940 elif test -f $ac_srcdir/configure; then
941 echo
942 $SHELL $ac_srcdir/configure --help=recursive
943 elif test -f $ac_srcdir/configure.ac ||
944 test -f $ac_srcdir/configure.in; then
945 echo
946 $ac_configure --help
947 else
948 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
949 fi
950 cd $ac_popdir
951 done
952 fi
953
954 test -n "$ac_init_help" && exit 0
955 if $ac_init_version; then
956 cat <<\_ACEOF
957 wxchart configure 1.0
958 generated by GNU Autoconf 2.59
959
960 Copyright (C) 2003 Free Software Foundation, Inc.
961 This configure script is free software; the Free Software Foundation
962 gives unlimited permission to copy, distribute and modify it.
963 _ACEOF
964 exit 0
965 fi
966 exec 5>config.log
967 cat >&5 <<_ACEOF
968 This file contains any messages produced by compilers while
969 running configure, to aid debugging if configure makes a mistake.
970
971 It was created by wxchart $as_me 1.0, which was
972 generated by GNU Autoconf 2.59. Invocation command line was
973
974 $ $0 $@
975
976 _ACEOF
977 {
978 cat <<_ASUNAME
979 ## --------- ##
980 ## Platform. ##
981 ## --------- ##
982
983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
988
989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
991
992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
995 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
999
1000 _ASUNAME
1001
1002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1003 for as_dir in $PATH
1004 do
1005 IFS=$as_save_IFS
1006 test -z "$as_dir" && as_dir=.
1007 echo "PATH: $as_dir"
1008 done
1009
1010 } >&5
1011
1012 cat >&5 <<_ACEOF
1013
1014
1015 ## ----------- ##
1016 ## Core tests. ##
1017 ## ----------- ##
1018
1019 _ACEOF
1020
1021
1022 # Keep a trace of the command line.
1023 # Strip out --no-create and --no-recursion so they do not pile up.
1024 # Strip out --silent because we don't want to record it for future runs.
1025 # Also quote any args containing shell meta-characters.
1026 # Make two passes to allow for proper duplicate-argument suppression.
1027 ac_configure_args=
1028 ac_configure_args0=
1029 ac_configure_args1=
1030 ac_sep=
1031 ac_must_keep_next=false
1032 for ac_pass in 1 2
1033 do
1034 for ac_arg
1035 do
1036 case $ac_arg in
1037 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1040 continue ;;
1041 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1042 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1043 esac
1044 case $ac_pass in
1045 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1046 2)
1047 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1048 if test $ac_must_keep_next = true; then
1049 ac_must_keep_next=false # Got value, back to normal.
1050 else
1051 case $ac_arg in
1052 *=* | --config-cache | -C | -disable-* | --disable-* \
1053 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1054 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1055 | -with-* | --with-* | -without-* | --without-* | --x)
1056 case "$ac_configure_args0 " in
1057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1058 esac
1059 ;;
1060 -* ) ac_must_keep_next=true ;;
1061 esac
1062 fi
1063 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1064 # Get rid of the leading space.
1065 ac_sep=" "
1066 ;;
1067 esac
1068 done
1069 done
1070 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1071 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1072
1073 # When interrupted or exit'd, cleanup temporary files, and complete
1074 # config.log. We remove comments because anyway the quotes in there
1075 # would cause problems or look ugly.
1076 # WARNING: Be sure not to use single quotes in there, as some shells,
1077 # such as our DU 5.0 friend, will then `close' the trap.
1078 trap 'exit_status=$?
1079 # Save into config.log some information that might help in debugging.
1080 {
1081 echo
1082
1083 cat <<\_ASBOX
1084 ## ---------------- ##
1085 ## Cache variables. ##
1086 ## ---------------- ##
1087 _ASBOX
1088 echo
1089 # The following way of writing the cache mishandles newlines in values,
1090 {
1091 (set) 2>&1 |
1092 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1093 *ac_space=\ *)
1094 sed -n \
1095 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1096 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1097 ;;
1098 *)
1099 sed -n \
1100 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1101 ;;
1102 esac;
1103 }
1104 echo
1105
1106 cat <<\_ASBOX
1107 ## ----------------- ##
1108 ## Output variables. ##
1109 ## ----------------- ##
1110 _ASBOX
1111 echo
1112 for ac_var in $ac_subst_vars
1113 do
1114 eval ac_val=$`echo $ac_var`
1115 echo "$ac_var='"'"'$ac_val'"'"'"
1116 done | sort
1117 echo
1118
1119 if test -n "$ac_subst_files"; then
1120 cat <<\_ASBOX
1121 ## ------------- ##
1122 ## Output files. ##
1123 ## ------------- ##
1124 _ASBOX
1125 echo
1126 for ac_var in $ac_subst_files
1127 do
1128 eval ac_val=$`echo $ac_var`
1129 echo "$ac_var='"'"'$ac_val'"'"'"
1130 done | sort
1131 echo
1132 fi
1133
1134 if test -s confdefs.h; then
1135 cat <<\_ASBOX
1136 ## ----------- ##
1137 ## confdefs.h. ##
1138 ## ----------- ##
1139 _ASBOX
1140 echo
1141 sed "/^$/d" confdefs.h | sort
1142 echo
1143 fi
1144 test "$ac_signal" != 0 &&
1145 echo "$as_me: caught signal $ac_signal"
1146 echo "$as_me: exit $exit_status"
1147 } >&5
1148 rm -f core *.core &&
1149 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1150 exit $exit_status
1151 ' 0
1152 for ac_signal in 1 2 13 15; do
1153 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1154 done
1155 ac_signal=0
1156
1157 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1158 rm -rf conftest* confdefs.h
1159 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1160 echo >confdefs.h
1161
1162 # Predefined preprocessor variables.
1163
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_NAME "$PACKAGE_NAME"
1166 _ACEOF
1167
1168
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1171 _ACEOF
1172
1173
1174 cat >>confdefs.h <<_ACEOF
1175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1176 _ACEOF
1177
1178
1179 cat >>confdefs.h <<_ACEOF
1180 #define PACKAGE_STRING "$PACKAGE_STRING"
1181 _ACEOF
1182
1183
1184 cat >>confdefs.h <<_ACEOF
1185 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1186 _ACEOF
1187
1188
1189 # Let the site file select an alternate cache file if it wants to.
1190 # Prefer explicitly selected file to automatically selected ones.
1191 if test -z "$CONFIG_SITE"; then
1192 if test "x$prefix" != xNONE; then
1193 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1194 else
1195 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1196 fi
1197 fi
1198 for ac_site_file in $CONFIG_SITE; do
1199 if test -r "$ac_site_file"; then
1200 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1201 echo "$as_me: loading site script $ac_site_file" >&6;}
1202 sed 's/^/| /' "$ac_site_file" >&5
1203 . "$ac_site_file"
1204 fi
1205 done
1206
1207 if test -r "$cache_file"; then
1208 # Some versions of bash will fail to source /dev/null (special
1209 # files actually), so we avoid doing that.
1210 if test -f "$cache_file"; then
1211 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1212 echo "$as_me: loading cache $cache_file" >&6;}
1213 case $cache_file in
1214 [\\/]* | ?:[\\/]* ) . $cache_file;;
1215 *) . ./$cache_file;;
1216 esac
1217 fi
1218 else
1219 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1220 echo "$as_me: creating cache $cache_file" >&6;}
1221 >$cache_file
1222 fi
1223
1224 # Check that the precious variables saved in the cache have kept the same
1225 # value.
1226 ac_cache_corrupted=false
1227 for ac_var in `(set) 2>&1 |
1228 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1229 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1230 eval ac_new_set=\$ac_env_${ac_var}_set
1231 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1232 eval ac_new_val="\$ac_env_${ac_var}_value"
1233 case $ac_old_set,$ac_new_set in
1234 set,)
1235 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1236 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1237 ac_cache_corrupted=: ;;
1238 ,set)
1239 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1240 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1241 ac_cache_corrupted=: ;;
1242 ,);;
1243 *)
1244 if test "x$ac_old_val" != "x$ac_new_val"; then
1245 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1246 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1247 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1248 echo "$as_me: former value: $ac_old_val" >&2;}
1249 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1250 echo "$as_me: current value: $ac_new_val" >&2;}
1251 ac_cache_corrupted=:
1252 fi;;
1253 esac
1254 # Pass precious variables to config.status.
1255 if test "$ac_new_set" = set; then
1256 case $ac_new_val in
1257 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1258 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1259 *) ac_arg=$ac_var=$ac_new_val ;;
1260 esac
1261 case " $ac_configure_args " in
1262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1263 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1264 esac
1265 fi
1266 done
1267 if $ac_cache_corrupted; then
1268 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1269 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1270 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1271 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1272 { (exit 1); exit 1; }; }
1273 fi
1274
1275 ac_ext=c
1276 ac_cpp='$CPP $CPPFLAGS'
1277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308 # ENABLES/DISABLES THE DEBUG MODE FOR THIS CONFIGURE SCRIPT
1309 #DBG_CONFIGURE=1
1310
1311 # you need the wxCode/build/bakefiles in your local repository to generate a configure
1312 # script from this configure.ac file since wxcode.m4 is required....
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354 ac_aux_dir=
1355 for ac_dir in ../../../build/autoconf build $srcdir/../../../build/autoconf build; do
1356 if test -f $ac_dir/install-sh; then
1357 ac_aux_dir=$ac_dir
1358 ac_install_sh="$ac_aux_dir/install-sh -c"
1359 break
1360 elif test -f $ac_dir/install.sh; then
1361 ac_aux_dir=$ac_dir
1362 ac_install_sh="$ac_aux_dir/install.sh -c"
1363 break
1364 elif test -f $ac_dir/shtool; then
1365 ac_aux_dir=$ac_dir
1366 ac_install_sh="$ac_aux_dir/shtool install -c"
1367 break
1368 fi
1369 done
1370 if test -z "$ac_aux_dir"; then
1371 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../../build/autoconf build $srcdir/../../../build/autoconf build" >&5
1372 echo "$as_me: error: cannot find install-sh or install.sh in ../../../build/autoconf build $srcdir/../../../build/autoconf build" >&2;}
1373 { (exit 1); exit 1; }; }
1374 fi
1375 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1376 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1377 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469 ac_ext=cc
1470 ac_cpp='$CXXCPP $CPPFLAGS'
1471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1474
1475
1476
1477
1478
1479
1480 ## CONFIGURE OPTIONS
1481 ##
1482 ## Before starting checks, declare the options of this configure script
1483 ## Here you should use the AC_ARG_ENABLE and AC_ARG_WITH macros,
1484 ## or the wxCode-specific AM_WXCODE_ARG_ENABLE & AM_WXCODE_ARG_WITH macros,
1485 ## to add to this configure script the --enable-XXX and/or --with-XXX
1486 ## options required. If you did not use any <option> tag in your
1487 ## component's bakefile, then you can leave this section as is
1488 #####################################################################
1489
1490
1491
1492 # Check whether --with-wxdir or --without-wxdir was given.
1493 if test "${with_wxdir+set}" = set; then
1494 withval="$with_wxdir"
1495 wx_config_name="$withval/wx-config"
1496 wx_config_args="--inplace"
1497 fi;
1498
1499 # Check whether --with-wx-config or --without-wx-config was given.
1500 if test "${with_wx_config+set}" = set; then
1501 withval="$with_wx_config"
1502 wx_config_name="$withval"
1503 fi;
1504
1505 # Check whether --with-wx-prefix or --without-wx-prefix was given.
1506 if test "${with_wx_prefix+set}" = set; then
1507 withval="$with_wx_prefix"
1508 wx_config_prefix="$withval"
1509 else
1510 wx_config_prefix=""
1511 fi;
1512
1513 # Check whether --with-wx-exec-prefix or --without-wx-exec-prefix was given.
1514 if test "${with_wx_exec_prefix+set}" = set; then
1515 withval="$with_wx_exec_prefix"
1516 wx_config_exec_prefix="$withval"
1517 else
1518 wx_config_exec_prefix=""
1519 fi;
1520 # don't touch this macro
1521
1522
1523 # Check whether --enable-debug or --disable-debug was given.
1524 if test "${enable_debug+set}" = set; then
1525 enableval="$enable_debug"
1526
1527 else
1528 enableval="auto"
1529 fi;
1530
1531 echo "$as_me:$LINENO: checking for the --enable-debug option" >&5
1532 echo $ECHO_N "checking for the --enable-debug option... $ECHO_C" >&6
1533 if test "$enableval" = "yes" ; then
1534 echo "$as_me:$LINENO: result: yes" >&5
1535 echo "${ECHO_T}yes" >&6
1536 DEBUG=1
1537
1538 elif test "$enableval" = "no" ; then
1539 echo "$as_me:$LINENO: result: no" >&5
1540 echo "${ECHO_T}no" >&6
1541 DEBUG=0
1542 elif test "$enableval" = "auto" ; then
1543 echo "$as_me:$LINENO: result: will be automatically detected" >&5
1544 echo "${ECHO_T}will be automatically detected" >&6
1545 DEBUG="auto"
1546 else
1547 { { echo "$as_me:$LINENO: error:
1548 Unrecognized option value (allowed values: yes, no, auto) !
1549 " >&5
1550 echo "$as_me: error:
1551 Unrecognized option value (allowed values: yes, no, auto) !
1552 " >&2;}
1553 { (exit 1); exit 1; }; }
1554 fi
1555
1556 # Check whether --enable-unicode or --disable-unicode was given.
1557 if test "${enable_unicode+set}" = set; then
1558 enableval="$enable_unicode"
1559
1560 else
1561 enableval="auto"
1562 fi;
1563
1564 echo "$as_me:$LINENO: checking for the --enable-unicode option" >&5
1565 echo $ECHO_N "checking for the --enable-unicode option... $ECHO_C" >&6
1566 if test "$enableval" = "yes" ; then
1567 echo "$as_me:$LINENO: result: yes" >&5
1568 echo "${ECHO_T}yes" >&6
1569 UNICODE=1
1570
1571 elif test "$enableval" = "no" ; then
1572 echo "$as_me:$LINENO: result: no" >&5
1573 echo "${ECHO_T}no" >&6
1574 UNICODE=0
1575 elif test "$enableval" = "auto" ; then
1576 echo "$as_me:$LINENO: result: will be automatically detected" >&5
1577 echo "${ECHO_T}will be automatically detected" >&6
1578 UNICODE="auto"
1579 else
1580 { { echo "$as_me:$LINENO: error:
1581 Unrecognized option value (allowed values: yes, no, auto) !
1582 " >&5
1583 echo "$as_me: error:
1584 Unrecognized option value (allowed values: yes, no, auto) !
1585 " >&2;}
1586 { (exit 1); exit 1; }; }
1587 fi
1588
1589 # Check whether --enable-shared or --disable-shared was given.
1590 if test "${enable_shared+set}" = set; then
1591 enableval="$enable_shared"
1592
1593 else
1594 enableval="auto"
1595 fi;
1596
1597 echo "$as_me:$LINENO: checking for the --enable-shared option" >&5
1598 echo $ECHO_N "checking for the --enable-shared option... $ECHO_C" >&6
1599 if test "$enableval" = "yes" ; then
1600 echo "$as_me:$LINENO: result: yes" >&5
1601 echo "${ECHO_T}yes" >&6
1602 SHARED=1
1603
1604 elif test "$enableval" = "no" ; then
1605 echo "$as_me:$LINENO: result: no" >&5
1606 echo "${ECHO_T}no" >&6
1607 SHARED=0
1608 elif test "$enableval" = "auto" ; then
1609 echo "$as_me:$LINENO: result: will be automatically detected" >&5
1610 echo "${ECHO_T}will be automatically detected" >&6
1611 SHARED="auto"
1612 else
1613 { { echo "$as_me:$LINENO: error:
1614 Unrecognized option value (allowed values: yes, no, auto) !
1615 " >&5
1616 echo "$as_me: error:
1617 Unrecognized option value (allowed values: yes, no, auto) !
1618 " >&2;}
1619 { (exit 1); exit 1; }; }
1620 fi
1621
1622
1623 PORT="auto"
1624
1625 # Check whether --with-motif or --without-motif was given.
1626 if test "${with_motif+set}" = set; then
1627 withval="$with_motif"
1628
1629 else
1630 withval="auto"
1631 fi;
1632
1633 echo "$as_me:$LINENO: checking for the --with-motif option" >&5
1634 echo $ECHO_N "checking for the --with-motif option... $ECHO_C" >&6
1635 if test "$withval" = "yes" ; then
1636 echo "$as_me:$LINENO: result: yes" >&5
1637 echo "${ECHO_T}yes" >&6
1638 MOTIFPORT=1
1639 PORT="motif"
1640 elif test "" = "1" -a "$withval" = "no" ; then
1641 echo "$as_me:$LINENO: result: no" >&5
1642 echo "${ECHO_T}no" >&6
1643 MOTIFPORT=0
1644 elif test "$withval" = "auto" ; then
1645 echo "$as_me:$LINENO: result: will be automatically detected" >&5
1646 echo "${ECHO_T}will be automatically detected" >&6
1647 MOTIFPORT="auto"
1648 else
1649 { { echo "$as_me:$LINENO: error:
1650 Unrecognized option value (allowed values: yes, auto) !
1651 " >&5
1652 echo "$as_me: error:
1653 Unrecognized option value (allowed values: yes, auto) !
1654 " >&2;}
1655 { (exit 1); exit 1; }; }
1656 fi
1657
1658
1659 # Check whether --with-gtk or --without-gtk was given.
1660 if test "${with_gtk+set}" = set; then
1661 withval="$with_gtk"
1662
1663 else
1664 withval="auto"
1665 fi;
1666
1667 echo "$as_me:$LINENO: checking for the --with-gtk option" >&5
1668 echo $ECHO_N "checking for the --with-gtk option... $ECHO_C" >&6
1669 if test "$withval" = "yes" ; then
1670 echo "$as_me:$LINENO: result: yes" >&5
1671 echo "${ECHO_T}yes" >&6
1672 GTKPORT=1
1673 PORT="gtk"
1674 elif test "" = "1" -a "$withval" = "no" ; then
1675 echo "$as_me:$LINENO: result: no" >&5
1676 echo "${ECHO_T}no" >&6
1677 GTKPORT=0
1678 elif test "$withval" = "auto" ; then
1679 echo "$as_me:$LINENO: result: will be automatically detected" >&5
1680 echo "${ECHO_T}will be automatically detected" >&6
1681 GTKPORT="auto"
1682 else
1683 { { echo "$as_me:$LINENO: error:
1684 Unrecognized option value (allowed values: yes, auto) !
1685 " >&5
1686 echo "$as_me: error:
1687 Unrecognized option value (allowed values: yes, auto) !
1688 " >&2;}
1689 { (exit 1); exit 1; }; }
1690 fi
1691
1692
1693 # Check whether --with-x11 or --without-x11 was given.
1694 if test "${with_x11+set}" = set; then
1695 withval="$with_x11"
1696
1697 else
1698 withval="auto"
1699 fi;
1700
1701 echo "$as_me:$LINENO: checking for the --with-x11 option" >&5
1702 echo $ECHO_N "checking for the --with-x11 option... $ECHO_C" >&6
1703 if test "$withval" = "yes" ; then
1704 echo "$as_me:$LINENO: result: yes" >&5
1705 echo "${ECHO_T}yes" >&6
1706 X11PORT=1
1707 PORT="x11"
1708 elif test "" = "1" -a "$withval" = "no" ; then
1709 echo "$as_me:$LINENO: result: no" >&5
1710 echo "${ECHO_T}no" >&6
1711 X11PORT=0
1712 elif test "$withval" = "auto" ; then
1713 echo "$as_me:$LINENO: result: will be automatically detected" >&5
1714 echo "${ECHO_T}will be automatically detected" >&6
1715 X11PORT="auto"
1716 else
1717 { { echo "$as_me:$LINENO: error:
1718 Unrecognized option value (allowed values: yes, auto) !
1719 " >&5
1720 echo "$as_me: error:
1721 Unrecognized option value (allowed values: yes, auto) !
1722 " >&2;}
1723 { (exit 1); exit 1; }; }
1724 fi
1725
1726
1727 # Check whether --with-mac or --without-mac was given.
1728 if test "${with_mac+set}" = set; then
1729 withval="$with_mac"
1730
1731 else
1732 withval="auto"
1733 fi;
1734
1735 echo "$as_me:$LINENO: checking for the --with-mac option" >&5
1736 echo $ECHO_N "checking for the --with-mac option... $ECHO_C" >&6
1737 if test "$withval" = "yes" ; then
1738 echo "$as_me:$LINENO: result: yes" >&5
1739 echo "${ECHO_T}yes" >&6
1740 MACPORT=1
1741 PORT="mac"
1742 elif test "" = "1" -a "$withval" = "no" ; then
1743 echo "$as_me:$LINENO: result: no" >&5
1744 echo "${ECHO_T}no" >&6
1745 MACPORT=0
1746 elif test "$withval" = "auto" ; then
1747 echo "$as_me:$LINENO: result: will be automatically detected" >&5
1748 echo "${ECHO_T}will be automatically detected" >&6
1749 MACPORT="auto"
1750 else
1751 { { echo "$as_me:$LINENO: error:
1752 Unrecognized option value (allowed values: yes, auto) !
1753 " >&5
1754 echo "$as_me: error:
1755 Unrecognized option value (allowed values: yes, auto) !
1756 " >&2;}
1757 { (exit 1); exit 1; }; }
1758 fi
1759
1760
1761 # Check whether --with-mgl or --without-mgl was given.
1762 if test "${with_mgl+set}" = set; then
1763 withval="$with_mgl"
1764
1765 else
1766 withval="auto"
1767 fi;
1768
1769 echo "$as_me:$LINENO: checking for the --with-mgl option" >&5
1770 echo $ECHO_N "checking for the --with-mgl option... $ECHO_C" >&6
1771 if test "$withval" = "yes" ; then
1772 echo "$as_me:$LINENO: result: yes" >&5
1773 echo "${ECHO_T}yes" >&6
1774 MGLPORT=1
1775 PORT="mgl"
1776 elif test "" = "1" -a "$withval" = "no" ; then
1777 echo "$as_me:$LINENO: result: no" >&5
1778 echo "${ECHO_T}no" >&6
1779 MGLPORT=0
1780 elif test "$withval" = "auto" ; then
1781 echo "$as_me:$LINENO: result: will be automatically detected" >&5
1782 echo "${ECHO_T}will be automatically detected" >&6
1783 MGLPORT="auto"
1784 else
1785 { { echo "$as_me:$LINENO: error:
1786 Unrecognized option value (allowed values: yes, auto) !
1787 " >&5
1788 echo "$as_me: error:
1789 Unrecognized option value (allowed values: yes, auto) !
1790 " >&2;}
1791 { (exit 1); exit 1; }; }
1792 fi
1793
1794
1795
1796 # Check whether --with-msw or --without-msw was given.
1797 if test "${with_msw+set}" = set; then
1798 withval="$with_msw"
1799
1800 else
1801 withval="auto"
1802 fi;
1803
1804 echo "$as_me:$LINENO: checking for the --with-msw option" >&5
1805 echo $ECHO_N "checking for the --with-msw option... $ECHO_C" >&6
1806 if test "$withval" = "yes" ; then
1807 echo "$as_me:$LINENO: result: yes" >&5
1808 echo "${ECHO_T}yes" >&6
1809 MSWPORT=1
1810 PORT="msw"
1811 elif test "" = "1" -a "$withval" = "no" ; then
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 MSWPORT=0
1815 elif test "$withval" = "auto" ; then
1816 echo "$as_me:$LINENO: result: will be automatically detected" >&5
1817 echo "${ECHO_T}will be automatically detected" >&6
1818 MSWPORT="auto"
1819 else
1820 { { echo "$as_me:$LINENO: error:
1821 Unrecognized option value (allowed values: yes, auto) !
1822 " >&5
1823 echo "$as_me: error:
1824 Unrecognized option value (allowed values: yes, auto) !
1825 " >&2;}
1826 { (exit 1); exit 1; }; }
1827 fi
1828
1829
1830
1831 # Check whether --with-wxshared or --without-wxshared was given.
1832 if test "${with_wxshared+set}" = set; then
1833 withval="$with_wxshared"
1834
1835 else
1836 withval="auto"
1837 fi;
1838
1839 echo "$as_me:$LINENO: checking for the --with-wxshared option" >&5
1840 echo $ECHO_N "checking for the --with-wxshared option... $ECHO_C" >&6
1841 if test "$withval" = "yes" ; then
1842 echo "$as_me:$LINENO: result: yes" >&5
1843 echo "${ECHO_T}yes" >&6
1844 WX_SHARED=1
1845
1846 elif test "1" = "1" -a "$withval" = "no" ; then
1847 echo "$as_me:$LINENO: result: no" >&5
1848 echo "${ECHO_T}no" >&6
1849 WX_SHARED=0
1850 elif test "$withval" = "auto" ; then
1851 echo "$as_me:$LINENO: result: will be automatically detected" >&5
1852 echo "${ECHO_T}will be automatically detected" >&6
1853 WX_SHARED="auto"
1854 else
1855 { { echo "$as_me:$LINENO: error:
1856 Unrecognized option value (allowed values: yes, auto) !
1857 " >&5
1858 echo "$as_me: error:
1859 Unrecognized option value (allowed values: yes, auto) !
1860 " >&2;}
1861 { (exit 1); exit 1; }; }
1862 fi
1863
1864
1865 if test "$DBG_CONFIGURE" = "1"; then
1866 echo "[dbg] SHARED: $SHARED, WX_SHARED: $WX_SHARED"
1867 echo "[dbg] DEBUG: $DEBUG, UNICODE: $UNICODE, PORT: $PORT"
1868 echo "[dbg] GTKPORT: $GTKPORT, X11PORT: $X11PORT, MACPORT: $MACPORT"
1869 echo "[dbg] MOTIFPORT: $MOTIFPORT, MGLPORT: $MGLPORT"
1870 fi
1871 # don't touch this macro
1872
1873
1874
1875
1876
1877 ## CONFIGURE CHECKS
1878 ##
1879 ## Here you should use the AC_CHECK_LIB, AC_COMPILE_IFELSE,
1880 ## AC_LINK_IFELSE, etc macros to check that the libraries required
1881 ## by your component exist on the host machine and match your
1882 ## required options (version, build settings, etc)
1883 #####################################################################
1884
1885 # argument 1: here put the minimum required version of wx
1886 # argument 2: here you must put a comma-separed list of all wx required libraries
1887 # except for base,core (e.g. "xml,net,adv"); leave empty if you use only core & base
1888 # Make sure we can run config.sub.
1889 $ac_config_sub sun4 >/dev/null 2>&1 ||
1890 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1891 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1892 { (exit 1); exit 1; }; }
1893
1894 echo "$as_me:$LINENO: checking build system type" >&5
1895 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1896 if test "${ac_cv_build+set}" = set; then
1897 echo $ECHO_N "(cached) $ECHO_C" >&6
1898 else
1899 ac_cv_build_alias=$build_alias
1900 test -z "$ac_cv_build_alias" &&
1901 ac_cv_build_alias=`$ac_config_guess`
1902 test -z "$ac_cv_build_alias" &&
1903 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1904 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1905 { (exit 1); exit 1; }; }
1906 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1907 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1908 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1909 { (exit 1); exit 1; }; }
1910
1911 fi
1912 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1913 echo "${ECHO_T}$ac_cv_build" >&6
1914 build=$ac_cv_build
1915 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1916 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1917 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1918
1919
1920 echo "$as_me:$LINENO: checking host system type" >&5
1921 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1922 if test "${ac_cv_host+set}" = set; then
1923 echo $ECHO_N "(cached) $ECHO_C" >&6
1924 else
1925 ac_cv_host_alias=$host_alias
1926 test -z "$ac_cv_host_alias" &&
1927 ac_cv_host_alias=$ac_cv_build_alias
1928 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1929 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1930 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1931 { (exit 1); exit 1; }; }
1932
1933 fi
1934 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1935 echo "${ECHO_T}$ac_cv_host" >&6
1936 host=$ac_cv_host
1937 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1938 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1939 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1940
1941
1942
1943 echo "$as_me:$LINENO: checking target system type" >&5
1944 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1945 if test "${ac_cv_target+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947 else
1948 ac_cv_target_alias=$target_alias
1949 test "x$ac_cv_target_alias" = "x" &&
1950 ac_cv_target_alias=$ac_cv_host_alias
1951 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1952 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1953 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1954 { (exit 1); exit 1; }; }
1955
1956 fi
1957 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1958 echo "${ECHO_T}$ac_cv_target" >&6
1959 target=$ac_cv_target
1960 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1961 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1962 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1963
1964
1965 # The aliases save the names the user supplied, while $host etc.
1966 # will get canonicalized.
1967 test -n "$target_alias" &&
1968 test "$program_prefix$program_suffix$program_transform_name" = \
1969 NONENONEs,x,x, &&
1970 program_prefix=${target_alias}-
1971
1972 if test -z "$CFLAGS"; then
1973 CFLAGS=
1974 fi
1975 if test -z "$CXXFLAGS"; then
1976 CXXFLAGS=
1977 fi
1978 if test -z "$CPPFLAGS"; then
1979 CPPFLAGS=
1980 fi
1981
1982 for ac_prog in gawk mawk nawk awk
1983 do
1984 # Extract the first word of "$ac_prog", so it can be a program name with args.
1985 set dummy $ac_prog; ac_word=$2
1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1988 if test "${ac_cv_prog_AWK+set}" = set; then
1989 echo $ECHO_N "(cached) $ECHO_C" >&6
1990 else
1991 if test -n "$AWK"; then
1992 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1993 else
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1995 for as_dir in $PATH
1996 do
1997 IFS=$as_save_IFS
1998 test -z "$as_dir" && as_dir=.
1999 for ac_exec_ext in '' $ac_executable_extensions; do
2000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2001 ac_cv_prog_AWK="$ac_prog"
2002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 break 2
2004 fi
2005 done
2006 done
2007
2008 fi
2009 fi
2010 AWK=$ac_cv_prog_AWK
2011 if test -n "$AWK"; then
2012 echo "$as_me:$LINENO: result: $AWK" >&5
2013 echo "${ECHO_T}$AWK" >&6
2014 else
2015 echo "$as_me:$LINENO: result: no" >&5
2016 echo "${ECHO_T}no" >&6
2017 fi
2018
2019 test -n "$AWK" && break
2020 done
2021
2022 # Find a good install program. We prefer a C program (faster),
2023 # so one script is as good as another. But avoid the broken or
2024 # incompatible versions:
2025 # SysV /etc/install, /usr/sbin/install
2026 # SunOS /usr/etc/install
2027 # IRIX /sbin/install
2028 # AIX /bin/install
2029 # AmigaOS /C/install, which installs bootblocks on floppy discs
2030 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2031 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2032 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2033 # OS/2's system install, which has a completely different semantic
2034 # ./install, which can be erroneously created by make from ./install.sh.
2035 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2036 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2037 if test -z "$INSTALL"; then
2038 if test "${ac_cv_path_install+set}" = set; then
2039 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 else
2041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2042 for as_dir in $PATH
2043 do
2044 IFS=$as_save_IFS
2045 test -z "$as_dir" && as_dir=.
2046 # Account for people who put trailing slashes in PATH elements.
2047 case $as_dir/ in
2048 ./ | .// | /cC/* | \
2049 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2050 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2051 /usr/ucb/* ) ;;
2052 *)
2053 # OSF1 and SCO ODT 3.0 have their own names for install.
2054 # Don't use installbsd from OSF since it installs stuff as root
2055 # by default.
2056 for ac_prog in ginstall scoinst install; do
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2059 if test $ac_prog = install &&
2060 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2061 # AIX install. It has an incompatible calling convention.
2062 :
2063 elif test $ac_prog = install &&
2064 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2065 # program-specific install script used by HP pwplus--don't use.
2066 :
2067 else
2068 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2069 break 3
2070 fi
2071 fi
2072 done
2073 done
2074 ;;
2075 esac
2076 done
2077
2078
2079 fi
2080 if test "${ac_cv_path_install+set}" = set; then
2081 INSTALL=$ac_cv_path_install
2082 else
2083 # As a last resort, use the slow shell script. We don't cache a
2084 # path for INSTALL within a source directory, because that will
2085 # break other packages using the cache if that directory is
2086 # removed, or if the path is relative.
2087 INSTALL=$ac_install_sh
2088 fi
2089 fi
2090 echo "$as_me:$LINENO: result: $INSTALL" >&5
2091 echo "${ECHO_T}$INSTALL" >&6
2092
2093 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2094 # It thinks the first close brace ends the variable substitution.
2095 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2096
2097 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2098
2099 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2100
2101 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2102 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2103 LN_S=$as_ln_s
2104 if test "$LN_S" = "ln -s"; then
2105 echo "$as_me:$LINENO: result: yes" >&5
2106 echo "${ECHO_T}yes" >&6
2107 else
2108 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2109 echo "${ECHO_T}no, using $LN_S" >&6
2110 fi
2111
2112 if test -n "$ac_tool_prefix"; then
2113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2115 echo "$as_me:$LINENO: checking for $ac_word" >&5
2116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2117 if test "${ac_cv_prog_RANLIB+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2119 else
2120 if test -n "$RANLIB"; then
2121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2122 else
2123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2124 for as_dir in $PATH
2125 do
2126 IFS=$as_save_IFS
2127 test -z "$as_dir" && as_dir=.
2128 for ac_exec_ext in '' $ac_executable_extensions; do
2129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2132 break 2
2133 fi
2134 done
2135 done
2136
2137 fi
2138 fi
2139 RANLIB=$ac_cv_prog_RANLIB
2140 if test -n "$RANLIB"; then
2141 echo "$as_me:$LINENO: result: $RANLIB" >&5
2142 echo "${ECHO_T}$RANLIB" >&6
2143 else
2144 echo "$as_me:$LINENO: result: no" >&5
2145 echo "${ECHO_T}no" >&6
2146 fi
2147
2148 fi
2149 if test -z "$ac_cv_prog_RANLIB"; then
2150 ac_ct_RANLIB=$RANLIB
2151 # Extract the first word of "ranlib", so it can be a program name with args.
2152 set dummy ranlib; ac_word=$2
2153 echo "$as_me:$LINENO: checking for $ac_word" >&5
2154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2155 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2156 echo $ECHO_N "(cached) $ECHO_C" >&6
2157 else
2158 if test -n "$ac_ct_RANLIB"; then
2159 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2160 else
2161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2162 for as_dir in $PATH
2163 do
2164 IFS=$as_save_IFS
2165 test -z "$as_dir" && as_dir=.
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2168 ac_cv_prog_ac_ct_RANLIB="ranlib"
2169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2170 break 2
2171 fi
2172 done
2173 done
2174
2175 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2176 fi
2177 fi
2178 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2179 if test -n "$ac_ct_RANLIB"; then
2180 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2181 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2182 else
2183 echo "$as_me:$LINENO: result: no" >&5
2184 echo "${ECHO_T}no" >&6
2185 fi
2186
2187 RANLIB=$ac_ct_RANLIB
2188 else
2189 RANLIB="$ac_cv_prog_RANLIB"
2190 fi
2191
2192 ac_ext=c
2193 ac_cpp='$CPP $CPPFLAGS'
2194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2197 if test -n "$ac_tool_prefix"; then
2198 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2199 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_CC+set}" = set; then
2203 echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205 if test -n "$CC"; then
2206 ac_cv_prog_CC="$CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211 IFS=$as_save_IFS
2212 test -z "$as_dir" && as_dir=.
2213 for ac_exec_ext in '' $ac_executable_extensions; do
2214 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 break 2
2218 fi
2219 done
2220 done
2221
2222 fi
2223 fi
2224 CC=$ac_cv_prog_CC
2225 if test -n "$CC"; then
2226 echo "$as_me:$LINENO: result: $CC" >&5
2227 echo "${ECHO_T}$CC" >&6
2228 else
2229 echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2231 fi
2232
2233 fi
2234 if test -z "$ac_cv_prog_CC"; then
2235 ac_ct_CC=$CC
2236 # Extract the first word of "gcc", so it can be a program name with args.
2237 set dummy gcc; ac_word=$2
2238 echo "$as_me:$LINENO: checking for $ac_word" >&5
2239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2240 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2241 echo $ECHO_N "(cached) $ECHO_C" >&6
2242 else
2243 if test -n "$ac_ct_CC"; then
2244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH
2248 do
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_exec_ext in '' $ac_executable_extensions; do
2252 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2253 ac_cv_prog_ac_ct_CC="gcc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2256 fi
2257 done
2258 done
2259
2260 fi
2261 fi
2262 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2263 if test -n "$ac_ct_CC"; then
2264 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2265 echo "${ECHO_T}$ac_ct_CC" >&6
2266 else
2267 echo "$as_me:$LINENO: result: no" >&5
2268 echo "${ECHO_T}no" >&6
2269 fi
2270
2271 CC=$ac_ct_CC
2272 else
2273 CC="$ac_cv_prog_CC"
2274 fi
2275
2276 if test -z "$CC"; then
2277 if test -n "$ac_tool_prefix"; then
2278 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2279 set dummy ${ac_tool_prefix}cc; ac_word=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_CC+set}" = set; then
2283 echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285 if test -n "$CC"; then
2286 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291 IFS=$as_save_IFS
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 ac_cv_prog_CC="${ac_tool_prefix}cc"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297 break 2
2298 fi
2299 done
2300 done
2301
2302 fi
2303 fi
2304 CC=$ac_cv_prog_CC
2305 if test -n "$CC"; then
2306 echo "$as_me:$LINENO: result: $CC" >&5
2307 echo "${ECHO_T}$CC" >&6
2308 else
2309 echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2311 fi
2312
2313 fi
2314 if test -z "$ac_cv_prog_CC"; then
2315 ac_ct_CC=$CC
2316 # Extract the first word of "cc", so it can be a program name with args.
2317 set dummy cc; ac_word=$2
2318 echo "$as_me:$LINENO: checking for $ac_word" >&5
2319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2320 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2321 echo $ECHO_N "(cached) $ECHO_C" >&6
2322 else
2323 if test -n "$ac_ct_CC"; then
2324 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2325 else
2326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2327 for as_dir in $PATH
2328 do
2329 IFS=$as_save_IFS
2330 test -z "$as_dir" && as_dir=.
2331 for ac_exec_ext in '' $ac_executable_extensions; do
2332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2333 ac_cv_prog_ac_ct_CC="cc"
2334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2335 break 2
2336 fi
2337 done
2338 done
2339
2340 fi
2341 fi
2342 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2343 if test -n "$ac_ct_CC"; then
2344 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2345 echo "${ECHO_T}$ac_ct_CC" >&6
2346 else
2347 echo "$as_me:$LINENO: result: no" >&5
2348 echo "${ECHO_T}no" >&6
2349 fi
2350
2351 CC=$ac_ct_CC
2352 else
2353 CC="$ac_cv_prog_CC"
2354 fi
2355
2356 fi
2357 if test -z "$CC"; then
2358 # Extract the first word of "cc", so it can be a program name with args.
2359 set dummy cc; ac_word=$2
2360 echo "$as_me:$LINENO: checking for $ac_word" >&5
2361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2362 if test "${ac_cv_prog_CC+set}" = set; then
2363 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 else
2365 if test -n "$CC"; then
2366 ac_cv_prog_CC="$CC" # Let the user override the test.
2367 else
2368 ac_prog_rejected=no
2369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2370 for as_dir in $PATH
2371 do
2372 IFS=$as_save_IFS
2373 test -z "$as_dir" && as_dir=.
2374 for ac_exec_ext in '' $ac_executable_extensions; do
2375 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2376 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2377 ac_prog_rejected=yes
2378 continue
2379 fi
2380 ac_cv_prog_CC="cc"
2381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 break 2
2383 fi
2384 done
2385 done
2386
2387 if test $ac_prog_rejected = yes; then
2388 # We found a bogon in the path, so make sure we never use it.
2389 set dummy $ac_cv_prog_CC
2390 shift
2391 if test $# != 0; then
2392 # We chose a different compiler from the bogus one.
2393 # However, it has the same basename, so the bogon will be chosen
2394 # first if we set CC to just the basename; use the full file name.
2395 shift
2396 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2397 fi
2398 fi
2399 fi
2400 fi
2401 CC=$ac_cv_prog_CC
2402 if test -n "$CC"; then
2403 echo "$as_me:$LINENO: result: $CC" >&5
2404 echo "${ECHO_T}$CC" >&6
2405 else
2406 echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2408 fi
2409
2410 fi
2411 if test -z "$CC"; then
2412 if test -n "$ac_tool_prefix"; then
2413 for ac_prog in cl
2414 do
2415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2416 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2417 echo "$as_me:$LINENO: checking for $ac_word" >&5
2418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2419 if test "${ac_cv_prog_CC+set}" = set; then
2420 echo $ECHO_N "(cached) $ECHO_C" >&6
2421 else
2422 if test -n "$CC"; then
2423 ac_cv_prog_CC="$CC" # Let the user override the test.
2424 else
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2427 do
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2434 break 2
2435 fi
2436 done
2437 done
2438
2439 fi
2440 fi
2441 CC=$ac_cv_prog_CC
2442 if test -n "$CC"; then
2443 echo "$as_me:$LINENO: result: $CC" >&5
2444 echo "${ECHO_T}$CC" >&6
2445 else
2446 echo "$as_me:$LINENO: result: no" >&5
2447 echo "${ECHO_T}no" >&6
2448 fi
2449
2450 test -n "$CC" && break
2451 done
2452 fi
2453 if test -z "$CC"; then
2454 ac_ct_CC=$CC
2455 for ac_prog in cl
2456 do
2457 # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2461 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2462 echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464 if test -n "$ac_ct_CC"; then
2465 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470 IFS=$as_save_IFS
2471 test -z "$as_dir" && as_dir=.
2472 for ac_exec_ext in '' $ac_executable_extensions; do
2473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2474 ac_cv_prog_ac_ct_CC="$ac_prog"
2475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476 break 2
2477 fi
2478 done
2479 done
2480
2481 fi
2482 fi
2483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2484 if test -n "$ac_ct_CC"; then
2485 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2486 echo "${ECHO_T}$ac_ct_CC" >&6
2487 else
2488 echo "$as_me:$LINENO: result: no" >&5
2489 echo "${ECHO_T}no" >&6
2490 fi
2491
2492 test -n "$ac_ct_CC" && break
2493 done
2494
2495 CC=$ac_ct_CC
2496 fi
2497
2498 fi
2499
2500
2501 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: no acceptable C compiler found in \$PATH
2504 See \`config.log' for more details." >&2;}
2505 { (exit 1); exit 1; }; }
2506
2507 # Provide some information about the compiler.
2508 echo "$as_me:$LINENO:" \
2509 "checking for C compiler version" >&5
2510 ac_compiler=`set X $ac_compile; echo $2`
2511 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2512 (eval $ac_compiler --version </dev/null >&5) 2>&5
2513 ac_status=$?
2514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2515 (exit $ac_status); }
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2517 (eval $ac_compiler -v </dev/null >&5) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2522 (eval $ac_compiler -V </dev/null >&5) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2526
2527 cat >conftest.$ac_ext <<_ACEOF
2528 /* confdefs.h. */
2529 _ACEOF
2530 cat confdefs.h >>conftest.$ac_ext
2531 cat >>conftest.$ac_ext <<_ACEOF
2532 /* end confdefs.h. */
2533
2534 int
2535 main ()
2536 {
2537
2538 ;
2539 return 0;
2540 }
2541 _ACEOF
2542 ac_clean_files_save=$ac_clean_files
2543 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2544 # Try to create an executable without -o first, disregard a.out.
2545 # It will help us diagnose broken compilers, and finding out an intuition
2546 # of exeext.
2547 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2548 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2549 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2550 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2551 (eval $ac_link_default) 2>&5
2552 ac_status=$?
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); }; then
2555 # Find the output, starting from the most likely. This scheme is
2556 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2557 # resort.
2558
2559 # Be careful to initialize this variable, since it used to be cached.
2560 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2561 ac_cv_exeext=
2562 # b.out is created by i960 compilers.
2563 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2564 do
2565 test -f "$ac_file" || continue
2566 case $ac_file in
2567 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2568 ;;
2569 conftest.$ac_ext )
2570 # This is the source file.
2571 ;;
2572 [ab].out )
2573 # We found the default executable, but exeext='' is most
2574 # certainly right.
2575 break;;
2576 *.* )
2577 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2578 # FIXME: I believe we export ac_cv_exeext for Libtool,
2579 # but it would be cool to find out if it's true. Does anybody
2580 # maintain Libtool? --akim.
2581 export ac_cv_exeext
2582 break;;
2583 * )
2584 break;;
2585 esac
2586 done
2587 else
2588 echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2592 See \`config.log' for more details." >&5
2593 echo "$as_me: error: C compiler cannot create executables
2594 See \`config.log' for more details." >&2;}
2595 { (exit 77); exit 77; }; }
2596 fi
2597
2598 ac_exeext=$ac_cv_exeext
2599 echo "$as_me:$LINENO: result: $ac_file" >&5
2600 echo "${ECHO_T}$ac_file" >&6
2601
2602 # Check the compiler produces executables we can run. If not, either
2603 # the compiler is broken, or we cross compile.
2604 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2605 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2606 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2607 # If not cross compiling, check that we can run a simple program.
2608 if test "$cross_compiling" != yes; then
2609 if { ac_try='./$ac_file'
2610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2611 (eval $ac_try) 2>&5
2612 ac_status=$?
2613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2614 (exit $ac_status); }; }; then
2615 cross_compiling=no
2616 else
2617 if test "$cross_compiling" = maybe; then
2618 cross_compiling=yes
2619 else
2620 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2621 If you meant to cross compile, use \`--host'.
2622 See \`config.log' for more details." >&5
2623 echo "$as_me: error: cannot run C compiled programs.
2624 If you meant to cross compile, use \`--host'.
2625 See \`config.log' for more details." >&2;}
2626 { (exit 1); exit 1; }; }
2627 fi
2628 fi
2629 fi
2630 echo "$as_me:$LINENO: result: yes" >&5
2631 echo "${ECHO_T}yes" >&6
2632
2633 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2634 ac_clean_files=$ac_clean_files_save
2635 # Check the compiler produces executables we can run. If not, either
2636 # the compiler is broken, or we cross compile.
2637 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2638 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2639 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2640 echo "${ECHO_T}$cross_compiling" >&6
2641
2642 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2643 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2645 (eval $ac_link) 2>&5
2646 ac_status=$?
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648 (exit $ac_status); }; then
2649 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2650 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2651 # work properly (i.e., refer to `conftest.exe'), while it won't with
2652 # `rm'.
2653 for ac_file in conftest.exe conftest conftest.*; do
2654 test -f "$ac_file" || continue
2655 case $ac_file in
2656 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2657 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2658 export ac_cv_exeext
2659 break;;
2660 * ) break;;
2661 esac
2662 done
2663 else
2664 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2669 fi
2670
2671 rm -f conftest$ac_cv_exeext
2672 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2673 echo "${ECHO_T}$ac_cv_exeext" >&6
2674
2675 rm -f conftest.$ac_ext
2676 EXEEXT=$ac_cv_exeext
2677 ac_exeext=$EXEEXT
2678 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2679 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2680 if test "${ac_cv_objext+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2682 else
2683 cat >conftest.$ac_ext <<_ACEOF
2684 /* confdefs.h. */
2685 _ACEOF
2686 cat confdefs.h >>conftest.$ac_ext
2687 cat >>conftest.$ac_ext <<_ACEOF
2688 /* end confdefs.h. */
2689
2690 int
2691 main ()
2692 {
2693
2694 ;
2695 return 0;
2696 }
2697 _ACEOF
2698 rm -f conftest.o conftest.obj
2699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2700 (eval $ac_compile) 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2705 case $ac_file in
2706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2707 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2708 break;;
2709 esac
2710 done
2711 else
2712 echo "$as_me: failed program was:" >&5
2713 sed 's/^/| /' conftest.$ac_ext >&5
2714
2715 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2716 See \`config.log' for more details." >&5
2717 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2718 See \`config.log' for more details." >&2;}
2719 { (exit 1); exit 1; }; }
2720 fi
2721
2722 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2723 fi
2724 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2725 echo "${ECHO_T}$ac_cv_objext" >&6
2726 OBJEXT=$ac_cv_objext
2727 ac_objext=$OBJEXT
2728 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2729 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2730 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733 cat >conftest.$ac_ext <<_ACEOF
2734 /* confdefs.h. */
2735 _ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2739
2740 int
2741 main ()
2742 {
2743 #ifndef __GNUC__
2744 choke me
2745 #endif
2746
2747 ;
2748 return 0;
2749 }
2750 _ACEOF
2751 rm -f conftest.$ac_objext
2752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2753 (eval $ac_compile) 2>conftest.er1
2754 ac_status=$?
2755 grep -v '^ *+' conftest.er1 >conftest.err
2756 rm -f conftest.er1
2757 cat conftest.err >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); } &&
2760 { ac_try='test -z "$ac_c_werror_flag"
2761 || test ! -s conftest.err'
2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2763 (eval $ac_try) 2>&5
2764 ac_status=$?
2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2766 (exit $ac_status); }; } &&
2767 { ac_try='test -s conftest.$ac_objext'
2768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769 (eval $ac_try) 2>&5
2770 ac_status=$?
2771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772 (exit $ac_status); }; }; then
2773 ac_compiler_gnu=yes
2774 else
2775 echo "$as_me: failed program was:" >&5
2776 sed 's/^/| /' conftest.$ac_ext >&5
2777
2778 ac_compiler_gnu=no
2779 fi
2780 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2781 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2782
2783 fi
2784 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2785 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2786 GCC=`test $ac_compiler_gnu = yes && echo yes`
2787 ac_test_CFLAGS=${CFLAGS+set}
2788 ac_save_CFLAGS=$CFLAGS
2789 CFLAGS="-g"
2790 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2791 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2792 if test "${ac_cv_prog_cc_g+set}" = set; then
2793 echo $ECHO_N "(cached) $ECHO_C" >&6
2794 else
2795 cat >conftest.$ac_ext <<_ACEOF
2796 /* confdefs.h. */
2797 _ACEOF
2798 cat confdefs.h >>conftest.$ac_ext
2799 cat >>conftest.$ac_ext <<_ACEOF
2800 /* end confdefs.h. */
2801
2802 int
2803 main ()
2804 {
2805
2806 ;
2807 return 0;
2808 }
2809 _ACEOF
2810 rm -f conftest.$ac_objext
2811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2812 (eval $ac_compile) 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } &&
2819 { ac_try='test -z "$ac_c_werror_flag"
2820 || test ! -s conftest.err'
2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 (eval $ac_try) 2>&5
2823 ac_status=$?
2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2825 (exit $ac_status); }; } &&
2826 { ac_try='test -s conftest.$ac_objext'
2827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2828 (eval $ac_try) 2>&5
2829 ac_status=$?
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); }; }; then
2832 ac_cv_prog_cc_g=yes
2833 else
2834 echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837 ac_cv_prog_cc_g=no
2838 fi
2839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2840 fi
2841 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2843 if test "$ac_test_CFLAGS" = set; then
2844 CFLAGS=$ac_save_CFLAGS
2845 elif test $ac_cv_prog_cc_g = yes; then
2846 if test "$GCC" = yes; then
2847 CFLAGS="-g -O2"
2848 else
2849 CFLAGS="-g"
2850 fi
2851 else
2852 if test "$GCC" = yes; then
2853 CFLAGS="-O2"
2854 else
2855 CFLAGS=
2856 fi
2857 fi
2858 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2859 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2860 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 ac_cv_prog_cc_stdc=no
2864 ac_save_CC=$CC
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871 #include <stdarg.h>
2872 #include <stdio.h>
2873 #include <sys/types.h>
2874 #include <sys/stat.h>
2875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2876 struct buf { int x; };
2877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878 static char *e (p, i)
2879 char **p;
2880 int i;
2881 {
2882 return p[i];
2883 }
2884 static char *f (char * (*g) (char **, int), char **p, ...)
2885 {
2886 char *s;
2887 va_list v;
2888 va_start (v,p);
2889 s = g (p, va_arg (v,int));
2890 va_end (v);
2891 return s;
2892 }
2893
2894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2895 function prototypes and stuff, but not '\xHH' hex character constants.
2896 These don't provoke an error unfortunately, instead are silently treated
2897 as 'x'. The following induces an error, until -std1 is added to get
2898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2899 array size at least. It's necessary to write '\x00'==0 to get something
2900 that's true only with -std1. */
2901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2902
2903 int test (int i, double x);
2904 struct s1 {int (*f) (int a);};
2905 struct s2 {int (*f) (double a);};
2906 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2907 int argc;
2908 char **argv;
2909 int
2910 main ()
2911 {
2912 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2913 ;
2914 return 0;
2915 }
2916 _ACEOF
2917 # Don't try gcc -ansi; that turns off useful extensions and
2918 # breaks some systems' header files.
2919 # AIX -qlanglvl=ansi
2920 # Ultrix and OSF/1 -std1
2921 # HP-UX 10.20 and later -Ae
2922 # HP-UX older versions -Aa -D_HPUX_SOURCE
2923 # SVR4 -Xc -D__EXTENSIONS__
2924 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2925 do
2926 CC="$ac_save_CC $ac_arg"
2927 rm -f conftest.$ac_objext
2928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2929 (eval $ac_compile) 2>conftest.er1
2930 ac_status=$?
2931 grep -v '^ *+' conftest.er1 >conftest.err
2932 rm -f conftest.er1
2933 cat conftest.err >&5
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); } &&
2936 { ac_try='test -z "$ac_c_werror_flag"
2937 || test ! -s conftest.err'
2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2939 (eval $ac_try) 2>&5
2940 ac_status=$?
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }; } &&
2943 { ac_try='test -s conftest.$ac_objext'
2944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2945 (eval $ac_try) 2>&5
2946 ac_status=$?
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; }; then
2949 ac_cv_prog_cc_stdc=$ac_arg
2950 break
2951 else
2952 echo "$as_me: failed program was:" >&5
2953 sed 's/^/| /' conftest.$ac_ext >&5
2954
2955 fi
2956 rm -f conftest.err conftest.$ac_objext
2957 done
2958 rm -f conftest.$ac_ext conftest.$ac_objext
2959 CC=$ac_save_CC
2960
2961 fi
2962
2963 case "x$ac_cv_prog_cc_stdc" in
2964 x|xno)
2965 echo "$as_me:$LINENO: result: none needed" >&5
2966 echo "${ECHO_T}none needed" >&6 ;;
2967 *)
2968 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2970 CC="$CC $ac_cv_prog_cc_stdc" ;;
2971 esac
2972
2973 # Some people use a C++ compiler to compile C. Since we use `exit',
2974 # in C++ we need to declare it. In case someone uses the same compiler
2975 # for both compiling C and C++ we need to have the C++ compiler decide
2976 # the declaration of exit, since it's the most demanding environment.
2977 cat >conftest.$ac_ext <<_ACEOF
2978 #ifndef __cplusplus
2979 choke me
2980 #endif
2981 _ACEOF
2982 rm -f conftest.$ac_objext
2983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2984 (eval $ac_compile) 2>conftest.er1
2985 ac_status=$?
2986 grep -v '^ *+' conftest.er1 >conftest.err
2987 rm -f conftest.er1
2988 cat conftest.err >&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); } &&
2991 { ac_try='test -z "$ac_c_werror_flag"
2992 || test ! -s conftest.err'
2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2994 (eval $ac_try) 2>&5
2995 ac_status=$?
2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997 (exit $ac_status); }; } &&
2998 { ac_try='test -s conftest.$ac_objext'
2999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3000 (eval $ac_try) 2>&5
3001 ac_status=$?
3002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 for ac_declaration in \
3005 '' \
3006 'extern "C" void std::exit (int) throw (); using std::exit;' \
3007 'extern "C" void std::exit (int); using std::exit;' \
3008 'extern "C" void exit (int) throw ();' \
3009 'extern "C" void exit (int);' \
3010 'void exit (int);'
3011 do
3012 cat >conftest.$ac_ext <<_ACEOF
3013 /* confdefs.h. */
3014 _ACEOF
3015 cat confdefs.h >>conftest.$ac_ext
3016 cat >>conftest.$ac_ext <<_ACEOF
3017 /* end confdefs.h. */
3018 $ac_declaration
3019 #include <stdlib.h>
3020 int
3021 main ()
3022 {
3023 exit (42);
3024 ;
3025 return 0;
3026 }
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030 (eval $ac_compile) 2>conftest.er1
3031 ac_status=$?
3032 grep -v '^ *+' conftest.er1 >conftest.err
3033 rm -f conftest.er1
3034 cat conftest.err >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); } &&
3037 { ac_try='test -z "$ac_c_werror_flag"
3038 || test ! -s conftest.err'
3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040 (eval $ac_try) 2>&5
3041 ac_status=$?
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); }; } &&
3044 { ac_try='test -s conftest.$ac_objext'
3045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046 (eval $ac_try) 2>&5
3047 ac_status=$?
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 :
3051 else
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 continue
3056 fi
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058 cat >conftest.$ac_ext <<_ACEOF
3059 /* confdefs.h. */
3060 _ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3064 $ac_declaration
3065 int
3066 main ()
3067 {
3068 exit (42);
3069 ;
3070 return 0;
3071 }
3072 _ACEOF
3073 rm -f conftest.$ac_objext
3074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3075 (eval $ac_compile) 2>conftest.er1
3076 ac_status=$?
3077 grep -v '^ *+' conftest.er1 >conftest.err
3078 rm -f conftest.er1
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag"
3083 || test ! -s conftest.err'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3085 (eval $ac_try) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3091 (eval $ac_try) 2>&5
3092 ac_status=$?
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 break
3096 else
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3099
3100 fi
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3102 done
3103 rm -f conftest*
3104 if test -n "$ac_declaration"; then
3105 echo '#ifdef __cplusplus' >>confdefs.h
3106 echo $ac_declaration >>confdefs.h
3107 echo '#endif' >>confdefs.h
3108 fi
3109
3110 else
3111 echo "$as_me: failed program was:" >&5
3112 sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 fi
3115 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3116 ac_ext=cc
3117 ac_cpp='$CXXCPP $CPPFLAGS'
3118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3121
3122 ac_ext=cc
3123 ac_cpp='$CXXCPP $CPPFLAGS'
3124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3127 if test -n "$ac_tool_prefix"; then
3128 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3129 do
3130 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3131 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3132 echo "$as_me:$LINENO: checking for $ac_word" >&5
3133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3134 if test "${ac_cv_prog_CXX+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3136 else
3137 if test -n "$CXX"; then
3138 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3142 do
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3150 fi
3151 done
3152 done
3153
3154 fi
3155 fi
3156 CXX=$ac_cv_prog_CXX
3157 if test -n "$CXX"; then
3158 echo "$as_me:$LINENO: result: $CXX" >&5
3159 echo "${ECHO_T}$CXX" >&6
3160 else
3161 echo "$as_me:$LINENO: result: no" >&5
3162 echo "${ECHO_T}no" >&6
3163 fi
3164
3165 test -n "$CXX" && break
3166 done
3167 fi
3168 if test -z "$CXX"; then
3169 ac_ct_CXX=$CXX
3170 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3171 do
3172 # Extract the first word of "$ac_prog", so it can be a program name with args.
3173 set dummy $ac_prog; ac_word=$2
3174 echo "$as_me:$LINENO: checking for $ac_word" >&5
3175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3176 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3177 echo $ECHO_N "(cached) $ECHO_C" >&6
3178 else
3179 if test -n "$ac_ct_CXX"; then
3180 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3181 else
3182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183 for as_dir in $PATH
3184 do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
3188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3189 ac_cv_prog_ac_ct_CXX="$ac_prog"
3190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3192 fi
3193 done
3194 done
3195
3196 fi
3197 fi
3198 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3199 if test -n "$ac_ct_CXX"; then
3200 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3201 echo "${ECHO_T}$ac_ct_CXX" >&6
3202 else
3203 echo "$as_me:$LINENO: result: no" >&5
3204 echo "${ECHO_T}no" >&6
3205 fi
3206
3207 test -n "$ac_ct_CXX" && break
3208 done
3209 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3210
3211 CXX=$ac_ct_CXX
3212 fi
3213
3214
3215 # Provide some information about the compiler.
3216 echo "$as_me:$LINENO:" \
3217 "checking for C++ compiler version" >&5
3218 ac_compiler=`set X $ac_compile; echo $2`
3219 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3220 (eval $ac_compiler --version </dev/null >&5) 2>&5
3221 ac_status=$?
3222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3223 (exit $ac_status); }
3224 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3225 (eval $ac_compiler -v </dev/null >&5) 2>&5
3226 ac_status=$?
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }
3229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3230 (eval $ac_compiler -V </dev/null >&5) 2>&5
3231 ac_status=$?
3232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3233 (exit $ac_status); }
3234
3235 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3236 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3237 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240 cat >conftest.$ac_ext <<_ACEOF
3241 /* confdefs.h. */
3242 _ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3246
3247 int
3248 main ()
3249 {
3250 #ifndef __GNUC__
3251 choke me
3252 #endif
3253
3254 ;
3255 return 0;
3256 }
3257 _ACEOF
3258 rm -f conftest.$ac_objext
3259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260 (eval $ac_compile) 2>conftest.er1
3261 ac_status=$?
3262 grep -v '^ *+' conftest.er1 >conftest.err
3263 rm -f conftest.er1
3264 cat conftest.err >&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); } &&
3267 { ac_try='test -z "$ac_cxx_werror_flag"
3268 || test ! -s conftest.err'
3269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270 (eval $ac_try) 2>&5
3271 ac_status=$?
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; } &&
3274 { ac_try='test -s conftest.$ac_objext'
3275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 (eval $ac_try) 2>&5
3277 ac_status=$?
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); }; }; then
3280 ac_compiler_gnu=yes
3281 else
3282 echo "$as_me: failed program was:" >&5
3283 sed 's/^/| /' conftest.$ac_ext >&5
3284
3285 ac_compiler_gnu=no
3286 fi
3287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3288 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3289
3290 fi
3291 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3292 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3293 GXX=`test $ac_compiler_gnu = yes && echo yes`
3294 ac_test_CXXFLAGS=${CXXFLAGS+set}
3295 ac_save_CXXFLAGS=$CXXFLAGS
3296 CXXFLAGS="-g"
3297 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3298 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3299 if test "${ac_cv_prog_cxx_g+set}" = set; then
3300 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 else
3302 cat >conftest.$ac_ext <<_ACEOF
3303 /* confdefs.h. */
3304 _ACEOF
3305 cat confdefs.h >>conftest.$ac_ext
3306 cat >>conftest.$ac_ext <<_ACEOF
3307 /* end confdefs.h. */
3308
3309 int
3310 main ()
3311 {
3312
3313 ;
3314 return 0;
3315 }
3316 _ACEOF
3317 rm -f conftest.$ac_objext
3318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3319 (eval $ac_compile) 2>conftest.er1
3320 ac_status=$?
3321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); } &&
3326 { ac_try='test -z "$ac_cxx_werror_flag"
3327 || test ! -s conftest.err'
3328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3329 (eval $ac_try) 2>&5
3330 ac_status=$?
3331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332 (exit $ac_status); }; } &&
3333 { ac_try='test -s conftest.$ac_objext'
3334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3335 (eval $ac_try) 2>&5
3336 ac_status=$?
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; }; then
3339 ac_cv_prog_cxx_g=yes
3340 else
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3343
3344 ac_cv_prog_cxx_g=no
3345 fi
3346 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3347 fi
3348 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3349 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3350 if test "$ac_test_CXXFLAGS" = set; then
3351 CXXFLAGS=$ac_save_CXXFLAGS
3352 elif test $ac_cv_prog_cxx_g = yes; then
3353 if test "$GXX" = yes; then
3354 CXXFLAGS="-g -O2"
3355 else
3356 CXXFLAGS="-g"
3357 fi
3358 else
3359 if test "$GXX" = yes; then
3360 CXXFLAGS="-O2"
3361 else
3362 CXXFLAGS=
3363 fi
3364 fi
3365 for ac_declaration in \
3366 '' \
3367 'extern "C" void std::exit (int) throw (); using std::exit;' \
3368 'extern "C" void std::exit (int); using std::exit;' \
3369 'extern "C" void exit (int) throw ();' \
3370 'extern "C" void exit (int);' \
3371 'void exit (int);'
3372 do
3373 cat >conftest.$ac_ext <<_ACEOF
3374 /* confdefs.h. */
3375 _ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3379 $ac_declaration
3380 #include <stdlib.h>
3381 int
3382 main ()
3383 {
3384 exit (42);
3385 ;
3386 return 0;
3387 }
3388 _ACEOF
3389 rm -f conftest.$ac_objext
3390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3391 (eval $ac_compile) 2>conftest.er1
3392 ac_status=$?
3393 grep -v '^ *+' conftest.er1 >conftest.err
3394 rm -f conftest.er1
3395 cat conftest.err >&5
3396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397 (exit $ac_status); } &&
3398 { ac_try='test -z "$ac_cxx_werror_flag"
3399 || test ! -s conftest.err'
3400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3401 (eval $ac_try) 2>&5
3402 ac_status=$?
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); }; } &&
3405 { ac_try='test -s conftest.$ac_objext'
3406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3407 (eval $ac_try) 2>&5
3408 ac_status=$?
3409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3410 (exit $ac_status); }; }; then
3411 :
3412 else
3413 echo "$as_me: failed program was:" >&5
3414 sed 's/^/| /' conftest.$ac_ext >&5
3415
3416 continue
3417 fi
3418 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 $ac_declaration
3426 int
3427 main ()
3428 {
3429 exit (42);
3430 ;
3431 return 0;
3432 }
3433 _ACEOF
3434 rm -f conftest.$ac_objext
3435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3436 (eval $ac_compile) 2>conftest.er1
3437 ac_status=$?
3438 grep -v '^ *+' conftest.er1 >conftest.err
3439 rm -f conftest.er1
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } &&
3443 { ac_try='test -z "$ac_cxx_werror_flag"
3444 || test ! -s conftest.err'
3445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3446 (eval $ac_try) 2>&5
3447 ac_status=$?
3448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3449 (exit $ac_status); }; } &&
3450 { ac_try='test -s conftest.$ac_objext'
3451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3452 (eval $ac_try) 2>&5
3453 ac_status=$?
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); }; }; then
3456 break
3457 else
3458 echo "$as_me: failed program was:" >&5
3459 sed 's/^/| /' conftest.$ac_ext >&5
3460
3461 fi
3462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463 done
3464 rm -f conftest*
3465 if test -n "$ac_declaration"; then
3466 echo '#ifdef __cplusplus' >>confdefs.h
3467 echo $ac_declaration >>confdefs.h
3468 echo '#endif' >>confdefs.h
3469 fi
3470
3471 ac_ext=cc
3472 ac_cpp='$CXXCPP $CPPFLAGS'
3473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3476
3477 ac_ext=cc
3478 ac_cpp='$CXXCPP $CPPFLAGS'
3479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3482 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3483 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3484 if test -z "$CXXCPP"; then
3485 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3486 echo $ECHO_N "(cached) $ECHO_C" >&6
3487 else
3488 # Double quotes because CXXCPP needs to be expanded
3489 for CXXCPP in "$CXX -E" "/lib/cpp"
3490 do
3491 ac_preproc_ok=false
3492 for ac_cxx_preproc_warn_flag in '' yes
3493 do
3494 # Use a header file that comes with gcc, so configuring glibc
3495 # with a fresh cross-compiler works.
3496 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3497 # <limits.h> exists even on freestanding compilers.
3498 # On the NeXT, cc -E runs the code through the compiler's parser,
3499 # not just through cpp. "Syntax error" is here to catch this case.
3500 cat >conftest.$ac_ext <<_ACEOF
3501 /* confdefs.h. */
3502 _ACEOF
3503 cat confdefs.h >>conftest.$ac_ext
3504 cat >>conftest.$ac_ext <<_ACEOF
3505 /* end confdefs.h. */
3506 #ifdef __STDC__
3507 # include <limits.h>
3508 #else
3509 # include <assert.h>
3510 #endif
3511 Syntax error
3512 _ACEOF
3513 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3514 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } >/dev/null; then
3521 if test -s conftest.err; then
3522 ac_cpp_err=$ac_cxx_preproc_warn_flag
3523 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3524 else
3525 ac_cpp_err=
3526 fi
3527 else
3528 ac_cpp_err=yes
3529 fi
3530 if test -z "$ac_cpp_err"; then
3531 :
3532 else
3533 echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3535
3536 # Broken: fails on valid input.
3537 continue
3538 fi
3539 rm -f conftest.err conftest.$ac_ext
3540
3541 # OK, works on sane cases. Now check whether non-existent headers
3542 # can be detected and how.
3543 cat >conftest.$ac_ext <<_ACEOF
3544 /* confdefs.h. */
3545 _ACEOF
3546 cat confdefs.h >>conftest.$ac_ext
3547 cat >>conftest.$ac_ext <<_ACEOF
3548 /* end confdefs.h. */
3549 #include <ac_nonexistent.h>
3550 _ACEOF
3551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3553 ac_status=$?
3554 grep -v '^ *+' conftest.er1 >conftest.err
3555 rm -f conftest.er1
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_cxx_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3562 else
3563 ac_cpp_err=
3564 fi
3565 else
3566 ac_cpp_err=yes
3567 fi
3568 if test -z "$ac_cpp_err"; then
3569 # Broken: success on invalid input.
3570 continue
3571 else
3572 echo "$as_me: failed program was:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3574
3575 # Passes both tests.
3576 ac_preproc_ok=:
3577 break
3578 fi
3579 rm -f conftest.err conftest.$ac_ext
3580
3581 done
3582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3583 rm -f conftest.err conftest.$ac_ext
3584 if $ac_preproc_ok; then
3585 break
3586 fi
3587
3588 done
3589 ac_cv_prog_CXXCPP=$CXXCPP
3590
3591 fi
3592 CXXCPP=$ac_cv_prog_CXXCPP
3593 else
3594 ac_cv_prog_CXXCPP=$CXXCPP
3595 fi
3596 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3597 echo "${ECHO_T}$CXXCPP" >&6
3598 ac_preproc_ok=false
3599 for ac_cxx_preproc_warn_flag in '' yes
3600 do
3601 # Use a header file that comes with gcc, so configuring glibc
3602 # with a fresh cross-compiler works.
3603 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3604 # <limits.h> exists even on freestanding compilers.
3605 # On the NeXT, cc -E runs the code through the compiler's parser,
3606 # not just through cpp. "Syntax error" is here to catch this case.
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613 #ifdef __STDC__
3614 # include <limits.h>
3615 #else
3616 # include <assert.h>
3617 #endif
3618 Syntax error
3619 _ACEOF
3620 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3621 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3622 ac_status=$?
3623 grep -v '^ *+' conftest.er1 >conftest.err
3624 rm -f conftest.er1
3625 cat conftest.err >&5
3626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627 (exit $ac_status); } >/dev/null; then
3628 if test -s conftest.err; then
3629 ac_cpp_err=$ac_cxx_preproc_warn_flag
3630 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3631 else
3632 ac_cpp_err=
3633 fi
3634 else
3635 ac_cpp_err=yes
3636 fi
3637 if test -z "$ac_cpp_err"; then
3638 :
3639 else
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 # Broken: fails on valid input.
3644 continue
3645 fi
3646 rm -f conftest.err conftest.$ac_ext
3647
3648 # OK, works on sane cases. Now check whether non-existent headers
3649 # can be detected and how.
3650 cat >conftest.$ac_ext <<_ACEOF
3651 /* confdefs.h. */
3652 _ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3656 #include <ac_nonexistent.h>
3657 _ACEOF
3658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3660 ac_status=$?
3661 grep -v '^ *+' conftest.er1 >conftest.err
3662 rm -f conftest.er1
3663 cat conftest.err >&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); } >/dev/null; then
3666 if test -s conftest.err; then
3667 ac_cpp_err=$ac_cxx_preproc_warn_flag
3668 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3669 else
3670 ac_cpp_err=
3671 fi
3672 else
3673 ac_cpp_err=yes
3674 fi
3675 if test -z "$ac_cpp_err"; then
3676 # Broken: success on invalid input.
3677 continue
3678 else
3679 echo "$as_me: failed program was:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3681
3682 # Passes both tests.
3683 ac_preproc_ok=:
3684 break
3685 fi
3686 rm -f conftest.err conftest.$ac_ext
3687
3688 done
3689 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3690 rm -f conftest.err conftest.$ac_ext
3691 if $ac_preproc_ok; then
3692 :
3693 else
3694 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3695 See \`config.log' for more details." >&5
3696 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3697 See \`config.log' for more details." >&2;}
3698 { (exit 1); exit 1; }; }
3699 fi
3700
3701 ac_ext=cc
3702 ac_cpp='$CXXCPP $CPPFLAGS'
3703 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3704 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3705 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3706
3707
3708
3709
3710
3711 if test "$WX_SHARED" = "1" ; then
3712 WXCFG_FLAGS="--static=no "
3713 elif test "$WX_SHARED" = "0" ; then
3714 WXCFG_FLAGS="--static=yes "
3715 fi
3716
3717 if test "$DEBUG" = "1" ; then
3718 WXCFG_FLAGS="$WXCFG_FLAGS""--debug=yes "
3719 elif test "$DEBUG" = "0" ; then
3720 WXCFG_FLAGS="$WXCFG_FLAGS""--debug=no "
3721 fi
3722
3723 if test "$UNICODE" = "1" ; then
3724 WXCFG_FLAGS="$WXCFG_FLAGS""--unicode=yes "
3725 elif test "$UNICODE" = "0" ; then
3726 WXCFG_FLAGS="$WXCFG_FLAGS""--unicode=no "
3727 fi
3728
3729 if test "$GTKPORT" = "1" ; then
3730 WXCFG_FLAGS="$WXCFG_FLAGS""--toolkit=gtk2 "
3731 elif test "$MOTIFPORT" = "1" ; then
3732 WXCFG_FLAGS="$WXCFG_FLAGS""--toolkit=motif "
3733 elif test "$X11PORT" = "1" ; then
3734 WXCFG_FLAGS="$WXCFG_FLAGS""--toolkit=x11 "
3735 elif test "$MACPORT" = "1" ; then
3736 WXCFG_FLAGS="$WXCFG_FLAGS""--toolkit=mac "
3737 elif test "$MGLPORT" = "1" ; then
3738 WXCFG_FLAGS="$WXCFG_FLAGS""--toolkit=mgl "
3739 elif test "$MSWPORT" = "1" ; then
3740 WXCFG_FLAGS="$WXCFG_FLAGS""--toolkit=msw "
3741 fi
3742
3743
3744 if test "$DBG_CONFIGURE" = "1"; then
3745 echo "[dbg] WXCFG_FLAGS: $WXCFG_FLAGS"
3746 fi
3747
3748
3749 WX_ADDITIONAL_LIBS=",core,base"
3750
3751
3752 if test x${WX_CONFIG_NAME+set} != xset ; then
3753 WX_CONFIG_NAME=wx-config
3754 fi
3755
3756 if test "x$wx_config_name" != x ; then
3757 WX_CONFIG_NAME="$wx_config_name"
3758 fi
3759
3760 if test x$wx_config_exec_prefix != x ; then
3761 wx_config_args="$wx_config_args --exec-prefix=$wx_config_exec_prefix"
3762 WX_LOOKUP_PATH="$wx_config_exec_prefix/bin"
3763 fi
3764 if test x$wx_config_prefix != x ; then
3765 wx_config_args="$wx_config_args --prefix=$wx_config_prefix"
3766 WX_LOOKUP_PATH="$WX_LOOKUP_PATH:$wx_config_prefix/bin"
3767 fi
3768 if test "$cross_compiling" = "yes"; then
3769 wx_config_args="$wx_config_args --host=$host_alias"
3770 fi
3771
3772 if test -x "$WX_CONFIG_NAME" ; then
3773 echo "$as_me:$LINENO: checking for wx-config" >&5
3774 echo $ECHO_N "checking for wx-config... $ECHO_C" >&6
3775 WX_CONFIG_PATH="$WX_CONFIG_NAME"
3776 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
3777 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
3778 else
3779 # Extract the first word of "$WX_CONFIG_NAME", so it can be a program name with args.
3780 set dummy $WX_CONFIG_NAME; ac_word=$2
3781 echo "$as_me:$LINENO: checking for $ac_word" >&5
3782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3783 if test "${ac_cv_path_WX_CONFIG_PATH+set}" = set; then
3784 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 else
3786 case $WX_CONFIG_PATH in
3787 [\\/]* | ?:[\\/]*)
3788 ac_cv_path_WX_CONFIG_PATH="$WX_CONFIG_PATH" # Let the user override the test with a path.
3789 ;;
3790 *)
3791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3792 as_dummy=""$WX_LOOKUP_PATH:$PATH""
3793 for as_dir in $as_dummy
3794 do
3795 IFS=$as_save_IFS
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799 ac_cv_path_WX_CONFIG_PATH="$as_dir/$ac_word$ac_exec_ext"
3800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3801 break 2
3802 fi
3803 done
3804 done
3805
3806 test -z "$ac_cv_path_WX_CONFIG_PATH" && ac_cv_path_WX_CONFIG_PATH="no"
3807 ;;
3808 esac
3809 fi
3810 WX_CONFIG_PATH=$ac_cv_path_WX_CONFIG_PATH
3811
3812 if test -n "$WX_CONFIG_PATH"; then
3813 echo "$as_me:$LINENO: result: $WX_CONFIG_PATH" >&5
3814 echo "${ECHO_T}$WX_CONFIG_PATH" >&6
3815 else
3816 echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6
3818 fi
3819
3820 fi
3821
3822 if test "$WX_CONFIG_PATH" != "no" ; then
3823 WX_VERSION=""
3824
3825 min_wx_version=2.4.0
3826 if test -z "$WXCFG_FLAGS" ; then
3827 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version" >&5
3828 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version... $ECHO_C" >&6
3829 else
3830 echo "$as_me:$LINENO: checking for wxWidgets version >= $min_wx_version ($WXCFG_FLAGS)" >&5
3831 echo $ECHO_N "checking for wxWidgets version >= $min_wx_version ($WXCFG_FLAGS)... $ECHO_C" >&6
3832 fi
3833
3834 WX_CONFIG_WITH_ARGS="$WX_CONFIG_PATH $wx_config_args $WXCFG_FLAGS $WX_ADDITIONAL_LIBS"
3835
3836 WX_VERSION=`$WX_CONFIG_WITH_ARGS --version 2>/dev/null`
3837 wx_config_major_version=`echo $WX_VERSION | \
3838 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3839 wx_config_minor_version=`echo $WX_VERSION | \
3840 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3841 wx_config_micro_version=`echo $WX_VERSION | \
3842 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3843
3844 wx_requested_major_version=`echo $min_wx_version | \
3845 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
3846 wx_requested_minor_version=`echo $min_wx_version | \
3847 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
3848 wx_requested_micro_version=`echo $min_wx_version | \
3849 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
3850
3851
3852 wx_ver_ok=""
3853 if test "x$WX_VERSION" != x ; then
3854 if test $wx_config_major_version -gt $wx_requested_major_version; then
3855 wx_ver_ok=yes
3856 else
3857 if test $wx_config_major_version -eq $wx_requested_major_version; then
3858 if test $wx_config_minor_version -gt $wx_requested_minor_version; then
3859 wx_ver_ok=yes
3860 else
3861 if test $wx_config_minor_version -eq $wx_requested_minor_version; then
3862 if test $wx_config_micro_version -ge $wx_requested_micro_version; then
3863 wx_ver_ok=yes
3864 fi
3865 fi
3866 fi
3867 fi
3868 fi
3869 fi
3870
3871
3872 if test -n "$wx_ver_ok"; then
3873
3874 echo "$as_me:$LINENO: result: yes (version $WX_VERSION)" >&5
3875 echo "${ECHO_T}yes (version $WX_VERSION)" >&6
3876 WX_LIBS=`$WX_CONFIG_WITH_ARGS --libs`
3877
3878 echo "$as_me:$LINENO: checking for wxWidgets static library" >&5
3879 echo $ECHO_N "checking for wxWidgets static library... $ECHO_C" >&6
3880 WX_LIBS_STATIC=`$WX_CONFIG_WITH_ARGS --static --libs 2>/dev/null`
3881 if test "x$WX_LIBS_STATIC" = "x"; then
3882 echo "$as_me:$LINENO: result: no" >&5
3883 echo "${ECHO_T}no" >&6
3884 else
3885 echo "$as_me:$LINENO: result: yes" >&5
3886 echo "${ECHO_T}yes" >&6
3887 fi
3888
3889 wx_has_cppflags=""
3890 if test $wx_config_major_version -gt 2; then
3891 wx_has_cppflags=yes
3892 else
3893 if test $wx_config_major_version -eq 2; then
3894 if test $wx_config_minor_version -gt 2; then
3895 wx_has_cppflags=yes
3896 else
3897 if test $wx_config_minor_version -eq 2; then
3898 if test $wx_config_micro_version -ge 6; then
3899 wx_has_cppflags=yes
3900 fi
3901 fi
3902 fi
3903 fi
3904 fi
3905
3906 if test "x$wx_has_cppflags" = x ; then
3907 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
3908 WX_CPPFLAGS=$WX_CFLAGS
3909 WX_CXXFLAGS=$WX_CFLAGS
3910
3911 WX_CFLAGS_ONLY=$WX_CFLAGS
3912 WX_CXXFLAGS_ONLY=$WX_CFLAGS
3913 else
3914 WX_CPPFLAGS=`$WX_CONFIG_WITH_ARGS --cppflags`
3915 WX_CXXFLAGS=`$WX_CONFIG_WITH_ARGS --cxxflags`
3916 WX_CFLAGS=`$WX_CONFIG_WITH_ARGS --cflags`
3917
3918 WX_CFLAGS_ONLY=`echo $WX_CFLAGS | sed "s@^$WX_CPPFLAGS *@@"`
3919 WX_CXXFLAGS_ONLY=`echo $WX_CXXFLAGS | sed "s@^$WX_CFLAGS *@@"`
3920 fi
3921
3922 wxWin=1
3923
3924 else
3925
3926 if test "x$WX_VERSION" = x; then
3927 echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6
3929 else
3930 echo "$as_me:$LINENO: result: no (version $WX_VERSION is not new enough)" >&5
3931 echo "${ECHO_T}no (version $WX_VERSION is not new enough)" >&6
3932 fi
3933
3934 WX_CFLAGS=""
3935 WX_CPPFLAGS=""
3936 WX_CXXFLAGS=""
3937 WX_LIBS=""
3938 WX_LIBS_STATIC=""
3939 wxWin=0
3940
3941 fi
3942 else
3943
3944 WX_CFLAGS=""
3945 WX_CPPFLAGS=""
3946 WX_CXXFLAGS=""
3947 WX_LIBS=""
3948 WX_LIBS_STATIC=""
3949 wxWin=0
3950
3951 fi
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962 if test "$wxWin" != 1; then
3963
3964 if test ! -z "$WXCFG_FLAGS"; then
3965
3966 MSG="
3967 The configuration you asked for $PACKAGE_NAME requires a wxWidgets
3968 build with the following settings:
3969 $WXCFG_FLAGS
3970 but such build is not available.
3971
3972 Try to use the default build of wxWidgets
3973 (see the command 'wx-config --list') leaving
3974 the --enable-unicode, --enable-static, --enable-debug
3975 and --with-* options to their default values."
3976 fi
3977
3978 { { echo "$as_me:$LINENO: error:
3979 The requested wxWidgets build couldn't be found.
3980 $MSG
3981
3982 If you still get this error, then check that 'wx-config' is
3983 in path, the directory where wxWidgets libraries are installed
3984 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
3985 or equivalent variable and wxWidgets version is 2.4.0 or above.
3986 " >&5
3987 echo "$as_me: error:
3988 The requested wxWidgets build couldn't be found.
3989 $MSG
3990
3991 If you still get this error, then check that 'wx-config' is
3992 in path, the directory where wxWidgets libraries are installed
3993 (returned by 'wx-config --libs' command) is in LD_LIBRARY_PATH
3994 or equivalent variable and wxWidgets version is 2.4.0 or above.
3995 " >&2;}
3996 { (exit 1); exit 1; }; }
3997 else
3998 true; fi
3999
4000 WX_VERSION_FULL="$WX_VERSION"
4001
4002
4003
4004 WX_VERSION_MAJOR=`echo $WX_VERSION | \
4005 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4006 WX_VERSION_MINOR=`echo $WX_VERSION | \
4007 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4008 WX_VERSION=$wx_config_major_version$wx_config_minor_version
4009
4010
4011
4012
4013
4014 if test "$DBG_CONFIGURE" = "1"; then
4015 echo "[dbg] WX_VERSION: $WX_VERSION"
4016 fi
4017
4018 if test $WX_SHARED = "1"; then
4019 STATIC=0
4020 elif test $WX_SHARED = "0"; then
4021 STATIC=1
4022 elif test $WX_SHARED = "auto"; then
4023 STATIC="auto"
4024 fi
4025
4026 if test $WX_VERSION -gt 26 ; then
4027
4028 WX_SELECTEDCONFIG=$($WX_CONFIG_WITH_ARGS --selected_config)
4029
4030 if test "$DBG_CONFIGURE" = "1"; then
4031 echo "[dbg] Using wx-config --selected_config"
4032 echo "[dbg] WX_SELECTEDCONFIG: $WX_SELECTEDCONFIG"
4033 fi
4034
4035
4036 if test "$UNICODE" = "auto" ; then
4037
4038 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
4039 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
4040
4041 WX_UNICODE=$(expr "$WX_SELECTEDCONFIG" : ".*unicode.*")
4042
4043 if test "$WX_UNICODE" != "0"; then
4044 WX_UNICODE=1
4045 echo "$as_me:$LINENO: result: yes" >&5
4046 echo "${ECHO_T}yes" >&6
4047 :
4048 else
4049 WX_UNICODE=0
4050 echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6
4052 :
4053 fi
4054 else
4055
4056 WX_UNICODE=$UNICODE
4057 fi
4058
4059
4060 if test "$DEBUG" = "auto" ; then
4061
4062 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
4063 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
4064
4065 WX_DEBUG=$(expr "$WX_SELECTEDCONFIG" : ".*debug.*")
4066
4067 if test "$WX_DEBUG" != "0"; then
4068 WX_DEBUG=1
4069 echo "$as_me:$LINENO: result: yes" >&5
4070 echo "${ECHO_T}yes" >&6
4071 :
4072 else
4073 WX_DEBUG=0
4074 echo "$as_me:$LINENO: result: no" >&5
4075 echo "${ECHO_T}no" >&6
4076 :
4077 fi
4078 else
4079
4080 WX_DEBUG=$DEBUG
4081 fi
4082
4083
4084 if test "$STATIC" = "auto" ; then
4085
4086 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
4087 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
4088
4089 WX_STATIC=$(expr "$WX_SELECTEDCONFIG" : ".*static.*")
4090
4091 if test "$WX_STATIC" != "0"; then
4092 WX_STATIC=1
4093 echo "$as_me:$LINENO: result: yes" >&5
4094 echo "${ECHO_T}yes" >&6
4095 :
4096 else
4097 WX_STATIC=0
4098 echo "$as_me:$LINENO: result: no" >&5
4099 echo "${ECHO_T}no" >&6
4100 :
4101 fi
4102 else
4103
4104 WX_STATIC=$STATIC
4105 fi
4106
4107
4108 WX_PORT="unknown"
4109
4110 if test "$GTKPORT" = "auto" ; then
4111
4112 echo "$as_me:$LINENO: checking if wxWidgets port is wxGTK" >&5
4113 echo $ECHO_N "checking if wxWidgets port is wxGTK... $ECHO_C" >&6
4114
4115 WX_GTKPORT=$(expr "$WX_SELECTEDCONFIG" : ".*gtk.*")
4116
4117 if test "$WX_GTKPORT" != "0"; then
4118 WX_GTKPORT=1
4119 echo "$as_me:$LINENO: result: yes" >&5
4120 echo "${ECHO_T}yes" >&6
4121 WX_PORT="gtk"
4122 else
4123 WX_GTKPORT=0
4124 echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6
4126 :
4127 fi
4128 else
4129
4130 WX_GTKPORT=$GTKPORT
4131 fi
4132
4133
4134 if test "$MOTIFPORT" = "auto" ; then
4135
4136 echo "$as_me:$LINENO: checking if wxWidgets port is wxMotif" >&5
4137 echo $ECHO_N "checking if wxWidgets port is wxMotif... $ECHO_C" >&6
4138
4139 WX_MOTIFPORT=$(expr "$WX_SELECTEDCONFIG" : ".*motif.*")
4140
4141 if test "$WX_MOTIFPORT" != "0"; then
4142 WX_MOTIFPORT=1
4143 echo "$as_me:$LINENO: result: yes" >&5
4144 echo "${ECHO_T}yes" >&6
4145 WX_PORT="motif"
4146 else
4147 WX_MOTIFPORT=0
4148 echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6
4150 :
4151 fi
4152 else
4153
4154 WX_MOTIFPORT=$MOTIFPORT
4155 fi
4156
4157
4158 if test "$MACPORT" = "auto" ; then
4159
4160 echo "$as_me:$LINENO: checking if wxWidgets port is wxMac" >&5
4161 echo $ECHO_N "checking if wxWidgets port is wxMac... $ECHO_C" >&6
4162
4163 WX_MACPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mac.*")
4164
4165 if test "$WX_MACPORT" != "0"; then
4166 WX_MACPORT=1
4167 echo "$as_me:$LINENO: result: yes" >&5
4168 echo "${ECHO_T}yes" >&6
4169 WX_PORT="mac"
4170 else
4171 WX_MACPORT=0
4172 echo "$as_me:$LINENO: result: no" >&5
4173 echo "${ECHO_T}no" >&6
4174 :
4175 fi
4176 else
4177
4178 WX_MACPORT=$MACPORT
4179 fi
4180
4181
4182 if test "$X11PORT" = "auto" ; then
4183
4184 echo "$as_me:$LINENO: checking if wxWidgets port is wxX11" >&5
4185 echo $ECHO_N "checking if wxWidgets port is wxX11... $ECHO_C" >&6
4186
4187 WX_X11PORT=$(expr "$WX_SELECTEDCONFIG" : ".*x11.*")
4188
4189 if test "$WX_X11PORT" != "0"; then
4190 WX_X11PORT=1
4191 echo "$as_me:$LINENO: result: yes" >&5
4192 echo "${ECHO_T}yes" >&6
4193 WX_PORT="x11"
4194 else
4195 WX_X11PORT=0
4196 echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6
4198 :
4199 fi
4200 else
4201
4202 WX_X11PORT=$X11PORT
4203 fi
4204
4205
4206 if test "$MGLPORT" = "auto" ; then
4207
4208 echo "$as_me:$LINENO: checking if wxWidgets port is wxMGL" >&5
4209 echo $ECHO_N "checking if wxWidgets port is wxMGL... $ECHO_C" >&6
4210
4211 WX_MGLPORT=$(expr "$WX_SELECTEDCONFIG" : ".*mgl.*")
4212
4213 if test "$WX_MGLPORT" != "0"; then
4214 WX_MGLPORT=1
4215 echo "$as_me:$LINENO: result: yes" >&5
4216 echo "${ECHO_T}yes" >&6
4217 WX_PORT="mgl"
4218 else
4219 WX_MGLPORT=0
4220 echo "$as_me:$LINENO: result: no" >&5
4221 echo "${ECHO_T}no" >&6
4222 :
4223 fi
4224 else
4225
4226 WX_MGLPORT=$MGLPORT
4227 fi
4228
4229
4230 if test "$MSWPORT" = "auto" ; then
4231
4232 echo "$as_me:$LINENO: checking if wxWidgets port is wxMSW" >&5
4233 echo $ECHO_N "checking if wxWidgets port is wxMSW... $ECHO_C" >&6
4234
4235 WX_MSWPORT=$(expr "$WX_SELECTEDCONFIG" : ".*msw.*")
4236
4237 if test "$WX_MSWPORT" != "0"; then
4238 WX_MSWPORT=1
4239 echo "$as_me:$LINENO: result: yes" >&5
4240 echo "${ECHO_T}yes" >&6
4241 WX_PORT="msw"
4242 else
4243 WX_MSWPORT=0
4244 echo "$as_me:$LINENO: result: no" >&5
4245 echo "${ECHO_T}no" >&6
4246 :
4247 fi
4248 else
4249
4250 WX_MSWPORT=$MSWPORT
4251 fi
4252
4253
4254 if test "$WX_PORT" = "gtk"; then
4255 TEMP=auto
4256
4257 if test "$TEMP" = "auto" ; then
4258
4259 echo "$as_me:$LINENO: checking if wxGTK uses GTK 2.x (instead of GTK 1.x)" >&5
4260 echo $ECHO_N "checking if wxGTK uses GTK 2.x (instead of GTK 1.x)... $ECHO_C" >&6
4261
4262 WX_TEMP=$(expr "$WX_SELECTEDCONFIG" : ".*gtk2.*")
4263
4264 if test "$WX_TEMP" != "0"; then
4265 WX_TEMP=1
4266 echo "$as_me:$LINENO: result: yes" >&5
4267 echo "${ECHO_T}yes" >&6
4268 WX_GTKPORT_VERSION=2
4269 else
4270 WX_TEMP=0
4271 echo "$as_me:$LINENO: result: no" >&5
4272 echo "${ECHO_T}no" >&6
4273 WX_GTKPORT_VERSION=1
4274 fi
4275 else
4276
4277 WX_TEMP=$TEMP
4278 fi
4279
4280 fi
4281 else
4282
4283 if test "$DBG_CONFIGURE" = "1"; then
4284 echo "Using WX_CPPFLAGS: $WX_CPPFLAGS"
4285 fi
4286
4287
4288
4289 if test "$UNICODE" = "auto" ; then
4290
4291 echo "$as_me:$LINENO: checking if wxWidgets was built with UNICODE enabled" >&5
4292 echo $ECHO_N "checking if wxWidgets was built with UNICODE enabled... $ECHO_C" >&6
4293
4294 WX_UNICODE=$(expr "$WX_CPPFLAGS" : ".*unicode.*")
4295
4296 if test "$WX_UNICODE" != "0"; then
4297 WX_UNICODE=1
4298 echo "$as_me:$LINENO: result: yes" >&5
4299 echo "${ECHO_T}yes" >&6
4300 :
4301 else
4302 WX_UNICODE=0
4303 echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6
4305 :
4306 fi
4307 else
4308
4309 WX_UNICODE=$UNICODE
4310 fi
4311
4312
4313 if test "$DEBUG" = "auto" ; then
4314
4315 echo "$as_me:$LINENO: checking if wxWidgets was built in DEBUG mode" >&5
4316 echo $ECHO_N "checking if wxWidgets was built in DEBUG mode... $ECHO_C" >&6
4317
4318 WX_DEBUG=$(expr "$WX_CPPFLAGS" : ".*__WXDEBUG__.*")
4319
4320 if test "$WX_DEBUG" != "0"; then
4321 WX_DEBUG=1
4322 echo "$as_me:$LINENO: result: yes" >&5
4323 echo "${ECHO_T}yes" >&6
4324 :
4325 else
4326 WX_DEBUG=0
4327 echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6
4329 :
4330 fi
4331 else
4332
4333 WX_DEBUG=$DEBUG
4334 fi
4335
4336
4337 if test "$STATIC" = "auto" ; then
4338
4339 echo "$as_me:$LINENO: checking if wxWidgets was built in STATIC mode" >&5
4340 echo $ECHO_N "checking if wxWidgets was built in STATIC mode... $ECHO_C" >&6
4341
4342 WX_STATIC=$(expr "$WX_CPPFLAGS" : ".*static.*")
4343
4344 if test "$WX_STATIC" != "0"; then
4345 WX_STATIC=1
4346 echo "$as_me:$LINENO: result: yes" >&5
4347 echo "${ECHO_T}yes" >&6
4348 :
4349 else
4350 WX_STATIC=0
4351 echo "$as_me:$LINENO: result: no" >&5
4352 echo "${ECHO_T}no" >&6
4353 :
4354 fi
4355 else
4356
4357 WX_STATIC=$STATIC
4358 fi
4359
4360
4361 WX_PORT="unknown"
4362
4363 if test "$GTKPORT" = "auto" ; then
4364
4365 echo "$as_me:$LINENO: checking if wxWidgets port is wxGTK" >&5
4366 echo $ECHO_N "checking if wxWidgets port is wxGTK... $ECHO_C" >&6
4367
4368 WX_GTKPORT=$(expr "$WX_CPPFLAGS" : ".*__WXGTK__.*")
4369
4370 if test "$WX_GTKPORT" != "0"; then
4371 WX_GTKPORT=1
4372 echo "$as_me:$LINENO: result: yes" >&5
4373 echo "${ECHO_T}yes" >&6
4374 WX_PORT="gtk"
4375 else
4376 WX_GTKPORT=0
4377 echo "$as_me:$LINENO: result: no" >&5
4378 echo "${ECHO_T}no" >&6
4379 :
4380 fi
4381 else
4382
4383 WX_GTKPORT=$GTKPORT
4384 fi
4385
4386
4387 if test "$MOTIFPORT" = "auto" ; then
4388
4389 echo "$as_me:$LINENO: checking if wxWidgets port is wxMotif" >&5
4390 echo $ECHO_N "checking if wxWidgets port is wxMotif... $ECHO_C" >&6
4391
4392 WX_MOTIFPORT=$(expr "$WX_CPPFLAGS" : ".*__WXMOTIF__.*")
4393
4394 if test "$WX_MOTIFPORT" != "0"; then
4395 WX_MOTIFPORT=1
4396 echo "$as_me:$LINENO: result: yes" >&5
4397 echo "${ECHO_T}yes" >&6
4398 WX_PORT="motif"
4399 else
4400 WX_MOTIFPORT=0
4401 echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6
4403 :
4404 fi
4405 else
4406
4407 WX_MOTIFPORT=$MOTIFPORT
4408 fi
4409
4410
4411 if test "$MACPORT" = "auto" ; then
4412
4413 echo "$as_me:$LINENO: checking if wxWidgets port is wxMac" >&5
4414 echo $ECHO_N "checking if wxWidgets port is wxMac... $ECHO_C" >&6
4415
4416 WX_MACPORT=$(expr "$WX_CPPFLAGS" : ".*__WXMAC__.*")
4417
4418 if test "$WX_MACPORT" != "0"; then
4419 WX_MACPORT=1
4420 echo "$as_me:$LINENO: result: yes" >&5
4421 echo "${ECHO_T}yes" >&6
4422 WX_PORT="mac"
4423 else
4424 WX_MACPORT=0
4425 echo "$as_me:$LINENO: result: no" >&5
4426 echo "${ECHO_T}no" >&6
4427 :
4428 fi
4429 else
4430
4431 WX_MACPORT=$MACPORT
4432 fi
4433
4434
4435 if test "$X11PORT" = "auto" ; then
4436
4437 echo "$as_me:$LINENO: checking if wxWidgets port is wxX11" >&5
4438 echo $ECHO_N "checking if wxWidgets port is wxX11... $ECHO_C" >&6
4439
4440 WX_X11PORT=$(expr "$WX_CPPFLAGS" : ".*__WXX11__.*")
4441
4442 if test "$WX_X11PORT" != "0"; then
4443 WX_X11PORT=1
4444 echo "$as_me:$LINENO: result: yes" >&5
4445 echo "${ECHO_T}yes" >&6
4446 WX_PORT="x11"
4447 else
4448 WX_X11PORT=0
4449 echo "$as_me:$LINENO: result: no" >&5
4450 echo "${ECHO_T}no" >&6
4451 :
4452 fi
4453 else
4454
4455 WX_X11PORT=$X11PORT
4456 fi
4457
4458
4459 if test "$MGLPORT" = "auto" ; then
4460
4461 echo "$as_me:$LINENO: checking if wxWidgets port is wxMGL" >&5
4462 echo $ECHO_N "checking if wxWidgets port is wxMGL... $ECHO_C" >&6
4463
4464 WX_MGLPORT=$(expr "$WX_CPPFLAGS" : ".*__WXMGL__.*")
4465
4466 if test "$WX_MGLPORT" != "0"; then
4467 WX_MGLPORT=1
4468 echo "$as_me:$LINENO: result: yes" >&5
4469 echo "${ECHO_T}yes" >&6
4470 WX_PORT="mgl"
4471 else
4472 WX_MGLPORT=0
4473 echo "$as_me:$LINENO: result: no" >&5
4474 echo "${ECHO_T}no" >&6
4475 :
4476 fi
4477 else
4478
4479 WX_MGLPORT=$MGLPORT
4480 fi
4481
4482
4483 if test "$MSWPORT" = "auto" ; then
4484
4485 echo "$as_me:$LINENO: checking if wxWidgets port is wxMSW" >&5
4486 echo $ECHO_N "checking if wxWidgets port is wxMSW... $ECHO_C" >&6
4487
4488 WX_MSWPORT=$(expr "$WX_CPPFLAGS" : ".*__WXMSW__.*")
4489
4490 if test "$WX_MSWPORT" != "0"; then
4491 WX_MSWPORT=1
4492 echo "$as_me:$LINENO: result: yes" >&5
4493 echo "${ECHO_T}yes" >&6
4494 WX_PORT="msw"
4495 else
4496 WX_MSWPORT=0
4497 echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6
4499 :
4500 fi
4501 else
4502
4503 WX_MSWPORT=$MSWPORT
4504 fi
4505
4506
4507 if test "$WX_PORT" = "gtk"; then
4508 TEMP=auto
4509
4510 if test "$TEMP" = "auto" ; then
4511
4512 echo "$as_me:$LINENO: checking if wxGTK uses GTK 2.x (instead of GTK 1.x)" >&5
4513 echo $ECHO_N "checking if wxGTK uses GTK 2.x (instead of GTK 1.x)... $ECHO_C" >&6
4514
4515 WX_TEMP=$(expr "$WX_CPPFLAGS" : ".*gtk2.*")
4516
4517 if test "$WX_TEMP" != "0"; then
4518 WX_TEMP=1
4519 echo "$as_me:$LINENO: result: yes" >&5
4520 echo "${ECHO_T}yes" >&6
4521 WX_GTKPORT_VERSION=2
4522 else
4523 WX_TEMP=0
4524 echo "$as_me:$LINENO: result: no" >&5
4525 echo "${ECHO_T}no" >&6
4526 WX_GTKPORT_VERSION=1
4527 fi
4528 else
4529
4530 WX_TEMP=$TEMP
4531 fi
4532
4533 fi
4534 fi
4535
4536 if test "$WX_STATIC" != "0"; then
4537 WX_SHARED=0
4538 else
4539 WX_SHARED=1
4540 fi
4541
4542 if test "$DBG_CONFIGURE" = "1"; then
4543 echo "[dbg] WX_SHARED: $WX_SHARED"
4544 echo "[dbg] WX_DEBUG: $WX_DEBUG"
4545 echo "[dbg] WX_UNICODE: $WX_UNICODE"
4546 echo "[dbg] WX_GTKPORT: $WX_GTKPORT, WX_MOTIFPORT: $WX_MOTIFPORT"
4547 echo "[dbg] WX_MACPORT: $WX_MACPORT, WX_X11PORT: $WX_X11PORT"
4548 echo "[dbg] WX_MGLPORT: $WX_MGLPORT, WX_MSWPORT: $WX_MSWPORT"
4549 echo "[dbg] WX_PORT: $WX_PORT"
4550 echo "[dbg] WX_GTKPORT_VERSION: $WX_GTKPORT_VERSION"
4551 fi
4552
4553
4554
4555 if test "$WX_PORT" = "unknown" -a "$PORT" = "auto" ; then
4556 { { echo "$as_me:$LINENO: error:
4557 Cannot detect the currently installed wxWidgets port !
4558 Check your 'wx-config --cxxflags'...
4559 " >&5
4560 echo "$as_me: error:
4561 Cannot detect the currently installed wxWidgets port !
4562 Check your 'wx-config --cxxflags'...
4563 " >&2;}
4564 { (exit 1); exit 1; }; }
4565 fi
4566
4567 checksum="$(expr $WX_GTKPORT + $WX_MOTIFPORT + $WX_MACPORT + \
4568 $WX_X11PORT + $WX_MGLPORT + $WX_MSWPORT)"
4569 if test "$checksum" = "0" ; then
4570 { { echo "$as_me:$LINENO: error:
4571 Cannot detect the currently installed wxWidgets port !
4572 Check your 'wx-config --cxxflags'...
4573 " >&5
4574 echo "$as_me: error:
4575 Cannot detect the currently installed wxWidgets port !
4576 Check your 'wx-config --cxxflags'...
4577 " >&2;}
4578 { (exit 1); exit 1; }; }
4579 fi
4580 if test "$checksum" != "1" ; then
4581 { { echo "$as_me:$LINENO: error:
4582 Your 'wx-config --cxxflags' command seems to define more than one port symbol...
4583 check your wxWidgets installation (the 'wx-config --list' command may help).
4584 " >&5
4585 echo "$as_me: error:
4586 Your 'wx-config --cxxflags' command seems to define more than one port symbol...
4587 check your wxWidgets installation (the 'wx-config --list' command may help).
4588 " >&2;}
4589 { (exit 1); exit 1; }; }
4590 fi
4591
4592
4593
4594
4595 if test "$WX_SHARED" = "0" -a "$SHARED" = "1"; then
4596 { { echo "$as_me:$LINENO: error:
4597 Cannot build in shared mode against a static build of wxWidgets !
4598 This error happens because the wxWidgets build which was selected
4599 has been detected as STATIC while you asked to build $PACKAGE_NAME
4600 in SHARED mode and this is not possible.
4601 Use the '--disable-shared' option to build $PACKAGE_NAME
4602 as STATIC or '--with-wxshared' to use a SHARED wxWidgets build.
4603 " >&5
4604 echo "$as_me: error:
4605 Cannot build in shared mode against a static build of wxWidgets !
4606 This error happens because the wxWidgets build which was selected
4607 has been detected as STATIC while you asked to build $PACKAGE_NAME
4608 in SHARED mode and this is not possible.
4609 Use the '--disable-shared' option to build $PACKAGE_NAME
4610 as STATIC or '--with-wxshared' to use a SHARED wxWidgets build.
4611 " >&2;}
4612 { (exit 1); exit 1; }; }
4613 fi
4614
4615
4616 if test "$DEBUG" = "auto"; then
4617 DEBUG=$WX_DEBUG
4618
4619 if test "$DEBUG" = "1"; then
4620 BUILD="debug"
4621 elif test "$DEBUG" = ""; then
4622 BUILD="release"
4623 fi
4624 fi
4625 if test "$UNICODE" = "auto"; then
4626 UNICODE=$WX_UNICODE
4627 fi
4628 if test "$SHARED" = "auto"; then
4629 SHARED=$WX_SHARED
4630 fi
4631
4632 if test -n "" ; then
4633
4634 if test "$WX_PORT" = "gtk" ; then
4635 if test "$WX_GTKPORT_VERSION" = "1" ; then
4636 _GTKPKG_FL="gtk-config --cflags"
4637 GTKPKG_FLAGS=`$_GTKPKG_FL`
4638 else
4639 _GTKPKG_FL="pkg-config --cflags gtk+-2.0"
4640 GTKPKG_FLAGS=`$_GTKPKG_FL`
4641 fi
4642 fi
4643
4644
4645 CXXFLAGS="$CXXFLAGS $GTKPKG_FLAGS"
4646 CFLAGS="$CFLAGS $GTKPKG_FLAGS"
4647 fi
4648
4649
4650 if [ "$WX_DEBUG" = "1" ]; then
4651
4652 CXXFLAGS="$CXXFLAGS -g3 -O0 -Wall -Wundef -Wno-ctor-dtor-privacy"
4653 CFLAGS="$CFLAGS -g3 -O0 -Wall -Wundef"
4654 else
4655 CXXFLAGS="$CXXFLAGS -g0 -O2"
4656 CFLAGS="$CFLAGS -g0 -O2"
4657 fi
4658
4659
4660
4661
4662
4663 # end in a nice way the configure script
4664
4665
4666
4667
4668
4669
4670 if test "x$BAKEFILE_HOST" = "x"; then
4671 if test "x${host}" = "x" ; then
4672 { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
4673 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
4674 { (exit 1); exit 1; }; }
4675 fi
4676
4677 BAKEFILE_HOST="${host}"
4678 fi
4679
4680 if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
4681
4682 if test -n "$ac_tool_prefix"; then
4683 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4684 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4685 echo "$as_me:$LINENO: checking for $ac_word" >&5
4686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4687 if test "${ac_cv_prog_RANLIB+set}" = set; then
4688 echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690 if test -n "$RANLIB"; then
4691 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4692 else
4693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 for as_dir in $PATH
4695 do
4696 IFS=$as_save_IFS
4697 test -z "$as_dir" && as_dir=.
4698 for ac_exec_ext in '' $ac_executable_extensions; do
4699 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4700 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4702 break 2
4703 fi
4704 done
4705 done
4706
4707 fi
4708 fi
4709 RANLIB=$ac_cv_prog_RANLIB
4710 if test -n "$RANLIB"; then
4711 echo "$as_me:$LINENO: result: $RANLIB" >&5
4712 echo "${ECHO_T}$RANLIB" >&6
4713 else
4714 echo "$as_me:$LINENO: result: no" >&5
4715 echo "${ECHO_T}no" >&6
4716 fi
4717
4718 fi
4719 if test -z "$ac_cv_prog_RANLIB"; then
4720 ac_ct_RANLIB=$RANLIB
4721 # Extract the first word of "ranlib", so it can be a program name with args.
4722 set dummy ranlib; ac_word=$2
4723 echo "$as_me:$LINENO: checking for $ac_word" >&5
4724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4725 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4726 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 else
4728 if test -n "$ac_ct_RANLIB"; then
4729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_ac_ct_RANLIB="ranlib"
4739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4741 fi
4742 done
4743 done
4744
4745 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4746 fi
4747 fi
4748 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4749 if test -n "$ac_ct_RANLIB"; then
4750 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4751 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4752 else
4753 echo "$as_me:$LINENO: result: no" >&5
4754 echo "${ECHO_T}no" >&6
4755 fi
4756
4757 RANLIB=$ac_ct_RANLIB
4758 else
4759 RANLIB="$ac_cv_prog_RANLIB"
4760 fi
4761
4762 # Find a good install program. We prefer a C program (faster),
4763 # so one script is as good as another. But avoid the broken or
4764 # incompatible versions:
4765 # SysV /etc/install, /usr/sbin/install
4766 # SunOS /usr/etc/install
4767 # IRIX /sbin/install
4768 # AIX /bin/install
4769 # AmigaOS /C/install, which installs bootblocks on floppy discs
4770 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4771 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4772 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4773 # OS/2's system install, which has a completely different semantic
4774 # ./install, which can be erroneously created by make from ./install.sh.
4775 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4776 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4777 if test -z "$INSTALL"; then
4778 if test "${ac_cv_path_install+set}" = set; then
4779 echo $ECHO_N "(cached) $ECHO_C" >&6
4780 else
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
4786 # Account for people who put trailing slashes in PATH elements.
4787 case $as_dir/ in
4788 ./ | .// | /cC/* | \
4789 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4790 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4791 /usr/ucb/* ) ;;
4792 *)
4793 # OSF1 and SCO ODT 3.0 have their own names for install.
4794 # Don't use installbsd from OSF since it installs stuff as root
4795 # by default.
4796 for ac_prog in ginstall scoinst install; do
4797 for ac_exec_ext in '' $ac_executable_extensions; do
4798 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4799 if test $ac_prog = install &&
4800 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4801 # AIX install. It has an incompatible calling convention.
4802 :
4803 elif test $ac_prog = install &&
4804 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4805 # program-specific install script used by HP pwplus--don't use.
4806 :
4807 else
4808 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4809 break 3
4810 fi
4811 fi
4812 done
4813 done
4814 ;;
4815 esac
4816 done
4817
4818
4819 fi
4820 if test "${ac_cv_path_install+set}" = set; then
4821 INSTALL=$ac_cv_path_install
4822 else
4823 # As a last resort, use the slow shell script. We don't cache a
4824 # path for INSTALL within a source directory, because that will
4825 # break other packages using the cache if that directory is
4826 # removed, or if the path is relative.
4827 INSTALL=$ac_install_sh
4828 fi
4829 fi
4830 echo "$as_me:$LINENO: result: $INSTALL" >&5
4831 echo "${ECHO_T}$INSTALL" >&6
4832
4833 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4834 # It thinks the first close brace ends the variable substitution.
4835 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4836
4837 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4838
4839 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4840
4841 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4842 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4843 LN_S=$as_ln_s
4844 if test "$LN_S" = "ln -s"; then
4845 echo "$as_me:$LINENO: result: yes" >&5
4846 echo "${ECHO_T}yes" >&6
4847 else
4848 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4849 echo "${ECHO_T}no, using $LN_S" >&6
4850 fi
4851
4852
4853 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4854 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4855 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4856 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 cat >conftest.make <<\_ACEOF
4860 all:
4861 @echo 'ac_maketemp="$(MAKE)"'
4862 _ACEOF
4863 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4864 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4865 if test -n "$ac_maketemp"; then
4866 eval ac_cv_prog_make_${ac_make}_set=yes
4867 else
4868 eval ac_cv_prog_make_${ac_make}_set=no
4869 fi
4870 rm -f conftest.make
4871 fi
4872 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4873 echo "$as_me:$LINENO: result: yes" >&5
4874 echo "${ECHO_T}yes" >&6
4875 SET_MAKE=
4876 else
4877 echo "$as_me:$LINENO: result: no" >&5
4878 echo "${ECHO_T}no" >&6
4879 SET_MAKE="MAKE=${MAKE-make}"
4880 fi
4881
4882
4883
4884 if test -n "$ac_tool_prefix"; then
4885 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4886 set dummy ${ac_tool_prefix}ar; ac_word=$2
4887 echo "$as_me:$LINENO: checking for $ac_word" >&5
4888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4889 if test "${ac_cv_prog_AR+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891 else
4892 if test -n "$AR"; then
4893 ac_cv_prog_AR="$AR" # Let the user override the test.
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4897 do
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_prog_AR="${ac_tool_prefix}ar"
4903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4905 fi
4906 done
4907 done
4908
4909 fi
4910 fi
4911 AR=$ac_cv_prog_AR
4912 if test -n "$AR"; then
4913 echo "$as_me:$LINENO: result: $AR" >&5
4914 echo "${ECHO_T}$AR" >&6
4915 else
4916 echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6
4918 fi
4919
4920 fi
4921 if test -z "$ac_cv_prog_AR"; then
4922 ac_ct_AR=$AR
4923 # Extract the first word of "ar", so it can be a program name with args.
4924 set dummy ar; ac_word=$2
4925 echo "$as_me:$LINENO: checking for $ac_word" >&5
4926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4927 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4928 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 else
4930 if test -n "$ac_ct_AR"; then
4931 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4932 else
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH
4935 do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940 ac_cv_prog_ac_ct_AR="ar"
4941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4943 fi
4944 done
4945 done
4946
4947 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4948 fi
4949 fi
4950 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4951 if test -n "$ac_ct_AR"; then
4952 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4953 echo "${ECHO_T}$ac_ct_AR" >&6
4954 else
4955 echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6
4957 fi
4958
4959 AR=$ac_ct_AR
4960 else
4961 AR="$ac_cv_prog_AR"
4962 fi
4963
4964 if test -n "$ac_tool_prefix"; then
4965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4966 set dummy ${ac_tool_prefix}strip; ac_word=$2
4967 echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4969 if test "${ac_cv_prog_STRIP+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972 if test -n "$STRIP"; then
4973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4985 fi
4986 done
4987 done
4988
4989 fi
4990 fi
4991 STRIP=$ac_cv_prog_STRIP
4992 if test -n "$STRIP"; then
4993 echo "$as_me:$LINENO: result: $STRIP" >&5
4994 echo "${ECHO_T}$STRIP" >&6
4995 else
4996 echo "$as_me:$LINENO: result: no" >&5
4997 echo "${ECHO_T}no" >&6
4998 fi
4999
5000 fi
5001 if test -z "$ac_cv_prog_STRIP"; then
5002 ac_ct_STRIP=$STRIP
5003 # Extract the first word of "strip", so it can be a program name with args.
5004 set dummy strip; ac_word=$2
5005 echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 else
5010 if test -n "$ac_ct_STRIP"; then
5011 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5012 else
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014 for as_dir in $PATH
5015 do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_prog_ac_ct_STRIP="strip"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024 done
5025 done
5026
5027 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5028 fi
5029 fi
5030 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5031 if test -n "$ac_ct_STRIP"; then
5032 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5033 echo "${ECHO_T}$ac_ct_STRIP" >&6
5034 else
5035 echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6
5037 fi
5038
5039 STRIP=$ac_ct_STRIP
5040 else
5041 STRIP="$ac_cv_prog_STRIP"
5042 fi
5043
5044 if test -n "$ac_tool_prefix"; then
5045 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
5046 set dummy ${ac_tool_prefix}nm; ac_word=$2
5047 echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5049 if test "${ac_cv_prog_NM+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5051 else
5052 if test -n "$NM"; then
5053 ac_cv_prog_NM="$NM" # Let the user override the test.
5054 else
5055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5056 for as_dir in $PATH
5057 do
5058 IFS=$as_save_IFS
5059 test -z "$as_dir" && as_dir=.
5060 for ac_exec_ext in '' $ac_executable_extensions; do
5061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5062 ac_cv_prog_NM="${ac_tool_prefix}nm"
5063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5064 break 2
5065 fi
5066 done
5067 done
5068
5069 fi
5070 fi
5071 NM=$ac_cv_prog_NM
5072 if test -n "$NM"; then
5073 echo "$as_me:$LINENO: result: $NM" >&5
5074 echo "${ECHO_T}$NM" >&6
5075 else
5076 echo "$as_me:$LINENO: result: no" >&5
5077 echo "${ECHO_T}no" >&6
5078 fi
5079
5080 fi
5081 if test -z "$ac_cv_prog_NM"; then
5082 ac_ct_NM=$NM
5083 # Extract the first word of "nm", so it can be a program name with args.
5084 set dummy nm; ac_word=$2
5085 echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5087 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089 else
5090 if test -n "$ac_ct_NM"; then
5091 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_ac_ct_NM="nm"
5101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104 done
5105 done
5106
5107 test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":"
5108 fi
5109 fi
5110 ac_ct_NM=$ac_cv_prog_ac_ct_NM
5111 if test -n "$ac_ct_NM"; then
5112 echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
5113 echo "${ECHO_T}$ac_ct_NM" >&6
5114 else
5115 echo "$as_me:$LINENO: result: no" >&5
5116 echo "${ECHO_T}no" >&6
5117 fi
5118
5119 NM=$ac_ct_NM
5120 else
5121 NM="$ac_cv_prog_NM"
5122 fi
5123
5124
5125 case ${BAKEFILE_HOST} in
5126 *-hp-hpux* )
5127 INSTALL_DIR="mkdir -p"
5128 ;;
5129 *) INSTALL_DIR="$INSTALL -d"
5130 ;;
5131 esac
5132
5133
5134 LDFLAGS_GUI=
5135 case ${BAKEFILE_HOST} in
5136 *-*-cygwin* | *-*-mingw32* )
5137 LDFLAGS_GUI="-mwindows"
5138 esac
5139
5140
5141 fi
5142
5143 echo "$as_me:$LINENO: checking if make is GNU make" >&5
5144 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6
5145 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148
5149 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
5150 egrep -s GNU > /dev/null); then
5151 bakefile_cv_prog_makeisgnu="yes"
5152 else
5153 bakefile_cv_prog_makeisgnu="no"
5154 fi
5155
5156 fi
5157 echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
5158 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6
5159
5160 if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
5161 IF_GNU_MAKE=""
5162 else
5163 IF_GNU_MAKE="#"
5164 fi
5165
5166
5167
5168 PLATFORM_UNIX=0
5169 PLATFORM_WIN32=0
5170 PLATFORM_MSDOS=0
5171 PLATFORM_MAC=0
5172 PLATFORM_MACOS=0
5173 PLATFORM_MACOSX=0
5174 PLATFORM_OS2=0
5175 PLATFORM_BEOS=0
5176
5177 if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
5178 case "${BAKEFILE_HOST}" in
5179 *-*-mingw32* )
5180 PLATFORM_WIN32=1
5181 ;;
5182 *-pc-msdosdjgpp )
5183 PLATFORM_MSDOS=1
5184 ;;
5185 *-pc-os2_emx | *-pc-os2-emx )
5186 PLATFORM_OS2=1
5187 ;;
5188 *-*-darwin* )
5189 PLATFORM_MAC=1
5190 PLATFORM_MACOSX=1
5191 ;;
5192 *-*-beos* )
5193 PLATFORM_BEOS=1
5194 ;;
5195 powerpc-apple-macos* )
5196 PLATFORM_MAC=1
5197 PLATFORM_MACOS=1
5198 ;;
5199 * )
5200 PLATFORM_UNIX=1
5201 ;;
5202 esac
5203 else
5204 case "$BAKEFILE_FORCE_PLATFORM" in
5205 win32 )
5206 PLATFORM_WIN32=1
5207 ;;
5208 msdos )
5209 PLATFORM_MSDOS=1
5210 ;;
5211 os2 )
5212 PLATFORM_OS2=1
5213 ;;
5214 darwin )
5215 PLATFORM_MAC=1
5216 PLATFORM_MACOSX=1
5217 ;;
5218 unix )
5219 PLATFORM_UNIX=1
5220 ;;
5221 beos )
5222 PLATFORM_BEOS=1
5223 ;;
5224 * )
5225 { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5
5226 echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;}
5227 { (exit 1); exit 1; }; }
5228 ;;
5229 esac
5230 fi
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242 # Check whether --enable-omf or --disable-omf was given.
5243 if test "${enable_omf+set}" = set; then
5244 enableval="$enable_omf"
5245 bk_os2_use_omf="$enableval"
5246 fi;
5247
5248 case "${BAKEFILE_HOST}" in
5249 *-*-darwin* )
5250 if test "x$GCC" = "xyes"; then
5251 CFLAGS="$CFLAGS -fno-common"
5252 CXXFLAGS="$CXXFLAGS -fno-common"
5253 fi
5254 if test "x$XLCC" = "xyes"; then
5255 CFLAGS="$CFLAGS -qnocommon"
5256 CXXFLAGS="$CXXFLAGS -qnocommon"
5257 fi
5258 ;;
5259
5260 *-pc-os2_emx | *-pc-os2-emx )
5261 if test "x$bk_os2_use_omf" = "xyes" ; then
5262 AR=emxomfar
5263 RANLIB=:
5264 LDFLAGS="-Zomf $LDFLAGS"
5265 CFLAGS="-Zomf $CFLAGS"
5266 CXXFLAGS="-Zomf $CXXFLAGS"
5267 OS2_LIBEXT="lib"
5268 else
5269 OS2_LIBEXT="a"
5270 fi
5271 ;;
5272
5273 i*86-*-beos* )
5274 LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
5275 ;;
5276 esac
5277
5278
5279 SO_SUFFIX="so"
5280 SO_SUFFIX_MODULE="so"
5281 EXEEXT=""
5282 LIBPREFIX="lib"
5283 LIBEXT=".a"
5284 DLLPREFIX="lib"
5285 DLLPREFIX_MODULE=""
5286 DLLIMP_SUFFIX=""
5287 dlldir="$libdir"
5288
5289 case "${BAKEFILE_HOST}" in
5290 *-hp-hpux* )
5291 SO_SUFFIX="sl"
5292 SO_SUFFIX_MODULE="sl"
5293 ;;
5294 *-*-aix* )
5295 SO_SUFFIX="a"
5296 SO_SUFFIX_MODULE="a"
5297 ;;
5298 *-*-cygwin* )
5299 SO_SUFFIX="dll"
5300 SO_SUFFIX_MODULE="dll"
5301 DLLIMP_SUFFIX="dll.a"
5302 EXEEXT=".exe"
5303 DLLPREFIX="cyg"
5304 dlldir="$bindir"
5305 ;;
5306 *-*-mingw32* )
5307 SO_SUFFIX="dll"
5308 SO_SUFFIX_MODULE="dll"
5309 DLLIMP_SUFFIX="dll.a"
5310 EXEEXT=".exe"
5311 DLLPREFIX=""
5312 dlldir="$bindir"
5313 ;;
5314 *-pc-msdosdjgpp )
5315 EXEEXT=".exe"
5316 DLLPREFIX=""
5317 dlldir="$bindir"
5318 ;;
5319 *-pc-os2_emx | *-pc-os2-emx )
5320 SO_SUFFIX="dll"
5321 SO_SUFFIX_MODULE="dll"
5322 DLLIMP_SUFFIX=$OS2_LIBEXT
5323 EXEEXT=".exe"
5324 DLLPREFIX=""
5325 LIBPREFIX=""
5326 LIBEXT=".$OS2_LIBEXT"
5327 dlldir="$bindir"
5328 ;;
5329 *-*-darwin* )
5330 SO_SUFFIX="dylib"
5331 SO_SUFFIX_MODULE="bundle"
5332 ;;
5333 esac
5334
5335 if test "x$DLLIMP_SUFFIX" = "x" ; then
5336 DLLIMP_SUFFIX="$SO_SUFFIX"
5337 fi
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350 PIC_FLAG=""
5351 if test "x$GCC" = "xyes"; then
5352 PIC_FLAG="-fPIC"
5353 fi
5354
5355 SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
5356 SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
5357 WINDOWS_IMPLIB=0
5358
5359 case "${BAKEFILE_HOST}" in
5360 *-hp-hpux* )
5361 if test "x$GCC" != "xyes"; then
5362 LDFLAGS="$LDFLAGS -L/usr/lib"
5363
5364 SHARED_LD_CC="${CC} -b -o"
5365 SHARED_LD_CXX="${CXX} -b -o"
5366 PIC_FLAG="+Z"
5367 fi
5368 ;;
5369
5370 *-*-linux* )
5371 if test "x$GCC" != "xyes"; then
5372 echo "$as_me:$LINENO: checking for Intel compiler" >&5
5373 echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6
5374 if test "${bakefile_cv_prog_icc+set}" = set; then
5375 echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377
5378 cat >conftest.$ac_ext <<_ACEOF
5379 /* confdefs.h. */
5380 _ACEOF
5381 cat confdefs.h >>conftest.$ac_ext
5382 cat >>conftest.$ac_ext <<_ACEOF
5383 /* end confdefs.h. */
5384
5385 int
5386 main ()
5387 {
5388
5389 #ifndef __INTEL_COMPILER
5390 #error Not ICC
5391 #endif
5392
5393 ;
5394 return 0;
5395 }
5396 _ACEOF
5397 rm -f conftest.$ac_objext
5398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5399 (eval $ac_compile) 2>conftest.er1
5400 ac_status=$?
5401 grep -v '^ *+' conftest.er1 >conftest.err
5402 rm -f conftest.er1
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } &&
5406 { ac_try='test -z "$ac_cxx_werror_flag"
5407 || test ! -s conftest.err'
5408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5409 (eval $ac_try) 2>&5
5410 ac_status=$?
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); }; } &&
5413 { ac_try='test -s conftest.$ac_objext'
5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5415 (eval $ac_try) 2>&5
5416 ac_status=$?
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); }; }; then
5419 bakefile_cv_prog_icc=yes
5420 else
5421 echo "$as_me: failed program was:" >&5
5422 sed 's/^/| /' conftest.$ac_ext >&5
5423
5424 bakefile_cv_prog_icc=no
5425
5426 fi
5427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5428
5429 fi
5430 echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5
5431 echo "${ECHO_T}$bakefile_cv_prog_icc" >&6
5432 if test "$bakefile_cv_prog_icc" = "yes"; then
5433 PIC_FLAG="-KPIC"
5434 fi
5435 fi
5436 ;;
5437
5438 *-*-solaris2* )
5439 if test "x$GCC" != xyes ; then
5440 SHARED_LD_CC="${CC} -G -o"
5441 SHARED_LD_CXX="${CXX} -G -o"
5442 PIC_FLAG="-KPIC"
5443 fi
5444 ;;
5445
5446 *-*-darwin* )
5447
5448 D='$'
5449 cat <<EOF >shared-ld-sh
5450 #!/bin/sh
5451 #-----------------------------------------------------------------------------
5452 #-- Name: distrib/mac/shared-ld-sh
5453 #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X
5454 #-- Author: Gilles Depeyrot
5455 #-- Copyright: (c) 2002 Gilles Depeyrot
5456 #-- Licence: any use permitted
5457 #-----------------------------------------------------------------------------
5458
5459 verbose=0
5460 args=""
5461 objects=""
5462 linking_flag="-dynamiclib"
5463 ldargs="-r -keep_private_externs -nostdlib"
5464
5465 while test ${D}# -gt 0; do
5466 case ${D}1 in
5467
5468 -v)
5469 verbose=1
5470 ;;
5471
5472 -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
5473 # collect these options and values
5474 args="${D}{args} ${D}1 ${D}2"
5475 shift
5476 ;;
5477
5478 -s|-Wl,*)
5479 # collect these load args
5480 ldargs="${D}{ldargs} ${D}1"
5481 ;;
5482
5483 -l*|-L*|-flat_namespace|-headerpad_max_install_names)
5484 # collect these options
5485 args="${D}{args} ${D}1"
5486 ;;
5487
5488 -dynamiclib|-bundle)
5489 linking_flag="${D}1"
5490 ;;
5491
5492 -*)
5493 echo "shared-ld: unhandled option '${D}1'"
5494 exit 1
5495 ;;
5496
5497 *.o | *.a | *.dylib)
5498 # collect object files
5499 objects="${D}{objects} ${D}1"
5500 ;;
5501
5502 *)
5503 echo "shared-ld: unhandled argument '${D}1'"
5504 exit 1
5505 ;;
5506
5507 esac
5508 shift
5509 done
5510
5511 status=0
5512
5513 #
5514 # Link one module containing all the others
5515 #
5516 if test ${D}{verbose} = 1; then
5517 echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
5518 fi
5519 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
5520 status=${D}?
5521
5522 #
5523 # Link the shared library from the single module created, but only if the
5524 # previous command didn't fail:
5525 #
5526 if test ${D}{status} = 0; then
5527 if test ${D}{verbose} = 1; then
5528 echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
5529 fi
5530 c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
5531 status=${D}?
5532 fi
5533
5534 #
5535 # Remove intermediate module
5536 #
5537 rm -f master.${D}${D}.o
5538
5539 exit ${D}status
5540 EOF
5541
5542 chmod +x shared-ld-sh
5543
5544 SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
5545 SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
5546
5547
5548 echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
5549 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6
5550 if test "${bakefile_cv_gcc31+set}" = set; then
5551 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 else
5553
5554 cat >conftest.$ac_ext <<_ACEOF
5555 /* confdefs.h. */
5556 _ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560
5561 int
5562 main ()
5563 {
5564
5565 #if (__GNUC__ < 3) || \
5566 ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
5567 #error old gcc
5568 #endif
5569
5570 ;
5571 return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest.$ac_objext
5575 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5576 (eval $ac_compile) 2>conftest.er1
5577 ac_status=$?
5578 grep -v '^ *+' conftest.er1 >conftest.err
5579 rm -f conftest.er1
5580 cat conftest.err >&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } &&
5583 { ac_try='test -z "$ac_cxx_werror_flag"
5584 || test ! -s conftest.err'
5585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5586 (eval $ac_try) 2>&5
5587 ac_status=$?
5588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5589 (exit $ac_status); }; } &&
5590 { ac_try='test -s conftest.$ac_objext'
5591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5592 (eval $ac_try) 2>&5
5593 ac_status=$?
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); }; }; then
5596
5597 bakefile_cv_gcc31=yes
5598
5599 else
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5602
5603
5604 bakefile_cv_gcc31=no
5605
5606
5607 fi
5608 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5609
5610 fi
5611 echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
5612 echo "${ECHO_T}$bakefile_cv_gcc31" >&6
5613 if test "$bakefile_cv_gcc31" = "no"; then
5614 SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
5615 SHARED_LD_CXX="$SHARED_LD_CC"
5616 else
5617 SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
5618 SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
5619 fi
5620
5621 if test "x$GCC" == "xyes"; then
5622 PIC_FLAG="-dynamic -fPIC"
5623 fi
5624 if test "x$XLCC" = "xyes"; then
5625 PIC_FLAG="-dynamic -DPIC"
5626 fi
5627 ;;
5628
5629 *-*-aix* )
5630 if test "x$GCC" = "xyes"; then
5631 PIC_FLAG=""
5632
5633 case "${BAKEFILE_HOST}" in
5634 *-*-aix5* )
5635 LD_EXPFULL="-Wl,-bexpfull"
5636 ;;
5637 esac
5638
5639 SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
5640 SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
5641 else
5642 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
5643 set dummy makeC++SharedLib; ac_word=$2
5644 echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5646 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 else
5649 if test -n "$AIX_CXX_LD"; then
5650 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5659 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663 done
5664 done
5665
5666 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
5667 fi
5668 fi
5669 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
5670 if test -n "$AIX_CXX_LD"; then
5671 echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
5672 echo "${ECHO_T}$AIX_CXX_LD" >&6
5673 else
5674 echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6
5676 fi
5677
5678 SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
5679 SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
5680 fi
5681 ;;
5682
5683 *-*-beos* )
5684 SHARED_LD_CC="${LD} -nostart -o"
5685 SHARED_LD_CXX="${LD} -nostart -o"
5686 ;;
5687
5688 *-*-irix* )
5689 if test "x$GCC" != "xyes"; then
5690 PIC_FLAG="-KPIC"
5691 fi
5692 ;;
5693
5694 *-*-cygwin* | *-*-mingw32* )
5695 PIC_FLAG=""
5696 SHARED_LD_CC="\$(CC) -shared -o"
5697 SHARED_LD_CXX="\$(CXX) -shared -o"
5698 WINDOWS_IMPLIB=1
5699 ;;
5700
5701 *-pc-os2_emx | *-pc-os2-emx )
5702 SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
5703 SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
5704 PIC_FLAG=""
5705
5706 D='$'
5707 cat <<EOF >dllar.sh
5708 #!/bin/sh
5709 #
5710 # dllar - a tool to build both a .dll and an .a file
5711 # from a set of object (.o) files for EMX/OS2.
5712 #
5713 # Written by Andrew Zabolotny, [email protected]
5714 # Ported to Unix like shell by Stefan Neis, [email protected]
5715 #
5716 # This script will accept a set of files on the command line.
5717 # All the public symbols from the .o files will be exported into
5718 # a .DEF file, then linker will be run (through gcc) against them to
5719 # build a shared library consisting of all given .o files. All libraries
5720 # (.a) will be first decompressed into component .o files then act as
5721 # described above. You can optionally give a description (-d "description")
5722 # which will be put into .DLL. To see the list of accepted options (as well
5723 # as command-line format) simply run this program without options. The .DLL
5724 # is built to be imported by name (there is no guarantee that new versions
5725 # of the library you build will have same ordinals for same symbols).
5726 #
5727 # dllar is free software; you can redistribute it and/or modify
5728 # it under the terms of the GNU General Public License as published by
5729 # the Free Software Foundation; either version 2, or (at your option)
5730 # any later version.
5731 #
5732 # dllar is distributed in the hope that it will be useful,
5733 # but WITHOUT ANY WARRANTY; without even the implied warranty of
5734 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5735 # GNU General Public License for more details.
5736 #
5737 # You should have received a copy of the GNU General Public License
5738 # along with dllar; see the file COPYING. If not, write to the Free
5739 # Software Foundation, 59 Temple Place - Suite 330, Boston, MA
5740 # 02111-1307, USA.
5741
5742 # To successfuly run this program you will need:
5743 # - Current drive should have LFN support (HPFS, ext2, network, etc)
5744 # (Sometimes dllar generates filenames which won't fit 8.3 scheme)
5745 # - gcc
5746 # (used to build the .dll)
5747 # - emxexp
5748 # (used to create .def file from .o files)
5749 # - emximp
5750 # (used to create .a file from .def file)
5751 # - GNU text utilites (cat, sort, uniq)
5752 # used to process emxexp output
5753 # - GNU file utilities (mv, rm)
5754 # - GNU sed
5755 # - lxlite (optional, see flag below)
5756 # (used for general .dll cleanup)
5757 #
5758
5759 flag_USE_LXLITE=1;
5760
5761 #
5762 # helper functions
5763 # basnam, variant of basename, which does _not_ remove the path, _iff_
5764 # second argument (suffix to remove) is given
5765 basnam(){
5766 case ${D}# in
5767 1)
5768 echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
5769 ;;
5770 2)
5771 echo ${D}1 | sed 's/'${D}2'${D}//'
5772 ;;
5773 *)
5774 echo "error in basnam ${D}*"
5775 exit 8
5776 ;;
5777 esac
5778 }
5779
5780 # Cleanup temporary files and output
5781 CleanUp() {
5782 cd ${D}curDir
5783 for i in ${D}inputFiles ; do
5784 case ${D}i in
5785 *!)
5786 rm -rf \`basnam ${D}i !\`
5787 ;;
5788 *)
5789 ;;
5790 esac
5791 done
5792
5793 # Kill result in case of failure as there is just to many stupid make/nmake
5794 # things out there which doesn't do this.
5795 if [ ${D}# -eq 0 ]; then
5796 rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
5797 fi
5798 }
5799
5800 # Print usage and exit script with rc=1.
5801 PrintHelp() {
5802 echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
5803 echo ' [-name-mangler-script script.sh]'
5804 echo ' [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
5805 echo ' [-ord[inals]] -ex[clude] "symbol(s)"'
5806 echo ' [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
5807 echo ' [*.o] [*.a]'
5808 echo '*> "output_file" should have no extension.'
5809 echo ' If it has the .o, .a or .dll extension, it is automatically removed.'
5810 echo ' The import library name is derived from this and is set to "name".a,'
5811 echo ' unless overridden by -import'
5812 echo '*> "importlib_name" should have no extension.'
5813 echo ' If it has the .o, or .a extension, it is automatically removed.'
5814 echo ' This name is used as the import library name and may be longer and'
5815 echo ' more descriptive than the DLL name which has to follow the old '
5816 echo ' 8.3 convention of FAT.'
5817 echo '*> "script.sh may be given to override the output_file name by a'
5818 echo ' different name. It is mainly useful if the regular make process'
5819 echo ' of some package does not take into account OS/2 restriction of'
5820 echo ' DLL name lengths. It takes the importlib name as input and is'
5821 echo ' supposed to procude a shorter name as output. The script should'
5822 echo ' expect to get importlib_name without extension and should produce'
5823 echo ' a (max.) 8 letter name without extension.'
5824 echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)'
5825 echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
5826 echo ' These flags will be put at the start of GCC command line.'
5827 echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
5828 echo '*> -ex[clude] defines symbols which will not be exported. You can define'
5829 echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
5830 echo ' If the last character of a symbol is "*", all symbols beginning'
5831 echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).'
5832 echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
5833 echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
5834 echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
5835 echo ' C runtime DLLs.'
5836 echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
5837 echo '*> All other switches (for example -L./ or -lmylib) will be passed'
5838 echo ' unchanged to GCC at the end of command line.'
5839 echo '*> If you create a DLL from a library and you do not specify -o,'
5840 echo ' the basename for DLL and import library will be set to library name,'
5841 echo ' the initial library will be renamed to 'name'_s.a (_s for static)'
5842 echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
5843 echo ' library will be renamed into gcc_s.a.'
5844 echo '--------'
5845 echo 'Example:'
5846 echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
5847 echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
5848 CleanUp
5849 exit 1
5850 }
5851
5852 # Execute a command.
5853 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
5854 # @Uses Whatever CleanUp() uses.
5855 doCommand() {
5856 echo "${D}*"
5857 eval ${D}*
5858 rcCmd=${D}?
5859
5860 if [ ${D}rcCmd -ne 0 ]; then
5861 echo "command failed, exit code="${D}rcCmd
5862 CleanUp
5863 exit ${D}rcCmd
5864 fi
5865 }
5866
5867 # main routine
5868 # setup globals
5869 cmdLine=${D}*
5870 outFile=""
5871 outimpFile=""
5872 inputFiles=""
5873 renameScript=""
5874 description=""
5875 CC=gcc.exe
5876 CFLAGS="-s -Zcrtdll"
5877 EXTRA_CFLAGS=""
5878 EXPORT_BY_ORDINALS=0
5879 exclude_symbols=""
5880 library_flags=""
5881 curDir=\`pwd\`
5882 curDirS=curDir
5883 case ${D}curDirS in
5884 */)
5885 ;;
5886 *)
5887 curDirS=${D}{curDirS}"/"
5888 ;;
5889 esac
5890 # Parse commandline
5891 libsToLink=0
5892 omfLinking=0
5893 while [ ${D}1 ]; do
5894 case ${D}1 in
5895 -ord*)
5896 EXPORT_BY_ORDINALS=1;
5897 ;;
5898 -o*)
5899 shift
5900 outFile=${D}1
5901 ;;
5902 -i*)
5903 shift
5904 outimpFile=${D}1
5905 ;;
5906 -name-mangler-script)
5907 shift
5908 renameScript=${D}1
5909 ;;
5910 -d*)
5911 shift
5912 description=${D}1
5913 ;;
5914 -f*)
5915 shift
5916 CFLAGS=${D}1
5917 ;;
5918 -c*)
5919 shift
5920 CC=${D}1
5921 ;;
5922 -h*)
5923 PrintHelp
5924 ;;
5925 -ex*)
5926 shift
5927 exclude_symbols=${D}{exclude_symbols}${D}1" "
5928 ;;
5929 -libf*)
5930 shift
5931 library_flags=${D}{library_flags}${D}1" "
5932 ;;
5933 -nocrt*)
5934 CFLAGS="-s"
5935 ;;
5936 -nolxl*)
5937 flag_USE_LXLITE=0
5938 ;;
5939 -* | /*)
5940 case ${D}1 in
5941 -L* | -l*)
5942 libsToLink=1
5943 ;;
5944 -Zomf)
5945 omfLinking=1
5946 ;;
5947 *)
5948 ;;
5949 esac
5950 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
5951 ;;
5952 *.dll)
5953 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
5954 if [ ${D}omfLinking -eq 1 ]; then
5955 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
5956 else
5957 EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
5958 fi
5959 ;;
5960 *)
5961 found=0;
5962 if [ ${D}libsToLink -ne 0 ]; then
5963 EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
5964 else
5965 for file in ${D}1 ; do
5966 if [ -f ${D}file ]; then
5967 inputFiles="${D}{inputFiles} ${D}file"
5968 found=1
5969 fi
5970 done
5971 if [ ${D}found -eq 0 ]; then
5972 echo "ERROR: No file(s) found: "${D}1
5973 exit 8
5974 fi
5975 fi
5976 ;;
5977 esac
5978 shift
5979 done # iterate cmdline words
5980
5981 #
5982 if [ -z "${D}inputFiles" ]; then
5983 echo "dllar: no input files"
5984 PrintHelp
5985 fi
5986
5987 # Now extract all .o files from .a files
5988 newInputFiles=""
5989 for file in ${D}inputFiles ; do
5990 case ${D}file in
5991 *.a | *.lib)
5992 case ${D}file in
5993 *.a)
5994 suffix=".a"
5995 AR="ar"
5996 ;;
5997 *.lib)
5998 suffix=".lib"
5999 AR="emxomfar"
6000 EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
6001 ;;
6002 *)
6003 ;;
6004 esac
6005 dirname=\`basnam ${D}file ${D}suffix\`"_%"
6006 mkdir ${D}dirname
6007 if [ ${D}? -ne 0 ]; then
6008 echo "Failed to create subdirectory ./${D}dirname"
6009 CleanUp
6010 exit 8;
6011 fi
6012 # Append '!' to indicate archive
6013 newInputFiles="${D}newInputFiles ${D}{dirname}!"
6014 doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
6015 cd ${D}curDir
6016 found=0;
6017 for subfile in ${D}dirname/*.o* ; do
6018 if [ -f ${D}subfile ]; then
6019 found=1
6020 if [ -s ${D}subfile ]; then
6021 # FIXME: This should be: is file size > 32 byte, _not_ > 0!
6022 newInputFiles="${D}newInputFiles ${D}subfile"
6023 fi
6024 fi
6025 done
6026 if [ ${D}found -eq 0 ]; then
6027 echo "WARNING: there are no files in archive \\'${D}file\\'"
6028 fi
6029 ;;
6030 *)
6031 newInputFiles="${D}{newInputFiles} ${D}file"
6032 ;;
6033 esac
6034 done
6035 inputFiles="${D}newInputFiles"
6036
6037 # Output filename(s).
6038 do_backup=0;
6039 if [ -z ${D}outFile ]; then
6040 do_backup=1;
6041 set outFile ${D}inputFiles; outFile=${D}2
6042 fi
6043
6044 # If it is an archive, remove the '!' and the '_%' suffixes
6045 case ${D}outFile in
6046 *_%!)
6047 outFile=\`basnam ${D}outFile _%!\`
6048 ;;
6049 *)
6050 ;;
6051 esac
6052 case ${D}outFile in
6053 *.dll)
6054 outFile=\`basnam ${D}outFile .dll\`
6055 ;;
6056 *.DLL)
6057 outFile=\`basnam ${D}outFile .DLL\`
6058 ;;
6059 *.o)
6060 outFile=\`basnam ${D}outFile .o\`
6061 ;;
6062 *.obj)
6063 outFile=\`basnam ${D}outFile .obj\`
6064 ;;
6065 *.a)
6066 outFile=\`basnam ${D}outFile .a\`
6067 ;;
6068 *.lib)
6069 outFile=\`basnam ${D}outFile .lib\`
6070 ;;
6071 *)
6072 ;;
6073 esac
6074 case ${D}outimpFile in
6075 *.a)
6076 outimpFile=\`basnam ${D}outimpFile .a\`
6077 ;;
6078 *.lib)
6079 outimpFile=\`basnam ${D}outimpFile .lib\`
6080 ;;
6081 *)
6082 ;;
6083 esac
6084 if [ -z ${D}outimpFile ]; then
6085 outimpFile=${D}outFile
6086 fi
6087 defFile="${D}{outFile}.def"
6088 arcFile="${D}{outimpFile}.a"
6089 arcFile2="${D}{outimpFile}.lib"
6090
6091 #create ${D}dllFile as something matching 8.3 restrictions,
6092 if [ -z ${D}renameScript ] ; then
6093 dllFile="${D}outFile"
6094 else
6095 dllFile=\`${D}renameScript ${D}outimpFile\`
6096 fi
6097
6098 if [ ${D}do_backup -ne 0 ] ; then
6099 if [ -f ${D}arcFile ] ; then
6100 doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
6101 fi
6102 if [ -f ${D}arcFile2 ] ; then
6103 doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
6104 fi
6105 fi
6106
6107 # Extract public symbols from all the object files.
6108 tmpdefFile=${D}{defFile}_%
6109 rm -f ${D}tmpdefFile
6110 for file in ${D}inputFiles ; do
6111 case ${D}file in
6112 *!)
6113 ;;
6114 *)
6115 doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
6116 ;;
6117 esac
6118 done
6119
6120 # Create the def file.
6121 rm -f ${D}defFile
6122 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
6123 dllFile="${D}{dllFile}.dll"
6124 if [ ! -z ${D}description ]; then
6125 echo "DESCRIPTION \\"${D}{description}\\"" >> ${D}defFile
6126 fi
6127 echo "EXPORTS" >> ${D}defFile
6128
6129 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
6130 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
6131
6132 # Checks if the export is ok or not.
6133 for word in ${D}exclude_symbols; do
6134 grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
6135 mv ${D}{tmpdefFile}% ${D}tmpdefFile
6136 done
6137
6138
6139 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
6140 sed "=" < ${D}tmpdefFile | \\
6141 sed '
6142 N
6143 : loop
6144 s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
6145 t loop
6146 ' > ${D}{tmpdefFile}%
6147 grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
6148 else
6149 rm -f ${D}{tmpdefFile}%
6150 fi
6151 cat ${D}tmpdefFile >> ${D}defFile
6152 rm -f ${D}tmpdefFile
6153
6154 # Do linking, create implib, and apply lxlite.
6155 gccCmdl="";
6156 for file in ${D}inputFiles ; do
6157 case ${D}file in
6158 *!)
6159 ;;
6160 *)
6161 gccCmdl="${D}gccCmdl ${D}file"
6162 ;;
6163 esac
6164 done
6165 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
6166 touch "${D}{outFile}.dll"
6167
6168 doCommand "emximp -o ${D}arcFile ${D}defFile"
6169 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
6170 add_flags="";
6171 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
6172 add_flags="-ynd"
6173 fi
6174 doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
6175 fi
6176 doCommand "emxomf -s -l ${D}arcFile"
6177
6178 # Successful exit.
6179 CleanUp 1
6180 exit 0
6181 EOF
6182
6183 chmod +x dllar.sh
6184 ;;
6185
6186 powerpc-apple-macos* | \
6187 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
6188 *-*-sunos4* | \
6189 *-*-osf* | \
6190 *-*-dgux5* | \
6191 *-*-sysv5* | \
6192 *-pc-msdosdjgpp )
6193 ;;
6194
6195 *)
6196 { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
6197 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
6198 { (exit 1); exit 1; }; }
6199 esac
6200
6201 if test "x$PIC_FLAG" != "x" ; then
6202 PIC_FLAG="$PIC_FLAG -DPIC"
6203 fi
6204
6205 if test "x$SHARED_LD_MODULE_CC" = "x" ; then
6206 SHARED_LD_MODULE_CC="$SHARED_LD_CC"
6207 fi
6208 if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
6209 SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
6210 fi
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220 USE_SOVERSION=0
6221 USE_SOVERLINUX=0
6222 USE_SOVERSOLARIS=0
6223 USE_SOVERCYGWIN=0
6224 USE_SOSYMLINKS=0
6225 USE_MACVERSION=0
6226 SONAME_FLAG=
6227
6228 case "${BAKEFILE_HOST}" in
6229 *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
6230 SONAME_FLAG="-Wl,-soname,"
6231 USE_SOVERSION=1
6232 USE_SOVERLINUX=1
6233 USE_SOSYMLINKS=1
6234 ;;
6235
6236 *-*-solaris2* )
6237 SONAME_FLAG="-h "
6238 USE_SOVERSION=1
6239 USE_SOVERSOLARIS=1
6240 USE_SOSYMLINKS=1
6241 ;;
6242
6243 *-*-darwin* )
6244 USE_MACVERSION=1
6245 USE_SOVERSION=1
6246 USE_SOSYMLINKS=1
6247 ;;
6248
6249 *-*-cygwin* )
6250 USE_SOVERSION=1
6251 USE_SOVERCYGWIN=1
6252 ;;
6253 esac
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
6265 if test "${enable_dependency_tracking+set}" = set; then
6266 enableval="$enable_dependency_tracking"
6267 bk_use_trackdeps="$enableval"
6268 fi;
6269
6270 echo "$as_me:$LINENO: checking for dependency tracking method" >&5
6271 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6
6272
6273 if test "x$bk_use_trackdeps" = "xno" ; then
6274 DEPS_TRACKING=0
6275 echo "$as_me:$LINENO: result: disabled" >&5
6276 echo "${ECHO_T}disabled" >&6
6277 else
6278 DEPS_TRACKING=1
6279
6280 if test "x$GCC" = "xyes"; then
6281 DEPSMODE=gcc
6282 case "${BAKEFILE_HOST}" in
6283 *-*-darwin* )
6284 DEPSFLAG="-no-cpp-precomp -MMD"
6285 ;;
6286 * )
6287 DEPSFLAG="-MMD"
6288 ;;
6289 esac
6290 echo "$as_me:$LINENO: result: gcc" >&5
6291 echo "${ECHO_T}gcc" >&6
6292 elif test "x$MWCC" = "xyes"; then
6293 DEPSMODE=mwcc
6294 DEPSFLAG="-MM"
6295 echo "$as_me:$LINENO: result: mwcc" >&5
6296 echo "${ECHO_T}mwcc" >&6
6297 elif test "x$SUNCC" = "xyes"; then
6298 DEPSMODE=unixcc
6299 DEPSFLAG="-xM1"
6300 echo "$as_me:$LINENO: result: Sun cc" >&5
6301 echo "${ECHO_T}Sun cc" >&6
6302 elif test "x$SGICC" = "xyes"; then
6303 DEPSMODE=unixcc
6304 DEPSFLAG="-M"
6305 echo "$as_me:$LINENO: result: SGI cc" >&5
6306 echo "${ECHO_T}SGI cc" >&6
6307 elif test "x$HPCC" = "xyes"; then
6308 DEPSMODE=unixcc
6309 DEPSFLAG="+make"
6310 echo "$as_me:$LINENO: result: HP cc" >&5
6311 echo "${ECHO_T}HP cc" >&6
6312 elif test "x$COMPAQCC" = "xyes"; then
6313 DEPSMODE=gcc
6314 DEPSFLAG="-MD"
6315 echo "$as_me:$LINENO: result: Compaq cc" >&5
6316 echo "${ECHO_T}Compaq cc" >&6
6317 else
6318 DEPS_TRACKING=0
6319 echo "$as_me:$LINENO: result: none" >&5
6320 echo "${ECHO_T}none" >&6
6321 fi
6322
6323 if test $DEPS_TRACKING = 1 ; then
6324
6325 D='$'
6326 cat <<EOF >bk-deps
6327 #!/bin/sh
6328
6329 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
6330 # script. It is used to track C/C++ files dependencies in portable way.
6331 #
6332 # Permission is given to use this file in any way.
6333
6334 DEPSMODE=${DEPSMODE}
6335 DEPSDIR=.deps
6336 DEPSFLAG="${DEPSFLAG}"
6337
6338 mkdir -p ${D}DEPSDIR
6339
6340 if test ${D}DEPSMODE = gcc ; then
6341 ${D}* ${D}{DEPSFLAG}
6342 status=${D}?
6343 if test ${D}{status} != 0 ; then
6344 exit ${D}{status}
6345 fi
6346 # move created file to the location we want it in:
6347 while test ${D}# -gt 0; do
6348 case "${D}1" in
6349 -o )
6350 shift
6351 objfile=${D}1
6352 ;;
6353 -* )
6354 ;;
6355 * )
6356 srcfile=${D}1
6357 ;;
6358 esac
6359 shift
6360 done
6361 depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
6362 depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
6363 if test -f ${D}depfile ; then
6364 sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
6365 rm -f ${D}depfile
6366 else
6367 # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
6368 depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
6369 if test ! -f ${D}depfile ; then
6370 # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
6371 depfile="${D}objfile.d"
6372 fi
6373 if test -f ${D}depfile ; then
6374 sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
6375 rm -f ${D}depfile
6376 fi
6377 fi
6378 exit 0
6379 elif test ${D}DEPSMODE = mwcc ; then
6380 ${D}* || exit ${D}?
6381 # Run mwcc again with -MM and redirect into the dep file we want
6382 # NOTE: We can't use shift here because we need ${D}* to be valid
6383 prevarg=
6384 for arg in ${D}* ; do
6385 if test "${D}prevarg" = "-o"; then
6386 objfile=${D}arg
6387 else
6388 case "${D}arg" in
6389 -* )
6390 ;;
6391 * )
6392 srcfile=${D}arg
6393 ;;
6394 esac
6395 fi
6396 prevarg="${D}arg"
6397 done
6398 ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
6399 exit 0
6400 elif test ${D}DEPSMODE = unixcc; then
6401 ${D}* || exit ${D}?
6402 # Run compiler again with deps flag and redirect into the dep file.
6403 # It doesn't work if the '-o FILE' option is used, but without it the
6404 # dependency file will contain the wrong name for the object. So it is
6405 # removed from the command line, and the dep file is fixed with sed.
6406 cmd=""
6407 while test ${D}# -gt 0; do
6408 case "${D}1" in
6409 -o )
6410 shift
6411 objfile=${D}1
6412 ;;
6413 * )
6414 eval arg${D}#=\\${D}1
6415 cmd="${D}cmd \\${D}arg${D}#"
6416 ;;
6417 esac
6418 shift
6419 done
6420 eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
6421 exit 0
6422 else
6423 ${D}*
6424 exit ${D}?
6425 fi
6426 EOF
6427
6428 chmod +x bk-deps
6429 fi
6430 fi
6431
6432
6433
6434
6435 case ${BAKEFILE_HOST} in
6436 *-*-cygwin* | *-*-mingw32* )
6437 if test -n "$ac_tool_prefix"; then
6438 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}windres; ac_word=$2
6440 echo "$as_me:$LINENO: checking for $ac_word" >&5
6441 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6442 if test "${ac_cv_prog_WINDRES+set}" = set; then
6443 echo $ECHO_N "(cached) $ECHO_C" >&6
6444 else
6445 if test -n "$WINDRES"; then
6446 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459 done
6460 done
6461
6462 fi
6463 fi
6464 WINDRES=$ac_cv_prog_WINDRES
6465 if test -n "$WINDRES"; then
6466 echo "$as_me:$LINENO: result: $WINDRES" >&5
6467 echo "${ECHO_T}$WINDRES" >&6
6468 else
6469 echo "$as_me:$LINENO: result: no" >&5
6470 echo "${ECHO_T}no" >&6
6471 fi
6472
6473 fi
6474 if test -z "$ac_cv_prog_WINDRES"; then
6475 ac_ct_WINDRES=$WINDRES
6476 # Extract the first word of "windres", so it can be a program name with args.
6477 set dummy windres; ac_word=$2
6478 echo "$as_me:$LINENO: checking for $ac_word" >&5
6479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6480 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483 if test -n "$ac_ct_WINDRES"; then
6484 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
6485 else
6486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6487 for as_dir in $PATH
6488 do
6489 IFS=$as_save_IFS
6490 test -z "$as_dir" && as_dir=.
6491 for ac_exec_ext in '' $ac_executable_extensions; do
6492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6493 ac_cv_prog_ac_ct_WINDRES="windres"
6494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495 break 2
6496 fi
6497 done
6498 done
6499
6500 fi
6501 fi
6502 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
6503 if test -n "$ac_ct_WINDRES"; then
6504 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
6505 echo "${ECHO_T}$ac_ct_WINDRES" >&6
6506 else
6507 echo "$as_me:$LINENO: result: no" >&5
6508 echo "${ECHO_T}no" >&6
6509 fi
6510
6511 WINDRES=$ac_ct_WINDRES
6512 else
6513 WINDRES="$ac_cv_prog_WINDRES"
6514 fi
6515
6516 ;;
6517
6518 *-*-darwin* | powerpc-apple-macos* )
6519 # Extract the first word of "Rez", so it can be a program name with args.
6520 set dummy Rez; ac_word=$2
6521 echo "$as_me:$LINENO: checking for $ac_word" >&5
6522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6523 if test "${ac_cv_prog_REZ+set}" = set; then
6524 echo $ECHO_N "(cached) $ECHO_C" >&6
6525 else
6526 if test -n "$REZ"; then
6527 ac_cv_prog_REZ="$REZ" # Let the user override the test.
6528 else
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530 for as_dir in $PATH
6531 do
6532 IFS=$as_save_IFS
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6536 ac_cv_prog_REZ="Rez"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6538 break 2
6539 fi
6540 done
6541 done
6542
6543 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
6544 fi
6545 fi
6546 REZ=$ac_cv_prog_REZ
6547 if test -n "$REZ"; then
6548 echo "$as_me:$LINENO: result: $REZ" >&5
6549 echo "${ECHO_T}$REZ" >&6
6550 else
6551 echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6
6553 fi
6554
6555 # Extract the first word of "SetFile", so it can be a program name with args.
6556 set dummy SetFile; ac_word=$2
6557 echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6559 if test "${ac_cv_prog_SETFILE+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 if test -n "$SETFILE"; then
6563 ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_SETFILE="SetFile"
6573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578
6579 test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
6580 fi
6581 fi
6582 SETFILE=$ac_cv_prog_SETFILE
6583 if test -n "$SETFILE"; then
6584 echo "$as_me:$LINENO: result: $SETFILE" >&5
6585 echo "${ECHO_T}$SETFILE" >&6
6586 else
6587 echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6
6589 fi
6590
6591 ;;
6592 esac
6593
6594
6595
6596
6597
6598
6599 BAKEFILE_BAKEFILE_M4_VERSION="0.2.0"
6600
6601
6602 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.0"
6603
6604 COND_DEPS_TRACKING_0="#"
6605 if test "x$DEPS_TRACKING" = "x0" ; then
6606 COND_DEPS_TRACKING_0=""
6607 fi
6608
6609 COND_DEPS_TRACKING_1="#"
6610 if test "x$DEPS_TRACKING" = "x1" ; then
6611 COND_DEPS_TRACKING_1=""
6612 fi
6613
6614 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
6615 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
6616 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
6617 fi
6618
6619 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
6620 if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
6621 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
6622 fi
6623
6624 COND_PLATFORM_MACOSX_1="#"
6625 if test "x$PLATFORM_MACOSX" = "x1" ; then
6626 COND_PLATFORM_MACOSX_1=""
6627 fi
6628
6629 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
6630 if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
6631 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
6632 fi
6633
6634 COND_PLATFORM_MAC_1="#"
6635 if test "x$PLATFORM_MAC" = "x1" ; then
6636 COND_PLATFORM_MAC_1=""
6637 fi
6638
6639 COND_PLATFORM_OS2_1="#"
6640 if test "x$PLATFORM_OS2" = "x1" ; then
6641 COND_PLATFORM_OS2_1=""
6642 fi
6643
6644 COND_USE_SOSYMLINKS_1="#"
6645 if test "x$USE_SOSYMLINKS" = "x1" ; then
6646 COND_USE_SOSYMLINKS_1=""
6647 fi
6648
6649 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
6650 if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
6651 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
6652 fi
6653
6654 COND_USE_SOVERLINUX_1="#"
6655 if test "x$USE_SOVERLINUX" = "x1" ; then
6656 COND_USE_SOVERLINUX_1=""
6657 fi
6658
6659 COND_USE_SOVERSION_0="#"
6660 if test "x$USE_SOVERSION" = "x0" ; then
6661 COND_USE_SOVERSION_0=""
6662 fi
6663
6664 COND_USE_SOVERSOLARIS_1="#"
6665 if test "x$USE_SOVERSOLARIS" = "x1" ; then
6666 COND_USE_SOVERSOLARIS_1=""
6667 fi
6668
6669 COND_WINDOWS_IMPLIB_1="#"
6670 if test "x$WINDOWS_IMPLIB" = "x1" ; then
6671 COND_WINDOWS_IMPLIB_1=""
6672 fi
6673
6674 COND_WX_DEBUG_0="#"
6675 if test "x$WX_DEBUG" = "x0" ; then
6676 COND_WX_DEBUG_0=""
6677 fi
6678
6679 COND_WX_DEBUG_1="#"
6680 if test "x$WX_DEBUG" = "x1" ; then
6681 COND_WX_DEBUG_1=""
6682 fi
6683
6684 COND_WX_SHARED_0="#"
6685 if test "x$WX_SHARED" = "x0" ; then
6686 COND_WX_SHARED_0=""
6687 fi
6688
6689 COND_WX_SHARED_1="#"
6690 if test "x$WX_SHARED" = "x1" ; then
6691 COND_WX_SHARED_1=""
6692 fi
6693
6694
6695
6696 if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
6697 { { echo "$as_me:$LINENO: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&5
6698 echo "$as_me: error: No version found in autoconf_inc.m4 - bakefile macro was changed to take additional argument, perhaps configure.in wasn't updated (see the documentation)?" >&2;}
6699 { (exit 1); exit 1; }; }
6700 fi
6701
6702 if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
6703 { { echo "$as_me:$LINENO: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&5
6704 echo "$as_me: error: Versions of Bakefile used to generate makefiles ($BAKEFILE_AUTOCONF_INC_M4_VERSION) and configure ($BAKEFILE_BAKEFILE_M4_VERSION) do not match." >&2;}
6705 { (exit 1); exit 1; }; }
6706 fi
6707
6708 ac_config_files="$ac_config_files Makefile"
6709
6710 cat >confcache <<\_ACEOF
6711 # This file is a shell script that caches the results of configure
6712 # tests run on this system so they can be shared between configure
6713 # scripts and configure runs, see configure's option --config-cache.
6714 # It is not useful on other systems. If it contains results you don't
6715 # want to keep, you may remove or edit it.
6716 #
6717 # config.status only pays attention to the cache file if you give it
6718 # the --recheck option to rerun configure.
6719 #
6720 # `ac_cv_env_foo' variables (set or unset) will be overridden when
6721 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6722 # following values.
6723
6724 _ACEOF
6725
6726 # The following way of writing the cache mishandles newlines in values,
6727 # but we know of no workaround that is simple, portable, and efficient.
6728 # So, don't put newlines in cache variables' values.
6729 # Ultrix sh set writes to stderr and can't be redirected directly,
6730 # and sets the high bit in the cache file unless we assign to the vars.
6731 {
6732 (set) 2>&1 |
6733 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6734 *ac_space=\ *)
6735 # `set' does not quote correctly, so add quotes (double-quote
6736 # substitution turns \\\\ into \\, and sed turns \\ into \).
6737 sed -n \
6738 "s/'/'\\\\''/g;
6739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6740 ;;
6741 *)
6742 # `set' quotes correctly as required by POSIX, so do not add quotes.
6743 sed -n \
6744 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6745 ;;
6746 esac;
6747 } |
6748 sed '
6749 t clear
6750 : clear
6751 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6752 t end
6753 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6754 : end' >>confcache
6755 if diff $cache_file confcache >/dev/null 2>&1; then :; else
6756 if test -w $cache_file; then
6757 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6758 cat confcache >$cache_file
6759 else
6760 echo "not updating unwritable cache $cache_file"
6761 fi
6762 fi
6763 rm -f confcache
6764
6765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6766 # Let make expand exec_prefix.
6767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6768
6769 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6770 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6771 # trailing colons and then remove the whole line if VPATH becomes empty
6772 # (actually we leave an empty line to preserve line numbers).
6773 if test "x$srcdir" = x.; then
6774 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6775 s/:*\$(srcdir):*/:/;
6776 s/:*\${srcdir}:*/:/;
6777 s/:*@srcdir@:*/:/;
6778 s/^\([^=]*=[ ]*\):*/\1/;
6779 s/:*$//;
6780 s/^[^=]*=[ ]*$//;
6781 }'
6782 fi
6783
6784 # Transform confdefs.h into DEFS.
6785 # Protect against shell expansion while executing Makefile rules.
6786 # Protect against Makefile macro expansion.
6787 #
6788 # If the first sed substitution is executed (which looks for macros that
6789 # take arguments), then we branch to the quote section. Otherwise,
6790 # look for a macro that doesn't take arguments.
6791 cat >confdef2opt.sed <<\_ACEOF
6792 t clear
6793 : clear
6794 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6795 t quote
6796 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6797 t quote
6798 d
6799 : quote
6800 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6801 s,\[,\\&,g
6802 s,\],\\&,g
6803 s,\$,$$,g
6804 p
6805 _ACEOF
6806 # We use echo to avoid assuming a particular line-breaking character.
6807 # The extra dot is to prevent the shell from consuming trailing
6808 # line-breaks from the sub-command output. A line-break within
6809 # single-quotes doesn't work because, if this script is created in a
6810 # platform that uses two characters for line-breaks (e.g., DOS), tr
6811 # would break.
6812 ac_LF_and_DOT=`echo; echo .`
6813 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6814 rm -f confdef2opt.sed
6815
6816
6817 ac_libobjs=
6818 ac_ltlibobjs=
6819 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6820 # 1. Remove the extension, and $U if already installed.
6821 ac_i=`echo "$ac_i" |
6822 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
6823 # 2. Add them.
6824 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
6825 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
6826 done
6827 LIBOBJS=$ac_libobjs
6828
6829 LTLIBOBJS=$ac_ltlibobjs
6830
6831
6832
6833 : ${CONFIG_STATUS=./config.status}
6834 ac_clean_files_save=$ac_clean_files
6835 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6836 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6837 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6838 cat >$CONFIG_STATUS <<_ACEOF
6839 #! $SHELL
6840 # Generated by $as_me.
6841 # Run this file to recreate the current configuration.
6842 # Compiler output produced by configure, useful for debugging
6843 # configure, is in config.log if it exists.
6844
6845 debug=false
6846 ac_cs_recheck=false
6847 ac_cs_silent=false
6848 SHELL=\${CONFIG_SHELL-$SHELL}
6849 _ACEOF
6850
6851 cat >>$CONFIG_STATUS <<\_ACEOF
6852 ## --------------------- ##
6853 ## M4sh Initialization. ##
6854 ## --------------------- ##
6855
6856 # Be Bourne compatible
6857 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6858 emulate sh
6859 NULLCMD=:
6860 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
6861 # is contrary to our usage. Disable this feature.
6862 alias -g '${1+"$@"}'='"$@"'
6863 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6864 set -o posix
6865 fi
6866 DUALCASE=1; export DUALCASE # for MKS sh
6867
6868 # Support unset when possible.
6869 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6870 as_unset=unset
6871 else
6872 as_unset=false
6873 fi
6874
6875
6876 # Work around bugs in pre-3.0 UWIN ksh.
6877 $as_unset ENV MAIL MAILPATH
6878 PS1='$ '
6879 PS2='> '
6880 PS4='+ '
6881
6882 # NLS nuisances.
6883 for as_var in \
6884 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
6885 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
6886 LC_TELEPHONE LC_TIME
6887 do
6888 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
6889 eval $as_var=C; export $as_var
6890 else
6891 $as_unset $as_var
6892 fi
6893 done
6894
6895 # Required to use basename.
6896 if expr a : '\(a\)' >/dev/null 2>&1; then
6897 as_expr=expr
6898 else
6899 as_expr=false
6900 fi
6901
6902 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
6903 as_basename=basename
6904 else
6905 as_basename=false
6906 fi
6907
6908
6909 # Name of the executable.
6910 as_me=`$as_basename "$0" ||
6911 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6912 X"$0" : 'X\(//\)$' \| \
6913 X"$0" : 'X\(/\)$' \| \
6914 . : '\(.\)' 2>/dev/null ||
6915 echo X/"$0" |
6916 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6917 /^X\/\(\/\/\)$/{ s//\1/; q; }
6918 /^X\/\(\/\).*/{ s//\1/; q; }
6919 s/.*/./; q'`
6920
6921
6922 # PATH needs CR, and LINENO needs CR and PATH.
6923 # Avoid depending upon Character Ranges.
6924 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6925 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6926 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6927 as_cr_digits='0123456789'
6928 as_cr_alnum=$as_cr_Letters$as_cr_digits
6929
6930 # The user is always right.
6931 if test "${PATH_SEPARATOR+set}" != set; then
6932 echo "#! /bin/sh" >conf$$.sh
6933 echo "exit 0" >>conf$$.sh
6934 chmod +x conf$$.sh
6935 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6936 PATH_SEPARATOR=';'
6937 else
6938 PATH_SEPARATOR=:
6939 fi
6940 rm -f conf$$.sh
6941 fi
6942
6943
6944 as_lineno_1=$LINENO
6945 as_lineno_2=$LINENO
6946 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6947 test "x$as_lineno_1" != "x$as_lineno_2" &&
6948 test "x$as_lineno_3" = "x$as_lineno_2" || {
6949 # Find who we are. Look in the path if we contain no path at all
6950 # relative or not.
6951 case $0 in
6952 *[\\/]* ) as_myself=$0 ;;
6953 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956 IFS=$as_save_IFS
6957 test -z "$as_dir" && as_dir=.
6958 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6959 done
6960
6961 ;;
6962 esac
6963 # We did not find ourselves, most probably we were run as `sh COMMAND'
6964 # in which case we are not to be found in the path.
6965 if test "x$as_myself" = x; then
6966 as_myself=$0
6967 fi
6968 if test ! -f "$as_myself"; then
6969 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6970 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6971 { (exit 1); exit 1; }; }
6972 fi
6973 case $CONFIG_SHELL in
6974 '')
6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6976 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6977 do
6978 IFS=$as_save_IFS
6979 test -z "$as_dir" && as_dir=.
6980 for as_base in sh bash ksh sh5; do
6981 case $as_dir in
6982 /*)
6983 if ("$as_dir/$as_base" -c '
6984 as_lineno_1=$LINENO
6985 as_lineno_2=$LINENO
6986 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6987 test "x$as_lineno_1" != "x$as_lineno_2" &&
6988 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6989 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
6990 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
6991 CONFIG_SHELL=$as_dir/$as_base
6992 export CONFIG_SHELL
6993 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6994 fi;;
6995 esac
6996 done
6997 done
6998 ;;
6999 esac
7000
7001 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
7002 # uniformly replaced by the line number. The first 'sed' inserts a
7003 # line-number line before each line; the second 'sed' does the real
7004 # work. The second script uses 'N' to pair each line-number line
7005 # with the numbered line, and appends trailing '-' during
7006 # substitution so that $LINENO is not a special case at line end.
7007 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
7008 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
7009 sed '=' <$as_myself |
7010 sed '
7011 N
7012 s,$,-,
7013 : loop
7014 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
7015 t loop
7016 s,-$,,
7017 s,^['$as_cr_digits']*\n,,
7018 ' >$as_me.lineno &&
7019 chmod +x $as_me.lineno ||
7020 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
7021 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
7022 { (exit 1); exit 1; }; }
7023
7024 # Don't try to exec as it changes $[0], causing all sort of problems
7025 # (the dirname of $[0] is not the place where we might find the
7026 # original and so on. Autoconf is especially sensible to this).
7027 . ./$as_me.lineno
7028 # Exit status is that of the last command.
7029 exit
7030 }
7031
7032
7033 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
7034 *c*,-n*) ECHO_N= ECHO_C='
7035 ' ECHO_T=' ' ;;
7036 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
7037 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
7038 esac
7039
7040 if expr a : '\(a\)' >/dev/null 2>&1; then
7041 as_expr=expr
7042 else
7043 as_expr=false
7044 fi
7045
7046 rm -f conf$$ conf$$.exe conf$$.file
7047 echo >conf$$.file
7048 if ln -s conf$$.file conf$$ 2>/dev/null; then
7049 # We could just check for DJGPP; but this test a) works b) is more generic
7050 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
7051 if test -f conf$$.exe; then
7052 # Don't use ln at all; we don't have any links
7053 as_ln_s='cp -p'
7054 else
7055 as_ln_s='ln -s'
7056 fi
7057 elif ln conf$$.file conf$$ 2>/dev/null; then
7058 as_ln_s=ln
7059 else
7060 as_ln_s='cp -p'
7061 fi
7062 rm -f conf$$ conf$$.exe conf$$.file
7063
7064 if mkdir -p . 2>/dev/null; then
7065 as_mkdir_p=:
7066 else
7067 test -d ./-p && rmdir ./-p
7068 as_mkdir_p=false
7069 fi
7070
7071 as_executable_p="test -f"
7072
7073 # Sed expression to map a string onto a valid CPP name.
7074 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7075
7076 # Sed expression to map a string onto a valid variable name.
7077 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7078
7079
7080 # IFS
7081 # We need space, tab and new line, in precisely that order.
7082 as_nl='
7083 '
7084 IFS=" $as_nl"
7085
7086 # CDPATH.
7087 $as_unset CDPATH
7088
7089 exec 6>&1
7090
7091 # Open the log real soon, to keep \$[0] and so on meaningful, and to
7092 # report actual input values of CONFIG_FILES etc. instead of their
7093 # values after options handling. Logging --version etc. is OK.
7094 exec 5>>config.log
7095 {
7096 echo
7097 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7098 ## Running $as_me. ##
7099 _ASBOX
7100 } >&5
7101 cat >&5 <<_CSEOF
7102
7103 This file was extended by wxchart $as_me 1.0, which was
7104 generated by GNU Autoconf 2.59. Invocation command line was
7105
7106 CONFIG_FILES = $CONFIG_FILES
7107 CONFIG_HEADERS = $CONFIG_HEADERS
7108 CONFIG_LINKS = $CONFIG_LINKS
7109 CONFIG_COMMANDS = $CONFIG_COMMANDS
7110 $ $0 $@
7111
7112 _CSEOF
7113 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
7114 echo >&5
7115 _ACEOF
7116
7117 # Files that config.status was made for.
7118 if test -n "$ac_config_files"; then
7119 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
7120 fi
7121
7122 if test -n "$ac_config_headers"; then
7123 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
7124 fi
7125
7126 if test -n "$ac_config_links"; then
7127 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
7128 fi
7129
7130 if test -n "$ac_config_commands"; then
7131 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
7132 fi
7133
7134 cat >>$CONFIG_STATUS <<\_ACEOF
7135
7136 ac_cs_usage="\
7137 \`$as_me' instantiates files from templates according to the
7138 current configuration.
7139
7140 Usage: $0 [OPTIONS] [FILE]...
7141
7142 -h, --help print this help, then exit
7143 -V, --version print version number, then exit
7144 -q, --quiet do not print progress messages
7145 -d, --debug don't remove temporary files
7146 --recheck update $as_me by reconfiguring in the same conditions
7147 --file=FILE[:TEMPLATE]
7148 instantiate the configuration file FILE
7149
7150 Configuration files:
7151 $config_files
7152
7153 Report bugs to <[email protected]>."
7154 _ACEOF
7155
7156 cat >>$CONFIG_STATUS <<_ACEOF
7157 ac_cs_version="\\
7158 wxchart config.status 1.0
7159 configured by $0, generated by GNU Autoconf 2.59,
7160 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
7161
7162 Copyright (C) 2003 Free Software Foundation, Inc.
7163 This config.status script is free software; the Free Software Foundation
7164 gives unlimited permission to copy, distribute and modify it."
7165 srcdir=$srcdir
7166 INSTALL="$INSTALL"
7167 _ACEOF
7168
7169 cat >>$CONFIG_STATUS <<\_ACEOF
7170 # If no file are specified by the user, then we need to provide default
7171 # value. By we need to know if files were specified by the user.
7172 ac_need_defaults=:
7173 while test $# != 0
7174 do
7175 case $1 in
7176 --*=*)
7177 ac_option=`expr "x$1" : 'x\([^=]*\)='`
7178 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
7179 ac_shift=:
7180 ;;
7181 -*)
7182 ac_option=$1
7183 ac_optarg=$2
7184 ac_shift=shift
7185 ;;
7186 *) # This is not an option, so the user has probably given explicit
7187 # arguments.
7188 ac_option=$1
7189 ac_need_defaults=false;;
7190 esac
7191
7192 case $ac_option in
7193 # Handling of the options.
7194 _ACEOF
7195 cat >>$CONFIG_STATUS <<\_ACEOF
7196 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7197 ac_cs_recheck=: ;;
7198 --version | --vers* | -V )
7199 echo "$ac_cs_version"; exit 0 ;;
7200 --he | --h)
7201 # Conflict between --help and --header
7202 { { echo "$as_me:$LINENO: error: ambiguous option: $1
7203 Try \`$0 --help' for more information." >&5
7204 echo "$as_me: error: ambiguous option: $1
7205 Try \`$0 --help' for more information." >&2;}
7206 { (exit 1); exit 1; }; };;
7207 --help | --hel | -h )
7208 echo "$ac_cs_usage"; exit 0 ;;
7209 --debug | --d* | -d )
7210 debug=: ;;
7211 --file | --fil | --fi | --f )
7212 $ac_shift
7213 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
7214 ac_need_defaults=false;;
7215 --header | --heade | --head | --hea )
7216 $ac_shift
7217 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
7218 ac_need_defaults=false;;
7219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7221 ac_cs_silent=: ;;
7222
7223 # This is an error.
7224 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
7225 Try \`$0 --help' for more information." >&5
7226 echo "$as_me: error: unrecognized option: $1
7227 Try \`$0 --help' for more information." >&2;}
7228 { (exit 1); exit 1; }; } ;;
7229
7230 *) ac_config_targets="$ac_config_targets $1" ;;
7231
7232 esac
7233 shift
7234 done
7235
7236 ac_configure_extra_args=
7237
7238 if $ac_cs_silent; then
7239 exec 6>/dev/null
7240 ac_configure_extra_args="$ac_configure_extra_args --silent"
7241 fi
7242
7243 _ACEOF
7244 cat >>$CONFIG_STATUS <<_ACEOF
7245 if \$ac_cs_recheck; then
7246 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
7247 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7248 fi
7249
7250 _ACEOF
7251
7252
7253
7254
7255
7256 cat >>$CONFIG_STATUS <<\_ACEOF
7257 for ac_config_target in $ac_config_targets
7258 do
7259 case "$ac_config_target" in
7260 # Handling of arguments.
7261 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7262 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
7263 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
7264 { (exit 1); exit 1; }; };;
7265 esac
7266 done
7267
7268 # If the user did not use the arguments to specify the items to instantiate,
7269 # then the envvar interface is used. Set only those that are not.
7270 # We use the long form for the default assignment because of an extremely
7271 # bizarre bug on SunOS 4.1.3.
7272 if $ac_need_defaults; then
7273 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7274 fi
7275
7276 # Have a temporary directory for convenience. Make it in the build tree
7277 # simply because there is no reason to put it here, and in addition,
7278 # creating and moving files from /tmp can sometimes cause problems.
7279 # Create a temporary directory, and hook for its removal unless debugging.
7280 $debug ||
7281 {
7282 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
7283 trap '{ (exit 1); exit 1; }' 1 2 13 15
7284 }
7285
7286 # Create a (secure) tmp directory for tmp files.
7287
7288 {
7289 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
7290 test -n "$tmp" && test -d "$tmp"
7291 } ||
7292 {
7293 tmp=./confstat$$-$RANDOM
7294 (umask 077 && mkdir $tmp)
7295 } ||
7296 {
7297 echo "$me: cannot create a temporary directory in ." >&2
7298 { (exit 1); exit 1; }
7299 }
7300
7301 _ACEOF
7302
7303 cat >>$CONFIG_STATUS <<_ACEOF
7304
7305 #
7306 # CONFIG_FILES section.
7307 #
7308
7309 # No need to generate the scripts if there are no CONFIG_FILES.
7310 # This happens for instance when ./config.status config.h
7311 if test -n "\$CONFIG_FILES"; then
7312 # Protect against being on the right side of a sed subst in config.status.
7313 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
7314 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
7315 s,@SHELL@,$SHELL,;t t
7316 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
7317 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
7318 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
7319 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
7320 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
7321 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
7322 s,@exec_prefix@,$exec_prefix,;t t
7323 s,@prefix@,$prefix,;t t
7324 s,@program_transform_name@,$program_transform_name,;t t
7325 s,@bindir@,$bindir,;t t
7326 s,@sbindir@,$sbindir,;t t
7327 s,@libexecdir@,$libexecdir,;t t
7328 s,@datadir@,$datadir,;t t
7329 s,@sysconfdir@,$sysconfdir,;t t
7330 s,@sharedstatedir@,$sharedstatedir,;t t
7331 s,@localstatedir@,$localstatedir,;t t
7332 s,@libdir@,$libdir,;t t
7333 s,@includedir@,$includedir,;t t
7334 s,@oldincludedir@,$oldincludedir,;t t
7335 s,@infodir@,$infodir,;t t
7336 s,@mandir@,$mandir,;t t
7337 s,@build_alias@,$build_alias,;t t
7338 s,@host_alias@,$host_alias,;t t
7339 s,@target_alias@,$target_alias,;t t
7340 s,@DEFS@,$DEFS,;t t
7341 s,@ECHO_C@,$ECHO_C,;t t
7342 s,@ECHO_N@,$ECHO_N,;t t
7343 s,@ECHO_T@,$ECHO_T,;t t
7344 s,@LIBS@,$LIBS,;t t
7345 s,@build@,$build,;t t
7346 s,@build_cpu@,$build_cpu,;t t
7347 s,@build_vendor@,$build_vendor,;t t
7348 s,@build_os@,$build_os,;t t
7349 s,@host@,$host,;t t
7350 s,@host_cpu@,$host_cpu,;t t
7351 s,@host_vendor@,$host_vendor,;t t
7352 s,@host_os@,$host_os,;t t
7353 s,@target@,$target,;t t
7354 s,@target_cpu@,$target_cpu,;t t
7355 s,@target_vendor@,$target_vendor,;t t
7356 s,@target_os@,$target_os,;t t
7357 s,@AWK@,$AWK,;t t
7358 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
7359 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
7360 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
7361 s,@LN_S@,$LN_S,;t t
7362 s,@RANLIB@,$RANLIB,;t t
7363 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
7364 s,@CC@,$CC,;t t
7365 s,@CFLAGS@,$CFLAGS,;t t
7366 s,@LDFLAGS@,$LDFLAGS,;t t
7367 s,@CPPFLAGS@,$CPPFLAGS,;t t
7368 s,@ac_ct_CC@,$ac_ct_CC,;t t
7369 s,@EXEEXT@,$EXEEXT,;t t
7370 s,@OBJEXT@,$OBJEXT,;t t
7371 s,@CXX@,$CXX,;t t
7372 s,@CXXFLAGS@,$CXXFLAGS,;t t
7373 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
7374 s,@CXXCPP@,$CXXCPP,;t t
7375 s,@WX_CONFIG_PATH@,$WX_CONFIG_PATH,;t t
7376 s,@WX_CPPFLAGS@,$WX_CPPFLAGS,;t t
7377 s,@WX_CFLAGS@,$WX_CFLAGS,;t t
7378 s,@WX_CXXFLAGS@,$WX_CXXFLAGS,;t t
7379 s,@WX_CFLAGS_ONLY@,$WX_CFLAGS_ONLY,;t t
7380 s,@WX_CXXFLAGS_ONLY@,$WX_CXXFLAGS_ONLY,;t t
7381 s,@WX_LIBS@,$WX_LIBS,;t t
7382 s,@WX_LIBS_STATIC@,$WX_LIBS_STATIC,;t t
7383 s,@WX_VERSION@,$WX_VERSION,;t t
7384 s,@WX_VERSION_FULL@,$WX_VERSION_FULL,;t t
7385 s,@WX_VERSION_MAJOR@,$WX_VERSION_MAJOR,;t t
7386 s,@WX_VERSION_MINOR@,$WX_VERSION_MINOR,;t t
7387 s,@WX_PORT@,$WX_PORT,;t t
7388 s,@WX_GTKPORT_VERSION@,$WX_GTKPORT_VERSION,;t t
7389 s,@SET_MAKE@,$SET_MAKE,;t t
7390 s,@MAKE_SET@,$MAKE_SET,;t t
7391 s,@AR@,$AR,;t t
7392 s,@ac_ct_AR@,$ac_ct_AR,;t t
7393 s,@STRIP@,$STRIP,;t t
7394 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
7395 s,@NM@,$NM,;t t
7396 s,@ac_ct_NM@,$ac_ct_NM,;t t
7397 s,@INSTALL_DIR@,$INSTALL_DIR,;t t
7398 s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t
7399 s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t
7400 s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t
7401 s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t
7402 s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t
7403 s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t
7404 s,@PLATFORM_MACOS@,$PLATFORM_MACOS,;t t
7405 s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t
7406 s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t
7407 s,@PLATFORM_BEOS@,$PLATFORM_BEOS,;t t
7408 s,@SO_SUFFIX@,$SO_SUFFIX,;t t
7409 s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t
7410 s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t
7411 s,@LIBPREFIX@,$LIBPREFIX,;t t
7412 s,@LIBEXT@,$LIBEXT,;t t
7413 s,@DLLPREFIX@,$DLLPREFIX,;t t
7414 s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t
7415 s,@dlldir@,$dlldir,;t t
7416 s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t
7417 s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t
7418 s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t
7419 s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t
7420 s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t
7421 s,@PIC_FLAG@,$PIC_FLAG,;t t
7422 s,@WINDOWS_IMPLIB@,$WINDOWS_IMPLIB,;t t
7423 s,@USE_SOVERSION@,$USE_SOVERSION,;t t
7424 s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t
7425 s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t
7426 s,@USE_SOVERCYGWIN@,$USE_SOVERCYGWIN,;t t
7427 s,@USE_MACVERSION@,$USE_MACVERSION,;t t
7428 s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t
7429 s,@SONAME_FLAG@,$SONAME_FLAG,;t t
7430 s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t
7431 s,@WINDRES@,$WINDRES,;t t
7432 s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
7433 s,@REZ@,$REZ,;t t
7434 s,@SETFILE@,$SETFILE,;t t
7435 s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t
7436 s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t
7437 s,@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1,;t t
7438 s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t
7439 s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t
7440 s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t
7441 s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t
7442 s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t
7443 s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t
7444 s,@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@,$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1,;t t
7445 s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t
7446 s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t
7447 s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t
7448 s,@COND_WINDOWS_IMPLIB_1@,$COND_WINDOWS_IMPLIB_1,;t t
7449 s,@COND_WX_DEBUG_0@,$COND_WX_DEBUG_0,;t t
7450 s,@COND_WX_DEBUG_1@,$COND_WX_DEBUG_1,;t t
7451 s,@COND_WX_SHARED_0@,$COND_WX_SHARED_0,;t t
7452 s,@COND_WX_SHARED_1@,$COND_WX_SHARED_1,;t t
7453 s,@LIBOBJS@,$LIBOBJS,;t t
7454 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
7455 CEOF
7456
7457 _ACEOF
7458
7459 cat >>$CONFIG_STATUS <<\_ACEOF
7460 # Split the substitutions into bite-sized pieces for seds with
7461 # small command number limits, like on Digital OSF/1 and HP-UX.
7462 ac_max_sed_lines=48
7463 ac_sed_frag=1 # Number of current file.
7464 ac_beg=1 # First line for current file.
7465 ac_end=$ac_max_sed_lines # Line after last line for current file.
7466 ac_more_lines=:
7467 ac_sed_cmds=
7468 while $ac_more_lines; do
7469 if test $ac_beg -gt 1; then
7470 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7471 else
7472 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7473 fi
7474 if test ! -s $tmp/subs.frag; then
7475 ac_more_lines=false
7476 else
7477 # The purpose of the label and of the branching condition is to
7478 # speed up the sed processing (if there are no `@' at all, there
7479 # is no need to browse any of the substitutions).
7480 # These are the two extra sed commands mentioned above.
7481 (echo ':t
7482 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7483 if test -z "$ac_sed_cmds"; then
7484 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7485 else
7486 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7487 fi
7488 ac_sed_frag=`expr $ac_sed_frag + 1`
7489 ac_beg=$ac_end
7490 ac_end=`expr $ac_end + $ac_max_sed_lines`
7491 fi
7492 done
7493 if test -z "$ac_sed_cmds"; then
7494 ac_sed_cmds=cat
7495 fi
7496 fi # test -n "$CONFIG_FILES"
7497
7498 _ACEOF
7499 cat >>$CONFIG_STATUS <<\_ACEOF
7500 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7501 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7502 case $ac_file in
7503 - | *:- | *:-:* ) # input from stdin
7504 cat >$tmp/stdin
7505 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7506 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7507 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7508 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7509 * ) ac_file_in=$ac_file.in ;;
7510 esac
7511
7512 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7513 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7514 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7515 X"$ac_file" : 'X\(//\)[^/]' \| \
7516 X"$ac_file" : 'X\(//\)$' \| \
7517 X"$ac_file" : 'X\(/\)' \| \
7518 . : '\(.\)' 2>/dev/null ||
7519 echo X"$ac_file" |
7520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7521 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7522 /^X\(\/\/\)$/{ s//\1/; q; }
7523 /^X\(\/\).*/{ s//\1/; q; }
7524 s/.*/./; q'`
7525 { if $as_mkdir_p; then
7526 mkdir -p "$ac_dir"
7527 else
7528 as_dir="$ac_dir"
7529 as_dirs=
7530 while test ! -d "$as_dir"; do
7531 as_dirs="$as_dir $as_dirs"
7532 as_dir=`(dirname "$as_dir") 2>/dev/null ||
7533 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7534 X"$as_dir" : 'X\(//\)[^/]' \| \
7535 X"$as_dir" : 'X\(//\)$' \| \
7536 X"$as_dir" : 'X\(/\)' \| \
7537 . : '\(.\)' 2>/dev/null ||
7538 echo X"$as_dir" |
7539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7540 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7541 /^X\(\/\/\)$/{ s//\1/; q; }
7542 /^X\(\/\).*/{ s//\1/; q; }
7543 s/.*/./; q'`
7544 done
7545 test ! -n "$as_dirs" || mkdir $as_dirs
7546 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
7547 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
7548 { (exit 1); exit 1; }; }; }
7549
7550 ac_builddir=.
7551
7552 if test "$ac_dir" != .; then
7553 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7554 # A "../" for each directory in $ac_dir_suffix.
7555 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7556 else
7557 ac_dir_suffix= ac_top_builddir=
7558 fi
7559
7560 case $srcdir in
7561 .) # No --srcdir option. We are building in place.
7562 ac_srcdir=.
7563 if test -z "$ac_top_builddir"; then
7564 ac_top_srcdir=.
7565 else
7566 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7567 fi ;;
7568 [\\/]* | ?:[\\/]* ) # Absolute path.
7569 ac_srcdir=$srcdir$ac_dir_suffix;
7570 ac_top_srcdir=$srcdir ;;
7571 *) # Relative path.
7572 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7573 ac_top_srcdir=$ac_top_builddir$srcdir ;;
7574 esac
7575
7576 # Do not use `cd foo && pwd` to compute absolute paths, because
7577 # the directories may not exist.
7578 case `pwd` in
7579 .) ac_abs_builddir="$ac_dir";;
7580 *)
7581 case "$ac_dir" in
7582 .) ac_abs_builddir=`pwd`;;
7583 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
7584 *) ac_abs_builddir=`pwd`/"$ac_dir";;
7585 esac;;
7586 esac
7587 case $ac_abs_builddir in
7588 .) ac_abs_top_builddir=${ac_top_builddir}.;;
7589 *)
7590 case ${ac_top_builddir}. in
7591 .) ac_abs_top_builddir=$ac_abs_builddir;;
7592 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
7593 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
7594 esac;;
7595 esac
7596 case $ac_abs_builddir in
7597 .) ac_abs_srcdir=$ac_srcdir;;
7598 *)
7599 case $ac_srcdir in
7600 .) ac_abs_srcdir=$ac_abs_builddir;;
7601 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
7602 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
7603 esac;;
7604 esac
7605 case $ac_abs_builddir in
7606 .) ac_abs_top_srcdir=$ac_top_srcdir;;
7607 *)
7608 case $ac_top_srcdir in
7609 .) ac_abs_top_srcdir=$ac_abs_builddir;;
7610 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
7611 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
7612 esac;;
7613 esac
7614
7615
7616 case $INSTALL in
7617 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7618 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
7619 esac
7620
7621 if test x"$ac_file" != x-; then
7622 { echo "$as_me:$LINENO: creating $ac_file" >&5
7623 echo "$as_me: creating $ac_file" >&6;}
7624 rm -f "$ac_file"
7625 fi
7626 # Let's still pretend it is `configure' which instantiates (i.e., don't
7627 # use $as_me), people would be surprised to read:
7628 # /* config.h. Generated by config.status. */
7629 if test x"$ac_file" = x-; then
7630 configure_input=
7631 else
7632 configure_input="$ac_file. "
7633 fi
7634 configure_input=$configure_input"Generated from `echo $ac_file_in |
7635 sed 's,.*/,,'` by configure."
7636
7637 # First look for the input files in the build tree, otherwise in the
7638 # src tree.
7639 ac_file_inputs=`IFS=:
7640 for f in $ac_file_in; do
7641 case $f in
7642 -) echo $tmp/stdin ;;
7643 [\\/$]*)
7644 # Absolute (can't be DOS-style, as IFS=:)
7645 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7646 echo "$as_me: error: cannot find input file: $f" >&2;}
7647 { (exit 1); exit 1; }; }
7648 echo "$f";;
7649 *) # Relative
7650 if test -f "$f"; then
7651 # Build tree
7652 echo "$f"
7653 elif test -f "$srcdir/$f"; then
7654 # Source tree
7655 echo "$srcdir/$f"
7656 else
7657 # /dev/null tree
7658 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7659 echo "$as_me: error: cannot find input file: $f" >&2;}
7660 { (exit 1); exit 1; }; }
7661 fi;;
7662 esac
7663 done` || { (exit 1); exit 1; }
7664 _ACEOF
7665 cat >>$CONFIG_STATUS <<_ACEOF
7666 sed "$ac_vpsub
7667 $extrasub
7668 _ACEOF
7669 cat >>$CONFIG_STATUS <<\_ACEOF
7670 :t
7671 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7672 s,@configure_input@,$configure_input,;t t
7673 s,@srcdir@,$ac_srcdir,;t t
7674 s,@abs_srcdir@,$ac_abs_srcdir,;t t
7675 s,@top_srcdir@,$ac_top_srcdir,;t t
7676 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7677 s,@builddir@,$ac_builddir,;t t
7678 s,@abs_builddir@,$ac_abs_builddir,;t t
7679 s,@top_builddir@,$ac_top_builddir,;t t
7680 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7681 s,@INSTALL@,$ac_INSTALL,;t t
7682 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7683 rm -f $tmp/stdin
7684 if test x"$ac_file" != x-; then
7685 mv $tmp/out $ac_file
7686 else
7687 cat $tmp/out
7688 rm -f $tmp/out
7689 fi
7690
7691 done
7692 _ACEOF
7693
7694 cat >>$CONFIG_STATUS <<\_ACEOF
7695
7696 { (exit 0); exit 0; }
7697 _ACEOF
7698 chmod +x $CONFIG_STATUS
7699 ac_clean_files=$ac_clean_files_save
7700
7701
7702 # configure is writing to config.log, and then calls config.status.
7703 # config.status does its own redirection, appending to config.log.
7704 # Unfortunately, on DOS this fails, as config.log is still kept open
7705 # by configure, so config.status won't be able to write to it; its
7706 # output is simply discarded. So we exec the FD to /dev/null,
7707 # effectively closing config.log, so it can be properly (re)opened and
7708 # appended to by config.status. When coming back to configure, we
7709 # need to make the FD available again.
7710 if test "$no_create" != yes; then
7711 ac_cs_success=:
7712 ac_config_status_args=
7713 test "$silent" = yes &&
7714 ac_config_status_args="$ac_config_status_args --quiet"
7715 exec 5>/dev/null
7716 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7717 exec 5>>config.log
7718 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7719 # would make configure fail if this is the last instruction.
7720 $ac_cs_success || { (exit 1); exit 1; }
7721 fi
7722
7723
7724
7725 echo
7726 echo " ----------------------------------------------------------------"
7727 echo " Configuration for $PACKAGE_NAME $PACKAGE_VERSION successfully completed."
7728 echo " Summary of main configuration settings for $PACKAGE_NAME:"
7729
7730 if [ "x$DEBUG" = "x1" ]; then
7731 echo " - DEBUG build"
7732 elif [ "x$DEBUG" = "x0" ]; then
7733 echo " - RELEASE build"
7734 else
7735 echo "DEBUG is $DEBUG"
7736 fi
7737
7738
7739 if [ "x$UNICODE" = "x1" ]; then
7740 echo " - UNICODE mode"
7741 elif [ "x$UNICODE" = "x0" ]; then
7742 echo " - ANSI mode"
7743 else
7744 echo "UNICODE is $UNICODE"
7745 fi
7746
7747
7748 if [ "x$SHARED" = "x1" ]; then
7749 echo " - SHARED mode"
7750 elif [ "x$SHARED" = "x0" ]; then
7751 echo " - STATIC mode"
7752 else
7753 echo "SHARED is $SHARED"
7754 fi
7755
7756
7757
7758
7759 echo
7760 echo " The wxWidgets build which will be used by $PACKAGE_NAME $PACKAGE_VERSION"
7761 echo " has the following settings:"
7762
7763
7764 if [ "x$WX_DEBUG" = "x1" ]; then
7765 echo " - DEBUG build"
7766 elif [ "x$WX_DEBUG" = "x0" ]; then
7767 echo " - RELEASE build"
7768 else
7769 echo "WX_DEBUG is $WX_DEBUG"
7770 fi
7771
7772
7773 if [ "x$WX_UNICODE" = "x1" ]; then
7774 echo " - UNICODE mode"
7775 elif [ "x$WX_UNICODE" = "x0" ]; then
7776 echo " - ANSI mode"
7777 else
7778 echo "WX_UNICODE is $WX_UNICODE"
7779 fi
7780
7781
7782 if [ "x$WX_SHARED" = "x1" ]; then
7783 echo " - SHARED mode"
7784 elif [ "x$WX_SHARED" = "x0" ]; then
7785 echo " - STATIC mode"
7786 else
7787 echo "WX_SHARED is $WX_SHARED"
7788 fi
7789
7790 echo " - VERSION: $WX_VERSION_FULL"
7791
7792 if test "$WX_PORT" = "gtk"; then
7793 if test "$WX_GTKPORT_VERSION" = "1"; then
7794 echo " - PORT: gtk (with GTK+ 1.x)"
7795 elif test "$WX_GTKPORT_VERSION" = "2" ; then
7796 echo " - PORT: gtk (with GTK+ 2.x)"
7797 else
7798 { { echo "$as_me:$LINENO: error:
7799 Error in this configure script ! Please contact $PACKAGE_BUGREPORT
7800 " >&5
7801 echo "$as_me: error:
7802 Error in this configure script ! Please contact $PACKAGE_BUGREPORT
7803 " >&2;}
7804 { (exit 1); exit 1; }; }
7805 fi
7806 else
7807 echo " - PORT: $WX_PORT"
7808 fi
7809
7810 echo
7811 echo " Now, just run make."
7812 echo " ----------------------------------------------------------------"
7813 echo
7814
7815