]>
Commit | Line | Data |
---|---|---|
10f2d63a | 1 | #! /bin/sh |
e6cc62c6 VS |
2 | # From configure.in Id: configure.in. |
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated by GNU Autoconf 2.57 for wxWindows 2.5.0. | |
5 | # | |
6 | # Report bugs to <wx-dev@lists.wxwindows.org>. | |
7 | # | |
8 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 | |
fe0895cf | 9 | # Free Software Foundation, Inc. |
e6cc62c6 VS |
10 | # This configure script is free software; the Free Software Foundation |
11 | # gives unlimited permission to copy, distribute and modify it. | |
12 | ## --------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
fe0895cf | 15 | |
e6cc62c6 VS |
16 | # Be Bourne compatible |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
23 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
24 | set -o posix | |
25 | fi | |
fe0895cf | 26 | |
e6cc62c6 VS |
27 | # Support unset when possible. |
28 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
29 | as_unset=unset | |
30 | else | |
31 | as_unset=false | |
32 | fi | |
fe0895cf VS |
33 | |
34 | ||
e6cc62c6 VS |
35 | # Work around bugs in pre-3.0 UWIN ksh. |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
fe0895cf | 40 | |
e6cc62c6 VS |
41 | # NLS nuisances. |
42 | for as_var in \ | |
43 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
44 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
45 | LC_TELEPHONE LC_TIME | |
46 | do | |
47 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
48 | eval $as_var=C; export $as_var | |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
fe0895cf | 53 | |
e6cc62c6 VS |
54 | # Required to use basename. |
55 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
56 | as_expr=expr | |
57 | else | |
58 | as_expr=false | |
59 | fi | |
fe0895cf | 60 | |
e6cc62c6 VS |
61 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
62 | as_basename=basename | |
63 | else | |
64 | as_basename=false | |
65 | fi | |
fe0895cf VS |
66 | |
67 | ||
e6cc62c6 VS |
68 | # Name of the executable. |
69 | as_me=`$as_basename "$0" || | |
70 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
71 | X"$0" : 'X\(//\)$' \| \ | |
72 | X"$0" : 'X\(/\)$' \| \ | |
73 | . : '\(.\)' 2>/dev/null || | |
74 | echo X/"$0" | | |
75 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
76 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
77 | /^X\/\(\/\).*/{ s//\1/; q; } | |
78 | s/.*/./; q'` | |
fe0895cf VS |
79 | |
80 | ||
e6cc62c6 VS |
81 | # PATH needs CR, and LINENO needs CR and PATH. |
82 | # Avoid depending upon Character Ranges. | |
83 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
84 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
85 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
86 | as_cr_digits='0123456789' | |
87 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
fe0895cf | 88 | |
e6cc62c6 VS |
89 | # The user is always right. |
90 | if test "${PATH_SEPARATOR+set}" != set; then | |
91 | echo "#! /bin/sh" >conf$$.sh | |
92 | echo "exit 0" >>conf$$.sh | |
93 | chmod +x conf$$.sh | |
94 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
95 | PATH_SEPARATOR=';' | |
96 | else | |
97 | PATH_SEPARATOR=: | |
98 | fi | |
99 | rm -f conf$$.sh | |
100 | fi | |
fe0895cf VS |
101 | |
102 | ||
e6cc62c6 VS |
103 | as_lineno_1=$LINENO |
104 | as_lineno_2=$LINENO | |
105 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
106 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
107 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
108 | # Find who we are. Look in the path if we contain no path at all | |
109 | # relative or not. | |
110 | case $0 in | |
111 | *[\\/]* ) as_myself=$0 ;; | |
112 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
113 | for as_dir in $PATH | |
114 | do | |
115 | IFS=$as_save_IFS | |
116 | test -z "$as_dir" && as_dir=. | |
117 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
118 | done | |
fe0895cf | 119 | |
e6cc62c6 VS |
120 | ;; |
121 | esac | |
122 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
123 | # in which case we are not to be found in the path. | |
124 | if test "x$as_myself" = x; then | |
125 | as_myself=$0 | |
126 | fi | |
127 | if test ! -f "$as_myself"; then | |
128 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
129 | { (exit 1); exit 1; }; } | |
130 | fi | |
131 | case $CONFIG_SHELL in | |
132 | '') | |
133 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
134 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
135 | do | |
136 | IFS=$as_save_IFS | |
137 | test -z "$as_dir" && as_dir=. | |
138 | for as_base in sh bash ksh sh5; do | |
139 | case $as_dir in | |
140 | /*) | |
141 | if ("$as_dir/$as_base" -c ' | |
142 | as_lineno_1=$LINENO | |
143 | as_lineno_2=$LINENO | |
144 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
145 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
146 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
147 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
148 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
149 | CONFIG_SHELL=$as_dir/$as_base | |
150 | export CONFIG_SHELL | |
151 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
152 | fi;; | |
153 | esac | |
154 | done | |
155 | done | |
156 | ;; | |
157 | esac | |
fe0895cf | 158 | |
e6cc62c6 VS |
159 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
160 | # uniformly replaced by the line number. The first 'sed' inserts a | |
161 | # line-number line before each line; the second 'sed' does the real | |
162 | # work. The second script uses 'N' to pair each line-number line | |
163 | # with the numbered line, and appends trailing '-' during | |
164 | # substitution so that $LINENO is not a special case at line end. | |
165 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
166 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
167 | sed '=' <$as_myself | | |
168 | sed ' | |
169 | N | |
170 | s,$,-, | |
171 | : loop | |
172 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
173 | t loop | |
174 | s,-$,, | |
175 | s,^['$as_cr_digits']*\n,, | |
176 | ' >$as_me.lineno && | |
177 | chmod +x $as_me.lineno || | |
178 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
179 | { (exit 1); exit 1; }; } | |
180 | ||
181 | # Don't try to exec as it changes $[0], causing all sort of problems | |
182 | # (the dirname of $[0] is not the place where we might find the | |
183 | # original and so on. Autoconf is especially sensible to this). | |
184 | . ./$as_me.lineno | |
185 | # Exit status is that of the last command. | |
186 | exit | |
187 | } | |
fe0895cf VS |
188 | |
189 | ||
e6cc62c6 VS |
190 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
191 | *c*,-n*) ECHO_N= ECHO_C=' | |
192 | ' ECHO_T=' ' ;; | |
193 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
194 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
195 | esac | |
fe0895cf | 196 | |
e6cc62c6 VS |
197 | if expr a : '\(a\)' >/dev/null 2>&1; then |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
fe0895cf | 202 | |
e6cc62c6 VS |
203 | rm -f conf$$ conf$$.exe conf$$.file |
204 | echo >conf$$.file | |
205 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
206 | # We could just check for DJGPP; but this test a) works b) is more generic | |
207 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
208 | if test -f conf$$.exe; then | |
209 | # Don't use ln at all; we don't have any links | |
210 | as_ln_s='cp -p' | |
211 | else | |
212 | as_ln_s='ln -s' | |
213 | fi | |
214 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
215 | as_ln_s=ln | |
216 | else | |
217 | as_ln_s='cp -p' | |
218 | fi | |
219 | rm -f conf$$ conf$$.exe conf$$.file | |
fe0895cf | 220 | |
e6cc62c6 VS |
221 | if mkdir -p . 2>/dev/null; then |
222 | as_mkdir_p=: | |
223 | else | |
224 | as_mkdir_p=false | |
225 | fi | |
fe0895cf | 226 | |
e6cc62c6 | 227 | as_executable_p="test -f" |
fe0895cf | 228 | |
e6cc62c6 VS |
229 | # Sed expression to map a string onto a valid CPP name. |
230 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
fe0895cf | 231 | |
e6cc62c6 VS |
232 | # Sed expression to map a string onto a valid variable name. |
233 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
fe0895cf VS |
234 | |
235 | ||
e6cc62c6 VS |
236 | # IFS |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $as_nl" | |
fe0895cf | 241 | |
e6cc62c6 VS |
242 | # CDPATH. |
243 | $as_unset CDPATH | |
fe0895cf VS |
244 | |
245 | ||
e6cc62c6 VS |
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` | |
fe0895cf | 250 | |
e6cc62c6 | 251 | exec 6>&1 |
fe0895cf | 252 | |
a0b9e27f | 253 | # |
e6cc62c6 VS |
254 | # Initializations. |
255 | # | |
a0b9e27f | 256 | ac_default_prefix=/usr/local |
e6cc62c6 VS |
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='wxWindows' | |
271 | PACKAGE_TARNAME='wxwindows' | |
272 | PACKAGE_VERSION='2.5.0' | |
273 | PACKAGE_STRING='wxWindows 2.5.0' | |
274 | PACKAGE_BUGREPORT='wx-dev@lists.wxwindows.org' | |
275 | ||
276 | ac_unique_file="wx-config.in" | |
277 | # Factoring default headers for most tests. | |
278 | ac_includes_default="\ | |
279 | #include <stdio.h> | |
280 | #if HAVE_SYS_TYPES_H | |
281 | # include <sys/types.h> | |
282 | #endif | |
283 | #if HAVE_SYS_STAT_H | |
284 | # include <sys/stat.h> | |
285 | #endif | |
286 | #if STDC_HEADERS | |
287 | # include <stdlib.h> | |
288 | # include <stddef.h> | |
289 | #else | |
290 | # if HAVE_STDLIB_H | |
291 | # include <stdlib.h> | |
292 | # endif | |
293 | #endif | |
294 | #if HAVE_STRING_H | |
295 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
296 | # include <memory.h> | |
297 | # endif | |
298 | # include <string.h> | |
299 | #endif | |
300 | #if HAVE_STRINGS_H | |
301 | # include <strings.h> | |
302 | #endif | |
303 | #if HAVE_INTTYPES_H | |
304 | # include <inttypes.h> | |
305 | #else | |
306 | # if HAVE_STDINT_H | |
307 | # include <stdint.h> | |
308 | # endif | |
309 | #endif | |
310 | #if HAVE_UNISTD_H | |
311 | # include <unistd.h> | |
312 | #endif" | |
313 | ||
672abd7a | 314 | ac_subdirs_all="$ac_subdirs_all src/expat" |
0bdb08e7 | 315 | 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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB AR INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA STRIP IF_GNU_MAKE LN_S CXXCPP subdirs PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG PANGOFT2_CFLAGS PANGOFT2_LIBS X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS PANGOX_CFLAGS PANGOX_LIBS PANGOXFT_CFLAGS PANGOXFT_LIBS RESCOMP DEREZ SETFILE LIBICONV EXTRALIBS_ESD CORE_BASE_LIBS CORE_GUI_LIBS wxUSE_ZLIB wxUSE_REGEX wxUSE_EXPAT wxUSE_ODBC wxUSE_LIBJPEG wxUSE_LIBPNG wxUSE_LIBTIFF VENDOR OFFICIAL_BUILD WXUNIV MONOLITHIC EXTRALIBS EXTRALIBS_XML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX SET_MAKE MAKE_SET INSTALL_DIR LDFLAGS_GUI PLATFORM_UNIX PLATFORM_WIN32 PLATFORM_MSDOS PLATFORM_MAC PLATFORM_MACOSX PLATFORM_OS2 SO_SUFFIX SO_SUFFIX_MODULE LIBPREFIX DLLPREFIX DLLPREFIX_MODULE AIX_CXX_LD SHARED_LD_CC SHARED_LD_CXX SHARED_LD_MODULE_CC SHARED_LD_MODULE_CXX PIC_FLAG USE_SOVERSION USE_SOVERLINUX USE_SOVERSOLARIS USE_MACVERSION USE_SOSYMLINKS SONAME_FLAG DEPS_TRACKING GCC_PCH COND_BUILD_DEBUG COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_DEBUG_FLAG_1 COND_DEBUG_INFO_0 COND_DEBUG_INFO_1 COND_DEPS_TRACKING_0 COND_DEPS_TRACKING_1 COND_GCC_PCH_1 COND_MONOLITHIC_0 COND_MONOLITHIC_0_SHARED_0 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_0_USE_HTML_1 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1 COND_MONOLITHIC_0_SHARED_1_USE_HTML_1 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1 COND_MONOLITHIC_1 COND_MONOLITHIC_1_SHARED_0 COND_MONOLITHIC_1_SHARED_1 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1 COND_PLATFORM_MACOSX_1 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA COND_PLATFORM_MACOSX_1_TOOLKIT_GTK COND_PLATFORM_MACOSX_1_TOOLKIT_MAC COND_PLATFORM_MACOSX_1_USE_SOVERSION_1 COND_PLATFORM_MAC_1 COND_PLATFORM_OS2_1 COND_PLATFORM_UNIX_0 COND_PLATFORM_UNIX_1 COND_PLATFORM_WIN32_0 COND_PLATFORM_WIN32_1 COND_SHARED_0 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_SHARED_0_WXUSE_EXPAT_BUILTIN COND_SHARED_0_WXUSE_ODBC_BUILTIN COND_SHARED_0_WXUSE_REGEX_BUILTIN COND_SHARED_0_WXUSE_ZLIB_BUILTIN COND_SHARED_1 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1 COND_TOOLKIT_COCOA COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_GTK COND_TOOLKIT_GTK_USE_GUI_1 COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MAC COND_TOOLKIT_MAC_USE_GUI_1 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MGL COND_TOOLKIT_MGL_USE_GUI_1 COND_TOOLKIT_MOTIF COND_TOOLKIT_MOTIF_USE_GUI_1 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_MSW COND_TOOLKIT_MSW_USE_GUI_1 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_PM COND_TOOLKIT_PM_USE_GUI_1 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0 COND_TOOLKIT_X11 COND_TOOLKIT_X11_USE_GUI_1 COND_UNICODE_1 COND_USE_GUI_0 COND_USE_GUI_1 COND_USE_GUI_1_WXUNIV_0 COND_USE_GUI_1_WXUNIV_1 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WXUNIV_1 COND_WXUSE_EXPAT_BUILTIN COND_WXUSE_LIBJPEG_BUILTIN COND_WXUSE_LIBPNG_BUILTIN COND_WXUSE_LIBTIFF_BUILTIN COND_WXUSE_ODBC_BUILTIN COND_WXUSE_REGEX_BUILTIN COND_WXUSE_ZLIB_BUILTIN PATH_IFS WX_MAJOR_VERSION_NUMBER WX_MINOR_VERSION_NUMBER WX_RELEASE_NUMBER WX_LIBRARY_NAME_STATIC WX_LIBRARY_NAME_SHARED WX_LIBRARY_BASENAME_NOGUI WX_LIBRARY_BASENAME_GUI WX_LIBRARY_IMPORTLIB WX_TARGET_LIBRARY WX_LIBRARY_LINK1 WX_LIBRARY_LINK2 PROGRAM_EXT WX_LIBRARY_NAME_STATIC_GL WX_LIBRARY_NAME_SHARED_GL WX_TARGET_LIBRARY_GL WX_LIBRARY_LINK1_GL WX_LIBRARY_LINK2_GL WX_ALL WX_ALL_INSTALLED SHARED_LD WX_TARGET_LIBRARY_TYPE STATIC_FLAG WXDEBUG_DEFINE USE_GUI AFMINSTALL WIN32INSTALL TOOLKIT TOOLKIT_DIR TOOLKIT_VPATH TOOLCHAIN_NAME TOOLCHAIN_DEFS TOOLCHAIN_DLL_DEFS top_builddir_wxconfig cross_compiling WXCONFIG_EXTRALIBS WXCONFIG_LIBS WXCONFIG_LIBS_GL WXCONFIG_LIBS_STATIC WXCONFIG_LIBS_STATIC_GL WXCONFIG_INCLUDE WXCONFIG_RPATH WXCONFIG_LDFLAGS_GUI WX_LARGEFILE_FLAGS CODE_GEN_FLAGS CODE_GEN_FLAGS_CXX ALL_OBJECTS ALL_HEADERS ALL_SOURCES GUIDIST PORT_FILES DISTDIR SAMPLES_SUBDIRS LDFLAGS_GL LDFLAGS_VERSIONING LDFLAGS_EXE OPENGL_LIBS DMALLOC_LIBS WX_VERSION_TAG RESFLAGS RESPROGRAMOBJ WX_RESOURCES_MACOSX_ASCII WX_RESOURCES_MACOSX_DATA MACOSX_BUNDLE LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS NM LD MAKEINFO INSTALL_LIBRARY LIBOBJS LTLIBOBJS' |
e6cc62c6 | 316 | ac_subst_files='' |
10f2d63a VZ |
317 | |
318 | # Initialize some variables set by options. | |
e6cc62c6 VS |
319 | ac_init_help= |
320 | ac_init_version=false | |
10f2d63a VZ |
321 | # The variables have the same names as the options, with |
322 | # dashes changed to underlines. | |
e6cc62c6 | 323 | cache_file=/dev/null |
10f2d63a | 324 | exec_prefix=NONE |
10f2d63a | 325 | no_create= |
10f2d63a VZ |
326 | no_recursion= |
327 | prefix=NONE | |
328 | program_prefix=NONE | |
329 | program_suffix=NONE | |
330 | program_transform_name=s,x,x, | |
331 | silent= | |
332 | site= | |
333 | srcdir= | |
10f2d63a VZ |
334 | verbose= |
335 | x_includes=NONE | |
336 | x_libraries=NONE | |
e6cc62c6 VS |
337 | |
338 | # Installation directory options. | |
339 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
340 | # and all the variables that are supposed to be based on exec_prefix | |
341 | # by default will actually change. | |
342 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
10f2d63a VZ |
343 | bindir='${exec_prefix}/bin' |
344 | sbindir='${exec_prefix}/sbin' | |
345 | libexecdir='${exec_prefix}/libexec' | |
346 | datadir='${prefix}/share' | |
347 | sysconfdir='${prefix}/etc' | |
348 | sharedstatedir='${prefix}/com' | |
349 | localstatedir='${prefix}/var' | |
350 | libdir='${exec_prefix}/lib' | |
351 | includedir='${prefix}/include' | |
352 | oldincludedir='/usr/include' | |
353 | infodir='${prefix}/info' | |
354 | mandir='${prefix}/man' | |
355 | ||
10f2d63a VZ |
356 | ac_prev= |
357 | for ac_option | |
358 | do | |
10f2d63a VZ |
359 | # If the previous option needs an argument, assign it. |
360 | if test -n "$ac_prev"; then | |
361 | eval "$ac_prev=\$ac_option" | |
362 | ac_prev= | |
363 | continue | |
364 | fi | |
365 | ||
e6cc62c6 | 366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
10f2d63a VZ |
367 | |
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | ||
e6cc62c6 | 370 | case $ac_option in |
10f2d63a VZ |
371 | |
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 | ac_prev=bindir ;; | |
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
e6cc62c6 | 375 | bindir=$ac_optarg ;; |
10f2d63a VZ |
376 | |
377 | -build | --build | --buil | --bui | --bu) | |
e6cc62c6 | 378 | ac_prev=build_alias ;; |
10f2d63a | 379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
e6cc62c6 | 380 | build_alias=$ac_optarg ;; |
10f2d63a VZ |
381 | |
382 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
383 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
384 | ac_prev=cache_file ;; | |
385 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
386 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
e6cc62c6 VS |
387 | cache_file=$ac_optarg ;; |
388 | ||
389 | --config-cache | -C) | |
390 | cache_file=config.cache ;; | |
10f2d63a VZ |
391 | |
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 | ac_prev=datadir ;; | |
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | | --da=*) | |
e6cc62c6 | 396 | datadir=$ac_optarg ;; |
10f2d63a VZ |
397 | |
398 | -disable-* | --disable-*) | |
e6cc62c6 | 399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
10f2d63a | 400 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
401 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
402 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
403 | { (exit 1); exit 1; }; } | |
404 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
405 | eval "enable_$ac_feature=no" ;; | |
10f2d63a VZ |
406 | |
407 | -enable-* | --enable-*) | |
e6cc62c6 | 408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
10f2d63a | 409 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
410 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
411 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
412 | { (exit 1); exit 1; }; } | |
413 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
414 | case $ac_option in | |
415 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
416 | *) ac_optarg=yes ;; |
417 | esac | |
e6cc62c6 | 418 | eval "enable_$ac_feature='$ac_optarg'" ;; |
10f2d63a VZ |
419 | |
420 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
421 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
422 | | --exec | --exe | --ex) | |
423 | ac_prev=exec_prefix ;; | |
424 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
425 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
426 | | --exec=* | --exe=* | --ex=*) | |
e6cc62c6 | 427 | exec_prefix=$ac_optarg ;; |
10f2d63a VZ |
428 | |
429 | -gas | --gas | --ga | --g) | |
430 | # Obsolete; use --with-gas. | |
431 | with_gas=yes ;; | |
432 | ||
e6cc62c6 VS |
433 | -help | --help | --hel | --he | -h) |
434 | ac_init_help=long ;; | |
435 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
436 | ac_init_help=recursive ;; | |
437 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
438 | ac_init_help=short ;; | |
10f2d63a VZ |
439 | |
440 | -host | --host | --hos | --ho) | |
e6cc62c6 | 441 | ac_prev=host_alias ;; |
10f2d63a | 442 | -host=* | --host=* | --hos=* | --ho=*) |
e6cc62c6 | 443 | host_alias=$ac_optarg ;; |
10f2d63a VZ |
444 | |
445 | -includedir | --includedir | --includedi | --included | --include \ | |
446 | | --includ | --inclu | --incl | --inc) | |
447 | ac_prev=includedir ;; | |
448 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
449 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
e6cc62c6 | 450 | includedir=$ac_optarg ;; |
10f2d63a VZ |
451 | |
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
e6cc62c6 | 455 | infodir=$ac_optarg ;; |
10f2d63a VZ |
456 | |
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
e6cc62c6 | 460 | libdir=$ac_optarg ;; |
10f2d63a VZ |
461 | |
462 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
463 | | --libexe | --libex | --libe) | |
464 | ac_prev=libexecdir ;; | |
465 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
466 | | --libexe=* | --libex=* | --libe=*) | |
e6cc62c6 | 467 | libexecdir=$ac_optarg ;; |
10f2d63a VZ |
468 | |
469 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
470 | | --localstate | --localstat | --localsta | --localst \ | |
471 | | --locals | --local | --loca | --loc | --lo) | |
472 | ac_prev=localstatedir ;; | |
473 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
474 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
475 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
e6cc62c6 | 476 | localstatedir=$ac_optarg ;; |
10f2d63a VZ |
477 | |
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
e6cc62c6 | 481 | mandir=$ac_optarg ;; |
10f2d63a VZ |
482 | |
483 | -nfp | --nfp | --nf) | |
484 | # Obsolete; use --without-fp. | |
485 | with_fp=no ;; | |
486 | ||
487 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
e6cc62c6 | 488 | | --no-cr | --no-c | -n) |
10f2d63a VZ |
489 | no_create=yes ;; |
490 | ||
491 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
492 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
493 | no_recursion=yes ;; | |
494 | ||
495 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
496 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
497 | | --oldin | --oldi | --old | --ol | --o) | |
498 | ac_prev=oldincludedir ;; | |
499 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
500 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
501 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
e6cc62c6 | 502 | oldincludedir=$ac_optarg ;; |
10f2d63a VZ |
503 | |
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
e6cc62c6 | 507 | prefix=$ac_optarg ;; |
10f2d63a VZ |
508 | |
509 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
510 | | --program-pre | --program-pr | --program-p) | |
511 | ac_prev=program_prefix ;; | |
512 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
513 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
e6cc62c6 | 514 | program_prefix=$ac_optarg ;; |
10f2d63a VZ |
515 | |
516 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
517 | | --program-suf | --program-su | --program-s) | |
518 | ac_prev=program_suffix ;; | |
519 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
520 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
e6cc62c6 | 521 | program_suffix=$ac_optarg ;; |
10f2d63a VZ |
522 | |
523 | -program-transform-name | --program-transform-name \ | |
524 | | --program-transform-nam | --program-transform-na \ | |
525 | | --program-transform-n | --program-transform- \ | |
526 | | --program-transform | --program-transfor \ | |
527 | | --program-transfo | --program-transf \ | |
528 | | --program-trans | --program-tran \ | |
529 | | --progr-tra | --program-tr | --program-t) | |
530 | ac_prev=program_transform_name ;; | |
531 | -program-transform-name=* | --program-transform-name=* \ | |
532 | | --program-transform-nam=* | --program-transform-na=* \ | |
533 | | --program-transform-n=* | --program-transform-=* \ | |
534 | | --program-transform=* | --program-transfor=* \ | |
535 | | --program-transfo=* | --program-transf=* \ | |
536 | | --program-trans=* | --program-tran=* \ | |
537 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
e6cc62c6 | 538 | program_transform_name=$ac_optarg ;; |
10f2d63a VZ |
539 | |
540 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
541 | | -silent | --silent | --silen | --sile | --sil) | |
542 | silent=yes ;; | |
543 | ||
544 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
545 | ac_prev=sbindir ;; | |
546 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
547 | | --sbi=* | --sb=*) | |
e6cc62c6 | 548 | sbindir=$ac_optarg ;; |
10f2d63a VZ |
549 | |
550 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
551 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
552 | | --sharedst | --shareds | --shared | --share | --shar \ | |
553 | | --sha | --sh) | |
554 | ac_prev=sharedstatedir ;; | |
555 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
556 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
557 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
558 | | --sha=* | --sh=*) | |
e6cc62c6 | 559 | sharedstatedir=$ac_optarg ;; |
10f2d63a VZ |
560 | |
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
e6cc62c6 | 564 | site=$ac_optarg ;; |
10f2d63a VZ |
565 | |
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
e6cc62c6 | 569 | srcdir=$ac_optarg ;; |
10f2d63a VZ |
570 | |
571 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
572 | | --syscon | --sysco | --sysc | --sys | --sy) | |
573 | ac_prev=sysconfdir ;; | |
574 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
575 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
e6cc62c6 | 576 | sysconfdir=$ac_optarg ;; |
10f2d63a VZ |
577 | |
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
e6cc62c6 | 579 | ac_prev=target_alias ;; |
10f2d63a | 580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
e6cc62c6 | 581 | target_alias=$ac_optarg ;; |
10f2d63a VZ |
582 | |
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
e6cc62c6 VS |
586 | -version | --version | --versio | --versi | --vers | -V) |
587 | ac_init_version=: ;; | |
10f2d63a VZ |
588 | |
589 | -with-* | --with-*) | |
e6cc62c6 | 590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
10f2d63a | 591 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
592 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
593 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
594 | { (exit 1); exit 1; }; } | |
10f2d63a | 595 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
e6cc62c6 VS |
596 | case $ac_option in |
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
10f2d63a VZ |
598 | *) ac_optarg=yes ;; |
599 | esac | |
e6cc62c6 | 600 | eval "with_$ac_package='$ac_optarg'" ;; |
10f2d63a VZ |
601 | |
602 | -without-* | --without-*) | |
e6cc62c6 | 603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
10f2d63a | 604 | # Reject names that are not valid shell variable names. |
e6cc62c6 VS |
605 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
606 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
607 | { (exit 1); exit 1; }; } | |
608 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
609 | eval "with_$ac_package=no" ;; | |
10f2d63a VZ |
610 | |
611 | --x) | |
612 | # Obsolete; use --with-x. | |
613 | with_x=yes ;; | |
614 | ||
615 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
616 | | --x-incl | --x-inc | --x-in | --x-i) | |
617 | ac_prev=x_includes ;; | |
618 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
619 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
e6cc62c6 | 620 | x_includes=$ac_optarg ;; |
10f2d63a VZ |
621 | |
622 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
623 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
624 | ac_prev=x_libraries ;; | |
625 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
626 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
e6cc62c6 | 627 | x_libraries=$ac_optarg ;; |
10f2d63a | 628 | |
e6cc62c6 VS |
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
630 | Try \`$0 --help' for more information." >&2 | |
631 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
632 | ;; |
633 | ||
e6cc62c6 VS |
634 | *=*) |
635 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
636 | # Reject names that are not valid shell variable names. | |
637 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
638 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
639 | { (exit 1); exit 1; }; } | |
640 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
641 | eval "$ac_envvar='$ac_optarg'" | |
642 | export $ac_envvar ;; | |
643 | ||
10f2d63a | 644 | *) |
e6cc62c6 VS |
645 | # FIXME: should be removed in autoconf 3.0. |
646 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
647 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
648 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
649 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
10f2d63a VZ |
650 | ;; |
651 | ||
652 | esac | |
653 | done | |
654 | ||
655 | if test -n "$ac_prev"; then | |
e6cc62c6 VS |
656 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
657 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
658 | { (exit 1); exit 1; }; } | |
a0b9e27f | 659 | fi |
a0b9e27f | 660 | |
e6cc62c6 VS |
661 | # Be sure to have absolute paths. |
662 | for ac_var in exec_prefix prefix | |
663 | do | |
664 | eval ac_val=$`echo $ac_var` | |
665 | case $ac_val in | |
666 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
667 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
668 | { (exit 1); exit 1; }; };; | |
669 | esac | |
670 | done | |
8284b0c5 | 671 | |
e6cc62c6 VS |
672 | # Be sure to have absolute paths. |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
674 | localstatedir libdir includedir oldincludedir infodir mandir | |
10f2d63a | 675 | do |
e6cc62c6 VS |
676 | eval ac_val=$`echo $ac_var` |
677 | case $ac_val in | |
678 | [\\/$]* | ?:[\\/]* ) ;; | |
679 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
680 | { (exit 1); exit 1; }; };; | |
10f2d63a VZ |
681 | esac |
682 | done | |
683 | ||
e6cc62c6 VS |
684 | # There might be people who depend on the old broken behavior: `$host' |
685 | # used to hold the argument of --host etc. | |
686 | # FIXME: To remove some day. | |
687 | build=$build_alias | |
688 | host=$host_alias | |
689 | target=$target_alias | |
690 | ||
691 | # FIXME: To remove some day. | |
692 | if test "x$host_alias" != x; then | |
693 | if test "x$build_alias" = x; then | |
694 | cross_compiling=maybe | |
695 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
696 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
697 | elif test "x$build_alias" != "x$host_alias"; then | |
698 | cross_compiling=yes | |
699 | fi | |
700 | fi | |
247f5006 | 701 | |
e6cc62c6 VS |
702 | ac_tool_prefix= |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
704 | ||
705 | test "$silent" = yes && exec 6>/dev/null | |
10f2d63a | 706 | |
10f2d63a VZ |
707 | |
708 | # Find the source files, if location was not specified. | |
709 | if test -z "$srcdir"; then | |
710 | ac_srcdir_defaulted=yes | |
711 | # Try the directory containing this script, then its parent. | |
e6cc62c6 VS |
712 | ac_confdir=`(dirname "$0") 2>/dev/null || |
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
714 | X"$0" : 'X\(//\)[^/]' \| \ | |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
718 | echo X"$0" | | |
719 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
720 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
721 | /^X\(\/\/\)$/{ s//\1/; q; } | |
722 | /^X\(\/\).*/{ s//\1/; q; } | |
723 | s/.*/./; q'` | |
10f2d63a VZ |
724 | srcdir=$ac_confdir |
725 | if test ! -r $srcdir/$ac_unique_file; then | |
726 | srcdir=.. | |
727 | fi | |
728 | else | |
729 | ac_srcdir_defaulted=no | |
730 | fi | |
731 | if test ! -r $srcdir/$ac_unique_file; then | |
732 | if test "$ac_srcdir_defaulted" = yes; then | |
e6cc62c6 VS |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
734 | { (exit 1); exit 1; }; } | |
10f2d63a | 735 | else |
e6cc62c6 VS |
736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
737 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
738 | fi |
739 | fi | |
e6cc62c6 VS |
740 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
741 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
742 | { (exit 1); exit 1; }; } | |
743 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
744 | ac_env_build_alias_set=${build_alias+set} | |
745 | ac_env_build_alias_value=$build_alias | |
746 | ac_cv_env_build_alias_set=${build_alias+set} | |
747 | ac_cv_env_build_alias_value=$build_alias | |
748 | ac_env_host_alias_set=${host_alias+set} | |
749 | ac_env_host_alias_value=$host_alias | |
750 | ac_cv_env_host_alias_set=${host_alias+set} | |
751 | ac_cv_env_host_alias_value=$host_alias | |
752 | ac_env_target_alias_set=${target_alias+set} | |
753 | ac_env_target_alias_value=$target_alias | |
754 | ac_cv_env_target_alias_set=${target_alias+set} | |
755 | ac_cv_env_target_alias_value=$target_alias | |
756 | ac_env_CC_set=${CC+set} | |
757 | ac_env_CC_value=$CC | |
758 | ac_cv_env_CC_set=${CC+set} | |
759 | ac_cv_env_CC_value=$CC | |
760 | ac_env_CFLAGS_set=${CFLAGS+set} | |
761 | ac_env_CFLAGS_value=$CFLAGS | |
762 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
763 | ac_cv_env_CFLAGS_value=$CFLAGS | |
764 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
765 | ac_env_LDFLAGS_value=$LDFLAGS | |
766 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
767 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
768 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
769 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
770 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
771 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
772 | ac_env_CPP_set=${CPP+set} | |
773 | ac_env_CPP_value=$CPP | |
774 | ac_cv_env_CPP_set=${CPP+set} | |
775 | ac_cv_env_CPP_value=$CPP | |
776 | ac_env_CXX_set=${CXX+set} | |
777 | ac_env_CXX_value=$CXX | |
778 | ac_cv_env_CXX_set=${CXX+set} | |
779 | ac_cv_env_CXX_value=$CXX | |
780 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | |
781 | ac_env_CXXFLAGS_value=$CXXFLAGS | |
782 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | |
783 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | |
784 | ac_env_CXXCPP_set=${CXXCPP+set} | |
785 | ac_env_CXXCPP_value=$CXXCPP | |
786 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | |
787 | ac_cv_env_CXXCPP_value=$CXXCPP | |
328a083c | 788 | |
e6cc62c6 VS |
789 | # |
790 | # Report the --help message. | |
791 | # | |
792 | if test "$ac_init_help" = "long"; then | |
793 | # Omit some internal or obsolete options to make the list less imposing. | |
794 | # This message is too long to be a string in the A/UX 3.1 sh. | |
795 | cat <<_ACEOF | |
796 | \`configure' configures wxWindows 2.5.0 to adapt to many kinds of systems. | |
10f2d63a | 797 | |
e6cc62c6 | 798 | Usage: $0 [OPTION]... [VAR=VALUE]... |
10f2d63a | 799 | |
e6cc62c6 VS |
800 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
801 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
8284b0c5 | 802 | |
e6cc62c6 VS |
803 | Defaults for the options are specified in brackets. |
804 | ||
805 | Configuration: | |
806 | -h, --help display this help and exit | |
807 | --help=short display options specific to this package | |
808 | --help=recursive display the short help of all the included packages | |
809 | -V, --version display version information and exit | |
810 | -q, --quiet, --silent do not print \`checking...' messages | |
811 | --cache-file=FILE cache test results in FILE [disabled] | |
812 | -C, --config-cache alias for \`--cache-file=config.cache' | |
813 | -n, --no-create do not create output files | |
814 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
815 | ||
816 | _ACEOF | |
817 | ||
818 | cat <<_ACEOF | |
819 | Installation directories: | |
820 | --prefix=PREFIX install architecture-independent files in PREFIX | |
821 | [$ac_default_prefix] | |
822 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
823 | [PREFIX] | |
824 | ||
825 | By default, \`make install' will install all the files in | |
826 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
827 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
828 | for instance \`--prefix=\$HOME'. | |
829 | ||
830 | For better control, use the options below. | |
831 | ||
832 | Fine tuning of the installation directories: | |
833 | --bindir=DIR user executables [EPREFIX/bin] | |
834 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
835 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
836 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
837 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
838 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
839 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
840 | --libdir=DIR object code libraries [EPREFIX/lib] | |
841 | --includedir=DIR C header files [PREFIX/include] | |
842 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
843 | --infodir=DIR info documentation [PREFIX/info] | |
844 | --mandir=DIR man documentation [PREFIX/man] | |
845 | _ACEOF | |
846 | ||
847 | cat <<\_ACEOF | |
848 | ||
849 | X features: | |
850 | --x-includes=DIR X include files are in DIR | |
851 | --x-libraries=DIR X library files are in DIR | |
852 | ||
853 | System types: | |
854 | --build=BUILD configure for building on BUILD [guessed] | |
855 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
856 | --target=TARGET configure for building compilers for TARGET [HOST] | |
857 | _ACEOF | |
858 | fi | |
859 | ||
860 | if test -n "$ac_init_help"; then | |
861 | case $ac_init_help in | |
862 | short | recursive ) echo "Configuration of wxWindows 2.5.0:";; | |
863 | esac | |
864 | cat <<\_ACEOF | |
865 | ||
866 | Optional Features: | |
867 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
868 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
869 | --enable-gui use GUI classes | |
9747f85d | 870 | --disable-monolithic don't build wxWindows as single library |
e6cc62c6 VS |
871 | --enable-universal use wxWindows GUI controls instead of native ones |
872 | --enable-nanox use NanoX | |
873 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL) | |
874 | --enable-shared create shared library code | |
e6cc62c6 VS |
875 | --enable-optimise create optimised code |
876 | --enable-debug same as debug_flag and debug_info | |
df5168c4 | 877 | --enable-stl use STL for containers |
e6cc62c6 VS |
878 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) |
879 | --enable-debug_info create code with debugging information | |
880 | --enable-debug_gdb create code with extra GDB debugging information | |
881 | --enable-debug_cntxt use wxDebugContext | |
882 | --enable-mem_tracing create code with memory tracing | |
883 | --enable-profile create code with profiling information | |
884 | --enable-no_rtti create code without RTTI information | |
885 | --enable-no_exceptions create code without C++ exceptions handling | |
886 | --enable-permissive compile code disregarding strict ANSI | |
887 | --enable-no_deps create code without dependency information | |
e6cc62c6 VS |
888 | --enable-compat22 enable wxWindows 2.2 compatibility |
889 | --disable-compat24 disable wxWindows 2.4 compatibility | |
890 | --enable-rpath=DIR output the rpath flag from wx-config | |
891 | --enable-intl use internationalization system | |
892 | --enable-config use wxConfig (and derived) classes | |
893 | --enable-protocols use wxProtocol and derived classes | |
894 | --enable-ftp use wxFTP (requires wxProtocol | |
895 | --enable-http use wxHTTP (requires wxProtocol | |
896 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
897 | --enable-sockets use socket/network classes | |
898 | --enable-ole use OLE classes | |
899 | --enable-dataobj use data object classes | |
900 | --enable-ipc use interprocess communication (wxSocket etc.) | |
901 | --enable-cmdline use wxCmdLineParser class | |
902 | --enable-datetime use wxDateTime class | |
903 | --enable-stopwatch use wxStopWatch class | |
904 | --enable-dialupman use dialup network classes | |
905 | --enable-apple_ieee use the Apple IEEE codec | |
906 | --enable-timer use wxTimer class | |
907 | --enable-wave use wxWave class | |
908 | --enable-fraction use wxFraction class | |
909 | --enable-dynlib use wxLibrary class for DLL loading | |
910 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
911 | --enable-longlong use wxLongLong class | |
912 | --enable-geometry use geometry class | |
913 | --enable-log use logging system | |
914 | --enable-streams use wxStream etc classes | |
915 | --enable-file use wxFile classes | |
916 | --enable-ffile use wxFFile classes | |
917 | --enable-textbuf use wxTextBuffer class | |
918 | --enable-textfile use wxTextFile class | |
919 | --enable-fontmap use font encodings conversion classes | |
920 | --enable-unicode compile wxString with Unicode support | |
921 | --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only) | |
922 | --enable-wxprintfv use wxWindows implementation of vprintf() | |
923 | --enable-std_iostreams use standard C++ stream classes | |
924 | --enable-filesystem use virtual file systems classes | |
925 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
926 | --enable-fs_zip use virtual ZIP filesystems | |
927 | --enable-zipstream use wxZipInputStream | |
928 | --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException | |
929 | --enable-snglinst use wxSingleInstanceChecker class | |
930 | --enable-mimetype use wxMimeTypesManager | |
931 | --enable-sysoptions use wxSystemOptions | |
932 | --enable-url use wxURL class | |
933 | --enable-protocol use wxProtocol class | |
934 | --enable-protocol-http HTTP support in wxProtocol | |
935 | --enable-protocol-ftp FTP support in wxProtocol | |
936 | --enable-protocol-file FILE support in wxProtocol | |
937 | --enable-threads use threads | |
938 | --enable-docview use document view architecture | |
939 | --enable-help use help subsystem | |
940 | --enable-mshtmlhelp use MS HTML Help (win32) | |
941 | --enable-html use wxHTML sub-library | |
942 | --enable-htmlhelp use wxHTML-based help | |
943 | --enable-constraints use layout-constraints system | |
944 | --enable-printarch use printing architecture | |
945 | --enable-mdi use multiple document interface architecture | |
946 | --enable-loggui use standard GUI logger | |
947 | --enable-logwin use wxLogWindow | |
948 | --enable-logdialog use wxLogDialog | |
949 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
950 | --enable-prologio not available; see contrib | |
951 | --enable-resources not available; see contrib | |
952 | --enable-clipboard use wxClipboard class | |
953 | --enable-dnd use Drag'n'Drop classes | |
954 | --enable-metafile use win32 metafiles | |
955 | --enable-controls use all usual controls | |
956 | --enable-accel use accelerators | |
957 | --enable-button use wxButton class | |
958 | --enable-bmpbutton use wxBitmapButton class | |
959 | --enable-calendar use wxCalendarCtrl class | |
960 | --enable-caret use wxCaret class | |
961 | --enable-checkbox use wxCheckBox class | |
962 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
963 | --enable-choice use wxChoice class | |
964 | --enable-combobox use wxComboBox class | |
965 | --enable-display use wxDisplay class | |
966 | --enable-gauge use wxGauge class | |
967 | --enable-grid use wxGrid class | |
968 | --enable-imaglist use wxImageList class | |
0e012a93 | 969 | --enable-listbook use wxListbook class |
e6cc62c6 VS |
970 | --enable-listbox use wxListBox class |
971 | --enable-listctrl use wxListCtrl class | |
972 | --enable-notebook use wxNotebook class | |
973 | --enable-radiobox use wxRadioBox class | |
974 | --enable-radiobtn use wxRadioButton class | |
975 | --enable-sash use wxSashWindow class | |
976 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
977 | --enable-slider use wxSlider class | |
978 | --enable-spinbtn use wxSpinButton class | |
979 | --enable-spinctrl use wxSpinCtrl class | |
980 | --enable-splitter use wxSplitterWindow class | |
981 | --enable-statbmp use wxStaticBitmap class | |
982 | --enable-statbox use wxStaticBox class | |
983 | --enable-statline use wxStaticLine class | |
984 | --enable-stattext use wxStaticText class | |
985 | --enable-statusbar use wxStatusBar class | |
986 | --enable-tabdialog use wxTabControl class | |
987 | --enable-textctrl use wxTextCtrl class | |
988 | --enable-togglebtn use wxToggleButton class | |
989 | --enable-toolbar use wxToolBar class | |
990 | --enable-tbarnative use native wxToolBar class | |
991 | --enable-tbarsmpl use wxToolBarSimple class | |
992 | --enable-treectrl use wxTreeCtrl class | |
993 | --enable-tipwindow use wxTipWindow class | |
994 | --enable-popupwin use wxPopUpWindow class | |
995 | --enable-commondlg use all common dialogs | |
996 | --enable-choicedlg use wxChoiceDialog | |
997 | --enable-coldlg use wxColourDialog | |
998 | --enable-filedlg use wxFileDialog | |
999 | --enable-finddlg use wxFindReplaceDialog | |
1000 | --enable-fontdlg use wxFontDialog | |
1001 | --enable-dirdlg use wxDirDialog | |
1002 | --enable-msgdlg use wxMessageDialog | |
1003 | --enable-numberdlg use wxNumberEntryDialog | |
1004 | --enable-splash use wxSplashScreen | |
1005 | --enable-textdlg use wxTextDialog | |
1006 | --enable-tipdlg use startup tips | |
1007 | --enable-progressdlg use wxProgressDialog | |
1008 | --enable-wizarddlg use wxWizard | |
1009 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1010 | --enable-miniframe use wxMiniFrame class | |
1011 | --enable-tooltips use wxToolTip class | |
1012 | --enable-splines use spline drawing code | |
1013 | --enable-validators use wxValidator and derived classes | |
1014 | --enable-busyinfo use wxBusyInfo | |
1015 | --enable-joystick use wxJoystick (Linux only) | |
1016 | --enable-metafiles use wxMetaFile (Windows only) | |
1017 | --enable-dragimage use wxDragImage | |
1018 | --enable-accessibility enable accessibility support | |
1019 | --enable-palette use wxPalette class | |
1020 | --enable-image use wxImage class | |
1021 | --enable-gif use gif images (GIF file format) | |
1022 | --enable-pcx use pcx images (PCX file format) | |
1023 | --enable-iff use iff images (IFF file format) | |
1024 | --enable-pnm use pnm images (PNM file format) | |
1025 | --enable-xpm use xpm images (XPM file format) | |
1026 | --enable-icocur use Windows ICO and CUR formats | |
029b47ad VS |
1027 | --enable-official_build official build of wxWindows (win32 DLL only) |
1028 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
e6cc62c6 VS |
1029 | --disable-largefile omit support for large files |
1030 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1031 | --disable-gtktest Do not try to compile and run a test GTK program | |
45842500 | 1032 | --disable-precomp-headers don't use precompiled headers even if compiler can |
e6cc62c6 VS |
1033 | |
1034 | Optional Packages: | |
1035 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1036 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1037 | --with-gtk use GTK+ | |
1038 | --with-motif use Motif/Lesstif | |
1039 | --with-mac use Mac OS X | |
1040 | --with-cocoa use Cocoa | |
1041 | --with-wine use Wine | |
1042 | --with-msw use MS-Windows | |
1043 | --with-pm use OS/2 Presentation Manager | |
1044 | --with-mgl use SciTech MGL | |
1045 | --with-microwin use MicroWindows | |
1046 | --with-x11 use X11 | |
1047 | --with-libpng use libpng (PNG image format) | |
1048 | --with-libjpeg use libjpeg (JPEG file format) | |
1049 | --with-libtiff use libtiff (TIFF file format) | |
1050 | --with-opengl use OpenGL (or Mesa) | |
1051 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1052 | --with-regex enable support for wxRegEx class | |
1053 | --with-zlib use zlib for LZW compression | |
1054 | --with-odbc use the IODBC and wxODBC classes | |
672abd7a | 1055 | --with-expat enable XML support using expat parser |
e6cc62c6 VS |
1056 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1057 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1058 | --with-x use the X Window System | |
1059 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1060 | ||
1061 | Some influential environment variables: | |
1062 | CC C compiler command | |
1063 | CFLAGS C compiler flags | |
1064 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1065 | nonstandard directory <lib dir> | |
1066 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1067 | headers in a nonstandard directory <include dir> | |
1068 | CPP C preprocessor | |
1069 | CXX C++ compiler command | |
1070 | CXXFLAGS C++ compiler flags | |
1071 | CXXCPP C++ preprocessor | |
1072 | ||
1073 | Use these variables to override the choices made by `configure' or to help | |
1074 | it to find libraries and programs with nonstandard names/locations. | |
1075 | ||
1076 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1077 | _ACEOF | |
1078 | fi | |
1079 | ||
1080 | if test "$ac_init_help" = "recursive"; then | |
1081 | # If there are subdirs, report their specific --help. | |
1082 | ac_popdir=`pwd` | |
1083 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1084 | test -d $ac_dir || continue | |
1085 | ac_builddir=. | |
1086 | ||
1087 | if test "$ac_dir" != .; then | |
1088 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1089 | # A "../" for each directory in $ac_dir_suffix. | |
1090 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1091 | else | |
1092 | ac_dir_suffix= ac_top_builddir= | |
1093 | fi | |
1094 | ||
1095 | case $srcdir in | |
1096 | .) # No --srcdir option. We are building in place. | |
1097 | ac_srcdir=. | |
1098 | if test -z "$ac_top_builddir"; then | |
1099 | ac_top_srcdir=. | |
1100 | else | |
1101 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1102 | fi ;; | |
1103 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1104 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1105 | ac_top_srcdir=$srcdir ;; | |
1106 | *) # Relative path. | |
1107 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1108 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1109 | esac | |
1110 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
1111 | # absolute. | |
1112 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1113 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
1114 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1115 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
1116 | ||
1117 | cd $ac_dir | |
1118 | # Check for guested configure; otherwise get Cygnus style configure. | |
1119 | if test -f $ac_srcdir/configure.gnu; then | |
1120 | echo | |
1121 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1122 | elif test -f $ac_srcdir/configure; then | |
1123 | echo | |
1124 | $SHELL $ac_srcdir/configure --help=recursive | |
1125 | elif test -f $ac_srcdir/configure.ac || | |
1126 | test -f $ac_srcdir/configure.in; then | |
1127 | echo | |
1128 | $ac_configure --help | |
1129 | else | |
1130 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1131 | fi | |
1132 | cd $ac_popdir | |
1133 | done | |
1134 | fi | |
8284b0c5 | 1135 | |
e6cc62c6 VS |
1136 | test -n "$ac_init_help" && exit 0 |
1137 | if $ac_init_version; then | |
1138 | cat <<\_ACEOF | |
1139 | wxWindows configure 2.5.0 | |
1140 | generated by GNU Autoconf 2.57 | |
10f2d63a | 1141 | |
e6cc62c6 VS |
1142 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
1143 | Free Software Foundation, Inc. | |
1144 | This configure script is free software; the Free Software Foundation | |
1145 | gives unlimited permission to copy, distribute and modify it. | |
1146 | _ACEOF | |
1147 | exit 0 | |
7c66a493 | 1148 | fi |
e6cc62c6 VS |
1149 | exec 5>config.log |
1150 | cat >&5 <<_ACEOF | |
1151 | This file contains any messages produced by compilers while | |
1152 | running configure, to aid debugging if configure makes a mistake. | |
1153 | ||
1154 | It was created by wxWindows $as_me 2.5.0, which was | |
1155 | generated by GNU Autoconf 2.57. Invocation command line was | |
1156 | ||
1157 | $ $0 $@ | |
1158 | ||
1159 | _ACEOF | |
1160 | { | |
1161 | cat <<_ASUNAME | |
1162 | ## --------- ## | |
1163 | ## Platform. ## | |
1164 | ## --------- ## | |
1165 | ||
1166 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1167 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1168 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1169 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1170 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1171 | ||
1172 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1173 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1174 | ||
1175 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1176 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1177 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1178 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1179 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1180 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1181 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1182 | ||
1183 | _ASUNAME | |
1184 | ||
1185 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1186 | for as_dir in $PATH | |
1187 | do | |
1188 | IFS=$as_save_IFS | |
1189 | test -z "$as_dir" && as_dir=. | |
1190 | echo "PATH: $as_dir" | |
1191 | done | |
1192 | ||
1193 | } >&5 | |
1194 | ||
1195 | cat >&5 <<_ACEOF | |
1196 | ||
1197 | ||
1198 | ## ----------- ## | |
1199 | ## Core tests. ## | |
1200 | ## ----------- ## | |
1201 | ||
1202 | _ACEOF | |
1203 | ||
1204 | ||
1205 | # Keep a trace of the command line. | |
1206 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1207 | # Strip out --silent because we don't want to record it for future runs. | |
1208 | # Also quote any args containing shell meta-characters. | |
1209 | # Make two passes to allow for proper duplicate-argument suppression. | |
1210 | ac_configure_args= | |
1211 | ac_configure_args0= | |
1212 | ac_configure_args1= | |
1213 | ac_sep= | |
1214 | ac_must_keep_next=false | |
1215 | for ac_pass in 1 2 | |
1216 | do | |
1217 | for ac_arg | |
1218 | do | |
1219 | case $ac_arg in | |
1220 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1221 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1222 | | -silent | --silent | --silen | --sile | --sil) | |
1223 | continue ;; | |
1224 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1225 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1226 | esac | |
1227 | case $ac_pass in | |
1228 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1229 | 2) | |
1230 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1231 | if test $ac_must_keep_next = true; then | |
1232 | ac_must_keep_next=false # Got value, back to normal. | |
1233 | else | |
1234 | case $ac_arg in | |
1235 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1236 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1237 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1238 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1239 | case "$ac_configure_args0 " in | |
1240 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1241 | esac | |
1242 | ;; | |
1243 | -* ) ac_must_keep_next=true ;; | |
1244 | esac | |
1245 | fi | |
1246 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1247 | # Get rid of the leading space. | |
1248 | ac_sep=" " | |
1249 | ;; | |
1250 | esac | |
1251 | done | |
1252 | done | |
1253 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1254 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1255 | ||
1256 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1257 | # config.log. We remove comments because anyway the quotes in there | |
1258 | # would cause problems or look ugly. | |
1259 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1260 | # such as our DU 5.0 friend, will then `close' the trap. | |
1261 | trap 'exit_status=$? | |
1262 | # Save into config.log some information that might help in debugging. | |
1263 | { | |
1264 | echo | |
1265 | ||
1266 | cat <<\_ASBOX | |
1267 | ## ---------------- ## | |
1268 | ## Cache variables. ## | |
1269 | ## ---------------- ## | |
1270 | _ASBOX | |
1271 | echo | |
1272 | # The following way of writing the cache mishandles newlines in values, | |
1273 | { | |
1274 | (set) 2>&1 | | |
1275 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1276 | *ac_space=\ *) | |
1277 | sed -n \ | |
1278 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1279 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1280 | ;; | |
1281 | *) | |
1282 | sed -n \ | |
1283 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1284 | ;; | |
1285 | esac; | |
1286 | } | |
1287 | echo | |
1288 | ||
1289 | cat <<\_ASBOX | |
1290 | ## ----------------- ## | |
1291 | ## Output variables. ## | |
1292 | ## ----------------- ## | |
1293 | _ASBOX | |
1294 | echo | |
1295 | for ac_var in $ac_subst_vars | |
1296 | do | |
1297 | eval ac_val=$`echo $ac_var` | |
1298 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1299 | done | sort | |
1300 | echo | |
1301 | ||
1302 | if test -n "$ac_subst_files"; then | |
1303 | cat <<\_ASBOX | |
1304 | ## ------------- ## | |
1305 | ## Output files. ## | |
1306 | ## ------------- ## | |
1307 | _ASBOX | |
1308 | echo | |
1309 | for ac_var in $ac_subst_files | |
1310 | do | |
1311 | eval ac_val=$`echo $ac_var` | |
1312 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1313 | done | sort | |
1314 | echo | |
1315 | fi | |
1316 | ||
1317 | if test -s confdefs.h; then | |
1318 | cat <<\_ASBOX | |
1319 | ## ----------- ## | |
1320 | ## confdefs.h. ## | |
1321 | ## ----------- ## | |
1322 | _ASBOX | |
1323 | echo | |
1324 | sed "/^$/d" confdefs.h | sort | |
1325 | echo | |
1326 | fi | |
1327 | test "$ac_signal" != 0 && | |
1328 | echo "$as_me: caught signal $ac_signal" | |
1329 | echo "$as_me: exit $exit_status" | |
1330 | } >&5 | |
1331 | rm -f core core.* *.core && | |
1332 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1333 | exit $exit_status | |
1334 | ' 0 | |
1335 | for ac_signal in 1 2 13 15; do | |
1336 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1337 | done | |
1338 | ac_signal=0 | |
1339 | ||
1340 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1341 | rm -rf conftest* confdefs.h | |
1342 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1343 | echo >confdefs.h | |
1344 | ||
1345 | # Predefined preprocessor variables. | |
1346 | ||
1347 | cat >>confdefs.h <<_ACEOF | |
1348 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1349 | _ACEOF | |
1350 | ||
1351 | ||
1352 | cat >>confdefs.h <<_ACEOF | |
1353 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1354 | _ACEOF | |
1355 | ||
1356 | ||
1357 | cat >>confdefs.h <<_ACEOF | |
1358 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1359 | _ACEOF | |
1360 | ||
1361 | ||
1362 | cat >>confdefs.h <<_ACEOF | |
1363 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1364 | _ACEOF | |
1365 | ||
1366 | ||
1367 | cat >>confdefs.h <<_ACEOF | |
1368 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1369 | _ACEOF | |
1370 | ||
1371 | ||
1372 | # Let the site file select an alternate cache file if it wants to. | |
1373 | # Prefer explicitly selected file to automatically selected ones. | |
1374 | if test -z "$CONFIG_SITE"; then | |
1375 | if test "x$prefix" != xNONE; then | |
1376 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1377 | else | |
1378 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1379 | fi | |
1380 | fi | |
1381 | for ac_site_file in $CONFIG_SITE; do | |
1382 | if test -r "$ac_site_file"; then | |
1383 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1384 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1385 | sed 's/^/| /' "$ac_site_file" >&5 | |
1386 | . "$ac_site_file" | |
1387 | fi | |
1388 | done | |
1389 | ||
1390 | if test -r "$cache_file"; then | |
1391 | # Some versions of bash will fail to source /dev/null (special | |
1392 | # files actually), so we avoid doing that. | |
1393 | if test -f "$cache_file"; then | |
1394 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1395 | echo "$as_me: loading cache $cache_file" >&6;} | |
1396 | case $cache_file in | |
1397 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1398 | *) . ./$cache_file;; | |
1399 | esac | |
1400 | fi | |
1401 | else | |
1402 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1403 | echo "$as_me: creating cache $cache_file" >&6;} | |
1404 | >$cache_file | |
1405 | fi | |
1406 | ||
1407 | # Check that the precious variables saved in the cache have kept the same | |
1408 | # value. | |
1409 | ac_cache_corrupted=false | |
1410 | for ac_var in `(set) 2>&1 | | |
1411 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1412 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1413 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1414 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1415 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1416 | case $ac_old_set,$ac_new_set in | |
1417 | set,) | |
1418 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1419 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1420 | ac_cache_corrupted=: ;; | |
1421 | ,set) | |
1422 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1423 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1424 | ac_cache_corrupted=: ;; | |
1425 | ,);; | |
1426 | *) | |
1427 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1428 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1429 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1430 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1431 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1432 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1433 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1434 | ac_cache_corrupted=: | |
1435 | fi;; | |
1436 | esac | |
1437 | # Pass precious variables to config.status. | |
1438 | if test "$ac_new_set" = set; then | |
1439 | case $ac_new_val in | |
1440 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1441 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1442 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1443 | esac | |
1444 | case " $ac_configure_args " in | |
1445 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1446 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1447 | esac | |
1448 | fi | |
1449 | done | |
1450 | if $ac_cache_corrupted; then | |
1451 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1452 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1453 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1454 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1455 | { (exit 1); exit 1; }; } | |
1456 | fi | |
1457 | ||
1458 | ac_ext=c | |
1459 | ac_cpp='$CPP $CPPFLAGS' | |
1460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1463 | ||
1464 | ||
1465 | ||
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
698dcdb6 | 1480 | |
8284b0c5 | 1481 | |
7c66a493 | 1482 | |
a0b9e27f MB |
1483 | |
1484 | ||
a0b9e27f | 1485 | |
a0b9e27f | 1486 | |
a0b9e27f | 1487 | |
a0b9e27f | 1488 | |
a0b9e27f | 1489 | |
a0b9e27f | 1490 | |
e6cc62c6 VS |
1491 | |
1492 | ||
1493 | ac_aux_dir= | |
1494 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1495 | if test -f $ac_dir/install-sh; then | |
1496 | ac_aux_dir=$ac_dir | |
1497 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1498 | break | |
1499 | elif test -f $ac_dir/install.sh; then | |
1500 | ac_aux_dir=$ac_dir | |
1501 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1502 | break | |
1503 | elif test -f $ac_dir/shtool; then | |
1504 | ac_aux_dir=$ac_dir | |
1505 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1506 | break | |
1507 | fi | |
1508 | done | |
1509 | if test -z "$ac_aux_dir"; then | |
1510 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1511 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1512 | { (exit 1); exit 1; }; } | |
1513 | fi | |
1514 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1515 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1516 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1517 | ||
1518 | # Make sure we can run config.sub. | |
1519 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1520 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1521 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1522 | { (exit 1); exit 1; }; } | |
1523 | ||
1524 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1525 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1526 | if test "${ac_cv_build+set}" = set; then | |
1527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1528 | else | |
1529 | ac_cv_build_alias=$build_alias | |
1530 | test -z "$ac_cv_build_alias" && | |
1531 | ac_cv_build_alias=`$ac_config_guess` | |
1532 | test -z "$ac_cv_build_alias" && | |
1533 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1534 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1535 | { (exit 1); exit 1; }; } | |
1536 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1537 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1538 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1539 | { (exit 1); exit 1; }; } | |
1540 | ||
1541 | fi | |
1542 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1543 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1544 | build=$ac_cv_build | |
1545 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1546 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1547 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1548 | ||
1549 | ||
1550 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1551 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1552 | if test "${ac_cv_host+set}" = set; then | |
1553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1554 | else | |
1555 | ac_cv_host_alias=$host_alias | |
1556 | test -z "$ac_cv_host_alias" && | |
1557 | ac_cv_host_alias=$ac_cv_build_alias | |
1558 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1559 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1560 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1561 | { (exit 1); exit 1; }; } | |
1562 | ||
1563 | fi | |
1564 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1565 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1566 | host=$ac_cv_host | |
1567 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1568 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1569 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1570 | ||
1571 | ||
1572 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1573 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1574 | if test "${ac_cv_target+set}" = set; then | |
1575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1576 | else | |
1577 | ac_cv_target_alias=$target_alias | |
1578 | test "x$ac_cv_target_alias" = "x" && | |
1579 | ac_cv_target_alias=$ac_cv_host_alias | |
1580 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1581 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1582 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1583 | { (exit 1); exit 1; }; } | |
1584 | ||
1585 | fi | |
1586 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1587 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1588 | target=$ac_cv_target | |
1589 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1590 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1591 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1592 | ||
1593 | ||
1594 | # The aliases save the names the user supplied, while $host etc. | |
1595 | # will get canonicalized. | |
1596 | test -n "$target_alias" && | |
7c66a493 VZ |
1597 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1598 | NONENONEs,x,x, && | |
1599 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1600 | |
1601 | ||
a0b9e27f | 1602 | |
10f2d63a | 1603 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 VZ |
1604 | WX_MINOR_VERSION_NUMBER=5 |
1605 | WX_RELEASE_NUMBER=0 | |
10f2d63a | 1606 | |
10f2d63a | 1607 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1608 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1609 | |
978f1259 RL |
1610 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1611 | ||
34bed6d9 | 1612 | WX_CURRENT=0 |
6426998c RL |
1613 | WX_REVISION=0 |
1614 | WX_AGE=0 | |
1615 | ||
8284b0c5 MB |
1616 | |
1617 | ||
10f2d63a | 1618 | USE_UNIX=1 |
73d617c9 | 1619 | USE_OS2=0 |
10f2d63a | 1620 | USE_WIN32=0 |
f9bc1684 | 1621 | USE_DOS=0 |
b12915c1 | 1622 | USE_BEOS=0 |
1216f52d | 1623 | USE_MAC=0 |
b12915c1 | 1624 | |
10f2d63a | 1625 | USE_AIX= |
fe0895cf VS |
1626 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1627 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1628 | USE_LINUX= |
f6bcfd97 | 1629 | USE_NETBSD= |
89e3b3e4 | 1630 | USE_OPENBSD= |
fe0895cf VS |
1631 | USE_OSF= USE_SGI= |
1632 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1633 | USE_ULTRIX= |
89e3b3e4 VZ |
1634 | USE_UNIXWARE= |
1635 | ||
1636 | USE_ALPHA= | |
10f2d63a | 1637 | |
ab9b9eab VZ |
1638 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1639 | ||
ac0c4cc3 | 1640 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1641 | |
ac0c4cc3 | 1642 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1643 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1644 | DEFAULT_wxUSE_MAC=0 |
1645 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1646 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1647 | DEFAULT_wxUSE_MOTIF=0 |
1648 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1649 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1650 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1651 | |
ac0c4cc3 | 1652 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1653 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1654 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1655 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1656 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1657 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1658 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1659 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1660 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1661 | |
d6a55c4b | 1662 | PROGRAM_EXT= |
3a922bb4 | 1663 | SO_SUFFIX=so |
fe0895cf | 1664 | SAMPLES_RPATH_FLAG= |
0f1bc9c2 | 1665 | SAMPLES_RPATH_POSTLINK= |
d6a55c4b | 1666 | |
10f2d63a VZ |
1667 | case "${host}" in |
1668 | *-hp-hpux* ) | |
1669 | USE_HPUX=1 | |
1670 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1671 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1672 | SO_SUFFIX=sl |
e6cc62c6 | 1673 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1674 | #define __HPUX__ 1 |
e6cc62c6 | 1675 | _ACEOF |
10f2d63a VZ |
1676 | |
1677 | ;; | |
1678 | *-*-linux* ) | |
1679 | USE_LINUX=1 | |
e6cc62c6 | 1680 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1681 | #define __LINUX__ 1 |
e6cc62c6 | 1682 | _ACEOF |
10f2d63a VZ |
1683 | |
1684 | TMP=`uname -m` | |
1685 | if test "x$TMP" = "xalpha"; then | |
1686 | USE_ALPHA=1 | |
e6cc62c6 | 1687 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1688 | #define __ALPHA__ 1 |
e6cc62c6 | 1689 | _ACEOF |
fe0895cf VS |
1690 | |
1691 | fi | |
1692 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1693 | ;; | |
1694 | *-*-gnu* ) | |
1695 | USE_GNU=1 | |
e6cc62c6 | 1696 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1697 | #define __GNU__ 1 |
e6cc62c6 | 1698 | _ACEOF |
fe0895cf VS |
1699 | |
1700 | TMP=`uname -m` | |
1701 | if test "x$TMP" = "xalpha"; then | |
1702 | USE_ALPHA=1 | |
e6cc62c6 | 1703 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1704 | #define __ALPHA__ 1 |
e6cc62c6 | 1705 | _ACEOF |
10f2d63a VZ |
1706 | |
1707 | fi | |
1708 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1709 | ;; | |
1710 | *-*-irix5* | *-*-irix6* ) | |
1711 | USE_SGI=1 | |
1712 | USE_SVR4=1 | |
e6cc62c6 | 1713 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1714 | #define __SGI__ 1 |
e6cc62c6 | 1715 | _ACEOF |
10f2d63a | 1716 | |
e6cc62c6 | 1717 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1718 | #define __SVR4__ 1 |
e6cc62c6 | 1719 | _ACEOF |
10f2d63a VZ |
1720 | |
1721 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1722 | ;; | |
1723 | *-*-solaris2* ) | |
1724 | USE_SUN=1 | |
1725 | USE_SOLARIS=1 | |
1726 | USE_SVR4=1 | |
e6cc62c6 | 1727 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1728 | #define __SUN__ 1 |
e6cc62c6 | 1729 | _ACEOF |
10f2d63a | 1730 | |
e6cc62c6 | 1731 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1732 | #define __SOLARIS__ 1 |
e6cc62c6 | 1733 | _ACEOF |
10f2d63a | 1734 | |
e6cc62c6 | 1735 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1736 | #define __SVR4__ 1 |
e6cc62c6 | 1737 | _ACEOF |
10f2d63a VZ |
1738 | |
1739 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1740 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1741 | ;; |
1742 | *-*-sunos4* ) | |
1743 | USE_SUN=1 | |
1744 | USE_SUNOS=1 | |
1745 | USE_BSD=1 | |
e6cc62c6 | 1746 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1747 | #define __SUN__ 1 |
e6cc62c6 | 1748 | _ACEOF |
10f2d63a | 1749 | |
e6cc62c6 | 1750 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1751 | #define __SUNOS__ 1 |
e6cc62c6 | 1752 | _ACEOF |
10f2d63a | 1753 | |
e6cc62c6 | 1754 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1755 | #define __BSD__ 1 |
e6cc62c6 | 1756 | _ACEOF |
10f2d63a VZ |
1757 | |
1758 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1759 | ;; | |
f6bcfd97 | 1760 | *-*-freebsd*) |
10f2d63a VZ |
1761 | USE_BSD=1 |
1762 | USE_FREEBSD=1 | |
e6cc62c6 | 1763 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1764 | #define __FREEBSD__ 1 |
e6cc62c6 | 1765 | _ACEOF |
10f2d63a | 1766 | |
e6cc62c6 | 1767 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1768 | #define __BSD__ 1 |
e6cc62c6 | 1769 | _ACEOF |
95c8801c VS |
1770 | |
1771 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1772 | ;; | |
1773 | *-*-openbsd*) | |
1774 | USE_BSD=1 | |
1775 | USE_OPENBSD=1 | |
e6cc62c6 | 1776 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1777 | #define __OPENBSD__ 1 |
e6cc62c6 | 1778 | _ACEOF |
95c8801c | 1779 | |
e6cc62c6 | 1780 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1781 | #define __BSD__ 1 |
e6cc62c6 | 1782 | _ACEOF |
f6bcfd97 BP |
1783 | |
1784 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1785 | ;; | |
1786 | *-*-netbsd*) | |
1787 | USE_BSD=1 | |
1788 | USE_NETBSD=1 | |
e6cc62c6 | 1789 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1790 | #define __NETBSD__ 1 |
e6cc62c6 | 1791 | _ACEOF |
f6bcfd97 | 1792 | |
e6cc62c6 | 1793 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1794 | #define __BSD__ 1 |
e6cc62c6 | 1795 | _ACEOF |
10f2d63a VZ |
1796 | |
1797 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1798 | ;; | |
1799 | *-*-osf* ) | |
1800 | USE_ALPHA=1 | |
1801 | USE_OSF=1 | |
e6cc62c6 | 1802 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1803 | #define __ALPHA__ 1 |
e6cc62c6 | 1804 | _ACEOF |
10f2d63a | 1805 | |
e6cc62c6 | 1806 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1807 | #define __OSF__ 1 |
e6cc62c6 | 1808 | _ACEOF |
10f2d63a VZ |
1809 | |
1810 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1811 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1812 | ;; |
1813 | *-*-dgux5* ) | |
1814 | USE_ALPHA=1 | |
1815 | USE_SVR4=1 | |
e6cc62c6 | 1816 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1817 | #define __ALPHA__ 1 |
e6cc62c6 | 1818 | _ACEOF |
10f2d63a | 1819 | |
e6cc62c6 | 1820 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1821 | #define __SVR4__ 1 |
e6cc62c6 | 1822 | _ACEOF |
10f2d63a VZ |
1823 | |
1824 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1825 | ;; | |
1826 | *-*-sysv5* ) | |
1827 | USE_SYSV=1 | |
1828 | USE_SVR4=1 | |
e6cc62c6 | 1829 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1830 | #define __SYSV__ 1 |
e6cc62c6 | 1831 | _ACEOF |
10f2d63a | 1832 | |
e6cc62c6 | 1833 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1834 | #define __SVR4__ 1 |
e6cc62c6 | 1835 | _ACEOF |
10f2d63a VZ |
1836 | |
1837 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1838 | ;; | |
1839 | *-*-aix* ) | |
1840 | USE_AIX=1 | |
1841 | USE_SYSV=1 | |
1842 | USE_SVR4=1 | |
2b5f62a0 | 1843 | SO_SUFFIX=a |
e6cc62c6 | 1844 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1845 | #define __AIX__ 1 |
e6cc62c6 | 1846 | _ACEOF |
10f2d63a | 1847 | |
e6cc62c6 | 1848 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1849 | #define __SYSV__ 1 |
e6cc62c6 | 1850 | _ACEOF |
10f2d63a | 1851 | |
e6cc62c6 | 1852 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1853 | #define __SVR4__ 1 |
e6cc62c6 | 1854 | _ACEOF |
10f2d63a VZ |
1855 | |
1856 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1857 | ;; | |
1858 | ||
89e3b3e4 VZ |
1859 | *-*-*UnixWare*) |
1860 | USE_SYSV=1 | |
1861 | USE_SVR4=1 | |
1862 | USE_UNIXWARE=1 | |
e6cc62c6 | 1863 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1864 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1865 | _ACEOF |
89e3b3e4 VZ |
1866 | |
1867 | ;; | |
1868 | ||
1c8183e2 | 1869 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1870 | SO_SUFFIX=dll |
cf27ef00 | 1871 | PROGRAM_EXT=".exe" |
7b7a7637 | 1872 | RESCOMP=windres |
10f2d63a VZ |
1873 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1874 | ;; | |
1875 | ||
f9bc1684 VS |
1876 | *-pc-msdosdjgpp ) |
1877 | USE_UNIX=0 | |
1878 | USE_DOS=1 | |
e6cc62c6 | 1879 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1880 | #define __DOS__ 1 |
e6cc62c6 | 1881 | _ACEOF |
f9bc1684 VS |
1882 | |
1883 | PROGRAM_EXT=".exe" | |
1884 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1885 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1886 | ;; |
1887 | ||
6fa882bd | 1888 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1889 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1890 | #define __EMX__ 1 |
e6cc62c6 | 1891 | _ACEOF |
10f2d63a | 1892 | |
73d617c9 | 1893 | USE_OS2=1 |
cf27ef00 | 1894 | PROGRAM_EXT=".exe" |
e07802fc | 1895 | DEFAULT_DEFAULT_wxUSE_PM=1 |
eb69fda5 | 1896 | CXX=gcc |
73d617c9 | 1897 | LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals" |
d5fc095c VS |
1898 | ac_executable_extensions=".exe" |
1899 | export ac_executable_extensions | |
1900 | ac_save_IFS="$IFS" | |
1901 | IFS="\\" | |
1902 | ac_TEMP_PATH= | |
1903 | for ac_dir in $PATH; do | |
1904 | IFS=$ac_save_IFS | |
1905 | if test -z "$ac_TEMP_PATH"; then | |
1906 | ac_TEMP_PATH="$ac_dir" | |
1907 | else | |
1908 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1909 | fi | |
1910 | done | |
1911 | export PATH="$ac_TEMP_PATH" | |
1912 | unset ac_TEMP_PATH | |
10f2d63a VZ |
1913 | ;; |
1914 | ||
d08b457b GD |
1915 | powerpc-*-darwin* ) |
1916 | USE_BSD=1 | |
f11bdd03 | 1917 | USE_DARWIN=1 |
3a922bb4 | 1918 | SO_SUFFIX=dylib |
e6cc62c6 | 1919 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1920 | #define __BSD__ 1 |
e6cc62c6 | 1921 | _ACEOF |
b4085ce6 | 1922 | |
e6cc62c6 | 1923 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1924 | #define __DARWIN__ 1 |
e6cc62c6 | 1925 | _ACEOF |
d08b457b | 1926 | |
e6cc62c6 | 1927 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1928 | #define __POWERPC__ 1 |
e6cc62c6 | 1929 | _ACEOF |
82d43113 | 1930 | |
e6cc62c6 | 1931 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1932 | #define TARGET_CARBON 1 |
e6cc62c6 | 1933 | _ACEOF |
b4085ce6 GD |
1934 | |
1935 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1936 | ;; | |
1937 | ||
b12915c1 VZ |
1938 | *-*-beos* ) |
1939 | USE_BEOS=1 | |
e6cc62c6 | 1940 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1941 | #define __BEOS__ 1 |
e6cc62c6 | 1942 | _ACEOF |
b12915c1 VZ |
1943 | |
1944 | ;; | |
1945 | ||
10f2d63a | 1946 | *) |
e6cc62c6 VS |
1947 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1948 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1949 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1950 | esac |
1951 | ||
8284b0c5 MB |
1952 | |
1953 | ||
1954 | ||
1955 | wx_arg_cache_file="configarg.cache" | |
1956 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1957 | rm -f ${wx_arg_cache_file}.tmp |
1958 | touch ${wx_arg_cache_file}.tmp | |
1959 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 1960 | |
10f2d63a VZ |
1961 | |
1962 | DEBUG_CONFIGURE=0 | |
1963 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 1964 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 1965 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 1966 | |
d8356fa3 VZ |
1967 | DEFAULT_wxUSE_NANOX=no |
1968 | ||
10f2d63a VZ |
1969 | DEFAULT_wxUSE_THREADS=yes |
1970 | ||
1971 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 1972 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1973 | DEFAULT_wxUSE_PROFILE=no |
1974 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1975 | DEFAULT_wxUSE_NO_RTTI=no |
1976 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1977 | DEFAULT_wxUSE_PERMISSIVE=no |
1978 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1979 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1980 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1981 | DEFAULT_wxUSE_MEM_TRACING=no | |
1982 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1983 | DEFAULT_wxUSE_DMALLOC=no | |
1984 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1985 | ||
1986 | DEFAULT_wxUSE_LOG=yes | |
1e6feb95 VZ |
1987 | DEFAULT_wxUSE_LOGWINDOW=no |
1988 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1989 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1990 | |
1991 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 1992 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 1993 | |
3e44f09d | 1994 | DEFAULT_wxUSE_REGEX=no |
672abd7a VS |
1995 | DEFAULT_wxUSE_XML=no |
1996 | DEFAULT_wxUSE_EXPAT=no | |
10f2d63a VZ |
1997 | DEFAULT_wxUSE_ZLIB=no |
1998 | DEFAULT_wxUSE_LIBPNG=no | |
1999 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 2000 | DEFAULT_wxUSE_LIBTIFF=no |
10f2d63a | 2001 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2002 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2003 | |
eb4efbdc | 2004 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 2005 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 2006 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2007 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2008 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
2009 | DEFAULT_wxUSE_TIMER=no |
2010 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 2011 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 2012 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 2013 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 2014 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
2015 | DEFAULT_wxUSE_WAVE=no |
2016 | DEFAULT_wxUSE_INTL=no | |
2017 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 2018 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
2019 | DEFAULT_wxUSE_STREAMS=no |
2020 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
2021 | DEFAULT_wxUSE_OLE=no |
2022 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 2023 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 2024 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2025 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2026 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2027 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2028 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2029 | |
2030 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2031 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2032 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2033 | ||
10f2d63a VZ |
2034 | DEFAULT_wxUSE_CLIPBOARD=no |
2035 | DEFAULT_wxUSE_TOOLTIPS=no | |
2036 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2037 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2038 | DEFAULT_wxUSE_SPLINES=no |
2039 | ||
2040 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2041 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2042 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2043 | ||
10f2d63a VZ |
2044 | DEFAULT_wxUSE_RESOURCES=no |
2045 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2046 | DEFAULT_wxUSE_IPC=no | |
2047 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2048 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2049 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2050 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2051 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2052 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2053 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2054 | DEFAULT_wxUSE_PROTOCOL=no | |
2055 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2056 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2057 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2058 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2059 | |
10f2d63a | 2060 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2061 | DEFAULT_wxUSE_CHOICEDLG=no |
2062 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2063 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2064 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2065 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2066 | DEFAULT_wxUSE_FONTDLG=no |
2067 | DEFAULT_wxUSE_MSGDLG=no | |
2068 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2069 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2070 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2071 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2072 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2073 | DEFAULT_wxUSE_WIZARDDLG=no |
2074 | ||
1e6feb95 | 2075 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2076 | DEFAULT_wxUSE_MINIFRAME=no |
2077 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2078 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2079 | DEFAULT_wxUSE_FS_INET=no |
2080 | DEFAULT_wxUSE_FS_ZIP=no | |
2081 | DEFAULT_wxUSE_BUSYINFO=no | |
2082 | DEFAULT_wxUSE_ZIPSTREAM=no | |
1e6feb95 | 2083 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2084 | |
2085 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2086 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2087 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2088 | DEFAULT_wxUSE_CALCTRL=no |
2089 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2090 | DEFAULT_wxUSE_CHECKBOX=no |
2091 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2092 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2093 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2094 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2095 | DEFAULT_wxUSE_GAUGE=no |
2096 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 2097 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 2098 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
2099 | DEFAULT_wxUSE_LISTBOX=no |
2100 | DEFAULT_wxUSE_LISTCTRL=no | |
2101 | DEFAULT_wxUSE_NOTEBOOK=no | |
2102 | DEFAULT_wxUSE_RADIOBOX=no | |
2103 | DEFAULT_wxUSE_RADIOBTN=no | |
2104 | DEFAULT_wxUSE_SASH=no | |
2105 | DEFAULT_wxUSE_SCROLLBAR=no | |
2106 | DEFAULT_wxUSE_SLIDER=no | |
2107 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2108 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2109 | DEFAULT_wxUSE_SPLITTER=no |
2110 | DEFAULT_wxUSE_STATBMP=no | |
2111 | DEFAULT_wxUSE_STATBOX=no | |
2112 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2113 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2114 | DEFAULT_wxUSE_STATUSBAR=yes |
2115 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2116 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2117 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2118 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2119 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2120 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2121 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2122 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2123 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2124 | |
2125 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2126 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2127 | DEFAULT_wxUSE_WCSRTOMBS=no |
2128 | ||
edae8572 | 2129 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2130 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2131 | DEFAULT_wxUSE_GIF=no |
2132 | DEFAULT_wxUSE_PCX=no | |
2133 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2134 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2135 | DEFAULT_wxUSE_XPM=no |
658974ae | 2136 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2137 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2138 | |
e9e0dc15 | 2139 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2140 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a | 2141 | else |
1e6feb95 | 2142 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2143 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2144 | |
d8356fa3 VZ |
2145 | DEFAULT_wxUSE_NANOX=no |
2146 | ||
10f2d63a VZ |
2147 | DEFAULT_wxUSE_THREADS=yes |
2148 | ||
2149 | DEFAULT_wxUSE_SHARED=yes | |
2150 | DEFAULT_wxUSE_OPTIMISE=yes | |
2151 | DEFAULT_wxUSE_PROFILE=no | |
2152 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2153 | DEFAULT_wxUSE_NO_RTTI=no |
2154 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2155 | DEFAULT_wxUSE_PERMISSIVE=no |
2156 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2157 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2158 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2159 | DEFAULT_wxUSE_MEM_TRACING=no | |
2160 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2161 | DEFAULT_wxUSE_DMALLOC=no | |
2162 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2163 | ||
2164 | DEFAULT_wxUSE_LOG=yes | |
d73be714 VZ |
2165 | DEFAULT_wxUSE_LOGWINDOW=yes |
2166 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2167 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2168 | |
2169 | DEFAULT_wxUSE_GUI=yes | |
2170 | ||
831b3152 | 2171 | DEFAULT_wxUSE_REGEX=yes |
672abd7a VS |
2172 | DEFAULT_wxUSE_XML=yes |
2173 | DEFAULT_wxUSE_EXPAT=yes | |
10f2d63a VZ |
2174 | DEFAULT_wxUSE_ZLIB=yes |
2175 | DEFAULT_wxUSE_LIBPNG=yes | |
2176 | DEFAULT_wxUSE_LIBJPEG=yes | |
b47c832e | 2177 | DEFAULT_wxUSE_LIBTIFF=yes |
16b52fa1 | 2178 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2179 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2180 | |
eb4efbdc | 2181 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2182 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2183 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2184 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2185 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2186 | DEFAULT_wxUSE_TIMER=yes |
2187 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2188 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2189 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2190 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2191 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
2192 | DEFAULT_wxUSE_WAVE=no |
2193 | DEFAULT_wxUSE_INTL=yes | |
2194 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2195 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2196 | DEFAULT_wxUSE_STREAMS=yes |
2197 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2198 | DEFAULT_wxUSE_OLE=yes |
2199 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2200 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2201 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2202 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2203 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2204 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2205 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2206 | |
2207 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2208 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2209 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2210 | ||
10f2d63a VZ |
2211 | DEFAULT_wxUSE_CLIPBOARD=yes |
2212 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2213 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2214 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2215 | DEFAULT_wxUSE_SPLINES=yes |
2216 | ||
2217 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2218 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2219 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2220 | ||
2b5f62a0 | 2221 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2222 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2223 | DEFAULT_wxUSE_IPC=yes | |
2224 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2225 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2226 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2227 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2228 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2229 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2230 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2231 | DEFAULT_wxUSE_PROTOCOL=yes |
2232 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2233 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2234 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2235 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2236 | |
2237 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2238 | DEFAULT_wxUSE_CHOICEDLG=yes |
2239 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2240 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2241 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2242 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2243 | DEFAULT_wxUSE_FONTDLG=yes |
2244 | DEFAULT_wxUSE_MSGDLG=yes | |
2245 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2246 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2247 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2248 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2249 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2250 | DEFAULT_wxUSE_WIZARDDLG=yes |
2251 | ||
1e6feb95 | 2252 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2253 | DEFAULT_wxUSE_MINIFRAME=yes |
2254 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2255 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2256 | DEFAULT_wxUSE_FS_INET=yes |
2257 | DEFAULT_wxUSE_FS_ZIP=yes | |
2258 | DEFAULT_wxUSE_BUSYINFO=yes | |
2259 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
2260 | DEFAULT_wxUSE_VALIDATORS=yes | |
2261 | ||
2262 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2263 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2264 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2265 | DEFAULT_wxUSE_CALCTRL=yes |
2266 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2267 | DEFAULT_wxUSE_CHECKBOX=yes |
2268 | DEFAULT_wxUSE_CHECKLST=yes | |
2269 | DEFAULT_wxUSE_CHOICE=yes | |
2270 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2271 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2272 | DEFAULT_wxUSE_GAUGE=yes |
2273 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 2274 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 2275 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
2276 | DEFAULT_wxUSE_LISTBOX=yes |
2277 | DEFAULT_wxUSE_LISTCTRL=yes | |
2278 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2279 | DEFAULT_wxUSE_RADIOBOX=yes | |
2280 | DEFAULT_wxUSE_RADIOBTN=yes | |
2281 | DEFAULT_wxUSE_SASH=yes | |
2282 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2283 | DEFAULT_wxUSE_SLIDER=yes | |
2284 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2285 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2286 | DEFAULT_wxUSE_SPLITTER=yes |
2287 | DEFAULT_wxUSE_STATBMP=yes | |
2288 | DEFAULT_wxUSE_STATBOX=yes | |
2289 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2290 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2291 | DEFAULT_wxUSE_STATUSBAR=yes |
2292 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2293 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2294 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2295 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2296 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2297 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2298 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2299 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2300 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2301 | |
2302 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2303 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2304 | DEFAULT_wxUSE_WCSRTOMBS=no |
2305 | ||
edae8572 | 2306 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2307 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2308 | DEFAULT_wxUSE_GIF=yes |
2309 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2310 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2311 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2312 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2313 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2314 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2315 | |
e9e0dc15 | 2316 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2317 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a VZ |
2318 | fi |
2319 | ||
8284b0c5 MB |
2320 | |
2321 | ||
10f2d63a | 2322 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2323 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2324 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2325 | has_toolkit_in_cache=1 |
2326 | eval "DEFAULT_$LINE" | |
2327 | eval "CACHE_$toolkit=1" | |
2328 | fi | |
2329 | done | |
2330 | ||
8284b0c5 MB |
2331 | |
2332 | ||
5005acfe | 2333 | enablestring= |
e6cc62c6 VS |
2334 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2335 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2336 | no_cache=0 |
2337 | # Check whether --enable-gui or --disable-gui was given. | |
2338 | if test "${enable_gui+set}" = set; then | |
2339 | enableval="$enable_gui" | |
e6cc62c6 | 2340 | |
10f2d63a VZ |
2341 | if test "$enableval" = yes; then |
2342 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2343 | else | |
2344 | ac_cv_use_gui='wxUSE_GUI=no' | |
2345 | fi | |
e6cc62c6 | 2346 | |
10f2d63a | 2347 | else |
e6cc62c6 | 2348 | |
10f2d63a VZ |
2349 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2350 | if test "x$LINE" != x ; then | |
2351 | eval "DEFAULT_$LINE" | |
2352 | else | |
2353 | no_cache=1 | |
2354 | fi | |
2355 | ||
2356 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2357 | |
e6cc62c6 | 2358 | fi; |
10f2d63a VZ |
2359 | |
2360 | eval "$ac_cv_use_gui" | |
2361 | if test "$no_cache" != 1; then | |
2362 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2363 | fi | |
2364 | ||
2365 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2366 | echo "$as_me:$LINENO: result: yes" >&5 |
2367 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2368 | else |
e6cc62c6 VS |
2369 | echo "$as_me:$LINENO: result: no" >&5 |
2370 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2371 | fi |
e6cc62c6 | 2372 | |
10f2d63a | 2373 | |
9747f85d VS |
2374 | enablestring= |
2375 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2376 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2377 | no_cache=0 | |
2378 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2379 | if test "${enable_monolithic+set}" = set; then | |
2380 | enableval="$enable_monolithic" | |
2381 | ||
2382 | if test "$enableval" = yes; then | |
2383 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2384 | else | |
2385 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2386 | fi | |
2387 | ||
2388 | else | |
2389 | ||
2390 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2391 | if test "x$LINE" != x ; then | |
2392 | eval "DEFAULT_$LINE" | |
2393 | else | |
2394 | no_cache=1 | |
2395 | fi | |
2396 | ||
2397 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2398 | ||
2399 | fi; | |
2400 | ||
2401 | eval "$ac_cv_use_monolithic" | |
2402 | if test "$no_cache" != 1; then | |
2403 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2404 | fi | |
2405 | ||
2406 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2407 | echo "$as_me:$LINENO: result: yes" >&5 | |
2408 | echo "${ECHO_T}yes" >&6 | |
2409 | else | |
2410 | echo "$as_me:$LINENO: result: no" >&5 | |
2411 | echo "${ECHO_T}no" >&6 | |
2412 | fi | |
2413 | ||
2414 | ||
b12915c1 | 2415 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2416 | |
8284b0c5 | 2417 | |
5005acfe | 2418 | enablestring= |
e6cc62c6 VS |
2419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2420 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2421 | no_cache=0 |
2422 | # Check whether --enable-universal or --disable-universal was given. | |
2423 | if test "${enable_universal+set}" = set; then | |
2424 | enableval="$enable_universal" | |
e6cc62c6 | 2425 | |
1e6feb95 VZ |
2426 | if test "$enableval" = yes; then |
2427 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2428 | else | |
2429 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2430 | fi | |
e6cc62c6 | 2431 | |
1e6feb95 | 2432 | else |
e6cc62c6 | 2433 | |
1e6feb95 VZ |
2434 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2435 | if test "x$LINE" != x ; then | |
2436 | eval "DEFAULT_$LINE" | |
2437 | else | |
2438 | no_cache=1 | |
2439 | fi | |
2440 | ||
2441 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2442 | |
e6cc62c6 | 2443 | fi; |
1e6feb95 VZ |
2444 | |
2445 | eval "$ac_cv_use_universal" | |
2446 | if test "$no_cache" != 1; then | |
2447 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2448 | fi | |
2449 | ||
2450 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2451 | echo "$as_me:$LINENO: result: yes" >&5 |
2452 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2453 | else |
e6cc62c6 VS |
2454 | echo "$as_me:$LINENO: result: no" >&5 |
2455 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2456 | fi |
e6cc62c6 VS |
2457 | |
2458 | ||
10f2d63a VZ |
2459 | # Check whether --with-gtk or --without-gtk was given. |
2460 | if test "${with_gtk+set}" = set; then | |
2461 | withval="$with_gtk" | |
2462 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2463 | fi; |
10f2d63a VZ |
2464 | |
2465 | # Check whether --with-motif or --without-motif was given. | |
2466 | if test "${with_motif+set}" = set; then | |
2467 | withval="$with_motif" | |
2468 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2469 | fi; |
10f2d63a | 2470 | |
b4085ce6 GD |
2471 | # Check whether --with-mac or --without-mac was given. |
2472 | if test "${with_mac+set}" = set; then | |
2473 | withval="$with_mac" | |
2474 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2475 | fi; |
b4085ce6 | 2476 | |
ac0c4cc3 DE |
2477 | # Check whether --with-cocoa or --without-cocoa was given. |
2478 | if test "${with_cocoa+set}" = set; then | |
2479 | withval="$with_cocoa" | |
2480 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2481 | fi; |
ac0c4cc3 | 2482 | |
10f2d63a VZ |
2483 | # Check whether --with-wine or --without-wine was given. |
2484 | if test "${with_wine+set}" = set; then | |
2485 | withval="$with_wine" | |
89e6bf6d | 2486 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2487 | fi; |
10f2d63a | 2488 | |
77e13408 RL |
2489 | # Check whether --with-msw or --without-msw was given. |
2490 | if test "${with_msw+set}" = set; then | |
2491 | withval="$with_msw" | |
b4efce5e | 2492 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2493 | fi; |
10f2d63a | 2494 | |
e07802fc VZ |
2495 | # Check whether --with-pm or --without-pm was given. |
2496 | if test "${with_pm+set}" = set; then | |
2497 | withval="$with_pm" | |
2498 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2499 | fi; |
698dcdb6 | 2500 | |
1e6feb95 VZ |
2501 | # Check whether --with-mgl or --without-mgl was given. |
2502 | if test "${with_mgl+set}" = set; then | |
2503 | withval="$with_mgl" | |
6c657b52 | 2504 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2505 | fi; |
1e6feb95 | 2506 | |
1725144d RR |
2507 | # Check whether --with-microwin or --without-microwin was given. |
2508 | if test "${with_microwin+set}" = set; then | |
2509 | withval="$with_microwin" | |
2510 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2511 | fi; |
1725144d | 2512 | |
f79bd02d JS |
2513 | # Check whether --with-x11 or --without-x11 was given. |
2514 | if test "${with_x11+set}" = set; then | |
2515 | withval="$with_x11" | |
3c011993 | 2516 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2517 | fi; |
a0b9e27f | 2518 | |
5005acfe | 2519 | enablestring= |
e6cc62c6 VS |
2520 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2521 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2522 | no_cache=0 |
ba875e66 VZ |
2523 | # Check whether --enable-nanox or --disable-nanox was given. |
2524 | if test "${enable_nanox+set}" = set; then | |
2525 | enableval="$enable_nanox" | |
e6cc62c6 | 2526 | |
d8356fa3 | 2527 | if test "$enableval" = yes; then |
ba875e66 | 2528 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2529 | else |
ba875e66 | 2530 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2531 | fi |
e6cc62c6 | 2532 | |
d8356fa3 | 2533 | else |
e6cc62c6 | 2534 | |
d8356fa3 VZ |
2535 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2536 | if test "x$LINE" != x ; then | |
2537 | eval "DEFAULT_$LINE" | |
2538 | else | |
2539 | no_cache=1 | |
2540 | fi | |
2541 | ||
ba875e66 | 2542 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2543 | |
e6cc62c6 | 2544 | fi; |
d8356fa3 | 2545 | |
ba875e66 | 2546 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2547 | if test "$no_cache" != 1; then |
ba875e66 | 2548 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2549 | fi |
2550 | ||
2551 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2552 | echo "$as_me:$LINENO: result: yes" >&5 |
2553 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2554 | else |
e6cc62c6 VS |
2555 | echo "$as_me:$LINENO: result: no" >&5 |
2556 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2557 | fi |
e6cc62c6 | 2558 | |
8284b0c5 | 2559 | |
d74f4b5a | 2560 | |
5005acfe | 2561 | enablestring= |
e6cc62c6 VS |
2562 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2563 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2564 | no_cache=0 |
2565 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2566 | if test "${enable_gtk2+set}" = set; then |
2567 | enableval="$enable_gtk2" | |
e6cc62c6 | 2568 | |
d74f4b5a VZ |
2569 | if test "$enableval" = yes; then |
2570 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2571 | else | |
2572 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2573 | fi | |
e6cc62c6 | 2574 | |
10f2d63a | 2575 | else |
e6cc62c6 | 2576 | |
d74f4b5a VZ |
2577 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2578 | if test "x$LINE" != x ; then | |
2579 | eval "DEFAULT_$LINE" | |
2580 | else | |
2581 | no_cache=1 | |
2582 | fi | |
2583 | ||
2584 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2585 | |
e6cc62c6 | 2586 | fi; |
328a083c | 2587 | |
d74f4b5a VZ |
2588 | eval "$ac_cv_use_gtk2" |
2589 | if test "$no_cache" != 1; then | |
2590 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2591 | fi | |
2592 | ||
2593 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2594 | echo "$as_me:$LINENO: result: yes" >&5 |
2595 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2596 | else |
e6cc62c6 VS |
2597 | echo "$as_me:$LINENO: result: no" >&5 |
2598 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2599 | fi |
d74f4b5a | 2600 | |
5c6fa7d2 | 2601 | |
e6cc62c6 VS |
2602 | |
2603 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2604 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2605 | no_cache=0 |
e6cc62c6 VS |
2606 | |
2607 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2608 | if test "${with_libpng+set}" = set; then |
2609 | withval="$with_libpng" | |
e6cc62c6 | 2610 | |
10f2d63a | 2611 | if test "$withval" = yes; then |
b12915c1 | 2612 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2613 | elif test "$withval" = no; then |
b12915c1 | 2614 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2615 | elif test "$withval" = sys; then |
2616 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2617 | elif test "$withval" = builtin; then |
2618 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2619 | else |
e6cc62c6 VS |
2620 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2621 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2622 | { (exit 1); exit 1; }; } | |
10f2d63a | 2623 | fi |
e6cc62c6 | 2624 | |
10f2d63a | 2625 | else |
e6cc62c6 | 2626 | |
b12915c1 | 2627 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2628 | if test "x$LINE" != x ; then |
2629 | eval "DEFAULT_$LINE" | |
2630 | else | |
2631 | no_cache=1 | |
2632 | fi | |
2633 | ||
b12915c1 | 2634 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2635 | |
e6cc62c6 | 2636 | fi; |
10f2d63a | 2637 | |
b12915c1 | 2638 | eval "$ac_cv_use_libpng" |
10f2d63a | 2639 | if test "$no_cache" != 1; then |
b12915c1 | 2640 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2641 | fi |
2642 | ||
b12915c1 | 2643 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2644 | echo "$as_me:$LINENO: result: yes" >&5 |
2645 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2646 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2647 | echo "$as_me:$LINENO: result: no" >&5 |
2648 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2649 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2650 | echo "$as_me:$LINENO: result: system version" >&5 |
2651 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2652 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2653 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2654 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2655 | else |
e6cc62c6 VS |
2656 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2657 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2658 | { (exit 1); exit 1; }; } | |
10f2d63a | 2659 | fi |
10f2d63a | 2660 | |
e6cc62c6 VS |
2661 | |
2662 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2663 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2664 | no_cache=0 |
e6cc62c6 VS |
2665 | |
2666 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2667 | if test "${with_libjpeg+set}" = set; then |
2668 | withval="$with_libjpeg" | |
e6cc62c6 | 2669 | |
10f2d63a | 2670 | if test "$withval" = yes; then |
b12915c1 | 2671 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2672 | elif test "$withval" = no; then |
b12915c1 | 2673 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2674 | elif test "$withval" = sys; then |
2675 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2676 | elif test "$withval" = builtin; then |
2677 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2678 | else |
e6cc62c6 VS |
2679 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2680 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2681 | { (exit 1); exit 1; }; } | |
10f2d63a | 2682 | fi |
e6cc62c6 | 2683 | |
10f2d63a | 2684 | else |
e6cc62c6 | 2685 | |
b12915c1 | 2686 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2687 | if test "x$LINE" != x ; then |
2688 | eval "DEFAULT_$LINE" | |
2689 | else | |
2690 | no_cache=1 | |
2691 | fi | |
2692 | ||
b12915c1 | 2693 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2694 | |
e6cc62c6 | 2695 | fi; |
10f2d63a | 2696 | |
b12915c1 | 2697 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2698 | if test "$no_cache" != 1; then |
b12915c1 | 2699 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2700 | fi |
2701 | ||
b12915c1 | 2702 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2703 | echo "$as_me:$LINENO: result: yes" >&5 |
2704 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2705 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2706 | echo "$as_me:$LINENO: result: no" >&5 |
2707 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2708 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2709 | echo "$as_me:$LINENO: result: system version" >&5 |
2710 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2711 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2712 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2713 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2714 | else |
e6cc62c6 VS |
2715 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2716 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2717 | { (exit 1); exit 1; }; } | |
10f2d63a | 2718 | fi |
10f2d63a | 2719 | |
e6cc62c6 VS |
2720 | |
2721 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2722 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2723 | no_cache=0 |
e6cc62c6 VS |
2724 | |
2725 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2726 | if test "${with_libtiff+set}" = set; then |
2727 | withval="$with_libtiff" | |
e6cc62c6 | 2728 | |
10f2d63a | 2729 | if test "$withval" = yes; then |
b12915c1 | 2730 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2731 | elif test "$withval" = no; then |
b12915c1 | 2732 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2733 | elif test "$withval" = sys; then |
2734 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2735 | elif test "$withval" = builtin; then |
2736 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2737 | else |
e6cc62c6 VS |
2738 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2739 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2740 | { (exit 1); exit 1; }; } | |
10f2d63a | 2741 | fi |
e6cc62c6 | 2742 | |
10f2d63a | 2743 | else |
e6cc62c6 | 2744 | |
b12915c1 | 2745 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2746 | if test "x$LINE" != x ; then |
2747 | eval "DEFAULT_$LINE" | |
2748 | else | |
2749 | no_cache=1 | |
2750 | fi | |
2751 | ||
b12915c1 | 2752 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2753 | |
e6cc62c6 | 2754 | fi; |
10f2d63a | 2755 | |
b12915c1 | 2756 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2757 | if test "$no_cache" != 1; then |
b12915c1 | 2758 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2759 | fi |
2760 | ||
b12915c1 | 2761 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2762 | echo "$as_me:$LINENO: result: yes" >&5 |
2763 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2764 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2765 | echo "$as_me:$LINENO: result: no" >&5 |
2766 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2767 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2768 | echo "$as_me:$LINENO: result: system version" >&5 |
2769 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2770 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2771 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2772 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2773 | else |
e6cc62c6 VS |
2774 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2775 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2776 | { (exit 1); exit 1; }; } | |
10f2d63a | 2777 | fi |
10f2d63a | 2778 | |
e6cc62c6 VS |
2779 | |
2780 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
2781 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2782 | no_cache=0 |
e6cc62c6 VS |
2783 | |
2784 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2785 | if test "${with_opengl+set}" = set; then |
2786 | withval="$with_opengl" | |
e6cc62c6 | 2787 | |
10f2d63a | 2788 | if test "$withval" = yes; then |
b12915c1 | 2789 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2790 | else |
b12915c1 | 2791 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2792 | fi |
e6cc62c6 | 2793 | |
10f2d63a | 2794 | else |
e6cc62c6 | 2795 | |
b12915c1 | 2796 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2797 | if test "x$LINE" != x ; then |
2798 | eval "DEFAULT_$LINE" | |
2799 | else | |
2800 | no_cache=1 | |
2801 | fi | |
2802 | ||
b12915c1 | 2803 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2804 | |
e6cc62c6 | 2805 | fi; |
10f2d63a | 2806 | |
b12915c1 | 2807 | eval "$ac_cv_use_opengl" |
10f2d63a | 2808 | if test "$no_cache" != 1; then |
b12915c1 | 2809 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2810 | fi |
2811 | ||
b12915c1 | 2812 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
2813 | echo "$as_me:$LINENO: result: yes" >&5 |
2814 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2815 | else |
e6cc62c6 VS |
2816 | echo "$as_me:$LINENO: result: no" >&5 |
2817 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2818 | fi |
e6cc62c6 | 2819 | |
10f2d63a | 2820 | |
b12915c1 VZ |
2821 | fi |
2822 | ||
5c6fa7d2 | 2823 | |
e6cc62c6 VS |
2824 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
2825 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 2826 | no_cache=0 |
e6cc62c6 VS |
2827 | |
2828 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2829 | if test "${with_dmalloc+set}" = set; then |
2830 | withval="$with_dmalloc" | |
e6cc62c6 | 2831 | |
c7a2bf27 | 2832 | if test "$withval" = yes; then |
b12915c1 | 2833 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2834 | else |
b12915c1 | 2835 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2836 | fi |
e6cc62c6 | 2837 | |
c7a2bf27 | 2838 | else |
e6cc62c6 | 2839 | |
b12915c1 | 2840 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2841 | if test "x$LINE" != x ; then |
2842 | eval "DEFAULT_$LINE" | |
2843 | else | |
2844 | no_cache=1 | |
2845 | fi | |
2846 | ||
b12915c1 | 2847 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2848 | |
e6cc62c6 | 2849 | fi; |
c7a2bf27 | 2850 | |
b12915c1 | 2851 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2852 | if test "$no_cache" != 1; then |
b12915c1 | 2853 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2854 | fi |
2855 | ||
b12915c1 | 2856 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
2857 | echo "$as_me:$LINENO: result: yes" >&5 |
2858 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 2859 | else |
e6cc62c6 VS |
2860 | echo "$as_me:$LINENO: result: no" >&5 |
2861 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 2862 | fi |
c7a2bf27 | 2863 | |
e6cc62c6 VS |
2864 | |
2865 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
2866 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 2867 | no_cache=0 |
e6cc62c6 VS |
2868 | |
2869 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
2870 | if test "${with_regex+set}" = set; then |
2871 | withval="$with_regex" | |
e6cc62c6 | 2872 | |
3e44f09d VZ |
2873 | if test "$withval" = yes; then |
2874 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2875 | elif test "$withval" = no; then | |
2876 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2877 | elif test "$withval" = sys; then | |
2878 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2879 | elif test "$withval" = builtin; then |
2880 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2881 | else |
e6cc62c6 VS |
2882 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2883 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2884 | { (exit 1); exit 1; }; } | |
3e44f09d | 2885 | fi |
e6cc62c6 | 2886 | |
3e44f09d | 2887 | else |
e6cc62c6 | 2888 | |
3e44f09d VZ |
2889 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
2890 | if test "x$LINE" != x ; then | |
2891 | eval "DEFAULT_$LINE" | |
2892 | else | |
2893 | no_cache=1 | |
2894 | fi | |
2895 | ||
2896 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 2897 | |
e6cc62c6 | 2898 | fi; |
3e44f09d VZ |
2899 | |
2900 | eval "$ac_cv_use_regex" | |
2901 | if test "$no_cache" != 1; then | |
2902 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
2903 | fi | |
2904 | ||
2905 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
2906 | echo "$as_me:$LINENO: result: yes" >&5 |
2907 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 2908 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
2909 | echo "$as_me:$LINENO: result: no" >&5 |
2910 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 2911 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
2912 | echo "$as_me:$LINENO: result: system version" >&5 |
2913 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2914 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
2915 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2916 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 2917 | else |
e6cc62c6 VS |
2918 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2919 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2920 | { (exit 1); exit 1; }; } | |
3e44f09d | 2921 | fi |
3e44f09d | 2922 | |
e6cc62c6 VS |
2923 | |
2924 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
2925 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 2926 | no_cache=0 |
e6cc62c6 VS |
2927 | |
2928 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
2929 | if test "${with_zlib+set}" = set; then |
2930 | withval="$with_zlib" | |
e6cc62c6 | 2931 | |
10f2d63a | 2932 | if test "$withval" = yes; then |
b12915c1 | 2933 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 2934 | elif test "$withval" = no; then |
b12915c1 | 2935 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
2936 | elif test "$withval" = sys; then |
2937 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
2938 | elif test "$withval" = builtin; then |
2939 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 2940 | else |
e6cc62c6 VS |
2941 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2942 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2943 | { (exit 1); exit 1; }; } | |
10f2d63a | 2944 | fi |
e6cc62c6 | 2945 | |
10f2d63a | 2946 | else |
e6cc62c6 | 2947 | |
b12915c1 | 2948 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
2949 | if test "x$LINE" != x ; then |
2950 | eval "DEFAULT_$LINE" | |
2951 | else | |
2952 | no_cache=1 | |
2953 | fi | |
2954 | ||
b12915c1 | 2955 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 2956 | |
e6cc62c6 | 2957 | fi; |
10f2d63a | 2958 | |
b12915c1 | 2959 | eval "$ac_cv_use_zlib" |
10f2d63a | 2960 | if test "$no_cache" != 1; then |
b12915c1 | 2961 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2962 | fi |
2963 | ||
b12915c1 | 2964 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
2965 | echo "$as_me:$LINENO: result: yes" >&5 |
2966 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2967 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
2968 | echo "$as_me:$LINENO: result: no" >&5 |
2969 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2970 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
2971 | echo "$as_me:$LINENO: result: system version" >&5 |
2972 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2973 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
2974 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2975 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2976 | else |
e6cc62c6 VS |
2977 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
2978 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
2979 | { (exit 1); exit 1; }; } | |
10f2d63a | 2980 | fi |
10f2d63a | 2981 | |
e6cc62c6 VS |
2982 | |
2983 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
2984 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 2985 | no_cache=0 |
e6cc62c6 VS |
2986 | |
2987 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
2988 | if test "${with_odbc+set}" = set; then |
2989 | withval="$with_odbc" | |
e6cc62c6 | 2990 | |
10f2d63a VZ |
2991 | if test "$withval" = yes; then |
2992 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 2993 | elif test "$withval" = no; then |
10f2d63a | 2994 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
2995 | elif test "$withval" = sys; then |
2996 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
2997 | elif test "$withval" = builtin; then | |
2998 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
2999 | else | |
e6cc62c6 VS |
3000 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3001 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3002 | { (exit 1); exit 1; }; } | |
10f2d63a | 3003 | fi |
e6cc62c6 | 3004 | |
10f2d63a | 3005 | else |
e6cc62c6 | 3006 | |
10f2d63a VZ |
3007 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
3008 | if test "x$LINE" != x ; then | |
3009 | eval "DEFAULT_$LINE" | |
3010 | else | |
3011 | no_cache=1 | |
3012 | fi | |
3013 | ||
3014 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 3015 | |
e6cc62c6 | 3016 | fi; |
10f2d63a VZ |
3017 | |
3018 | eval "$ac_cv_use_odbc" | |
3019 | if test "$no_cache" != 1; then | |
3020 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3021 | fi | |
3022 | ||
3023 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
3024 | echo "$as_me:$LINENO: result: yes" >&5 |
3025 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 3026 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
3027 | echo "$as_me:$LINENO: result: no" >&5 |
3028 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 3029 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3030 | echo "$as_me:$LINENO: result: system version" >&5 |
3031 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3032 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3033 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3034 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3035 | else |
e6cc62c6 VS |
3036 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3037 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3038 | { (exit 1); exit 1; }; } | |
10f2d63a | 3039 | fi |
e6cc62c6 | 3040 | |
52127426 | 3041 | |
672abd7a VS |
3042 | echo "$as_me:$LINENO: checking for --with-expat" >&5 |
3043 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3044 | no_cache=0 | |
3045 | ||
3046 | # Check whether --with-expat or --without-expat was given. | |
3047 | if test "${with_expat+set}" = set; then | |
3048 | withval="$with_expat" | |
3049 | ||
3050 | if test "$withval" = yes; then | |
3051 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3052 | elif test "$withval" = no; then | |
3053 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3054 | elif test "$withval" = sys; then | |
3055 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3056 | elif test "$withval" = builtin; then | |
3057 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3058 | else | |
3059 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3060 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3061 | { (exit 1); exit 1; }; } | |
3062 | fi | |
3063 | ||
3064 | else | |
3065 | ||
3066 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3067 | if test "x$LINE" != x ; then | |
3068 | eval "DEFAULT_$LINE" | |
3069 | else | |
3070 | no_cache=1 | |
3071 | fi | |
3072 | ||
3073 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3074 | ||
3075 | fi; | |
3076 | ||
3077 | eval "$ac_cv_use_expat" | |
3078 | if test "$no_cache" != 1; then | |
3079 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3080 | fi | |
3081 | ||
3082 | if test "$wxUSE_EXPAT" = yes; then | |
3083 | echo "$as_me:$LINENO: result: yes" >&5 | |
3084 | echo "${ECHO_T}yes" >&6 | |
3085 | elif test "$wxUSE_EXPAT" = no; then | |
3086 | echo "$as_me:$LINENO: result: no" >&5 | |
3087 | echo "${ECHO_T}no" >&6 | |
3088 | elif test "$wxUSE_EXPAT" = sys; then | |
3089 | echo "$as_me:$LINENO: result: system version" >&5 | |
3090 | echo "${ECHO_T}system version" >&6 | |
3091 | elif test "$wxUSE_EXPAT" = builtin; then | |
3092 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3093 | echo "${ECHO_T}builtin version" >&6 | |
3094 | else | |
3095 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3096 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3097 | { (exit 1); exit 1; }; } | |
3098 | fi | |
3099 | ||
3100 | ||
8284b0c5 MB |
3101 | |
3102 | ||
5005acfe | 3103 | enablestring= |
e6cc62c6 VS |
3104 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3105 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3106 | no_cache=0 |
3107 | # Check whether --enable-shared or --disable-shared was given. | |
3108 | if test "${enable_shared+set}" = set; then | |
3109 | enableval="$enable_shared" | |
e6cc62c6 | 3110 | |
10f2d63a VZ |
3111 | if test "$enableval" = yes; then |
3112 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3113 | else | |
3114 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3115 | fi | |
e6cc62c6 | 3116 | |
10f2d63a | 3117 | else |
e6cc62c6 | 3118 | |
10f2d63a VZ |
3119 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3120 | if test "x$LINE" != x ; then | |
3121 | eval "DEFAULT_$LINE" | |
3122 | else | |
3123 | no_cache=1 | |
3124 | fi | |
3125 | ||
3126 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3127 | |
e6cc62c6 | 3128 | fi; |
10f2d63a VZ |
3129 | |
3130 | eval "$ac_cv_use_shared" | |
3131 | if test "$no_cache" != 1; then | |
3132 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3133 | fi | |
3134 | ||
3135 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3136 | echo "$as_me:$LINENO: result: yes" >&5 |
3137 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3138 | else |
e6cc62c6 VS |
3139 | echo "$as_me:$LINENO: result: no" >&5 |
3140 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3141 | fi |
e6cc62c6 | 3142 | |
10f2d63a | 3143 | |
5005acfe | 3144 | enablestring= |
e6cc62c6 VS |
3145 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3146 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3147 | no_cache=0 |
3148 | # Check whether --enable-optimise or --disable-optimise was given. | |
3149 | if test "${enable_optimise+set}" = set; then | |
3150 | enableval="$enable_optimise" | |
e6cc62c6 | 3151 | |
10f2d63a VZ |
3152 | if test "$enableval" = yes; then |
3153 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3154 | else | |
3155 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3156 | fi | |
e6cc62c6 | 3157 | |
10f2d63a | 3158 | else |
e6cc62c6 | 3159 | |
10f2d63a VZ |
3160 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3161 | if test "x$LINE" != x ; then | |
3162 | eval "DEFAULT_$LINE" | |
3163 | else | |
3164 | no_cache=1 | |
3165 | fi | |
3166 | ||
3167 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3168 | |
e6cc62c6 | 3169 | fi; |
10f2d63a VZ |
3170 | |
3171 | eval "$ac_cv_use_optimise" | |
3172 | if test "$no_cache" != 1; then | |
3173 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3174 | fi | |
3175 | ||
3176 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3177 | echo "$as_me:$LINENO: result: yes" >&5 |
3178 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3179 | else |
e6cc62c6 VS |
3180 | echo "$as_me:$LINENO: result: no" >&5 |
3181 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3182 | fi |
e6cc62c6 | 3183 | |
10f2d63a | 3184 | |
5005acfe | 3185 | enablestring= |
e6cc62c6 VS |
3186 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3187 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3188 | no_cache=0 |
3189 | # Check whether --enable-debug or --disable-debug was given. | |
3190 | if test "${enable_debug+set}" = set; then | |
3191 | enableval="$enable_debug" | |
e6cc62c6 | 3192 | |
10f2d63a VZ |
3193 | if test "$enableval" = yes; then |
3194 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3195 | else | |
3196 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3197 | fi | |
e6cc62c6 | 3198 | |
10f2d63a | 3199 | else |
e6cc62c6 | 3200 | |
10f2d63a VZ |
3201 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3202 | if test "x$LINE" != x ; then | |
3203 | eval "DEFAULT_$LINE" | |
3204 | else | |
3205 | no_cache=1 | |
3206 | fi | |
3207 | ||
3208 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3209 | |
e6cc62c6 | 3210 | fi; |
10f2d63a VZ |
3211 | |
3212 | eval "$ac_cv_use_debug" | |
3213 | if test "$no_cache" != 1; then | |
3214 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3215 | fi | |
3216 | ||
3217 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3218 | echo "$as_me:$LINENO: result: yes" >&5 |
3219 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3220 | else |
e6cc62c6 VS |
3221 | echo "$as_me:$LINENO: result: no" >&5 |
3222 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3223 | fi |
e6cc62c6 | 3224 | |
52127426 | 3225 | |
df5168c4 MB |
3226 | enablestring= |
3227 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3228 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3229 | no_cache=0 | |
3230 | # Check whether --enable-stl or --disable-stl was given. | |
3231 | if test "${enable_stl+set}" = set; then | |
3232 | enableval="$enable_stl" | |
3233 | ||
3234 | if test "$enableval" = yes; then | |
3235 | ac_cv_use_stl='wxUSE_STL=yes' | |
3236 | else | |
3237 | ac_cv_use_stl='wxUSE_STL=no' | |
3238 | fi | |
3239 | ||
3240 | else | |
3241 | ||
3242 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3243 | if test "x$LINE" != x ; then | |
3244 | eval "DEFAULT_$LINE" | |
3245 | else | |
3246 | no_cache=1 | |
3247 | fi | |
3248 | ||
3249 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3250 | ||
3251 | fi; | |
3252 | ||
3253 | eval "$ac_cv_use_stl" | |
3254 | if test "$no_cache" != 1; then | |
3255 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3256 | fi | |
3257 | ||
3258 | if test "$wxUSE_STL" = yes; then | |
3259 | echo "$as_me:$LINENO: result: yes" >&5 | |
3260 | echo "${ECHO_T}yes" >&6 | |
3261 | else | |
3262 | echo "$as_me:$LINENO: result: no" >&5 | |
3263 | echo "${ECHO_T}no" >&6 | |
3264 | fi | |
3265 | ||
3266 | ||
10f2d63a VZ |
3267 | if test "$wxUSE_DEBUG" = "yes"; then |
3268 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3269 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
6c67131a | 3270 | BUILD=debug |
10f2d63a VZ |
3271 | elif test "$wxUSE_DEBUG" = "no"; then |
3272 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3273 | DEFAULT_wxUSE_DEBUG_INFO=no | |
6c67131a | 3274 | BUILD=release |
10f2d63a VZ |
3275 | fi |
3276 | ||
8284b0c5 | 3277 | |
5005acfe | 3278 | enablestring= |
e6cc62c6 VS |
3279 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3280 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3281 | no_cache=0 |
3282 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3283 | if test "${enable_debug_flag+set}" = set; then | |
3284 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3285 | |
10f2d63a VZ |
3286 | if test "$enableval" = yes; then |
3287 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3288 | else | |
3289 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3290 | fi | |
e6cc62c6 | 3291 | |
10f2d63a | 3292 | else |
e6cc62c6 | 3293 | |
10f2d63a VZ |
3294 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3295 | if test "x$LINE" != x ; then | |
3296 | eval "DEFAULT_$LINE" | |
3297 | else | |
3298 | no_cache=1 | |
3299 | fi | |
3300 | ||
3301 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3302 | |
e6cc62c6 | 3303 | fi; |
10f2d63a VZ |
3304 | |
3305 | eval "$ac_cv_use_debug_flag" | |
3306 | if test "$no_cache" != 1; then | |
3307 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3308 | fi | |
3309 | ||
3310 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3311 | echo "$as_me:$LINENO: result: yes" >&5 |
3312 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3313 | else |
e6cc62c6 VS |
3314 | echo "$as_me:$LINENO: result: no" >&5 |
3315 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3316 | fi |
e6cc62c6 | 3317 | |
10f2d63a | 3318 | |
5005acfe | 3319 | enablestring= |
e6cc62c6 VS |
3320 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3321 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3322 | no_cache=0 |
3323 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3324 | if test "${enable_debug_info+set}" = set; then | |
3325 | enableval="$enable_debug_info" | |
e6cc62c6 | 3326 | |
10f2d63a VZ |
3327 | if test "$enableval" = yes; then |
3328 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3329 | else | |
3330 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3331 | fi | |
e6cc62c6 | 3332 | |
10f2d63a | 3333 | else |
e6cc62c6 | 3334 | |
10f2d63a VZ |
3335 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3336 | if test "x$LINE" != x ; then | |
3337 | eval "DEFAULT_$LINE" | |
3338 | else | |
3339 | no_cache=1 | |
3340 | fi | |
3341 | ||
3342 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3343 | |
e6cc62c6 | 3344 | fi; |
10f2d63a VZ |
3345 | |
3346 | eval "$ac_cv_use_debug_info" | |
3347 | if test "$no_cache" != 1; then | |
3348 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3349 | fi | |
3350 | ||
3351 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3352 | echo "$as_me:$LINENO: result: yes" >&5 |
3353 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3354 | else |
e6cc62c6 VS |
3355 | echo "$as_me:$LINENO: result: no" >&5 |
3356 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3357 | fi |
e6cc62c6 | 3358 | |
10f2d63a | 3359 | |
5005acfe | 3360 | enablestring= |
e6cc62c6 VS |
3361 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3362 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3363 | no_cache=0 |
3364 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3365 | if test "${enable_debug_gdb+set}" = set; then | |
3366 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3367 | |
10f2d63a VZ |
3368 | if test "$enableval" = yes; then |
3369 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3370 | else | |
3371 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3372 | fi | |
e6cc62c6 | 3373 | |
10f2d63a | 3374 | else |
e6cc62c6 | 3375 | |
10f2d63a VZ |
3376 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3377 | if test "x$LINE" != x ; then | |
3378 | eval "DEFAULT_$LINE" | |
3379 | else | |
3380 | no_cache=1 | |
3381 | fi | |
3382 | ||
3383 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3384 | |
e6cc62c6 | 3385 | fi; |
10f2d63a VZ |
3386 | |
3387 | eval "$ac_cv_use_debug_gdb" | |
3388 | if test "$no_cache" != 1; then | |
3389 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3390 | fi | |
3391 | ||
3392 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3393 | echo "$as_me:$LINENO: result: yes" >&5 |
3394 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3395 | else |
e6cc62c6 VS |
3396 | echo "$as_me:$LINENO: result: no" >&5 |
3397 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3398 | fi |
e6cc62c6 | 3399 | |
10f2d63a | 3400 | |
5005acfe | 3401 | enablestring= |
e6cc62c6 VS |
3402 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3403 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3404 | no_cache=0 |
3405 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3406 | if test "${enable_debug_cntxt+set}" = set; then | |
3407 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3408 | |
10f2d63a VZ |
3409 | if test "$enableval" = yes; then |
3410 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3411 | else | |
3412 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3413 | fi | |
e6cc62c6 | 3414 | |
10f2d63a | 3415 | else |
e6cc62c6 | 3416 | |
10f2d63a VZ |
3417 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3418 | if test "x$LINE" != x ; then | |
3419 | eval "DEFAULT_$LINE" | |
3420 | else | |
3421 | no_cache=1 | |
3422 | fi | |
3423 | ||
3424 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3425 | |
e6cc62c6 | 3426 | fi; |
10f2d63a VZ |
3427 | |
3428 | eval "$ac_cv_use_debug_cntxt" | |
3429 | if test "$no_cache" != 1; then | |
3430 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3431 | fi | |
3432 | ||
3433 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3434 | echo "$as_me:$LINENO: result: yes" >&5 |
3435 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3436 | else |
e6cc62c6 VS |
3437 | echo "$as_me:$LINENO: result: no" >&5 |
3438 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3439 | fi |
e6cc62c6 | 3440 | |
10f2d63a | 3441 | |
5005acfe | 3442 | enablestring= |
e6cc62c6 VS |
3443 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3444 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3445 | no_cache=0 |
3446 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3447 | if test "${enable_mem_tracing+set}" = set; then | |
3448 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3449 | |
10f2d63a VZ |
3450 | if test "$enableval" = yes; then |
3451 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3452 | else | |
3453 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3454 | fi | |
e6cc62c6 | 3455 | |
10f2d63a | 3456 | else |
e6cc62c6 | 3457 | |
10f2d63a VZ |
3458 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3459 | if test "x$LINE" != x ; then | |
3460 | eval "DEFAULT_$LINE" | |
3461 | else | |
3462 | no_cache=1 | |
3463 | fi | |
3464 | ||
3465 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3466 | |
e6cc62c6 | 3467 | fi; |
10f2d63a VZ |
3468 | |
3469 | eval "$ac_cv_use_mem_tracing" | |
3470 | if test "$no_cache" != 1; then | |
3471 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3472 | fi | |
3473 | ||
3474 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3475 | echo "$as_me:$LINENO: result: yes" >&5 |
3476 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3477 | else |
e6cc62c6 VS |
3478 | echo "$as_me:$LINENO: result: no" >&5 |
3479 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3480 | fi |
e6cc62c6 | 3481 | |
10f2d63a | 3482 | |
5005acfe | 3483 | enablestring= |
e6cc62c6 VS |
3484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3485 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3486 | no_cache=0 |
3487 | # Check whether --enable-profile or --disable-profile was given. | |
3488 | if test "${enable_profile+set}" = set; then | |
3489 | enableval="$enable_profile" | |
e6cc62c6 | 3490 | |
10f2d63a VZ |
3491 | if test "$enableval" = yes; then |
3492 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3493 | else | |
3494 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3495 | fi | |
e6cc62c6 | 3496 | |
10f2d63a | 3497 | else |
e6cc62c6 | 3498 | |
10f2d63a VZ |
3499 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3500 | if test "x$LINE" != x ; then | |
3501 | eval "DEFAULT_$LINE" | |
3502 | else | |
3503 | no_cache=1 | |
3504 | fi | |
3505 | ||
3506 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3507 | |
e6cc62c6 | 3508 | fi; |
10f2d63a VZ |
3509 | |
3510 | eval "$ac_cv_use_profile" | |
3511 | if test "$no_cache" != 1; then | |
3512 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3513 | fi | |
3514 | ||
3515 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3516 | echo "$as_me:$LINENO: result: yes" >&5 |
3517 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3518 | else |
e6cc62c6 VS |
3519 | echo "$as_me:$LINENO: result: no" >&5 |
3520 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3521 | fi |
e6cc62c6 | 3522 | |
10f2d63a | 3523 | |
5005acfe | 3524 | enablestring= |
e6cc62c6 VS |
3525 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3526 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3527 | no_cache=0 |
3528 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3529 | if test "${enable_no_rtti+set}" = set; then | |
3530 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3531 | |
10f2d63a VZ |
3532 | if test "$enableval" = yes; then |
3533 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3534 | else | |
3535 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3536 | fi | |
e6cc62c6 | 3537 | |
10f2d63a | 3538 | else |
e6cc62c6 | 3539 | |
10f2d63a VZ |
3540 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3541 | if test "x$LINE" != x ; then | |
3542 | eval "DEFAULT_$LINE" | |
3543 | else | |
3544 | no_cache=1 | |
3545 | fi | |
3546 | ||
3547 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3548 | |
e6cc62c6 | 3549 | fi; |
10f2d63a VZ |
3550 | |
3551 | eval "$ac_cv_use_no_rtti" | |
3552 | if test "$no_cache" != 1; then | |
3553 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3554 | fi | |
3555 | ||
3556 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3557 | echo "$as_me:$LINENO: result: yes" >&5 |
3558 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3559 | else |
e6cc62c6 VS |
3560 | echo "$as_me:$LINENO: result: no" >&5 |
3561 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3562 | fi |
e6cc62c6 | 3563 | |
10f2d63a | 3564 | |
5005acfe | 3565 | enablestring= |
e6cc62c6 VS |
3566 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3567 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3568 | no_cache=0 |
3569 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3570 | if test "${enable_no_exceptions+set}" = set; then | |
3571 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3572 | |
10f2d63a VZ |
3573 | if test "$enableval" = yes; then |
3574 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3575 | else | |
3576 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3577 | fi | |
e6cc62c6 | 3578 | |
10f2d63a | 3579 | else |
e6cc62c6 | 3580 | |
10f2d63a VZ |
3581 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3582 | if test "x$LINE" != x ; then | |
3583 | eval "DEFAULT_$LINE" | |
3584 | else | |
3585 | no_cache=1 | |
3586 | fi | |
3587 | ||
3588 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3589 | |
e6cc62c6 | 3590 | fi; |
10f2d63a VZ |
3591 | |
3592 | eval "$ac_cv_use_no_exceptions" | |
3593 | if test "$no_cache" != 1; then | |
3594 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3595 | fi | |
3596 | ||
3597 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3598 | echo "$as_me:$LINENO: result: yes" >&5 |
3599 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3600 | else |
e6cc62c6 VS |
3601 | echo "$as_me:$LINENO: result: no" >&5 |
3602 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3603 | fi |
e6cc62c6 | 3604 | |
10f2d63a | 3605 | |
5005acfe | 3606 | enablestring= |
e6cc62c6 VS |
3607 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3608 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3609 | no_cache=0 |
3610 | # Check whether --enable-permissive or --disable-permissive was given. | |
3611 | if test "${enable_permissive+set}" = set; then | |
3612 | enableval="$enable_permissive" | |
e6cc62c6 | 3613 | |
10f2d63a VZ |
3614 | if test "$enableval" = yes; then |
3615 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3616 | else | |
3617 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3618 | fi | |
e6cc62c6 | 3619 | |
10f2d63a | 3620 | else |
e6cc62c6 | 3621 | |
10f2d63a VZ |
3622 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3623 | if test "x$LINE" != x ; then | |
3624 | eval "DEFAULT_$LINE" | |
3625 | else | |
3626 | no_cache=1 | |
3627 | fi | |
3628 | ||
3629 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3630 | |
e6cc62c6 | 3631 | fi; |
10f2d63a VZ |
3632 | |
3633 | eval "$ac_cv_use_permissive" | |
3634 | if test "$no_cache" != 1; then | |
3635 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3636 | fi | |
3637 | ||
3638 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3639 | echo "$as_me:$LINENO: result: yes" >&5 |
3640 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3641 | else |
e6cc62c6 VS |
3642 | echo "$as_me:$LINENO: result: no" >&5 |
3643 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3644 | fi |
e6cc62c6 | 3645 | |
10f2d63a | 3646 | |
5005acfe | 3647 | enablestring= |
e6cc62c6 VS |
3648 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3649 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3650 | no_cache=0 |
3651 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3652 | if test "${enable_no_deps+set}" = set; then | |
3653 | enableval="$enable_no_deps" | |
e6cc62c6 | 3654 | |
10f2d63a VZ |
3655 | if test "$enableval" = yes; then |
3656 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3657 | else | |
3658 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3659 | fi | |
e6cc62c6 | 3660 | |
10f2d63a | 3661 | else |
e6cc62c6 | 3662 | |
10f2d63a VZ |
3663 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3664 | if test "x$LINE" != x ; then | |
3665 | eval "DEFAULT_$LINE" | |
3666 | else | |
3667 | no_cache=1 | |
3668 | fi | |
3669 | ||
3670 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3671 | |
e6cc62c6 | 3672 | fi; |
10f2d63a VZ |
3673 | |
3674 | eval "$ac_cv_use_no_deps" | |
3675 | if test "$no_cache" != 1; then | |
3676 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3677 | fi | |
3678 | ||
3679 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3680 | echo "$as_me:$LINENO: result: yes" >&5 |
3681 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3682 | else |
e6cc62c6 VS |
3683 | echo "$as_me:$LINENO: result: no" >&5 |
3684 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3685 | fi |
e6cc62c6 | 3686 | |
52127426 | 3687 | |
8284b0c5 | 3688 | |
65d8ef1e | 3689 | enablestring= |
e6cc62c6 VS |
3690 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3691 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3692 | no_cache=0 |
3693 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3694 | if test "${enable_compat22+set}" = set; then | |
3695 | enableval="$enable_compat22" | |
e6cc62c6 | 3696 | |
54276ccf VZ |
3697 | if test "$enableval" = yes; then |
3698 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3699 | else | |
3700 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3701 | fi | |
e6cc62c6 | 3702 | |
54276ccf | 3703 | else |
e6cc62c6 | 3704 | |
54276ccf VZ |
3705 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3706 | if test "x$LINE" != x ; then | |
3707 | eval "DEFAULT_$LINE" | |
3708 | else | |
3709 | no_cache=1 | |
3710 | fi | |
3711 | ||
3712 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3713 | |
e6cc62c6 | 3714 | fi; |
54276ccf VZ |
3715 | |
3716 | eval "$ac_cv_use_compat22" | |
3717 | if test "$no_cache" != 1; then | |
3718 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3719 | fi | |
3720 | ||
3721 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3722 | echo "$as_me:$LINENO: result: yes" >&5 |
3723 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3724 | else |
e6cc62c6 VS |
3725 | echo "$as_me:$LINENO: result: no" >&5 |
3726 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3727 | fi |
e6cc62c6 | 3728 | |
54276ccf | 3729 | |
65d8ef1e | 3730 | enablestring=disable |
e6cc62c6 VS |
3731 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
3732 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
3733 | no_cache=0 |
3734 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3735 | if test "${enable_compat24+set}" = set; then | |
3736 | enableval="$enable_compat24" | |
e6cc62c6 | 3737 | |
65d8ef1e VS |
3738 | if test "$enableval" = yes; then |
3739 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3740 | else | |
3741 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3742 | fi | |
e6cc62c6 | 3743 | |
65d8ef1e | 3744 | else |
e6cc62c6 | 3745 | |
65d8ef1e VS |
3746 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
3747 | if test "x$LINE" != x ; then | |
3748 | eval "DEFAULT_$LINE" | |
3749 | else | |
3750 | no_cache=1 | |
3751 | fi | |
3752 | ||
3753 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 3754 | |
e6cc62c6 | 3755 | fi; |
65d8ef1e VS |
3756 | |
3757 | eval "$ac_cv_use_compat24" | |
3758 | if test "$no_cache" != 1; then | |
3759 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3760 | fi | |
3761 | ||
3762 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
3763 | echo "$as_me:$LINENO: result: yes" >&5 |
3764 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 3765 | else |
e6cc62c6 VS |
3766 | echo "$as_me:$LINENO: result: no" >&5 |
3767 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 3768 | fi |
e6cc62c6 | 3769 | |
65d8ef1e | 3770 | |
3bd8fb5f RD |
3771 | # Check whether --enable-rpath or --disable-rpath was given. |
3772 | if test "${enable_rpath+set}" = set; then | |
3773 | enableval="$enable_rpath" | |
3774 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 3775 | fi; |
3bd8fb5f RD |
3776 | |
3777 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3778 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3779 | fi | |
3780 | ||
8284b0c5 MB |
3781 | |
3782 | ||
3783 | ||
5005acfe | 3784 | enablestring= |
e6cc62c6 VS |
3785 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
3786 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3787 | no_cache=0 |
3788 | # Check whether --enable-intl or --disable-intl was given. | |
3789 | if test "${enable_intl+set}" = set; then | |
3790 | enableval="$enable_intl" | |
e6cc62c6 | 3791 | |
10f2d63a VZ |
3792 | if test "$enableval" = yes; then |
3793 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3794 | else | |
3795 | ac_cv_use_intl='wxUSE_INTL=no' | |
3796 | fi | |
e6cc62c6 | 3797 | |
10f2d63a | 3798 | else |
e6cc62c6 | 3799 | |
10f2d63a VZ |
3800 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3801 | if test "x$LINE" != x ; then | |
3802 | eval "DEFAULT_$LINE" | |
3803 | else | |
3804 | no_cache=1 | |
3805 | fi | |
3806 | ||
3807 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3808 | |
e6cc62c6 | 3809 | fi; |
10f2d63a VZ |
3810 | |
3811 | eval "$ac_cv_use_intl" | |
3812 | if test "$no_cache" != 1; then | |
3813 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3814 | fi | |
3815 | ||
3816 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
3817 | echo "$as_me:$LINENO: result: yes" >&5 |
3818 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3819 | else |
e6cc62c6 VS |
3820 | echo "$as_me:$LINENO: result: no" >&5 |
3821 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3822 | fi |
e6cc62c6 | 3823 | |
10f2d63a | 3824 | |
5005acfe | 3825 | enablestring= |
e6cc62c6 VS |
3826 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
3827 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3828 | no_cache=0 |
3829 | # Check whether --enable-config or --disable-config was given. | |
3830 | if test "${enable_config+set}" = set; then | |
3831 | enableval="$enable_config" | |
e6cc62c6 | 3832 | |
10f2d63a VZ |
3833 | if test "$enableval" = yes; then |
3834 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3835 | else | |
3836 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3837 | fi | |
e6cc62c6 | 3838 | |
10f2d63a | 3839 | else |
e6cc62c6 | 3840 | |
10f2d63a VZ |
3841 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3842 | if test "x$LINE" != x ; then | |
3843 | eval "DEFAULT_$LINE" | |
3844 | else | |
3845 | no_cache=1 | |
3846 | fi | |
3847 | ||
3848 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3849 | |
e6cc62c6 | 3850 | fi; |
10f2d63a VZ |
3851 | |
3852 | eval "$ac_cv_use_config" | |
3853 | if test "$no_cache" != 1; then | |
3854 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3855 | fi | |
3856 | ||
3857 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
3858 | echo "$as_me:$LINENO: result: yes" >&5 |
3859 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3860 | else |
e6cc62c6 VS |
3861 | echo "$as_me:$LINENO: result: no" >&5 |
3862 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3863 | fi |
e6cc62c6 | 3864 | |
52127426 | 3865 | |
8284b0c5 | 3866 | |
5005acfe | 3867 | enablestring= |
e6cc62c6 VS |
3868 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
3869 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
3870 | no_cache=0 |
3871 | # Check whether --enable-protocols or --disable-protocols was given. | |
3872 | if test "${enable_protocols+set}" = set; then | |
3873 | enableval="$enable_protocols" | |
e6cc62c6 | 3874 | |
a1622950 VZ |
3875 | if test "$enableval" = yes; then |
3876 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3877 | else | |
3878 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3879 | fi | |
e6cc62c6 | 3880 | |
a1622950 | 3881 | else |
e6cc62c6 | 3882 | |
a1622950 VZ |
3883 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3884 | if test "x$LINE" != x ; then | |
3885 | eval "DEFAULT_$LINE" | |
3886 | else | |
3887 | no_cache=1 | |
3888 | fi | |
3889 | ||
3890 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 3891 | |
e6cc62c6 | 3892 | fi; |
a1622950 VZ |
3893 | |
3894 | eval "$ac_cv_use_protocols" | |
3895 | if test "$no_cache" != 1; then | |
3896 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
3897 | fi | |
3898 | ||
3899 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
3900 | echo "$as_me:$LINENO: result: yes" >&5 |
3901 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3902 | else |
e6cc62c6 VS |
3903 | echo "$as_me:$LINENO: result: no" >&5 |
3904 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3905 | fi |
e6cc62c6 | 3906 | |
a1622950 | 3907 | |
5005acfe | 3908 | enablestring= |
e6cc62c6 VS |
3909 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
3910 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
3911 | no_cache=0 |
3912 | # Check whether --enable-ftp or --disable-ftp was given. | |
3913 | if test "${enable_ftp+set}" = set; then | |
3914 | enableval="$enable_ftp" | |
e6cc62c6 | 3915 | |
a1622950 VZ |
3916 | if test "$enableval" = yes; then |
3917 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
3918 | else | |
3919 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
3920 | fi | |
e6cc62c6 | 3921 | |
a1622950 | 3922 | else |
e6cc62c6 | 3923 | |
a1622950 VZ |
3924 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
3925 | if test "x$LINE" != x ; then | |
3926 | eval "DEFAULT_$LINE" | |
3927 | else | |
3928 | no_cache=1 | |
3929 | fi | |
3930 | ||
3931 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 3932 | |
e6cc62c6 | 3933 | fi; |
a1622950 VZ |
3934 | |
3935 | eval "$ac_cv_use_ftp" | |
3936 | if test "$no_cache" != 1; then | |
3937 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
3938 | fi | |
3939 | ||
3940 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
3941 | echo "$as_me:$LINENO: result: yes" >&5 |
3942 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3943 | else |
e6cc62c6 VS |
3944 | echo "$as_me:$LINENO: result: no" >&5 |
3945 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3946 | fi |
e6cc62c6 | 3947 | |
a1622950 | 3948 | |
5005acfe | 3949 | enablestring= |
e6cc62c6 VS |
3950 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
3951 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
3952 | no_cache=0 |
3953 | # Check whether --enable-http or --disable-http was given. | |
3954 | if test "${enable_http+set}" = set; then | |
3955 | enableval="$enable_http" | |
e6cc62c6 | 3956 | |
a1622950 VZ |
3957 | if test "$enableval" = yes; then |
3958 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
3959 | else | |
3960 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
3961 | fi | |
e6cc62c6 | 3962 | |
a1622950 | 3963 | else |
e6cc62c6 | 3964 | |
a1622950 VZ |
3965 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
3966 | if test "x$LINE" != x ; then | |
3967 | eval "DEFAULT_$LINE" | |
3968 | else | |
3969 | no_cache=1 | |
3970 | fi | |
3971 | ||
3972 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 3973 | |
e6cc62c6 | 3974 | fi; |
a1622950 VZ |
3975 | |
3976 | eval "$ac_cv_use_http" | |
3977 | if test "$no_cache" != 1; then | |
3978 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
3979 | fi | |
3980 | ||
3981 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
3982 | echo "$as_me:$LINENO: result: yes" >&5 |
3983 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 3984 | else |
e6cc62c6 VS |
3985 | echo "$as_me:$LINENO: result: no" >&5 |
3986 | echo "${ECHO_T}no" >&6 | |
a1622950 | 3987 | fi |
e6cc62c6 | 3988 | |
a1622950 | 3989 | |
5005acfe | 3990 | enablestring= |
e6cc62c6 VS |
3991 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
3992 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
3993 | no_cache=0 |
3994 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
3995 | if test "${enable_fileproto+set}" = set; then | |
3996 | enableval="$enable_fileproto" | |
e6cc62c6 | 3997 | |
a1622950 VZ |
3998 | if test "$enableval" = yes; then |
3999 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4000 | else | |
4001 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4002 | fi | |
e6cc62c6 | 4003 | |
a1622950 | 4004 | else |
e6cc62c6 | 4005 | |
a1622950 VZ |
4006 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4007 | if test "x$LINE" != x ; then | |
4008 | eval "DEFAULT_$LINE" | |
4009 | else | |
4010 | no_cache=1 | |
4011 | fi | |
4012 | ||
4013 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 4014 | |
e6cc62c6 | 4015 | fi; |
a1622950 VZ |
4016 | |
4017 | eval "$ac_cv_use_fileproto" | |
4018 | if test "$no_cache" != 1; then | |
4019 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4020 | fi | |
4021 | ||
4022 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4023 | echo "$as_me:$LINENO: result: yes" >&5 |
4024 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4025 | else |
e6cc62c6 VS |
4026 | echo "$as_me:$LINENO: result: no" >&5 |
4027 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4028 | fi |
e6cc62c6 | 4029 | |
a1622950 | 4030 | |
5005acfe | 4031 | enablestring= |
e6cc62c6 VS |
4032 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4033 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4034 | no_cache=0 |
4035 | # Check whether --enable-sockets or --disable-sockets was given. | |
4036 | if test "${enable_sockets+set}" = set; then | |
4037 | enableval="$enable_sockets" | |
e6cc62c6 | 4038 | |
10f2d63a VZ |
4039 | if test "$enableval" = yes; then |
4040 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4041 | else | |
4042 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4043 | fi | |
e6cc62c6 | 4044 | |
10f2d63a | 4045 | else |
e6cc62c6 | 4046 | |
10f2d63a VZ |
4047 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4048 | if test "x$LINE" != x ; then | |
4049 | eval "DEFAULT_$LINE" | |
4050 | else | |
4051 | no_cache=1 | |
4052 | fi | |
4053 | ||
4054 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4055 | |
e6cc62c6 | 4056 | fi; |
10f2d63a VZ |
4057 | |
4058 | eval "$ac_cv_use_sockets" | |
4059 | if test "$no_cache" != 1; then | |
4060 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4061 | fi | |
4062 | ||
4063 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4064 | echo "$as_me:$LINENO: result: yes" >&5 |
4065 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4066 | else |
e6cc62c6 VS |
4067 | echo "$as_me:$LINENO: result: no" >&5 |
4068 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4069 | fi |
e6cc62c6 | 4070 | |
8284b0c5 | 4071 | |
5005acfe | 4072 | enablestring= |
e6cc62c6 VS |
4073 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4074 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4075 | no_cache=0 |
4076 | # Check whether --enable-ole or --disable-ole was given. | |
4077 | if test "${enable_ole+set}" = set; then | |
4078 | enableval="$enable_ole" | |
e6cc62c6 | 4079 | |
3bce6687 JS |
4080 | if test "$enableval" = yes; then |
4081 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4082 | else | |
4083 | ac_cv_use_ole='wxUSE_OLE=no' | |
4084 | fi | |
e6cc62c6 | 4085 | |
3bce6687 | 4086 | else |
e6cc62c6 | 4087 | |
3bce6687 JS |
4088 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4089 | if test "x$LINE" != x ; then | |
4090 | eval "DEFAULT_$LINE" | |
4091 | else | |
4092 | no_cache=1 | |
4093 | fi | |
4094 | ||
4095 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4096 | |
e6cc62c6 | 4097 | fi; |
3bce6687 JS |
4098 | |
4099 | eval "$ac_cv_use_ole" | |
4100 | if test "$no_cache" != 1; then | |
4101 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4102 | fi | |
4103 | ||
4104 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4105 | echo "$as_me:$LINENO: result: yes" >&5 |
4106 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4107 | else |
e6cc62c6 VS |
4108 | echo "$as_me:$LINENO: result: no" >&5 |
4109 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4110 | fi |
e6cc62c6 | 4111 | |
3bce6687 | 4112 | |
5005acfe | 4113 | enablestring= |
e6cc62c6 VS |
4114 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4115 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4116 | no_cache=0 |
4117 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4118 | if test "${enable_dataobj+set}" = set; then | |
4119 | enableval="$enable_dataobj" | |
e6cc62c6 | 4120 | |
3bce6687 JS |
4121 | if test "$enableval" = yes; then |
4122 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4123 | else | |
4124 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4125 | fi | |
e6cc62c6 | 4126 | |
3bce6687 | 4127 | else |
e6cc62c6 | 4128 | |
3bce6687 JS |
4129 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4130 | if test "x$LINE" != x ; then | |
4131 | eval "DEFAULT_$LINE" | |
4132 | else | |
4133 | no_cache=1 | |
4134 | fi | |
4135 | ||
4136 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4137 | |
e6cc62c6 | 4138 | fi; |
3bce6687 JS |
4139 | |
4140 | eval "$ac_cv_use_dataobj" | |
4141 | if test "$no_cache" != 1; then | |
4142 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4143 | fi | |
4144 | ||
4145 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4146 | echo "$as_me:$LINENO: result: yes" >&5 |
4147 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4148 | else |
e6cc62c6 VS |
4149 | echo "$as_me:$LINENO: result: no" >&5 |
4150 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4151 | fi |
e6cc62c6 | 4152 | |
3bce6687 | 4153 | |
52127426 | 4154 | |
5005acfe | 4155 | enablestring= |
e6cc62c6 VS |
4156 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4157 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4158 | no_cache=0 |
eb4efbdc VZ |
4159 | # Check whether --enable-ipc or --disable-ipc was given. |
4160 | if test "${enable_ipc+set}" = set; then | |
4161 | enableval="$enable_ipc" | |
e6cc62c6 | 4162 | |
10f2d63a | 4163 | if test "$enableval" = yes; then |
eb4efbdc | 4164 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4165 | else |
eb4efbdc | 4166 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4167 | fi |
e6cc62c6 | 4168 | |
10f2d63a | 4169 | else |
e6cc62c6 | 4170 | |
eb4efbdc | 4171 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4172 | if test "x$LINE" != x ; then |
4173 | eval "DEFAULT_$LINE" | |
4174 | else | |
4175 | no_cache=1 | |
4176 | fi | |
4177 | ||
eb4efbdc | 4178 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4179 | |
e6cc62c6 | 4180 | fi; |
10f2d63a | 4181 | |
eb4efbdc | 4182 | eval "$ac_cv_use_ipc" |
10f2d63a | 4183 | if test "$no_cache" != 1; then |
eb4efbdc | 4184 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4185 | fi |
4186 | ||
eb4efbdc | 4187 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4188 | echo "$as_me:$LINENO: result: yes" >&5 |
4189 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4190 | else |
e6cc62c6 VS |
4191 | echo "$as_me:$LINENO: result: no" >&5 |
4192 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4193 | fi |
e6cc62c6 | 4194 | |
52127426 | 4195 | |
8284b0c5 | 4196 | |
5005acfe | 4197 | enablestring= |
e6cc62c6 VS |
4198 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4199 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
1e6feb95 VZ |
4200 | no_cache=0 |
4201 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4202 | if test "${enable_cmdline+set}" = set; then | |
4203 | enableval="$enable_cmdline" | |
e6cc62c6 | 4204 | |
1e6feb95 VZ |
4205 | if test "$enableval" = yes; then |
4206 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4207 | else | |
4208 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4209 | fi | |
e6cc62c6 | 4210 | |
1e6feb95 | 4211 | else |
e6cc62c6 | 4212 | |
1e6feb95 VZ |
4213 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
4214 | if test "x$LINE" != x ; then | |
4215 | eval "DEFAULT_$LINE" | |
4216 | else | |
4217 | no_cache=1 | |
4218 | fi | |
4219 | ||
4220 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
1e6feb95 | 4221 | |
e6cc62c6 | 4222 | fi; |
1e6feb95 VZ |
4223 | |
4224 | eval "$ac_cv_use_cmdline" | |
4225 | if test "$no_cache" != 1; then | |
4226 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4227 | fi | |
4228 | ||
4229 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
e6cc62c6 VS |
4230 | echo "$as_me:$LINENO: result: yes" >&5 |
4231 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4232 | else |
e6cc62c6 VS |
4233 | echo "$as_me:$LINENO: result: no" >&5 |
4234 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4235 | fi |
e6cc62c6 | 4236 | |
1e6feb95 | 4237 | |
5005acfe | 4238 | enablestring= |
e6cc62c6 VS |
4239 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4240 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
1e6feb95 VZ |
4241 | no_cache=0 |
4242 | # Check whether --enable-datetime or --disable-datetime was given. | |
4243 | if test "${enable_datetime+set}" = set; then | |
4244 | enableval="$enable_datetime" | |
e6cc62c6 | 4245 | |
1e6feb95 VZ |
4246 | if test "$enableval" = yes; then |
4247 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4248 | else | |
4249 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4250 | fi | |
e6cc62c6 | 4251 | |
1e6feb95 | 4252 | else |
e6cc62c6 | 4253 | |
1e6feb95 VZ |
4254 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
4255 | if test "x$LINE" != x ; then | |
4256 | eval "DEFAULT_$LINE" | |
4257 | else | |
4258 | no_cache=1 | |
4259 | fi | |
4260 | ||
4261 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
1e6feb95 | 4262 | |
e6cc62c6 | 4263 | fi; |
1e6feb95 VZ |
4264 | |
4265 | eval "$ac_cv_use_datetime" | |
4266 | if test "$no_cache" != 1; then | |
4267 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4268 | fi | |
4269 | ||
4270 | if test "$wxUSE_DATETIME" = yes; then | |
e6cc62c6 VS |
4271 | echo "$as_me:$LINENO: result: yes" >&5 |
4272 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4273 | else |
e6cc62c6 VS |
4274 | echo "$as_me:$LINENO: result: no" >&5 |
4275 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4276 | fi |
e6cc62c6 | 4277 | |
1e6feb95 | 4278 | |
5005acfe | 4279 | enablestring= |
e6cc62c6 VS |
4280 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
4281 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
1e6feb95 VZ |
4282 | no_cache=0 |
4283 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
4284 | if test "${enable_stopwatch+set}" = set; then | |
4285 | enableval="$enable_stopwatch" | |
e6cc62c6 | 4286 | |
1e6feb95 VZ |
4287 | if test "$enableval" = yes; then |
4288 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
4289 | else | |
4290 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
4291 | fi | |
e6cc62c6 | 4292 | |
1e6feb95 | 4293 | else |
e6cc62c6 | 4294 | |
1e6feb95 VZ |
4295 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
4296 | if test "x$LINE" != x ; then | |
4297 | eval "DEFAULT_$LINE" | |
4298 | else | |
4299 | no_cache=1 | |
4300 | fi | |
4301 | ||
4302 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
1e6feb95 | 4303 | |
e6cc62c6 | 4304 | fi; |
1e6feb95 VZ |
4305 | |
4306 | eval "$ac_cv_use_stopwatch" | |
4307 | if test "$no_cache" != 1; then | |
4308 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
4309 | fi | |
4310 | ||
4311 | if test "$wxUSE_STOPWATCH" = yes; then | |
e6cc62c6 VS |
4312 | echo "$as_me:$LINENO: result: yes" >&5 |
4313 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 4314 | else |
e6cc62c6 VS |
4315 | echo "$as_me:$LINENO: result: no" >&5 |
4316 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 4317 | fi |
e6cc62c6 | 4318 | |
1e6feb95 | 4319 | |
5005acfe | 4320 | enablestring= |
e6cc62c6 VS |
4321 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4322 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4323 | no_cache=0 |
eb4efbdc VZ |
4324 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4325 | if test "${enable_dialupman+set}" = set; then | |
4326 | enableval="$enable_dialupman" | |
e6cc62c6 | 4327 | |
10f2d63a | 4328 | if test "$enableval" = yes; then |
eb4efbdc | 4329 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4330 | else |
eb4efbdc | 4331 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4332 | fi |
e6cc62c6 | 4333 | |
10f2d63a | 4334 | else |
e6cc62c6 | 4335 | |
eb4efbdc | 4336 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4337 | if test "x$LINE" != x ; then |
4338 | eval "DEFAULT_$LINE" | |
4339 | else | |
4340 | no_cache=1 | |
4341 | fi | |
4342 | ||
eb4efbdc | 4343 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4344 | |
e6cc62c6 | 4345 | fi; |
10f2d63a | 4346 | |
eb4efbdc | 4347 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4348 | if test "$no_cache" != 1; then |
eb4efbdc | 4349 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4350 | fi |
4351 | ||
eb4efbdc | 4352 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4353 | echo "$as_me:$LINENO: result: yes" >&5 |
4354 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4355 | else |
e6cc62c6 VS |
4356 | echo "$as_me:$LINENO: result: no" >&5 |
4357 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4358 | fi |
e6cc62c6 | 4359 | |
10f2d63a | 4360 | |
5005acfe | 4361 | enablestring= |
e6cc62c6 VS |
4362 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4363 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a VZ |
4364 | no_cache=0 |
4365 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4366 | if test "${enable_apple_ieee+set}" = set; then | |
4367 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4368 | |
10f2d63a VZ |
4369 | if test "$enableval" = yes; then |
4370 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4371 | else | |
4372 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4373 | fi | |
e6cc62c6 | 4374 | |
10f2d63a | 4375 | else |
e6cc62c6 | 4376 | |
10f2d63a VZ |
4377 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
4378 | if test "x$LINE" != x ; then | |
4379 | eval "DEFAULT_$LINE" | |
4380 | else | |
4381 | no_cache=1 | |
4382 | fi | |
4383 | ||
4384 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
10f2d63a | 4385 | |
e6cc62c6 | 4386 | fi; |
10f2d63a VZ |
4387 | |
4388 | eval "$ac_cv_use_apple_ieee" | |
4389 | if test "$no_cache" != 1; then | |
4390 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4391 | fi | |
4392 | ||
4393 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
e6cc62c6 VS |
4394 | echo "$as_me:$LINENO: result: yes" >&5 |
4395 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4396 | else |
e6cc62c6 VS |
4397 | echo "$as_me:$LINENO: result: no" >&5 |
4398 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4399 | fi |
e6cc62c6 | 4400 | |
10f2d63a | 4401 | |
5005acfe | 4402 | enablestring= |
e6cc62c6 VS |
4403 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
4404 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
10f2d63a | 4405 | no_cache=0 |
1e6feb95 VZ |
4406 | # Check whether --enable-timer or --disable-timer was given. |
4407 | if test "${enable_timer+set}" = set; then | |
4408 | enableval="$enable_timer" | |
e6cc62c6 | 4409 | |
10f2d63a | 4410 | if test "$enableval" = yes; then |
1e6feb95 | 4411 | ac_cv_use_timer='wxUSE_TIMER=yes' |
10f2d63a | 4412 | else |
1e6feb95 | 4413 | ac_cv_use_timer='wxUSE_TIMER=no' |
10f2d63a | 4414 | fi |
e6cc62c6 | 4415 | |
10f2d63a | 4416 | else |
e6cc62c6 | 4417 | |
1e6feb95 | 4418 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4419 | if test "x$LINE" != x ; then |
4420 | eval "DEFAULT_$LINE" | |
4421 | else | |
4422 | no_cache=1 | |
4423 | fi | |
4424 | ||
1e6feb95 | 4425 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
10f2d63a | 4426 | |
e6cc62c6 | 4427 | fi; |
10f2d63a | 4428 | |
1e6feb95 | 4429 | eval "$ac_cv_use_timer" |
10f2d63a | 4430 | if test "$no_cache" != 1; then |
1e6feb95 | 4431 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4432 | fi |
4433 | ||
1e6feb95 | 4434 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
4435 | echo "$as_me:$LINENO: result: yes" >&5 |
4436 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4437 | else |
e6cc62c6 VS |
4438 | echo "$as_me:$LINENO: result: no" >&5 |
4439 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4440 | fi |
e6cc62c6 | 4441 | |
10f2d63a | 4442 | |
5005acfe | 4443 | enablestring= |
e6cc62c6 VS |
4444 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5 |
4445 | echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6 | |
10f2d63a VZ |
4446 | no_cache=0 |
4447 | # Check whether --enable-wave or --disable-wave was given. | |
4448 | if test "${enable_wave+set}" = set; then | |
4449 | enableval="$enable_wave" | |
e6cc62c6 | 4450 | |
10f2d63a VZ |
4451 | if test "$enableval" = yes; then |
4452 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
4453 | else | |
4454 | ac_cv_use_wave='wxUSE_WAVE=no' | |
4455 | fi | |
e6cc62c6 | 4456 | |
10f2d63a | 4457 | else |
e6cc62c6 | 4458 | |
10f2d63a VZ |
4459 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` |
4460 | if test "x$LINE" != x ; then | |
4461 | eval "DEFAULT_$LINE" | |
4462 | else | |
4463 | no_cache=1 | |
4464 | fi | |
4465 | ||
4466 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
10f2d63a | 4467 | |
e6cc62c6 | 4468 | fi; |
10f2d63a VZ |
4469 | |
4470 | eval "$ac_cv_use_wave" | |
4471 | if test "$no_cache" != 1; then | |
4472 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
4473 | fi | |
4474 | ||
4475 | if test "$wxUSE_WAVE" = yes; then | |
e6cc62c6 VS |
4476 | echo "$as_me:$LINENO: result: yes" >&5 |
4477 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4478 | else |
e6cc62c6 VS |
4479 | echo "$as_me:$LINENO: result: no" >&5 |
4480 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4481 | fi |
e6cc62c6 | 4482 | |
10f2d63a | 4483 | |
5005acfe | 4484 | enablestring= |
e6cc62c6 VS |
4485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fraction" >&5 |
4486 | echo $ECHO_N "checking for --${enablestring:-enable}-fraction... $ECHO_C" >&6 | |
10f2d63a VZ |
4487 | no_cache=0 |
4488 | # Check whether --enable-fraction or --disable-fraction was given. | |
4489 | if test "${enable_fraction+set}" = set; then | |
4490 | enableval="$enable_fraction" | |
e6cc62c6 | 4491 | |
10f2d63a VZ |
4492 | if test "$enableval" = yes; then |
4493 | ac_cv_use_fraction='wxUSE_FRACTION=yes' | |
4494 | else | |
4495 | ac_cv_use_fraction='wxUSE_FRACTION=no' | |
4496 | fi | |
e6cc62c6 | 4497 | |
10f2d63a | 4498 | else |
e6cc62c6 | 4499 | |
10f2d63a VZ |
4500 | LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}` |
4501 | if test "x$LINE" != x ; then | |
4502 | eval "DEFAULT_$LINE" | |
4503 | else | |
4504 | no_cache=1 | |
4505 | fi | |
4506 | ||
4507 | ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION | |
10f2d63a | 4508 | |
e6cc62c6 | 4509 | fi; |
10f2d63a VZ |
4510 | |
4511 | eval "$ac_cv_use_fraction" | |
4512 | if test "$no_cache" != 1; then | |
4513 | echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp | |
4514 | fi | |
4515 | ||
4516 | if test "$wxUSE_FRACTION" = yes; then | |
e6cc62c6 VS |
4517 | echo "$as_me:$LINENO: result: yes" >&5 |
4518 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4519 | else |
e6cc62c6 VS |
4520 | echo "$as_me:$LINENO: result: no" >&5 |
4521 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4522 | fi |
e6cc62c6 | 4523 | |
10f2d63a | 4524 | |
5005acfe | 4525 | enablestring= |
e6cc62c6 VS |
4526 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4527 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4528 | no_cache=0 |
4529 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4530 | if test "${enable_dynlib+set}" = set; then | |
4531 | enableval="$enable_dynlib" | |
e6cc62c6 | 4532 | |
10f2d63a VZ |
4533 | if test "$enableval" = yes; then |
4534 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4535 | else | |
4536 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4537 | fi | |
e6cc62c6 | 4538 | |
10f2d63a | 4539 | else |
e6cc62c6 | 4540 | |
10f2d63a VZ |
4541 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4542 | if test "x$LINE" != x ; then | |
4543 | eval "DEFAULT_$LINE" | |
4544 | else | |
4545 | no_cache=1 | |
4546 | fi | |
4547 | ||
4548 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4549 | |
e6cc62c6 | 4550 | fi; |
10f2d63a VZ |
4551 | |
4552 | eval "$ac_cv_use_dynlib" | |
4553 | if test "$no_cache" != 1; then | |
4554 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4555 | fi | |
4556 | ||
4557 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4558 | echo "$as_me:$LINENO: result: yes" >&5 |
4559 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4560 | else |
e6cc62c6 VS |
4561 | echo "$as_me:$LINENO: result: no" >&5 |
4562 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4563 | fi |
e6cc62c6 | 4564 | |
10f2d63a | 4565 | |
5005acfe | 4566 | enablestring= |
e6cc62c6 VS |
4567 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4568 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4569 | no_cache=0 |
4570 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4571 | if test "${enable_dynamicloader+set}" = set; then | |
4572 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4573 | |
0b9ab0bd RL |
4574 | if test "$enableval" = yes; then |
4575 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4576 | else | |
4577 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4578 | fi | |
e6cc62c6 | 4579 | |
0b9ab0bd | 4580 | else |
e6cc62c6 | 4581 | |
0b9ab0bd RL |
4582 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4583 | if test "x$LINE" != x ; then | |
4584 | eval "DEFAULT_$LINE" | |
4585 | else | |
4586 | no_cache=1 | |
4587 | fi | |
4588 | ||
4589 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4590 | |
e6cc62c6 | 4591 | fi; |
0b9ab0bd RL |
4592 | |
4593 | eval "$ac_cv_use_dynamicloader" | |
4594 | if test "$no_cache" != 1; then | |
4595 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4596 | fi | |
4597 | ||
4598 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4599 | echo "$as_me:$LINENO: result: yes" >&5 |
4600 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4601 | else |
e6cc62c6 VS |
4602 | echo "$as_me:$LINENO: result: no" >&5 |
4603 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4604 | fi |
e6cc62c6 | 4605 | |
0b9ab0bd | 4606 | |
5005acfe | 4607 | enablestring= |
e6cc62c6 VS |
4608 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
4609 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a VZ |
4610 | no_cache=0 |
4611 | # Check whether --enable-longlong or --disable-longlong was given. | |
4612 | if test "${enable_longlong+set}" = set; then | |
4613 | enableval="$enable_longlong" | |
e6cc62c6 | 4614 | |
10f2d63a VZ |
4615 | if test "$enableval" = yes; then |
4616 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
4617 | else | |
4618 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
4619 | fi | |
e6cc62c6 | 4620 | |
10f2d63a | 4621 | else |
e6cc62c6 | 4622 | |
10f2d63a VZ |
4623 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
4624 | if test "x$LINE" != x ; then | |
4625 | eval "DEFAULT_$LINE" | |
4626 | else | |
4627 | no_cache=1 | |
4628 | fi | |
4629 | ||
4630 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
10f2d63a | 4631 | |
e6cc62c6 | 4632 | fi; |
10f2d63a VZ |
4633 | |
4634 | eval "$ac_cv_use_longlong" | |
4635 | if test "$no_cache" != 1; then | |
4636 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
4637 | fi | |
4638 | ||
4639 | if test "$wxUSE_LONGLONG" = yes; then | |
e6cc62c6 VS |
4640 | echo "$as_me:$LINENO: result: yes" >&5 |
4641 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4642 | else |
e6cc62c6 VS |
4643 | echo "$as_me:$LINENO: result: no" >&5 |
4644 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4645 | fi |
e6cc62c6 | 4646 | |
10f2d63a | 4647 | |
5005acfe | 4648 | enablestring= |
e6cc62c6 VS |
4649 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
4650 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
e8f65ba6 RR |
4651 | no_cache=0 |
4652 | # Check whether --enable-geometry or --disable-geometry was given. | |
4653 | if test "${enable_geometry+set}" = set; then | |
4654 | enableval="$enable_geometry" | |
e6cc62c6 | 4655 | |
e8f65ba6 RR |
4656 | if test "$enableval" = yes; then |
4657 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
4658 | else | |
4659 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
4660 | fi | |
e6cc62c6 | 4661 | |
e8f65ba6 | 4662 | else |
e6cc62c6 | 4663 | |
e8f65ba6 RR |
4664 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
4665 | if test "x$LINE" != x ; then | |
4666 | eval "DEFAULT_$LINE" | |
4667 | else | |
4668 | no_cache=1 | |
4669 | fi | |
4670 | ||
4671 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
e8f65ba6 | 4672 | |
e6cc62c6 | 4673 | fi; |
e8f65ba6 RR |
4674 | |
4675 | eval "$ac_cv_use_geometry" | |
4676 | if test "$no_cache" != 1; then | |
4677 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
4678 | fi | |
4679 | ||
4680 | if test "$wxUSE_GEOMETRY" = yes; then | |
e6cc62c6 VS |
4681 | echo "$as_me:$LINENO: result: yes" >&5 |
4682 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4683 | else |
e6cc62c6 VS |
4684 | echo "$as_me:$LINENO: result: no" >&5 |
4685 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4686 | fi |
e6cc62c6 | 4687 | |
e8f65ba6 | 4688 | |
5005acfe | 4689 | enablestring= |
e6cc62c6 VS |
4690 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
4691 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a VZ |
4692 | no_cache=0 |
4693 | # Check whether --enable-log or --disable-log was given. | |
4694 | if test "${enable_log+set}" = set; then | |
4695 | enableval="$enable_log" | |
e6cc62c6 | 4696 | |
10f2d63a VZ |
4697 | if test "$enableval" = yes; then |
4698 | ac_cv_use_log='wxUSE_LOG=yes' | |
4699 | else | |
4700 | ac_cv_use_log='wxUSE_LOG=no' | |
4701 | fi | |
e6cc62c6 | 4702 | |
10f2d63a | 4703 | else |
e6cc62c6 | 4704 | |
10f2d63a VZ |
4705 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
4706 | if test "x$LINE" != x ; then | |
4707 | eval "DEFAULT_$LINE" | |
4708 | else | |
4709 | no_cache=1 | |
4710 | fi | |
4711 | ||
4712 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
10f2d63a | 4713 | |
e6cc62c6 | 4714 | fi; |
10f2d63a VZ |
4715 | |
4716 | eval "$ac_cv_use_log" | |
4717 | if test "$no_cache" != 1; then | |
4718 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
4719 | fi | |
4720 | ||
4721 | if test "$wxUSE_LOG" = yes; then | |
e6cc62c6 VS |
4722 | echo "$as_me:$LINENO: result: yes" >&5 |
4723 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4724 | else |
e6cc62c6 VS |
4725 | echo "$as_me:$LINENO: result: no" >&5 |
4726 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4727 | fi |
e6cc62c6 | 4728 | |
10f2d63a | 4729 | |
5005acfe | 4730 | enablestring= |
e6cc62c6 VS |
4731 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 |
4732 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
10f2d63a VZ |
4733 | no_cache=0 |
4734 | # Check whether --enable-streams or --disable-streams was given. | |
4735 | if test "${enable_streams+set}" = set; then | |
4736 | enableval="$enable_streams" | |
e6cc62c6 | 4737 | |
10f2d63a VZ |
4738 | if test "$enableval" = yes; then |
4739 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
4740 | else | |
4741 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
4742 | fi | |
e6cc62c6 | 4743 | |
10f2d63a | 4744 | else |
e6cc62c6 | 4745 | |
10f2d63a VZ |
4746 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` |
4747 | if test "x$LINE" != x ; then | |
4748 | eval "DEFAULT_$LINE" | |
4749 | else | |
4750 | no_cache=1 | |
4751 | fi | |
4752 | ||
4753 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
10f2d63a | 4754 | |
e6cc62c6 | 4755 | fi; |
10f2d63a VZ |
4756 | |
4757 | eval "$ac_cv_use_streams" | |
4758 | if test "$no_cache" != 1; then | |
4759 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
4760 | fi | |
4761 | ||
4762 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
4763 | echo "$as_me:$LINENO: result: yes" >&5 |
4764 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4765 | else |
e6cc62c6 VS |
4766 | echo "$as_me:$LINENO: result: no" >&5 |
4767 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4768 | fi |
e6cc62c6 | 4769 | |
10f2d63a | 4770 | |
5005acfe | 4771 | enablestring= |
e6cc62c6 VS |
4772 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4773 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a VZ |
4774 | no_cache=0 |
4775 | # Check whether --enable-file or --disable-file was given. | |
4776 | if test "${enable_file+set}" = set; then | |
4777 | enableval="$enable_file" | |
e6cc62c6 | 4778 | |
10f2d63a VZ |
4779 | if test "$enableval" = yes; then |
4780 | ac_cv_use_file='wxUSE_FILE=yes' | |
4781 | else | |
4782 | ac_cv_use_file='wxUSE_FILE=no' | |
4783 | fi | |
e6cc62c6 | 4784 | |
10f2d63a | 4785 | else |
e6cc62c6 | 4786 | |
10f2d63a VZ |
4787 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
4788 | if test "x$LINE" != x ; then | |
4789 | eval "DEFAULT_$LINE" | |
4790 | else | |
4791 | no_cache=1 | |
4792 | fi | |
4793 | ||
4794 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
10f2d63a | 4795 | |
e6cc62c6 | 4796 | fi; |
10f2d63a VZ |
4797 | |
4798 | eval "$ac_cv_use_file" | |
4799 | if test "$no_cache" != 1; then | |
4800 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4801 | fi | |
4802 | ||
4803 | if test "$wxUSE_FILE" = yes; then | |
e6cc62c6 VS |
4804 | echo "$as_me:$LINENO: result: yes" >&5 |
4805 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4806 | else |
e6cc62c6 VS |
4807 | echo "$as_me:$LINENO: result: no" >&5 |
4808 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4809 | fi |
e6cc62c6 | 4810 | |
10f2d63a | 4811 | |
5005acfe | 4812 | enablestring= |
e6cc62c6 VS |
4813 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4814 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
10f2d63a | 4815 | no_cache=0 |
1e6feb95 VZ |
4816 | # Check whether --enable-ffile or --disable-ffile was given. |
4817 | if test "${enable_ffile+set}" = set; then | |
4818 | enableval="$enable_ffile" | |
e6cc62c6 | 4819 | |
10f2d63a | 4820 | if test "$enableval" = yes; then |
1e6feb95 | 4821 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
10f2d63a | 4822 | else |
1e6feb95 | 4823 | ac_cv_use_ffile='wxUSE_FFILE=no' |
10f2d63a | 4824 | fi |
e6cc62c6 | 4825 | |
10f2d63a | 4826 | else |
e6cc62c6 | 4827 | |
1e6feb95 | 4828 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4829 | if test "x$LINE" != x ; then |
4830 | eval "DEFAULT_$LINE" | |
4831 | else | |
4832 | no_cache=1 | |
4833 | fi | |
4834 | ||
1e6feb95 | 4835 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
10f2d63a | 4836 | |
e6cc62c6 | 4837 | fi; |
10f2d63a | 4838 | |
1e6feb95 | 4839 | eval "$ac_cv_use_ffile" |
10f2d63a | 4840 | if test "$no_cache" != 1; then |
1e6feb95 | 4841 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4842 | fi |
4843 | ||
1e6feb95 | 4844 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4845 | echo "$as_me:$LINENO: result: yes" >&5 |
4846 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4847 | else |
e6cc62c6 VS |
4848 | echo "$as_me:$LINENO: result: no" >&5 |
4849 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4850 | fi |
e6cc62c6 | 4851 | |
10f2d63a | 4852 | |
5005acfe | 4853 | enablestring= |
e6cc62c6 VS |
4854 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
4855 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
a3a584a7 VZ |
4856 | no_cache=0 |
4857 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
4858 | if test "${enable_textbuf+set}" = set; then | |
4859 | enableval="$enable_textbuf" | |
e6cc62c6 | 4860 | |
a3a584a7 VZ |
4861 | if test "$enableval" = yes; then |
4862 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
4863 | else | |
4864 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
4865 | fi | |
e6cc62c6 | 4866 | |
a3a584a7 | 4867 | else |
e6cc62c6 | 4868 | |
a3a584a7 VZ |
4869 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
4870 | if test "x$LINE" != x ; then | |
4871 | eval "DEFAULT_$LINE" | |
4872 | else | |
4873 | no_cache=1 | |
4874 | fi | |
4875 | ||
4876 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
a3a584a7 | 4877 | |
e6cc62c6 | 4878 | fi; |
a3a584a7 VZ |
4879 | |
4880 | eval "$ac_cv_use_textbuf" | |
4881 | if test "$no_cache" != 1; then | |
4882 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
4883 | fi | |
4884 | ||
4885 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
e6cc62c6 VS |
4886 | echo "$as_me:$LINENO: result: yes" >&5 |
4887 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4888 | else |
e6cc62c6 VS |
4889 | echo "$as_me:$LINENO: result: no" >&5 |
4890 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4891 | fi |
e6cc62c6 | 4892 | |
a3a584a7 | 4893 | |
5005acfe | 4894 | enablestring= |
e6cc62c6 VS |
4895 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
4896 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 4897 | no_cache=0 |
1e6feb95 VZ |
4898 | # Check whether --enable-textfile or --disable-textfile was given. |
4899 | if test "${enable_textfile+set}" = set; then | |
4900 | enableval="$enable_textfile" | |
e6cc62c6 | 4901 | |
10f2d63a | 4902 | if test "$enableval" = yes; then |
1e6feb95 | 4903 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 4904 | else |
1e6feb95 | 4905 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 4906 | fi |
e6cc62c6 | 4907 | |
10f2d63a | 4908 | else |
e6cc62c6 | 4909 | |
1e6feb95 | 4910 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4911 | if test "x$LINE" != x ; then |
4912 | eval "DEFAULT_$LINE" | |
4913 | else | |
4914 | no_cache=1 | |
4915 | fi | |
4916 | ||
1e6feb95 | 4917 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 4918 | |
e6cc62c6 | 4919 | fi; |
10f2d63a | 4920 | |
1e6feb95 | 4921 | eval "$ac_cv_use_textfile" |
10f2d63a | 4922 | if test "$no_cache" != 1; then |
1e6feb95 | 4923 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4924 | fi |
4925 | ||
1e6feb95 | 4926 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
4927 | echo "$as_me:$LINENO: result: yes" >&5 |
4928 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4929 | else |
e6cc62c6 VS |
4930 | echo "$as_me:$LINENO: result: no" >&5 |
4931 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4932 | fi |
e6cc62c6 | 4933 | |
10f2d63a | 4934 | |
5005acfe | 4935 | enablestring= |
e6cc62c6 VS |
4936 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4937 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4938 | no_cache=0 |
1e6feb95 VZ |
4939 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4940 | if test "${enable_fontmap+set}" = set; then | |
4941 | enableval="$enable_fontmap" | |
e6cc62c6 | 4942 | |
10f2d63a | 4943 | if test "$enableval" = yes; then |
1e6feb95 | 4944 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4945 | else |
1e6feb95 | 4946 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4947 | fi |
e6cc62c6 | 4948 | |
10f2d63a | 4949 | else |
e6cc62c6 | 4950 | |
1e6feb95 | 4951 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4952 | if test "x$LINE" != x ; then |
4953 | eval "DEFAULT_$LINE" | |
4954 | else | |
4955 | no_cache=1 | |
4956 | fi | |
4957 | ||
1e6feb95 | 4958 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4959 | |
e6cc62c6 | 4960 | fi; |
10f2d63a | 4961 | |
1e6feb95 | 4962 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4963 | if test "$no_cache" != 1; then |
1e6feb95 | 4964 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4965 | fi |
4966 | ||
1e6feb95 | 4967 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4968 | echo "$as_me:$LINENO: result: yes" >&5 |
4969 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4970 | else |
e6cc62c6 VS |
4971 | echo "$as_me:$LINENO: result: no" >&5 |
4972 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4973 | fi |
e6cc62c6 | 4974 | |
10f2d63a | 4975 | |
5005acfe | 4976 | enablestring= |
e6cc62c6 VS |
4977 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
4978 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
10f2d63a | 4979 | no_cache=0 |
1e6feb95 VZ |
4980 | # Check whether --enable-unicode or --disable-unicode was given. |
4981 | if test "${enable_unicode+set}" = set; then | |
4982 | enableval="$enable_unicode" | |
e6cc62c6 | 4983 | |
1e6feb95 VZ |
4984 | if test "$enableval" = yes; then |
4985 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
4986 | else | |
4987 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
4988 | fi | |
e6cc62c6 | 4989 | |
1e6feb95 | 4990 | else |
e6cc62c6 | 4991 | |
1e6feb95 VZ |
4992 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4993 | if test "x$LINE" != x ; then | |
4994 | eval "DEFAULT_$LINE" | |
4995 | else | |
4996 | no_cache=1 | |
4997 | fi | |
4998 | ||
4999 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
1e6feb95 | 5000 | |
e6cc62c6 | 5001 | fi; |
1e6feb95 VZ |
5002 | |
5003 | eval "$ac_cv_use_unicode" | |
5004 | if test "$no_cache" != 1; then | |
5005 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5006 | fi | |
5007 | ||
5008 | if test "$wxUSE_UNICODE" = yes; then | |
e6cc62c6 VS |
5009 | echo "$as_me:$LINENO: result: yes" >&5 |
5010 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5011 | else |
e6cc62c6 VS |
5012 | echo "$as_me:$LINENO: result: no" >&5 |
5013 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5014 | fi |
e6cc62c6 | 5015 | |
1e6feb95 | 5016 | |
5005acfe | 5017 | enablestring= |
e6cc62c6 VS |
5018 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
5019 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5020 | no_cache=0 |
5021 | # Check whether --enable-mslu or --disable-mslu was given. | |
5022 | if test "${enable_mslu+set}" = set; then | |
5023 | enableval="$enable_mslu" | |
e6cc62c6 | 5024 | |
a72a4bfa VS |
5025 | if test "$enableval" = yes; then |
5026 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5027 | else | |
5028 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5029 | fi | |
e6cc62c6 | 5030 | |
a72a4bfa | 5031 | else |
e6cc62c6 | 5032 | |
a72a4bfa VS |
5033 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5034 | if test "x$LINE" != x ; then | |
5035 | eval "DEFAULT_$LINE" | |
5036 | else | |
5037 | no_cache=1 | |
5038 | fi | |
5039 | ||
5040 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5041 | |
e6cc62c6 | 5042 | fi; |
a72a4bfa VS |
5043 | |
5044 | eval "$ac_cv_use_mslu" | |
5045 | if test "$no_cache" != 1; then | |
5046 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5047 | fi | |
5048 | ||
5049 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5050 | echo "$as_me:$LINENO: result: yes" >&5 |
5051 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5052 | else |
e6cc62c6 VS |
5053 | echo "$as_me:$LINENO: result: no" >&5 |
5054 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5055 | fi |
e6cc62c6 | 5056 | |
a72a4bfa | 5057 | |
5005acfe | 5058 | enablestring= |
e6cc62c6 VS |
5059 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5060 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 VZ |
5061 | no_cache=0 |
5062 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5063 | if test "${enable_wxprintfv+set}" = set; then | |
5064 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5065 | |
1e6feb95 | 5066 | if test "$enableval" = yes; then |
10f2d63a VZ |
5067 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
5068 | else | |
5069 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5070 | fi | |
e6cc62c6 | 5071 | |
10f2d63a | 5072 | else |
e6cc62c6 | 5073 | |
10f2d63a VZ |
5074 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
5075 | if test "x$LINE" != x ; then | |
5076 | eval "DEFAULT_$LINE" | |
5077 | else | |
5078 | no_cache=1 | |
5079 | fi | |
5080 | ||
5081 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
10f2d63a | 5082 | |
e6cc62c6 | 5083 | fi; |
10f2d63a VZ |
5084 | |
5085 | eval "$ac_cv_use_wxprintfv" | |
5086 | if test "$no_cache" != 1; then | |
5087 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5088 | fi | |
5089 | ||
5090 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
e6cc62c6 VS |
5091 | echo "$as_me:$LINENO: result: yes" >&5 |
5092 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5093 | else |
e6cc62c6 VS |
5094 | echo "$as_me:$LINENO: result: no" >&5 |
5095 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5096 | fi |
e6cc62c6 | 5097 | |
10f2d63a | 5098 | |
5005acfe | 5099 | enablestring= |
e6cc62c6 VS |
5100 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5101 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5102 | no_cache=0 |
5103 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5104 | if test "${enable_std_iostreams+set}" = set; then | |
5105 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5106 | |
10f2d63a VZ |
5107 | if test "$enableval" = yes; then |
5108 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5109 | else | |
5110 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5111 | fi | |
e6cc62c6 | 5112 | |
10f2d63a | 5113 | else |
e6cc62c6 | 5114 | |
10f2d63a VZ |
5115 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5116 | if test "x$LINE" != x ; then | |
5117 | eval "DEFAULT_$LINE" | |
5118 | else | |
5119 | no_cache=1 | |
5120 | fi | |
5121 | ||
5122 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5123 | |
e6cc62c6 | 5124 | fi; |
10f2d63a VZ |
5125 | |
5126 | eval "$ac_cv_use_std_iostreams" | |
5127 | if test "$no_cache" != 1; then | |
5128 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5129 | fi | |
5130 | ||
5131 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5132 | echo "$as_me:$LINENO: result: yes" >&5 |
5133 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5134 | else |
e6cc62c6 VS |
5135 | echo "$as_me:$LINENO: result: no" >&5 |
5136 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5137 | fi |
e6cc62c6 | 5138 | |
10f2d63a | 5139 | |
5005acfe | 5140 | enablestring= |
e6cc62c6 VS |
5141 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
5142 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
24528b0c VS |
5143 | no_cache=0 |
5144 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
5145 | if test "${enable_filesystem+set}" = set; then | |
5146 | enableval="$enable_filesystem" | |
e6cc62c6 | 5147 | |
24528b0c VS |
5148 | if test "$enableval" = yes; then |
5149 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
5150 | else | |
5151 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
5152 | fi | |
e6cc62c6 | 5153 | |
24528b0c | 5154 | else |
e6cc62c6 | 5155 | |
24528b0c VS |
5156 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
5157 | if test "x$LINE" != x ; then | |
5158 | eval "DEFAULT_$LINE" | |
5159 | else | |
5160 | no_cache=1 | |
5161 | fi | |
5162 | ||
5163 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
24528b0c | 5164 | |
e6cc62c6 | 5165 | fi; |
24528b0c VS |
5166 | |
5167 | eval "$ac_cv_use_filesystem" | |
5168 | if test "$no_cache" != 1; then | |
5169 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
5170 | fi | |
5171 | ||
5172 | if test "$wxUSE_FILESYSTEM" = yes; then | |
e6cc62c6 VS |
5173 | echo "$as_me:$LINENO: result: yes" >&5 |
5174 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5175 | else |
e6cc62c6 VS |
5176 | echo "$as_me:$LINENO: result: no" >&5 |
5177 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5178 | fi |
e6cc62c6 | 5179 | |
24528b0c | 5180 | |
5005acfe | 5181 | enablestring= |
e6cc62c6 VS |
5182 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
5183 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a VZ |
5184 | no_cache=0 |
5185 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
5186 | if test "${enable_fs_inet+set}" = set; then | |
5187 | enableval="$enable_fs_inet" | |
e6cc62c6 | 5188 | |
10f2d63a VZ |
5189 | if test "$enableval" = yes; then |
5190 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
5191 | else | |
5192 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
5193 | fi | |
e6cc62c6 | 5194 | |
10f2d63a | 5195 | else |
e6cc62c6 | 5196 | |
10f2d63a VZ |
5197 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
5198 | if test "x$LINE" != x ; then | |
5199 | eval "DEFAULT_$LINE" | |
5200 | else | |
5201 | no_cache=1 | |
5202 | fi | |
5203 | ||
5204 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
10f2d63a | 5205 | |
e6cc62c6 | 5206 | fi; |
10f2d63a VZ |
5207 | |
5208 | eval "$ac_cv_use_fs_inet" | |
5209 | if test "$no_cache" != 1; then | |
5210 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5211 | fi | |
5212 | ||
5213 | if test "$wxUSE_FS_INET" = yes; then | |
e6cc62c6 VS |
5214 | echo "$as_me:$LINENO: result: yes" >&5 |
5215 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5216 | else |
e6cc62c6 VS |
5217 | echo "$as_me:$LINENO: result: no" >&5 |
5218 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5219 | fi |
e6cc62c6 | 5220 | |
10f2d63a | 5221 | |
5005acfe | 5222 | enablestring= |
e6cc62c6 VS |
5223 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
5224 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
10f2d63a VZ |
5225 | no_cache=0 |
5226 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5227 | if test "${enable_fs_zip+set}" = set; then | |
5228 | enableval="$enable_fs_zip" | |
e6cc62c6 | 5229 | |
10f2d63a VZ |
5230 | if test "$enableval" = yes; then |
5231 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5232 | else | |
5233 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5234 | fi | |
e6cc62c6 | 5235 | |
10f2d63a | 5236 | else |
e6cc62c6 | 5237 | |
10f2d63a VZ |
5238 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
5239 | if test "x$LINE" != x ; then | |
5240 | eval "DEFAULT_$LINE" | |
5241 | else | |
5242 | no_cache=1 | |
5243 | fi | |
5244 | ||
5245 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
10f2d63a | 5246 | |
e6cc62c6 | 5247 | fi; |
10f2d63a VZ |
5248 | |
5249 | eval "$ac_cv_use_fs_zip" | |
5250 | if test "$no_cache" != 1; then | |
5251 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5252 | fi | |
5253 | ||
5254 | if test "$wxUSE_FS_ZIP" = yes; then | |
e6cc62c6 VS |
5255 | echo "$as_me:$LINENO: result: yes" >&5 |
5256 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5257 | else |
e6cc62c6 VS |
5258 | echo "$as_me:$LINENO: result: no" >&5 |
5259 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5260 | fi |
e6cc62c6 | 5261 | |
10f2d63a | 5262 | |
5005acfe | 5263 | enablestring= |
e6cc62c6 VS |
5264 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5265 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
10f2d63a VZ |
5266 | no_cache=0 |
5267 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5268 | if test "${enable_zipstream+set}" = set; then | |
5269 | enableval="$enable_zipstream" | |
e6cc62c6 | 5270 | |
10f2d63a VZ |
5271 | if test "$enableval" = yes; then |
5272 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5273 | else | |
5274 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5275 | fi | |
e6cc62c6 | 5276 | |
10f2d63a | 5277 | else |
e6cc62c6 | 5278 | |
10f2d63a VZ |
5279 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
5280 | if test "x$LINE" != x ; then | |
5281 | eval "DEFAULT_$LINE" | |
5282 | else | |
5283 | no_cache=1 | |
5284 | fi | |
5285 | ||
5286 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
10f2d63a | 5287 | |
e6cc62c6 | 5288 | fi; |
10f2d63a VZ |
5289 | |
5290 | eval "$ac_cv_use_zipstream" | |
5291 | if test "$no_cache" != 1; then | |
5292 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5293 | fi | |
5294 | ||
5295 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
e6cc62c6 VS |
5296 | echo "$as_me:$LINENO: result: yes" >&5 |
5297 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5298 | else |
e6cc62c6 VS |
5299 | echo "$as_me:$LINENO: result: no" >&5 |
5300 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5301 | fi |
e6cc62c6 | 5302 | |
8284b0c5 | 5303 | |
52127426 | 5304 | |
5005acfe | 5305 | enablestring= |
e6cc62c6 VS |
5306 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
5307 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
eb4efbdc VZ |
5308 | no_cache=0 |
5309 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
5310 | if test "${enable_catch_segvs+set}" = set; then | |
5311 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 5312 | |
eb4efbdc VZ |
5313 | if test "$enableval" = yes; then |
5314 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
5315 | else | |
5316 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
5317 | fi | |
e6cc62c6 | 5318 | |
eb4efbdc | 5319 | else |
e6cc62c6 | 5320 | |
eb4efbdc VZ |
5321 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
5322 | if test "x$LINE" != x ; then | |
5323 | eval "DEFAULT_$LINE" | |
5324 | else | |
5325 | no_cache=1 | |
5326 | fi | |
5327 | ||
5328 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
eb4efbdc | 5329 | |
e6cc62c6 | 5330 | fi; |
eb4efbdc VZ |
5331 | |
5332 | eval "$ac_cv_use_catch_segvs" | |
5333 | if test "$no_cache" != 1; then | |
5334 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
5335 | fi | |
5336 | ||
5337 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
e6cc62c6 VS |
5338 | echo "$as_me:$LINENO: result: yes" >&5 |
5339 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5340 | else |
e6cc62c6 VS |
5341 | echo "$as_me:$LINENO: result: no" >&5 |
5342 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5343 | fi |
e6cc62c6 | 5344 | |
eb4efbdc | 5345 | |
5005acfe | 5346 | enablestring= |
e6cc62c6 VS |
5347 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5348 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
4f3c5f06 VZ |
5349 | no_cache=0 |
5350 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5351 | if test "${enable_snglinst+set}" = set; then | |
5352 | enableval="$enable_snglinst" | |
e6cc62c6 | 5353 | |
4f3c5f06 VZ |
5354 | if test "$enableval" = yes; then |
5355 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5356 | else | |
5357 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5358 | fi | |
e6cc62c6 | 5359 | |
4f3c5f06 | 5360 | else |
e6cc62c6 | 5361 | |
4f3c5f06 VZ |
5362 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
5363 | if test "x$LINE" != x ; then | |
5364 | eval "DEFAULT_$LINE" | |
5365 | else | |
5366 | no_cache=1 | |
5367 | fi | |
5368 | ||
5369 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
4f3c5f06 | 5370 | |
e6cc62c6 | 5371 | fi; |
4f3c5f06 VZ |
5372 | |
5373 | eval "$ac_cv_use_snglinst" | |
5374 | if test "$no_cache" != 1; then | |
5375 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5376 | fi | |
5377 | ||
5378 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
e6cc62c6 VS |
5379 | echo "$as_me:$LINENO: result: yes" >&5 |
5380 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5381 | else |
e6cc62c6 VS |
5382 | echo "$as_me:$LINENO: result: no" >&5 |
5383 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5384 | fi |
e6cc62c6 | 5385 | |
52127426 | 5386 | |
8284b0c5 | 5387 | |
5005acfe | 5388 | enablestring= |
e6cc62c6 VS |
5389 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 |
5390 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
1e6feb95 VZ |
5391 | no_cache=0 |
5392 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5393 | if test "${enable_mimetype+set}" = set; then | |
5394 | enableval="$enable_mimetype" | |
e6cc62c6 | 5395 | |
1e6feb95 VZ |
5396 | if test "$enableval" = yes; then |
5397 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5398 | else | |
5399 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5400 | fi | |
e6cc62c6 | 5401 | |
1e6feb95 | 5402 | else |
e6cc62c6 | 5403 | |
1e6feb95 VZ |
5404 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` |
5405 | if test "x$LINE" != x ; then | |
5406 | eval "DEFAULT_$LINE" | |
5407 | else | |
5408 | no_cache=1 | |
5409 | fi | |
5410 | ||
5411 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
1e6feb95 | 5412 | |
e6cc62c6 | 5413 | fi; |
1e6feb95 VZ |
5414 | |
5415 | eval "$ac_cv_use_mimetype" | |
5416 | if test "$no_cache" != 1; then | |
5417 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5418 | fi | |
5419 | ||
5420 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5421 | echo "$as_me:$LINENO: result: yes" >&5 |
5422 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5423 | else |
e6cc62c6 VS |
5424 | echo "$as_me:$LINENO: result: no" >&5 |
5425 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5426 | fi |
e6cc62c6 | 5427 | |
1e6feb95 | 5428 | |
5005acfe | 5429 | enablestring= |
e6cc62c6 VS |
5430 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5431 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
3e44f09d VZ |
5432 | no_cache=0 |
5433 | # Check whether --enable-system_options or --disable-system_options was given. | |
5434 | if test "${enable_system_options+set}" = set; then | |
5435 | enableval="$enable_system_options" | |
e6cc62c6 | 5436 | |
3e44f09d VZ |
5437 | if test "$enableval" = yes; then |
5438 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5439 | else | |
5440 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5441 | fi | |
e6cc62c6 | 5442 | |
3e44f09d | 5443 | else |
e6cc62c6 | 5444 | |
3e44f09d VZ |
5445 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
5446 | if test "x$LINE" != x ; then | |
5447 | eval "DEFAULT_$LINE" | |
5448 | else | |
5449 | no_cache=1 | |
5450 | fi | |
5451 | ||
5452 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
3e44f09d | 5453 | |
e6cc62c6 | 5454 | fi; |
3e44f09d VZ |
5455 | |
5456 | eval "$ac_cv_use_system_options" | |
5457 | if test "$no_cache" != 1; then | |
5458 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5459 | fi | |
5460 | ||
5461 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
e6cc62c6 VS |
5462 | echo "$as_me:$LINENO: result: yes" >&5 |
5463 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5464 | else |
e6cc62c6 VS |
5465 | echo "$as_me:$LINENO: result: no" >&5 |
5466 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5467 | fi |
e6cc62c6 | 5468 | |
8284b0c5 | 5469 | |
52127426 | 5470 | |
5005acfe | 5471 | enablestring= |
e6cc62c6 VS |
5472 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5473 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5474 | no_cache=0 |
5475 | # Check whether --enable-url or --disable-url was given. | |
5476 | if test "${enable_url+set}" = set; then | |
5477 | enableval="$enable_url" | |
e6cc62c6 | 5478 | |
4cdb0ab0 VS |
5479 | if test "$enableval" = yes; then |
5480 | ac_cv_use_url='wxUSE_URL=yes' | |
5481 | else | |
5482 | ac_cv_use_url='wxUSE_URL=no' | |
5483 | fi | |
e6cc62c6 | 5484 | |
4cdb0ab0 | 5485 | else |
e6cc62c6 | 5486 | |
4cdb0ab0 VS |
5487 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5488 | if test "x$LINE" != x ; then | |
5489 | eval "DEFAULT_$LINE" | |
5490 | else | |
5491 | no_cache=1 | |
5492 | fi | |
5493 | ||
5494 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5495 | |
e6cc62c6 | 5496 | fi; |
4cdb0ab0 VS |
5497 | |
5498 | eval "$ac_cv_use_url" | |
5499 | if test "$no_cache" != 1; then | |
5500 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5501 | fi | |
5502 | ||
5503 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5504 | echo "$as_me:$LINENO: result: yes" >&5 |
5505 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5506 | else |
e6cc62c6 VS |
5507 | echo "$as_me:$LINENO: result: no" >&5 |
5508 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5509 | fi |
e6cc62c6 | 5510 | |
4cdb0ab0 | 5511 | |
5005acfe | 5512 | enablestring= |
e6cc62c6 VS |
5513 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5514 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5515 | no_cache=0 |
5516 | # Check whether --enable-protocol or --disable-protocol was given. | |
5517 | if test "${enable_protocol+set}" = set; then | |
5518 | enableval="$enable_protocol" | |
e6cc62c6 | 5519 | |
4cdb0ab0 VS |
5520 | if test "$enableval" = yes; then |
5521 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5522 | else | |
5523 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5524 | fi | |
e6cc62c6 | 5525 | |
4cdb0ab0 | 5526 | else |
e6cc62c6 | 5527 | |
4cdb0ab0 VS |
5528 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5529 | if test "x$LINE" != x ; then | |
5530 | eval "DEFAULT_$LINE" | |
5531 | else | |
5532 | no_cache=1 | |
5533 | fi | |
5534 | ||
5535 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5536 | |
e6cc62c6 | 5537 | fi; |
4cdb0ab0 VS |
5538 | |
5539 | eval "$ac_cv_use_protocol" | |
5540 | if test "$no_cache" != 1; then | |
5541 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5542 | fi | |
5543 | ||
5544 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5545 | echo "$as_me:$LINENO: result: yes" >&5 |
5546 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5547 | else |
e6cc62c6 VS |
5548 | echo "$as_me:$LINENO: result: no" >&5 |
5549 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5550 | fi |
e6cc62c6 | 5551 | |
4cdb0ab0 | 5552 | |
5005acfe | 5553 | enablestring= |
e6cc62c6 VS |
5554 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5555 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5556 | no_cache=0 |
5557 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5558 | if test "${enable_protocol_http+set}" = set; then | |
5559 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5560 | |
4cdb0ab0 VS |
5561 | if test "$enableval" = yes; then |
5562 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5563 | else | |
5564 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5565 | fi | |
e6cc62c6 | 5566 | |
4cdb0ab0 | 5567 | else |
e6cc62c6 | 5568 | |
4cdb0ab0 VS |
5569 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5570 | if test "x$LINE" != x ; then | |
5571 | eval "DEFAULT_$LINE" | |
5572 | else | |
5573 | no_cache=1 | |
5574 | fi | |
5575 | ||
5576 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5577 | |
e6cc62c6 | 5578 | fi; |
4cdb0ab0 VS |
5579 | |
5580 | eval "$ac_cv_use_protocol_http" | |
5581 | if test "$no_cache" != 1; then | |
5582 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5583 | fi | |
5584 | ||
5585 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5586 | echo "$as_me:$LINENO: result: yes" >&5 |
5587 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5588 | else |
e6cc62c6 VS |
5589 | echo "$as_me:$LINENO: result: no" >&5 |
5590 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5591 | fi |
e6cc62c6 | 5592 | |
4cdb0ab0 | 5593 | |
5005acfe | 5594 | enablestring= |
e6cc62c6 VS |
5595 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5596 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5597 | no_cache=0 |
5598 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5599 | if test "${enable_protocol_ftp+set}" = set; then | |
5600 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5601 | |
4cdb0ab0 VS |
5602 | if test "$enableval" = yes; then |
5603 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5604 | else | |
5605 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5606 | fi | |
e6cc62c6 | 5607 | |
4cdb0ab0 | 5608 | else |
e6cc62c6 | 5609 | |
4cdb0ab0 VS |
5610 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5611 | if test "x$LINE" != x ; then | |
5612 | eval "DEFAULT_$LINE" | |
5613 | else | |
5614 | no_cache=1 | |
5615 | fi | |
5616 | ||
5617 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5618 | |
e6cc62c6 | 5619 | fi; |
4cdb0ab0 VS |
5620 | |
5621 | eval "$ac_cv_use_protocol_ftp" | |
5622 | if test "$no_cache" != 1; then | |
5623 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5624 | fi | |
5625 | ||
5626 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5627 | echo "$as_me:$LINENO: result: yes" >&5 |
5628 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5629 | else |
e6cc62c6 VS |
5630 | echo "$as_me:$LINENO: result: no" >&5 |
5631 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5632 | fi |
e6cc62c6 | 5633 | |
4cdb0ab0 | 5634 | |
5005acfe | 5635 | enablestring= |
e6cc62c6 VS |
5636 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5637 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5638 | no_cache=0 |
5639 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5640 | if test "${enable_protocol_file+set}" = set; then | |
5641 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5642 | |
4cdb0ab0 VS |
5643 | if test "$enableval" = yes; then |
5644 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5645 | else | |
5646 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5647 | fi | |
e6cc62c6 | 5648 | |
4cdb0ab0 | 5649 | else |
e6cc62c6 | 5650 | |
4cdb0ab0 VS |
5651 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5652 | if test "x$LINE" != x ; then | |
5653 | eval "DEFAULT_$LINE" | |
5654 | else | |
5655 | no_cache=1 | |
5656 | fi | |
5657 | ||
5658 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5659 | |
e6cc62c6 | 5660 | fi; |
4cdb0ab0 VS |
5661 | |
5662 | eval "$ac_cv_use_protocol_file" | |
5663 | if test "$no_cache" != 1; then | |
5664 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5665 | fi | |
5666 | ||
5667 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5668 | echo "$as_me:$LINENO: result: yes" >&5 |
5669 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5670 | else |
e6cc62c6 VS |
5671 | echo "$as_me:$LINENO: result: no" >&5 |
5672 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5673 | fi |
e6cc62c6 | 5674 | |
52127426 | 5675 | |
8284b0c5 MB |
5676 | |
5677 | ||
5678 | ||
5005acfe | 5679 | enablestring= |
e6cc62c6 VS |
5680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5681 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5682 | no_cache=0 |
5683 | # Check whether --enable-threads or --disable-threads was given. | |
5684 | if test "${enable_threads+set}" = set; then | |
5685 | enableval="$enable_threads" | |
e6cc62c6 | 5686 | |
10f2d63a VZ |
5687 | if test "$enableval" = yes; then |
5688 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5689 | else | |
5690 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5691 | fi | |
e6cc62c6 | 5692 | |
10f2d63a | 5693 | else |
e6cc62c6 | 5694 | |
10f2d63a VZ |
5695 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5696 | if test "x$LINE" != x ; then | |
5697 | eval "DEFAULT_$LINE" | |
5698 | else | |
5699 | no_cache=1 | |
5700 | fi | |
5701 | ||
5702 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5703 | |
e6cc62c6 | 5704 | fi; |
10f2d63a VZ |
5705 | |
5706 | eval "$ac_cv_use_threads" | |
5707 | if test "$no_cache" != 1; then | |
5708 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5709 | fi | |
5710 | ||
5711 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
5712 | echo "$as_me:$LINENO: result: yes" >&5 |
5713 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5714 | else |
e6cc62c6 VS |
5715 | echo "$as_me:$LINENO: result: no" >&5 |
5716 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5717 | fi |
e6cc62c6 | 5718 | |
10f2d63a | 5719 | |
b12915c1 VZ |
5720 | if test "$wxUSE_GUI" = "yes"; then |
5721 | ||
8284b0c5 MB |
5722 | |
5723 | ||
5005acfe | 5724 | enablestring= |
e6cc62c6 VS |
5725 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
5726 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5727 | no_cache=0 |
5728 | # Check whether --enable-docview or --disable-docview was given. | |
5729 | if test "${enable_docview+set}" = set; then | |
5730 | enableval="$enable_docview" | |
e6cc62c6 | 5731 | |
10f2d63a VZ |
5732 | if test "$enableval" = yes; then |
5733 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5734 | else | |
5735 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5736 | fi | |
e6cc62c6 | 5737 | |
10f2d63a | 5738 | else |
e6cc62c6 | 5739 | |
10f2d63a VZ |
5740 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5741 | if test "x$LINE" != x ; then | |
5742 | eval "DEFAULT_$LINE" | |
5743 | else | |
5744 | no_cache=1 | |
5745 | fi | |
5746 | ||
5747 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5748 | |
e6cc62c6 | 5749 | fi; |
10f2d63a VZ |
5750 | |
5751 | eval "$ac_cv_use_docview" | |
5752 | if test "$no_cache" != 1; then | |
5753 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5754 | fi | |
5755 | ||
5756 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5757 | echo "$as_me:$LINENO: result: yes" >&5 |
5758 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5759 | else |
e6cc62c6 VS |
5760 | echo "$as_me:$LINENO: result: no" >&5 |
5761 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5762 | fi |
e6cc62c6 | 5763 | |
10f2d63a | 5764 | |
5005acfe | 5765 | enablestring= |
e6cc62c6 VS |
5766 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
5767 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
5768 | no_cache=0 |
5769 | # Check whether --enable-help or --disable-help was given. | |
5770 | if test "${enable_help+set}" = set; then | |
5771 | enableval="$enable_help" | |
e6cc62c6 | 5772 | |
10f2d63a VZ |
5773 | if test "$enableval" = yes; then |
5774 | ac_cv_use_help='wxUSE_HELP=yes' | |
5775 | else | |
5776 | ac_cv_use_help='wxUSE_HELP=no' | |
5777 | fi | |
e6cc62c6 | 5778 | |
10f2d63a | 5779 | else |
e6cc62c6 | 5780 | |
10f2d63a VZ |
5781 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5782 | if test "x$LINE" != x ; then | |
5783 | eval "DEFAULT_$LINE" | |
5784 | else | |
5785 | no_cache=1 | |
5786 | fi | |
5787 | ||
5788 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 5789 | |
e6cc62c6 | 5790 | fi; |
10f2d63a VZ |
5791 | |
5792 | eval "$ac_cv_use_help" | |
5793 | if test "$no_cache" != 1; then | |
5794 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5795 | fi | |
5796 | ||
5797 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
5798 | echo "$as_me:$LINENO: result: yes" >&5 |
5799 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5800 | else |
e6cc62c6 VS |
5801 | echo "$as_me:$LINENO: result: no" >&5 |
5802 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5803 | fi |
e6cc62c6 | 5804 | |
10f2d63a | 5805 | |
5005acfe | 5806 | enablestring= |
e6cc62c6 VS |
5807 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
5808 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
5809 | no_cache=0 |
5810 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5811 | if test "${enable_mshtmlhelp+set}" = set; then | |
5812 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 5813 | |
29fd3c0c VS |
5814 | if test "$enableval" = yes; then |
5815 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5816 | else | |
5817 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5818 | fi | |
e6cc62c6 | 5819 | |
29fd3c0c | 5820 | else |
e6cc62c6 | 5821 | |
29fd3c0c VS |
5822 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5823 | if test "x$LINE" != x ; then | |
5824 | eval "DEFAULT_$LINE" | |
5825 | else | |
5826 | no_cache=1 | |
5827 | fi | |
5828 | ||
5829 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 5830 | |
e6cc62c6 | 5831 | fi; |
29fd3c0c VS |
5832 | |
5833 | eval "$ac_cv_use_mshtmlhelp" | |
5834 | if test "$no_cache" != 1; then | |
5835 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5836 | fi | |
5837 | ||
5838 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
5839 | echo "$as_me:$LINENO: result: yes" >&5 |
5840 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 5841 | else |
e6cc62c6 VS |
5842 | echo "$as_me:$LINENO: result: no" >&5 |
5843 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 5844 | fi |
e6cc62c6 | 5845 | |
29fd3c0c | 5846 | |
5005acfe | 5847 | enablestring= |
e6cc62c6 VS |
5848 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
5849 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
5850 | no_cache=0 |
5851 | # Check whether --enable-html or --disable-html was given. | |
5852 | if test "${enable_html+set}" = set; then | |
5853 | enableval="$enable_html" | |
e6cc62c6 | 5854 | |
3379ed37 VZ |
5855 | if test "$enableval" = yes; then |
5856 | ac_cv_use_html='wxUSE_HTML=yes' | |
5857 | else | |
5858 | ac_cv_use_html='wxUSE_HTML=no' | |
5859 | fi | |
e6cc62c6 | 5860 | |
3379ed37 | 5861 | else |
e6cc62c6 | 5862 | |
3379ed37 VZ |
5863 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
5864 | if test "x$LINE" != x ; then | |
5865 | eval "DEFAULT_$LINE" | |
5866 | else | |
5867 | no_cache=1 | |
5868 | fi | |
5869 | ||
5870 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 5871 | |
e6cc62c6 | 5872 | fi; |
3379ed37 VZ |
5873 | |
5874 | eval "$ac_cv_use_html" | |
5875 | if test "$no_cache" != 1; then | |
5876 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
5877 | fi | |
5878 | ||
5879 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
5880 | echo "$as_me:$LINENO: result: yes" >&5 |
5881 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5882 | else |
e6cc62c6 VS |
5883 | echo "$as_me:$LINENO: result: no" >&5 |
5884 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5885 | fi |
e6cc62c6 | 5886 | |
3379ed37 | 5887 | |
5005acfe | 5888 | enablestring= |
e6cc62c6 VS |
5889 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
5890 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
5891 | no_cache=0 |
5892 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
5893 | if test "${enable_htmlhelp+set}" = set; then | |
5894 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 5895 | |
3379ed37 VZ |
5896 | if test "$enableval" = yes; then |
5897 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
5898 | else | |
5899 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
5900 | fi | |
e6cc62c6 | 5901 | |
3379ed37 | 5902 | else |
e6cc62c6 | 5903 | |
3379ed37 VZ |
5904 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
5905 | if test "x$LINE" != x ; then | |
5906 | eval "DEFAULT_$LINE" | |
5907 | else | |
5908 | no_cache=1 | |
5909 | fi | |
5910 | ||
5911 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 5912 | |
e6cc62c6 | 5913 | fi; |
3379ed37 VZ |
5914 | |
5915 | eval "$ac_cv_use_htmlhelp" | |
5916 | if test "$no_cache" != 1; then | |
5917 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
5918 | fi | |
5919 | ||
5920 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
5921 | echo "$as_me:$LINENO: result: yes" >&5 |
5922 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 5923 | else |
e6cc62c6 VS |
5924 | echo "$as_me:$LINENO: result: no" >&5 |
5925 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 5926 | fi |
e6cc62c6 | 5927 | |
3379ed37 | 5928 | |
5005acfe | 5929 | enablestring= |
e6cc62c6 VS |
5930 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
5931 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
5932 | no_cache=0 |
5933 | # Check whether --enable-constraints or --disable-constraints was given. | |
5934 | if test "${enable_constraints+set}" = set; then | |
5935 | enableval="$enable_constraints" | |
e6cc62c6 | 5936 | |
10f2d63a VZ |
5937 | if test "$enableval" = yes; then |
5938 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
5939 | else | |
5940 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
5941 | fi | |
e6cc62c6 | 5942 | |
10f2d63a | 5943 | else |
e6cc62c6 | 5944 | |
10f2d63a VZ |
5945 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
5946 | if test "x$LINE" != x ; then | |
5947 | eval "DEFAULT_$LINE" | |
5948 | else | |
5949 | no_cache=1 | |
5950 | fi | |
5951 | ||
5952 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 5953 | |
e6cc62c6 | 5954 | fi; |
10f2d63a VZ |
5955 | |
5956 | eval "$ac_cv_use_constraints" | |
5957 | if test "$no_cache" != 1; then | |
5958 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
5959 | fi | |
5960 | ||
5961 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
5962 | echo "$as_me:$LINENO: result: yes" >&5 |
5963 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5964 | else |
e6cc62c6 VS |
5965 | echo "$as_me:$LINENO: result: no" >&5 |
5966 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5967 | fi |
e6cc62c6 | 5968 | |
10f2d63a | 5969 | |
5005acfe | 5970 | enablestring= |
e6cc62c6 VS |
5971 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
5972 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
5973 | no_cache=0 |
5974 | # Check whether --enable-printarch or --disable-printarch was given. | |
5975 | if test "${enable_printarch+set}" = set; then | |
5976 | enableval="$enable_printarch" | |
e6cc62c6 | 5977 | |
10f2d63a VZ |
5978 | if test "$enableval" = yes; then |
5979 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
5980 | else | |
5981 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
5982 | fi | |
e6cc62c6 | 5983 | |
10f2d63a | 5984 | else |
e6cc62c6 | 5985 | |
10f2d63a VZ |
5986 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
5987 | if test "x$LINE" != x ; then | |
5988 | eval "DEFAULT_$LINE" | |
5989 | else | |
5990 | no_cache=1 | |
5991 | fi | |
5992 | ||
5993 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 5994 | |
e6cc62c6 | 5995 | fi; |
10f2d63a VZ |
5996 | |
5997 | eval "$ac_cv_use_printarch" | |
5998 | if test "$no_cache" != 1; then | |
5999 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6000 | fi | |
6001 | ||
6002 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6003 | echo "$as_me:$LINENO: result: yes" >&5 |
6004 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6005 | else |
e6cc62c6 VS |
6006 | echo "$as_me:$LINENO: result: no" >&5 |
6007 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6008 | fi |
e6cc62c6 | 6009 | |
10f2d63a | 6010 | |
5005acfe | 6011 | enablestring= |
e6cc62c6 VS |
6012 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
6013 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
6014 | no_cache=0 |
6015 | # Check whether --enable-mdi or --disable-mdi was given. | |
6016 | if test "${enable_mdi+set}" = set; then | |
6017 | enableval="$enable_mdi" | |
e6cc62c6 | 6018 | |
10f2d63a VZ |
6019 | if test "$enableval" = yes; then |
6020 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6021 | else | |
6022 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6023 | fi | |
e6cc62c6 | 6024 | |
10f2d63a | 6025 | else |
e6cc62c6 | 6026 | |
10f2d63a VZ |
6027 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6028 | if test "x$LINE" != x ; then | |
6029 | eval "DEFAULT_$LINE" | |
6030 | else | |
6031 | no_cache=1 | |
6032 | fi | |
6033 | ||
6034 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6035 | |
e6cc62c6 | 6036 | fi; |
10f2d63a VZ |
6037 | |
6038 | eval "$ac_cv_use_mdi" | |
6039 | if test "$no_cache" != 1; then | |
6040 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6041 | fi | |
6042 | ||
6043 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6044 | echo "$as_me:$LINENO: result: yes" >&5 |
6045 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6046 | else |
e6cc62c6 VS |
6047 | echo "$as_me:$LINENO: result: no" >&5 |
6048 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6049 | fi |
e6cc62c6 | 6050 | |
698dcdb6 | 6051 | |
5005acfe | 6052 | enablestring= |
e6cc62c6 VS |
6053 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6054 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6055 | no_cache=0 |
6056 | # Check whether --enable-loggui or --disable-loggui was given. | |
6057 | if test "${enable_loggui+set}" = set; then | |
6058 | enableval="$enable_loggui" | |
e6cc62c6 | 6059 | |
1e6feb95 VZ |
6060 | if test "$enableval" = yes; then |
6061 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6062 | else | |
6063 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6064 | fi | |
e6cc62c6 | 6065 | |
1e6feb95 | 6066 | else |
e6cc62c6 | 6067 | |
1e6feb95 VZ |
6068 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6069 | if test "x$LINE" != x ; then | |
6070 | eval "DEFAULT_$LINE" | |
6071 | else | |
6072 | no_cache=1 | |
6073 | fi | |
6074 | ||
6075 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6076 | |
e6cc62c6 | 6077 | fi; |
1e6feb95 VZ |
6078 | |
6079 | eval "$ac_cv_use_loggui" | |
6080 | if test "$no_cache" != 1; then | |
6081 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6082 | fi | |
6083 | ||
6084 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6085 | echo "$as_me:$LINENO: result: yes" >&5 |
6086 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6087 | else |
e6cc62c6 VS |
6088 | echo "$as_me:$LINENO: result: no" >&5 |
6089 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6090 | fi |
e6cc62c6 | 6091 | |
1e6feb95 | 6092 | |
5005acfe | 6093 | enablestring= |
e6cc62c6 VS |
6094 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6095 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6096 | no_cache=0 |
6097 | # Check whether --enable-logwin or --disable-logwin was given. | |
6098 | if test "${enable_logwin+set}" = set; then | |
6099 | enableval="$enable_logwin" | |
e6cc62c6 | 6100 | |
1e6feb95 VZ |
6101 | if test "$enableval" = yes; then |
6102 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6103 | else | |
6104 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6105 | fi | |
e6cc62c6 | 6106 | |
1e6feb95 | 6107 | else |
e6cc62c6 | 6108 | |
1e6feb95 VZ |
6109 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6110 | if test "x$LINE" != x ; then | |
6111 | eval "DEFAULT_$LINE" | |
6112 | else | |
6113 | no_cache=1 | |
6114 | fi | |
6115 | ||
6116 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6117 | |
e6cc62c6 | 6118 | fi; |
1e6feb95 VZ |
6119 | |
6120 | eval "$ac_cv_use_logwin" | |
6121 | if test "$no_cache" != 1; then | |
6122 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6123 | fi | |
6124 | ||
6125 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6126 | echo "$as_me:$LINENO: result: yes" >&5 |
6127 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6128 | else |
e6cc62c6 VS |
6129 | echo "$as_me:$LINENO: result: no" >&5 |
6130 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6131 | fi |
e6cc62c6 | 6132 | |
1e6feb95 | 6133 | |
5005acfe | 6134 | enablestring= |
e6cc62c6 VS |
6135 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6136 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6137 | no_cache=0 |
6138 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6139 | if test "${enable_logdialog+set}" = set; then | |
6140 | enableval="$enable_logdialog" | |
e6cc62c6 | 6141 | |
69d27ff7 MB |
6142 | if test "$enableval" = yes; then |
6143 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6144 | else | |
6145 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6146 | fi | |
e6cc62c6 | 6147 | |
69d27ff7 | 6148 | else |
e6cc62c6 | 6149 | |
69d27ff7 MB |
6150 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6151 | if test "x$LINE" != x ; then | |
6152 | eval "DEFAULT_$LINE" | |
6153 | else | |
6154 | no_cache=1 | |
6155 | fi | |
6156 | ||
6157 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6158 | |
e6cc62c6 | 6159 | fi; |
69d27ff7 MB |
6160 | |
6161 | eval "$ac_cv_use_logdialog" | |
6162 | if test "$no_cache" != 1; then | |
6163 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6164 | fi | |
6165 | ||
6166 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6167 | echo "$as_me:$LINENO: result: yes" >&5 |
6168 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6169 | else |
e6cc62c6 VS |
6170 | echo "$as_me:$LINENO: result: no" >&5 |
6171 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6172 | fi |
e6cc62c6 | 6173 | |
8284b0c5 | 6174 | |
52127426 | 6175 | |
5005acfe | 6176 | enablestring= |
e6cc62c6 VS |
6177 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6178 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6179 | no_cache=0 |
6180 | # Check whether --enable-postscript or --disable-postscript was given. | |
6181 | if test "${enable_postscript+set}" = set; then | |
6182 | enableval="$enable_postscript" | |
e6cc62c6 | 6183 | |
10f2d63a VZ |
6184 | if test "$enableval" = yes; then |
6185 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6186 | else | |
6187 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6188 | fi | |
e6cc62c6 | 6189 | |
10f2d63a | 6190 | else |
e6cc62c6 | 6191 | |
10f2d63a VZ |
6192 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6193 | if test "x$LINE" != x ; then | |
6194 | eval "DEFAULT_$LINE" | |
6195 | else | |
6196 | no_cache=1 | |
6197 | fi | |
6198 | ||
6199 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6200 | |
e6cc62c6 | 6201 | fi; |
10f2d63a VZ |
6202 | |
6203 | eval "$ac_cv_use_postscript" | |
6204 | if test "$no_cache" != 1; then | |
6205 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6206 | fi | |
6207 | ||
6208 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6209 | echo "$as_me:$LINENO: result: yes" >&5 |
6210 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6211 | else |
e6cc62c6 VS |
6212 | echo "$as_me:$LINENO: result: no" >&5 |
6213 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6214 | fi |
e6cc62c6 | 6215 | |
8284b0c5 MB |
6216 | |
6217 | ||
52127426 | 6218 | |
8284b0c5 | 6219 | |
5005acfe | 6220 | enablestring= |
e6cc62c6 VS |
6221 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6222 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6223 | no_cache=0 |
3c907f20 VZ |
6224 | # Check whether --enable-prologio or --disable-prologio was given. |
6225 | if test "${enable_prologio+set}" = set; then | |
6226 | enableval="$enable_prologio" | |
e6cc62c6 | 6227 | |
10f2d63a | 6228 | if test "$enableval" = yes; then |
3c907f20 | 6229 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6230 | else |
3c907f20 | 6231 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6232 | fi |
e6cc62c6 | 6233 | |
10f2d63a | 6234 | else |
e6cc62c6 | 6235 | |
3c907f20 | 6236 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6237 | if test "x$LINE" != x ; then |
6238 | eval "DEFAULT_$LINE" | |
6239 | else | |
6240 | no_cache=1 | |
6241 | fi | |
6242 | ||
3c907f20 | 6243 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6244 | |
e6cc62c6 | 6245 | fi; |
10f2d63a | 6246 | |
3c907f20 | 6247 | eval "$ac_cv_use_prologio" |
10f2d63a | 6248 | if test "$no_cache" != 1; then |
3c907f20 | 6249 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6250 | fi |
6251 | ||
3c907f20 | 6252 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6253 | echo "$as_me:$LINENO: result: yes" >&5 |
6254 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6255 | else |
e6cc62c6 VS |
6256 | echo "$as_me:$LINENO: result: no" >&5 |
6257 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6258 | fi |
e6cc62c6 | 6259 | |
8284b0c5 | 6260 | |
5005acfe | 6261 | enablestring= |
e6cc62c6 VS |
6262 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6263 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6264 | no_cache=0 |
3c907f20 VZ |
6265 | # Check whether --enable-resources or --disable-resources was given. |
6266 | if test "${enable_resources+set}" = set; then | |
6267 | enableval="$enable_resources" | |
e6cc62c6 | 6268 | |
10f2d63a | 6269 | if test "$enableval" = yes; then |
3c907f20 | 6270 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6271 | else |
3c907f20 | 6272 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6273 | fi |
e6cc62c6 | 6274 | |
10f2d63a | 6275 | else |
e6cc62c6 | 6276 | |
3c907f20 | 6277 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6278 | if test "x$LINE" != x ; then |
6279 | eval "DEFAULT_$LINE" | |
6280 | else | |
6281 | no_cache=1 | |
6282 | fi | |
6283 | ||
3c907f20 | 6284 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6285 | |
e6cc62c6 | 6286 | fi; |
10f2d63a | 6287 | |
3c907f20 | 6288 | eval "$ac_cv_use_resources" |
10f2d63a | 6289 | if test "$no_cache" != 1; then |
3c907f20 | 6290 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6291 | fi |
6292 | ||
3c907f20 | 6293 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6294 | echo "$as_me:$LINENO: result: yes" >&5 |
6295 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6296 | else |
e6cc62c6 VS |
6297 | echo "$as_me:$LINENO: result: no" >&5 |
6298 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6299 | fi |
e6cc62c6 | 6300 | |
8284b0c5 MB |
6301 | |
6302 | ||
52127426 | 6303 | |
5005acfe | 6304 | enablestring= |
e6cc62c6 VS |
6305 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6306 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6307 | no_cache=0 |
6308 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6309 | if test "${enable_clipboard+set}" = set; then | |
6310 | enableval="$enable_clipboard" | |
e6cc62c6 | 6311 | |
10f2d63a VZ |
6312 | if test "$enableval" = yes; then |
6313 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6314 | else | |
6315 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6316 | fi | |
e6cc62c6 | 6317 | |
10f2d63a | 6318 | else |
e6cc62c6 | 6319 | |
10f2d63a VZ |
6320 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6321 | if test "x$LINE" != x ; then | |
6322 | eval "DEFAULT_$LINE" | |
6323 | else | |
6324 | no_cache=1 | |
6325 | fi | |
6326 | ||
6327 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6328 | |
e6cc62c6 | 6329 | fi; |
10f2d63a VZ |
6330 | |
6331 | eval "$ac_cv_use_clipboard" | |
6332 | if test "$no_cache" != 1; then | |
6333 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6334 | fi | |
6335 | ||
6336 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6337 | echo "$as_me:$LINENO: result: yes" >&5 |
6338 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6339 | else |
e6cc62c6 VS |
6340 | echo "$as_me:$LINENO: result: no" >&5 |
6341 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6342 | fi |
e6cc62c6 | 6343 | |
10f2d63a | 6344 | |
5005acfe | 6345 | enablestring= |
e6cc62c6 VS |
6346 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6347 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6348 | no_cache=0 |
6349 | # Check whether --enable-dnd or --disable-dnd was given. | |
6350 | if test "${enable_dnd+set}" = set; then | |
6351 | enableval="$enable_dnd" | |
e6cc62c6 | 6352 | |
10f2d63a VZ |
6353 | if test "$enableval" = yes; then |
6354 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6355 | else | |
6356 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6357 | fi | |
e6cc62c6 | 6358 | |
10f2d63a | 6359 | else |
e6cc62c6 | 6360 | |
10f2d63a VZ |
6361 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6362 | if test "x$LINE" != x ; then | |
6363 | eval "DEFAULT_$LINE" | |
6364 | else | |
6365 | no_cache=1 | |
6366 | fi | |
6367 | ||
6368 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6369 | |
e6cc62c6 | 6370 | fi; |
10f2d63a VZ |
6371 | |
6372 | eval "$ac_cv_use_dnd" | |
6373 | if test "$no_cache" != 1; then | |
6374 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6375 | fi | |
6376 | ||
6377 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6378 | echo "$as_me:$LINENO: result: yes" >&5 |
6379 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6380 | else |
e6cc62c6 VS |
6381 | echo "$as_me:$LINENO: result: no" >&5 |
6382 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6383 | fi |
e6cc62c6 | 6384 | |
10f2d63a | 6385 | |
5005acfe | 6386 | enablestring= |
e6cc62c6 VS |
6387 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6388 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6389 | no_cache=0 |
6390 | # Check whether --enable-metafile or --disable-metafile was given. | |
6391 | if test "${enable_metafile+set}" = set; then | |
6392 | enableval="$enable_metafile" | |
e6cc62c6 | 6393 | |
b64f0a5f RL |
6394 | if test "$enableval" = yes; then |
6395 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6396 | else | |
6397 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6398 | fi | |
e6cc62c6 | 6399 | |
b64f0a5f | 6400 | else |
e6cc62c6 | 6401 | |
b64f0a5f RL |
6402 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6403 | if test "x$LINE" != x ; then | |
6404 | eval "DEFAULT_$LINE" | |
6405 | else | |
6406 | no_cache=1 | |
6407 | fi | |
6408 | ||
6409 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6410 | |
e6cc62c6 | 6411 | fi; |
b64f0a5f RL |
6412 | |
6413 | eval "$ac_cv_use_metafile" | |
6414 | if test "$no_cache" != 1; then | |
6415 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6416 | fi | |
6417 | ||
6418 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6419 | echo "$as_me:$LINENO: result: yes" >&5 |
6420 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6421 | else |
e6cc62c6 VS |
6422 | echo "$as_me:$LINENO: result: no" >&5 |
6423 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6424 | fi |
e6cc62c6 | 6425 | |
52127426 | 6426 | |
8284b0c5 | 6427 | |
52127426 | 6428 | |
8284b0c5 | 6429 | |
5005acfe | 6430 | enablestring= |
e6cc62c6 VS |
6431 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6432 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6433 | no_cache=0 |
6434 | # Check whether --enable-controls or --disable-controls was given. | |
6435 | if test "${enable_controls+set}" = set; then | |
6436 | enableval="$enable_controls" | |
e6cc62c6 | 6437 | |
10f2d63a VZ |
6438 | if test "$enableval" = yes; then |
6439 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6440 | else | |
6441 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6442 | fi | |
e6cc62c6 | 6443 | |
10f2d63a | 6444 | else |
e6cc62c6 | 6445 | |
10f2d63a VZ |
6446 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6447 | if test "x$LINE" != x ; then | |
6448 | eval "DEFAULT_$LINE" | |
6449 | else | |
6450 | no_cache=1 | |
6451 | fi | |
6452 | ||
6453 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6454 | |
e6cc62c6 | 6455 | fi; |
10f2d63a VZ |
6456 | |
6457 | eval "$ac_cv_use_controls" | |
6458 | if test "$no_cache" != 1; then | |
6459 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6460 | fi | |
6461 | ||
6462 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6463 | echo "$as_me:$LINENO: result: yes" >&5 |
6464 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6465 | else |
e6cc62c6 VS |
6466 | echo "$as_me:$LINENO: result: no" >&5 |
6467 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6468 | fi |
e6cc62c6 | 6469 | |
10f2d63a VZ |
6470 | |
6471 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6472 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6473 | DEFAULT_wxUSE_BMPBUTTON=yes |
6474 | DEFAULT_wxUSE_BUTTON=yes | |
6475 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6476 | DEFAULT_wxUSE_CARET=yes |
6477 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6478 | DEFAULT_wxUSE_CHECKBOX=yes |
6479 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6480 | DEFAULT_wxUSE_CHOICE=yes | |
6481 | DEFAULT_wxUSE_GAUGE=yes | |
6482 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 6483 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 6484 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
6485 | DEFAULT_wxUSE_LISTBOX=yes |
6486 | DEFAULT_wxUSE_LISTCTRL=yes | |
6487 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6488 | DEFAULT_wxUSE_RADIOBOX=yes | |
6489 | DEFAULT_wxUSE_RADIOBTN=yes | |
6490 | DEFAULT_wxUSE_SASH=yes | |
6491 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6492 | DEFAULT_wxUSE_SLIDER=yes | |
6493 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6494 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6495 | DEFAULT_wxUSE_SPLITTER=yes |
6496 | DEFAULT_wxUSE_STATBMP=yes | |
6497 | DEFAULT_wxUSE_STATBOX=yes | |
6498 | DEFAULT_wxUSE_STATLINE=yes | |
6499 | DEFAULT_wxUSE_STATUSBAR=yes | |
6500 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6501 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6502 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6503 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6504 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6505 | DEFAULT_wxUSE_TOOLTIPS=yes |
6506 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6507 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6508 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6509 | elif test "$wxUSE_CONTROLS" = "no"; then |
6510 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6511 | DEFAULT_wxUSE_BMPBUTTON=no |
6512 | DEFAULT_wxUSE_BUTTON=no | |
6513 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6514 | DEFAULT_wxUSE_CARET=no |
6515 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6516 | DEFAULT_wxUSE_CHECKBOX=no |
6517 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6518 | DEFAULT_wxUSE_CHOICE=no | |
6519 | DEFAULT_wxUSE_GAUGE=no | |
6520 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 6521 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 6522 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
6523 | DEFAULT_wxUSE_LISTBOX=no |
6524 | DEFAULT_wxUSE_LISTCTRL=no | |
6525 | DEFAULT_wxUSE_NOTEBOOK=no | |
6526 | DEFAULT_wxUSE_RADIOBOX=no | |
6527 | DEFAULT_wxUSE_RADIOBTN=no | |
6528 | DEFAULT_wxUSE_SASH=no | |
6529 | DEFAULT_wxUSE_SCROLLBAR=no | |
6530 | DEFAULT_wxUSE_SLIDER=no | |
6531 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6532 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6533 | DEFAULT_wxUSE_SPLITTER=no |
6534 | DEFAULT_wxUSE_STATBMP=no | |
6535 | DEFAULT_wxUSE_STATBOX=no | |
6536 | DEFAULT_wxUSE_STATLINE=no | |
6537 | DEFAULT_wxUSE_STATUSBAR=no | |
6538 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6539 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6540 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6541 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6542 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6543 | DEFAULT_wxUSE_TOOLTIPS=no |
6544 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6545 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6546 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6547 | fi |
6548 | ||
ac0c4cc3 DE |
6549 | ## FIXME: This is a blatant hack |
6550 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6551 | wxUSE_PRINTING_ARCHITECTURE=no | |
ac0c4cc3 | 6552 | wxUSE_DRAG_AND_DROP=no |
8b389fab DE |
6553 | # Generic notebook requires tab dialog |
6554 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6555 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
ac0c4cc3 | 6556 | DEFAULT_wxUSE_SCROLLBAR=no |
ac0c4cc3 | 6557 | DEFAULT_wxUSE_TOOLTIPS=no |
ac0c4cc3 | 6558 | DEFAULT_wxUSE_DRAGIMAGE=no |
ac0c4cc3 DE |
6559 | fi |
6560 | ||
8284b0c5 | 6561 | |
5005acfe | 6562 | enablestring= |
e6cc62c6 VS |
6563 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6564 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6565 | no_cache=0 |
6566 | # Check whether --enable-accel or --disable-accel was given. | |
6567 | if test "${enable_accel+set}" = set; then | |
6568 | enableval="$enable_accel" | |
e6cc62c6 | 6569 | |
10f2d63a VZ |
6570 | if test "$enableval" = yes; then |
6571 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6572 | else | |
6573 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6574 | fi | |
e6cc62c6 | 6575 | |
10f2d63a | 6576 | else |
e6cc62c6 | 6577 | |
10f2d63a VZ |
6578 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6579 | if test "x$LINE" != x ; then | |
6580 | eval "DEFAULT_$LINE" | |
6581 | else | |
6582 | no_cache=1 | |
6583 | fi | |
6584 | ||
6585 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6586 | |
e6cc62c6 | 6587 | fi; |
10f2d63a VZ |
6588 | |
6589 | eval "$ac_cv_use_accel" | |
6590 | if test "$no_cache" != 1; then | |
6591 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6592 | fi | |
6593 | ||
6594 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6595 | echo "$as_me:$LINENO: result: yes" >&5 |
6596 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6597 | else |
e6cc62c6 VS |
6598 | echo "$as_me:$LINENO: result: no" >&5 |
6599 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6600 | fi |
e6cc62c6 | 6601 | |
10f2d63a | 6602 | |
5005acfe | 6603 | enablestring= |
e6cc62c6 VS |
6604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6605 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6606 | no_cache=0 |
1e6feb95 VZ |
6607 | # Check whether --enable-button or --disable-button was given. |
6608 | if test "${enable_button+set}" = set; then | |
6609 | enableval="$enable_button" | |
e6cc62c6 | 6610 | |
10f2d63a | 6611 | if test "$enableval" = yes; then |
1e6feb95 | 6612 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6613 | else |
1e6feb95 | 6614 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6615 | fi |
e6cc62c6 | 6616 | |
10f2d63a | 6617 | else |
e6cc62c6 | 6618 | |
1e6feb95 | 6619 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6620 | if test "x$LINE" != x ; then |
6621 | eval "DEFAULT_$LINE" | |
6622 | else | |
6623 | no_cache=1 | |
6624 | fi | |
6625 | ||
1e6feb95 | 6626 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6627 | |
e6cc62c6 | 6628 | fi; |
10f2d63a | 6629 | |
1e6feb95 | 6630 | eval "$ac_cv_use_button" |
10f2d63a | 6631 | if test "$no_cache" != 1; then |
1e6feb95 | 6632 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6633 | fi |
6634 | ||
1e6feb95 | 6635 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6636 | echo "$as_me:$LINENO: result: yes" >&5 |
6637 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6638 | else |
e6cc62c6 VS |
6639 | echo "$as_me:$LINENO: result: no" >&5 |
6640 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6641 | fi |
e6cc62c6 | 6642 | |
10f2d63a | 6643 | |
5005acfe | 6644 | enablestring= |
e6cc62c6 VS |
6645 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6646 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6647 | no_cache=0 |
6648 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6649 | if test "${enable_bmpbutton+set}" = set; then | |
6650 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6651 | |
10f2d63a VZ |
6652 | if test "$enableval" = yes; then |
6653 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6654 | else | |
6655 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6656 | fi | |
e6cc62c6 | 6657 | |
10f2d63a | 6658 | else |
e6cc62c6 | 6659 | |
10f2d63a VZ |
6660 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6661 | if test "x$LINE" != x ; then | |
6662 | eval "DEFAULT_$LINE" | |
6663 | else | |
6664 | no_cache=1 | |
6665 | fi | |
6666 | ||
6667 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6668 | |
e6cc62c6 | 6669 | fi; |
10f2d63a VZ |
6670 | |
6671 | eval "$ac_cv_use_bmpbutton" | |
6672 | if test "$no_cache" != 1; then | |
6673 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6674 | fi | |
6675 | ||
6676 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6677 | echo "$as_me:$LINENO: result: yes" >&5 |
6678 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6679 | else |
e6cc62c6 VS |
6680 | echo "$as_me:$LINENO: result: no" >&5 |
6681 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6682 | fi |
e6cc62c6 | 6683 | |
10f2d63a | 6684 | |
5005acfe | 6685 | enablestring= |
e6cc62c6 VS |
6686 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
6687 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6688 | no_cache=0 |
6689 | # Check whether --enable-calendar or --disable-calendar was given. | |
6690 | if test "${enable_calendar+set}" = set; then | |
6691 | enableval="$enable_calendar" | |
e6cc62c6 | 6692 | |
1e6feb95 VZ |
6693 | if test "$enableval" = yes; then |
6694 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6695 | else | |
6696 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6697 | fi | |
e6cc62c6 | 6698 | |
1e6feb95 | 6699 | else |
e6cc62c6 | 6700 | |
1e6feb95 VZ |
6701 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6702 | if test "x$LINE" != x ; then | |
6703 | eval "DEFAULT_$LINE" | |
6704 | else | |
6705 | no_cache=1 | |
6706 | fi | |
6707 | ||
6708 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6709 | |
e6cc62c6 | 6710 | fi; |
1e6feb95 VZ |
6711 | |
6712 | eval "$ac_cv_use_calendar" | |
6713 | if test "$no_cache" != 1; then | |
6714 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6715 | fi | |
6716 | ||
6717 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
6718 | echo "$as_me:$LINENO: result: yes" >&5 |
6719 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6720 | else |
e6cc62c6 VS |
6721 | echo "$as_me:$LINENO: result: no" >&5 |
6722 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6723 | fi |
e6cc62c6 | 6724 | |
1e6feb95 | 6725 | |
5005acfe | 6726 | enablestring= |
e6cc62c6 VS |
6727 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
6728 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6729 | no_cache=0 |
6730 | # Check whether --enable-caret or --disable-caret was given. | |
6731 | if test "${enable_caret+set}" = set; then | |
6732 | enableval="$enable_caret" | |
e6cc62c6 | 6733 | |
1e6feb95 VZ |
6734 | if test "$enableval" = yes; then |
6735 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6736 | else | |
6737 | ac_cv_use_caret='wxUSE_CARET=no' | |
6738 | fi | |
e6cc62c6 | 6739 | |
1e6feb95 | 6740 | else |
e6cc62c6 | 6741 | |
1e6feb95 VZ |
6742 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6743 | if test "x$LINE" != x ; then | |
6744 | eval "DEFAULT_$LINE" | |
6745 | else | |
6746 | no_cache=1 | |
6747 | fi | |
6748 | ||
6749 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6750 | |
e6cc62c6 | 6751 | fi; |
1e6feb95 VZ |
6752 | |
6753 | eval "$ac_cv_use_caret" | |
6754 | if test "$no_cache" != 1; then | |
6755 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6756 | fi | |
6757 | ||
6758 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
6759 | echo "$as_me:$LINENO: result: yes" >&5 |
6760 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6761 | else |
e6cc62c6 VS |
6762 | echo "$as_me:$LINENO: result: no" >&5 |
6763 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6764 | fi |
e6cc62c6 | 6765 | |
1e6feb95 | 6766 | |
5005acfe | 6767 | enablestring= |
e6cc62c6 VS |
6768 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
6769 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6770 | no_cache=0 |
6771 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6772 | if test "${enable_checkbox+set}" = set; then | |
6773 | enableval="$enable_checkbox" | |
e6cc62c6 | 6774 | |
10f2d63a VZ |
6775 | if test "$enableval" = yes; then |
6776 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6777 | else | |
6778 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6779 | fi | |
e6cc62c6 | 6780 | |
10f2d63a | 6781 | else |
e6cc62c6 | 6782 | |
10f2d63a VZ |
6783 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6784 | if test "x$LINE" != x ; then | |
6785 | eval "DEFAULT_$LINE" | |
6786 | else | |
6787 | no_cache=1 | |
6788 | fi | |
6789 | ||
6790 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 6791 | |
e6cc62c6 | 6792 | fi; |
10f2d63a VZ |
6793 | |
6794 | eval "$ac_cv_use_checkbox" | |
6795 | if test "$no_cache" != 1; then | |
6796 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6797 | fi | |
6798 | ||
6799 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
6800 | echo "$as_me:$LINENO: result: yes" >&5 |
6801 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6802 | else |
e6cc62c6 VS |
6803 | echo "$as_me:$LINENO: result: no" >&5 |
6804 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6805 | fi |
e6cc62c6 | 6806 | |
10f2d63a | 6807 | |
5005acfe | 6808 | enablestring= |
e6cc62c6 VS |
6809 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
6810 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
6811 | no_cache=0 |
6812 | # Check whether --enable-checklst or --disable-checklst was given. | |
6813 | if test "${enable_checklst+set}" = set; then | |
6814 | enableval="$enable_checklst" | |
e6cc62c6 | 6815 | |
10f2d63a VZ |
6816 | if test "$enableval" = yes; then |
6817 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6818 | else | |
6819 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6820 | fi | |
e6cc62c6 | 6821 | |
10f2d63a | 6822 | else |
e6cc62c6 | 6823 | |
10f2d63a VZ |
6824 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6825 | if test "x$LINE" != x ; then | |
6826 | eval "DEFAULT_$LINE" | |
6827 | else | |
6828 | no_cache=1 | |
6829 | fi | |
6830 | ||
6831 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 6832 | |
e6cc62c6 | 6833 | fi; |
10f2d63a VZ |
6834 | |
6835 | eval "$ac_cv_use_checklst" | |
6836 | if test "$no_cache" != 1; then | |
6837 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6838 | fi | |
6839 | ||
6840 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
6841 | echo "$as_me:$LINENO: result: yes" >&5 |
6842 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6843 | else |
e6cc62c6 VS |
6844 | echo "$as_me:$LINENO: result: no" >&5 |
6845 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6846 | fi |
e6cc62c6 | 6847 | |
10f2d63a | 6848 | |
5005acfe | 6849 | enablestring= |
e6cc62c6 VS |
6850 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
6851 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
6852 | no_cache=0 |
6853 | # Check whether --enable-choice or --disable-choice was given. | |
6854 | if test "${enable_choice+set}" = set; then | |
6855 | enableval="$enable_choice" | |
e6cc62c6 | 6856 | |
10f2d63a VZ |
6857 | if test "$enableval" = yes; then |
6858 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
6859 | else | |
6860 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
6861 | fi | |
e6cc62c6 | 6862 | |
10f2d63a | 6863 | else |
e6cc62c6 | 6864 | |
10f2d63a VZ |
6865 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
6866 | if test "x$LINE" != x ; then | |
6867 | eval "DEFAULT_$LINE" | |
6868 | else | |
6869 | no_cache=1 | |
6870 | fi | |
6871 | ||
6872 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 6873 | |
e6cc62c6 | 6874 | fi; |
10f2d63a VZ |
6875 | |
6876 | eval "$ac_cv_use_choice" | |
6877 | if test "$no_cache" != 1; then | |
6878 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
6879 | fi | |
6880 | ||
6881 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
6882 | echo "$as_me:$LINENO: result: yes" >&5 |
6883 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6884 | else |
e6cc62c6 VS |
6885 | echo "$as_me:$LINENO: result: no" >&5 |
6886 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6887 | fi |
e6cc62c6 | 6888 | |
10f2d63a | 6889 | |
5005acfe | 6890 | enablestring= |
e6cc62c6 VS |
6891 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
6892 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
6893 | no_cache=0 |
6894 | # Check whether --enable-combobox or --disable-combobox was given. | |
6895 | if test "${enable_combobox+set}" = set; then | |
6896 | enableval="$enable_combobox" | |
e6cc62c6 | 6897 | |
10f2d63a VZ |
6898 | if test "$enableval" = yes; then |
6899 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
6900 | else | |
6901 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
6902 | fi | |
e6cc62c6 | 6903 | |
10f2d63a | 6904 | else |
e6cc62c6 | 6905 | |
10f2d63a VZ |
6906 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
6907 | if test "x$LINE" != x ; then | |
6908 | eval "DEFAULT_$LINE" | |
6909 | else | |
6910 | no_cache=1 | |
6911 | fi | |
6912 | ||
6913 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 6914 | |
e6cc62c6 | 6915 | fi; |
10f2d63a VZ |
6916 | |
6917 | eval "$ac_cv_use_combobox" | |
6918 | if test "$no_cache" != 1; then | |
6919 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
6920 | fi | |
6921 | ||
6922 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
6923 | echo "$as_me:$LINENO: result: yes" >&5 |
6924 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6925 | else |
e6cc62c6 VS |
6926 | echo "$as_me:$LINENO: result: no" >&5 |
6927 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6928 | fi |
e6cc62c6 | 6929 | |
10f2d63a | 6930 | |
da494b40 | 6931 | enablestring= |
e6cc62c6 VS |
6932 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
6933 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
6934 | no_cache=0 |
6935 | # Check whether --enable-display or --disable-display was given. | |
6936 | if test "${enable_display+set}" = set; then | |
6937 | enableval="$enable_display" | |
e6cc62c6 | 6938 | |
da494b40 MB |
6939 | if test "$enableval" = yes; then |
6940 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
6941 | else | |
6942 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
6943 | fi | |
e6cc62c6 | 6944 | |
da494b40 | 6945 | else |
e6cc62c6 | 6946 | |
da494b40 MB |
6947 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
6948 | if test "x$LINE" != x ; then | |
6949 | eval "DEFAULT_$LINE" | |
6950 | else | |
6951 | no_cache=1 | |
6952 | fi | |
6953 | ||
6954 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 6955 | |
e6cc62c6 | 6956 | fi; |
da494b40 MB |
6957 | |
6958 | eval "$ac_cv_use_display" | |
6959 | if test "$no_cache" != 1; then | |
6960 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
6961 | fi | |
6962 | ||
6963 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
6964 | echo "$as_me:$LINENO: result: yes" >&5 |
6965 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 6966 | else |
e6cc62c6 VS |
6967 | echo "$as_me:$LINENO: result: no" >&5 |
6968 | echo "${ECHO_T}no" >&6 | |
da494b40 | 6969 | fi |
e6cc62c6 | 6970 | |
da494b40 | 6971 | |
5005acfe | 6972 | enablestring= |
e6cc62c6 VS |
6973 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
6974 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
6975 | no_cache=0 |
6976 | # Check whether --enable-gauge or --disable-gauge was given. | |
6977 | if test "${enable_gauge+set}" = set; then | |
6978 | enableval="$enable_gauge" | |
e6cc62c6 | 6979 | |
10f2d63a VZ |
6980 | if test "$enableval" = yes; then |
6981 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
6982 | else | |
6983 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
6984 | fi | |
e6cc62c6 | 6985 | |
10f2d63a | 6986 | else |
e6cc62c6 | 6987 | |
10f2d63a VZ |
6988 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
6989 | if test "x$LINE" != x ; then | |
6990 | eval "DEFAULT_$LINE" | |
6991 | else | |
6992 | no_cache=1 | |
6993 | fi | |
6994 | ||
6995 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 6996 | |
e6cc62c6 | 6997 | fi; |
10f2d63a VZ |
6998 | |
6999 | eval "$ac_cv_use_gauge" | |
7000 | if test "$no_cache" != 1; then | |
7001 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7002 | fi | |
7003 | ||
7004 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
7005 | echo "$as_me:$LINENO: result: yes" >&5 |
7006 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7007 | else |
e6cc62c6 VS |
7008 | echo "$as_me:$LINENO: result: no" >&5 |
7009 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7010 | fi |
e6cc62c6 | 7011 | |
10f2d63a | 7012 | |
5005acfe | 7013 | enablestring= |
e6cc62c6 VS |
7014 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
7015 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
7016 | no_cache=0 |
7017 | # Check whether --enable-grid or --disable-grid was given. | |
7018 | if test "${enable_grid+set}" = set; then | |
7019 | enableval="$enable_grid" | |
e6cc62c6 | 7020 | |
10f2d63a VZ |
7021 | if test "$enableval" = yes; then |
7022 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7023 | else | |
7024 | ac_cv_use_grid='wxUSE_GRID=no' | |
7025 | fi | |
e6cc62c6 | 7026 | |
10f2d63a | 7027 | else |
e6cc62c6 | 7028 | |
10f2d63a VZ |
7029 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7030 | if test "x$LINE" != x ; then | |
7031 | eval "DEFAULT_$LINE" | |
7032 | else | |
7033 | no_cache=1 | |
7034 | fi | |
7035 | ||
7036 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7037 | |
e6cc62c6 | 7038 | fi; |
10f2d63a VZ |
7039 | |
7040 | eval "$ac_cv_use_grid" | |
7041 | if test "$no_cache" != 1; then | |
7042 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7043 | fi | |
7044 | ||
7045 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7046 | echo "$as_me:$LINENO: result: yes" >&5 |
7047 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7048 | else |
e6cc62c6 VS |
7049 | echo "$as_me:$LINENO: result: no" >&5 |
7050 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7051 | fi |
e6cc62c6 | 7052 | |
10f2d63a | 7053 | |
5005acfe | 7054 | enablestring= |
e6cc62c6 VS |
7055 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7056 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7057 | no_cache=0 |
7058 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7059 | if test "${enable_imaglist+set}" = set; then | |
7060 | enableval="$enable_imaglist" | |
e6cc62c6 | 7061 | |
10f2d63a VZ |
7062 | if test "$enableval" = yes; then |
7063 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7064 | else | |
7065 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7066 | fi | |
e6cc62c6 | 7067 | |
10f2d63a | 7068 | else |
e6cc62c6 | 7069 | |
10f2d63a VZ |
7070 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7071 | if test "x$LINE" != x ; then | |
7072 | eval "DEFAULT_$LINE" | |
7073 | else | |
7074 | no_cache=1 | |
7075 | fi | |
7076 | ||
7077 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7078 | |
e6cc62c6 | 7079 | fi; |
10f2d63a VZ |
7080 | |
7081 | eval "$ac_cv_use_imaglist" | |
7082 | if test "$no_cache" != 1; then | |
7083 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7084 | fi | |
7085 | ||
7086 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7087 | echo "$as_me:$LINENO: result: yes" >&5 |
7088 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7089 | else |
e6cc62c6 VS |
7090 | echo "$as_me:$LINENO: result: no" >&5 |
7091 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7092 | fi |
e6cc62c6 | 7093 | |
10f2d63a | 7094 | |
0e012a93 VZ |
7095 | enablestring= |
7096 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7097 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7098 | no_cache=0 | |
7099 | # Check whether --enable-listbook or --disable-listbook was given. | |
7100 | if test "${enable_listbook+set}" = set; then | |
7101 | enableval="$enable_listbook" | |
7102 | ||
7103 | if test "$enableval" = yes; then | |
7104 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7105 | else | |
7106 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7107 | fi | |
7108 | ||
7109 | else | |
7110 | ||
7111 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7112 | if test "x$LINE" != x ; then | |
7113 | eval "DEFAULT_$LINE" | |
7114 | else | |
7115 | no_cache=1 | |
7116 | fi | |
7117 | ||
7118 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7119 | ||
7120 | fi; | |
7121 | ||
7122 | eval "$ac_cv_use_listbook" | |
7123 | if test "$no_cache" != 1; then | |
7124 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7125 | fi | |
7126 | ||
7127 | if test "$wxUSE_LISTBOOK" = yes; then | |
7128 | echo "$as_me:$LINENO: result: yes" >&5 | |
7129 | echo "${ECHO_T}yes" >&6 | |
7130 | else | |
7131 | echo "$as_me:$LINENO: result: no" >&5 | |
7132 | echo "${ECHO_T}no" >&6 | |
7133 | fi | |
7134 | ||
7135 | ||
5005acfe | 7136 | enablestring= |
e6cc62c6 VS |
7137 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7138 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7139 | no_cache=0 |
7140 | # Check whether --enable-listbox or --disable-listbox was given. | |
7141 | if test "${enable_listbox+set}" = set; then | |
7142 | enableval="$enable_listbox" | |
e6cc62c6 | 7143 | |
10f2d63a VZ |
7144 | if test "$enableval" = yes; then |
7145 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7146 | else | |
7147 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7148 | fi | |
e6cc62c6 | 7149 | |
10f2d63a | 7150 | else |
e6cc62c6 | 7151 | |
10f2d63a VZ |
7152 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7153 | if test "x$LINE" != x ; then | |
7154 | eval "DEFAULT_$LINE" | |
7155 | else | |
7156 | no_cache=1 | |
7157 | fi | |
7158 | ||
7159 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7160 | |
e6cc62c6 | 7161 | fi; |
10f2d63a VZ |
7162 | |
7163 | eval "$ac_cv_use_listbox" | |
7164 | if test "$no_cache" != 1; then | |
7165 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7166 | fi | |
7167 | ||
7168 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7169 | echo "$as_me:$LINENO: result: yes" >&5 |
7170 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7171 | else |
e6cc62c6 VS |
7172 | echo "$as_me:$LINENO: result: no" >&5 |
7173 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7174 | fi |
e6cc62c6 | 7175 | |
10f2d63a | 7176 | |
5005acfe | 7177 | enablestring= |
e6cc62c6 VS |
7178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7179 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7180 | no_cache=0 |
7181 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7182 | if test "${enable_listctrl+set}" = set; then | |
7183 | enableval="$enable_listctrl" | |
e6cc62c6 | 7184 | |
10f2d63a VZ |
7185 | if test "$enableval" = yes; then |
7186 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7187 | else | |
7188 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7189 | fi | |
e6cc62c6 | 7190 | |
10f2d63a | 7191 | else |
e6cc62c6 | 7192 | |
10f2d63a VZ |
7193 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7194 | if test "x$LINE" != x ; then | |
7195 | eval "DEFAULT_$LINE" | |
7196 | else | |
7197 | no_cache=1 | |
7198 | fi | |
7199 | ||
7200 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7201 | |
e6cc62c6 | 7202 | fi; |
10f2d63a VZ |
7203 | |
7204 | eval "$ac_cv_use_listctrl" | |
7205 | if test "$no_cache" != 1; then | |
7206 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7207 | fi | |
7208 | ||
7209 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7210 | echo "$as_me:$LINENO: result: yes" >&5 |
7211 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7212 | else |
e6cc62c6 VS |
7213 | echo "$as_me:$LINENO: result: no" >&5 |
7214 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7215 | fi |
e6cc62c6 | 7216 | |
10f2d63a | 7217 | |
5005acfe | 7218 | enablestring= |
e6cc62c6 VS |
7219 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7220 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7221 | no_cache=0 |
7222 | # Check whether --enable-notebook or --disable-notebook was given. | |
7223 | if test "${enable_notebook+set}" = set; then | |
7224 | enableval="$enable_notebook" | |
e6cc62c6 | 7225 | |
10f2d63a VZ |
7226 | if test "$enableval" = yes; then |
7227 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7228 | else | |
7229 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7230 | fi | |
e6cc62c6 | 7231 | |
10f2d63a | 7232 | else |
e6cc62c6 | 7233 | |
10f2d63a VZ |
7234 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7235 | if test "x$LINE" != x ; then | |
7236 | eval "DEFAULT_$LINE" | |
7237 | else | |
7238 | no_cache=1 | |
7239 | fi | |
7240 | ||
7241 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7242 | |
e6cc62c6 | 7243 | fi; |
10f2d63a VZ |
7244 | |
7245 | eval "$ac_cv_use_notebook" | |
7246 | if test "$no_cache" != 1; then | |
7247 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7248 | fi | |
7249 | ||
7250 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7251 | echo "$as_me:$LINENO: result: yes" >&5 |
7252 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7253 | else |
e6cc62c6 VS |
7254 | echo "$as_me:$LINENO: result: no" >&5 |
7255 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7256 | fi |
e6cc62c6 | 7257 | |
10f2d63a | 7258 | |
5005acfe | 7259 | enablestring= |
e6cc62c6 VS |
7260 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7261 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7262 | no_cache=0 |
7263 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7264 | if test "${enable_radiobox+set}" = set; then | |
7265 | enableval="$enable_radiobox" | |
e6cc62c6 | 7266 | |
10f2d63a VZ |
7267 | if test "$enableval" = yes; then |
7268 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7269 | else | |
7270 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7271 | fi | |
e6cc62c6 | 7272 | |
10f2d63a | 7273 | else |
e6cc62c6 | 7274 | |
10f2d63a VZ |
7275 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7276 | if test "x$LINE" != x ; then | |
7277 | eval "DEFAULT_$LINE" | |
7278 | else | |
7279 | no_cache=1 | |
7280 | fi | |
7281 | ||
7282 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7283 | |
e6cc62c6 | 7284 | fi; |
10f2d63a VZ |
7285 | |
7286 | eval "$ac_cv_use_radiobox" | |
7287 | if test "$no_cache" != 1; then | |
7288 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7289 | fi | |
7290 | ||
7291 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7292 | echo "$as_me:$LINENO: result: yes" >&5 |
7293 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7294 | else |
e6cc62c6 VS |
7295 | echo "$as_me:$LINENO: result: no" >&5 |
7296 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7297 | fi |
e6cc62c6 | 7298 | |
10f2d63a | 7299 | |
5005acfe | 7300 | enablestring= |
e6cc62c6 VS |
7301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7302 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7303 | no_cache=0 |
7304 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7305 | if test "${enable_radiobtn+set}" = set; then | |
7306 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7307 | |
10f2d63a VZ |
7308 | if test "$enableval" = yes; then |
7309 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7310 | else | |
7311 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7312 | fi | |
e6cc62c6 | 7313 | |
10f2d63a | 7314 | else |
e6cc62c6 | 7315 | |
10f2d63a VZ |
7316 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7317 | if test "x$LINE" != x ; then | |
7318 | eval "DEFAULT_$LINE" | |
7319 | else | |
7320 | no_cache=1 | |
7321 | fi | |
7322 | ||
7323 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7324 | |
e6cc62c6 | 7325 | fi; |
10f2d63a VZ |
7326 | |
7327 | eval "$ac_cv_use_radiobtn" | |
7328 | if test "$no_cache" != 1; then | |
7329 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7330 | fi | |
7331 | ||
7332 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7333 | echo "$as_me:$LINENO: result: yes" >&5 |
7334 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7335 | else |
e6cc62c6 VS |
7336 | echo "$as_me:$LINENO: result: no" >&5 |
7337 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7338 | fi |
e6cc62c6 | 7339 | |
10f2d63a | 7340 | |
5005acfe | 7341 | enablestring= |
e6cc62c6 VS |
7342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7343 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7344 | no_cache=0 |
7345 | # Check whether --enable-sash or --disable-sash was given. | |
7346 | if test "${enable_sash+set}" = set; then | |
7347 | enableval="$enable_sash" | |
e6cc62c6 | 7348 | |
10f2d63a VZ |
7349 | if test "$enableval" = yes; then |
7350 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7351 | else | |
7352 | ac_cv_use_sash='wxUSE_SASH=no' | |
7353 | fi | |
e6cc62c6 | 7354 | |
10f2d63a | 7355 | else |
e6cc62c6 | 7356 | |
10f2d63a VZ |
7357 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7358 | if test "x$LINE" != x ; then | |
7359 | eval "DEFAULT_$LINE" | |
7360 | else | |
7361 | no_cache=1 | |
7362 | fi | |
7363 | ||
7364 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7365 | |
e6cc62c6 | 7366 | fi; |
10f2d63a VZ |
7367 | |
7368 | eval "$ac_cv_use_sash" | |
7369 | if test "$no_cache" != 1; then | |
7370 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7371 | fi | |
7372 | ||
7373 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7374 | echo "$as_me:$LINENO: result: yes" >&5 |
7375 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7376 | else |
e6cc62c6 VS |
7377 | echo "$as_me:$LINENO: result: no" >&5 |
7378 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7379 | fi |
e6cc62c6 | 7380 | |
10f2d63a | 7381 | |
5005acfe | 7382 | enablestring= |
e6cc62c6 VS |
7383 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7384 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7385 | no_cache=0 |
7386 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7387 | if test "${enable_scrollbar+set}" = set; then | |
7388 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7389 | |
10f2d63a VZ |
7390 | if test "$enableval" = yes; then |
7391 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7392 | else | |
7393 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7394 | fi | |
e6cc62c6 | 7395 | |
10f2d63a | 7396 | else |
e6cc62c6 | 7397 | |
10f2d63a VZ |
7398 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7399 | if test "x$LINE" != x ; then | |
7400 | eval "DEFAULT_$LINE" | |
7401 | else | |
7402 | no_cache=1 | |
7403 | fi | |
7404 | ||
7405 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7406 | |
e6cc62c6 | 7407 | fi; |
10f2d63a VZ |
7408 | |
7409 | eval "$ac_cv_use_scrollbar" | |
7410 | if test "$no_cache" != 1; then | |
7411 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7412 | fi | |
7413 | ||
7414 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7415 | echo "$as_me:$LINENO: result: yes" >&5 |
7416 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7417 | else |
e6cc62c6 VS |
7418 | echo "$as_me:$LINENO: result: no" >&5 |
7419 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7420 | fi |
e6cc62c6 | 7421 | |
10f2d63a | 7422 | |
5005acfe | 7423 | enablestring= |
e6cc62c6 VS |
7424 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7425 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7426 | no_cache=0 |
7427 | # Check whether --enable-slider or --disable-slider was given. | |
7428 | if test "${enable_slider+set}" = set; then | |
7429 | enableval="$enable_slider" | |
e6cc62c6 | 7430 | |
10f2d63a VZ |
7431 | if test "$enableval" = yes; then |
7432 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7433 | else | |
7434 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7435 | fi | |
e6cc62c6 | 7436 | |
10f2d63a | 7437 | else |
e6cc62c6 | 7438 | |
10f2d63a VZ |
7439 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7440 | if test "x$LINE" != x ; then | |
7441 | eval "DEFAULT_$LINE" | |
7442 | else | |
7443 | no_cache=1 | |
7444 | fi | |
7445 | ||
7446 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7447 | |
e6cc62c6 | 7448 | fi; |
10f2d63a VZ |
7449 | |
7450 | eval "$ac_cv_use_slider" | |
7451 | if test "$no_cache" != 1; then | |
7452 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7453 | fi | |
7454 | ||
7455 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7456 | echo "$as_me:$LINENO: result: yes" >&5 |
7457 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7458 | else |
e6cc62c6 VS |
7459 | echo "$as_me:$LINENO: result: no" >&5 |
7460 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7461 | fi |
e6cc62c6 | 7462 | |
10f2d63a | 7463 | |
5005acfe | 7464 | enablestring= |
e6cc62c6 VS |
7465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7466 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7467 | no_cache=0 |
7468 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7469 | if test "${enable_spinbtn+set}" = set; then | |
7470 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7471 | |
10f2d63a VZ |
7472 | if test "$enableval" = yes; then |
7473 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7474 | else | |
7475 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7476 | fi | |
e6cc62c6 | 7477 | |
10f2d63a | 7478 | else |
e6cc62c6 | 7479 | |
10f2d63a VZ |
7480 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7481 | if test "x$LINE" != x ; then | |
7482 | eval "DEFAULT_$LINE" | |
7483 | else | |
7484 | no_cache=1 | |
7485 | fi | |
7486 | ||
7487 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7488 | |
e6cc62c6 | 7489 | fi; |
10f2d63a VZ |
7490 | |
7491 | eval "$ac_cv_use_spinbtn" | |
7492 | if test "$no_cache" != 1; then | |
7493 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7494 | fi | |
7495 | ||
7496 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7497 | echo "$as_me:$LINENO: result: yes" >&5 |
7498 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7499 | else |
e6cc62c6 VS |
7500 | echo "$as_me:$LINENO: result: no" >&5 |
7501 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7502 | fi |
e6cc62c6 | 7503 | |
10f2d63a | 7504 | |
5005acfe | 7505 | enablestring= |
e6cc62c6 VS |
7506 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7507 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7508 | no_cache=0 |
7509 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7510 | if test "${enable_spinctrl+set}" = set; then | |
7511 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7512 | |
56cfaa52 RR |
7513 | if test "$enableval" = yes; then |
7514 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7515 | else | |
7516 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7517 | fi | |
e6cc62c6 | 7518 | |
56cfaa52 | 7519 | else |
e6cc62c6 | 7520 | |
56cfaa52 RR |
7521 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7522 | if test "x$LINE" != x ; then | |
7523 | eval "DEFAULT_$LINE" | |
7524 | else | |
7525 | no_cache=1 | |
7526 | fi | |
7527 | ||
7528 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7529 | |
e6cc62c6 | 7530 | fi; |
56cfaa52 RR |
7531 | |
7532 | eval "$ac_cv_use_spinctrl" | |
7533 | if test "$no_cache" != 1; then | |
7534 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7535 | fi | |
7536 | ||
7537 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7538 | echo "$as_me:$LINENO: result: yes" >&5 |
7539 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7540 | else |
e6cc62c6 VS |
7541 | echo "$as_me:$LINENO: result: no" >&5 |
7542 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7543 | fi |
e6cc62c6 | 7544 | |
56cfaa52 | 7545 | |
5005acfe | 7546 | enablestring= |
e6cc62c6 VS |
7547 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7548 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7549 | no_cache=0 |
7550 | # Check whether --enable-splitter or --disable-splitter was given. | |
7551 | if test "${enable_splitter+set}" = set; then | |
7552 | enableval="$enable_splitter" | |
e6cc62c6 | 7553 | |
10f2d63a VZ |
7554 | if test "$enableval" = yes; then |
7555 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7556 | else | |
7557 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7558 | fi | |
e6cc62c6 | 7559 | |
10f2d63a | 7560 | else |
e6cc62c6 | 7561 | |
10f2d63a VZ |
7562 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7563 | if test "x$LINE" != x ; then | |
7564 | eval "DEFAULT_$LINE" | |
7565 | else | |
7566 | no_cache=1 | |
7567 | fi | |
7568 | ||
7569 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7570 | |
e6cc62c6 | 7571 | fi; |
10f2d63a VZ |
7572 | |
7573 | eval "$ac_cv_use_splitter" | |
7574 | if test "$no_cache" != 1; then | |
7575 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7576 | fi | |
7577 | ||
7578 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7579 | echo "$as_me:$LINENO: result: yes" >&5 |
7580 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7581 | else |
e6cc62c6 VS |
7582 | echo "$as_me:$LINENO: result: no" >&5 |
7583 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7584 | fi |
e6cc62c6 | 7585 | |
10f2d63a | 7586 | |
5005acfe | 7587 | enablestring= |
e6cc62c6 VS |
7588 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7589 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7590 | no_cache=0 |
7591 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7592 | if test "${enable_statbmp+set}" = set; then | |
7593 | enableval="$enable_statbmp" | |
e6cc62c6 | 7594 | |
10f2d63a VZ |
7595 | if test "$enableval" = yes; then |
7596 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7597 | else | |
7598 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7599 | fi | |
e6cc62c6 | 7600 | |
10f2d63a | 7601 | else |
e6cc62c6 | 7602 | |
10f2d63a VZ |
7603 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7604 | if test "x$LINE" != x ; then | |
7605 | eval "DEFAULT_$LINE" | |
7606 | else | |
7607 | no_cache=1 | |
7608 | fi | |
7609 | ||
7610 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7611 | |
e6cc62c6 | 7612 | fi; |
10f2d63a VZ |
7613 | |
7614 | eval "$ac_cv_use_statbmp" | |
7615 | if test "$no_cache" != 1; then | |
7616 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7617 | fi | |
7618 | ||
7619 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7620 | echo "$as_me:$LINENO: result: yes" >&5 |
7621 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7622 | else |
e6cc62c6 VS |
7623 | echo "$as_me:$LINENO: result: no" >&5 |
7624 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7625 | fi |
e6cc62c6 | 7626 | |
10f2d63a | 7627 | |
5005acfe | 7628 | enablestring= |
e6cc62c6 VS |
7629 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7630 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7631 | no_cache=0 |
7632 | # Check whether --enable-statbox or --disable-statbox was given. | |
7633 | if test "${enable_statbox+set}" = set; then | |
7634 | enableval="$enable_statbox" | |
e6cc62c6 | 7635 | |
10f2d63a VZ |
7636 | if test "$enableval" = yes; then |
7637 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7638 | else | |
7639 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7640 | fi | |
e6cc62c6 | 7641 | |
10f2d63a | 7642 | else |
e6cc62c6 | 7643 | |
10f2d63a VZ |
7644 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7645 | if test "x$LINE" != x ; then | |
7646 | eval "DEFAULT_$LINE" | |
7647 | else | |
7648 | no_cache=1 | |
7649 | fi | |
7650 | ||
7651 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7652 | |
e6cc62c6 | 7653 | fi; |
10f2d63a VZ |
7654 | |
7655 | eval "$ac_cv_use_statbox" | |
7656 | if test "$no_cache" != 1; then | |
7657 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7658 | fi | |
7659 | ||
7660 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7661 | echo "$as_me:$LINENO: result: yes" >&5 |
7662 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7663 | else |
e6cc62c6 VS |
7664 | echo "$as_me:$LINENO: result: no" >&5 |
7665 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7666 | fi |
e6cc62c6 | 7667 | |
10f2d63a | 7668 | |
5005acfe | 7669 | enablestring= |
e6cc62c6 VS |
7670 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7671 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7672 | no_cache=0 |
7673 | # Check whether --enable-statline or --disable-statline was given. | |
7674 | if test "${enable_statline+set}" = set; then | |
7675 | enableval="$enable_statline" | |
e6cc62c6 | 7676 | |
10f2d63a VZ |
7677 | if test "$enableval" = yes; then |
7678 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7679 | else | |
7680 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7681 | fi | |
e6cc62c6 | 7682 | |
10f2d63a | 7683 | else |
e6cc62c6 | 7684 | |
10f2d63a VZ |
7685 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7686 | if test "x$LINE" != x ; then | |
7687 | eval "DEFAULT_$LINE" | |
7688 | else | |
7689 | no_cache=1 | |
7690 | fi | |
7691 | ||
7692 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7693 | |
e6cc62c6 | 7694 | fi; |
10f2d63a VZ |
7695 | |
7696 | eval "$ac_cv_use_statline" | |
7697 | if test "$no_cache" != 1; then | |
7698 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7699 | fi | |
7700 | ||
7701 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
7702 | echo "$as_me:$LINENO: result: yes" >&5 |
7703 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7704 | else |
e6cc62c6 VS |
7705 | echo "$as_me:$LINENO: result: no" >&5 |
7706 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7707 | fi |
e6cc62c6 | 7708 | |
10f2d63a | 7709 | |
5005acfe | 7710 | enablestring= |
e6cc62c6 VS |
7711 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
7712 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7713 | no_cache=0 |
7714 | # Check whether --enable-stattext or --disable-stattext was given. | |
7715 | if test "${enable_stattext+set}" = set; then | |
7716 | enableval="$enable_stattext" | |
e6cc62c6 | 7717 | |
1e6feb95 VZ |
7718 | if test "$enableval" = yes; then |
7719 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7720 | else | |
7721 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7722 | fi | |
e6cc62c6 | 7723 | |
1e6feb95 | 7724 | else |
e6cc62c6 | 7725 | |
1e6feb95 VZ |
7726 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7727 | if test "x$LINE" != x ; then | |
7728 | eval "DEFAULT_$LINE" | |
7729 | else | |
7730 | no_cache=1 | |
7731 | fi | |
7732 | ||
7733 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7734 | |
e6cc62c6 | 7735 | fi; |
1e6feb95 VZ |
7736 | |
7737 | eval "$ac_cv_use_stattext" | |
7738 | if test "$no_cache" != 1; then | |
7739 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7740 | fi | |
7741 | ||
7742 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
7743 | echo "$as_me:$LINENO: result: yes" >&5 |
7744 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7745 | else |
e6cc62c6 VS |
7746 | echo "$as_me:$LINENO: result: no" >&5 |
7747 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7748 | fi |
e6cc62c6 | 7749 | |
1e6feb95 | 7750 | |
5005acfe | 7751 | enablestring= |
e6cc62c6 VS |
7752 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
7753 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7754 | no_cache=0 |
7755 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7756 | if test "${enable_statusbar+set}" = set; then | |
7757 | enableval="$enable_statusbar" | |
e6cc62c6 | 7758 | |
10f2d63a VZ |
7759 | if test "$enableval" = yes; then |
7760 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7761 | else | |
7762 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7763 | fi | |
e6cc62c6 | 7764 | |
10f2d63a | 7765 | else |
e6cc62c6 | 7766 | |
10f2d63a VZ |
7767 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7768 | if test "x$LINE" != x ; then | |
7769 | eval "DEFAULT_$LINE" | |
7770 | else | |
7771 | no_cache=1 | |
7772 | fi | |
7773 | ||
7774 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 7775 | |
e6cc62c6 | 7776 | fi; |
10f2d63a VZ |
7777 | |
7778 | eval "$ac_cv_use_statusbar" | |
7779 | if test "$no_cache" != 1; then | |
7780 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7781 | fi | |
7782 | ||
7783 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
7784 | echo "$as_me:$LINENO: result: yes" >&5 |
7785 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7786 | else |
e6cc62c6 VS |
7787 | echo "$as_me:$LINENO: result: no" >&5 |
7788 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7789 | fi |
e6cc62c6 | 7790 | |
10f2d63a | 7791 | |
5005acfe | 7792 | enablestring= |
e6cc62c6 VS |
7793 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
7794 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
7795 | no_cache=0 |
7796 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7797 | if test "${enable_tabdialog+set}" = set; then | |
7798 | enableval="$enable_tabdialog" | |
e6cc62c6 | 7799 | |
10f2d63a VZ |
7800 | if test "$enableval" = yes; then |
7801 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7802 | else | |
7803 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7804 | fi | |
e6cc62c6 | 7805 | |
10f2d63a | 7806 | else |
e6cc62c6 | 7807 | |
10f2d63a VZ |
7808 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7809 | if test "x$LINE" != x ; then | |
7810 | eval "DEFAULT_$LINE" | |
7811 | else | |
7812 | no_cache=1 | |
7813 | fi | |
7814 | ||
7815 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 7816 | |
e6cc62c6 | 7817 | fi; |
10f2d63a VZ |
7818 | |
7819 | eval "$ac_cv_use_tabdialog" | |
7820 | if test "$no_cache" != 1; then | |
7821 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7822 | fi | |
7823 | ||
7824 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
7825 | echo "$as_me:$LINENO: result: yes" >&5 |
7826 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7827 | else |
e6cc62c6 VS |
7828 | echo "$as_me:$LINENO: result: no" >&5 |
7829 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7830 | fi |
e6cc62c6 | 7831 | |
10f2d63a | 7832 | |
5005acfe | 7833 | enablestring= |
e6cc62c6 VS |
7834 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
7835 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
7836 | no_cache=0 |
7837 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7838 | if test "${enable_textctrl+set}" = set; then | |
7839 | enableval="$enable_textctrl" | |
e6cc62c6 | 7840 | |
1e6feb95 VZ |
7841 | if test "$enableval" = yes; then |
7842 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7843 | else | |
7844 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7845 | fi | |
e6cc62c6 | 7846 | |
1e6feb95 | 7847 | else |
e6cc62c6 | 7848 | |
1e6feb95 VZ |
7849 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
7850 | if test "x$LINE" != x ; then | |
7851 | eval "DEFAULT_$LINE" | |
7852 | else | |
7853 | no_cache=1 | |
7854 | fi | |
7855 | ||
7856 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 7857 | |
e6cc62c6 | 7858 | fi; |
1e6feb95 VZ |
7859 | |
7860 | eval "$ac_cv_use_textctrl" | |
7861 | if test "$no_cache" != 1; then | |
7862 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
7863 | fi | |
7864 | ||
7865 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
7866 | echo "$as_me:$LINENO: result: yes" >&5 |
7867 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7868 | else |
e6cc62c6 VS |
7869 | echo "$as_me:$LINENO: result: no" >&5 |
7870 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7871 | fi |
e6cc62c6 | 7872 | |
1e6feb95 | 7873 | |
5005acfe | 7874 | enablestring= |
e6cc62c6 VS |
7875 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
7876 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
7877 | no_cache=0 |
7878 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
7879 | if test "${enable_togglebtn+set}" = set; then | |
7880 | enableval="$enable_togglebtn" | |
e6cc62c6 | 7881 | |
1db8dc4a VZ |
7882 | if test "$enableval" = yes; then |
7883 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
7884 | else | |
7885 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
7886 | fi | |
e6cc62c6 | 7887 | |
1db8dc4a | 7888 | else |
e6cc62c6 | 7889 | |
1db8dc4a VZ |
7890 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
7891 | if test "x$LINE" != x ; then | |
7892 | eval "DEFAULT_$LINE" | |
7893 | else | |
7894 | no_cache=1 | |
7895 | fi | |
7896 | ||
7897 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 7898 | |
e6cc62c6 | 7899 | fi; |
1db8dc4a VZ |
7900 | |
7901 | eval "$ac_cv_use_togglebtn" | |
7902 | if test "$no_cache" != 1; then | |
7903 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
7904 | fi | |
7905 | ||
7906 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
7907 | echo "$as_me:$LINENO: result: yes" >&5 |
7908 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 7909 | else |
e6cc62c6 VS |
7910 | echo "$as_me:$LINENO: result: no" >&5 |
7911 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 7912 | fi |
e6cc62c6 | 7913 | |
1db8dc4a | 7914 | |
5005acfe | 7915 | enablestring= |
e6cc62c6 VS |
7916 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
7917 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7918 | no_cache=0 |
7919 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
7920 | if test "${enable_toolbar+set}" = set; then | |
7921 | enableval="$enable_toolbar" | |
e6cc62c6 | 7922 | |
10f2d63a VZ |
7923 | if test "$enableval" = yes; then |
7924 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
7925 | else | |
7926 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
7927 | fi | |
e6cc62c6 | 7928 | |
10f2d63a | 7929 | else |
e6cc62c6 | 7930 | |
10f2d63a VZ |
7931 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
7932 | if test "x$LINE" != x ; then | |
7933 | eval "DEFAULT_$LINE" | |
7934 | else | |
7935 | no_cache=1 | |
7936 | fi | |
7937 | ||
7938 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 7939 | |
e6cc62c6 | 7940 | fi; |
10f2d63a VZ |
7941 | |
7942 | eval "$ac_cv_use_toolbar" | |
7943 | if test "$no_cache" != 1; then | |
7944 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
7945 | fi | |
7946 | ||
7947 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
7948 | echo "$as_me:$LINENO: result: yes" >&5 |
7949 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7950 | else |
e6cc62c6 VS |
7951 | echo "$as_me:$LINENO: result: no" >&5 |
7952 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7953 | fi |
e6cc62c6 | 7954 | |
10f2d63a | 7955 | |
5005acfe | 7956 | enablestring= |
e6cc62c6 VS |
7957 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
7958 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
7959 | no_cache=0 |
7960 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
7961 | if test "${enable_tbarnative+set}" = set; then | |
7962 | enableval="$enable_tbarnative" | |
e6cc62c6 | 7963 | |
360d6699 VZ |
7964 | if test "$enableval" = yes; then |
7965 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
7966 | else | |
7967 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
7968 | fi | |
e6cc62c6 | 7969 | |
360d6699 | 7970 | else |
e6cc62c6 | 7971 | |
360d6699 VZ |
7972 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
7973 | if test "x$LINE" != x ; then | |
7974 | eval "DEFAULT_$LINE" | |
7975 | else | |
7976 | no_cache=1 | |
7977 | fi | |
7978 | ||
7979 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 7980 | |
e6cc62c6 | 7981 | fi; |
360d6699 VZ |
7982 | |
7983 | eval "$ac_cv_use_tbarnative" | |
7984 | if test "$no_cache" != 1; then | |
7985 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
7986 | fi | |
7987 | ||
7988 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
7989 | echo "$as_me:$LINENO: result: yes" >&5 |
7990 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 7991 | else |
e6cc62c6 VS |
7992 | echo "$as_me:$LINENO: result: no" >&5 |
7993 | echo "${ECHO_T}no" >&6 | |
360d6699 | 7994 | fi |
e6cc62c6 | 7995 | |
360d6699 | 7996 | |
5005acfe | 7997 | enablestring= |
e6cc62c6 VS |
7998 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
7999 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
8000 | no_cache=0 |
8001 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8002 | if test "${enable_tbarsmpl+set}" = set; then | |
8003 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 8004 | |
360d6699 VZ |
8005 | if test "$enableval" = yes; then |
8006 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8007 | else | |
8008 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8009 | fi | |
e6cc62c6 | 8010 | |
360d6699 | 8011 | else |
e6cc62c6 | 8012 | |
360d6699 VZ |
8013 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
8014 | if test "x$LINE" != x ; then | |
8015 | eval "DEFAULT_$LINE" | |
8016 | else | |
8017 | no_cache=1 | |
8018 | fi | |
8019 | ||
8020 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 8021 | |
e6cc62c6 | 8022 | fi; |
360d6699 VZ |
8023 | |
8024 | eval "$ac_cv_use_tbarsmpl" | |
8025 | if test "$no_cache" != 1; then | |
8026 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8027 | fi | |
8028 | ||
8029 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
8030 | echo "$as_me:$LINENO: result: yes" >&5 |
8031 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8032 | else |
e6cc62c6 VS |
8033 | echo "$as_me:$LINENO: result: no" >&5 |
8034 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8035 | fi |
e6cc62c6 | 8036 | |
360d6699 | 8037 | |
5005acfe | 8038 | enablestring= |
e6cc62c6 VS |
8039 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
8040 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
8041 | no_cache=0 |
8042 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8043 | if test "${enable_treectrl+set}" = set; then | |
8044 | enableval="$enable_treectrl" | |
e6cc62c6 | 8045 | |
10f2d63a VZ |
8046 | if test "$enableval" = yes; then |
8047 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8048 | else | |
8049 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8050 | fi | |
e6cc62c6 | 8051 | |
10f2d63a | 8052 | else |
e6cc62c6 | 8053 | |
10f2d63a VZ |
8054 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
8055 | if test "x$LINE" != x ; then | |
8056 | eval "DEFAULT_$LINE" | |
8057 | else | |
8058 | no_cache=1 | |
8059 | fi | |
8060 | ||
8061 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 8062 | |
e6cc62c6 | 8063 | fi; |
10f2d63a | 8064 | |
1e6feb95 VZ |
8065 | eval "$ac_cv_use_treectrl" |
8066 | if test "$no_cache" != 1; then | |
8067 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8068 | fi | |
8069 | ||
8070 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8071 | echo "$as_me:$LINENO: result: yes" >&5 |
8072 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8073 | else |
e6cc62c6 VS |
8074 | echo "$as_me:$LINENO: result: no" >&5 |
8075 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8076 | fi |
e6cc62c6 | 8077 | |
1e6feb95 | 8078 | |
5005acfe | 8079 | enablestring= |
e6cc62c6 VS |
8080 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8081 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8082 | no_cache=0 |
8083 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8084 | if test "${enable_tipwindow+set}" = set; then | |
8085 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8086 | |
9926e4a4 VZ |
8087 | if test "$enableval" = yes; then |
8088 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8089 | else | |
8090 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8091 | fi | |
e6cc62c6 | 8092 | |
9926e4a4 | 8093 | else |
e6cc62c6 | 8094 | |
9926e4a4 VZ |
8095 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8096 | if test "x$LINE" != x ; then | |
8097 | eval "DEFAULT_$LINE" | |
8098 | else | |
8099 | no_cache=1 | |
8100 | fi | |
8101 | ||
8102 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8103 | |
e6cc62c6 | 8104 | fi; |
9926e4a4 VZ |
8105 | |
8106 | eval "$ac_cv_use_tipwindow" | |
8107 | if test "$no_cache" != 1; then | |
8108 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8109 | fi | |
8110 | ||
8111 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8112 | echo "$as_me:$LINENO: result: yes" >&5 |
8113 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8114 | else |
e6cc62c6 VS |
8115 | echo "$as_me:$LINENO: result: no" >&5 |
8116 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8117 | fi |
e6cc62c6 | 8118 | |
9926e4a4 | 8119 | |
5005acfe | 8120 | enablestring= |
e6cc62c6 VS |
8121 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8122 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8123 | no_cache=0 |
8124 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8125 | if test "${enable_popupwin+set}" = set; then | |
8126 | enableval="$enable_popupwin" | |
e6cc62c6 | 8127 | |
9f41d601 RR |
8128 | if test "$enableval" = yes; then |
8129 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8130 | else | |
8131 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8132 | fi | |
e6cc62c6 | 8133 | |
9f41d601 | 8134 | else |
e6cc62c6 | 8135 | |
9f41d601 RR |
8136 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8137 | if test "x$LINE" != x ; then | |
8138 | eval "DEFAULT_$LINE" | |
8139 | else | |
8140 | no_cache=1 | |
8141 | fi | |
8142 | ||
8143 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8144 | |
e6cc62c6 | 8145 | fi; |
9f41d601 RR |
8146 | |
8147 | eval "$ac_cv_use_popupwin" | |
8148 | if test "$no_cache" != 1; then | |
8149 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8150 | fi | |
8151 | ||
8152 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8153 | echo "$as_me:$LINENO: result: yes" >&5 |
8154 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8155 | else |
e6cc62c6 VS |
8156 | echo "$as_me:$LINENO: result: no" >&5 |
8157 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8158 | fi |
e6cc62c6 | 8159 | |
52127426 | 8160 | |
8284b0c5 MB |
8161 | |
8162 | ||
5005acfe | 8163 | enablestring= |
e6cc62c6 VS |
8164 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8165 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8166 | no_cache=0 |
8167 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8168 | if test "${enable_commondlg+set}" = set; then | |
8169 | enableval="$enable_commondlg" | |
e6cc62c6 | 8170 | |
1e6feb95 VZ |
8171 | if test "$enableval" = yes; then |
8172 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8173 | else | |
8174 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8175 | fi | |
e6cc62c6 | 8176 | |
1e6feb95 | 8177 | else |
e6cc62c6 | 8178 | |
1e6feb95 VZ |
8179 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8180 | if test "x$LINE" != x ; then | |
8181 | eval "DEFAULT_$LINE" | |
8182 | else | |
8183 | no_cache=1 | |
8184 | fi | |
8185 | ||
8186 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8187 | |
e6cc62c6 | 8188 | fi; |
1e6feb95 VZ |
8189 | |
8190 | eval "$ac_cv_use_commondlg" | |
8191 | if test "$no_cache" != 1; then | |
8192 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8193 | fi | |
8194 | ||
8195 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8196 | echo "$as_me:$LINENO: result: yes" >&5 |
8197 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8198 | else |
e6cc62c6 VS |
8199 | echo "$as_me:$LINENO: result: no" >&5 |
8200 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8201 | fi |
e6cc62c6 | 8202 | |
1e6feb95 | 8203 | |
5005acfe | 8204 | enablestring= |
e6cc62c6 VS |
8205 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8206 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8207 | no_cache=0 |
8208 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8209 | if test "${enable_choicedlg+set}" = set; then | |
8210 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8211 | |
1e6feb95 VZ |
8212 | if test "$enableval" = yes; then |
8213 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8214 | else | |
8215 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8216 | fi | |
e6cc62c6 | 8217 | |
1e6feb95 | 8218 | else |
e6cc62c6 | 8219 | |
1e6feb95 VZ |
8220 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8221 | if test "x$LINE" != x ; then | |
8222 | eval "DEFAULT_$LINE" | |
8223 | else | |
8224 | no_cache=1 | |
8225 | fi | |
8226 | ||
8227 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8228 | |
e6cc62c6 | 8229 | fi; |
1e6feb95 VZ |
8230 | |
8231 | eval "$ac_cv_use_choicedlg" | |
8232 | if test "$no_cache" != 1; then | |
8233 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8234 | fi | |
8235 | ||
8236 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8237 | echo "$as_me:$LINENO: result: yes" >&5 |
8238 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8239 | else |
e6cc62c6 VS |
8240 | echo "$as_me:$LINENO: result: no" >&5 |
8241 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8242 | fi |
e6cc62c6 | 8243 | |
1e6feb95 | 8244 | |
5005acfe | 8245 | enablestring= |
e6cc62c6 VS |
8246 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8247 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8248 | no_cache=0 |
8249 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8250 | if test "${enable_coldlg+set}" = set; then | |
8251 | enableval="$enable_coldlg" | |
e6cc62c6 | 8252 | |
1e6feb95 VZ |
8253 | if test "$enableval" = yes; then |
8254 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8255 | else | |
8256 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8257 | fi | |
e6cc62c6 | 8258 | |
1e6feb95 | 8259 | else |
e6cc62c6 | 8260 | |
1e6feb95 VZ |
8261 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8262 | if test "x$LINE" != x ; then | |
8263 | eval "DEFAULT_$LINE" | |
8264 | else | |
8265 | no_cache=1 | |
8266 | fi | |
8267 | ||
8268 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8269 | |
e6cc62c6 | 8270 | fi; |
1e6feb95 VZ |
8271 | |
8272 | eval "$ac_cv_use_coldlg" | |
8273 | if test "$no_cache" != 1; then | |
8274 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8275 | fi | |
8276 | ||
8277 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8278 | echo "$as_me:$LINENO: result: yes" >&5 |
8279 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8280 | else |
e6cc62c6 VS |
8281 | echo "$as_me:$LINENO: result: no" >&5 |
8282 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8283 | fi |
e6cc62c6 | 8284 | |
1e6feb95 | 8285 | |
5005acfe | 8286 | enablestring= |
e6cc62c6 VS |
8287 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8288 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8289 | no_cache=0 |
8290 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8291 | if test "${enable_filedlg+set}" = set; then | |
8292 | enableval="$enable_filedlg" | |
e6cc62c6 | 8293 | |
1e6feb95 VZ |
8294 | if test "$enableval" = yes; then |
8295 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8296 | else | |
8297 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8298 | fi | |
e6cc62c6 | 8299 | |
1e6feb95 | 8300 | else |
e6cc62c6 | 8301 | |
1e6feb95 VZ |
8302 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8303 | if test "x$LINE" != x ; then | |
8304 | eval "DEFAULT_$LINE" | |
8305 | else | |
8306 | no_cache=1 | |
8307 | fi | |
8308 | ||
8309 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8310 | |
e6cc62c6 | 8311 | fi; |
1e6feb95 VZ |
8312 | |
8313 | eval "$ac_cv_use_filedlg" | |
8314 | if test "$no_cache" != 1; then | |
8315 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8316 | fi | |
8317 | ||
8318 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8319 | echo "$as_me:$LINENO: result: yes" >&5 |
8320 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8321 | else |
e6cc62c6 VS |
8322 | echo "$as_me:$LINENO: result: no" >&5 |
8323 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8324 | fi |
e6cc62c6 | 8325 | |
1e6feb95 | 8326 | |
5005acfe | 8327 | enablestring= |
e6cc62c6 VS |
8328 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8329 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8330 | no_cache=0 |
69d27ff7 MB |
8331 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8332 | if test "${enable_finddlg+set}" = set; then | |
8333 | enableval="$enable_finddlg" | |
e6cc62c6 | 8334 | |
8db37e06 | 8335 | if test "$enableval" = yes; then |
69d27ff7 | 8336 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8337 | else |
69d27ff7 | 8338 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8339 | fi |
e6cc62c6 | 8340 | |
8db37e06 | 8341 | else |
e6cc62c6 | 8342 | |
8db37e06 VZ |
8343 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8344 | if test "x$LINE" != x ; then | |
8345 | eval "DEFAULT_$LINE" | |
8346 | else | |
8347 | no_cache=1 | |
8348 | fi | |
8349 | ||
69d27ff7 | 8350 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8351 | |
e6cc62c6 | 8352 | fi; |
8db37e06 | 8353 | |
69d27ff7 | 8354 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8355 | if test "$no_cache" != 1; then |
69d27ff7 | 8356 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8357 | fi |
8358 | ||
8359 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8360 | echo "$as_me:$LINENO: result: yes" >&5 |
8361 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8362 | else |
e6cc62c6 VS |
8363 | echo "$as_me:$LINENO: result: no" >&5 |
8364 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8365 | fi |
e6cc62c6 | 8366 | |
8db37e06 | 8367 | |
5005acfe | 8368 | enablestring= |
e6cc62c6 VS |
8369 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8370 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8371 | no_cache=0 |
8372 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8373 | if test "${enable_fontdlg+set}" = set; then | |
8374 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8375 | |
1e6feb95 VZ |
8376 | if test "$enableval" = yes; then |
8377 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8378 | else | |
8379 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8380 | fi | |
e6cc62c6 | 8381 | |
1e6feb95 | 8382 | else |
e6cc62c6 | 8383 | |
1e6feb95 VZ |
8384 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8385 | if test "x$LINE" != x ; then | |
8386 | eval "DEFAULT_$LINE" | |
8387 | else | |
8388 | no_cache=1 | |
8389 | fi | |
8390 | ||
8391 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8392 | |
e6cc62c6 | 8393 | fi; |
1e6feb95 VZ |
8394 | |
8395 | eval "$ac_cv_use_fontdlg" | |
8396 | if test "$no_cache" != 1; then | |
8397 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8398 | fi | |
8399 | ||
8400 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8401 | echo "$as_me:$LINENO: result: yes" >&5 |
8402 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8403 | else |
e6cc62c6 VS |
8404 | echo "$as_me:$LINENO: result: no" >&5 |
8405 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8406 | fi |
e6cc62c6 | 8407 | |
1e6feb95 | 8408 | |
5005acfe | 8409 | enablestring= |
e6cc62c6 VS |
8410 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8411 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8412 | no_cache=0 |
8413 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8414 | if test "${enable_dirdlg+set}" = set; then | |
8415 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8416 | |
1e6feb95 VZ |
8417 | if test "$enableval" = yes; then |
8418 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8419 | else | |
8420 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8421 | fi | |
e6cc62c6 | 8422 | |
1e6feb95 | 8423 | else |
e6cc62c6 | 8424 | |
1e6feb95 VZ |
8425 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8426 | if test "x$LINE" != x ; then | |
8427 | eval "DEFAULT_$LINE" | |
8428 | else | |
8429 | no_cache=1 | |
8430 | fi | |
8431 | ||
8432 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8433 | |
e6cc62c6 | 8434 | fi; |
1e6feb95 VZ |
8435 | |
8436 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8437 | if test "$no_cache" != 1; then |
1e6feb95 | 8438 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8439 | fi |
8440 | ||
1e6feb95 | 8441 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8442 | echo "$as_me:$LINENO: result: yes" >&5 |
8443 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8444 | else |
e6cc62c6 VS |
8445 | echo "$as_me:$LINENO: result: no" >&5 |
8446 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8447 | fi |
e6cc62c6 | 8448 | |
698dcdb6 | 8449 | |
5005acfe | 8450 | enablestring= |
e6cc62c6 VS |
8451 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8452 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8453 | no_cache=0 |
1e6feb95 VZ |
8454 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8455 | if test "${enable_msgdlg+set}" = set; then | |
8456 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8457 | |
10f2d63a | 8458 | if test "$enableval" = yes; then |
1e6feb95 | 8459 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8460 | else |
1e6feb95 | 8461 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8462 | fi |
e6cc62c6 | 8463 | |
10f2d63a | 8464 | else |
e6cc62c6 | 8465 | |
1e6feb95 | 8466 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8467 | if test "x$LINE" != x ; then |
8468 | eval "DEFAULT_$LINE" | |
8469 | else | |
8470 | no_cache=1 | |
8471 | fi | |
8472 | ||
1e6feb95 | 8473 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8474 | |
e6cc62c6 | 8475 | fi; |
10f2d63a | 8476 | |
1e6feb95 | 8477 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8478 | if test "$no_cache" != 1; then |
1e6feb95 | 8479 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8480 | fi |
8481 | ||
1e6feb95 | 8482 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8483 | echo "$as_me:$LINENO: result: yes" >&5 |
8484 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8485 | else |
e6cc62c6 VS |
8486 | echo "$as_me:$LINENO: result: no" >&5 |
8487 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8488 | fi |
e6cc62c6 | 8489 | |
10f2d63a | 8490 | |
5005acfe | 8491 | enablestring= |
e6cc62c6 VS |
8492 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8493 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8494 | no_cache=0 |
1e6feb95 VZ |
8495 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8496 | if test "${enable_numberdlg+set}" = set; then | |
8497 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8498 | |
10f2d63a | 8499 | if test "$enableval" = yes; then |
1e6feb95 | 8500 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8501 | else |
1e6feb95 | 8502 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8503 | fi |
e6cc62c6 | 8504 | |
10f2d63a | 8505 | else |
e6cc62c6 | 8506 | |
1e6feb95 | 8507 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8508 | if test "x$LINE" != x ; then |
8509 | eval "DEFAULT_$LINE" | |
8510 | else | |
8511 | no_cache=1 | |
8512 | fi | |
8513 | ||
1e6feb95 | 8514 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8515 | |
e6cc62c6 | 8516 | fi; |
10f2d63a | 8517 | |
1e6feb95 | 8518 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8519 | if test "$no_cache" != 1; then |
1e6feb95 | 8520 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8521 | fi |
8522 | ||
1e6feb95 | 8523 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8524 | echo "$as_me:$LINENO: result: yes" >&5 |
8525 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8526 | else |
e6cc62c6 VS |
8527 | echo "$as_me:$LINENO: result: no" >&5 |
8528 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8529 | fi |
e6cc62c6 | 8530 | |
10f2d63a | 8531 | |
5005acfe | 8532 | enablestring= |
e6cc62c6 VS |
8533 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8534 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8535 | no_cache=0 |
8536 | # Check whether --enable-splash or --disable-splash was given. | |
8537 | if test "${enable_splash+set}" = set; then | |
8538 | enableval="$enable_splash" | |
e6cc62c6 | 8539 | |
cbca9943 VZ |
8540 | if test "$enableval" = yes; then |
8541 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8542 | else | |
8543 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8544 | fi | |
e6cc62c6 | 8545 | |
cbca9943 | 8546 | else |
e6cc62c6 | 8547 | |
cbca9943 VZ |
8548 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8549 | if test "x$LINE" != x ; then | |
8550 | eval "DEFAULT_$LINE" | |
8551 | else | |
8552 | no_cache=1 | |
8553 | fi | |
8554 | ||
8555 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8556 | |
e6cc62c6 | 8557 | fi; |
cbca9943 VZ |
8558 | |
8559 | eval "$ac_cv_use_splash" | |
8560 | if test "$no_cache" != 1; then | |
8561 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8562 | fi | |
8563 | ||
8564 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8565 | echo "$as_me:$LINENO: result: yes" >&5 |
8566 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8567 | else |
e6cc62c6 VS |
8568 | echo "$as_me:$LINENO: result: no" >&5 |
8569 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8570 | fi |
e6cc62c6 | 8571 | |
cbca9943 | 8572 | |
5005acfe | 8573 | enablestring= |
e6cc62c6 VS |
8574 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8575 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8576 | no_cache=0 |
8577 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8578 | if test "${enable_textdlg+set}" = set; then | |
8579 | enableval="$enable_textdlg" | |
e6cc62c6 | 8580 | |
10f2d63a VZ |
8581 | if test "$enableval" = yes; then |
8582 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8583 | else | |
8584 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8585 | fi | |
e6cc62c6 | 8586 | |
10f2d63a | 8587 | else |
e6cc62c6 | 8588 | |
10f2d63a VZ |
8589 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8590 | if test "x$LINE" != x ; then | |
8591 | eval "DEFAULT_$LINE" | |
8592 | else | |
8593 | no_cache=1 | |
8594 | fi | |
8595 | ||
8596 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8597 | |
e6cc62c6 | 8598 | fi; |
10f2d63a VZ |
8599 | |
8600 | eval "$ac_cv_use_textdlg" | |
8601 | if test "$no_cache" != 1; then | |
8602 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8603 | fi | |
8604 | ||
8605 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8606 | echo "$as_me:$LINENO: result: yes" >&5 |
8607 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8608 | else |
e6cc62c6 VS |
8609 | echo "$as_me:$LINENO: result: no" >&5 |
8610 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8611 | fi |
e6cc62c6 | 8612 | |
10f2d63a | 8613 | |
5005acfe | 8614 | enablestring= |
e6cc62c6 VS |
8615 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8616 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8617 | no_cache=0 |
8618 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8619 | if test "${enable_tipdlg+set}" = set; then | |
8620 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8621 | |
10f2d63a VZ |
8622 | if test "$enableval" = yes; then |
8623 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8624 | else | |
8625 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8626 | fi | |
e6cc62c6 | 8627 | |
10f2d63a | 8628 | else |
e6cc62c6 | 8629 | |
10f2d63a VZ |
8630 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8631 | if test "x$LINE" != x ; then | |
8632 | eval "DEFAULT_$LINE" | |
8633 | else | |
8634 | no_cache=1 | |
8635 | fi | |
8636 | ||
8637 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8638 | |
e6cc62c6 | 8639 | fi; |
10f2d63a VZ |
8640 | |
8641 | eval "$ac_cv_use_tipdlg" | |
8642 | if test "$no_cache" != 1; then | |
8643 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8644 | fi | |
8645 | ||
8646 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8647 | echo "$as_me:$LINENO: result: yes" >&5 |
8648 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8649 | else |
e6cc62c6 VS |
8650 | echo "$as_me:$LINENO: result: no" >&5 |
8651 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8652 | fi |
e6cc62c6 | 8653 | |
10f2d63a | 8654 | |
5005acfe | 8655 | enablestring= |
e6cc62c6 VS |
8656 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8657 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8658 | no_cache=0 |
8659 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8660 | if test "${enable_progressdlg+set}" = set; then | |
8661 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8662 | |
10f2d63a VZ |
8663 | if test "$enableval" = yes; then |
8664 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8665 | else | |
8666 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8667 | fi | |
e6cc62c6 | 8668 | |
10f2d63a | 8669 | else |
e6cc62c6 | 8670 | |
10f2d63a VZ |
8671 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8672 | if test "x$LINE" != x ; then | |
8673 | eval "DEFAULT_$LINE" | |
8674 | else | |
8675 | no_cache=1 | |
8676 | fi | |
8677 | ||
8678 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8679 | |
e6cc62c6 | 8680 | fi; |
10f2d63a VZ |
8681 | |
8682 | eval "$ac_cv_use_progressdlg" | |
8683 | if test "$no_cache" != 1; then | |
8684 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8685 | fi | |
8686 | ||
8687 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
8688 | echo "$as_me:$LINENO: result: yes" >&5 |
8689 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8690 | else |
e6cc62c6 VS |
8691 | echo "$as_me:$LINENO: result: no" >&5 |
8692 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8693 | fi |
e6cc62c6 | 8694 | |
10f2d63a | 8695 | |
5005acfe | 8696 | enablestring= |
e6cc62c6 VS |
8697 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
8698 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8699 | no_cache=0 |
8700 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8701 | if test "${enable_wizarddlg+set}" = set; then | |
8702 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 8703 | |
b1f5d087 VZ |
8704 | if test "$enableval" = yes; then |
8705 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8706 | else | |
8707 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8708 | fi | |
e6cc62c6 | 8709 | |
b1f5d087 | 8710 | else |
e6cc62c6 | 8711 | |
b1f5d087 VZ |
8712 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8713 | if test "x$LINE" != x ; then | |
8714 | eval "DEFAULT_$LINE" | |
8715 | else | |
8716 | no_cache=1 | |
8717 | fi | |
8718 | ||
8719 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8720 | |
e6cc62c6 | 8721 | fi; |
b1f5d087 VZ |
8722 | |
8723 | eval "$ac_cv_use_wizarddlg" | |
8724 | if test "$no_cache" != 1; then | |
8725 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8726 | fi | |
8727 | ||
8728 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
8729 | echo "$as_me:$LINENO: result: yes" >&5 |
8730 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8731 | else |
e6cc62c6 VS |
8732 | echo "$as_me:$LINENO: result: no" >&5 |
8733 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8734 | fi |
e6cc62c6 | 8735 | |
8284b0c5 MB |
8736 | |
8737 | ||
52127426 | 8738 | |
5005acfe | 8739 | enablestring= |
e6cc62c6 VS |
8740 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
8741 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8742 | no_cache=0 |
8743 | # Check whether --enable-menus or --disable-menus was given. | |
8744 | if test "${enable_menus+set}" = set; then | |
8745 | enableval="$enable_menus" | |
e6cc62c6 | 8746 | |
1e6feb95 VZ |
8747 | if test "$enableval" = yes; then |
8748 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8749 | else | |
8750 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8751 | fi | |
e6cc62c6 | 8752 | |
1e6feb95 | 8753 | else |
e6cc62c6 | 8754 | |
1e6feb95 VZ |
8755 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8756 | if test "x$LINE" != x ; then | |
8757 | eval "DEFAULT_$LINE" | |
8758 | else | |
8759 | no_cache=1 | |
8760 | fi | |
8761 | ||
8762 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 8763 | |
e6cc62c6 | 8764 | fi; |
1e6feb95 VZ |
8765 | |
8766 | eval "$ac_cv_use_menus" | |
8767 | if test "$no_cache" != 1; then | |
8768 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8769 | fi | |
8770 | ||
8771 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
8772 | echo "$as_me:$LINENO: result: yes" >&5 |
8773 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8774 | else |
e6cc62c6 VS |
8775 | echo "$as_me:$LINENO: result: no" >&5 |
8776 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8777 | fi |
e6cc62c6 | 8778 | |
1e6feb95 | 8779 | |
5005acfe | 8780 | enablestring= |
e6cc62c6 VS |
8781 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
8782 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
8783 | no_cache=0 |
8784 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8785 | if test "${enable_miniframe+set}" = set; then | |
8786 | enableval="$enable_miniframe" | |
e6cc62c6 | 8787 | |
10f2d63a VZ |
8788 | if test "$enableval" = yes; then |
8789 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8790 | else | |
8791 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8792 | fi | |
e6cc62c6 | 8793 | |
10f2d63a | 8794 | else |
e6cc62c6 | 8795 | |
10f2d63a VZ |
8796 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8797 | if test "x$LINE" != x ; then | |
8798 | eval "DEFAULT_$LINE" | |
8799 | else | |
8800 | no_cache=1 | |
8801 | fi | |
8802 | ||
8803 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 8804 | |
e6cc62c6 | 8805 | fi; |
10f2d63a VZ |
8806 | |
8807 | eval "$ac_cv_use_miniframe" | |
8808 | if test "$no_cache" != 1; then | |
8809 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8810 | fi | |
8811 | ||
8812 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
8813 | echo "$as_me:$LINENO: result: yes" >&5 |
8814 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8815 | else |
e6cc62c6 VS |
8816 | echo "$as_me:$LINENO: result: no" >&5 |
8817 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8818 | fi |
e6cc62c6 | 8819 | |
10f2d63a | 8820 | |
5005acfe | 8821 | enablestring= |
e6cc62c6 VS |
8822 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
8823 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
8824 | no_cache=0 |
8825 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8826 | if test "${enable_tooltips+set}" = set; then | |
8827 | enableval="$enable_tooltips" | |
e6cc62c6 | 8828 | |
10f2d63a VZ |
8829 | if test "$enableval" = yes; then |
8830 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8831 | else | |
8832 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8833 | fi | |
e6cc62c6 | 8834 | |
10f2d63a | 8835 | else |
e6cc62c6 | 8836 | |
10f2d63a VZ |
8837 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8838 | if test "x$LINE" != x ; then | |
8839 | eval "DEFAULT_$LINE" | |
8840 | else | |
8841 | no_cache=1 | |
8842 | fi | |
8843 | ||
8844 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 8845 | |
e6cc62c6 | 8846 | fi; |
10f2d63a VZ |
8847 | |
8848 | eval "$ac_cv_use_tooltips" | |
8849 | if test "$no_cache" != 1; then | |
8850 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
8851 | fi | |
8852 | ||
8853 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
8854 | echo "$as_me:$LINENO: result: yes" >&5 |
8855 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8856 | else |
e6cc62c6 VS |
8857 | echo "$as_me:$LINENO: result: no" >&5 |
8858 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8859 | fi |
e6cc62c6 | 8860 | |
10f2d63a | 8861 | |
5005acfe | 8862 | enablestring= |
e6cc62c6 VS |
8863 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
8864 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
8865 | no_cache=0 |
8866 | # Check whether --enable-splines or --disable-splines was given. | |
8867 | if test "${enable_splines+set}" = set; then | |
8868 | enableval="$enable_splines" | |
e6cc62c6 | 8869 | |
10f2d63a VZ |
8870 | if test "$enableval" = yes; then |
8871 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
8872 | else | |
8873 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
8874 | fi | |
e6cc62c6 | 8875 | |
10f2d63a | 8876 | else |
e6cc62c6 | 8877 | |
10f2d63a VZ |
8878 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
8879 | if test "x$LINE" != x ; then | |
8880 | eval "DEFAULT_$LINE" | |
8881 | else | |
8882 | no_cache=1 | |
8883 | fi | |
8884 | ||
8885 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 8886 | |
e6cc62c6 | 8887 | fi; |
10f2d63a VZ |
8888 | |
8889 | eval "$ac_cv_use_splines" | |
8890 | if test "$no_cache" != 1; then | |
8891 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
8892 | fi | |
8893 | ||
8894 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
8895 | echo "$as_me:$LINENO: result: yes" >&5 |
8896 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8897 | else |
e6cc62c6 VS |
8898 | echo "$as_me:$LINENO: result: no" >&5 |
8899 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8900 | fi |
e6cc62c6 | 8901 | |
10f2d63a | 8902 | |
5005acfe | 8903 | enablestring= |
e6cc62c6 VS |
8904 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
8905 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
8906 | no_cache=0 |
8907 | # Check whether --enable-validators or --disable-validators was given. | |
8908 | if test "${enable_validators+set}" = set; then | |
8909 | enableval="$enable_validators" | |
e6cc62c6 | 8910 | |
10f2d63a VZ |
8911 | if test "$enableval" = yes; then |
8912 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
8913 | else | |
8914 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
8915 | fi | |
e6cc62c6 | 8916 | |
10f2d63a | 8917 | else |
e6cc62c6 | 8918 | |
10f2d63a VZ |
8919 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
8920 | if test "x$LINE" != x ; then | |
8921 | eval "DEFAULT_$LINE" | |
8922 | else | |
8923 | no_cache=1 | |
8924 | fi | |
8925 | ||
8926 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 8927 | |
e6cc62c6 | 8928 | fi; |
10f2d63a VZ |
8929 | |
8930 | eval "$ac_cv_use_validators" | |
8931 | if test "$no_cache" != 1; then | |
8932 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
8933 | fi | |
8934 | ||
8935 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
8936 | echo "$as_me:$LINENO: result: yes" >&5 |
8937 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8938 | else |
e6cc62c6 VS |
8939 | echo "$as_me:$LINENO: result: no" >&5 |
8940 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8941 | fi |
e6cc62c6 | 8942 | |
10f2d63a | 8943 | |
5005acfe | 8944 | enablestring= |
e6cc62c6 VS |
8945 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
8946 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
8947 | no_cache=0 |
8948 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
8949 | if test "${enable_busyinfo+set}" = set; then | |
8950 | enableval="$enable_busyinfo" | |
e6cc62c6 | 8951 | |
10f2d63a VZ |
8952 | if test "$enableval" = yes; then |
8953 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
8954 | else | |
8955 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
8956 | fi | |
e6cc62c6 | 8957 | |
10f2d63a | 8958 | else |
e6cc62c6 | 8959 | |
10f2d63a VZ |
8960 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
8961 | if test "x$LINE" != x ; then | |
8962 | eval "DEFAULT_$LINE" | |
8963 | else | |
8964 | no_cache=1 | |
8965 | fi | |
8966 | ||
8967 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 8968 | |
e6cc62c6 | 8969 | fi; |
10f2d63a VZ |
8970 | |
8971 | eval "$ac_cv_use_busyinfo" | |
8972 | if test "$no_cache" != 1; then | |
8973 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
8974 | fi | |
8975 | ||
8976 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
8977 | echo "$as_me:$LINENO: result: yes" >&5 |
8978 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8979 | else |
e6cc62c6 VS |
8980 | echo "$as_me:$LINENO: result: no" >&5 |
8981 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8982 | fi |
e6cc62c6 | 8983 | |
10f2d63a | 8984 | |
5005acfe | 8985 | enablestring= |
e6cc62c6 VS |
8986 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
8987 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
8988 | no_cache=0 |
8989 | # Check whether --enable-joystick or --disable-joystick was given. | |
8990 | if test "${enable_joystick+set}" = set; then | |
8991 | enableval="$enable_joystick" | |
e6cc62c6 | 8992 | |
f6bcfd97 BP |
8993 | if test "$enableval" = yes; then |
8994 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
8995 | else | |
8996 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
8997 | fi | |
e6cc62c6 | 8998 | |
f6bcfd97 | 8999 | else |
e6cc62c6 | 9000 | |
f6bcfd97 BP |
9001 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
9002 | if test "x$LINE" != x ; then | |
9003 | eval "DEFAULT_$LINE" | |
9004 | else | |
9005 | no_cache=1 | |
9006 | fi | |
9007 | ||
9008 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 9009 | |
e6cc62c6 | 9010 | fi; |
f6bcfd97 BP |
9011 | |
9012 | eval "$ac_cv_use_joystick" | |
9013 | if test "$no_cache" != 1; then | |
9014 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9015 | fi | |
9016 | ||
9017 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
9018 | echo "$as_me:$LINENO: result: yes" >&5 |
9019 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 9020 | else |
e6cc62c6 VS |
9021 | echo "$as_me:$LINENO: result: no" >&5 |
9022 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 9023 | fi |
e6cc62c6 | 9024 | |
698dcdb6 | 9025 | |
5005acfe | 9026 | enablestring= |
e6cc62c6 VS |
9027 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
9028 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
9029 | no_cache=0 |
9030 | # Check whether --enable-metafile or --disable-metafile was given. | |
9031 | if test "${enable_metafile+set}" = set; then | |
9032 | enableval="$enable_metafile" | |
e6cc62c6 | 9033 | |
1e6feb95 VZ |
9034 | if test "$enableval" = yes; then |
9035 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9036 | else | |
9037 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9038 | fi | |
e6cc62c6 | 9039 | |
1e6feb95 | 9040 | else |
e6cc62c6 | 9041 | |
1e6feb95 VZ |
9042 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
9043 | if test "x$LINE" != x ; then | |
9044 | eval "DEFAULT_$LINE" | |
9045 | else | |
9046 | no_cache=1 | |
9047 | fi | |
9048 | ||
9049 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 9050 | |
e6cc62c6 | 9051 | fi; |
1e6feb95 VZ |
9052 | |
9053 | eval "$ac_cv_use_metafile" | |
9054 | if test "$no_cache" != 1; then | |
9055 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9056 | fi | |
9057 | ||
9058 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
9059 | echo "$as_me:$LINENO: result: yes" >&5 |
9060 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9061 | else |
e6cc62c6 VS |
9062 | echo "$as_me:$LINENO: result: no" >&5 |
9063 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9064 | fi |
e6cc62c6 | 9065 | |
1e6feb95 | 9066 | |
5005acfe | 9067 | enablestring= |
e6cc62c6 VS |
9068 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9069 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9070 | no_cache=0 |
9071 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9072 | if test "${enable_dragimage+set}" = set; then | |
9073 | enableval="$enable_dragimage" | |
e6cc62c6 | 9074 | |
24fd6d87 VZ |
9075 | if test "$enableval" = yes; then |
9076 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9077 | else | |
9078 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9079 | fi | |
e6cc62c6 | 9080 | |
24fd6d87 | 9081 | else |
e6cc62c6 | 9082 | |
24fd6d87 VZ |
9083 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9084 | if test "x$LINE" != x ; then | |
9085 | eval "DEFAULT_$LINE" | |
9086 | else | |
9087 | no_cache=1 | |
9088 | fi | |
9089 | ||
9090 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9091 | |
e6cc62c6 | 9092 | fi; |
24fd6d87 VZ |
9093 | |
9094 | eval "$ac_cv_use_dragimage" | |
9095 | if test "$no_cache" != 1; then | |
9096 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9097 | fi | |
9098 | ||
9099 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9100 | echo "$as_me:$LINENO: result: yes" >&5 |
9101 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9102 | else |
e6cc62c6 VS |
9103 | echo "$as_me:$LINENO: result: no" >&5 |
9104 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9105 | fi |
e6cc62c6 | 9106 | |
52127426 | 9107 | |
7bb2947d | 9108 | enablestring= |
e6cc62c6 VS |
9109 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9110 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9111 | no_cache=0 |
9112 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9113 | if test "${enable_accessibility+set}" = set; then | |
9114 | enableval="$enable_accessibility" | |
e6cc62c6 | 9115 | |
7bb2947d MB |
9116 | if test "$enableval" = yes; then |
9117 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9118 | else | |
9119 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9120 | fi | |
e6cc62c6 | 9121 | |
7bb2947d | 9122 | else |
e6cc62c6 | 9123 | |
7bb2947d MB |
9124 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9125 | if test "x$LINE" != x ; then | |
9126 | eval "DEFAULT_$LINE" | |
9127 | else | |
9128 | no_cache=1 | |
9129 | fi | |
9130 | ||
9131 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9132 | |
e6cc62c6 | 9133 | fi; |
7bb2947d MB |
9134 | |
9135 | eval "$ac_cv_use_accessibility" | |
9136 | if test "$no_cache" != 1; then | |
9137 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9138 | fi | |
9139 | ||
9140 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9141 | echo "$as_me:$LINENO: result: yes" >&5 |
9142 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9143 | else |
e6cc62c6 VS |
9144 | echo "$as_me:$LINENO: result: no" >&5 |
9145 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9146 | fi |
e6cc62c6 | 9147 | |
7bb2947d | 9148 | |
8284b0c5 MB |
9149 | |
9150 | ||
5005acfe | 9151 | enablestring= |
e6cc62c6 VS |
9152 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9153 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9154 | no_cache=0 |
9155 | # Check whether --enable-palette or --disable-palette was given. | |
9156 | if test "${enable_palette+set}" = set; then | |
9157 | enableval="$enable_palette" | |
e6cc62c6 | 9158 | |
edae8572 VZ |
9159 | if test "$enableval" = yes; then |
9160 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9161 | else | |
9162 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9163 | fi | |
e6cc62c6 | 9164 | |
edae8572 | 9165 | else |
e6cc62c6 | 9166 | |
edae8572 VZ |
9167 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9168 | if test "x$LINE" != x ; then | |
9169 | eval "DEFAULT_$LINE" | |
9170 | else | |
9171 | no_cache=1 | |
9172 | fi | |
9173 | ||
9174 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9175 | |
e6cc62c6 | 9176 | fi; |
edae8572 VZ |
9177 | |
9178 | eval "$ac_cv_use_palette" | |
9179 | if test "$no_cache" != 1; then | |
9180 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9181 | fi | |
9182 | ||
9183 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9184 | echo "$as_me:$LINENO: result: yes" >&5 |
9185 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9186 | else |
e6cc62c6 VS |
9187 | echo "$as_me:$LINENO: result: no" >&5 |
9188 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9189 | fi |
e6cc62c6 | 9190 | |
edae8572 | 9191 | |
5005acfe | 9192 | enablestring= |
e6cc62c6 VS |
9193 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9194 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9195 | no_cache=0 |
9196 | # Check whether --enable-image or --disable-image was given. | |
9197 | if test "${enable_image+set}" = set; then | |
9198 | enableval="$enable_image" | |
e6cc62c6 | 9199 | |
0046ff7c VS |
9200 | if test "$enableval" = yes; then |
9201 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9202 | else | |
9203 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9204 | fi | |
e6cc62c6 | 9205 | |
0046ff7c | 9206 | else |
e6cc62c6 | 9207 | |
0046ff7c VS |
9208 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9209 | if test "x$LINE" != x ; then | |
9210 | eval "DEFAULT_$LINE" | |
9211 | else | |
9212 | no_cache=1 | |
9213 | fi | |
9214 | ||
9215 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9216 | |
e6cc62c6 | 9217 | fi; |
0046ff7c VS |
9218 | |
9219 | eval "$ac_cv_use_image" | |
9220 | if test "$no_cache" != 1; then | |
9221 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9222 | fi | |
9223 | ||
9224 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9225 | echo "$as_me:$LINENO: result: yes" >&5 |
9226 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9227 | else |
e6cc62c6 VS |
9228 | echo "$as_me:$LINENO: result: no" >&5 |
9229 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9230 | fi |
e6cc62c6 | 9231 | |
0046ff7c | 9232 | |
5005acfe | 9233 | enablestring= |
e6cc62c6 VS |
9234 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9235 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9236 | no_cache=0 |
9237 | # Check whether --enable-gif or --disable-gif was given. | |
9238 | if test "${enable_gif+set}" = set; then | |
9239 | enableval="$enable_gif" | |
e6cc62c6 | 9240 | |
10f2d63a VZ |
9241 | if test "$enableval" = yes; then |
9242 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9243 | else | |
9244 | ac_cv_use_gif='wxUSE_GIF=no' | |
9245 | fi | |
e6cc62c6 | 9246 | |
10f2d63a | 9247 | else |
e6cc62c6 | 9248 | |
10f2d63a VZ |
9249 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9250 | if test "x$LINE" != x ; then | |
9251 | eval "DEFAULT_$LINE" | |
9252 | else | |
9253 | no_cache=1 | |
9254 | fi | |
9255 | ||
9256 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9257 | |
e6cc62c6 | 9258 | fi; |
10f2d63a VZ |
9259 | |
9260 | eval "$ac_cv_use_gif" | |
9261 | if test "$no_cache" != 1; then | |
9262 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9263 | fi | |
9264 | ||
9265 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9266 | echo "$as_me:$LINENO: result: yes" >&5 |
9267 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9268 | else |
e6cc62c6 VS |
9269 | echo "$as_me:$LINENO: result: no" >&5 |
9270 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9271 | fi |
e6cc62c6 | 9272 | |
10f2d63a | 9273 | |
5005acfe | 9274 | enablestring= |
e6cc62c6 VS |
9275 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9276 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9277 | no_cache=0 |
9278 | # Check whether --enable-pcx or --disable-pcx was given. | |
9279 | if test "${enable_pcx+set}" = set; then | |
9280 | enableval="$enable_pcx" | |
e6cc62c6 | 9281 | |
10f2d63a VZ |
9282 | if test "$enableval" = yes; then |
9283 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9284 | else | |
9285 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9286 | fi | |
e6cc62c6 | 9287 | |
10f2d63a | 9288 | else |
e6cc62c6 | 9289 | |
10f2d63a VZ |
9290 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9291 | if test "x$LINE" != x ; then | |
9292 | eval "DEFAULT_$LINE" | |
9293 | else | |
9294 | no_cache=1 | |
9295 | fi | |
9296 | ||
9297 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9298 | |
e6cc62c6 | 9299 | fi; |
10f2d63a VZ |
9300 | |
9301 | eval "$ac_cv_use_pcx" | |
9302 | if test "$no_cache" != 1; then | |
9303 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9304 | fi | |
9305 | ||
9306 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9307 | echo "$as_me:$LINENO: result: yes" >&5 |
9308 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9309 | else |
e6cc62c6 VS |
9310 | echo "$as_me:$LINENO: result: no" >&5 |
9311 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9312 | fi |
e6cc62c6 | 9313 | |
10f2d63a | 9314 | |
5005acfe | 9315 | enablestring= |
e6cc62c6 VS |
9316 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9317 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9318 | no_cache=0 |
9319 | # Check whether --enable-iff or --disable-iff was given. | |
9320 | if test "${enable_iff+set}" = set; then | |
9321 | enableval="$enable_iff" | |
e6cc62c6 | 9322 | |
4b6b4dfc RR |
9323 | if test "$enableval" = yes; then |
9324 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9325 | else | |
9326 | ac_cv_use_iff='wxUSE_IFF=no' | |
9327 | fi | |
e6cc62c6 | 9328 | |
4b6b4dfc | 9329 | else |
e6cc62c6 | 9330 | |
4b6b4dfc RR |
9331 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9332 | if test "x$LINE" != x ; then | |
9333 | eval "DEFAULT_$LINE" | |
9334 | else | |
9335 | no_cache=1 | |
9336 | fi | |
9337 | ||
9338 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9339 | |
e6cc62c6 | 9340 | fi; |
4b6b4dfc RR |
9341 | |
9342 | eval "$ac_cv_use_iff" | |
9343 | if test "$no_cache" != 1; then | |
9344 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9345 | fi | |
9346 | ||
9347 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9348 | echo "$as_me:$LINENO: result: yes" >&5 |
9349 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9350 | else |
e6cc62c6 VS |
9351 | echo "$as_me:$LINENO: result: no" >&5 |
9352 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9353 | fi |
e6cc62c6 | 9354 | |
4b6b4dfc | 9355 | |
5005acfe | 9356 | enablestring= |
e6cc62c6 VS |
9357 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9358 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9359 | no_cache=0 |
9360 | # Check whether --enable-pnm or --disable-pnm was given. | |
9361 | if test "${enable_pnm+set}" = set; then | |
9362 | enableval="$enable_pnm" | |
e6cc62c6 | 9363 | |
10f2d63a VZ |
9364 | if test "$enableval" = yes; then |
9365 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9366 | else | |
9367 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9368 | fi | |
e6cc62c6 | 9369 | |
10f2d63a | 9370 | else |
e6cc62c6 | 9371 | |
10f2d63a VZ |
9372 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9373 | if test "x$LINE" != x ; then | |
9374 | eval "DEFAULT_$LINE" | |
9375 | else | |
9376 | no_cache=1 | |
9377 | fi | |
9378 | ||
9379 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9380 | |
e6cc62c6 | 9381 | fi; |
10f2d63a VZ |
9382 | |
9383 | eval "$ac_cv_use_pnm" | |
9384 | if test "$no_cache" != 1; then | |
9385 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9386 | fi | |
9387 | ||
9388 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9389 | echo "$as_me:$LINENO: result: yes" >&5 |
9390 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9391 | else |
e6cc62c6 VS |
9392 | echo "$as_me:$LINENO: result: no" >&5 |
9393 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9394 | fi |
e6cc62c6 | 9395 | |
10f2d63a | 9396 | |
5005acfe | 9397 | enablestring= |
e6cc62c6 VS |
9398 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9399 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9400 | no_cache=0 |
69d27ff7 MB |
9401 | # Check whether --enable-xpm or --disable-xpm was given. |
9402 | if test "${enable_xpm+set}" = set; then | |
9403 | enableval="$enable_xpm" | |
e6cc62c6 | 9404 | |
0046ff7c | 9405 | if test "$enableval" = yes; then |
69d27ff7 | 9406 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9407 | else |
69d27ff7 | 9408 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9409 | fi |
e6cc62c6 | 9410 | |
0046ff7c | 9411 | else |
e6cc62c6 | 9412 | |
0046ff7c VS |
9413 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9414 | if test "x$LINE" != x ; then | |
9415 | eval "DEFAULT_$LINE" | |
9416 | else | |
9417 | no_cache=1 | |
9418 | fi | |
9419 | ||
69d27ff7 | 9420 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9421 | |
e6cc62c6 | 9422 | fi; |
0046ff7c | 9423 | |
69d27ff7 | 9424 | eval "$ac_cv_use_xpm" |
0046ff7c | 9425 | if test "$no_cache" != 1; then |
69d27ff7 | 9426 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9427 | fi |
9428 | ||
9429 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9430 | echo "$as_me:$LINENO: result: yes" >&5 |
9431 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9432 | else |
e6cc62c6 VS |
9433 | echo "$as_me:$LINENO: result: no" >&5 |
9434 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9435 | fi |
e6cc62c6 | 9436 | |
0046ff7c | 9437 | |
5005acfe | 9438 | enablestring= |
e6cc62c6 VS |
9439 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9440 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9441 | no_cache=0 |
c7206e64 VS |
9442 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9443 | if test "${enable_ico_cur+set}" = set; then | |
9444 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9445 | |
658974ae | 9446 | if test "$enableval" = yes; then |
c7206e64 | 9447 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9448 | else |
c7206e64 | 9449 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9450 | fi |
e6cc62c6 | 9451 | |
658974ae | 9452 | else |
e6cc62c6 | 9453 | |
658974ae VS |
9454 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9455 | if test "x$LINE" != x ; then | |
9456 | eval "DEFAULT_$LINE" | |
9457 | else | |
9458 | no_cache=1 | |
9459 | fi | |
9460 | ||
c7206e64 | 9461 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9462 | |
e6cc62c6 | 9463 | fi; |
658974ae | 9464 | |
c7206e64 | 9465 | eval "$ac_cv_use_ico_cur" |
658974ae | 9466 | if test "$no_cache" != 1; then |
c7206e64 | 9467 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9468 | fi |
9469 | ||
9470 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9471 | echo "$as_me:$LINENO: result: yes" >&5 |
9472 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9473 | else |
e6cc62c6 VS |
9474 | echo "$as_me:$LINENO: result: no" >&5 |
9475 | echo "${ECHO_T}no" >&6 | |
658974ae | 9476 | fi |
e6cc62c6 | 9477 | |
658974ae | 9478 | |
b12915c1 VZ |
9479 | fi |
9480 | ||
029b47ad VS |
9481 | |
9482 | ||
9483 | enablestring= | |
9484 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9485 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9486 | no_cache=0 | |
9487 | # Check whether --enable-official_build or --disable-official_build was given. | |
9488 | if test "${enable_official_build+set}" = set; then | |
9489 | enableval="$enable_official_build" | |
9490 | ||
9491 | if test "$enableval" = yes; then | |
9492 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9493 | else | |
9494 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9495 | fi | |
9496 | ||
9497 | else | |
9498 | ||
9499 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9500 | if test "x$LINE" != x ; then | |
9501 | eval "DEFAULT_$LINE" | |
9502 | else | |
9503 | no_cache=1 | |
9504 | fi | |
9505 | ||
9506 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9507 | ||
9508 | fi; | |
9509 | ||
9510 | eval "$ac_cv_use_official_build" | |
9511 | if test "$no_cache" != 1; then | |
9512 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9513 | fi | |
9514 | ||
9515 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9516 | echo "$as_me:$LINENO: result: yes" >&5 | |
9517 | echo "${ECHO_T}yes" >&6 | |
9518 | else | |
9519 | echo "$as_me:$LINENO: result: no" >&5 | |
9520 | echo "${ECHO_T}no" >&6 | |
9521 | fi | |
9522 | ||
9523 | # Check whether --enable-vendor or --disable-vendor was given. | |
9524 | if test "${enable_vendor+set}" = set; then | |
9525 | enableval="$enable_vendor" | |
9526 | VENDOR="$enableval" | |
9527 | fi; | |
9528 | if test "x$VENDOR" = "x"; then | |
9529 | VENDOR="custom" | |
9530 | fi | |
9531 | ||
d558c907 VS |
9532 | case "${host}" in |
9533 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 | 9534 | PATH_IFS=';' |
d558c907 VS |
9535 | ;; |
9536 | *) | |
9537 | PATH_IFS=':' | |
d558c907 VS |
9538 | ;; |
9539 | esac | |
9540 | ||
8284b0c5 MB |
9541 | |
9542 | ||
10f2d63a VZ |
9543 | echo "saving argument cache $wx_arg_cache_file" |
9544 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9545 | |
8284b0c5 | 9546 | |
e6cc62c6 VS |
9547 | |
9548 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9549 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9550 | |
9551 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9552 | if test "$wxUSE_WINE" = "yes"; then | |
9553 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9554 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9555 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9556 | fi | |
10f2d63a VZ |
9557 | |
9558 | if test "$wxUSE_GUI" = "yes"; then | |
9559 | ||
3a922bb4 | 9560 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9561 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9562 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9563 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9564 | fi |
b12915c1 | 9565 | |
3a922bb4 RL |
9566 | if test "$TOOLKIT_GIVEN" = 1; then |
9567 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9568 | var=wxUSE_$toolkit | |
9569 | eval "value=\$${var}" | |
9570 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9571 | done | |
10f2d63a | 9572 | else |
3a922bb4 RL |
9573 | for toolkit in `echo $ALL_TOOLKITS`; do |
9574 | if test "$has_toolkit_in_cache" != 1; then | |
9575 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9576 | else | |
9577 | var=DEFAULT_wxUSE_$toolkit | |
9578 | fi | |
9579 | eval "wxUSE_$toolkit=\$${var}" | |
9580 | done | |
10f2d63a | 9581 | fi |
10f2d63a | 9582 | |
ac0c4cc3 DE |
9583 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9584 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9585 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9586 | |
d558c907 | 9587 | case "${host}" in |
6fa882bd | 9588 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9589 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9590 | esac |
10f2d63a | 9591 | |
3a922bb4 RL |
9592 | case "$NUM_TOOLKITS" in |
9593 | 1) | |
9594 | ;; | |
9595 | 0) | |
e6cc62c6 VS |
9596 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9597 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9598 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9599 | ;; |
9600 | *) | |
e6cc62c6 VS |
9601 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9602 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9603 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9604 | esac |
10f2d63a | 9605 | |
3a922bb4 RL |
9606 | for toolkit in `echo $ALL_TOOLKITS`; do |
9607 | var=wxUSE_$toolkit | |
9608 | eval "value=\$${var}" | |
9609 | if test "x$value" != x; then | |
9610 | cache_var=CACHE_$toolkit | |
9611 | eval "cache=\$${cache_var}" | |
9612 | if test "$cache" = 1; then | |
9613 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9614 | fi | |
9615 | if test "$value" = 1; then | |
9616 | toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]` | |
e6cc62c6 VS |
9617 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9618 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9619 | fi |
9620 | fi | |
9621 | done | |
10f2d63a | 9622 | else |
9de9b8f0 VZ |
9623 | if test "x$host_alias" != "x"; then |
9624 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9625 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9626 | else |
9627 | echo "$as_me:$LINENO: result: base only" >&5 | |
9628 | echo "${ECHO_T}base only" >&6 | |
9629 | fi | |
10f2d63a VZ |
9630 | fi |
9631 | ||
43d99b6d VS |
9632 | wants_win32=0 |
9633 | doesnt_want_win32=0 | |
17234b26 MB |
9634 | case "${host}" in |
9635 | *-*-cygwin*) | |
9636 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9637 | wants_win32=1 |
9638 | else | |
9639 | doesnt_want_win32=1 | |
17234b26 MB |
9640 | fi |
9641 | ;; | |
9642 | *-*-mingw*) | |
43d99b6d | 9643 | wants_win32=1 |
17234b26 MB |
9644 | ;; |
9645 | esac | |
9646 | ||
89e6bf6d VZ |
9647 | if test "$wxUSE_WINE" = "yes"; then |
9648 | wants_win32=1 | |
9649 | CC=winegcc | |
9650 | CXX=wineg++ | |
9651 | RESCOMP=wrc | |
9652 | fi | |
9653 | ||
43d99b6d | 9654 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9655 | USE_UNIX=0 |
9656 | USE_WIN32=1 | |
e6cc62c6 | 9657 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9658 | #define __WIN32__ 1 |
e6cc62c6 | 9659 | _ACEOF |
17234b26 | 9660 | |
e6cc62c6 | 9661 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9662 | #define __WIN95__ 1 |
e6cc62c6 | 9663 | _ACEOF |
17234b26 | 9664 | |
e6cc62c6 | 9665 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9666 | #define __WINDOWS__ 1 |
e6cc62c6 | 9667 | _ACEOF |
17234b26 | 9668 | |
e6cc62c6 | 9669 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9670 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9671 | _ACEOF |
17234b26 | 9672 | |
e6cc62c6 | 9673 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9674 | #define STRICT 1 |
e6cc62c6 | 9675 | _ACEOF |
17234b26 | 9676 | |
e6cc62c6 | 9677 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9678 | #define WINVER 0x0400 |
e6cc62c6 | 9679 | _ACEOF |
17234b26 | 9680 | |
43d99b6d VS |
9681 | fi |
9682 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9683 | USE_UNIX=1 |
9684 | USE_WIN32=0 | |
9685 | fi | |
9686 | ||
9687 | if test "$USE_UNIX" = 1 ; then | |
9688 | wxUSE_UNIX=yes | |
e6cc62c6 | 9689 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9690 | #define __UNIX__ 1 |
e6cc62c6 | 9691 | _ACEOF |
17234b26 MB |
9692 | |
9693 | fi | |
9694 | ||
8284b0c5 | 9695 | |
e6cc62c6 | 9696 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9697 | # This file is a shell script that caches the results of configure |
9698 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
9699 | # scripts and configure runs, see configure's option --config-cache. |
9700 | # It is not useful on other systems. If it contains results you don't | |
9701 | # want to keep, you may remove or edit it. | |
10f2d63a | 9702 | # |
e6cc62c6 VS |
9703 | # config.status only pays attention to the cache file if you give it |
9704 | # the --recheck option to rerun configure. | |
10f2d63a | 9705 | # |
e6cc62c6 VS |
9706 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9707 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9708 | # following values. | |
9709 | ||
9710 | _ACEOF | |
9711 | ||
10f2d63a VZ |
9712 | # The following way of writing the cache mishandles newlines in values, |
9713 | # but we know of no workaround that is simple, portable, and efficient. | |
9714 | # So, don't put newlines in cache variables' values. | |
9715 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9716 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
9717 | { |
9718 | (set) 2>&1 | | |
9719 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9720 | *ac_space=\ *) | |
9721 | # `set' does not quote correctly, so add quotes (double-quote | |
9722 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9723 | sed -n \ | |
9724 | "s/'/'\\\\''/g; | |
9725 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9726 | ;; | |
9727 | *) | |
9728 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9729 | sed -n \ | |
9730 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9731 | ;; | |
9732 | esac; | |
9733 | } | | |
9734 | sed ' | |
9735 | t clear | |
9736 | : clear | |
9737 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9738 | t end | |
9739 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9740 | : end' >>confcache | |
9741 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 9742 | if test -w $cache_file; then |
e6cc62c6 VS |
9743 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9744 | cat confcache >$cache_file | |
10f2d63a VZ |
9745 | else |
9746 | echo "not updating unwritable cache $cache_file" | |
9747 | fi | |
9748 | fi | |
9749 | rm -f confcache | |
9750 | ||
e59890c3 | 9751 | if test "$build" != "$host" ; then |
9d353d4a | 9752 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9753 | CC=$host_alias-gcc |
9754 | CXX=$host_alias-c++ | |
9755 | AR=$host_alias-ar | |
9756 | RANLIB=$host_alias-ranlib | |
9757 | DLLTOOL=$host_alias-dlltool | |
9758 | RESCOMP=$host_alias-windres | |
9759 | LD=$host_alias-ld | |
9760 | NM=$host_alias-nm | |
9761 | STRIP=$host_alias-strip | |
9762 | else | |
e6cc62c6 VS |
9763 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
9764 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9765 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9766 | fi |
10f2d63a VZ |
9767 | fi |
9768 | ||
ec603395 | 9769 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
9770 | ac_ext=c |
9771 | ac_cpp='$CPP $CPPFLAGS' | |
9772 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9773 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9774 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9775 | if test -n "$ac_tool_prefix"; then | |
9776 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9777 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9778 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9779 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9780 | if test "${ac_cv_prog_CC+set}" = set; then | |
9781 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9782 | else | |
9783 | if test -n "$CC"; then | |
9784 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9785 | else | |
9786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9787 | for as_dir in $PATH | |
9788 | do | |
9789 | IFS=$as_save_IFS | |
9790 | test -z "$as_dir" && as_dir=. | |
9791 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9792 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9793 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9794 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9795 | break 2 | |
9796 | fi | |
9797 | done | |
9798 | done | |
9799 | ||
9800 | fi | |
9801 | fi | |
9802 | CC=$ac_cv_prog_CC | |
9803 | if test -n "$CC"; then | |
9804 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9805 | echo "${ECHO_T}$CC" >&6 | |
9806 | else | |
9807 | echo "$as_me:$LINENO: result: no" >&5 | |
9808 | echo "${ECHO_T}no" >&6 | |
9809 | fi | |
9810 | ||
9811 | fi | |
9812 | if test -z "$ac_cv_prog_CC"; then | |
9813 | ac_ct_CC=$CC | |
9814 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 9815 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
9816 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9817 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9818 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9820 | else | |
9821 | if test -n "$ac_ct_CC"; then | |
9822 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9823 | else | |
9824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9825 | for as_dir in $PATH | |
9826 | do | |
9827 | IFS=$as_save_IFS | |
9828 | test -z "$as_dir" && as_dir=. | |
9829 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9830 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9831 | ac_cv_prog_ac_ct_CC="gcc" | |
9832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9833 | break 2 | |
9834 | fi | |
9835 | done | |
9836 | done | |
9837 | ||
9838 | fi | |
9839 | fi | |
9840 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9841 | if test -n "$ac_ct_CC"; then | |
9842 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9843 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9844 | else | |
9845 | echo "$as_me:$LINENO: result: no" >&5 | |
9846 | echo "${ECHO_T}no" >&6 | |
9847 | fi | |
9848 | ||
9849 | CC=$ac_ct_CC | |
9850 | else | |
9851 | CC="$ac_cv_prog_CC" | |
9852 | fi | |
9853 | ||
9854 | if test -z "$CC"; then | |
9855 | if test -n "$ac_tool_prefix"; then | |
9856 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
9857 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
9858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9860 | if test "${ac_cv_prog_CC+set}" = set; then | |
9861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
9862 | else |
9863 | if test -n "$CC"; then | |
9864 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 9865 | else |
e6cc62c6 VS |
9866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9867 | for as_dir in $PATH | |
9868 | do | |
9869 | IFS=$as_save_IFS | |
9870 | test -z "$as_dir" && as_dir=. | |
9871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9872 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9873 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
9874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9875 | break 2 | |
9876 | fi | |
9877 | done | |
9878 | done | |
9879 | ||
10f2d63a | 9880 | fi |
6232543b | 9881 | fi |
e6cc62c6 | 9882 | CC=$ac_cv_prog_CC |
6232543b | 9883 | if test -n "$CC"; then |
e6cc62c6 VS |
9884 | echo "$as_me:$LINENO: result: $CC" >&5 |
9885 | echo "${ECHO_T}$CC" >&6 | |
9886 | else | |
9887 | echo "$as_me:$LINENO: result: no" >&5 | |
9888 | echo "${ECHO_T}no" >&6 | |
9889 | fi | |
9890 | ||
9891 | fi | |
9892 | if test -z "$ac_cv_prog_CC"; then | |
9893 | ac_ct_CC=$CC | |
9894 | # Extract the first word of "cc", so it can be a program name with args. | |
9895 | set dummy cc; ac_word=$2 | |
9896 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9898 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9900 | else | |
9901 | if test -n "$ac_ct_CC"; then | |
9902 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9903 | else | |
9904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9905 | for as_dir in $PATH | |
9906 | do | |
9907 | IFS=$as_save_IFS | |
9908 | test -z "$as_dir" && as_dir=. | |
9909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9910 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9911 | ac_cv_prog_ac_ct_CC="cc" | |
9912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9913 | break 2 | |
9914 | fi | |
9915 | done | |
9916 | done | |
9917 | ||
9918 | fi | |
9919 | fi | |
9920 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9921 | if test -n "$ac_ct_CC"; then | |
9922 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9923 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9924 | else | |
9925 | echo "$as_me:$LINENO: result: no" >&5 | |
9926 | echo "${ECHO_T}no" >&6 | |
9927 | fi | |
9928 | ||
9929 | CC=$ac_ct_CC | |
247f5006 | 9930 | else |
e6cc62c6 | 9931 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
9932 | fi |
9933 | ||
e6cc62c6 | 9934 | fi |
5c6fa7d2 RR |
9935 | if test -z "$CC"; then |
9936 | # Extract the first word of "cc", so it can be a program name with args. | |
9937 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
9938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9940 | if test "${ac_cv_prog_CC+set}" = set; then | |
9941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
9942 | else |
9943 | if test -n "$CC"; then | |
9944 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9945 | else | |
9946 | ac_prog_rejected=no | |
e6cc62c6 VS |
9947 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
9948 | for as_dir in $PATH | |
9949 | do | |
9950 | IFS=$as_save_IFS | |
9951 | test -z "$as_dir" && as_dir=. | |
9952 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9953 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9954 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
9955 | ac_prog_rejected=yes | |
9956 | continue | |
9957 | fi | |
9958 | ac_cv_prog_CC="cc" | |
9959 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9960 | break 2 | |
9961 | fi | |
9962 | done | |
9963 | done | |
9964 | ||
328a083c RR |
9965 | if test $ac_prog_rejected = yes; then |
9966 | # We found a bogon in the path, so make sure we never use it. | |
9967 | set dummy $ac_cv_prog_CC | |
9968 | shift | |
e6cc62c6 | 9969 | if test $# != 0; then |
328a083c | 9970 | # We chose a different compiler from the bogus one. |
1e487827 VS |
9971 | # However, it has the same basename, so the bogon will be chosen |
9972 | # first if we set CC to just the basename; use the full file name. | |
9973 | shift | |
e6cc62c6 | 9974 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 9975 | fi |
1e487827 VS |
9976 | fi |
9977 | fi | |
9978 | fi | |
e6cc62c6 | 9979 | CC=$ac_cv_prog_CC |
1e487827 | 9980 | if test -n "$CC"; then |
e6cc62c6 VS |
9981 | echo "$as_me:$LINENO: result: $CC" >&5 |
9982 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 9983 | else |
e6cc62c6 VS |
9984 | echo "$as_me:$LINENO: result: no" >&5 |
9985 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 9986 | fi |
1e487827 | 9987 | |
e6cc62c6 VS |
9988 | fi |
9989 | if test -z "$CC"; then | |
9990 | if test -n "$ac_tool_prefix"; then | |
9991 | for ac_prog in cl | |
9992 | do | |
9993 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
9994 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
9995 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9996 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9997 | if test "${ac_cv_prog_CC+set}" = set; then | |
9998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
9999 | else |
10000 | if test -n "$CC"; then | |
10001 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10002 | else | |
e6cc62c6 VS |
10003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10004 | for as_dir in $PATH | |
10005 | do | |
10006 | IFS=$as_save_IFS | |
10007 | test -z "$as_dir" && as_dir=. | |
10008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10009 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10010 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10011 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10012 | break 2 | |
10013 | fi | |
10014 | done | |
10015 | done | |
10016 | ||
f09359cf VS |
10017 | fi |
10018 | fi | |
e6cc62c6 | 10019 | CC=$ac_cv_prog_CC |
f09359cf | 10020 | if test -n "$CC"; then |
e6cc62c6 VS |
10021 | echo "$as_me:$LINENO: result: $CC" >&5 |
10022 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 10023 | else |
e6cc62c6 VS |
10024 | echo "$as_me:$LINENO: result: no" >&5 |
10025 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 10026 | fi |
1e487827 | 10027 | |
e6cc62c6 VS |
10028 | test -n "$CC" && break |
10029 | done | |
10030 | fi | |
10031 | if test -z "$CC"; then | |
10032 | ac_ct_CC=$CC | |
10033 | for ac_prog in cl | |
10034 | do | |
10035 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10036 | set dummy $ac_prog; ac_word=$2 | |
10037 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10038 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10039 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10041 | else | |
10042 | if test -n "$ac_ct_CC"; then | |
10043 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10044 | else | |
10045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10046 | for as_dir in $PATH | |
10047 | do | |
10048 | IFS=$as_save_IFS | |
10049 | test -z "$as_dir" && as_dir=. | |
10050 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10051 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10052 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10053 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10054 | break 2 | |
10055 | fi | |
10056 | done | |
10057 | done | |
f09359cf | 10058 | |
e6cc62c6 VS |
10059 | fi |
10060 | fi | |
10061 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10062 | if test -n "$ac_ct_CC"; then | |
10063 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10064 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10065 | else | |
10066 | echo "$as_me:$LINENO: result: no" >&5 | |
10067 | echo "${ECHO_T}no" >&6 | |
10068 | fi | |
f09359cf | 10069 | |
e6cc62c6 VS |
10070 | test -n "$ac_ct_CC" && break |
10071 | done | |
247f5006 | 10072 | |
e6cc62c6 VS |
10073 | CC=$ac_ct_CC |
10074 | fi | |
10075 | ||
10076 | fi | |
10077 | ||
10078 | ||
10079 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10080 | See \`config.log' for more details." >&5 | |
10081 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10082 | See \`config.log' for more details." >&2;} | |
10083 | { (exit 1); exit 1; }; } | |
10084 | ||
10085 | # Provide some information about the compiler. | |
10086 | echo "$as_me:$LINENO:" \ | |
10087 | "checking for C compiler version" >&5 | |
10088 | ac_compiler=`set X $ac_compile; echo $2` | |
10089 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10090 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10091 | ac_status=$? | |
10092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10093 | (exit $ac_status); } | |
10094 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10095 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10096 | ac_status=$? | |
10097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10098 | (exit $ac_status); } | |
10099 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10100 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10101 | ac_status=$? | |
10102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10103 | (exit $ac_status); } | |
10104 | ||
10105 | cat >conftest.$ac_ext <<_ACEOF | |
10106 | #line $LINENO "configure" | |
10107 | /* confdefs.h. */ | |
10108 | _ACEOF | |
10109 | cat confdefs.h >>conftest.$ac_ext | |
10110 | cat >>conftest.$ac_ext <<_ACEOF | |
10111 | /* end confdefs.h. */ | |
10112 | ||
10113 | int | |
10114 | main () | |
10115 | { | |
247f5006 | 10116 | |
e6cc62c6 VS |
10117 | ; |
10118 | return 0; | |
10119 | } | |
10120 | _ACEOF | |
10121 | ac_clean_files_save=$ac_clean_files | |
10122 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10123 | # Try to create an executable without -o first, disregard a.out. | |
10124 | # It will help us diagnose broken compilers, and finding out an intuition | |
10125 | # of exeext. | |
10126 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 | |
10127 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
10128 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
10129 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10130 | (eval $ac_link_default) 2>&5 | |
10131 | ac_status=$? | |
10132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10133 | (exit $ac_status); }; then | |
10134 | # Find the output, starting from the most likely. This scheme is | |
10135 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10136 | # resort. | |
10137 | ||
10138 | # Be careful to initialize this variable, since it used to be cached. | |
10139 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10140 | ac_cv_exeext= | |
10141 | # b.out is created by i960 compilers. | |
10142 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10143 | do | |
10144 | test -f "$ac_file" || continue | |
10145 | case $ac_file in | |
10146 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
10147 | ;; | |
10148 | conftest.$ac_ext ) | |
10149 | # This is the source file. | |
10150 | ;; | |
10151 | [ab].out ) | |
10152 | # We found the default executable, but exeext='' is most | |
10153 | # certainly right. | |
10154 | break;; | |
10155 | *.* ) | |
10156 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10157 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10158 | # but it would be cool to find out if it's true. Does anybody | |
10159 | # maintain Libtool? --akim. | |
10160 | export ac_cv_exeext | |
10161 | break;; | |
10162 | * ) | |
10163 | break;; | |
10164 | esac | |
10165 | done | |
10166 | else | |
10167 | echo "$as_me: failed program was:" >&5 | |
10168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10169 | ||
10170 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10171 | See \`config.log' for more details." >&5 | |
10172 | echo "$as_me: error: C compiler cannot create executables | |
10173 | See \`config.log' for more details." >&2;} | |
10174 | { (exit 77); exit 77; }; } | |
10175 | fi | |
10176 | ||
10177 | ac_exeext=$ac_cv_exeext | |
10178 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10179 | echo "${ECHO_T}$ac_file" >&6 | |
10180 | ||
10181 | # Check the compiler produces executables we can run. If not, either | |
10182 | # the compiler is broken, or we cross compile. | |
10183 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10184 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10185 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10186 | # If not cross compiling, check that we can run a simple program. | |
10187 | if test "$cross_compiling" != yes; then | |
10188 | if { ac_try='./$ac_file' | |
10189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10190 | (eval $ac_try) 2>&5 | |
10191 | ac_status=$? | |
10192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10193 | (exit $ac_status); }; }; then | |
10194 | cross_compiling=no | |
698dcdb6 | 10195 | else |
e6cc62c6 VS |
10196 | if test "$cross_compiling" = maybe; then |
10197 | cross_compiling=yes | |
10198 | else | |
10199 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10200 | If you meant to cross compile, use \`--host'. | |
10201 | See \`config.log' for more details." >&5 | |
10202 | echo "$as_me: error: cannot run C compiled programs. | |
10203 | If you meant to cross compile, use \`--host'. | |
10204 | See \`config.log' for more details." >&2;} | |
10205 | { (exit 1); exit 1; }; } | |
10206 | fi | |
698dcdb6 | 10207 | fi |
52127426 | 10208 | fi |
e6cc62c6 VS |
10209 | echo "$as_me:$LINENO: result: yes" >&5 |
10210 | echo "${ECHO_T}yes" >&6 | |
10211 | ||
10212 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10213 | ac_clean_files=$ac_clean_files_save | |
10214 | # Check the compiler produces executables we can run. If not, either | |
10215 | # the compiler is broken, or we cross compile. | |
10216 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10217 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10218 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10219 | echo "${ECHO_T}$cross_compiling" >&6 | |
10220 | ||
10221 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10222 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10223 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10224 | (eval $ac_link) 2>&5 | |
10225 | ac_status=$? | |
10226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10227 | (exit $ac_status); }; then | |
10228 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10229 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10230 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10231 | # `rm'. | |
10232 | for ac_file in conftest.exe conftest conftest.*; do | |
10233 | test -f "$ac_file" || continue | |
10234 | case $ac_file in | |
10235 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10236 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
10237 | export ac_cv_exeext | |
10238 | break;; | |
10239 | * ) break;; | |
10240 | esac | |
10241 | done | |
5c6fa7d2 | 10242 | else |
e6cc62c6 VS |
10243 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10244 | See \`config.log' for more details." >&5 | |
10245 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10246 | See \`config.log' for more details." >&2;} | |
10247 | { (exit 1); exit 1; }; } | |
10248 | fi | |
10249 | ||
10250 | rm -f conftest$ac_cv_exeext | |
10251 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10252 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10253 | ||
10254 | rm -f conftest.$ac_ext | |
10255 | EXEEXT=$ac_cv_exeext | |
10256 | ac_exeext=$EXEEXT | |
10257 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10258 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10259 | if test "${ac_cv_objext+set}" = set; then | |
10260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10261 | else | |
10262 | cat >conftest.$ac_ext <<_ACEOF | |
10263 | #line $LINENO "configure" | |
10264 | /* confdefs.h. */ | |
10265 | _ACEOF | |
10266 | cat confdefs.h >>conftest.$ac_ext | |
10267 | cat >>conftest.$ac_ext <<_ACEOF | |
10268 | /* end confdefs.h. */ | |
10269 | ||
10270 | int | |
10271 | main () | |
10272 | { | |
f09359cf | 10273 | |
e6cc62c6 VS |
10274 | ; |
10275 | return 0; | |
10276 | } | |
10277 | _ACEOF | |
10278 | rm -f conftest.o conftest.obj | |
10279 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10280 | (eval $ac_compile) 2>&5 | |
10281 | ac_status=$? | |
10282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10283 | (exit $ac_status); }; then | |
10284 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10285 | case $ac_file in | |
10286 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10287 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10288 | break;; | |
10289 | esac | |
10290 | done | |
a0b9e27f | 10291 | else |
e6cc62c6 VS |
10292 | echo "$as_me: failed program was:" >&5 |
10293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10294 | ||
10295 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10296 | See \`config.log' for more details." >&5 | |
10297 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10298 | See \`config.log' for more details." >&2;} | |
10299 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10300 | fi |
247f5006 | 10301 | |
e6cc62c6 VS |
10302 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10303 | fi | |
10304 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10305 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10306 | OBJEXT=$ac_cv_objext | |
10307 | ac_objext=$OBJEXT | |
10308 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10309 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10310 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10312 | else |
e6cc62c6 VS |
10313 | cat >conftest.$ac_ext <<_ACEOF |
10314 | #line $LINENO "configure" | |
10315 | /* confdefs.h. */ | |
10316 | _ACEOF | |
10317 | cat confdefs.h >>conftest.$ac_ext | |
10318 | cat >>conftest.$ac_ext <<_ACEOF | |
10319 | /* end confdefs.h. */ | |
10320 | ||
10321 | int | |
10322 | main () | |
10323 | { | |
10324 | #ifndef __GNUC__ | |
10325 | choke me | |
10326 | #endif | |
10327 | ||
10328 | ; | |
10329 | return 0; | |
10330 | } | |
10331 | _ACEOF | |
10332 | rm -f conftest.$ac_objext | |
10333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10334 | (eval $ac_compile) 2>&5 | |
10335 | ac_status=$? | |
10336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10337 | (exit $ac_status); } && | |
10338 | { ac_try='test -s conftest.$ac_objext' | |
10339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10340 | (eval $ac_try) 2>&5 | |
10341 | ac_status=$? | |
10342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10343 | (exit $ac_status); }; }; then | |
10344 | ac_compiler_gnu=yes | |
10345 | else | |
10346 | echo "$as_me: failed program was:" >&5 | |
10347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10348 | ||
10349 | ac_compiler_gnu=no | |
10350 | fi | |
10351 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10352 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
10353 | ||
10354 | fi | |
10355 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10356 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10357 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10358 | ac_test_CFLAGS=${CFLAGS+set} | |
10359 | ac_save_CFLAGS=$CFLAGS | |
10360 | CFLAGS="-g" | |
10361 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10362 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10363 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10364 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10365 | else | |
10366 | cat >conftest.$ac_ext <<_ACEOF | |
10367 | #line $LINENO "configure" | |
10368 | /* confdefs.h. */ | |
10369 | _ACEOF | |
10370 | cat confdefs.h >>conftest.$ac_ext | |
10371 | cat >>conftest.$ac_ext <<_ACEOF | |
10372 | /* end confdefs.h. */ | |
10373 | ||
10374 | int | |
10375 | main () | |
10376 | { | |
10377 | ||
10378 | ; | |
10379 | return 0; | |
10380 | } | |
10381 | _ACEOF | |
10382 | rm -f conftest.$ac_objext | |
10383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10384 | (eval $ac_compile) 2>&5 | |
10385 | ac_status=$? | |
10386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10387 | (exit $ac_status); } && | |
10388 | { ac_try='test -s conftest.$ac_objext' | |
10389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10390 | (eval $ac_try) 2>&5 | |
10391 | ac_status=$? | |
10392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10393 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10394 | ac_cv_prog_cc_g=yes |
10395 | else | |
e6cc62c6 VS |
10396 | echo "$as_me: failed program was:" >&5 |
10397 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10398 | |
e6cc62c6 | 10399 | ac_cv_prog_cc_g=no |
10f2d63a | 10400 | fi |
e6cc62c6 VS |
10401 | rm -f conftest.$ac_objext conftest.$ac_ext |
10402 | fi | |
10403 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10404 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10405 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10406 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10407 | elif test $ac_cv_prog_cc_g = yes; then |
10408 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10409 | CFLAGS="-g -O2" |
10410 | else | |
f09359cf | 10411 | CFLAGS="-g" |
10f2d63a | 10412 | fi |
5c0a20c3 | 10413 | else |
f09359cf VS |
10414 | if test "$GCC" = yes; then |
10415 | CFLAGS="-O2" | |
10416 | else | |
10417 | CFLAGS= | |
10418 | fi | |
10f2d63a | 10419 | fi |
e6cc62c6 VS |
10420 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10421 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10422 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10423 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10424 | else | |
10425 | ac_cv_prog_cc_stdc=no | |
10426 | ac_save_CC=$CC | |
10427 | cat >conftest.$ac_ext <<_ACEOF | |
10428 | #line $LINENO "configure" | |
10429 | /* confdefs.h. */ | |
10430 | _ACEOF | |
10431 | cat confdefs.h >>conftest.$ac_ext | |
10432 | cat >>conftest.$ac_ext <<_ACEOF | |
10433 | /* end confdefs.h. */ | |
10434 | #include <stdarg.h> | |
10435 | #include <stdio.h> | |
10436 | #include <sys/types.h> | |
10437 | #include <sys/stat.h> | |
10438 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10439 | struct buf { int x; }; | |
10440 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10441 | static char *e (p, i) | |
10442 | char **p; | |
10443 | int i; | |
10444 | { | |
10445 | return p[i]; | |
10446 | } | |
10447 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10448 | { | |
10449 | char *s; | |
10450 | va_list v; | |
10451 | va_start (v,p); | |
10452 | s = g (p, va_arg (v,int)); | |
10453 | va_end (v); | |
10454 | return s; | |
10455 | } | |
10456 | int test (int i, double x); | |
10457 | struct s1 {int (*f) (int a);}; | |
10458 | struct s2 {int (*f) (double a);}; | |
10459 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10460 | int argc; | |
10461 | char **argv; | |
10462 | int | |
10463 | main () | |
10464 | { | |
10465 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10466 | ; | |
10467 | return 0; | |
10468 | } | |
10469 | _ACEOF | |
10470 | # Don't try gcc -ansi; that turns off useful extensions and | |
10471 | # breaks some systems' header files. | |
10472 | # AIX -qlanglvl=ansi | |
10473 | # Ultrix and OSF/1 -std1 | |
10474 | # HP-UX 10.20 and later -Ae | |
10475 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10476 | # SVR4 -Xc -D__EXTENSIONS__ | |
10477 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10478 | do | |
10479 | CC="$ac_save_CC $ac_arg" | |
10480 | rm -f conftest.$ac_objext | |
10481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10482 | (eval $ac_compile) 2>&5 | |
10483 | ac_status=$? | |
10484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10485 | (exit $ac_status); } && | |
10486 | { ac_try='test -s conftest.$ac_objext' | |
10487 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10488 | (eval $ac_try) 2>&5 | |
10489 | ac_status=$? | |
10490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10491 | (exit $ac_status); }; }; then | |
10492 | ac_cv_prog_cc_stdc=$ac_arg | |
10493 | break | |
10494 | else | |
10495 | echo "$as_me: failed program was:" >&5 | |
10496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10497 | ||
10498 | fi | |
10499 | rm -f conftest.$ac_objext | |
10500 | done | |
10501 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10502 | CC=$ac_save_CC | |
10503 | ||
10504 | fi | |
10505 | ||
10506 | case "x$ac_cv_prog_cc_stdc" in | |
10507 | x|xno) | |
10508 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10509 | echo "${ECHO_T}none needed" >&6 ;; | |
10510 | *) | |
10511 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10512 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10513 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10514 | esac | |
10515 | ||
10516 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10517 | # in C++ we need to declare it. In case someone uses the same compiler | |
10518 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10519 | # the declaration of exit, since it's the most demanding environment. | |
10520 | cat >conftest.$ac_ext <<_ACEOF | |
10521 | #ifndef __cplusplus | |
10522 | choke me | |
10523 | #endif | |
10524 | _ACEOF | |
10525 | rm -f conftest.$ac_objext | |
10526 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10527 | (eval $ac_compile) 2>&5 | |
10528 | ac_status=$? | |
10529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10530 | (exit $ac_status); } && | |
10531 | { ac_try='test -s conftest.$ac_objext' | |
10532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10533 | (eval $ac_try) 2>&5 | |
10534 | ac_status=$? | |
10535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10536 | (exit $ac_status); }; }; then | |
10537 | for ac_declaration in \ | |
0bdb08e7 VS |
10538 | ''\ |
10539 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
10540 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10541 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10542 | 'extern "C" void exit (int) throw ();' \ | |
10543 | 'extern "C" void exit (int);' \ | |
10544 | 'void exit (int);' | |
10545 | do | |
10546 | cat >conftest.$ac_ext <<_ACEOF | |
10547 | #line $LINENO "configure" | |
10548 | /* confdefs.h. */ | |
10549 | _ACEOF | |
10550 | cat confdefs.h >>conftest.$ac_ext | |
10551 | cat >>conftest.$ac_ext <<_ACEOF | |
10552 | /* end confdefs.h. */ | |
0e012a93 | 10553 | #include <stdlib.h> |
0bdb08e7 | 10554 | $ac_declaration |
e6cc62c6 VS |
10555 | int |
10556 | main () | |
10557 | { | |
10558 | exit (42); | |
10559 | ; | |
10560 | return 0; | |
10561 | } | |
10562 | _ACEOF | |
10563 | rm -f conftest.$ac_objext | |
10564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10565 | (eval $ac_compile) 2>&5 | |
10566 | ac_status=$? | |
10567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10568 | (exit $ac_status); } && | |
10569 | { ac_try='test -s conftest.$ac_objext' | |
10570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10571 | (eval $ac_try) 2>&5 | |
10572 | ac_status=$? | |
10573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10574 | (exit $ac_status); }; }; then | |
10575 | : | |
10576 | else | |
10577 | echo "$as_me: failed program was:" >&5 | |
10578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10579 | ||
10580 | continue | |
10581 | fi | |
10582 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10583 | cat >conftest.$ac_ext <<_ACEOF | |
10584 | #line $LINENO "configure" | |
10585 | /* confdefs.h. */ | |
10586 | _ACEOF | |
10587 | cat confdefs.h >>conftest.$ac_ext | |
10588 | cat >>conftest.$ac_ext <<_ACEOF | |
10589 | /* end confdefs.h. */ | |
10590 | $ac_declaration | |
10591 | int | |
10592 | main () | |
10593 | { | |
10594 | exit (42); | |
10595 | ; | |
10596 | return 0; | |
10597 | } | |
10598 | _ACEOF | |
10599 | rm -f conftest.$ac_objext | |
10600 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10601 | (eval $ac_compile) 2>&5 | |
10602 | ac_status=$? | |
10603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10604 | (exit $ac_status); } && | |
10605 | { ac_try='test -s conftest.$ac_objext' | |
10606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10607 | (eval $ac_try) 2>&5 | |
10608 | ac_status=$? | |
10609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10610 | (exit $ac_status); }; }; then | |
10611 | break | |
10612 | else | |
10613 | echo "$as_me: failed program was:" >&5 | |
10614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10615 | ||
10616 | fi | |
10617 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10618 | done | |
10619 | rm -f conftest* | |
10620 | if test -n "$ac_declaration"; then | |
10621 | echo '#ifdef __cplusplus' >>confdefs.h | |
10622 | echo $ac_declaration >>confdefs.h | |
10623 | echo '#endif' >>confdefs.h | |
10624 | fi | |
10625 | ||
10626 | else | |
10627 | echo "$as_me: failed program was:" >&5 | |
10628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10629 | ||
10630 | fi | |
10631 | rm -f conftest.$ac_objext conftest.$ac_ext | |
10632 | ac_ext=c | |
10633 | ac_cpp='$CPP $CPPFLAGS' | |
10634 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10635 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10636 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
10637 | |
10638 | ||
e6cc62c6 VS |
10639 | |
10640 | ac_ext=c | |
10641 | ac_cpp='$CPP $CPPFLAGS' | |
10642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10645 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10646 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
10647 | # On Suns, sometimes $CPP names a directory. |
10648 | if test -n "$CPP" && test -d "$CPP"; then | |
10649 | CPP= | |
10650 | fi | |
10651 | if test -z "$CPP"; then | |
e6cc62c6 VS |
10652 | if test "${ac_cv_prog_CPP+set}" = set; then |
10653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10654 | else | |
10655 | # Double quotes because CPP needs to be expanded | |
10656 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10657 | do | |
10658 | ac_preproc_ok=false | |
10659 | for ac_c_preproc_warn_flag in '' yes | |
10660 | do | |
10661 | # Use a header file that comes with gcc, so configuring glibc | |
10662 | # with a fresh cross-compiler works. | |
10663 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10664 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 10665 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
10666 | # not just through cpp. "Syntax error" is here to catch this case. |
10667 | cat >conftest.$ac_ext <<_ACEOF | |
10668 | #line $LINENO "configure" | |
10669 | /* confdefs.h. */ | |
10670 | _ACEOF | |
10671 | cat confdefs.h >>conftest.$ac_ext | |
10672 | cat >>conftest.$ac_ext <<_ACEOF | |
10673 | /* end confdefs.h. */ | |
10674 | #ifdef __STDC__ | |
10675 | # include <limits.h> | |
10676 | #else | |
10677 | # include <assert.h> | |
10678 | #endif | |
10679 | Syntax error | |
10680 | _ACEOF | |
10681 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10682 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10683 | ac_status=$? | |
10684 | grep -v '^ *+' conftest.er1 >conftest.err | |
10685 | rm -f conftest.er1 | |
10686 | cat conftest.err >&5 | |
10687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10688 | (exit $ac_status); } >/dev/null; then | |
10689 | if test -s conftest.err; then | |
10690 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10691 | else | |
10692 | ac_cpp_err= | |
10693 | fi | |
10f2d63a | 10694 | else |
e6cc62c6 VS |
10695 | ac_cpp_err=yes |
10696 | fi | |
10697 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 10698 | : |
247f5006 | 10699 | else |
e6cc62c6 VS |
10700 | echo "$as_me: failed program was:" >&5 |
10701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10702 | ||
10703 | # Broken: fails on valid input. | |
10704 | continue | |
10705 | fi | |
10706 | rm -f conftest.err conftest.$ac_ext | |
10707 | ||
10708 | # OK, works on sane cases. Now check whether non-existent headers | |
10709 | # can be detected and how. | |
10710 | cat >conftest.$ac_ext <<_ACEOF | |
10711 | #line $LINENO "configure" | |
10712 | /* confdefs.h. */ | |
10713 | _ACEOF | |
10714 | cat confdefs.h >>conftest.$ac_ext | |
10715 | cat >>conftest.$ac_ext <<_ACEOF | |
10716 | /* end confdefs.h. */ | |
10717 | #include <ac_nonexistent.h> | |
10718 | _ACEOF | |
10719 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10720 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10721 | ac_status=$? | |
10722 | grep -v '^ *+' conftest.er1 >conftest.err | |
10723 | rm -f conftest.er1 | |
10724 | cat conftest.err >&5 | |
10725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10726 | (exit $ac_status); } >/dev/null; then | |
10727 | if test -s conftest.err; then | |
10728 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10729 | else | |
10730 | ac_cpp_err= | |
10731 | fi | |
10f2d63a | 10732 | else |
e6cc62c6 | 10733 | ac_cpp_err=yes |
579d8138 | 10734 | fi |
e6cc62c6 VS |
10735 | if test -z "$ac_cpp_err"; then |
10736 | # Broken: success on invalid input. | |
10737 | continue | |
10738 | else | |
10739 | echo "$as_me: failed program was:" >&5 | |
10740 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10741 | ||
10742 | # Passes both tests. | |
10743 | ac_preproc_ok=: | |
10744 | break | |
52127426 | 10745 | fi |
e6cc62c6 VS |
10746 | rm -f conftest.err conftest.$ac_ext |
10747 | ||
10748 | done | |
10749 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10750 | rm -f conftest.err conftest.$ac_ext | |
10751 | if $ac_preproc_ok; then | |
10752 | break | |
8284b0c5 | 10753 | fi |
e6cc62c6 VS |
10754 | |
10755 | done | |
10756 | ac_cv_prog_CPP=$CPP | |
10757 | ||
10758 | fi | |
10759 | CPP=$ac_cv_prog_CPP | |
10760 | else | |
10761 | ac_cv_prog_CPP=$CPP | |
10762 | fi | |
10763 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
10764 | echo "${ECHO_T}$CPP" >&6 | |
10765 | ac_preproc_ok=false | |
10766 | for ac_c_preproc_warn_flag in '' yes | |
10767 | do | |
10768 | # Use a header file that comes with gcc, so configuring glibc | |
10769 | # with a fresh cross-compiler works. | |
10770 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10771 | # <limits.h> exists even on freestanding compilers. | |
10772 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10773 | # not just through cpp. "Syntax error" is here to catch this case. | |
10774 | cat >conftest.$ac_ext <<_ACEOF | |
10775 | #line $LINENO "configure" | |
10776 | /* confdefs.h. */ | |
10777 | _ACEOF | |
10778 | cat confdefs.h >>conftest.$ac_ext | |
10779 | cat >>conftest.$ac_ext <<_ACEOF | |
10780 | /* end confdefs.h. */ | |
10781 | #ifdef __STDC__ | |
10782 | # include <limits.h> | |
10783 | #else | |
10784 | # include <assert.h> | |
10785 | #endif | |
10786 | Syntax error | |
10787 | _ACEOF | |
10788 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10789 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10790 | ac_status=$? | |
10791 | grep -v '^ *+' conftest.er1 >conftest.err | |
10792 | rm -f conftest.er1 | |
10793 | cat conftest.err >&5 | |
10794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10795 | (exit $ac_status); } >/dev/null; then | |
10796 | if test -s conftest.err; then | |
10797 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10798 | else | |
10799 | ac_cpp_err= | |
10800 | fi | |
10801 | else | |
10802 | ac_cpp_err=yes | |
10803 | fi | |
10804 | if test -z "$ac_cpp_err"; then | |
10805 | : | |
10806 | else | |
10807 | echo "$as_me: failed program was:" >&5 | |
10808 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10809 | ||
10810 | # Broken: fails on valid input. | |
10811 | continue | |
10812 | fi | |
10813 | rm -f conftest.err conftest.$ac_ext | |
10814 | ||
10815 | # OK, works on sane cases. Now check whether non-existent headers | |
10816 | # can be detected and how. | |
10817 | cat >conftest.$ac_ext <<_ACEOF | |
10818 | #line $LINENO "configure" | |
10819 | /* confdefs.h. */ | |
10820 | _ACEOF | |
10821 | cat confdefs.h >>conftest.$ac_ext | |
10822 | cat >>conftest.$ac_ext <<_ACEOF | |
10823 | /* end confdefs.h. */ | |
10824 | #include <ac_nonexistent.h> | |
10825 | _ACEOF | |
10826 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10827 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10828 | ac_status=$? | |
10829 | grep -v '^ *+' conftest.er1 >conftest.err | |
10830 | rm -f conftest.er1 | |
10831 | cat conftest.err >&5 | |
10832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10833 | (exit $ac_status); } >/dev/null; then | |
10834 | if test -s conftest.err; then | |
10835 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10836 | else | |
10837 | ac_cpp_err= | |
10838 | fi | |
10839 | else | |
10840 | ac_cpp_err=yes | |
10841 | fi | |
10842 | if test -z "$ac_cpp_err"; then | |
10843 | # Broken: success on invalid input. | |
10844 | continue | |
10845 | else | |
10846 | echo "$as_me: failed program was:" >&5 | |
10847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10848 | ||
10849 | # Passes both tests. | |
10850 | ac_preproc_ok=: | |
10851 | break | |
a0b9e27f | 10852 | fi |
e6cc62c6 VS |
10853 | rm -f conftest.err conftest.$ac_ext |
10854 | ||
10855 | done | |
10856 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10857 | rm -f conftest.err conftest.$ac_ext | |
10858 | if $ac_preproc_ok; then | |
10859 | : | |
10860 | else | |
10861 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
10862 | See \`config.log' for more details." >&5 | |
10863 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
10864 | See \`config.log' for more details." >&2;} | |
10865 | { (exit 1); exit 1; }; } | |
10866 | fi | |
10867 | ||
10868 | ac_ext=c | |
10869 | ac_cpp='$CPP $CPPFLAGS' | |
10870 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10871 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10872 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10873 | ||
10874 | ||
10875 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
10876 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
10877 | if test "${ac_cv_prog_egrep+set}" = set; then | |
10878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 10879 | else |
e6cc62c6 VS |
10880 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
10881 | then ac_cv_prog_egrep='grep -E' | |
10882 | else ac_cv_prog_egrep='egrep' | |
10883 | fi | |
10f2d63a | 10884 | fi |
e6cc62c6 VS |
10885 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
10886 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
10887 | EGREP=$ac_cv_prog_egrep | |
10888 | ||
10f2d63a | 10889 | |
e6cc62c6 VS |
10890 | if test $ac_cv_c_compiler_gnu = yes; then |
10891 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
10892 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
10893 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
10894 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10895 | else |
10896 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 VS |
10897 | cat >conftest.$ac_ext <<_ACEOF |
10898 | #line $LINENO "configure" | |
10899 | /* confdefs.h. */ | |
10900 | _ACEOF | |
10901 | cat confdefs.h >>conftest.$ac_ext | |
10902 | cat >>conftest.$ac_ext <<_ACEOF | |
10903 | /* end confdefs.h. */ | |
10f2d63a VZ |
10904 | #include <sgtty.h> |
10905 | Autoconf TIOCGETP | |
e6cc62c6 | 10906 | _ACEOF |
10f2d63a | 10907 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10908 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10909 | ac_cv_prog_gcc_traditional=yes |
10910 | else | |
10f2d63a VZ |
10911 | ac_cv_prog_gcc_traditional=no |
10912 | fi | |
10913 | rm -f conftest* | |
10914 | ||
8284b0c5 | 10915 | |
10f2d63a | 10916 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 VS |
10917 | cat >conftest.$ac_ext <<_ACEOF |
10918 | #line $LINENO "configure" | |
10919 | /* confdefs.h. */ | |
10920 | _ACEOF | |
10921 | cat confdefs.h >>conftest.$ac_ext | |
10922 | cat >>conftest.$ac_ext <<_ACEOF | |
10923 | /* end confdefs.h. */ | |
10f2d63a VZ |
10924 | #include <termio.h> |
10925 | Autoconf TCGETA | |
e6cc62c6 | 10926 | _ACEOF |
10f2d63a | 10927 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 10928 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
10929 | ac_cv_prog_gcc_traditional=yes |
10930 | fi | |
10931 | rm -f conftest* | |
10932 | ||
10933 | fi | |
10934 | fi | |
e6cc62c6 VS |
10935 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
10936 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
10937 | if test $ac_cv_prog_gcc_traditional = yes; then |
10938 | CC="$CC -traditional" | |
10939 | fi | |
10940 | fi | |
10941 | ||
8284b0c5 MB |
10942 | |
10943 | ||
e6cc62c6 VS |
10944 | |
10945 | ac_ext=cc | |
1e487827 | 10946 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
10947 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10948 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10949 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 10950 | |
698dcdb6 | 10951 | |
ec603395 | 10952 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
10953 | ac_ext=cc |
10954 | ac_cpp='$CXXCPP $CPPFLAGS' | |
10955 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10956 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10957 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10958 | if test -n "$ac_tool_prefix"; then | |
10959 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
10960 | do | |
10961 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10962 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10965 | if test "${ac_cv_prog_CXX+set}" = set; then | |
10966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
10967 | else |
10968 | if test -n "$CXX"; then | |
10969 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
10970 | else | |
e6cc62c6 VS |
10971 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10972 | for as_dir in $PATH | |
10973 | do | |
10974 | IFS=$as_save_IFS | |
10975 | test -z "$as_dir" && as_dir=. | |
10976 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10977 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10978 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
10979 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10980 | break 2 | |
10981 | fi | |
10982 | done | |
10983 | done | |
10984 | ||
10f2d63a VZ |
10985 | fi |
10986 | fi | |
e6cc62c6 | 10987 | CXX=$ac_cv_prog_CXX |
10f2d63a | 10988 | if test -n "$CXX"; then |
e6cc62c6 VS |
10989 | echo "$as_me:$LINENO: result: $CXX" >&5 |
10990 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 10991 | else |
e6cc62c6 VS |
10992 | echo "$as_me:$LINENO: result: no" >&5 |
10993 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
10994 | fi |
10995 | ||
e6cc62c6 VS |
10996 | test -n "$CXX" && break |
10997 | done | |
10998 | fi | |
10999 | if test -z "$CXX"; then | |
11000 | ac_ct_CXX=$CXX | |
11001 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11002 | do | |
11003 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11004 | set dummy $ac_prog; ac_word=$2 | |
11005 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11006 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11007 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11009 | else | |
11010 | if test -n "$ac_ct_CXX"; then | |
11011 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11012 | else | |
11013 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11014 | for as_dir in $PATH | |
11015 | do | |
11016 | IFS=$as_save_IFS | |
11017 | test -z "$as_dir" && as_dir=. | |
11018 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11019 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11020 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11021 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11022 | break 2 | |
11023 | fi | |
11024 | done | |
10f2d63a | 11025 | done |
a0b9e27f | 11026 | |
8284b0c5 | 11027 | fi |
a0b9e27f | 11028 | fi |
e6cc62c6 VS |
11029 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
11030 | if test -n "$ac_ct_CXX"; then | |
11031 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11032 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11033 | else | |
11034 | echo "$as_me:$LINENO: result: no" >&5 | |
11035 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 11036 | fi |
10f2d63a | 11037 | |
e6cc62c6 VS |
11038 | test -n "$ac_ct_CXX" && break |
11039 | done | |
11040 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11041 | ||
11042 | CXX=$ac_ct_CXX | |
11043 | fi | |
11044 | ||
11045 | ||
11046 | # Provide some information about the compiler. | |
11047 | echo "$as_me:$LINENO:" \ | |
11048 | "checking for C++ compiler version" >&5 | |
11049 | ac_compiler=`set X $ac_compile; echo $2` | |
11050 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11051 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11052 | ac_status=$? | |
11053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11054 | (exit $ac_status); } | |
11055 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11056 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11057 | ac_status=$? | |
11058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11059 | (exit $ac_status); } | |
11060 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11061 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11062 | ac_status=$? | |
11063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11064 | (exit $ac_status); } | |
11065 | ||
11066 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11067 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11068 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11070 | else | |
11071 | cat >conftest.$ac_ext <<_ACEOF | |
11072 | #line $LINENO "configure" | |
11073 | /* confdefs.h. */ | |
11074 | _ACEOF | |
11075 | cat confdefs.h >>conftest.$ac_ext | |
11076 | cat >>conftest.$ac_ext <<_ACEOF | |
11077 | /* end confdefs.h. */ | |
11078 | ||
11079 | int | |
11080 | main () | |
11081 | { | |
11082 | #ifndef __GNUC__ | |
11083 | choke me | |
11084 | #endif | |
10f2d63a | 11085 | |
e6cc62c6 VS |
11086 | ; |
11087 | return 0; | |
11088 | } | |
11089 | _ACEOF | |
11090 | rm -f conftest.$ac_objext | |
11091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11092 | (eval $ac_compile) 2>&5 | |
11093 | ac_status=$? | |
11094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11095 | (exit $ac_status); } && | |
11096 | { ac_try='test -s conftest.$ac_objext' | |
11097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11098 | (eval $ac_try) 2>&5 | |
11099 | ac_status=$? | |
11100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11101 | (exit $ac_status); }; }; then | |
11102 | ac_compiler_gnu=yes | |
11103 | else | |
11104 | echo "$as_me: failed program was:" >&5 | |
11105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11106 | ||
11107 | ac_compiler_gnu=no | |
11108 | fi | |
11109 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11110 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
11111 | ||
11112 | fi | |
11113 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11114 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11115 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11116 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11117 | ac_save_CXXFLAGS=$CXXFLAGS | |
11118 | CXXFLAGS="-g" | |
11119 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11120 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11121 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11123 | else | |
11124 | cat >conftest.$ac_ext <<_ACEOF | |
11125 | #line $LINENO "configure" | |
11126 | /* confdefs.h. */ | |
11127 | _ACEOF | |
11128 | cat confdefs.h >>conftest.$ac_ext | |
11129 | cat >>conftest.$ac_ext <<_ACEOF | |
11130 | /* end confdefs.h. */ | |
11131 | ||
11132 | int | |
11133 | main () | |
11134 | { | |
f09359cf | 11135 | |
e6cc62c6 VS |
11136 | ; |
11137 | return 0; | |
11138 | } | |
11139 | _ACEOF | |
11140 | rm -f conftest.$ac_objext | |
11141 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11142 | (eval $ac_compile) 2>&5 | |
11143 | ac_status=$? | |
11144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11145 | (exit $ac_status); } && | |
11146 | { ac_try='test -s conftest.$ac_objext' | |
11147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11148 | (eval $ac_try) 2>&5 | |
11149 | ac_status=$? | |
11150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11151 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11152 | ac_cv_prog_cxx_g=yes |
11153 | else | |
e6cc62c6 VS |
11154 | echo "$as_me: failed program was:" >&5 |
11155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11156 | |
e6cc62c6 | 11157 | ac_cv_prog_cxx_g=no |
10f2d63a | 11158 | fi |
e6cc62c6 VS |
11159 | rm -f conftest.$ac_objext conftest.$ac_ext |
11160 | fi | |
11161 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11162 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11163 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11164 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11165 | elif test $ac_cv_prog_cxx_g = yes; then |
11166 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11167 | CXXFLAGS="-g -O2" |
11168 | else | |
f09359cf | 11169 | CXXFLAGS="-g" |
10f2d63a | 11170 | fi |
5c0a20c3 | 11171 | else |
f09359cf VS |
11172 | if test "$GXX" = yes; then |
11173 | CXXFLAGS="-O2" | |
11174 | else | |
11175 | CXXFLAGS= | |
11176 | fi | |
10f2d63a | 11177 | fi |
e6cc62c6 | 11178 | for ac_declaration in \ |
0bdb08e7 VS |
11179 | ''\ |
11180 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
11181 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11182 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11183 | 'extern "C" void exit (int) throw ();' \ | |
11184 | 'extern "C" void exit (int);' \ | |
11185 | 'void exit (int);' | |
11186 | do | |
11187 | cat >conftest.$ac_ext <<_ACEOF | |
11188 | #line $LINENO "configure" | |
11189 | /* confdefs.h. */ | |
11190 | _ACEOF | |
11191 | cat confdefs.h >>conftest.$ac_ext | |
11192 | cat >>conftest.$ac_ext <<_ACEOF | |
11193 | /* end confdefs.h. */ | |
0e012a93 | 11194 | #include <stdlib.h> |
0bdb08e7 | 11195 | $ac_declaration |
e6cc62c6 VS |
11196 | int |
11197 | main () | |
11198 | { | |
11199 | exit (42); | |
11200 | ; | |
11201 | return 0; | |
11202 | } | |
11203 | _ACEOF | |
11204 | rm -f conftest.$ac_objext | |
11205 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11206 | (eval $ac_compile) 2>&5 | |
11207 | ac_status=$? | |
11208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11209 | (exit $ac_status); } && | |
11210 | { ac_try='test -s conftest.$ac_objext' | |
11211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11212 | (eval $ac_try) 2>&5 | |
11213 | ac_status=$? | |
11214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11215 | (exit $ac_status); }; }; then | |
11216 | : | |
11217 | else | |
11218 | echo "$as_me: failed program was:" >&5 | |
11219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11220 | ||
11221 | continue | |
11222 | fi | |
11223 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11224 | cat >conftest.$ac_ext <<_ACEOF | |
11225 | #line $LINENO "configure" | |
11226 | /* confdefs.h. */ | |
11227 | _ACEOF | |
11228 | cat confdefs.h >>conftest.$ac_ext | |
11229 | cat >>conftest.$ac_ext <<_ACEOF | |
11230 | /* end confdefs.h. */ | |
11231 | $ac_declaration | |
11232 | int | |
11233 | main () | |
11234 | { | |
11235 | exit (42); | |
11236 | ; | |
11237 | return 0; | |
11238 | } | |
11239 | _ACEOF | |
11240 | rm -f conftest.$ac_objext | |
11241 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11242 | (eval $ac_compile) 2>&5 | |
11243 | ac_status=$? | |
11244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11245 | (exit $ac_status); } && | |
11246 | { ac_try='test -s conftest.$ac_objext' | |
11247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11248 | (eval $ac_try) 2>&5 | |
11249 | ac_status=$? | |
11250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11251 | (exit $ac_status); }; }; then | |
11252 | break | |
11253 | else | |
11254 | echo "$as_me: failed program was:" >&5 | |
11255 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11256 | ||
11257 | fi | |
11258 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11259 | done | |
11260 | rm -f conftest* | |
11261 | if test -n "$ac_declaration"; then | |
11262 | echo '#ifdef __cplusplus' >>confdefs.h | |
11263 | echo $ac_declaration >>confdefs.h | |
11264 | echo '#endif' >>confdefs.h | |
11265 | fi | |
11266 | ||
11267 | ac_ext=cc | |
11268 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11269 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11270 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11271 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11272 | |
11273 | ||
10f2d63a | 11274 | ac_ext=c |
10f2d63a | 11275 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11276 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11277 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11278 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11279 | |
11280 | ||
e6cc62c6 VS |
11281 | if test -n "$ac_tool_prefix"; then |
11282 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11283 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11284 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11285 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11286 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11288 | else |
11289 | if test -n "$RANLIB"; then | |
11290 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11291 | else | |
e6cc62c6 VS |
11292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11293 | for as_dir in $PATH | |
11294 | do | |
11295 | IFS=$as_save_IFS | |
11296 | test -z "$as_dir" && as_dir=. | |
11297 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11298 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11299 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11300 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11301 | break 2 | |
11302 | fi | |
11303 | done | |
11304 | done | |
11305 | ||
10f2d63a VZ |
11306 | fi |
11307 | fi | |
e6cc62c6 | 11308 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11309 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11310 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11311 | echo "${ECHO_T}$RANLIB" >&6 | |
11312 | else | |
11313 | echo "$as_me:$LINENO: result: no" >&5 | |
11314 | echo "${ECHO_T}no" >&6 | |
11315 | fi | |
11316 | ||
11317 | fi | |
11318 | if test -z "$ac_cv_prog_RANLIB"; then | |
11319 | ac_ct_RANLIB=$RANLIB | |
11320 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11321 | set dummy ranlib; ac_word=$2 | |
11322 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11323 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11324 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11326 | else |
e6cc62c6 VS |
11327 | if test -n "$ac_ct_RANLIB"; then |
11328 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11329 | else | |
11330 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11331 | for as_dir in $PATH | |
11332 | do | |
11333 | IFS=$as_save_IFS | |
11334 | test -z "$as_dir" && as_dir=. | |
11335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11336 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11337 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11338 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11339 | break 2 | |
11340 | fi | |
11341 | done | |
11342 | done | |
11343 | ||
11344 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11345 | fi | |
11346 | fi | |
11347 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11348 | if test -n "$ac_ct_RANLIB"; then | |
11349 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11350 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11351 | else | |
11352 | echo "$as_me:$LINENO: result: no" >&5 | |
11353 | echo "${ECHO_T}no" >&6 | |
11354 | fi | |
11355 | ||
11356 | RANLIB=$ac_ct_RANLIB | |
11357 | else | |
11358 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11359 | fi |
11360 | ||
10f2d63a VZ |
11361 | |
11362 | # Extract the first word of "ar", so it can be a program name with args. | |
11363 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11364 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11365 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11366 | if test "${ac_cv_prog_AR+set}" = set; then | |
11367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11368 | else |
11369 | if test -n "$AR"; then | |
11370 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11371 | else | |
e6cc62c6 VS |
11372 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11373 | for as_dir in $PATH | |
11374 | do | |
11375 | IFS=$as_save_IFS | |
11376 | test -z "$as_dir" && as_dir=. | |
11377 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11378 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11379 | ac_cv_prog_AR="ar" | |
11380 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11381 | break 2 | |
11382 | fi | |
11383 | done | |
11384 | done | |
11385 | ||
10f2d63a VZ |
11386 | fi |
11387 | fi | |
e6cc62c6 | 11388 | AR=$ac_cv_prog_AR |
10f2d63a | 11389 | if test -n "$AR"; then |
e6cc62c6 VS |
11390 | echo "$as_me:$LINENO: result: $AR" >&5 |
11391 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11392 | else |
e6cc62c6 VS |
11393 | echo "$as_me:$LINENO: result: no" >&5 |
11394 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11395 | fi |
11396 | ||
911740e7 VS |
11397 | if test "x$AR" = "x" ; then |
11398 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5 | |
11399 | echo "$as_me: error: ar is needed to build wxWindows" >&2;} | |
11400 | { (exit 1); exit 1; }; } | |
11401 | fi | |
8284b0c5 | 11402 | |
6054113a | 11403 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11404 | # so one script is as good as another. But avoid the broken or |
11405 | # incompatible versions: | |
11406 | # SysV /etc/install, /usr/sbin/install | |
11407 | # SunOS /usr/etc/install | |
11408 | # IRIX /sbin/install | |
11409 | # AIX /bin/install | |
e6cc62c6 | 11410 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11411 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11412 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11413 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11414 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
11415 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11416 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11417 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11418 | if test "${ac_cv_path_install+set}" = set; then |
11419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11420 | else | |
11421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11422 | for as_dir in $PATH | |
11423 | do | |
11424 | IFS=$as_save_IFS | |
11425 | test -z "$as_dir" && as_dir=. | |
11426 | # Account for people who put trailing slashes in PATH elements. | |
11427 | case $as_dir/ in | |
11428 | ./ | .// | /cC/* | \ | |
11429 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11430 | /usr/ucb/* ) ;; | |
11431 | *) | |
11432 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11433 | # Don't use installbsd from OSF since it installs stuff as root | |
11434 | # by default. | |
11435 | for ac_prog in ginstall scoinst install; do | |
11436 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11437 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
11438 | if test $ac_prog = install && | |
11439 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11440 | # AIX install. It has an incompatible calling convention. | |
11441 | : | |
11442 | elif test $ac_prog = install && | |
11443 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11444 | # program-specific install script used by HP pwplus--don't use. | |
11445 | : | |
11446 | else | |
11447 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11448 | break 3 | |
11449 | fi | |
11450 | fi | |
10f2d63a | 11451 | done |
e6cc62c6 VS |
11452 | done |
11453 | ;; | |
11454 | esac | |
11455 | done | |
11456 | ||
10f2d63a VZ |
11457 | |
11458 | fi | |
11459 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11460 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11461 | else |
11462 | # As a last resort, use the slow shell script. We don't cache a | |
11463 | # path for INSTALL within a source directory, because that will | |
11464 | # break other packages using the cache if that directory is | |
11465 | # removed, or if the path is relative. | |
e6cc62c6 | 11466 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11467 | fi |
11468 | fi | |
e6cc62c6 VS |
11469 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11470 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11471 | |
11472 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11473 | # It thinks the first close brace ends the variable substitution. | |
11474 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11475 | ||
e6cc62c6 | 11476 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11477 | |
10f2d63a VZ |
11478 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11479 | ||
8284b0c5 | 11480 | |
1d1b75ac VZ |
11481 | case ${INSTALL} in |
11482 | /* ) # Absolute | |
11483 | ;; | |
4f5a7f74 VZ |
11484 | ?:* ) # Drive letter, considered as absolute. |
11485 | ;; | |
3bd8fb5f | 11486 | *) |
1d1b75ac VZ |
11487 | INSTALL=`pwd`/${INSTALL} ;; |
11488 | esac | |
11489 | ||
4f5a7f74 VZ |
11490 | case ${host} in |
11491 | *-hp-hpux* ) | |
11492 | INSTALL_DIR="mkdir" | |
11493 | ;; | |
11494 | ||
11495 | *) INSTALL_DIR="$INSTALL -d" | |
11496 | ;; | |
11497 | esac | |
11498 | ||
8284b0c5 | 11499 | |
6054113a GD |
11500 | case "${host}" in |
11501 | ||
b5853384 | 11502 | powerpc-*-darwin* ) |
eb99ae0b GD |
11503 | INSTALL_PROGRAM="cp -fp" |
11504 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11505 | ;; |
11506 | *) | |
11507 | ;; | |
d6853540 | 11508 | esac |
698dcdb6 | 11509 | |
10f2d63a VZ |
11510 | # Extract the first word of "strip", so it can be a program name with args. |
11511 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11512 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11513 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11514 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11516 | else |
11517 | if test -n "$STRIP"; then | |
11518 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11519 | else | |
e6cc62c6 VS |
11520 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11521 | for as_dir in $PATH | |
11522 | do | |
11523 | IFS=$as_save_IFS | |
11524 | test -z "$as_dir" && as_dir=. | |
11525 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11526 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11527 | ac_cv_prog_STRIP="strip" | |
11528 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11529 | break 2 | |
11530 | fi | |
11531 | done | |
11532 | done | |
11533 | ||
10f2d63a VZ |
11534 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11535 | fi | |
11536 | fi | |
e6cc62c6 | 11537 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11538 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11539 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11540 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11541 | else |
e6cc62c6 VS |
11542 | echo "$as_me:$LINENO: result: no" >&5 |
11543 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11544 | fi |
11545 | ||
5c6fa7d2 | 11546 | |
e6cc62c6 VS |
11547 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11548 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11549 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11551 | else |
e6cc62c6 | 11552 | |
414eab6d | 11553 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11554 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11555 | wx_cv_prog_makeisgnu="yes" |
11556 | else | |
11557 | wx_cv_prog_makeisgnu="no" | |
11558 | fi | |
11559 | ||
11560 | fi | |
e6cc62c6 VS |
11561 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11562 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11563 | |
11564 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11565 | IF_GNU_MAKE="" | |
11566 | else | |
11567 | IF_GNU_MAKE="#" | |
11568 | fi | |
11569 | ||
8284b0c5 MB |
11570 | |
11571 | ||
414eab6d | 11572 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11573 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11574 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11575 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11577 | else |
e6cc62c6 | 11578 | |
10f2d63a VZ |
11579 | cat - << EOF > confMake |
11580 | check : file | |
11581 | cp \$? \$@ | |
11582 | cp \$? final_file | |
11583 | EOF | |
11584 | ||
11585 | if test ! -d sub ; then | |
11586 | mkdir sub | |
11587 | fi | |
11588 | echo dummy > sub/file | |
f6bcfd97 | 11589 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
11590 | RESULT=$? |
11591 | rm -f sub/file check final_file confMake | |
11592 | rmdir sub | |
11593 | if test "$RESULT" = 0; then | |
04e7a216 | 11594 | wx_cv_prog_makevpath="yes" |
10f2d63a | 11595 | else |
04e7a216 VZ |
11596 | wx_cv_prog_makevpath="no" |
11597 | fi | |
11598 | ||
11599 | fi | |
e6cc62c6 VS |
11600 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
11601 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
11602 | |
11603 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 11604 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
11605 | You need a make-utility that is able to use the variable |
11606 | VPATH correctly. | |
11607 | If your version of make does not support VPATH correctly, | |
11608 | please install GNU-make (possibly as gmake), and start | |
11609 | configure with the following command: | |
11610 | export MAKE=gmake; ./configure for sh-type shells | |
11611 | setenv MAKE gmake; ./configure for csh-type shells | |
11612 | Also please do remember to use gmake in this case every time | |
11613 | you are trying to compile. | |
e6cc62c6 VS |
11614 | " >&5 |
11615 | echo "$as_me: error: | |
11616 | You need a make-utility that is able to use the variable | |
11617 | VPATH correctly. | |
11618 | If your version of make does not support VPATH correctly, | |
11619 | please install GNU-make (possibly as gmake), and start | |
11620 | configure with the following command: | |
11621 | export MAKE=gmake; ./configure for sh-type shells | |
11622 | setenv MAKE gmake; ./configure for csh-type shells | |
11623 | Also please do remember to use gmake in this case every time | |
11624 | you are trying to compile. | |
11625 | " >&2;} | |
11626 | { (exit 1); exit 1; }; } | |
11627 | fi fi | |
e6cc62c6 VS |
11628 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
11629 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11630 | LN_S=$as_ln_s | |
11631 | if test "$LN_S" = "ln -s"; then | |
11632 | echo "$as_me:$LINENO: result: yes" >&5 | |
11633 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 11634 | else |
e6cc62c6 VS |
11635 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11636 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 11637 | fi |
5c6fa7d2 | 11638 | |
247f5006 | 11639 | |
2b5f62a0 VZ |
11640 | case "${host}" in |
11641 | *-pc-os2_emx | *-pc-os2-emx ) | |
2b5f62a0 | 11642 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
11643 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
11644 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11645 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 11647 | else |
e6cc62c6 | 11648 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 11649 | LIBS="-lcExt $LIBS" |
e6cc62c6 VS |
11650 | cat >conftest.$ac_ext <<_ACEOF |
11651 | #line $LINENO "configure" | |
11652 | /* confdefs.h. */ | |
11653 | _ACEOF | |
11654 | cat confdefs.h >>conftest.$ac_ext | |
11655 | cat >>conftest.$ac_ext <<_ACEOF | |
11656 | /* end confdefs.h. */ | |
11657 | ||
2b5f62a0 | 11658 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11659 | #ifdef __cplusplus |
11660 | extern "C" | |
11661 | #endif | |
2b5f62a0 | 11662 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11663 | builtin and then its argument prototype would still apply. */ |
11664 | char drand48 (); | |
11665 | int | |
11666 | main () | |
11667 | { | |
11668 | drand48 (); | |
11669 | ; | |
11670 | return 0; | |
11671 | } | |
11672 | _ACEOF | |
11673 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11674 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11675 | (eval $ac_link) 2>&5 | |
11676 | ac_status=$? | |
11677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11678 | (exit $ac_status); } && | |
11679 | { ac_try='test -s conftest$ac_exeext' | |
11680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11681 | (eval $ac_try) 2>&5 | |
11682 | ac_status=$? | |
11683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11684 | (exit $ac_status); }; }; then | |
11685 | ac_cv_lib_cExt_drand48=yes | |
11686 | else | |
11687 | echo "$as_me: failed program was:" >&5 | |
11688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11689 | ||
11690 | ac_cv_lib_cExt_drand48=no | |
11691 | fi | |
11692 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
11693 | LIBS=$ac_check_lib_save_LIBS | |
11694 | fi | |
11695 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11696 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11697 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 11698 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
11699 | fi |
11700 | ||
11701 | else | |
11702 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11703 | fi | |
73d617c9 MB |
11704 | echo "$as_me:$LINENO: checking for gcc 3 or later" >&5 |
11705 | echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6 | |
11706 | if test "${wx_cv_gcc3+set}" = set; then | |
11707 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11708 | else | |
11709 | ||
11710 | cat >conftest.$ac_ext <<_ACEOF | |
11711 | #line $LINENO "configure" | |
11712 | /* confdefs.h. */ | |
11713 | _ACEOF | |
11714 | cat confdefs.h >>conftest.$ac_ext | |
11715 | cat >>conftest.$ac_ext <<_ACEOF | |
11716 | /* end confdefs.h. */ | |
11717 | #include <features.h> | |
11718 | int | |
11719 | main () | |
11720 | { | |
11721 | ||
11722 | #if (__GNUC__ < 3) | |
11723 | #error old gcc | |
11724 | #endif | |
11725 | ||
11726 | ; | |
11727 | return 0; | |
11728 | } | |
11729 | _ACEOF | |
11730 | rm -f conftest.$ac_objext | |
11731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11732 | (eval $ac_compile) 2>&5 | |
11733 | ac_status=$? | |
11734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11735 | (exit $ac_status); } && | |
11736 | { ac_try='test -s conftest.$ac_objext' | |
11737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11738 | (eval $ac_try) 2>&5 | |
11739 | ac_status=$? | |
11740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11741 | (exit $ac_status); }; }; then | |
11742 | ||
11743 | wx_cv_gcc3=yes | |
11744 | ||
11745 | else | |
11746 | echo "$as_me: failed program was:" >&5 | |
11747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11748 | ||
11749 | ||
11750 | wx_cv_gcc3=no | |
11751 | ||
11752 | ||
11753 | fi | |
11754 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11755 | ||
11756 | fi | |
11757 | echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5 | |
11758 | echo "${ECHO_T}$wx_cv_gcc3" >&6 | |
11759 | if test "$wx_cv_gcc3" = "no"; then | |
11760 | LIBS="$LIBS -lstdcpp" | |
11761 | else | |
11762 | LIBS="$LIBS -lstdcxx" | |
11763 | fi | |
2b5f62a0 VZ |
11764 | ;; |
11765 | esac | |
11766 | ||
a0b9e27f | 11767 | |
01aa5863 VS |
11768 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
11769 | echo "$as_me:$LINENO: checking for strings.h" >&5 | |
11770 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
11771 | if test "${ac_cv_header_strings_h+set}" = set; then | |
11772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11773 | else | |
11774 | ac_cv_header_strings_h=no | |
11775 | fi | |
11776 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 | |
11777 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
11778 | if test "$ac_cv_header_strings_h" = "no"; then | |
11779 | echo "$as_me:$LINENO: result: forced no into cache" >&5 | |
11780 | echo "${ECHO_T}forced no into cache" >&6 | |
11781 | else | |
11782 | { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5 | |
11783 | echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;} | |
11784 | fi | |
11785 | fi | |
11786 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
e6cc62c6 VS |
11787 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
11788 | if test "${ac_cv_header_stdc+set}" = set; then | |
11789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11790 | else | |
11791 | cat >conftest.$ac_ext <<_ACEOF | |
11792 | #line $LINENO "configure" | |
11793 | /* confdefs.h. */ | |
11794 | _ACEOF | |
11795 | cat confdefs.h >>conftest.$ac_ext | |
11796 | cat >>conftest.$ac_ext <<_ACEOF | |
11797 | /* end confdefs.h. */ | |
11798 | #include <stdlib.h> | |
11799 | #include <stdarg.h> | |
11800 | #include <string.h> | |
11801 | #include <float.h> | |
247f5006 | 11802 | |
e6cc62c6 VS |
11803 | int |
11804 | main () | |
11805 | { | |
90dd450c | 11806 | |
e6cc62c6 VS |
11807 | ; |
11808 | return 0; | |
11809 | } | |
11810 | _ACEOF | |
11811 | rm -f conftest.$ac_objext | |
11812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11813 | (eval $ac_compile) 2>&5 | |
11814 | ac_status=$? | |
11815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11816 | (exit $ac_status); } && | |
11817 | { ac_try='test -s conftest.$ac_objext' | |
11818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11819 | (eval $ac_try) 2>&5 | |
11820 | ac_status=$? | |
11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11822 | (exit $ac_status); }; }; then | |
11823 | ac_cv_header_stdc=yes | |
8284b0c5 | 11824 | else |
e6cc62c6 VS |
11825 | echo "$as_me: failed program was:" >&5 |
11826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11827 | ||
11828 | ac_cv_header_stdc=no | |
21d1c967 | 11829 | fi |
e6cc62c6 | 11830 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 11831 | |
e6cc62c6 VS |
11832 | if test $ac_cv_header_stdc = yes; then |
11833 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11834 | cat >conftest.$ac_ext <<_ACEOF | |
11835 | #line $LINENO "configure" | |
11836 | /* confdefs.h. */ | |
11837 | _ACEOF | |
11838 | cat confdefs.h >>conftest.$ac_ext | |
11839 | cat >>conftest.$ac_ext <<_ACEOF | |
11840 | /* end confdefs.h. */ | |
11841 | #include <string.h> | |
11842 | ||
11843 | _ACEOF | |
11844 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11845 | $EGREP "memchr" >/dev/null 2>&1; then | |
11846 | : | |
11847 | else | |
11848 | ac_cv_header_stdc=no | |
3a922bb4 | 11849 | fi |
a0b9e27f | 11850 | rm -f conftest* |
e6cc62c6 | 11851 | |
90dd450c | 11852 | fi |
e6cc62c6 VS |
11853 | |
11854 | if test $ac_cv_header_stdc = yes; then | |
11855 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
11856 | cat >conftest.$ac_ext <<_ACEOF | |
11857 | #line $LINENO "configure" | |
11858 | /* confdefs.h. */ | |
11859 | _ACEOF | |
11860 | cat confdefs.h >>conftest.$ac_ext | |
11861 | cat >>conftest.$ac_ext <<_ACEOF | |
11862 | /* end confdefs.h. */ | |
11863 | #include <stdlib.h> | |
11864 | ||
11865 | _ACEOF | |
11866 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11867 | $EGREP "free" >/dev/null 2>&1; then | |
11868 | : | |
a0b9e27f | 11869 | else |
e6cc62c6 | 11870 | ac_cv_header_stdc=no |
21d1c967 | 11871 | fi |
e6cc62c6 | 11872 | rm -f conftest* |
247f5006 VZ |
11873 | |
11874 | fi | |
e6cc62c6 VS |
11875 | |
11876 | if test $ac_cv_header_stdc = yes; then | |
11877 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
11878 | if test "$cross_compiling" = yes; then | |
11879 | : | |
11880 | else | |
11881 | cat >conftest.$ac_ext <<_ACEOF | |
11882 | #line $LINENO "configure" | |
11883 | /* confdefs.h. */ | |
11884 | _ACEOF | |
11885 | cat confdefs.h >>conftest.$ac_ext | |
11886 | cat >>conftest.$ac_ext <<_ACEOF | |
11887 | /* end confdefs.h. */ | |
11888 | #include <ctype.h> | |
11889 | #if ((' ' & 0x0FF) == 0x020) | |
11890 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
11891 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
11892 | #else | |
11893 | # define ISLOWER(c) \ | |
11894 | (('a' <= (c) && (c) <= 'i') \ | |
11895 | || ('j' <= (c) && (c) <= 'r') \ | |
11896 | || ('s' <= (c) && (c) <= 'z')) | |
11897 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
11898 | #endif | |
11899 | ||
11900 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
11901 | int | |
11902 | main () | |
11903 | { | |
11904 | int i; | |
11905 | for (i = 0; i < 256; i++) | |
11906 | if (XOR (islower (i), ISLOWER (i)) | |
11907 | || toupper (i) != TOUPPER (i)) | |
11908 | exit(2); | |
11909 | exit (0); | |
11910 | } | |
11911 | _ACEOF | |
11912 | rm -f conftest$ac_exeext | |
11913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11914 | (eval $ac_link) 2>&5 | |
11915 | ac_status=$? | |
11916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11917 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
11918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11919 | (eval $ac_try) 2>&5 | |
11920 | ac_status=$? | |
11921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11922 | (exit $ac_status); }; }; then | |
11923 | : | |
a0b9e27f | 11924 | else |
e6cc62c6 VS |
11925 | echo "$as_me: program exited with status $ac_status" >&5 |
11926 | echo "$as_me: failed program was:" >&5 | |
11927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11928 | ||
11929 | ( exit $ac_status ) | |
11930 | ac_cv_header_stdc=no | |
11931 | fi | |
11932 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
11933 | fi | |
11934 | fi | |
11935 | fi | |
11936 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
11937 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
11938 | if test $ac_cv_header_stdc = yes; then | |
11939 | ||
11940 | cat >>confdefs.h <<\_ACEOF | |
11941 | #define STDC_HEADERS 1 | |
11942 | _ACEOF | |
11943 | ||
a0b9e27f | 11944 | fi |
e6cc62c6 VS |
11945 | |
11946 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
11947 | ||
11948 | ||
11949 | ||
11950 | ||
11951 | ||
11952 | ||
11953 | ||
11954 | ||
11955 | ||
11956 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
11957 | inttypes.h stdint.h unistd.h | |
11958 | do | |
11959 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
11960 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11961 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11962 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11964 | else | |
11965 | cat >conftest.$ac_ext <<_ACEOF | |
11966 | #line $LINENO "configure" | |
11967 | /* confdefs.h. */ | |
11968 | _ACEOF | |
11969 | cat confdefs.h >>conftest.$ac_ext | |
11970 | cat >>conftest.$ac_ext <<_ACEOF | |
11971 | /* end confdefs.h. */ | |
11972 | $ac_includes_default | |
11973 | ||
11974 | #include <$ac_header> | |
11975 | _ACEOF | |
11976 | rm -f conftest.$ac_objext | |
11977 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11978 | (eval $ac_compile) 2>&5 | |
11979 | ac_status=$? | |
11980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11981 | (exit $ac_status); } && | |
11982 | { ac_try='test -s conftest.$ac_objext' | |
11983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11984 | (eval $ac_try) 2>&5 | |
11985 | ac_status=$? | |
11986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11987 | (exit $ac_status); }; }; then | |
11988 | eval "$as_ac_Header=yes" | |
11989 | else | |
11990 | echo "$as_me: failed program was:" >&5 | |
11991 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11992 | ||
11993 | eval "$as_ac_Header=no" | |
11994 | fi | |
11995 | rm -f conftest.$ac_objext conftest.$ac_ext | |
11996 | fi | |
11997 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11998 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11999 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12000 | cat >>confdefs.h <<_ACEOF | |
12001 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12002 | _ACEOF | |
12003 | ||
12004 | fi | |
12005 | ||
a0b9e27f | 12006 | done |
90dd450c | 12007 | |
e6cc62c6 VS |
12008 | |
12009 | ||
12010 | for ac_header in strings.h | |
21d1c967 | 12011 | do |
e6cc62c6 VS |
12012 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12013 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12014 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12015 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12016 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12018 | fi | |
12019 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12020 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12021 | else | |
12022 | # Is the header compilable? | |
12023 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12024 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12025 | cat >conftest.$ac_ext <<_ACEOF | |
12026 | #line $LINENO "configure" | |
12027 | /* confdefs.h. */ | |
12028 | _ACEOF | |
12029 | cat confdefs.h >>conftest.$ac_ext | |
12030 | cat >>conftest.$ac_ext <<_ACEOF | |
12031 | /* end confdefs.h. */ | |
12032 | $ac_includes_default | |
12033 | #include <$ac_header> | |
12034 | _ACEOF | |
12035 | rm -f conftest.$ac_objext | |
12036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12037 | (eval $ac_compile) 2>&5 | |
12038 | ac_status=$? | |
12039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12040 | (exit $ac_status); } && | |
12041 | { ac_try='test -s conftest.$ac_objext' | |
12042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12043 | (eval $ac_try) 2>&5 | |
12044 | ac_status=$? | |
12045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12046 | (exit $ac_status); }; }; then | |
12047 | ac_header_compiler=yes | |
12048 | else | |
12049 | echo "$as_me: failed program was:" >&5 | |
12050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12051 | ||
12052 | ac_header_compiler=no | |
12053 | fi | |
12054 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12055 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12056 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12057 | ||
12058 | # Is the header present? | |
12059 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12060 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12061 | cat >conftest.$ac_ext <<_ACEOF | |
12062 | #line $LINENO "configure" | |
12063 | /* confdefs.h. */ | |
12064 | _ACEOF | |
12065 | cat confdefs.h >>conftest.$ac_ext | |
12066 | cat >>conftest.$ac_ext <<_ACEOF | |
12067 | /* end confdefs.h. */ | |
12068 | #include <$ac_header> | |
12069 | _ACEOF | |
12070 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12071 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12072 | ac_status=$? | |
12073 | grep -v '^ *+' conftest.er1 >conftest.err | |
12074 | rm -f conftest.er1 | |
12075 | cat conftest.err >&5 | |
12076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12077 | (exit $ac_status); } >/dev/null; then | |
12078 | if test -s conftest.err; then | |
12079 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12080 | else | |
12081 | ac_cpp_err= | |
12082 | fi | |
12083 | else | |
12084 | ac_cpp_err=yes | |
12085 | fi | |
12086 | if test -z "$ac_cpp_err"; then | |
12087 | ac_header_preproc=yes | |
12088 | else | |
12089 | echo "$as_me: failed program was:" >&5 | |
12090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12091 | ||
12092 | ac_header_preproc=no | |
12093 | fi | |
12094 | rm -f conftest.err conftest.$ac_ext | |
12095 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12096 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12097 | ||
12098 | # So? What about this header? | |
12099 | case $ac_header_compiler:$ac_header_preproc in | |
12100 | yes:no ) | |
12101 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12102 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12103 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12104 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12105 | ( | |
12106 | cat <<\_ASBOX | |
12107 | ## ------------------------------------ ## | |
12108 | ## Report this to bug-autoconf@gnu.org. ## | |
12109 | ## ------------------------------------ ## | |
12110 | _ASBOX | |
12111 | ) | | |
12112 | sed "s/^/$as_me: WARNING: /" >&2 | |
12113 | ;; | |
12114 | no:yes ) | |
12115 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12116 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12117 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12118 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12119 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12120 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12121 | ( | |
12122 | cat <<\_ASBOX | |
12123 | ## ------------------------------------ ## | |
12124 | ## Report this to bug-autoconf@gnu.org. ## | |
12125 | ## ------------------------------------ ## | |
12126 | _ASBOX | |
12127 | ) | | |
12128 | sed "s/^/$as_me: WARNING: /" >&2 | |
12129 | ;; | |
12130 | esac | |
12131 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12132 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12133 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12135 | else | |
12136 | eval "$as_ac_Header=$ac_header_preproc" | |
a0b9e27f | 12137 | fi |
e6cc62c6 VS |
12138 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12139 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12140 | ||
a0b9e27f | 12141 | fi |
e6cc62c6 VS |
12142 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12143 | cat >>confdefs.h <<_ACEOF | |
12144 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12145 | _ACEOF | |
12146 | ||
12147 | fi | |
12148 | ||
12149 | done | |
12150 | ||
e6cc62c6 VS |
12151 | |
12152 | ||
12153 | for ac_header in stdlib.h | |
12154 | do | |
12155 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12156 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12157 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12158 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12159 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12161 | fi | |
12162 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12163 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12164 | else | |
12165 | # Is the header compilable? | |
12166 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12167 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12168 | cat >conftest.$ac_ext <<_ACEOF | |
12169 | #line $LINENO "configure" | |
12170 | /* confdefs.h. */ | |
12171 | _ACEOF | |
12172 | cat confdefs.h >>conftest.$ac_ext | |
12173 | cat >>conftest.$ac_ext <<_ACEOF | |
12174 | /* end confdefs.h. */ | |
12175 | $ac_includes_default | |
12176 | #include <$ac_header> | |
12177 | _ACEOF | |
12178 | rm -f conftest.$ac_objext | |
12179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12180 | (eval $ac_compile) 2>&5 | |
12181 | ac_status=$? | |
12182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12183 | (exit $ac_status); } && | |
12184 | { ac_try='test -s conftest.$ac_objext' | |
12185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12186 | (eval $ac_try) 2>&5 | |
12187 | ac_status=$? | |
12188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12189 | (exit $ac_status); }; }; then | |
12190 | ac_header_compiler=yes | |
12191 | else | |
12192 | echo "$as_me: failed program was:" >&5 | |
12193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12194 | ||
12195 | ac_header_compiler=no | |
12196 | fi | |
12197 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12198 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12199 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12200 | ||
12201 | # Is the header present? | |
12202 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12203 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12204 | cat >conftest.$ac_ext <<_ACEOF | |
12205 | #line $LINENO "configure" | |
12206 | /* confdefs.h. */ | |
12207 | _ACEOF | |
12208 | cat confdefs.h >>conftest.$ac_ext | |
12209 | cat >>conftest.$ac_ext <<_ACEOF | |
12210 | /* end confdefs.h. */ | |
12211 | #include <$ac_header> | |
12212 | _ACEOF | |
12213 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12214 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12215 | ac_status=$? | |
12216 | grep -v '^ *+' conftest.er1 >conftest.err | |
12217 | rm -f conftest.er1 | |
12218 | cat conftest.err >&5 | |
12219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12220 | (exit $ac_status); } >/dev/null; then | |
12221 | if test -s conftest.err; then | |
12222 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12223 | else | |
12224 | ac_cpp_err= | |
12225 | fi | |
12226 | else | |
12227 | ac_cpp_err=yes | |
12228 | fi | |
12229 | if test -z "$ac_cpp_err"; then | |
12230 | ac_header_preproc=yes | |
12231 | else | |
12232 | echo "$as_me: failed program was:" >&5 | |
12233 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12234 | ||
12235 | ac_header_preproc=no | |
12236 | fi | |
12237 | rm -f conftest.err conftest.$ac_ext | |
12238 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12239 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12240 | ||
12241 | # So? What about this header? | |
12242 | case $ac_header_compiler:$ac_header_preproc in | |
12243 | yes:no ) | |
12244 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12245 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12246 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12247 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12248 | ( | |
12249 | cat <<\_ASBOX | |
12250 | ## ------------------------------------ ## | |
12251 | ## Report this to bug-autoconf@gnu.org. ## | |
12252 | ## ------------------------------------ ## | |
12253 | _ASBOX | |
12254 | ) | | |
12255 | sed "s/^/$as_me: WARNING: /" >&2 | |
12256 | ;; | |
12257 | no:yes ) | |
12258 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12259 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12260 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12261 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12262 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12263 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12264 | ( | |
12265 | cat <<\_ASBOX | |
12266 | ## ------------------------------------ ## | |
12267 | ## Report this to bug-autoconf@gnu.org. ## | |
12268 | ## ------------------------------------ ## | |
12269 | _ASBOX | |
12270 | ) | | |
12271 | sed "s/^/$as_me: WARNING: /" >&2 | |
12272 | ;; | |
12273 | esac | |
12274 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12276 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12278 | else |
e6cc62c6 VS |
12279 | eval "$as_ac_Header=$ac_header_preproc" |
12280 | fi | |
12281 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12282 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12283 | ||
21d1c967 | 12284 | fi |
e6cc62c6 VS |
12285 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12286 | cat >>confdefs.h <<_ACEOF | |
12287 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12288 | _ACEOF | |
12289 | ||
12290 | fi | |
12291 | ||
21d1c967 | 12292 | done |
4f14bcd8 | 12293 | |
5c6fa7d2 | 12294 | |
e6cc62c6 | 12295 | for ac_header in malloc.h |
21d1c967 | 12296 | do |
e6cc62c6 VS |
12297 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12298 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12299 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12300 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12301 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12303 | fi | |
12304 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12305 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12306 | else | |
12307 | # Is the header compilable? | |
12308 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12309 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12310 | cat >conftest.$ac_ext <<_ACEOF | |
12311 | #line $LINENO "configure" | |
12312 | /* confdefs.h. */ | |
12313 | _ACEOF | |
12314 | cat confdefs.h >>conftest.$ac_ext | |
12315 | cat >>conftest.$ac_ext <<_ACEOF | |
12316 | /* end confdefs.h. */ | |
12317 | $ac_includes_default | |
12318 | #include <$ac_header> | |
12319 | _ACEOF | |
12320 | rm -f conftest.$ac_objext | |
12321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12322 | (eval $ac_compile) 2>&5 | |
12323 | ac_status=$? | |
12324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12325 | (exit $ac_status); } && | |
12326 | { ac_try='test -s conftest.$ac_objext' | |
12327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12328 | (eval $ac_try) 2>&5 | |
12329 | ac_status=$? | |
12330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12331 | (exit $ac_status); }; }; then | |
12332 | ac_header_compiler=yes | |
12333 | else | |
12334 | echo "$as_me: failed program was:" >&5 | |
12335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12336 | ||
12337 | ac_header_compiler=no | |
12338 | fi | |
12339 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12340 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12341 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12342 | ||
12343 | # Is the header present? | |
12344 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12345 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12346 | cat >conftest.$ac_ext <<_ACEOF | |
12347 | #line $LINENO "configure" | |
12348 | /* confdefs.h. */ | |
12349 | _ACEOF | |
12350 | cat confdefs.h >>conftest.$ac_ext | |
12351 | cat >>conftest.$ac_ext <<_ACEOF | |
12352 | /* end confdefs.h. */ | |
12353 | #include <$ac_header> | |
12354 | _ACEOF | |
12355 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12356 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12357 | ac_status=$? | |
12358 | grep -v '^ *+' conftest.er1 >conftest.err | |
12359 | rm -f conftest.er1 | |
12360 | cat conftest.err >&5 | |
12361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12362 | (exit $ac_status); } >/dev/null; then | |
12363 | if test -s conftest.err; then | |
12364 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12365 | else | |
12366 | ac_cpp_err= | |
12367 | fi | |
12368 | else | |
12369 | ac_cpp_err=yes | |
12370 | fi | |
12371 | if test -z "$ac_cpp_err"; then | |
12372 | ac_header_preproc=yes | |
12373 | else | |
12374 | echo "$as_me: failed program was:" >&5 | |
12375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12376 | ||
12377 | ac_header_preproc=no | |
12378 | fi | |
12379 | rm -f conftest.err conftest.$ac_ext | |
12380 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12381 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12382 | ||
12383 | # So? What about this header? | |
12384 | case $ac_header_compiler:$ac_header_preproc in | |
12385 | yes:no ) | |
12386 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12387 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12388 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12389 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12390 | ( | |
12391 | cat <<\_ASBOX | |
12392 | ## ------------------------------------ ## | |
12393 | ## Report this to bug-autoconf@gnu.org. ## | |
12394 | ## ------------------------------------ ## | |
12395 | _ASBOX | |
12396 | ) | | |
12397 | sed "s/^/$as_me: WARNING: /" >&2 | |
12398 | ;; | |
12399 | no:yes ) | |
12400 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12401 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12402 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12403 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12404 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12405 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12406 | ( | |
12407 | cat <<\_ASBOX | |
12408 | ## ------------------------------------ ## | |
12409 | ## Report this to bug-autoconf@gnu.org. ## | |
12410 | ## ------------------------------------ ## | |
12411 | _ASBOX | |
12412 | ) | | |
12413 | sed "s/^/$as_me: WARNING: /" >&2 | |
12414 | ;; | |
12415 | esac | |
12416 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12417 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12418 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12420 | else | |
12421 | eval "$as_ac_Header=$ac_header_preproc" | |
d4158b5d | 12422 | fi |
e6cc62c6 VS |
12423 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12424 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12425 | ||
21d1c967 | 12426 | fi |
e6cc62c6 VS |
12427 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12428 | cat >>confdefs.h <<_ACEOF | |
12429 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12430 | _ACEOF | |
12431 | ||
12432 | fi | |
12433 | ||
12434 | done | |
12435 | ||
12436 | ||
12437 | for ac_header in unistd.h | |
12438 | do | |
12439 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12440 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12441 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12442 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12443 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12445 | fi | |
12446 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12447 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12448 | else | |
12449 | # Is the header compilable? | |
12450 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12451 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12452 | cat >conftest.$ac_ext <<_ACEOF | |
12453 | #line $LINENO "configure" | |
12454 | /* confdefs.h. */ | |
12455 | _ACEOF | |
12456 | cat confdefs.h >>conftest.$ac_ext | |
12457 | cat >>conftest.$ac_ext <<_ACEOF | |
12458 | /* end confdefs.h. */ | |
12459 | $ac_includes_default | |
12460 | #include <$ac_header> | |
12461 | _ACEOF | |
12462 | rm -f conftest.$ac_objext | |
12463 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12464 | (eval $ac_compile) 2>&5 | |
12465 | ac_status=$? | |
12466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12467 | (exit $ac_status); } && | |
12468 | { ac_try='test -s conftest.$ac_objext' | |
12469 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12470 | (eval $ac_try) 2>&5 | |
12471 | ac_status=$? | |
12472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12473 | (exit $ac_status); }; }; then | |
12474 | ac_header_compiler=yes | |
12475 | else | |
12476 | echo "$as_me: failed program was:" >&5 | |
12477 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12478 | ||
12479 | ac_header_compiler=no | |
12480 | fi | |
12481 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12482 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12483 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12484 | ||
12485 | # Is the header present? | |
12486 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12487 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12488 | cat >conftest.$ac_ext <<_ACEOF | |
12489 | #line $LINENO "configure" | |
12490 | /* confdefs.h. */ | |
12491 | _ACEOF | |
12492 | cat confdefs.h >>conftest.$ac_ext | |
12493 | cat >>conftest.$ac_ext <<_ACEOF | |
12494 | /* end confdefs.h. */ | |
12495 | #include <$ac_header> | |
12496 | _ACEOF | |
12497 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12498 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12499 | ac_status=$? | |
12500 | grep -v '^ *+' conftest.er1 >conftest.err | |
12501 | rm -f conftest.er1 | |
12502 | cat conftest.err >&5 | |
12503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12504 | (exit $ac_status); } >/dev/null; then | |
12505 | if test -s conftest.err; then | |
12506 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12507 | else | |
12508 | ac_cpp_err= | |
12509 | fi | |
a0b9e27f | 12510 | else |
e6cc62c6 VS |
12511 | ac_cpp_err=yes |
12512 | fi | |
12513 | if test -z "$ac_cpp_err"; then | |
12514 | ac_header_preproc=yes | |
12515 | else | |
12516 | echo "$as_me: failed program was:" >&5 | |
12517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12518 | ||
12519 | ac_header_preproc=no | |
12520 | fi | |
12521 | rm -f conftest.err conftest.$ac_ext | |
12522 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12523 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12524 | ||
12525 | # So? What about this header? | |
12526 | case $ac_header_compiler:$ac_header_preproc in | |
12527 | yes:no ) | |
12528 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12529 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12530 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12531 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12532 | ( | |
12533 | cat <<\_ASBOX | |
12534 | ## ------------------------------------ ## | |
12535 | ## Report this to bug-autoconf@gnu.org. ## | |
12536 | ## ------------------------------------ ## | |
12537 | _ASBOX | |
12538 | ) | | |
12539 | sed "s/^/$as_me: WARNING: /" >&2 | |
12540 | ;; | |
12541 | no:yes ) | |
12542 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12543 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12544 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12545 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12546 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12547 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12548 | ( | |
12549 | cat <<\_ASBOX | |
12550 | ## ------------------------------------ ## | |
12551 | ## Report this to bug-autoconf@gnu.org. ## | |
12552 | ## ------------------------------------ ## | |
12553 | _ASBOX | |
12554 | ) | | |
12555 | sed "s/^/$as_me: WARNING: /" >&2 | |
12556 | ;; | |
12557 | esac | |
12558 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12559 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12560 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12562 | else | |
12563 | eval "$as_ac_Header=$ac_header_preproc" | |
12564 | fi | |
12565 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12566 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12567 | ||
12568 | fi | |
12569 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12570 | cat >>confdefs.h <<_ACEOF | |
12571 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12572 | _ACEOF | |
12573 | ||
d4158b5d | 12574 | fi |
e6cc62c6 | 12575 | |
21d1c967 | 12576 | done |
f6bcfd97 | 12577 | |
e6cc62c6 VS |
12578 | |
12579 | for ac_header in wchar.h | |
12580 | do | |
12581 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12582 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12583 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12584 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12585 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12587 | fi | |
12588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12590 | else | |
12591 | # Is the header compilable? | |
12592 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12593 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12594 | cat >conftest.$ac_ext <<_ACEOF | |
12595 | #line $LINENO "configure" | |
12596 | /* confdefs.h. */ | |
12597 | _ACEOF | |
12598 | cat confdefs.h >>conftest.$ac_ext | |
12599 | cat >>conftest.$ac_ext <<_ACEOF | |
12600 | /* end confdefs.h. */ | |
12601 | $ac_includes_default | |
12602 | #include <$ac_header> | |
12603 | _ACEOF | |
12604 | rm -f conftest.$ac_objext | |
12605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12606 | (eval $ac_compile) 2>&5 | |
12607 | ac_status=$? | |
12608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12609 | (exit $ac_status); } && | |
12610 | { ac_try='test -s conftest.$ac_objext' | |
12611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12612 | (eval $ac_try) 2>&5 | |
12613 | ac_status=$? | |
12614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12615 | (exit $ac_status); }; }; then | |
12616 | ac_header_compiler=yes | |
12617 | else | |
12618 | echo "$as_me: failed program was:" >&5 | |
12619 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12620 | ||
12621 | ac_header_compiler=no | |
12622 | fi | |
12623 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12624 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12625 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12626 | ||
12627 | # Is the header present? | |
12628 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12629 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12630 | cat >conftest.$ac_ext <<_ACEOF | |
12631 | #line $LINENO "configure" | |
12632 | /* confdefs.h. */ | |
12633 | _ACEOF | |
12634 | cat confdefs.h >>conftest.$ac_ext | |
12635 | cat >>conftest.$ac_ext <<_ACEOF | |
12636 | /* end confdefs.h. */ | |
12637 | #include <$ac_header> | |
12638 | _ACEOF | |
12639 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12640 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12641 | ac_status=$? | |
12642 | grep -v '^ *+' conftest.er1 >conftest.err | |
12643 | rm -f conftest.er1 | |
12644 | cat conftest.err >&5 | |
12645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12646 | (exit $ac_status); } >/dev/null; then | |
12647 | if test -s conftest.err; then | |
12648 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12649 | else | |
12650 | ac_cpp_err= | |
12651 | fi | |
12652 | else | |
12653 | ac_cpp_err=yes | |
12654 | fi | |
12655 | if test -z "$ac_cpp_err"; then | |
12656 | ac_header_preproc=yes | |
12657 | else | |
12658 | echo "$as_me: failed program was:" >&5 | |
12659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12660 | ||
12661 | ac_header_preproc=no | |
12662 | fi | |
12663 | rm -f conftest.err conftest.$ac_ext | |
12664 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12665 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12666 | ||
12667 | # So? What about this header? | |
12668 | case $ac_header_compiler:$ac_header_preproc in | |
12669 | yes:no ) | |
12670 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12671 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12672 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12673 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12674 | ( | |
12675 | cat <<\_ASBOX | |
12676 | ## ------------------------------------ ## | |
12677 | ## Report this to bug-autoconf@gnu.org. ## | |
12678 | ## ------------------------------------ ## | |
12679 | _ASBOX | |
12680 | ) | | |
12681 | sed "s/^/$as_me: WARNING: /" >&2 | |
12682 | ;; | |
12683 | no:yes ) | |
12684 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12685 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12686 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12687 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12688 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12689 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12690 | ( | |
12691 | cat <<\_ASBOX | |
12692 | ## ------------------------------------ ## | |
12693 | ## Report this to bug-autoconf@gnu.org. ## | |
12694 | ## ------------------------------------ ## | |
12695 | _ASBOX | |
12696 | ) | | |
12697 | sed "s/^/$as_me: WARNING: /" >&2 | |
12698 | ;; | |
12699 | esac | |
12700 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12701 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12702 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12704 | else | |
12705 | eval "$as_ac_Header=$ac_header_preproc" | |
12706 | fi | |
12707 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12708 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12709 | ||
90dd450c | 12710 | fi |
e6cc62c6 VS |
12711 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12712 | cat >>confdefs.h <<_ACEOF | |
12713 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12714 | _ACEOF | |
12715 | ||
12716 | fi | |
12717 | ||
12718 | done | |
90dd450c | 12719 | |
e6cc62c6 VS |
12720 | |
12721 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
12722 | ||
12723 | for ac_header in wcstr.h | |
21d1c967 | 12724 | do |
e6cc62c6 VS |
12725 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12726 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12727 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12728 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12729 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12731 | fi | |
12732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12734 | else | |
12735 | # Is the header compilable? | |
12736 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12737 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12738 | cat >conftest.$ac_ext <<_ACEOF | |
12739 | #line $LINENO "configure" | |
12740 | /* confdefs.h. */ | |
12741 | _ACEOF | |
12742 | cat confdefs.h >>conftest.$ac_ext | |
12743 | cat >>conftest.$ac_ext <<_ACEOF | |
12744 | /* end confdefs.h. */ | |
12745 | $ac_includes_default | |
12746 | #include <$ac_header> | |
12747 | _ACEOF | |
12748 | rm -f conftest.$ac_objext | |
12749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12750 | (eval $ac_compile) 2>&5 | |
12751 | ac_status=$? | |
12752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12753 | (exit $ac_status); } && | |
12754 | { ac_try='test -s conftest.$ac_objext' | |
12755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12756 | (eval $ac_try) 2>&5 | |
12757 | ac_status=$? | |
12758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12759 | (exit $ac_status); }; }; then | |
12760 | ac_header_compiler=yes | |
12761 | else | |
12762 | echo "$as_me: failed program was:" >&5 | |
12763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12764 | ||
12765 | ac_header_compiler=no | |
12766 | fi | |
12767 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12768 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12769 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12770 | ||
12771 | # Is the header present? | |
12772 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12773 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12774 | cat >conftest.$ac_ext <<_ACEOF | |
12775 | #line $LINENO "configure" | |
12776 | /* confdefs.h. */ | |
12777 | _ACEOF | |
12778 | cat confdefs.h >>conftest.$ac_ext | |
12779 | cat >>conftest.$ac_ext <<_ACEOF | |
12780 | /* end confdefs.h. */ | |
12781 | #include <$ac_header> | |
12782 | _ACEOF | |
12783 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12784 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12785 | ac_status=$? | |
12786 | grep -v '^ *+' conftest.er1 >conftest.err | |
12787 | rm -f conftest.er1 | |
12788 | cat conftest.err >&5 | |
12789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12790 | (exit $ac_status); } >/dev/null; then | |
12791 | if test -s conftest.err; then | |
12792 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12793 | else | |
12794 | ac_cpp_err= | |
12795 | fi | |
12796 | else | |
12797 | ac_cpp_err=yes | |
12798 | fi | |
12799 | if test -z "$ac_cpp_err"; then | |
12800 | ac_header_preproc=yes | |
12801 | else | |
12802 | echo "$as_me: failed program was:" >&5 | |
12803 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12804 | ||
12805 | ac_header_preproc=no | |
12806 | fi | |
12807 | rm -f conftest.err conftest.$ac_ext | |
12808 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12809 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12810 | ||
12811 | # So? What about this header? | |
12812 | case $ac_header_compiler:$ac_header_preproc in | |
12813 | yes:no ) | |
12814 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12815 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12816 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12817 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12818 | ( | |
12819 | cat <<\_ASBOX | |
12820 | ## ------------------------------------ ## | |
12821 | ## Report this to bug-autoconf@gnu.org. ## | |
12822 | ## ------------------------------------ ## | |
12823 | _ASBOX | |
12824 | ) | | |
12825 | sed "s/^/$as_me: WARNING: /" >&2 | |
12826 | ;; | |
12827 | no:yes ) | |
12828 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12829 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12830 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12831 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12832 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12833 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12834 | ( | |
12835 | cat <<\_ASBOX | |
12836 | ## ------------------------------------ ## | |
12837 | ## Report this to bug-autoconf@gnu.org. ## | |
12838 | ## ------------------------------------ ## | |
12839 | _ASBOX | |
12840 | ) | | |
12841 | sed "s/^/$as_me: WARNING: /" >&2 | |
12842 | ;; | |
12843 | esac | |
12844 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12845 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12846 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12848 | else | |
12849 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 12850 | fi |
e6cc62c6 VS |
12851 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12852 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12853 | ||
4f14bcd8 | 12854 | fi |
e6cc62c6 VS |
12855 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12856 | cat >>confdefs.h <<_ACEOF | |
12857 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12858 | _ACEOF | |
12859 | ||
12860 | fi | |
12861 | ||
12862 | done | |
12863 | ||
12864 | fi | |
12865 | ||
12866 | ||
12867 | for ac_header in fnmatch.h | |
12868 | do | |
12869 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12870 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12871 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12872 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12873 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12875 | fi | |
12876 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12877 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12878 | else | |
12879 | # Is the header compilable? | |
12880 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12881 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12882 | cat >conftest.$ac_ext <<_ACEOF | |
12883 | #line $LINENO "configure" | |
12884 | /* confdefs.h. */ | |
12885 | _ACEOF | |
12886 | cat confdefs.h >>conftest.$ac_ext | |
12887 | cat >>conftest.$ac_ext <<_ACEOF | |
12888 | /* end confdefs.h. */ | |
12889 | $ac_includes_default | |
12890 | #include <$ac_header> | |
12891 | _ACEOF | |
12892 | rm -f conftest.$ac_objext | |
12893 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12894 | (eval $ac_compile) 2>&5 | |
12895 | ac_status=$? | |
12896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12897 | (exit $ac_status); } && | |
12898 | { ac_try='test -s conftest.$ac_objext' | |
12899 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12900 | (eval $ac_try) 2>&5 | |
12901 | ac_status=$? | |
12902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12903 | (exit $ac_status); }; }; then | |
12904 | ac_header_compiler=yes | |
12905 | else | |
12906 | echo "$as_me: failed program was:" >&5 | |
12907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12908 | ||
12909 | ac_header_compiler=no | |
12910 | fi | |
12911 | rm -f conftest.$ac_objext conftest.$ac_ext | |
12912 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12913 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12914 | ||
12915 | # Is the header present? | |
12916 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12917 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12918 | cat >conftest.$ac_ext <<_ACEOF | |
12919 | #line $LINENO "configure" | |
12920 | /* confdefs.h. */ | |
12921 | _ACEOF | |
12922 | cat confdefs.h >>conftest.$ac_ext | |
12923 | cat >>conftest.$ac_ext <<_ACEOF | |
12924 | /* end confdefs.h. */ | |
12925 | #include <$ac_header> | |
12926 | _ACEOF | |
12927 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12928 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12929 | ac_status=$? | |
12930 | grep -v '^ *+' conftest.er1 >conftest.err | |
12931 | rm -f conftest.er1 | |
12932 | cat conftest.err >&5 | |
12933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12934 | (exit $ac_status); } >/dev/null; then | |
12935 | if test -s conftest.err; then | |
12936 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12937 | else | |
12938 | ac_cpp_err= | |
12939 | fi | |
12940 | else | |
12941 | ac_cpp_err=yes | |
12942 | fi | |
12943 | if test -z "$ac_cpp_err"; then | |
12944 | ac_header_preproc=yes | |
12945 | else | |
12946 | echo "$as_me: failed program was:" >&5 | |
12947 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12948 | ||
12949 | ac_header_preproc=no | |
12950 | fi | |
12951 | rm -f conftest.err conftest.$ac_ext | |
12952 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12953 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12954 | ||
12955 | # So? What about this header? | |
12956 | case $ac_header_compiler:$ac_header_preproc in | |
12957 | yes:no ) | |
12958 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12959 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12960 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12961 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12962 | ( | |
12963 | cat <<\_ASBOX | |
12964 | ## ------------------------------------ ## | |
12965 | ## Report this to bug-autoconf@gnu.org. ## | |
12966 | ## ------------------------------------ ## | |
12967 | _ASBOX | |
12968 | ) | | |
12969 | sed "s/^/$as_me: WARNING: /" >&2 | |
12970 | ;; | |
12971 | no:yes ) | |
12972 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12973 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12974 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12975 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12976 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12977 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12978 | ( | |
12979 | cat <<\_ASBOX | |
12980 | ## ------------------------------------ ## | |
12981 | ## Report this to bug-autoconf@gnu.org. ## | |
12982 | ## ------------------------------------ ## | |
12983 | _ASBOX | |
12984 | ) | | |
12985 | sed "s/^/$as_me: WARNING: /" >&2 | |
12986 | ;; | |
12987 | esac | |
12988 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12989 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12990 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12992 | else |
e6cc62c6 VS |
12993 | eval "$as_ac_Header=$ac_header_preproc" |
12994 | fi | |
12995 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12996 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12997 | ||
21d1c967 | 12998 | fi |
e6cc62c6 VS |
12999 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13000 | cat >>confdefs.h <<_ACEOF | |
13001 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13002 | _ACEOF | |
13003 | ||
13004 | fi | |
13005 | ||
21d1c967 | 13006 | done |
90dd450c | 13007 | |
5c6fa7d2 | 13008 | |
a0b9e27f | 13009 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13010 | |
13011 | for ac_func in fnmatch | |
21d1c967 | 13012 | do |
e6cc62c6 VS |
13013 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13014 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13015 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13016 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13018 | else | |
13019 | cat >conftest.$ac_ext <<_ACEOF | |
13020 | #line $LINENO "configure" | |
13021 | /* confdefs.h. */ | |
13022 | _ACEOF | |
13023 | cat confdefs.h >>conftest.$ac_ext | |
13024 | cat >>conftest.$ac_ext <<_ACEOF | |
13025 | /* end confdefs.h. */ | |
a0b9e27f | 13026 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13027 | which can conflict with char $ac_func (); below. |
13028 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13029 | <limits.h> exists even on freestanding compilers. */ | |
13030 | #ifdef __STDC__ | |
13031 | # include <limits.h> | |
13032 | #else | |
13033 | # include <assert.h> | |
13034 | #endif | |
a0b9e27f | 13035 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13036 | #ifdef __cplusplus |
13037 | extern "C" | |
13038 | { | |
13039 | #endif | |
a0b9e27f | 13040 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13041 | builtin and then its argument prototype would still apply. */ |
13042 | char $ac_func (); | |
a0b9e27f MB |
13043 | /* The GNU C library defines this for functions which it implements |
13044 | to always fail with ENOSYS. Some functions are actually named | |
13045 | something starting with __ and the normal name is an alias. */ | |
13046 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13047 | choke me | |
13048 | #else | |
e6cc62c6 VS |
13049 | char (*f) () = $ac_func; |
13050 | #endif | |
13051 | #ifdef __cplusplus | |
13052 | } | |
a0b9e27f MB |
13053 | #endif |
13054 | ||
e6cc62c6 VS |
13055 | int |
13056 | main () | |
13057 | { | |
13058 | return f != $ac_func; | |
13059 | ; | |
13060 | return 0; | |
13061 | } | |
13062 | _ACEOF | |
13063 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13065 | (eval $ac_link) 2>&5 | |
13066 | ac_status=$? | |
13067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13068 | (exit $ac_status); } && | |
13069 | { ac_try='test -s conftest$ac_exeext' | |
13070 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13071 | (eval $ac_try) 2>&5 | |
13072 | ac_status=$? | |
13073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13074 | (exit $ac_status); }; }; then | |
13075 | eval "$as_ac_var=yes" | |
13076 | else | |
13077 | echo "$as_me: failed program was:" >&5 | |
13078 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13079 | ||
13080 | eval "$as_ac_var=no" | |
13081 | fi | |
13082 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
13083 | fi | |
13084 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13085 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13086 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13087 | cat >>confdefs.h <<_ACEOF | |
13088 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13089 | _ACEOF | |
32832908 | 13090 | |
21d1c967 GD |
13091 | fi |
13092 | done | |
90dd450c | 13093 | |
a0b9e27f | 13094 | fi |
90dd450c | 13095 | |
e6cc62c6 VS |
13096 | |
13097 | for ac_header in langinfo.h | |
21d1c967 | 13098 | do |
e6cc62c6 VS |
13099 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13100 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13101 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13102 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13103 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13105 | fi | |
13106 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13107 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13108 | else | |
13109 | # Is the header compilable? | |
13110 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13111 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13112 | cat >conftest.$ac_ext <<_ACEOF | |
13113 | #line $LINENO "configure" | |
13114 | /* confdefs.h. */ | |
13115 | _ACEOF | |
13116 | cat confdefs.h >>conftest.$ac_ext | |
13117 | cat >>conftest.$ac_ext <<_ACEOF | |
13118 | /* end confdefs.h. */ | |
13119 | $ac_includes_default | |
13120 | #include <$ac_header> | |
13121 | _ACEOF | |
13122 | rm -f conftest.$ac_objext | |
13123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13124 | (eval $ac_compile) 2>&5 | |
13125 | ac_status=$? | |
13126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13127 | (exit $ac_status); } && | |
13128 | { ac_try='test -s conftest.$ac_objext' | |
13129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13130 | (eval $ac_try) 2>&5 | |
13131 | ac_status=$? | |
13132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13133 | (exit $ac_status); }; }; then | |
13134 | ac_header_compiler=yes | |
13135 | else | |
13136 | echo "$as_me: failed program was:" >&5 | |
13137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13138 | ||
13139 | ac_header_compiler=no | |
13140 | fi | |
13141 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13142 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13143 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13144 | ||
13145 | # Is the header present? | |
13146 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13147 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13148 | cat >conftest.$ac_ext <<_ACEOF | |
13149 | #line $LINENO "configure" | |
13150 | /* confdefs.h. */ | |
13151 | _ACEOF | |
13152 | cat confdefs.h >>conftest.$ac_ext | |
13153 | cat >>conftest.$ac_ext <<_ACEOF | |
13154 | /* end confdefs.h. */ | |
13155 | #include <$ac_header> | |
13156 | _ACEOF | |
13157 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13158 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13159 | ac_status=$? | |
13160 | grep -v '^ *+' conftest.er1 >conftest.err | |
13161 | rm -f conftest.er1 | |
13162 | cat conftest.err >&5 | |
13163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13164 | (exit $ac_status); } >/dev/null; then | |
13165 | if test -s conftest.err; then | |
13166 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13167 | else | |
13168 | ac_cpp_err= | |
13169 | fi | |
13170 | else | |
13171 | ac_cpp_err=yes | |
13172 | fi | |
13173 | if test -z "$ac_cpp_err"; then | |
13174 | ac_header_preproc=yes | |
13175 | else | |
13176 | echo "$as_me: failed program was:" >&5 | |
13177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13178 | ||
13179 | ac_header_preproc=no | |
13180 | fi | |
13181 | rm -f conftest.err conftest.$ac_ext | |
13182 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13183 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13184 | ||
13185 | # So? What about this header? | |
13186 | case $ac_header_compiler:$ac_header_preproc in | |
13187 | yes:no ) | |
13188 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13189 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13190 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13191 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13192 | ( | |
13193 | cat <<\_ASBOX | |
13194 | ## ------------------------------------ ## | |
13195 | ## Report this to bug-autoconf@gnu.org. ## | |
13196 | ## ------------------------------------ ## | |
13197 | _ASBOX | |
13198 | ) | | |
13199 | sed "s/^/$as_me: WARNING: /" >&2 | |
13200 | ;; | |
13201 | no:yes ) | |
13202 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13203 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13204 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13205 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13206 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13207 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13208 | ( | |
13209 | cat <<\_ASBOX | |
13210 | ## ------------------------------------ ## | |
13211 | ## Report this to bug-autoconf@gnu.org. ## | |
13212 | ## ------------------------------------ ## | |
13213 | _ASBOX | |
13214 | ) | | |
13215 | sed "s/^/$as_me: WARNING: /" >&2 | |
13216 | ;; | |
13217 | esac | |
13218 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13220 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13222 | else | |
13223 | eval "$as_ac_Header=$ac_header_preproc" | |
90dd450c | 13224 | fi |
e6cc62c6 VS |
13225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13226 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13227 | ||
4f14bcd8 | 13228 | fi |
e6cc62c6 VS |
13229 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13230 | cat >>confdefs.h <<_ACEOF | |
13231 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13232 | _ACEOF | |
13233 | ||
21d1c967 | 13234 | fi |
e6cc62c6 | 13235 | |
21d1c967 | 13236 | done |
3a922bb4 | 13237 | |
8284b0c5 | 13238 | |
4f5a7f74 VZ |
13239 | case "${host}" in |
13240 | *-pc-os2_emx | *-pc-os2-emx ) | |
13241 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13242 | LIBS="$LIBS -lintl" | |
13243 | fi | |
13244 | ;; | |
13245 | esac | |
1542ea39 | 13246 | |
a0b9e27f | 13247 | if test "$wxUSE_GUI" = "yes"; then |
73d617c9 | 13248 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then |
e6cc62c6 | 13249 | |
eb69fda5 | 13250 | for ac_header in X11/Xlib.h |
21d1c967 | 13251 | do |
e6cc62c6 VS |
13252 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13253 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13254 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13255 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13256 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13258 | fi | |
13259 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13260 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13261 | else | |
13262 | # Is the header compilable? | |
13263 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13264 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13265 | cat >conftest.$ac_ext <<_ACEOF | |
13266 | #line $LINENO "configure" | |
13267 | /* confdefs.h. */ | |
13268 | _ACEOF | |
13269 | cat confdefs.h >>conftest.$ac_ext | |
13270 | cat >>conftest.$ac_ext <<_ACEOF | |
13271 | /* end confdefs.h. */ | |
13272 | $ac_includes_default | |
13273 | #include <$ac_header> | |
13274 | _ACEOF | |
13275 | rm -f conftest.$ac_objext | |
13276 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13277 | (eval $ac_compile) 2>&5 | |
13278 | ac_status=$? | |
13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13280 | (exit $ac_status); } && | |
13281 | { ac_try='test -s conftest.$ac_objext' | |
13282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13283 | (eval $ac_try) 2>&5 | |
13284 | ac_status=$? | |
13285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13286 | (exit $ac_status); }; }; then | |
13287 | ac_header_compiler=yes | |
13288 | else | |
13289 | echo "$as_me: failed program was:" >&5 | |
13290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13291 | ||
13292 | ac_header_compiler=no | |
13293 | fi | |
13294 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13295 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13296 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13297 | ||
13298 | # Is the header present? | |
13299 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13300 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13301 | cat >conftest.$ac_ext <<_ACEOF | |
13302 | #line $LINENO "configure" | |
13303 | /* confdefs.h. */ | |
13304 | _ACEOF | |
13305 | cat confdefs.h >>conftest.$ac_ext | |
13306 | cat >>conftest.$ac_ext <<_ACEOF | |
13307 | /* end confdefs.h. */ | |
13308 | #include <$ac_header> | |
13309 | _ACEOF | |
13310 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13311 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13312 | ac_status=$? | |
13313 | grep -v '^ *+' conftest.er1 >conftest.err | |
13314 | rm -f conftest.er1 | |
13315 | cat conftest.err >&5 | |
13316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13317 | (exit $ac_status); } >/dev/null; then | |
13318 | if test -s conftest.err; then | |
13319 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13320 | else | |
13321 | ac_cpp_err= | |
13322 | fi | |
13323 | else | |
13324 | ac_cpp_err=yes | |
13325 | fi | |
13326 | if test -z "$ac_cpp_err"; then | |
13327 | ac_header_preproc=yes | |
13328 | else | |
13329 | echo "$as_me: failed program was:" >&5 | |
13330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13331 | ||
13332 | ac_header_preproc=no | |
13333 | fi | |
13334 | rm -f conftest.err conftest.$ac_ext | |
13335 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13336 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13337 | ||
13338 | # So? What about this header? | |
13339 | case $ac_header_compiler:$ac_header_preproc in | |
13340 | yes:no ) | |
13341 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13342 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13343 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13344 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13345 | ( | |
13346 | cat <<\_ASBOX | |
13347 | ## ------------------------------------ ## | |
13348 | ## Report this to bug-autoconf@gnu.org. ## | |
13349 | ## ------------------------------------ ## | |
13350 | _ASBOX | |
13351 | ) | | |
13352 | sed "s/^/$as_me: WARNING: /" >&2 | |
13353 | ;; | |
13354 | no:yes ) | |
13355 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13356 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13357 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13358 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13359 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13360 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13361 | ( | |
13362 | cat <<\_ASBOX | |
13363 | ## ------------------------------------ ## | |
13364 | ## Report this to bug-autoconf@gnu.org. ## | |
13365 | ## ------------------------------------ ## | |
13366 | _ASBOX | |
13367 | ) | | |
13368 | sed "s/^/$as_me: WARNING: /" >&2 | |
13369 | ;; | |
13370 | esac | |
13371 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13372 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13373 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13375 | else | |
13376 | eval "$as_ac_Header=$ac_header_preproc" | |
3a922bb4 | 13377 | fi |
e6cc62c6 VS |
13378 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13379 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13380 | ||
90dd450c | 13381 | fi |
e6cc62c6 VS |
13382 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13383 | cat >>confdefs.h <<_ACEOF | |
13384 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13385 | _ACEOF | |
13386 | ||
247f5006 | 13387 | fi |
e6cc62c6 | 13388 | |
eb69fda5 VS |
13389 | done |
13390 | ||
13391 | ||
13392 | for ac_header in X11/XKBlib.h | |
13393 | do | |
13394 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13395 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13396 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13397 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13399 | else | |
13400 | cat >conftest.$ac_ext <<_ACEOF | |
13401 | #line $LINENO "configure" | |
13402 | /* confdefs.h. */ | |
13403 | _ACEOF | |
13404 | cat confdefs.h >>conftest.$ac_ext | |
13405 | cat >>conftest.$ac_ext <<_ACEOF | |
13406 | /* end confdefs.h. */ | |
13407 | ||
13408 | #if HAVE_X11_XLIB_H | |
13409 | #include <X11/Xlib.h> | |
13410 | #endif | |
13411 | ||
13412 | ||
13413 | #include <$ac_header> | |
13414 | _ACEOF | |
13415 | rm -f conftest.$ac_objext | |
13416 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13417 | (eval $ac_compile) 2>&5 | |
13418 | ac_status=$? | |
13419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13420 | (exit $ac_status); } && | |
13421 | { ac_try='test -s conftest.$ac_objext' | |
13422 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13423 | (eval $ac_try) 2>&5 | |
13424 | ac_status=$? | |
13425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13426 | (exit $ac_status); }; }; then | |
13427 | eval "$as_ac_Header=yes" | |
13428 | else | |
13429 | echo "$as_me: failed program was:" >&5 | |
13430 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13431 | ||
13432 | eval "$as_ac_Header=no" | |
13433 | fi | |
13434 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13435 | fi | |
13436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13437 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13438 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13439 | cat >>confdefs.h <<_ACEOF | |
13440 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13441 | _ACEOF | |
13442 | ||
13443 | fi | |
13444 | ||
247f5006 VZ |
13445 | done |
13446 | ||
a0b9e27f MB |
13447 | fi |
13448 | fi | |
247f5006 | 13449 | |
247f5006 | 13450 | |
e6cc62c6 VS |
13451 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13452 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13453 | if test "${ac_cv_c_const+set}" = set; then | |
13454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13455 | else | |
13456 | cat >conftest.$ac_ext <<_ACEOF | |
13457 | #line $LINENO "configure" | |
13458 | /* confdefs.h. */ | |
13459 | _ACEOF | |
13460 | cat confdefs.h >>conftest.$ac_ext | |
13461 | cat >>conftest.$ac_ext <<_ACEOF | |
13462 | /* end confdefs.h. */ | |
13463 | ||
13464 | int | |
13465 | main () | |
13466 | { | |
13467 | /* FIXME: Include the comments suggested by Paul. */ | |
13468 | #ifndef __cplusplus | |
13469 | /* Ultrix mips cc rejects this. */ | |
13470 | typedef int charset[2]; | |
13471 | const charset x; | |
13472 | /* SunOS 4.1.1 cc rejects this. */ | |
13473 | char const *const *ccp; | |
13474 | char **p; | |
13475 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13476 | struct point {int x, y;}; | |
13477 | static struct point const zero = {0,0}; | |
13478 | /* AIX XL C 1.02.0.0 rejects this. | |
13479 | It does not let you subtract one const X* pointer from another in | |
13480 | an arm of an if-expression whose if-part is not a constant | |
13481 | expression */ | |
13482 | const char *g = "string"; | |
13483 | ccp = &g + (g ? g-g : 0); | |
13484 | /* HPUX 7.0 cc rejects these. */ | |
13485 | ++ccp; | |
13486 | p = (char**) ccp; | |
13487 | ccp = (char const *const *) p; | |
13488 | { /* SCO 3.2v4 cc rejects this. */ | |
13489 | char *t; | |
13490 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13491 | ||
13492 | *t++ = 0; | |
13493 | } | |
13494 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13495 | int x[] = {25, 17}; | |
13496 | const int *foo = &x[0]; | |
13497 | ++foo; | |
13498 | } | |
13499 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13500 | typedef const int *iptr; | |
13501 | iptr p = 0; | |
13502 | ++p; | |
13503 | } | |
13504 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13505 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13506 | struct s { int j; const int *ap[3]; }; | |
13507 | struct s *b; b->j = 5; | |
13508 | } | |
13509 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13510 | const int foo = 10; | |
13511 | } | |
13512 | #endif | |
13513 | ||
13514 | ; | |
13515 | return 0; | |
13516 | } | |
13517 | _ACEOF | |
13518 | rm -f conftest.$ac_objext | |
13519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13520 | (eval $ac_compile) 2>&5 | |
13521 | ac_status=$? | |
13522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13523 | (exit $ac_status); } && | |
13524 | { ac_try='test -s conftest.$ac_objext' | |
13525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13526 | (eval $ac_try) 2>&5 | |
13527 | ac_status=$? | |
13528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13529 | (exit $ac_status); }; }; then | |
a0b9e27f | 13530 | ac_cv_c_const=yes |
247f5006 | 13531 | else |
e6cc62c6 VS |
13532 | echo "$as_me: failed program was:" >&5 |
13533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13534 | ||
13535 | ac_cv_c_const=no | |
247f5006 | 13536 | fi |
e6cc62c6 | 13537 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 13538 | fi |
e6cc62c6 VS |
13539 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13540 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 13541 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
13542 | |
13543 | cat >>confdefs.h <<\_ACEOF | |
13544 | #define const | |
13545 | _ACEOF | |
10f2d63a | 13546 | |
90dd450c | 13547 | fi |
81809c07 | 13548 | |
e6cc62c6 VS |
13549 | echo "$as_me:$LINENO: checking for inline" >&5 |
13550 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13551 | if test "${ac_cv_c_inline+set}" = set; then | |
13552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 13553 | else |
a0b9e27f MB |
13554 | ac_cv_c_inline=no |
13555 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 VS |
13556 | cat >conftest.$ac_ext <<_ACEOF |
13557 | #line $LINENO "configure" | |
13558 | /* confdefs.h. */ | |
13559 | _ACEOF | |
13560 | cat confdefs.h >>conftest.$ac_ext | |
13561 | cat >>conftest.$ac_ext <<_ACEOF | |
13562 | /* end confdefs.h. */ | |
13563 | #ifndef __cplusplus | |
13564 | typedef int foo_t; | |
13565 | static $ac_kw foo_t static_foo () {return 0; } | |
13566 | $ac_kw foo_t foo () {return 0; } | |
13567 | #endif | |
a0b9e27f | 13568 | |
e6cc62c6 VS |
13569 | _ACEOF |
13570 | rm -f conftest.$ac_objext | |
13571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13572 | (eval $ac_compile) 2>&5 | |
13573 | ac_status=$? | |
13574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13575 | (exit $ac_status); } && | |
13576 | { ac_try='test -s conftest.$ac_objext' | |
13577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13578 | (eval $ac_try) 2>&5 | |
13579 | ac_status=$? | |
13580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13581 | (exit $ac_status); }; }; then | |
a0b9e27f | 13582 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 13583 | else |
e6cc62c6 VS |
13584 | echo "$as_me: failed program was:" >&5 |
13585 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13586 | ||
247f5006 | 13587 | fi |
e6cc62c6 | 13588 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 13589 | done |
247f5006 VZ |
13590 | |
13591 | fi | |
e6cc62c6 VS |
13592 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13593 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13594 | case $ac_cv_c_inline in | |
a0b9e27f | 13595 | inline | yes) ;; |
e6cc62c6 VS |
13596 | no) |
13597 | cat >>confdefs.h <<\_ACEOF | |
13598 | #define inline | |
13599 | _ACEOF | |
a0b9e27f | 13600 | ;; |
e6cc62c6 | 13601 | *) cat >>confdefs.h <<_ACEOF |
a0b9e27f | 13602 | #define inline $ac_cv_c_inline |
e6cc62c6 | 13603 | _ACEOF |
a0b9e27f MB |
13604 | ;; |
13605 | esac | |
247f5006 | 13606 | |
247f5006 | 13607 | |
e6cc62c6 VS |
13608 | echo "$as_me:$LINENO: checking for char" >&5 |
13609 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
13610 | if test "${ac_cv_type_char+set}" = set; then | |
13611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13612 | else | |
13613 | cat >conftest.$ac_ext <<_ACEOF | |
13614 | #line $LINENO "configure" | |
13615 | /* confdefs.h. */ | |
13616 | _ACEOF | |
13617 | cat confdefs.h >>conftest.$ac_ext | |
13618 | cat >>conftest.$ac_ext <<_ACEOF | |
13619 | /* end confdefs.h. */ | |
13620 | $ac_includes_default | |
13621 | int | |
13622 | main () | |
13623 | { | |
13624 | if ((char *) 0) | |
13625 | return 0; | |
13626 | if (sizeof (char)) | |
13627 | return 0; | |
13628 | ; | |
13629 | return 0; | |
13630 | } | |
13631 | _ACEOF | |
13632 | rm -f conftest.$ac_objext | |
13633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13634 | (eval $ac_compile) 2>&5 | |
13635 | ac_status=$? | |
13636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13637 | (exit $ac_status); } && | |
13638 | { ac_try='test -s conftest.$ac_objext' | |
13639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13640 | (eval $ac_try) 2>&5 | |
13641 | ac_status=$? | |
13642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13643 | (exit $ac_status); }; }; then | |
13644 | ac_cv_type_char=yes | |
13645 | else | |
13646 | echo "$as_me: failed program was:" >&5 | |
13647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13648 | ||
13649 | ac_cv_type_char=no | |
13650 | fi | |
13651 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13652 | fi | |
13653 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
13654 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
13655 | ||
13656 | echo "$as_me:$LINENO: checking size of char" >&5 | |
13657 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
13658 | if test "${ac_cv_sizeof_char+set}" = set; then | |
13659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13660 | else | |
13661 | if test "$ac_cv_type_char" = yes; then | |
13662 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13663 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13664 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13665 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 13666 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
13667 | # Depending upon the size, compute the lo and hi bounds. |
13668 | cat >conftest.$ac_ext <<_ACEOF | |
13669 | #line $LINENO "configure" | |
13670 | /* confdefs.h. */ | |
13671 | _ACEOF | |
13672 | cat confdefs.h >>conftest.$ac_ext | |
13673 | cat >>conftest.$ac_ext <<_ACEOF | |
13674 | /* end confdefs.h. */ | |
13675 | $ac_includes_default | |
13676 | int | |
13677 | main () | |
13678 | { | |
13679 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
13680 | test_array [0] = 0 | |
13681 | ||
13682 | ; | |
13683 | return 0; | |
13684 | } | |
13685 | _ACEOF | |
13686 | rm -f conftest.$ac_objext | |
13687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13688 | (eval $ac_compile) 2>&5 | |
13689 | ac_status=$? | |
13690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13691 | (exit $ac_status); } && | |
13692 | { ac_try='test -s conftest.$ac_objext' | |
13693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13694 | (eval $ac_try) 2>&5 | |
13695 | ac_status=$? | |
13696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13697 | (exit $ac_status); }; }; then | |
13698 | ac_lo=0 ac_mid=0 | |
13699 | while :; do | |
13700 | cat >conftest.$ac_ext <<_ACEOF | |
13701 | #line $LINENO "configure" | |
13702 | /* confdefs.h. */ | |
13703 | _ACEOF | |
13704 | cat confdefs.h >>conftest.$ac_ext | |
13705 | cat >>conftest.$ac_ext <<_ACEOF | |
13706 | /* end confdefs.h. */ | |
13707 | $ac_includes_default | |
13708 | int | |
13709 | main () | |
13710 | { | |
13711 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13712 | test_array [0] = 0 | |
13713 | ||
13714 | ; | |
13715 | return 0; | |
13716 | } | |
13717 | _ACEOF | |
13718 | rm -f conftest.$ac_objext | |
13719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13720 | (eval $ac_compile) 2>&5 | |
13721 | ac_status=$? | |
13722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13723 | (exit $ac_status); } && | |
13724 | { ac_try='test -s conftest.$ac_objext' | |
13725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13726 | (eval $ac_try) 2>&5 | |
13727 | ac_status=$? | |
13728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13729 | (exit $ac_status); }; }; then | |
13730 | ac_hi=$ac_mid; break | |
13731 | else | |
13732 | echo "$as_me: failed program was:" >&5 | |
13733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13734 | ||
13735 | ac_lo=`expr $ac_mid + 1` | |
13736 | if test $ac_lo -le $ac_mid; then | |
13737 | ac_lo= ac_hi= | |
13738 | break | |
13739 | fi | |
13740 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13741 | fi | |
13742 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13743 | done | |
a0b9e27f | 13744 | else |
e6cc62c6 VS |
13745 | echo "$as_me: failed program was:" >&5 |
13746 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13747 | ||
13748 | cat >conftest.$ac_ext <<_ACEOF | |
13749 | #line $LINENO "configure" | |
13750 | /* confdefs.h. */ | |
13751 | _ACEOF | |
13752 | cat confdefs.h >>conftest.$ac_ext | |
13753 | cat >>conftest.$ac_ext <<_ACEOF | |
13754 | /* end confdefs.h. */ | |
13755 | $ac_includes_default | |
13756 | int | |
13757 | main () | |
13758 | { | |
13759 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
13760 | test_array [0] = 0 | |
13761 | ||
13762 | ; | |
13763 | return 0; | |
13764 | } | |
13765 | _ACEOF | |
13766 | rm -f conftest.$ac_objext | |
13767 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13768 | (eval $ac_compile) 2>&5 | |
13769 | ac_status=$? | |
13770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13771 | (exit $ac_status); } && | |
13772 | { ac_try='test -s conftest.$ac_objext' | |
13773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13774 | (eval $ac_try) 2>&5 | |
13775 | ac_status=$? | |
13776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13777 | (exit $ac_status); }; }; then | |
13778 | ac_hi=-1 ac_mid=-1 | |
13779 | while :; do | |
13780 | cat >conftest.$ac_ext <<_ACEOF | |
13781 | #line $LINENO "configure" | |
13782 | /* confdefs.h. */ | |
13783 | _ACEOF | |
13784 | cat confdefs.h >>conftest.$ac_ext | |
13785 | cat >>conftest.$ac_ext <<_ACEOF | |
13786 | /* end confdefs.h. */ | |
13787 | $ac_includes_default | |
13788 | int | |
13789 | main () | |
13790 | { | |
13791 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
13792 | test_array [0] = 0 | |
13793 | ||
13794 | ; | |
13795 | return 0; | |
13796 | } | |
13797 | _ACEOF | |
13798 | rm -f conftest.$ac_objext | |
13799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13800 | (eval $ac_compile) 2>&5 | |
13801 | ac_status=$? | |
13802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13803 | (exit $ac_status); } && | |
13804 | { ac_try='test -s conftest.$ac_objext' | |
13805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13806 | (eval $ac_try) 2>&5 | |
13807 | ac_status=$? | |
13808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13809 | (exit $ac_status); }; }; then | |
13810 | ac_lo=$ac_mid; break | |
13811 | else | |
13812 | echo "$as_me: failed program was:" >&5 | |
13813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13814 | ||
13815 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13816 | if test $ac_mid -le $ac_hi; then | |
13817 | ac_lo= ac_hi= | |
13818 | break | |
13819 | fi | |
13820 | ac_mid=`expr 2 '*' $ac_mid` | |
13821 | fi | |
13822 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13823 | done | |
13824 | else | |
13825 | echo "$as_me: failed program was:" >&5 | |
13826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13827 | ||
13828 | ac_lo= ac_hi= | |
13829 | fi | |
13830 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13831 | fi | |
13832 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13833 | # Binary search between lo and hi bounds. | |
13834 | while test "x$ac_lo" != "x$ac_hi"; do | |
13835 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13836 | cat >conftest.$ac_ext <<_ACEOF | |
13837 | #line $LINENO "configure" | |
13838 | /* confdefs.h. */ | |
13839 | _ACEOF | |
13840 | cat confdefs.h >>conftest.$ac_ext | |
13841 | cat >>conftest.$ac_ext <<_ACEOF | |
13842 | /* end confdefs.h. */ | |
13843 | $ac_includes_default | |
13844 | int | |
13845 | main () | |
13846 | { | |
13847 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13848 | test_array [0] = 0 | |
13849 | ||
13850 | ; | |
13851 | return 0; | |
13852 | } | |
13853 | _ACEOF | |
13854 | rm -f conftest.$ac_objext | |
13855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13856 | (eval $ac_compile) 2>&5 | |
13857 | ac_status=$? | |
13858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13859 | (exit $ac_status); } && | |
13860 | { ac_try='test -s conftest.$ac_objext' | |
13861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13862 | (eval $ac_try) 2>&5 | |
13863 | ac_status=$? | |
13864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13865 | (exit $ac_status); }; }; then | |
13866 | ac_hi=$ac_mid | |
13867 | else | |
13868 | echo "$as_me: failed program was:" >&5 | |
13869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13870 | ||
13871 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13872 | fi | |
13873 | rm -f conftest.$ac_objext conftest.$ac_ext | |
13874 | done | |
13875 | case $ac_lo in | |
13876 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
13877 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13878 | See \`config.log' for more details." >&5 | |
13879 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13880 | See \`config.log' for more details." >&2;} | |
13881 | { (exit 1); exit 1; }; } ;; | |
13882 | esac | |
13883 | else | |
13884 | if test "$cross_compiling" = yes; then | |
13885 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13886 | See \`config.log' for more details." >&5 | |
13887 | echo "$as_me: error: cannot run test program while cross compiling | |
13888 | See \`config.log' for more details." >&2;} | |
13889 | { (exit 1); exit 1; }; } | |
13890 | else | |
13891 | cat >conftest.$ac_ext <<_ACEOF | |
13892 | #line $LINENO "configure" | |
13893 | /* confdefs.h. */ | |
13894 | _ACEOF | |
13895 | cat confdefs.h >>conftest.$ac_ext | |
13896 | cat >>conftest.$ac_ext <<_ACEOF | |
13897 | /* end confdefs.h. */ | |
13898 | $ac_includes_default | |
13899 | long longval () { return (long) (sizeof (char)); } | |
13900 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 13901 | #include <stdio.h> |
e6cc62c6 VS |
13902 | #include <stdlib.h> |
13903 | int | |
13904 | main () | |
247f5006 | 13905 | { |
e6cc62c6 VS |
13906 | |
13907 | FILE *f = fopen ("conftest.val", "w"); | |
13908 | if (! f) | |
13909 | exit (1); | |
13910 | if (((long) (sizeof (char))) < 0) | |
13911 | { | |
13912 | long i = longval (); | |
13913 | if (i != ((long) (sizeof (char)))) | |
13914 | exit (1); | |
13915 | fprintf (f, "%ld\n", i); | |
13916 | } | |
13917 | else | |
13918 | { | |
13919 | unsigned long i = ulongval (); | |
13920 | if (i != ((long) (sizeof (char)))) | |
13921 | exit (1); | |
13922 | fprintf (f, "%lu\n", i); | |
13923 | } | |
13924 | exit (ferror (f) || fclose (f) != 0); | |
13925 | ||
13926 | ; | |
13927 | return 0; | |
52127426 | 13928 | } |
e6cc62c6 VS |
13929 | _ACEOF |
13930 | rm -f conftest$ac_exeext | |
13931 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13932 | (eval $ac_link) 2>&5 | |
13933 | ac_status=$? | |
13934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13935 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13937 | (eval $ac_try) 2>&5 | |
13938 | ac_status=$? | |
13939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13940 | (exit $ac_status); }; }; then | |
13941 | ac_cv_sizeof_char=`cat conftest.val` | |
13942 | else | |
13943 | echo "$as_me: program exited with status $ac_status" >&5 | |
13944 | echo "$as_me: failed program was:" >&5 | |
13945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13946 | ||
13947 | ( exit $ac_status ) | |
13948 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
13949 | See \`config.log' for more details." >&5 | |
13950 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
13951 | See \`config.log' for more details." >&2;} | |
13952 | { (exit 1); exit 1; }; } | |
13953 | fi | |
13954 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13955 | fi | |
13956 | fi | |
13957 | rm -f conftest.val | |
247f5006 | 13958 | else |
a0b9e27f | 13959 | ac_cv_sizeof_char=0 |
247f5006 | 13960 | fi |
247f5006 | 13961 | fi |
e6cc62c6 VS |
13962 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
13963 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
13964 | cat >>confdefs.h <<_ACEOF | |
13965 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
13966 | _ACEOF | |
13967 | ||
13968 | ||
13969 | echo "$as_me:$LINENO: checking for short" >&5 | |
13970 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
13971 | if test "${ac_cv_type_short+set}" = set; then | |
13972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13973 | else | |
13974 | cat >conftest.$ac_ext <<_ACEOF | |
13975 | #line $LINENO "configure" | |
13976 | /* confdefs.h. */ | |
13977 | _ACEOF | |
13978 | cat confdefs.h >>conftest.$ac_ext | |
13979 | cat >>conftest.$ac_ext <<_ACEOF | |
13980 | /* end confdefs.h. */ | |
13981 | $ac_includes_default | |
13982 | int | |
13983 | main () | |
13984 | { | |
13985 | if ((short *) 0) | |
13986 | return 0; | |
13987 | if (sizeof (short)) | |
13988 | return 0; | |
13989 | ; | |
13990 | return 0; | |
13991 | } | |
13992 | _ACEOF | |
13993 | rm -f conftest.$ac_objext | |
13994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13995 | (eval $ac_compile) 2>&5 | |
13996 | ac_status=$? | |
13997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13998 | (exit $ac_status); } && | |
13999 | { ac_try='test -s conftest.$ac_objext' | |
14000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14001 | (eval $ac_try) 2>&5 | |
14002 | ac_status=$? | |
14003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14004 | (exit $ac_status); }; }; then | |
14005 | ac_cv_type_short=yes | |
14006 | else | |
14007 | echo "$as_me: failed program was:" >&5 | |
14008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14009 | ||
14010 | ac_cv_type_short=no | |
14011 | fi | |
14012 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14013 | fi | |
14014 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14015 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14016 | ||
14017 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14018 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14019 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14021 | else | |
14022 | if test "$ac_cv_type_short" = yes; then | |
14023 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14024 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14025 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14026 | # This bug is HP SR number 8606223364. | |
14027 | if test "$cross_compiling" = yes; then | |
14028 | # Depending upon the size, compute the lo and hi bounds. | |
14029 | cat >conftest.$ac_ext <<_ACEOF | |
14030 | #line $LINENO "configure" | |
14031 | /* confdefs.h. */ | |
14032 | _ACEOF | |
14033 | cat confdefs.h >>conftest.$ac_ext | |
14034 | cat >>conftest.$ac_ext <<_ACEOF | |
14035 | /* end confdefs.h. */ | |
14036 | $ac_includes_default | |
14037 | int | |
14038 | main () | |
14039 | { | |
14040 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14041 | test_array [0] = 0 | |
247f5006 | 14042 | |
e6cc62c6 VS |
14043 | ; |
14044 | return 0; | |
14045 | } | |
14046 | _ACEOF | |
14047 | rm -f conftest.$ac_objext | |
14048 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14049 | (eval $ac_compile) 2>&5 | |
14050 | ac_status=$? | |
14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14052 | (exit $ac_status); } && | |
14053 | { ac_try='test -s conftest.$ac_objext' | |
14054 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14055 | (eval $ac_try) 2>&5 | |
14056 | ac_status=$? | |
14057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14058 | (exit $ac_status); }; }; then | |
14059 | ac_lo=0 ac_mid=0 | |
14060 | while :; do | |
14061 | cat >conftest.$ac_ext <<_ACEOF | |
14062 | #line $LINENO "configure" | |
14063 | /* confdefs.h. */ | |
14064 | _ACEOF | |
14065 | cat confdefs.h >>conftest.$ac_ext | |
14066 | cat >>conftest.$ac_ext <<_ACEOF | |
14067 | /* end confdefs.h. */ | |
14068 | $ac_includes_default | |
14069 | int | |
14070 | main () | |
14071 | { | |
14072 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14073 | test_array [0] = 0 | |
14074 | ||
14075 | ; | |
14076 | return 0; | |
14077 | } | |
14078 | _ACEOF | |
14079 | rm -f conftest.$ac_objext | |
14080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14081 | (eval $ac_compile) 2>&5 | |
14082 | ac_status=$? | |
14083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14084 | (exit $ac_status); } && | |
14085 | { ac_try='test -s conftest.$ac_objext' | |
14086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14087 | (eval $ac_try) 2>&5 | |
14088 | ac_status=$? | |
14089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14090 | (exit $ac_status); }; }; then | |
14091 | ac_hi=$ac_mid; break | |
14092 | else | |
14093 | echo "$as_me: failed program was:" >&5 | |
14094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14095 | ||
14096 | ac_lo=`expr $ac_mid + 1` | |
14097 | if test $ac_lo -le $ac_mid; then | |
14098 | ac_lo= ac_hi= | |
14099 | break | |
14100 | fi | |
14101 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14102 | fi |
e6cc62c6 VS |
14103 | rm -f conftest.$ac_objext conftest.$ac_ext |
14104 | done | |
14105 | else | |
14106 | echo "$as_me: failed program was:" >&5 | |
14107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14108 | ||
14109 | cat >conftest.$ac_ext <<_ACEOF | |
14110 | #line $LINENO "configure" | |
14111 | /* confdefs.h. */ | |
14112 | _ACEOF | |
14113 | cat confdefs.h >>conftest.$ac_ext | |
14114 | cat >>conftest.$ac_ext <<_ACEOF | |
14115 | /* end confdefs.h. */ | |
14116 | $ac_includes_default | |
14117 | int | |
14118 | main () | |
14119 | { | |
14120 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14121 | test_array [0] = 0 | |
247f5006 | 14122 | |
e6cc62c6 VS |
14123 | ; |
14124 | return 0; | |
14125 | } | |
14126 | _ACEOF | |
14127 | rm -f conftest.$ac_objext | |
14128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14129 | (eval $ac_compile) 2>&5 | |
14130 | ac_status=$? | |
14131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14132 | (exit $ac_status); } && | |
14133 | { ac_try='test -s conftest.$ac_objext' | |
14134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14135 | (eval $ac_try) 2>&5 | |
14136 | ac_status=$? | |
14137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14138 | (exit $ac_status); }; }; then | |
14139 | ac_hi=-1 ac_mid=-1 | |
14140 | while :; do | |
14141 | cat >conftest.$ac_ext <<_ACEOF | |
14142 | #line $LINENO "configure" | |
14143 | /* confdefs.h. */ | |
14144 | _ACEOF | |
14145 | cat confdefs.h >>conftest.$ac_ext | |
14146 | cat >>conftest.$ac_ext <<_ACEOF | |
14147 | /* end confdefs.h. */ | |
14148 | $ac_includes_default | |
14149 | int | |
14150 | main () | |
14151 | { | |
14152 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14153 | test_array [0] = 0 | |
247f5006 | 14154 | |
e6cc62c6 VS |
14155 | ; |
14156 | return 0; | |
14157 | } | |
14158 | _ACEOF | |
14159 | rm -f conftest.$ac_objext | |
14160 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14161 | (eval $ac_compile) 2>&5 | |
14162 | ac_status=$? | |
14163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14164 | (exit $ac_status); } && | |
14165 | { ac_try='test -s conftest.$ac_objext' | |
14166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14167 | (eval $ac_try) 2>&5 | |
14168 | ac_status=$? | |
14169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14170 | (exit $ac_status); }; }; then | |
14171 | ac_lo=$ac_mid; break | |
14172 | else | |
14173 | echo "$as_me: failed program was:" >&5 | |
14174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14175 | ||
14176 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14177 | if test $ac_mid -le $ac_hi; then | |
14178 | ac_lo= ac_hi= | |
14179 | break | |
14180 | fi | |
14181 | ac_mid=`expr 2 '*' $ac_mid` | |
14182 | fi | |
14183 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14184 | done | |
247f5006 | 14185 | else |
e6cc62c6 VS |
14186 | echo "$as_me: failed program was:" >&5 |
14187 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14188 | ||
14189 | ac_lo= ac_hi= | |
14190 | fi | |
14191 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14192 | fi | |
14193 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14194 | # Binary search between lo and hi bounds. | |
14195 | while test "x$ac_lo" != "x$ac_hi"; do | |
14196 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14197 | cat >conftest.$ac_ext <<_ACEOF | |
14198 | #line $LINENO "configure" | |
14199 | /* confdefs.h. */ | |
14200 | _ACEOF | |
14201 | cat confdefs.h >>conftest.$ac_ext | |
14202 | cat >>conftest.$ac_ext <<_ACEOF | |
14203 | /* end confdefs.h. */ | |
14204 | $ac_includes_default | |
14205 | int | |
14206 | main () | |
14207 | { | |
14208 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14209 | test_array [0] = 0 | |
14210 | ||
14211 | ; | |
14212 | return 0; | |
14213 | } | |
14214 | _ACEOF | |
14215 | rm -f conftest.$ac_objext | |
14216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14217 | (eval $ac_compile) 2>&5 | |
14218 | ac_status=$? | |
14219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14220 | (exit $ac_status); } && | |
14221 | { ac_try='test -s conftest.$ac_objext' | |
14222 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14223 | (eval $ac_try) 2>&5 | |
14224 | ac_status=$? | |
14225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14226 | (exit $ac_status); }; }; then | |
14227 | ac_hi=$ac_mid | |
14228 | else | |
14229 | echo "$as_me: failed program was:" >&5 | |
14230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14231 | ||
14232 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14233 | fi | |
14234 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14235 | done | |
14236 | case $ac_lo in | |
14237 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14238 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14239 | See \`config.log' for more details." >&5 | |
14240 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14241 | See \`config.log' for more details." >&2;} | |
14242 | { (exit 1); exit 1; }; } ;; | |
14243 | esac | |
247f5006 | 14244 | else |
e6cc62c6 VS |
14245 | if test "$cross_compiling" = yes; then |
14246 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14247 | See \`config.log' for more details." >&5 | |
14248 | echo "$as_me: error: cannot run test program while cross compiling | |
14249 | See \`config.log' for more details." >&2;} | |
14250 | { (exit 1); exit 1; }; } | |
14251 | else | |
14252 | cat >conftest.$ac_ext <<_ACEOF | |
14253 | #line $LINENO "configure" | |
14254 | /* confdefs.h. */ | |
14255 | _ACEOF | |
14256 | cat confdefs.h >>conftest.$ac_ext | |
14257 | cat >>conftest.$ac_ext <<_ACEOF | |
14258 | /* end confdefs.h. */ | |
14259 | $ac_includes_default | |
14260 | long longval () { return (long) (sizeof (short)); } | |
14261 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14262 | #include <stdio.h> |
e6cc62c6 VS |
14263 | #include <stdlib.h> |
14264 | int | |
14265 | main () | |
a0b9e27f | 14266 | { |
e6cc62c6 VS |
14267 | |
14268 | FILE *f = fopen ("conftest.val", "w"); | |
14269 | if (! f) | |
14270 | exit (1); | |
14271 | if (((long) (sizeof (short))) < 0) | |
14272 | { | |
14273 | long i = longval (); | |
14274 | if (i != ((long) (sizeof (short)))) | |
14275 | exit (1); | |
14276 | fprintf (f, "%ld\n", i); | |
14277 | } | |
14278 | else | |
14279 | { | |
14280 | unsigned long i = ulongval (); | |
14281 | if (i != ((long) (sizeof (short)))) | |
14282 | exit (1); | |
14283 | fprintf (f, "%lu\n", i); | |
14284 | } | |
14285 | exit (ferror (f) || fclose (f) != 0); | |
14286 | ||
14287 | ; | |
14288 | return 0; | |
a0b9e27f | 14289 | } |
e6cc62c6 VS |
14290 | _ACEOF |
14291 | rm -f conftest$ac_exeext | |
14292 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14293 | (eval $ac_link) 2>&5 | |
14294 | ac_status=$? | |
14295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14296 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14298 | (eval $ac_try) 2>&5 | |
14299 | ac_status=$? | |
14300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14301 | (exit $ac_status); }; }; then | |
14302 | ac_cv_sizeof_short=`cat conftest.val` | |
14303 | else | |
14304 | echo "$as_me: program exited with status $ac_status" >&5 | |
14305 | echo "$as_me: failed program was:" >&5 | |
14306 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14307 | ||
14308 | ( exit $ac_status ) | |
14309 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14310 | See \`config.log' for more details." >&5 | |
14311 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14312 | See \`config.log' for more details." >&2;} | |
14313 | { (exit 1); exit 1; }; } | |
14314 | fi | |
14315 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14316 | fi | |
14317 | fi | |
14318 | rm -f conftest.val | |
247f5006 | 14319 | else |
a0b9e27f | 14320 | ac_cv_sizeof_short=0 |
247f5006 | 14321 | fi |
247f5006 | 14322 | fi |
e6cc62c6 VS |
14323 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14324 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14325 | cat >>confdefs.h <<_ACEOF | |
14326 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14327 | _ACEOF | |
14328 | ||
14329 | ||
14330 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14331 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14332 | if test "${ac_cv_type_void_p+set}" = set; then | |
14333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14334 | else | |
14335 | cat >conftest.$ac_ext <<_ACEOF | |
14336 | #line $LINENO "configure" | |
14337 | /* confdefs.h. */ | |
14338 | _ACEOF | |
14339 | cat confdefs.h >>conftest.$ac_ext | |
14340 | cat >>conftest.$ac_ext <<_ACEOF | |
14341 | /* end confdefs.h. */ | |
14342 | $ac_includes_default | |
14343 | int | |
14344 | main () | |
14345 | { | |
14346 | if ((void * *) 0) | |
14347 | return 0; | |
14348 | if (sizeof (void *)) | |
14349 | return 0; | |
14350 | ; | |
14351 | return 0; | |
14352 | } | |
14353 | _ACEOF | |
14354 | rm -f conftest.$ac_objext | |
14355 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14356 | (eval $ac_compile) 2>&5 | |
14357 | ac_status=$? | |
14358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14359 | (exit $ac_status); } && | |
14360 | { ac_try='test -s conftest.$ac_objext' | |
14361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14362 | (eval $ac_try) 2>&5 | |
14363 | ac_status=$? | |
14364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14365 | (exit $ac_status); }; }; then | |
14366 | ac_cv_type_void_p=yes | |
14367 | else | |
14368 | echo "$as_me: failed program was:" >&5 | |
14369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14370 | ||
14371 | ac_cv_type_void_p=no | |
14372 | fi | |
14373 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14374 | fi | |
14375 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14376 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14377 | ||
14378 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14379 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14380 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14382 | else | |
14383 | if test "$ac_cv_type_void_p" = yes; then | |
14384 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14385 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14386 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14387 | # This bug is HP SR number 8606223364. | |
14388 | if test "$cross_compiling" = yes; then | |
14389 | # Depending upon the size, compute the lo and hi bounds. | |
14390 | cat >conftest.$ac_ext <<_ACEOF | |
14391 | #line $LINENO "configure" | |
14392 | /* confdefs.h. */ | |
14393 | _ACEOF | |
14394 | cat confdefs.h >>conftest.$ac_ext | |
14395 | cat >>conftest.$ac_ext <<_ACEOF | |
14396 | /* end confdefs.h. */ | |
14397 | $ac_includes_default | |
14398 | int | |
14399 | main () | |
14400 | { | |
14401 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14402 | test_array [0] = 0 | |
14403 | ||
14404 | ; | |
14405 | return 0; | |
14406 | } | |
14407 | _ACEOF | |
14408 | rm -f conftest.$ac_objext | |
14409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14410 | (eval $ac_compile) 2>&5 | |
14411 | ac_status=$? | |
14412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14413 | (exit $ac_status); } && | |
14414 | { ac_try='test -s conftest.$ac_objext' | |
14415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14416 | (eval $ac_try) 2>&5 | |
14417 | ac_status=$? | |
14418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14419 | (exit $ac_status); }; }; then | |
14420 | ac_lo=0 ac_mid=0 | |
14421 | while :; do | |
14422 | cat >conftest.$ac_ext <<_ACEOF | |
14423 | #line $LINENO "configure" | |
14424 | /* confdefs.h. */ | |
14425 | _ACEOF | |
14426 | cat confdefs.h >>conftest.$ac_ext | |
14427 | cat >>conftest.$ac_ext <<_ACEOF | |
14428 | /* end confdefs.h. */ | |
14429 | $ac_includes_default | |
14430 | int | |
14431 | main () | |
14432 | { | |
14433 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14434 | test_array [0] = 0 | |
247f5006 | 14435 | |
e6cc62c6 VS |
14436 | ; |
14437 | return 0; | |
14438 | } | |
14439 | _ACEOF | |
14440 | rm -f conftest.$ac_objext | |
14441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14442 | (eval $ac_compile) 2>&5 | |
14443 | ac_status=$? | |
14444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14445 | (exit $ac_status); } && | |
14446 | { ac_try='test -s conftest.$ac_objext' | |
14447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14448 | (eval $ac_try) 2>&5 | |
14449 | ac_status=$? | |
14450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14451 | (exit $ac_status); }; }; then | |
14452 | ac_hi=$ac_mid; break | |
14453 | else | |
14454 | echo "$as_me: failed program was:" >&5 | |
14455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14456 | ||
14457 | ac_lo=`expr $ac_mid + 1` | |
14458 | if test $ac_lo -le $ac_mid; then | |
14459 | ac_lo= ac_hi= | |
14460 | break | |
14461 | fi | |
14462 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14463 | fi |
e6cc62c6 VS |
14464 | rm -f conftest.$ac_objext conftest.$ac_ext |
14465 | done | |
14466 | else | |
14467 | echo "$as_me: failed program was:" >&5 | |
14468 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14469 | ||
14470 | cat >conftest.$ac_ext <<_ACEOF | |
14471 | #line $LINENO "configure" | |
14472 | /* confdefs.h. */ | |
14473 | _ACEOF | |
14474 | cat confdefs.h >>conftest.$ac_ext | |
14475 | cat >>conftest.$ac_ext <<_ACEOF | |
14476 | /* end confdefs.h. */ | |
14477 | $ac_includes_default | |
14478 | int | |
14479 | main () | |
14480 | { | |
14481 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
14482 | test_array [0] = 0 | |
247f5006 | 14483 | |
e6cc62c6 VS |
14484 | ; |
14485 | return 0; | |
14486 | } | |
14487 | _ACEOF | |
14488 | rm -f conftest.$ac_objext | |
14489 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14490 | (eval $ac_compile) 2>&5 | |
14491 | ac_status=$? | |
14492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14493 | (exit $ac_status); } && | |
14494 | { ac_try='test -s conftest.$ac_objext' | |
14495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14496 | (eval $ac_try) 2>&5 | |
14497 | ac_status=$? | |
14498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14499 | (exit $ac_status); }; }; then | |
14500 | ac_hi=-1 ac_mid=-1 | |
14501 | while :; do | |
14502 | cat >conftest.$ac_ext <<_ACEOF | |
14503 | #line $LINENO "configure" | |
14504 | /* confdefs.h. */ | |
14505 | _ACEOF | |
14506 | cat confdefs.h >>conftest.$ac_ext | |
14507 | cat >>conftest.$ac_ext <<_ACEOF | |
14508 | /* end confdefs.h. */ | |
14509 | $ac_includes_default | |
14510 | int | |
14511 | main () | |
14512 | { | |
14513 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
14514 | test_array [0] = 0 | |
247f5006 | 14515 | |
e6cc62c6 VS |
14516 | ; |
14517 | return 0; | |
14518 | } | |
14519 | _ACEOF | |
14520 | rm -f conftest.$ac_objext | |
14521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14522 | (eval $ac_compile) 2>&5 | |
14523 | ac_status=$? | |
14524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14525 | (exit $ac_status); } && | |
14526 | { ac_try='test -s conftest.$ac_objext' | |
14527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14528 | (eval $ac_try) 2>&5 | |
14529 | ac_status=$? | |
14530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14531 | (exit $ac_status); }; }; then | |
14532 | ac_lo=$ac_mid; break | |
14533 | else | |
14534 | echo "$as_me: failed program was:" >&5 | |
14535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14536 | ||
14537 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14538 | if test $ac_mid -le $ac_hi; then | |
14539 | ac_lo= ac_hi= | |
14540 | break | |
14541 | fi | |
14542 | ac_mid=`expr 2 '*' $ac_mid` | |
14543 | fi | |
14544 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14545 | done | |
a0b9e27f | 14546 | else |
e6cc62c6 VS |
14547 | echo "$as_me: failed program was:" >&5 |
14548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14549 | ||
14550 | ac_lo= ac_hi= | |
14551 | fi | |
14552 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14553 | fi | |
14554 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14555 | # Binary search between lo and hi bounds. | |
14556 | while test "x$ac_lo" != "x$ac_hi"; do | |
14557 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14558 | cat >conftest.$ac_ext <<_ACEOF | |
14559 | #line $LINENO "configure" | |
14560 | /* confdefs.h. */ | |
14561 | _ACEOF | |
14562 | cat confdefs.h >>conftest.$ac_ext | |
14563 | cat >>conftest.$ac_ext <<_ACEOF | |
14564 | /* end confdefs.h. */ | |
14565 | $ac_includes_default | |
14566 | int | |
14567 | main () | |
14568 | { | |
14569 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14570 | test_array [0] = 0 | |
14571 | ||
14572 | ; | |
14573 | return 0; | |
14574 | } | |
14575 | _ACEOF | |
14576 | rm -f conftest.$ac_objext | |
14577 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14578 | (eval $ac_compile) 2>&5 | |
14579 | ac_status=$? | |
14580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14581 | (exit $ac_status); } && | |
14582 | { ac_try='test -s conftest.$ac_objext' | |
14583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14584 | (eval $ac_try) 2>&5 | |
14585 | ac_status=$? | |
14586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14587 | (exit $ac_status); }; }; then | |
14588 | ac_hi=$ac_mid | |
14589 | else | |
14590 | echo "$as_me: failed program was:" >&5 | |
14591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14592 | ||
14593 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14594 | fi | |
14595 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14596 | done | |
14597 | case $ac_lo in | |
14598 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14599 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14600 | See \`config.log' for more details." >&5 | |
14601 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14602 | See \`config.log' for more details." >&2;} | |
14603 | { (exit 1); exit 1; }; } ;; | |
14604 | esac | |
247f5006 | 14605 | else |
e6cc62c6 VS |
14606 | if test "$cross_compiling" = yes; then |
14607 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14608 | See \`config.log' for more details." >&5 | |
14609 | echo "$as_me: error: cannot run test program while cross compiling | |
14610 | See \`config.log' for more details." >&2;} | |
14611 | { (exit 1); exit 1; }; } | |
14612 | else | |
14613 | cat >conftest.$ac_ext <<_ACEOF | |
14614 | #line $LINENO "configure" | |
14615 | /* confdefs.h. */ | |
14616 | _ACEOF | |
14617 | cat confdefs.h >>conftest.$ac_ext | |
14618 | cat >>conftest.$ac_ext <<_ACEOF | |
14619 | /* end confdefs.h. */ | |
14620 | $ac_includes_default | |
14621 | long longval () { return (long) (sizeof (void *)); } | |
14622 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 14623 | #include <stdio.h> |
e6cc62c6 VS |
14624 | #include <stdlib.h> |
14625 | int | |
14626 | main () | |
247f5006 | 14627 | { |
e6cc62c6 VS |
14628 | |
14629 | FILE *f = fopen ("conftest.val", "w"); | |
14630 | if (! f) | |
14631 | exit (1); | |
14632 | if (((long) (sizeof (void *))) < 0) | |
14633 | { | |
14634 | long i = longval (); | |
14635 | if (i != ((long) (sizeof (void *)))) | |
14636 | exit (1); | |
14637 | fprintf (f, "%ld\n", i); | |
14638 | } | |
14639 | else | |
14640 | { | |
14641 | unsigned long i = ulongval (); | |
14642 | if (i != ((long) (sizeof (void *)))) | |
14643 | exit (1); | |
14644 | fprintf (f, "%lu\n", i); | |
14645 | } | |
14646 | exit (ferror (f) || fclose (f) != 0); | |
14647 | ||
14648 | ; | |
14649 | return 0; | |
5c6fa7d2 | 14650 | } |
e6cc62c6 VS |
14651 | _ACEOF |
14652 | rm -f conftest$ac_exeext | |
14653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14654 | (eval $ac_link) 2>&5 | |
14655 | ac_status=$? | |
14656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14657 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14659 | (eval $ac_try) 2>&5 | |
14660 | ac_status=$? | |
14661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14662 | (exit $ac_status); }; }; then | |
14663 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14664 | else | |
14665 | echo "$as_me: program exited with status $ac_status" >&5 | |
14666 | echo "$as_me: failed program was:" >&5 | |
14667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14668 | ||
14669 | ( exit $ac_status ) | |
14670 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14671 | See \`config.log' for more details." >&5 | |
14672 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14673 | See \`config.log' for more details." >&2;} | |
14674 | { (exit 1); exit 1; }; } | |
14675 | fi | |
14676 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14677 | fi | |
14678 | fi | |
14679 | rm -f conftest.val | |
a0b9e27f | 14680 | else |
a0b9e27f MB |
14681 | ac_cv_sizeof_void_p=0 |
14682 | fi | |
a0b9e27f | 14683 | fi |
e6cc62c6 VS |
14684 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
14685 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
14686 | cat >>confdefs.h <<_ACEOF | |
14687 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14688 | _ACEOF | |
14689 | ||
14690 | ||
14691 | echo "$as_me:$LINENO: checking for int" >&5 | |
14692 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14693 | if test "${ac_cv_type_int+set}" = set; then | |
14694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14695 | else | |
14696 | cat >conftest.$ac_ext <<_ACEOF | |
14697 | #line $LINENO "configure" | |
14698 | /* confdefs.h. */ | |
14699 | _ACEOF | |
14700 | cat confdefs.h >>conftest.$ac_ext | |
14701 | cat >>conftest.$ac_ext <<_ACEOF | |
14702 | /* end confdefs.h. */ | |
14703 | $ac_includes_default | |
14704 | int | |
14705 | main () | |
14706 | { | |
14707 | if ((int *) 0) | |
14708 | return 0; | |
14709 | if (sizeof (int)) | |
14710 | return 0; | |
14711 | ; | |
14712 | return 0; | |
14713 | } | |
14714 | _ACEOF | |
14715 | rm -f conftest.$ac_objext | |
14716 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14717 | (eval $ac_compile) 2>&5 | |
14718 | ac_status=$? | |
14719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14720 | (exit $ac_status); } && | |
14721 | { ac_try='test -s conftest.$ac_objext' | |
14722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14723 | (eval $ac_try) 2>&5 | |
14724 | ac_status=$? | |
14725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14726 | (exit $ac_status); }; }; then | |
14727 | ac_cv_type_int=yes | |
14728 | else | |
14729 | echo "$as_me: failed program was:" >&5 | |
14730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14731 | ||
14732 | ac_cv_type_int=no | |
14733 | fi | |
14734 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14735 | fi | |
14736 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14737 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14738 | ||
14739 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14740 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14741 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14743 | else | |
14744 | if test "$ac_cv_type_int" = yes; then | |
14745 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14746 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14747 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14748 | # This bug is HP SR number 8606223364. | |
14749 | if test "$cross_compiling" = yes; then | |
14750 | # Depending upon the size, compute the lo and hi bounds. | |
14751 | cat >conftest.$ac_ext <<_ACEOF | |
14752 | #line $LINENO "configure" | |
14753 | /* confdefs.h. */ | |
14754 | _ACEOF | |
14755 | cat confdefs.h >>conftest.$ac_ext | |
14756 | cat >>conftest.$ac_ext <<_ACEOF | |
14757 | /* end confdefs.h. */ | |
14758 | $ac_includes_default | |
14759 | int | |
14760 | main () | |
14761 | { | |
14762 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14763 | test_array [0] = 0 | |
8284b0c5 | 14764 | |
e6cc62c6 VS |
14765 | ; |
14766 | return 0; | |
14767 | } | |
14768 | _ACEOF | |
14769 | rm -f conftest.$ac_objext | |
14770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14771 | (eval $ac_compile) 2>&5 | |
14772 | ac_status=$? | |
14773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14774 | (exit $ac_status); } && | |
14775 | { ac_try='test -s conftest.$ac_objext' | |
14776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14777 | (eval $ac_try) 2>&5 | |
14778 | ac_status=$? | |
14779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14780 | (exit $ac_status); }; }; then | |
14781 | ac_lo=0 ac_mid=0 | |
14782 | while :; do | |
14783 | cat >conftest.$ac_ext <<_ACEOF | |
14784 | #line $LINENO "configure" | |
14785 | /* confdefs.h. */ | |
14786 | _ACEOF | |
14787 | cat confdefs.h >>conftest.$ac_ext | |
14788 | cat >>conftest.$ac_ext <<_ACEOF | |
14789 | /* end confdefs.h. */ | |
14790 | $ac_includes_default | |
14791 | int | |
14792 | main () | |
14793 | { | |
14794 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14795 | test_array [0] = 0 | |
14796 | ||
14797 | ; | |
14798 | return 0; | |
14799 | } | |
14800 | _ACEOF | |
14801 | rm -f conftest.$ac_objext | |
14802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14803 | (eval $ac_compile) 2>&5 | |
14804 | ac_status=$? | |
14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14806 | (exit $ac_status); } && | |
14807 | { ac_try='test -s conftest.$ac_objext' | |
14808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14809 | (eval $ac_try) 2>&5 | |
14810 | ac_status=$? | |
14811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14812 | (exit $ac_status); }; }; then | |
14813 | ac_hi=$ac_mid; break | |
14814 | else | |
14815 | echo "$as_me: failed program was:" >&5 | |
14816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14817 | ||
14818 | ac_lo=`expr $ac_mid + 1` | |
14819 | if test $ac_lo -le $ac_mid; then | |
14820 | ac_lo= ac_hi= | |
14821 | break | |
14822 | fi | |
14823 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14824 | fi |
e6cc62c6 VS |
14825 | rm -f conftest.$ac_objext conftest.$ac_ext |
14826 | done | |
14827 | else | |
14828 | echo "$as_me: failed program was:" >&5 | |
14829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14830 | ||
14831 | cat >conftest.$ac_ext <<_ACEOF | |
14832 | #line $LINENO "configure" | |
14833 | /* confdefs.h. */ | |
14834 | _ACEOF | |
14835 | cat confdefs.h >>conftest.$ac_ext | |
14836 | cat >>conftest.$ac_ext <<_ACEOF | |
14837 | /* end confdefs.h. */ | |
14838 | $ac_includes_default | |
14839 | int | |
14840 | main () | |
14841 | { | |
14842 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14843 | test_array [0] = 0 | |
247f5006 | 14844 | |
e6cc62c6 VS |
14845 | ; |
14846 | return 0; | |
14847 | } | |
14848 | _ACEOF | |
14849 | rm -f conftest.$ac_objext | |
14850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14851 | (eval $ac_compile) 2>&5 | |
14852 | ac_status=$? | |
14853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14854 | (exit $ac_status); } && | |
14855 | { ac_try='test -s conftest.$ac_objext' | |
14856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14857 | (eval $ac_try) 2>&5 | |
14858 | ac_status=$? | |
14859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14860 | (exit $ac_status); }; }; then | |
14861 | ac_hi=-1 ac_mid=-1 | |
14862 | while :; do | |
14863 | cat >conftest.$ac_ext <<_ACEOF | |
14864 | #line $LINENO "configure" | |
14865 | /* confdefs.h. */ | |
14866 | _ACEOF | |
14867 | cat confdefs.h >>conftest.$ac_ext | |
14868 | cat >>conftest.$ac_ext <<_ACEOF | |
14869 | /* end confdefs.h. */ | |
14870 | $ac_includes_default | |
14871 | int | |
14872 | main () | |
14873 | { | |
14874 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
14875 | test_array [0] = 0 | |
247f5006 | 14876 | |
e6cc62c6 VS |
14877 | ; |
14878 | return 0; | |
14879 | } | |
14880 | _ACEOF | |
14881 | rm -f conftest.$ac_objext | |
14882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14883 | (eval $ac_compile) 2>&5 | |
14884 | ac_status=$? | |
14885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14886 | (exit $ac_status); } && | |
14887 | { ac_try='test -s conftest.$ac_objext' | |
14888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14889 | (eval $ac_try) 2>&5 | |
14890 | ac_status=$? | |
14891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14892 | (exit $ac_status); }; }; then | |
14893 | ac_lo=$ac_mid; break | |
14894 | else | |
14895 | echo "$as_me: failed program was:" >&5 | |
14896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14897 | ||
14898 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14899 | if test $ac_mid -le $ac_hi; then | |
14900 | ac_lo= ac_hi= | |
14901 | break | |
14902 | fi | |
14903 | ac_mid=`expr 2 '*' $ac_mid` | |
14904 | fi | |
14905 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14906 | done | |
247f5006 | 14907 | else |
e6cc62c6 VS |
14908 | echo "$as_me: failed program was:" >&5 |
14909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14910 | ||
14911 | ac_lo= ac_hi= | |
14912 | fi | |
14913 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14914 | fi | |
14915 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14916 | # Binary search between lo and hi bounds. | |
14917 | while test "x$ac_lo" != "x$ac_hi"; do | |
14918 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14919 | cat >conftest.$ac_ext <<_ACEOF | |
14920 | #line $LINENO "configure" | |
14921 | /* confdefs.h. */ | |
14922 | _ACEOF | |
14923 | cat confdefs.h >>conftest.$ac_ext | |
14924 | cat >>conftest.$ac_ext <<_ACEOF | |
14925 | /* end confdefs.h. */ | |
14926 | $ac_includes_default | |
14927 | int | |
14928 | main () | |
14929 | { | |
14930 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14931 | test_array [0] = 0 | |
14932 | ||
14933 | ; | |
14934 | return 0; | |
14935 | } | |
14936 | _ACEOF | |
14937 | rm -f conftest.$ac_objext | |
14938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14939 | (eval $ac_compile) 2>&5 | |
14940 | ac_status=$? | |
14941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14942 | (exit $ac_status); } && | |
14943 | { ac_try='test -s conftest.$ac_objext' | |
14944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14945 | (eval $ac_try) 2>&5 | |
14946 | ac_status=$? | |
14947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14948 | (exit $ac_status); }; }; then | |
14949 | ac_hi=$ac_mid | |
14950 | else | |
14951 | echo "$as_me: failed program was:" >&5 | |
14952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14953 | ||
14954 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14955 | fi | |
14956 | rm -f conftest.$ac_objext conftest.$ac_ext | |
14957 | done | |
14958 | case $ac_lo in | |
14959 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
14960 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
14961 | See \`config.log' for more details." >&5 | |
14962 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
14963 | See \`config.log' for more details." >&2;} | |
14964 | { (exit 1); exit 1; }; } ;; | |
14965 | esac | |
a0b9e27f | 14966 | else |
e6cc62c6 VS |
14967 | if test "$cross_compiling" = yes; then |
14968 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14969 | See \`config.log' for more details." >&5 | |
14970 | echo "$as_me: error: cannot run test program while cross compiling | |
14971 | See \`config.log' for more details." >&2;} | |
14972 | { (exit 1); exit 1; }; } | |
14973 | else | |
14974 | cat >conftest.$ac_ext <<_ACEOF | |
14975 | #line $LINENO "configure" | |
14976 | /* confdefs.h. */ | |
14977 | _ACEOF | |
14978 | cat confdefs.h >>conftest.$ac_ext | |
14979 | cat >>conftest.$ac_ext <<_ACEOF | |
14980 | /* end confdefs.h. */ | |
14981 | $ac_includes_default | |
14982 | long longval () { return (long) (sizeof (int)); } | |
14983 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 14984 | #include <stdio.h> |
e6cc62c6 VS |
14985 | #include <stdlib.h> |
14986 | int | |
14987 | main () | |
247f5006 | 14988 | { |
e6cc62c6 VS |
14989 | |
14990 | FILE *f = fopen ("conftest.val", "w"); | |
14991 | if (! f) | |
14992 | exit (1); | |
14993 | if (((long) (sizeof (int))) < 0) | |
14994 | { | |
14995 | long i = longval (); | |
14996 | if (i != ((long) (sizeof (int)))) | |
14997 | exit (1); | |
14998 | fprintf (f, "%ld\n", i); | |
14999 | } | |
15000 | else | |
15001 | { | |
15002 | unsigned long i = ulongval (); | |
15003 | if (i != ((long) (sizeof (int)))) | |
15004 | exit (1); | |
15005 | fprintf (f, "%lu\n", i); | |
15006 | } | |
15007 | exit (ferror (f) || fclose (f) != 0); | |
15008 | ||
15009 | ; | |
15010 | return 0; | |
247f5006 | 15011 | } |
e6cc62c6 VS |
15012 | _ACEOF |
15013 | rm -f conftest$ac_exeext | |
15014 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15015 | (eval $ac_link) 2>&5 | |
15016 | ac_status=$? | |
15017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15018 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15020 | (eval $ac_try) 2>&5 | |
15021 | ac_status=$? | |
15022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15023 | (exit $ac_status); }; }; then | |
15024 | ac_cv_sizeof_int=`cat conftest.val` | |
15025 | else | |
15026 | echo "$as_me: program exited with status $ac_status" >&5 | |
15027 | echo "$as_me: failed program was:" >&5 | |
15028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15029 | ||
15030 | ( exit $ac_status ) | |
15031 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15032 | See \`config.log' for more details." >&5 | |
15033 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15034 | See \`config.log' for more details." >&2;} | |
15035 | { (exit 1); exit 1; }; } | |
15036 | fi | |
15037 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15038 | fi | |
15039 | fi | |
15040 | rm -f conftest.val | |
6f72b082 | 15041 | else |
a0b9e27f | 15042 | ac_cv_sizeof_int=0 |
21d1c967 | 15043 | fi |
698dcdb6 | 15044 | fi |
e6cc62c6 VS |
15045 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15046 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15047 | cat >>confdefs.h <<_ACEOF | |
15048 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15049 | _ACEOF | |
15050 | ||
15051 | ||
15052 | echo "$as_me:$LINENO: checking for long" >&5 | |
15053 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15054 | if test "${ac_cv_type_long+set}" = set; then | |
15055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15056 | else | |
15057 | cat >conftest.$ac_ext <<_ACEOF | |
15058 | #line $LINENO "configure" | |
15059 | /* confdefs.h. */ | |
15060 | _ACEOF | |
15061 | cat confdefs.h >>conftest.$ac_ext | |
15062 | cat >>conftest.$ac_ext <<_ACEOF | |
15063 | /* end confdefs.h. */ | |
15064 | $ac_includes_default | |
15065 | int | |
15066 | main () | |
15067 | { | |
15068 | if ((long *) 0) | |
15069 | return 0; | |
15070 | if (sizeof (long)) | |
15071 | return 0; | |
15072 | ; | |
15073 | return 0; | |
15074 | } | |
15075 | _ACEOF | |
15076 | rm -f conftest.$ac_objext | |
15077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15078 | (eval $ac_compile) 2>&5 | |
15079 | ac_status=$? | |
15080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15081 | (exit $ac_status); } && | |
15082 | { ac_try='test -s conftest.$ac_objext' | |
15083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15084 | (eval $ac_try) 2>&5 | |
15085 | ac_status=$? | |
15086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15087 | (exit $ac_status); }; }; then | |
15088 | ac_cv_type_long=yes | |
15089 | else | |
15090 | echo "$as_me: failed program was:" >&5 | |
15091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15092 | ||
15093 | ac_cv_type_long=no | |
15094 | fi | |
15095 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15096 | fi | |
15097 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15098 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15099 | ||
15100 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15101 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15102 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15104 | else | |
15105 | if test "$ac_cv_type_long" = yes; then | |
15106 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15107 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15108 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15109 | # This bug is HP SR number 8606223364. | |
15110 | if test "$cross_compiling" = yes; then | |
15111 | # Depending upon the size, compute the lo and hi bounds. | |
15112 | cat >conftest.$ac_ext <<_ACEOF | |
15113 | #line $LINENO "configure" | |
15114 | /* confdefs.h. */ | |
15115 | _ACEOF | |
15116 | cat confdefs.h >>conftest.$ac_ext | |
15117 | cat >>conftest.$ac_ext <<_ACEOF | |
15118 | /* end confdefs.h. */ | |
15119 | $ac_includes_default | |
15120 | int | |
15121 | main () | |
15122 | { | |
15123 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15124 | test_array [0] = 0 | |
15125 | ||
15126 | ; | |
15127 | return 0; | |
15128 | } | |
15129 | _ACEOF | |
15130 | rm -f conftest.$ac_objext | |
15131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15132 | (eval $ac_compile) 2>&5 | |
15133 | ac_status=$? | |
15134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15135 | (exit $ac_status); } && | |
15136 | { ac_try='test -s conftest.$ac_objext' | |
15137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15138 | (eval $ac_try) 2>&5 | |
15139 | ac_status=$? | |
15140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15141 | (exit $ac_status); }; }; then | |
15142 | ac_lo=0 ac_mid=0 | |
15143 | while :; do | |
15144 | cat >conftest.$ac_ext <<_ACEOF | |
15145 | #line $LINENO "configure" | |
15146 | /* confdefs.h. */ | |
15147 | _ACEOF | |
15148 | cat confdefs.h >>conftest.$ac_ext | |
15149 | cat >>conftest.$ac_ext <<_ACEOF | |
15150 | /* end confdefs.h. */ | |
15151 | $ac_includes_default | |
15152 | int | |
15153 | main () | |
15154 | { | |
15155 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15156 | test_array [0] = 0 | |
4f14bcd8 | 15157 | |
e6cc62c6 VS |
15158 | ; |
15159 | return 0; | |
15160 | } | |
15161 | _ACEOF | |
15162 | rm -f conftest.$ac_objext | |
15163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15164 | (eval $ac_compile) 2>&5 | |
15165 | ac_status=$? | |
15166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15167 | (exit $ac_status); } && | |
15168 | { ac_try='test -s conftest.$ac_objext' | |
15169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15170 | (eval $ac_try) 2>&5 | |
15171 | ac_status=$? | |
15172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15173 | (exit $ac_status); }; }; then | |
15174 | ac_hi=$ac_mid; break | |
15175 | else | |
15176 | echo "$as_me: failed program was:" >&5 | |
15177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15178 | ||
15179 | ac_lo=`expr $ac_mid + 1` | |
15180 | if test $ac_lo -le $ac_mid; then | |
15181 | ac_lo= ac_hi= | |
15182 | break | |
15183 | fi | |
15184 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15185 | fi |
e6cc62c6 VS |
15186 | rm -f conftest.$ac_objext conftest.$ac_ext |
15187 | done | |
15188 | else | |
15189 | echo "$as_me: failed program was:" >&5 | |
15190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15191 | ||
15192 | cat >conftest.$ac_ext <<_ACEOF | |
15193 | #line $LINENO "configure" | |
15194 | /* confdefs.h. */ | |
15195 | _ACEOF | |
15196 | cat confdefs.h >>conftest.$ac_ext | |
15197 | cat >>conftest.$ac_ext <<_ACEOF | |
15198 | /* end confdefs.h. */ | |
15199 | $ac_includes_default | |
15200 | int | |
15201 | main () | |
15202 | { | |
15203 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15204 | test_array [0] = 0 | |
4f14bcd8 | 15205 | |
e6cc62c6 VS |
15206 | ; |
15207 | return 0; | |
15208 | } | |
15209 | _ACEOF | |
15210 | rm -f conftest.$ac_objext | |
15211 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15212 | (eval $ac_compile) 2>&5 | |
15213 | ac_status=$? | |
15214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15215 | (exit $ac_status); } && | |
15216 | { ac_try='test -s conftest.$ac_objext' | |
15217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15218 | (eval $ac_try) 2>&5 | |
15219 | ac_status=$? | |
15220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15221 | (exit $ac_status); }; }; then | |
15222 | ac_hi=-1 ac_mid=-1 | |
15223 | while :; do | |
15224 | cat >conftest.$ac_ext <<_ACEOF | |
15225 | #line $LINENO "configure" | |
15226 | /* confdefs.h. */ | |
15227 | _ACEOF | |
15228 | cat confdefs.h >>conftest.$ac_ext | |
15229 | cat >>conftest.$ac_ext <<_ACEOF | |
15230 | /* end confdefs.h. */ | |
15231 | $ac_includes_default | |
15232 | int | |
15233 | main () | |
15234 | { | |
15235 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15236 | test_array [0] = 0 | |
5c6fa7d2 | 15237 | |
e6cc62c6 VS |
15238 | ; |
15239 | return 0; | |
15240 | } | |
15241 | _ACEOF | |
15242 | rm -f conftest.$ac_objext | |
15243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15244 | (eval $ac_compile) 2>&5 | |
15245 | ac_status=$? | |
15246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15247 | (exit $ac_status); } && | |
15248 | { ac_try='test -s conftest.$ac_objext' | |
15249 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15250 | (eval $ac_try) 2>&5 | |
15251 | ac_status=$? | |
15252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15253 | (exit $ac_status); }; }; then | |
15254 | ac_lo=$ac_mid; break | |
15255 | else | |
15256 | echo "$as_me: failed program was:" >&5 | |
15257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15258 | ||
15259 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15260 | if test $ac_mid -le $ac_hi; then | |
15261 | ac_lo= ac_hi= | |
15262 | break | |
15263 | fi | |
15264 | ac_mid=`expr 2 '*' $ac_mid` | |
15265 | fi | |
15266 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15267 | done | |
247f5006 | 15268 | else |
e6cc62c6 VS |
15269 | echo "$as_me: failed program was:" >&5 |
15270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15271 | ||
15272 | ac_lo= ac_hi= | |
15273 | fi | |
15274 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15275 | fi | |
15276 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15277 | # Binary search between lo and hi bounds. | |
15278 | while test "x$ac_lo" != "x$ac_hi"; do | |
15279 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15280 | cat >conftest.$ac_ext <<_ACEOF | |
15281 | #line $LINENO "configure" | |
15282 | /* confdefs.h. */ | |
15283 | _ACEOF | |
15284 | cat confdefs.h >>conftest.$ac_ext | |
15285 | cat >>conftest.$ac_ext <<_ACEOF | |
15286 | /* end confdefs.h. */ | |
15287 | $ac_includes_default | |
15288 | int | |
15289 | main () | |
15290 | { | |
15291 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15292 | test_array [0] = 0 | |
15293 | ||
15294 | ; | |
15295 | return 0; | |
15296 | } | |
15297 | _ACEOF | |
15298 | rm -f conftest.$ac_objext | |
15299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15300 | (eval $ac_compile) 2>&5 | |
15301 | ac_status=$? | |
15302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15303 | (exit $ac_status); } && | |
15304 | { ac_try='test -s conftest.$ac_objext' | |
15305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15306 | (eval $ac_try) 2>&5 | |
15307 | ac_status=$? | |
15308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15309 | (exit $ac_status); }; }; then | |
15310 | ac_hi=$ac_mid | |
15311 | else | |
15312 | echo "$as_me: failed program was:" >&5 | |
15313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15314 | ||
15315 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15316 | fi | |
15317 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15318 | done | |
15319 | case $ac_lo in | |
15320 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
15321 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15322 | See \`config.log' for more details." >&5 | |
15323 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15324 | See \`config.log' for more details." >&2;} | |
15325 | { (exit 1); exit 1; }; } ;; | |
15326 | esac | |
247f5006 | 15327 | else |
e6cc62c6 VS |
15328 | if test "$cross_compiling" = yes; then |
15329 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15330 | See \`config.log' for more details." >&5 | |
15331 | echo "$as_me: error: cannot run test program while cross compiling | |
15332 | See \`config.log' for more details." >&2;} | |
15333 | { (exit 1); exit 1; }; } | |
15334 | else | |
15335 | cat >conftest.$ac_ext <<_ACEOF | |
15336 | #line $LINENO "configure" | |
15337 | /* confdefs.h. */ | |
15338 | _ACEOF | |
15339 | cat confdefs.h >>conftest.$ac_ext | |
15340 | cat >>conftest.$ac_ext <<_ACEOF | |
15341 | /* end confdefs.h. */ | |
15342 | $ac_includes_default | |
15343 | long longval () { return (long) (sizeof (long)); } | |
15344 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 15345 | #include <stdio.h> |
e6cc62c6 VS |
15346 | #include <stdlib.h> |
15347 | int | |
15348 | main () | |
247f5006 | 15349 | { |
e6cc62c6 VS |
15350 | |
15351 | FILE *f = fopen ("conftest.val", "w"); | |
15352 | if (! f) | |
15353 | exit (1); | |
15354 | if (((long) (sizeof (long))) < 0) | |
15355 | { | |
15356 | long i = longval (); | |
15357 | if (i != ((long) (sizeof (long)))) | |
15358 | exit (1); | |
15359 | fprintf (f, "%ld\n", i); | |
15360 | } | |
15361 | else | |
15362 | { | |
15363 | unsigned long i = ulongval (); | |
15364 | if (i != ((long) (sizeof (long)))) | |
15365 | exit (1); | |
15366 | fprintf (f, "%lu\n", i); | |
15367 | } | |
15368 | exit (ferror (f) || fclose (f) != 0); | |
15369 | ||
15370 | ; | |
15371 | return 0; | |
247f5006 | 15372 | } |
e6cc62c6 VS |
15373 | _ACEOF |
15374 | rm -f conftest$ac_exeext | |
15375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15376 | (eval $ac_link) 2>&5 | |
15377 | ac_status=$? | |
15378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15379 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15381 | (eval $ac_try) 2>&5 | |
15382 | ac_status=$? | |
15383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15384 | (exit $ac_status); }; }; then | |
15385 | ac_cv_sizeof_long=`cat conftest.val` | |
15386 | else | |
15387 | echo "$as_me: program exited with status $ac_status" >&5 | |
15388 | echo "$as_me: failed program was:" >&5 | |
15389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15390 | ||
15391 | ( exit $ac_status ) | |
15392 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15393 | See \`config.log' for more details." >&5 | |
15394 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15395 | See \`config.log' for more details." >&2;} | |
15396 | { (exit 1); exit 1; }; } | |
15397 | fi | |
15398 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15399 | fi | |
15400 | fi | |
15401 | rm -f conftest.val | |
247f5006 | 15402 | else |
a0b9e27f | 15403 | ac_cv_sizeof_long=0 |
247f5006 | 15404 | fi |
247f5006 | 15405 | fi |
e6cc62c6 VS |
15406 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
15407 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15408 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 15409 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 15410 | _ACEOF |
247f5006 | 15411 | |
a0b9e27f MB |
15412 | |
15413 | ||
15414 | case "${host}" in | |
15415 | arm-*-linux* ) | |
e6cc62c6 VS |
15416 | echo "$as_me:$LINENO: checking for long long" >&5 |
15417 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15418 | if test "${ac_cv_type_long_long+set}" = set; then | |
15419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15420 | else | |
15421 | cat >conftest.$ac_ext <<_ACEOF | |
15422 | #line $LINENO "configure" | |
15423 | /* confdefs.h. */ | |
15424 | _ACEOF | |
15425 | cat confdefs.h >>conftest.$ac_ext | |
15426 | cat >>conftest.$ac_ext <<_ACEOF | |
15427 | /* end confdefs.h. */ | |
15428 | $ac_includes_default | |
15429 | int | |
15430 | main () | |
15431 | { | |
15432 | if ((long long *) 0) | |
15433 | return 0; | |
15434 | if (sizeof (long long)) | |
15435 | return 0; | |
15436 | ; | |
15437 | return 0; | |
15438 | } | |
15439 | _ACEOF | |
15440 | rm -f conftest.$ac_objext | |
15441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15442 | (eval $ac_compile) 2>&5 | |
15443 | ac_status=$? | |
15444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15445 | (exit $ac_status); } && | |
15446 | { ac_try='test -s conftest.$ac_objext' | |
15447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15448 | (eval $ac_try) 2>&5 | |
15449 | ac_status=$? | |
15450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15451 | (exit $ac_status); }; }; then | |
15452 | ac_cv_type_long_long=yes | |
15453 | else | |
15454 | echo "$as_me: failed program was:" >&5 | |
15455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15456 | ||
15457 | ac_cv_type_long_long=no | |
15458 | fi | |
15459 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15460 | fi | |
15461 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15462 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15463 | ||
15464 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15465 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15466 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15468 | else | |
15469 | if test "$ac_cv_type_long_long" = yes; then | |
15470 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15471 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15472 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15473 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 15474 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
15475 | # Depending upon the size, compute the lo and hi bounds. |
15476 | cat >conftest.$ac_ext <<_ACEOF | |
15477 | #line $LINENO "configure" | |
15478 | /* confdefs.h. */ | |
15479 | _ACEOF | |
15480 | cat confdefs.h >>conftest.$ac_ext | |
15481 | cat >>conftest.$ac_ext <<_ACEOF | |
15482 | /* end confdefs.h. */ | |
15483 | $ac_includes_default | |
15484 | int | |
15485 | main () | |
15486 | { | |
15487 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15488 | test_array [0] = 0 | |
15489 | ||
15490 | ; | |
15491 | return 0; | |
15492 | } | |
15493 | _ACEOF | |
15494 | rm -f conftest.$ac_objext | |
15495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15496 | (eval $ac_compile) 2>&5 | |
15497 | ac_status=$? | |
15498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15499 | (exit $ac_status); } && | |
15500 | { ac_try='test -s conftest.$ac_objext' | |
15501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15502 | (eval $ac_try) 2>&5 | |
15503 | ac_status=$? | |
15504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15505 | (exit $ac_status); }; }; then | |
15506 | ac_lo=0 ac_mid=0 | |
15507 | while :; do | |
15508 | cat >conftest.$ac_ext <<_ACEOF | |
15509 | #line $LINENO "configure" | |
15510 | /* confdefs.h. */ | |
15511 | _ACEOF | |
15512 | cat confdefs.h >>conftest.$ac_ext | |
15513 | cat >>conftest.$ac_ext <<_ACEOF | |
15514 | /* end confdefs.h. */ | |
15515 | $ac_includes_default | |
15516 | int | |
15517 | main () | |
15518 | { | |
15519 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15520 | test_array [0] = 0 | |
15521 | ||
15522 | ; | |
15523 | return 0; | |
15524 | } | |
15525 | _ACEOF | |
15526 | rm -f conftest.$ac_objext | |
15527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15528 | (eval $ac_compile) 2>&5 | |
15529 | ac_status=$? | |
15530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15531 | (exit $ac_status); } && | |
15532 | { ac_try='test -s conftest.$ac_objext' | |
15533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15534 | (eval $ac_try) 2>&5 | |
15535 | ac_status=$? | |
15536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15537 | (exit $ac_status); }; }; then | |
15538 | ac_hi=$ac_mid; break | |
15539 | else | |
15540 | echo "$as_me: failed program was:" >&5 | |
15541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15542 | ||
15543 | ac_lo=`expr $ac_mid + 1` | |
15544 | if test $ac_lo -le $ac_mid; then | |
15545 | ac_lo= ac_hi= | |
15546 | break | |
15547 | fi | |
15548 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15549 | fi | |
15550 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15551 | done | |
15552 | else | |
15553 | echo "$as_me: failed program was:" >&5 | |
15554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15555 | ||
15556 | cat >conftest.$ac_ext <<_ACEOF | |
15557 | #line $LINENO "configure" | |
15558 | /* confdefs.h. */ | |
15559 | _ACEOF | |
15560 | cat confdefs.h >>conftest.$ac_ext | |
15561 | cat >>conftest.$ac_ext <<_ACEOF | |
15562 | /* end confdefs.h. */ | |
15563 | $ac_includes_default | |
15564 | int | |
15565 | main () | |
15566 | { | |
15567 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15568 | test_array [0] = 0 | |
15569 | ||
15570 | ; | |
15571 | return 0; | |
15572 | } | |
15573 | _ACEOF | |
15574 | rm -f conftest.$ac_objext | |
15575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15576 | (eval $ac_compile) 2>&5 | |
15577 | ac_status=$? | |
15578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15579 | (exit $ac_status); } && | |
15580 | { ac_try='test -s conftest.$ac_objext' | |
15581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15582 | (eval $ac_try) 2>&5 | |
15583 | ac_status=$? | |
15584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15585 | (exit $ac_status); }; }; then | |
15586 | ac_hi=-1 ac_mid=-1 | |
15587 | while :; do | |
15588 | cat >conftest.$ac_ext <<_ACEOF | |
15589 | #line $LINENO "configure" | |
15590 | /* confdefs.h. */ | |
15591 | _ACEOF | |
15592 | cat confdefs.h >>conftest.$ac_ext | |
15593 | cat >>conftest.$ac_ext <<_ACEOF | |
15594 | /* end confdefs.h. */ | |
15595 | $ac_includes_default | |
15596 | int | |
15597 | main () | |
15598 | { | |
15599 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15600 | test_array [0] = 0 | |
15601 | ||
15602 | ; | |
15603 | return 0; | |
15604 | } | |
15605 | _ACEOF | |
15606 | rm -f conftest.$ac_objext | |
15607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15608 | (eval $ac_compile) 2>&5 | |
15609 | ac_status=$? | |
15610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15611 | (exit $ac_status); } && | |
15612 | { ac_try='test -s conftest.$ac_objext' | |
15613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15614 | (eval $ac_try) 2>&5 | |
15615 | ac_status=$? | |
15616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15617 | (exit $ac_status); }; }; then | |
15618 | ac_lo=$ac_mid; break | |
15619 | else | |
15620 | echo "$as_me: failed program was:" >&5 | |
15621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15622 | ||
15623 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15624 | if test $ac_mid -le $ac_hi; then | |
15625 | ac_lo= ac_hi= | |
15626 | break | |
15627 | fi | |
15628 | ac_mid=`expr 2 '*' $ac_mid` | |
15629 | fi | |
15630 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15631 | done | |
15632 | else | |
15633 | echo "$as_me: failed program was:" >&5 | |
15634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15635 | ||
15636 | ac_lo= ac_hi= | |
15637 | fi | |
15638 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15639 | fi | |
15640 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15641 | # Binary search between lo and hi bounds. | |
15642 | while test "x$ac_lo" != "x$ac_hi"; do | |
15643 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15644 | cat >conftest.$ac_ext <<_ACEOF | |
15645 | #line $LINENO "configure" | |
15646 | /* confdefs.h. */ | |
15647 | _ACEOF | |
15648 | cat confdefs.h >>conftest.$ac_ext | |
15649 | cat >>conftest.$ac_ext <<_ACEOF | |
15650 | /* end confdefs.h. */ | |
15651 | $ac_includes_default | |
15652 | int | |
15653 | main () | |
15654 | { | |
15655 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15656 | test_array [0] = 0 | |
15657 | ||
15658 | ; | |
15659 | return 0; | |
15660 | } | |
15661 | _ACEOF | |
15662 | rm -f conftest.$ac_objext | |
15663 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15664 | (eval $ac_compile) 2>&5 | |
15665 | ac_status=$? | |
15666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15667 | (exit $ac_status); } && | |
15668 | { ac_try='test -s conftest.$ac_objext' | |
15669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15670 | (eval $ac_try) 2>&5 | |
15671 | ac_status=$? | |
15672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15673 | (exit $ac_status); }; }; then | |
15674 | ac_hi=$ac_mid | |
15675 | else | |
15676 | echo "$as_me: failed program was:" >&5 | |
15677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15678 | ||
15679 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15680 | fi | |
15681 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15682 | done | |
15683 | case $ac_lo in | |
15684 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15685 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15686 | See \`config.log' for more details." >&5 | |
15687 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15688 | See \`config.log' for more details." >&2;} | |
15689 | { (exit 1); exit 1; }; } ;; | |
15690 | esac | |
a0b9e27f | 15691 | else |
e6cc62c6 VS |
15692 | if test "$cross_compiling" = yes; then |
15693 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15694 | See \`config.log' for more details." >&5 | |
15695 | echo "$as_me: error: cannot run test program while cross compiling | |
15696 | See \`config.log' for more details." >&2;} | |
15697 | { (exit 1); exit 1; }; } | |
15698 | else | |
15699 | cat >conftest.$ac_ext <<_ACEOF | |
15700 | #line $LINENO "configure" | |
15701 | /* confdefs.h. */ | |
15702 | _ACEOF | |
15703 | cat confdefs.h >>conftest.$ac_ext | |
15704 | cat >>conftest.$ac_ext <<_ACEOF | |
15705 | /* end confdefs.h. */ | |
15706 | $ac_includes_default | |
15707 | long longval () { return (long) (sizeof (long long)); } | |
15708 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 15709 | #include <stdio.h> |
e6cc62c6 VS |
15710 | #include <stdlib.h> |
15711 | int | |
15712 | main () | |
247f5006 | 15713 | { |
e6cc62c6 VS |
15714 | |
15715 | FILE *f = fopen ("conftest.val", "w"); | |
15716 | if (! f) | |
15717 | exit (1); | |
15718 | if (((long) (sizeof (long long))) < 0) | |
15719 | { | |
15720 | long i = longval (); | |
15721 | if (i != ((long) (sizeof (long long)))) | |
15722 | exit (1); | |
15723 | fprintf (f, "%ld\n", i); | |
15724 | } | |
15725 | else | |
15726 | { | |
15727 | unsigned long i = ulongval (); | |
15728 | if (i != ((long) (sizeof (long long)))) | |
15729 | exit (1); | |
15730 | fprintf (f, "%lu\n", i); | |
15731 | } | |
15732 | exit (ferror (f) || fclose (f) != 0); | |
15733 | ||
15734 | ; | |
15735 | return 0; | |
247f5006 | 15736 | } |
e6cc62c6 VS |
15737 | _ACEOF |
15738 | rm -f conftest$ac_exeext | |
15739 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15740 | (eval $ac_link) 2>&5 | |
15741 | ac_status=$? | |
15742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15743 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15745 | (eval $ac_try) 2>&5 | |
15746 | ac_status=$? | |
15747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15748 | (exit $ac_status); }; }; then | |
15749 | ac_cv_sizeof_long_long=`cat conftest.val` | |
15750 | else | |
15751 | echo "$as_me: program exited with status $ac_status" >&5 | |
15752 | echo "$as_me: failed program was:" >&5 | |
15753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15754 | ||
15755 | ( exit $ac_status ) | |
15756 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15757 | See \`config.log' for more details." >&5 | |
15758 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15759 | See \`config.log' for more details." >&2;} | |
15760 | { (exit 1); exit 1; }; } | |
15761 | fi | |
15762 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15763 | fi | |
15764 | fi | |
15765 | rm -f conftest.val | |
7b4a847f | 15766 | else |
a0b9e27f | 15767 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
15768 | fi |
15769 | fi | |
e6cc62c6 VS |
15770 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
15771 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
15772 | cat >>confdefs.h <<_ACEOF | |
15773 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15774 | _ACEOF | |
15775 | ||
15776 | ||
15777 | ;; | |
15778 | *-hp-hpux* ) | |
15779 | echo "$as_me:$LINENO: checking for long long" >&5 | |
15780 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15781 | if test "${ac_cv_type_long_long+set}" = set; then | |
15782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15783 | else | |
15784 | cat >conftest.$ac_ext <<_ACEOF | |
15785 | #line $LINENO "configure" | |
15786 | /* confdefs.h. */ | |
15787 | _ACEOF | |
15788 | cat confdefs.h >>conftest.$ac_ext | |
15789 | cat >>conftest.$ac_ext <<_ACEOF | |
15790 | /* end confdefs.h. */ | |
15791 | $ac_includes_default | |
15792 | int | |
15793 | main () | |
15794 | { | |
15795 | if ((long long *) 0) | |
15796 | return 0; | |
15797 | if (sizeof (long long)) | |
15798 | return 0; | |
15799 | ; | |
15800 | return 0; | |
15801 | } | |
15802 | _ACEOF | |
15803 | rm -f conftest.$ac_objext | |
15804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15805 | (eval $ac_compile) 2>&5 | |
15806 | ac_status=$? | |
15807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15808 | (exit $ac_status); } && | |
15809 | { ac_try='test -s conftest.$ac_objext' | |
15810 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15811 | (eval $ac_try) 2>&5 | |
15812 | ac_status=$? | |
15813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15814 | (exit $ac_status); }; }; then | |
15815 | ac_cv_type_long_long=yes | |
15816 | else | |
15817 | echo "$as_me: failed program was:" >&5 | |
15818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15819 | ||
15820 | ac_cv_type_long_long=no | |
15821 | fi | |
15822 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15823 | fi | |
15824 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15825 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15826 | ||
15827 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15828 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15829 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15831 | else | |
15832 | if test "$ac_cv_type_long_long" = yes; then | |
15833 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15834 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15835 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15836 | # This bug is HP SR number 8606223364. | |
15837 | if test "$cross_compiling" = yes; then | |
15838 | # Depending upon the size, compute the lo and hi bounds. | |
15839 | cat >conftest.$ac_ext <<_ACEOF | |
15840 | #line $LINENO "configure" | |
15841 | /* confdefs.h. */ | |
15842 | _ACEOF | |
15843 | cat confdefs.h >>conftest.$ac_ext | |
15844 | cat >>conftest.$ac_ext <<_ACEOF | |
15845 | /* end confdefs.h. */ | |
15846 | $ac_includes_default | |
15847 | int | |
15848 | main () | |
15849 | { | |
15850 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15851 | test_array [0] = 0 | |
15852 | ||
15853 | ; | |
15854 | return 0; | |
15855 | } | |
15856 | _ACEOF | |
15857 | rm -f conftest.$ac_objext | |
15858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15859 | (eval $ac_compile) 2>&5 | |
15860 | ac_status=$? | |
15861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15862 | (exit $ac_status); } && | |
15863 | { ac_try='test -s conftest.$ac_objext' | |
15864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15865 | (eval $ac_try) 2>&5 | |
15866 | ac_status=$? | |
15867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15868 | (exit $ac_status); }; }; then | |
15869 | ac_lo=0 ac_mid=0 | |
15870 | while :; do | |
15871 | cat >conftest.$ac_ext <<_ACEOF | |
15872 | #line $LINENO "configure" | |
15873 | /* confdefs.h. */ | |
15874 | _ACEOF | |
15875 | cat confdefs.h >>conftest.$ac_ext | |
15876 | cat >>conftest.$ac_ext <<_ACEOF | |
15877 | /* end confdefs.h. */ | |
15878 | $ac_includes_default | |
15879 | int | |
15880 | main () | |
15881 | { | |
15882 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15883 | test_array [0] = 0 | |
8284b0c5 | 15884 | |
e6cc62c6 VS |
15885 | ; |
15886 | return 0; | |
15887 | } | |
15888 | _ACEOF | |
15889 | rm -f conftest.$ac_objext | |
15890 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15891 | (eval $ac_compile) 2>&5 | |
15892 | ac_status=$? | |
15893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15894 | (exit $ac_status); } && | |
15895 | { ac_try='test -s conftest.$ac_objext' | |
15896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15897 | (eval $ac_try) 2>&5 | |
15898 | ac_status=$? | |
15899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15900 | (exit $ac_status); }; }; then | |
15901 | ac_hi=$ac_mid; break | |
15902 | else | |
15903 | echo "$as_me: failed program was:" >&5 | |
15904 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15905 | ||
15906 | ac_lo=`expr $ac_mid + 1` | |
15907 | if test $ac_lo -le $ac_mid; then | |
15908 | ac_lo= ac_hi= | |
15909 | break | |
15910 | fi | |
15911 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 15912 | fi |
e6cc62c6 VS |
15913 | rm -f conftest.$ac_objext conftest.$ac_ext |
15914 | done | |
15915 | else | |
15916 | echo "$as_me: failed program was:" >&5 | |
15917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15918 | ||
15919 | cat >conftest.$ac_ext <<_ACEOF | |
15920 | #line $LINENO "configure" | |
15921 | /* confdefs.h. */ | |
15922 | _ACEOF | |
15923 | cat confdefs.h >>conftest.$ac_ext | |
15924 | cat >>conftest.$ac_ext <<_ACEOF | |
15925 | /* end confdefs.h. */ | |
15926 | $ac_includes_default | |
15927 | int | |
15928 | main () | |
15929 | { | |
15930 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15931 | test_array [0] = 0 | |
a0b9e27f | 15932 | |
e6cc62c6 VS |
15933 | ; |
15934 | return 0; | |
15935 | } | |
15936 | _ACEOF | |
15937 | rm -f conftest.$ac_objext | |
15938 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15939 | (eval $ac_compile) 2>&5 | |
15940 | ac_status=$? | |
15941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15942 | (exit $ac_status); } && | |
15943 | { ac_try='test -s conftest.$ac_objext' | |
15944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15945 | (eval $ac_try) 2>&5 | |
15946 | ac_status=$? | |
15947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15948 | (exit $ac_status); }; }; then | |
15949 | ac_hi=-1 ac_mid=-1 | |
15950 | while :; do | |
15951 | cat >conftest.$ac_ext <<_ACEOF | |
15952 | #line $LINENO "configure" | |
15953 | /* confdefs.h. */ | |
15954 | _ACEOF | |
15955 | cat confdefs.h >>conftest.$ac_ext | |
15956 | cat >>conftest.$ac_ext <<_ACEOF | |
15957 | /* end confdefs.h. */ | |
15958 | $ac_includes_default | |
15959 | int | |
15960 | main () | |
15961 | { | |
15962 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15963 | test_array [0] = 0 | |
a0b9e27f | 15964 | |
e6cc62c6 VS |
15965 | ; |
15966 | return 0; | |
15967 | } | |
15968 | _ACEOF | |
15969 | rm -f conftest.$ac_objext | |
15970 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15971 | (eval $ac_compile) 2>&5 | |
15972 | ac_status=$? | |
15973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15974 | (exit $ac_status); } && | |
15975 | { ac_try='test -s conftest.$ac_objext' | |
15976 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15977 | (eval $ac_try) 2>&5 | |
15978 | ac_status=$? | |
15979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15980 | (exit $ac_status); }; }; then | |
15981 | ac_lo=$ac_mid; break | |
15982 | else | |
15983 | echo "$as_me: failed program was:" >&5 | |
15984 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15985 | ||
15986 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15987 | if test $ac_mid -le $ac_hi; then | |
15988 | ac_lo= ac_hi= | |
15989 | break | |
15990 | fi | |
15991 | ac_mid=`expr 2 '*' $ac_mid` | |
15992 | fi | |
15993 | rm -f conftest.$ac_objext conftest.$ac_ext | |
15994 | done | |
8284b0c5 | 15995 | else |
e6cc62c6 VS |
15996 | echo "$as_me: failed program was:" >&5 |
15997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15998 | ||
15999 | ac_lo= ac_hi= | |
16000 | fi | |
16001 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16002 | fi | |
16003 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16004 | # Binary search between lo and hi bounds. | |
16005 | while test "x$ac_lo" != "x$ac_hi"; do | |
16006 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16007 | cat >conftest.$ac_ext <<_ACEOF | |
16008 | #line $LINENO "configure" | |
16009 | /* confdefs.h. */ | |
16010 | _ACEOF | |
16011 | cat confdefs.h >>conftest.$ac_ext | |
16012 | cat >>conftest.$ac_ext <<_ACEOF | |
16013 | /* end confdefs.h. */ | |
16014 | $ac_includes_default | |
16015 | int | |
16016 | main () | |
16017 | { | |
16018 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16019 | test_array [0] = 0 | |
16020 | ||
16021 | ; | |
16022 | return 0; | |
16023 | } | |
16024 | _ACEOF | |
16025 | rm -f conftest.$ac_objext | |
16026 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16027 | (eval $ac_compile) 2>&5 | |
16028 | ac_status=$? | |
16029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16030 | (exit $ac_status); } && | |
16031 | { ac_try='test -s conftest.$ac_objext' | |
16032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16033 | (eval $ac_try) 2>&5 | |
16034 | ac_status=$? | |
16035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16036 | (exit $ac_status); }; }; then | |
16037 | ac_hi=$ac_mid | |
16038 | else | |
16039 | echo "$as_me: failed program was:" >&5 | |
16040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16041 | ||
16042 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16043 | fi | |
16044 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16045 | done | |
16046 | case $ac_lo in | |
16047 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16048 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16049 | See \`config.log' for more details." >&5 | |
16050 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16051 | See \`config.log' for more details." >&2;} | |
16052 | { (exit 1); exit 1; }; } ;; | |
16053 | esac | |
8284b0c5 | 16054 | else |
e6cc62c6 VS |
16055 | if test "$cross_compiling" = yes; then |
16056 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16057 | See \`config.log' for more details." >&5 | |
16058 | echo "$as_me: error: cannot run test program while cross compiling | |
16059 | See \`config.log' for more details." >&2;} | |
16060 | { (exit 1); exit 1; }; } | |
16061 | else | |
16062 | cat >conftest.$ac_ext <<_ACEOF | |
16063 | #line $LINENO "configure" | |
16064 | /* confdefs.h. */ | |
16065 | _ACEOF | |
16066 | cat confdefs.h >>conftest.$ac_ext | |
16067 | cat >>conftest.$ac_ext <<_ACEOF | |
16068 | /* end confdefs.h. */ | |
16069 | $ac_includes_default | |
16070 | long longval () { return (long) (sizeof (long long)); } | |
16071 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 16072 | #include <stdio.h> |
e6cc62c6 VS |
16073 | #include <stdlib.h> |
16074 | int | |
16075 | main () | |
8284b0c5 | 16076 | { |
e6cc62c6 VS |
16077 | |
16078 | FILE *f = fopen ("conftest.val", "w"); | |
16079 | if (! f) | |
16080 | exit (1); | |
16081 | if (((long) (sizeof (long long))) < 0) | |
16082 | { | |
16083 | long i = longval (); | |
16084 | if (i != ((long) (sizeof (long long)))) | |
16085 | exit (1); | |
16086 | fprintf (f, "%ld\n", i); | |
16087 | } | |
16088 | else | |
16089 | { | |
16090 | unsigned long i = ulongval (); | |
16091 | if (i != ((long) (sizeof (long long)))) | |
16092 | exit (1); | |
16093 | fprintf (f, "%lu\n", i); | |
16094 | } | |
16095 | exit (ferror (f) || fclose (f) != 0); | |
16096 | ||
16097 | ; | |
16098 | return 0; | |
8284b0c5 | 16099 | } |
e6cc62c6 VS |
16100 | _ACEOF |
16101 | rm -f conftest$ac_exeext | |
16102 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16103 | (eval $ac_link) 2>&5 | |
16104 | ac_status=$? | |
16105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16106 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16108 | (eval $ac_try) 2>&5 | |
16109 | ac_status=$? | |
16110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16111 | (exit $ac_status); }; }; then | |
16112 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16113 | else | |
16114 | echo "$as_me: program exited with status $ac_status" >&5 | |
16115 | echo "$as_me: failed program was:" >&5 | |
16116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16117 | ||
16118 | ( exit $ac_status ) | |
16119 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16120 | See \`config.log' for more details." >&5 | |
16121 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16122 | See \`config.log' for more details." >&2;} | |
16123 | { (exit 1); exit 1; }; } | |
16124 | fi | |
16125 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16126 | fi | |
16127 | fi | |
16128 | rm -f conftest.val | |
5c6fa7d2 RR |
16129 | else |
16130 | ac_cv_sizeof_long_long=0 | |
52127426 | 16131 | fi |
4f57cf11 | 16132 | fi |
e6cc62c6 VS |
16133 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16134 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16135 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 16136 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16137 | _ACEOF |
4f57cf11 GD |
16138 | |
16139 | ||
16140 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16141 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16142 | fi | |
16143 | ;; | |
16144 | * ) | |
e6cc62c6 VS |
16145 | echo "$as_me:$LINENO: checking for long long" >&5 |
16146 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16147 | if test "${ac_cv_type_long_long+set}" = set; then | |
16148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16149 | else | |
16150 | cat >conftest.$ac_ext <<_ACEOF | |
16151 | #line $LINENO "configure" | |
16152 | /* confdefs.h. */ | |
16153 | _ACEOF | |
16154 | cat confdefs.h >>conftest.$ac_ext | |
16155 | cat >>conftest.$ac_ext <<_ACEOF | |
16156 | /* end confdefs.h. */ | |
16157 | $ac_includes_default | |
16158 | int | |
16159 | main () | |
16160 | { | |
16161 | if ((long long *) 0) | |
16162 | return 0; | |
16163 | if (sizeof (long long)) | |
16164 | return 0; | |
16165 | ; | |
16166 | return 0; | |
16167 | } | |
16168 | _ACEOF | |
16169 | rm -f conftest.$ac_objext | |
16170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16171 | (eval $ac_compile) 2>&5 | |
16172 | ac_status=$? | |
16173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16174 | (exit $ac_status); } && | |
16175 | { ac_try='test -s conftest.$ac_objext' | |
16176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16177 | (eval $ac_try) 2>&5 | |
16178 | ac_status=$? | |
16179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16180 | (exit $ac_status); }; }; then | |
16181 | ac_cv_type_long_long=yes | |
16182 | else | |
16183 | echo "$as_me: failed program was:" >&5 | |
16184 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16185 | ||
16186 | ac_cv_type_long_long=no | |
16187 | fi | |
16188 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16189 | fi | |
16190 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16191 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16192 | ||
16193 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16194 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16195 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16197 | else | |
16198 | if test "$ac_cv_type_long_long" = yes; then | |
16199 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16200 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16201 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16202 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 16203 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16204 | # Depending upon the size, compute the lo and hi bounds. |
16205 | cat >conftest.$ac_ext <<_ACEOF | |
16206 | #line $LINENO "configure" | |
16207 | /* confdefs.h. */ | |
16208 | _ACEOF | |
16209 | cat confdefs.h >>conftest.$ac_ext | |
16210 | cat >>conftest.$ac_ext <<_ACEOF | |
16211 | /* end confdefs.h. */ | |
16212 | $ac_includes_default | |
16213 | int | |
16214 | main () | |
16215 | { | |
16216 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16217 | test_array [0] = 0 | |
16218 | ||
16219 | ; | |
16220 | return 0; | |
16221 | } | |
16222 | _ACEOF | |
16223 | rm -f conftest.$ac_objext | |
16224 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16225 | (eval $ac_compile) 2>&5 | |
16226 | ac_status=$? | |
16227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16228 | (exit $ac_status); } && | |
16229 | { ac_try='test -s conftest.$ac_objext' | |
16230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16231 | (eval $ac_try) 2>&5 | |
16232 | ac_status=$? | |
16233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16234 | (exit $ac_status); }; }; then | |
16235 | ac_lo=0 ac_mid=0 | |
16236 | while :; do | |
16237 | cat >conftest.$ac_ext <<_ACEOF | |
16238 | #line $LINENO "configure" | |
16239 | /* confdefs.h. */ | |
16240 | _ACEOF | |
16241 | cat confdefs.h >>conftest.$ac_ext | |
16242 | cat >>conftest.$ac_ext <<_ACEOF | |
16243 | /* end confdefs.h. */ | |
16244 | $ac_includes_default | |
16245 | int | |
16246 | main () | |
16247 | { | |
16248 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16249 | test_array [0] = 0 | |
16250 | ||
16251 | ; | |
16252 | return 0; | |
16253 | } | |
16254 | _ACEOF | |
16255 | rm -f conftest.$ac_objext | |
16256 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16257 | (eval $ac_compile) 2>&5 | |
16258 | ac_status=$? | |
16259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16260 | (exit $ac_status); } && | |
16261 | { ac_try='test -s conftest.$ac_objext' | |
16262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16263 | (eval $ac_try) 2>&5 | |
16264 | ac_status=$? | |
16265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16266 | (exit $ac_status); }; }; then | |
16267 | ac_hi=$ac_mid; break | |
16268 | else | |
16269 | echo "$as_me: failed program was:" >&5 | |
16270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16271 | ||
16272 | ac_lo=`expr $ac_mid + 1` | |
16273 | if test $ac_lo -le $ac_mid; then | |
16274 | ac_lo= ac_hi= | |
16275 | break | |
16276 | fi | |
16277 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16278 | fi | |
16279 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16280 | done | |
16281 | else | |
16282 | echo "$as_me: failed program was:" >&5 | |
16283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16284 | ||
16285 | cat >conftest.$ac_ext <<_ACEOF | |
16286 | #line $LINENO "configure" | |
16287 | /* confdefs.h. */ | |
16288 | _ACEOF | |
16289 | cat confdefs.h >>conftest.$ac_ext | |
16290 | cat >>conftest.$ac_ext <<_ACEOF | |
16291 | /* end confdefs.h. */ | |
16292 | $ac_includes_default | |
16293 | int | |
16294 | main () | |
16295 | { | |
16296 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16297 | test_array [0] = 0 | |
16298 | ||
16299 | ; | |
16300 | return 0; | |
16301 | } | |
16302 | _ACEOF | |
16303 | rm -f conftest.$ac_objext | |
16304 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16305 | (eval $ac_compile) 2>&5 | |
16306 | ac_status=$? | |
16307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16308 | (exit $ac_status); } && | |
16309 | { ac_try='test -s conftest.$ac_objext' | |
16310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16311 | (eval $ac_try) 2>&5 | |
16312 | ac_status=$? | |
16313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16314 | (exit $ac_status); }; }; then | |
16315 | ac_hi=-1 ac_mid=-1 | |
16316 | while :; do | |
16317 | cat >conftest.$ac_ext <<_ACEOF | |
16318 | #line $LINENO "configure" | |
16319 | /* confdefs.h. */ | |
16320 | _ACEOF | |
16321 | cat confdefs.h >>conftest.$ac_ext | |
16322 | cat >>conftest.$ac_ext <<_ACEOF | |
16323 | /* end confdefs.h. */ | |
16324 | $ac_includes_default | |
16325 | int | |
16326 | main () | |
16327 | { | |
16328 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16329 | test_array [0] = 0 | |
16330 | ||
16331 | ; | |
16332 | return 0; | |
16333 | } | |
16334 | _ACEOF | |
16335 | rm -f conftest.$ac_objext | |
16336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16337 | (eval $ac_compile) 2>&5 | |
16338 | ac_status=$? | |
16339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16340 | (exit $ac_status); } && | |
16341 | { ac_try='test -s conftest.$ac_objext' | |
16342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16343 | (eval $ac_try) 2>&5 | |
16344 | ac_status=$? | |
16345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16346 | (exit $ac_status); }; }; then | |
16347 | ac_lo=$ac_mid; break | |
16348 | else | |
16349 | echo "$as_me: failed program was:" >&5 | |
16350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16351 | ||
16352 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16353 | if test $ac_mid -le $ac_hi; then | |
16354 | ac_lo= ac_hi= | |
16355 | break | |
16356 | fi | |
16357 | ac_mid=`expr 2 '*' $ac_mid` | |
16358 | fi | |
16359 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16360 | done | |
4f57cf11 | 16361 | else |
e6cc62c6 VS |
16362 | echo "$as_me: failed program was:" >&5 |
16363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16364 | ||
16365 | ac_lo= ac_hi= | |
16366 | fi | |
16367 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16368 | fi | |
16369 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16370 | # Binary search between lo and hi bounds. | |
16371 | while test "x$ac_lo" != "x$ac_hi"; do | |
16372 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16373 | cat >conftest.$ac_ext <<_ACEOF | |
16374 | #line $LINENO "configure" | |
16375 | /* confdefs.h. */ | |
16376 | _ACEOF | |
16377 | cat confdefs.h >>conftest.$ac_ext | |
16378 | cat >>conftest.$ac_ext <<_ACEOF | |
16379 | /* end confdefs.h. */ | |
16380 | $ac_includes_default | |
16381 | int | |
16382 | main () | |
16383 | { | |
16384 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16385 | test_array [0] = 0 | |
16386 | ||
16387 | ; | |
16388 | return 0; | |
16389 | } | |
16390 | _ACEOF | |
16391 | rm -f conftest.$ac_objext | |
16392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16393 | (eval $ac_compile) 2>&5 | |
16394 | ac_status=$? | |
16395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16396 | (exit $ac_status); } && | |
16397 | { ac_try='test -s conftest.$ac_objext' | |
16398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16399 | (eval $ac_try) 2>&5 | |
16400 | ac_status=$? | |
16401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16402 | (exit $ac_status); }; }; then | |
16403 | ac_hi=$ac_mid | |
16404 | else | |
16405 | echo "$as_me: failed program was:" >&5 | |
16406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16407 | ||
16408 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16409 | fi | |
16410 | rm -f conftest.$ac_objext conftest.$ac_ext | |
16411 | done | |
16412 | case $ac_lo in | |
16413 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16414 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16415 | See \`config.log' for more details." >&5 | |
16416 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16417 | See \`config.log' for more details." >&2;} | |
16418 | { (exit 1); exit 1; }; } ;; | |
16419 | esac | |
16420 | else | |
16421 | if test "$cross_compiling" = yes; then | |
16422 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16423 | See \`config.log' for more details." >&5 | |
16424 | echo "$as_me: error: cannot run test program while cross compiling | |
16425 | See \`config.log' for more details." >&2;} | |
16426 | { (exit 1); exit 1; }; } | |
16427 | else | |
16428 | cat >conftest.$ac_ext <<_ACEOF | |
16429 | #line $LINENO "configure" | |
16430 | /* confdefs.h. */ | |
16431 | _ACEOF | |
16432 | cat confdefs.h >>conftest.$ac_ext | |
16433 | cat >>conftest.$ac_ext <<_ACEOF | |
16434 | /* end confdefs.h. */ | |
16435 | $ac_includes_default | |
16436 | long longval () { return (long) (sizeof (long long)); } | |
16437 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 16438 | #include <stdio.h> |
e6cc62c6 VS |
16439 | #include <stdlib.h> |
16440 | int | |
16441 | main () | |
4f57cf11 | 16442 | { |
e6cc62c6 VS |
16443 | |
16444 | FILE *f = fopen ("conftest.val", "w"); | |
16445 | if (! f) | |
16446 | exit (1); | |
16447 | if (((long) (sizeof (long long))) < 0) | |
16448 | { | |
16449 | long i = longval (); | |
16450 | if (i != ((long) (sizeof (long long)))) | |
16451 | exit (1); | |
16452 | fprintf (f, "%ld\n", i); | |
16453 | } | |
16454 | else | |
16455 | { | |
16456 | unsigned long i = ulongval (); | |
16457 | if (i != ((long) (sizeof (long long)))) | |
16458 | exit (1); | |
16459 | fprintf (f, "%lu\n", i); | |
16460 | } | |
16461 | exit (ferror (f) || fclose (f) != 0); | |
16462 | ||
16463 | ; | |
16464 | return 0; | |
4f57cf11 | 16465 | } |
e6cc62c6 VS |
16466 | _ACEOF |
16467 | rm -f conftest$ac_exeext | |
16468 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16469 | (eval $ac_link) 2>&5 | |
16470 | ac_status=$? | |
16471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16472 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16474 | (eval $ac_try) 2>&5 | |
16475 | ac_status=$? | |
16476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16477 | (exit $ac_status); }; }; then | |
16478 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16479 | else | |
16480 | echo "$as_me: program exited with status $ac_status" >&5 | |
16481 | echo "$as_me: failed program was:" >&5 | |
16482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16483 | ||
16484 | ( exit $ac_status ) | |
16485 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16486 | See \`config.log' for more details." >&5 | |
16487 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16488 | See \`config.log' for more details." >&2;} | |
16489 | { (exit 1); exit 1; }; } | |
16490 | fi | |
16491 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16492 | fi | |
16493 | fi | |
16494 | rm -f conftest.val | |
4f57cf11 | 16495 | else |
4f57cf11 GD |
16496 | ac_cv_sizeof_long_long=0 |
16497 | fi | |
7b4a847f | 16498 | fi |
e6cc62c6 VS |
16499 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16500 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16501 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 16502 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16503 | _ACEOF |
9e691f46 | 16504 | |
8284b0c5 | 16505 | |
21d1c967 GD |
16506 | esac |
16507 | ||
e6cc62c6 VS |
16508 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
16509 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
16510 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
16511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 16512 | else |
e6cc62c6 | 16513 | |
21d1c967 | 16514 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 16515 | |
2b5f62a0 VZ |
16516 | case "${host}" in |
16517 | *-pc-msdosdjgpp ) | |
16518 | wx_cv_sizeof_wchar_t=0 | |
16519 | ;; | |
16520 | * ) | |
16521 | wx_cv_sizeof_wchar_t=4 | |
16522 | ;; | |
16523 | esac | |
e6cc62c6 VS |
16524 | |
16525 | ||
6f72b082 | 16526 | else |
e6cc62c6 VS |
16527 | cat >conftest.$ac_ext <<_ACEOF |
16528 | #line $LINENO "configure" | |
16529 | /* confdefs.h. */ | |
16530 | _ACEOF | |
16531 | cat confdefs.h >>conftest.$ac_ext | |
16532 | cat >>conftest.$ac_ext <<_ACEOF | |
16533 | /* end confdefs.h. */ | |
21d1c967 | 16534 | |
2b5f62a0 VZ |
16535 | /* DJGPP only has fake wchar_t: */ |
16536 | #ifdef __DJGPP__ | |
16537 | # error "fake wchar_t" | |
16538 | #endif | |
21d1c967 GD |
16539 | #ifdef HAVE_WCHAR_H |
16540 | # ifdef __CYGWIN__ | |
16541 | # include <stddef.h> | |
16542 | # endif | |
16543 | # include <wchar.h> | |
16544 | #endif | |
16545 | #ifdef HAVE_STDLIB_H | |
16546 | # include <stdlib.h> | |
16547 | #endif | |
16548 | #include <stdio.h> | |
16549 | int main() | |
16550 | { | |
16551 | FILE *f=fopen("conftestval", "w"); | |
16552 | if (!f) exit(1); | |
16553 | fprintf(f, "%i", sizeof(wchar_t)); | |
16554 | exit(0); | |
16555 | } | |
e6cc62c6 VS |
16556 | |
16557 | _ACEOF | |
16558 | rm -f conftest$ac_exeext | |
16559 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16560 | (eval $ac_link) 2>&5 | |
16561 | ac_status=$? | |
16562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16563 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16565 | (eval $ac_try) 2>&5 | |
16566 | ac_status=$? | |
16567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16568 | (exit $ac_status); }; }; then | |
21d1c967 | 16569 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 16570 | else |
e6cc62c6 VS |
16571 | echo "$as_me: program exited with status $ac_status" >&5 |
16572 | echo "$as_me: failed program was:" >&5 | |
16573 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16574 | ||
16575 | ( exit $ac_status ) | |
16576 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 16577 | fi |
e6cc62c6 | 16578 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 16579 | fi |
6f72b082 | 16580 | |
3f345b47 | 16581 | fi |
e6cc62c6 VS |
16582 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
16583 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 16584 | |
e6cc62c6 | 16585 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16586 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 16587 | _ACEOF |
90dd450c | 16588 | |
8284b0c5 | 16589 | |
21d1c967 GD |
16590 | # Check whether --enable-largefile or --disable-largefile was given. |
16591 | if test "${enable_largefile+set}" = set; then | |
16592 | enableval="$enable_largefile" | |
3f345b47 | 16593 | |
e6cc62c6 | 16594 | fi; |
21d1c967 GD |
16595 | if test "$enable_largefile" != no; then |
16596 | wx_largefile=no | |
e6cc62c6 VS |
16597 | |
16598 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
16599 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
16600 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
16601 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16602 | else | |
16603 | ||
16604 | cat >conftest.$ac_ext <<_ACEOF | |
16605 | #line $LINENO "configure" | |
16606 | /* confdefs.h. */ | |
16607 | _ACEOF | |
16608 | cat confdefs.h >>conftest.$ac_ext | |
16609 | cat >>conftest.$ac_ext <<_ACEOF | |
16610 | /* end confdefs.h. */ | |
21d1c967 GD |
16611 | #define _FILE_OFFSET_BITS 64 |
16612 | #include <sys/types.h> | |
e6cc62c6 VS |
16613 | int |
16614 | main () | |
16615 | { | |
21d1c967 GD |
16616 | typedef struct { |
16617 | unsigned int field: sizeof(off_t) == 8; | |
16618 | } wxlf; | |
16619 | ||
e6cc62c6 VS |
16620 | ; |
16621 | return 0; | |
16622 | } | |
16623 | _ACEOF | |
16624 | rm -f conftest.$ac_objext | |
16625 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16626 | (eval $ac_compile) 2>&5 | |
16627 | ac_status=$? | |
16628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16629 | (exit $ac_status); } && | |
16630 | { ac_try='test -s conftest.$ac_objext' | |
16631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16632 | (eval $ac_try) 2>&5 | |
16633 | ac_status=$? | |
16634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16635 | (exit $ac_status); }; }; then | |
21d1c967 | 16636 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 16637 | else |
e6cc62c6 VS |
16638 | echo "$as_me: failed program was:" >&5 |
16639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16640 | ||
16641 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 16642 | fi |
e6cc62c6 VS |
16643 | rm -f conftest.$ac_objext conftest.$ac_ext |
16644 | ||
a0b9e27f | 16645 | |
e6cc62c6 VS |
16646 | fi |
16647 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
16648 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
16649 | |
16650 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
16651 | wx_largefile=yes | |
e6cc62c6 | 16652 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16653 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 16654 | _ACEOF |
21d1c967 GD |
16655 | |
16656 | fi | |
16657 | ||
16658 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
16659 | |
16660 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
16661 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
16662 | if test "${ac_cv_sys_large_files+set}" = set; then | |
16663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16664 | else | |
16665 | ||
16666 | cat >conftest.$ac_ext <<_ACEOF | |
16667 | #line $LINENO "configure" | |
16668 | /* confdefs.h. */ | |
16669 | _ACEOF | |
16670 | cat confdefs.h >>conftest.$ac_ext | |
16671 | cat >>conftest.$ac_ext <<_ACEOF | |
16672 | /* end confdefs.h. */ | |
21d1c967 GD |
16673 | #define _LARGE_FILES 1 |
16674 | #include <sys/types.h> | |
e6cc62c6 VS |
16675 | int |
16676 | main () | |
16677 | { | |
21d1c967 GD |
16678 | typedef struct { |
16679 | unsigned int field: sizeof(off_t) == 8; | |
16680 | } wxlf; | |
16681 | ||
e6cc62c6 VS |
16682 | ; |
16683 | return 0; | |
16684 | } | |
16685 | _ACEOF | |
16686 | rm -f conftest.$ac_objext | |
16687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16688 | (eval $ac_compile) 2>&5 | |
16689 | ac_status=$? | |
16690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16691 | (exit $ac_status); } && | |
16692 | { ac_try='test -s conftest.$ac_objext' | |
16693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16694 | (eval $ac_try) 2>&5 | |
16695 | ac_status=$? | |
16696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16697 | (exit $ac_status); }; }; then | |
21d1c967 | 16698 | ac_cv_sys_large_files=1 |
f6bcfd97 | 16699 | else |
e6cc62c6 VS |
16700 | echo "$as_me: failed program was:" >&5 |
16701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16702 | ||
16703 | ac_cv_sys_large_files=no | |
247f5006 | 16704 | fi |
e6cc62c6 | 16705 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 16706 | |
e6cc62c6 VS |
16707 | |
16708 | fi | |
16709 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
16710 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 16711 | |
21d1c967 GD |
16712 | if test "$ac_cv_sys_large_files" != no; then |
16713 | wx_largefile=yes | |
e6cc62c6 | 16714 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16715 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 16716 | _ACEOF |
90dd450c | 16717 | |
90dd450c VZ |
16718 | fi |
16719 | ||
90dd450c | 16720 | fi |
90dd450c | 16721 | |
e6cc62c6 VS |
16722 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
16723 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 16724 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 16725 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16726 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 16727 | _ACEOF |
90dd450c | 16728 | |
90dd450c | 16729 | fi |
e6cc62c6 VS |
16730 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
16731 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 16732 | fi |
90dd450c | 16733 | |
8284b0c5 | 16734 | |
f02444d0 | 16735 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
16736 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
16737 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 16738 | else |
e26c13cf | 16739 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 16740 | fi |
e26c13cf | 16741 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
16742 | fi |
16743 | ||
e6cc62c6 VS |
16744 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
16745 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
16746 | if test "${ac_cv_c_bigendian+set}" = set; then | |
16747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 16748 | else |
21d1c967 GD |
16749 | ac_cv_c_bigendian=unknown |
16750 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 VS |
16751 | cat >conftest.$ac_ext <<_ACEOF |
16752 | #line $LINENO "configure" | |
16753 | /* confdefs.h. */ | |
16754 | _ACEOF | |
16755 | cat confdefs.h >>conftest.$ac_ext | |
16756 | cat >>conftest.$ac_ext <<_ACEOF | |
16757 | /* end confdefs.h. */ | |
21d1c967 GD |
16758 | #include <sys/types.h> |
16759 | #include <sys/param.h> | |
e6cc62c6 VS |
16760 | int |
16761 | main () | |
16762 | { | |
21d1c967 GD |
16763 | |
16764 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
16765 | bogus endian macros | |
16766 | #endif | |
e6cc62c6 VS |
16767 | ; |
16768 | return 0; | |
16769 | } | |
16770 | _ACEOF | |
16771 | rm -f conftest.$ac_objext | |
16772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16773 | (eval $ac_compile) 2>&5 | |
16774 | ac_status=$? | |
16775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16776 | (exit $ac_status); } && | |
16777 | { ac_try='test -s conftest.$ac_objext' | |
16778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16779 | (eval $ac_try) 2>&5 | |
16780 | ac_status=$? | |
16781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16782 | (exit $ac_status); }; }; then | |
21d1c967 | 16783 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 VS |
16784 | cat >conftest.$ac_ext <<_ACEOF |
16785 | #line $LINENO "configure" | |
16786 | /* confdefs.h. */ | |
16787 | _ACEOF | |
16788 | cat confdefs.h >>conftest.$ac_ext | |
16789 | cat >>conftest.$ac_ext <<_ACEOF | |
16790 | /* end confdefs.h. */ | |
21d1c967 GD |
16791 | #include <sys/types.h> |
16792 | #include <sys/param.h> | |
e6cc62c6 VS |
16793 | int |
16794 | main () | |
16795 | { | |
21d1c967 GD |
16796 | |
16797 | #if BYTE_ORDER != BIG_ENDIAN | |
16798 | not big endian | |
16799 | #endif | |
e6cc62c6 VS |
16800 | ; |
16801 | return 0; | |
16802 | } | |
16803 | _ACEOF | |
16804 | rm -f conftest.$ac_objext | |
16805 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16806 | (eval $ac_compile) 2>&5 | |
16807 | ac_status=$? | |
16808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16809 | (exit $ac_status); } && | |
16810 | { ac_try='test -s conftest.$ac_objext' | |
16811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16812 | (eval $ac_try) 2>&5 | |
16813 | ac_status=$? | |
16814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16815 | (exit $ac_status); }; }; then | |
21d1c967 | 16816 | ac_cv_c_bigendian=yes |
3f345b47 | 16817 | else |
e6cc62c6 VS |
16818 | echo "$as_me: failed program was:" >&5 |
16819 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16820 | ||
16821 | ac_cv_c_bigendian=no | |
3f345b47 | 16822 | fi |
e6cc62c6 | 16823 | rm -f conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 16824 | else |
e6cc62c6 VS |
16825 | echo "$as_me: failed program was:" >&5 |
16826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16827 | ||
3f345b47 | 16828 | fi |
e6cc62c6 | 16829 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
16830 | if test $ac_cv_c_bigendian = unknown; then |
16831 | if test "$cross_compiling" = yes; then | |
16832 | ac_cv_c_bigendian=unknown | |
10f2d63a | 16833 | else |
e6cc62c6 VS |
16834 | cat >conftest.$ac_ext <<_ACEOF |
16835 | #line $LINENO "configure" | |
16836 | /* confdefs.h. */ | |
16837 | _ACEOF | |
16838 | cat confdefs.h >>conftest.$ac_ext | |
16839 | cat >>conftest.$ac_ext <<_ACEOF | |
16840 | /* end confdefs.h. */ | |
21d1c967 GD |
16841 | main () { |
16842 | /* Are we little or big endian? From Harbison&Steele. */ | |
16843 | union | |
16844 | { | |
16845 | long l; | |
16846 | char c[sizeof (long)]; | |
16847 | } u; | |
16848 | u.l = 1; | |
16849 | exit (u.c[sizeof (long) - 1] == 1); | |
16850 | } | |
e6cc62c6 VS |
16851 | _ACEOF |
16852 | rm -f conftest$ac_exeext | |
16853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16854 | (eval $ac_link) 2>&5 | |
16855 | ac_status=$? | |
16856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16857 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16859 | (eval $ac_try) 2>&5 | |
16860 | ac_status=$? | |
16861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16862 | (exit $ac_status); }; }; then | |
21d1c967 | 16863 | ac_cv_c_bigendian=no |
3f345b47 | 16864 | else |
e6cc62c6 VS |
16865 | echo "$as_me: program exited with status $ac_status" >&5 |
16866 | echo "$as_me: failed program was:" >&5 | |
16867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16868 | ||
16869 | ( exit $ac_status ) | |
16870 | ac_cv_c_bigendian=yes | |
247f5006 | 16871 | fi |
e6cc62c6 | 16872 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 16873 | fi |
3f345b47 | 16874 | fi |
8168de4c | 16875 | fi |
e6cc62c6 VS |
16876 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
16877 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 16878 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
16879 | { echo "$as_me:$LINENO: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&5 |
16880 | echo "$as_me: WARNING: Assuming little-endian target machine - this may be overriden by adding the line \"ac_cv_c_bigendian=${ac_cv_c_bigendian='yes'}\" to config.cache file" >&2;} | |
247f5006 VZ |
16881 | fi |
16882 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 16883 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 16884 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 16885 | _ACEOF |
247f5006 VZ |
16886 | |
16887 | fi | |
16888 | ||
16889 | ||
e6cc62c6 VS |
16890 | |
16891 | ac_ext=cc | |
16892 | ac_cpp='$CXXCPP $CPPFLAGS' | |
16893 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
16894 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
16895 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
16896 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
16897 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 16898 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
16899 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
16900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16901 | else | |
16902 | # Double quotes because CXXCPP needs to be expanded | |
16903 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
16904 | do | |
16905 | ac_preproc_ok=false | |
16906 | for ac_cxx_preproc_warn_flag in '' yes | |
16907 | do | |
16908 | # Use a header file that comes with gcc, so configuring glibc | |
16909 | # with a fresh cross-compiler works. | |
16910 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16911 | # <limits.h> exists even on freestanding compilers. | |
16912 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
16913 | # not just through cpp. "Syntax error" is here to catch this case. | |
16914 | cat >conftest.$ac_ext <<_ACEOF | |
16915 | #line $LINENO "configure" | |
16916 | /* confdefs.h. */ | |
16917 | _ACEOF | |
16918 | cat confdefs.h >>conftest.$ac_ext | |
16919 | cat >>conftest.$ac_ext <<_ACEOF | |
16920 | /* end confdefs.h. */ | |
16921 | #ifdef __STDC__ | |
16922 | # include <limits.h> | |
16923 | #else | |
16924 | # include <assert.h> | |
16925 | #endif | |
16926 | Syntax error | |
16927 | _ACEOF | |
16928 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16929 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16930 | ac_status=$? | |
16931 | grep -v '^ *+' conftest.er1 >conftest.err | |
16932 | rm -f conftest.er1 | |
16933 | cat conftest.err >&5 | |
16934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16935 | (exit $ac_status); } >/dev/null; then | |
16936 | if test -s conftest.err; then | |
16937 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16938 | else | |
16939 | ac_cpp_err= | |
16940 | fi | |
247f5006 | 16941 | else |
e6cc62c6 VS |
16942 | ac_cpp_err=yes |
16943 | fi | |
16944 | if test -z "$ac_cpp_err"; then | |
16945 | : | |
16946 | else | |
16947 | echo "$as_me: failed program was:" >&5 | |
16948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16949 | ||
16950 | # Broken: fails on valid input. | |
16951 | continue | |
16952 | fi | |
16953 | rm -f conftest.err conftest.$ac_ext | |
16954 | ||
16955 | # OK, works on sane cases. Now check whether non-existent headers | |
16956 | # can be detected and how. | |
16957 | cat >conftest.$ac_ext <<_ACEOF | |
16958 | #line $LINENO "configure" | |
16959 | /* confdefs.h. */ | |
16960 | _ACEOF | |
16961 | cat confdefs.h >>conftest.$ac_ext | |
16962 | cat >>conftest.$ac_ext <<_ACEOF | |
16963 | /* end confdefs.h. */ | |
16964 | #include <ac_nonexistent.h> | |
16965 | _ACEOF | |
16966 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
16967 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
16968 | ac_status=$? | |
16969 | grep -v '^ *+' conftest.er1 >conftest.err | |
16970 | rm -f conftest.er1 | |
16971 | cat conftest.err >&5 | |
16972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16973 | (exit $ac_status); } >/dev/null; then | |
16974 | if test -s conftest.err; then | |
16975 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
16976 | else | |
16977 | ac_cpp_err= | |
16978 | fi | |
16979 | else | |
16980 | ac_cpp_err=yes | |
16981 | fi | |
16982 | if test -z "$ac_cpp_err"; then | |
16983 | # Broken: success on invalid input. | |
16984 | continue | |
16985 | else | |
16986 | echo "$as_me: failed program was:" >&5 | |
16987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16988 | ||
16989 | # Passes both tests. | |
16990 | ac_preproc_ok=: | |
16991 | break | |
16992 | fi | |
16993 | rm -f conftest.err conftest.$ac_ext | |
16994 | ||
16995 | done | |
16996 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
16997 | rm -f conftest.err conftest.$ac_ext | |
16998 | if $ac_preproc_ok; then | |
16999 | break | |
17000 | fi | |
17001 | ||
17002 | done | |
17003 | ac_cv_prog_CXXCPP=$CXXCPP | |
17004 | ||
17005 | fi | |
17006 | CXXCPP=$ac_cv_prog_CXXCPP | |
17007 | else | |
17008 | ac_cv_prog_CXXCPP=$CXXCPP | |
17009 | fi | |
17010 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17011 | echo "${ECHO_T}$CXXCPP" >&6 | |
17012 | ac_preproc_ok=false | |
17013 | for ac_cxx_preproc_warn_flag in '' yes | |
17014 | do | |
17015 | # Use a header file that comes with gcc, so configuring glibc | |
17016 | # with a fresh cross-compiler works. | |
17017 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17018 | # <limits.h> exists even on freestanding compilers. | |
17019 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17020 | # not just through cpp. "Syntax error" is here to catch this case. | |
17021 | cat >conftest.$ac_ext <<_ACEOF | |
17022 | #line $LINENO "configure" | |
17023 | /* confdefs.h. */ | |
17024 | _ACEOF | |
17025 | cat confdefs.h >>conftest.$ac_ext | |
17026 | cat >>conftest.$ac_ext <<_ACEOF | |
17027 | /* end confdefs.h. */ | |
17028 | #ifdef __STDC__ | |
17029 | # include <limits.h> | |
17030 | #else | |
17031 | # include <assert.h> | |
17032 | #endif | |
17033 | Syntax error | |
17034 | _ACEOF | |
17035 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17036 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17037 | ac_status=$? | |
17038 | grep -v '^ *+' conftest.er1 >conftest.err | |
17039 | rm -f conftest.er1 | |
17040 | cat conftest.err >&5 | |
17041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17042 | (exit $ac_status); } >/dev/null; then | |
17043 | if test -s conftest.err; then | |
17044 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17045 | else | |
17046 | ac_cpp_err= | |
17047 | fi | |
17048 | else | |
17049 | ac_cpp_err=yes | |
17050 | fi | |
17051 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 17052 | : |
698dcdb6 | 17053 | else |
e6cc62c6 VS |
17054 | echo "$as_me: failed program was:" >&5 |
17055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17056 | ||
17057 | # Broken: fails on valid input. | |
17058 | continue | |
17059 | fi | |
17060 | rm -f conftest.err conftest.$ac_ext | |
17061 | ||
17062 | # OK, works on sane cases. Now check whether non-existent headers | |
17063 | # can be detected and how. | |
17064 | cat >conftest.$ac_ext <<_ACEOF | |
17065 | #line $LINENO "configure" | |
17066 | /* confdefs.h. */ | |
17067 | _ACEOF | |
17068 | cat confdefs.h >>conftest.$ac_ext | |
17069 | cat >>conftest.$ac_ext <<_ACEOF | |
17070 | /* end confdefs.h. */ | |
17071 | #include <ac_nonexistent.h> | |
17072 | _ACEOF | |
17073 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17074 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17075 | ac_status=$? | |
17076 | grep -v '^ *+' conftest.er1 >conftest.err | |
17077 | rm -f conftest.er1 | |
17078 | cat conftest.err >&5 | |
17079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17080 | (exit $ac_status); } >/dev/null; then | |
17081 | if test -s conftest.err; then | |
17082 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17083 | else | |
17084 | ac_cpp_err= | |
17085 | fi | |
17086 | else | |
17087 | ac_cpp_err=yes | |
247f5006 | 17088 | fi |
e6cc62c6 VS |
17089 | if test -z "$ac_cpp_err"; then |
17090 | # Broken: success on invalid input. | |
17091 | continue | |
17092 | else | |
17093 | echo "$as_me: failed program was:" >&5 | |
17094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17095 | ||
17096 | # Passes both tests. | |
17097 | ac_preproc_ok=: | |
17098 | break | |
328a083c | 17099 | fi |
e6cc62c6 VS |
17100 | rm -f conftest.err conftest.$ac_ext |
17101 | ||
17102 | done | |
17103 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17104 | rm -f conftest.err conftest.$ac_ext | |
17105 | if $ac_preproc_ok; then | |
17106 | : | |
17107 | else | |
17108 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17109 | See \`config.log' for more details." >&5 | |
17110 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17111 | See \`config.log' for more details." >&2;} | |
17112 | { (exit 1); exit 1; }; } | |
90dd450c | 17113 | fi |
e6cc62c6 VS |
17114 | |
17115 | ac_ext=cc | |
17116 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17117 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17118 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17119 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17120 | ||
1e6feb95 | 17121 | |
1725144d | 17122 | |
21d1c967 | 17123 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 17124 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17125 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17126 | _ACEOF |
ab9b9eab | 17127 | |
21d1c967 | 17128 | else |
e6cc62c6 VS |
17129 | |
17130 | ||
17131 | ac_ext=cc | |
5c6fa7d2 | 17132 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17133 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17134 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17135 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17136 | ||
52127426 | 17137 | |
247f5006 | 17138 | |
e6cc62c6 | 17139 | for ac_header in iostream |
21d1c967 | 17140 | do |
e6cc62c6 VS |
17141 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17142 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17143 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17144 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17145 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17147 | fi | |
17148 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17149 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17150 | else | |
17151 | # Is the header compilable? | |
17152 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17153 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17154 | cat >conftest.$ac_ext <<_ACEOF | |
17155 | #line $LINENO "configure" | |
17156 | /* confdefs.h. */ | |
17157 | _ACEOF | |
17158 | cat confdefs.h >>conftest.$ac_ext | |
17159 | cat >>conftest.$ac_ext <<_ACEOF | |
17160 | /* end confdefs.h. */ | |
17161 | $ac_includes_default | |
17162 | #include <$ac_header> | |
17163 | _ACEOF | |
17164 | rm -f conftest.$ac_objext | |
17165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17166 | (eval $ac_compile) 2>&5 | |
17167 | ac_status=$? | |
17168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17169 | (exit $ac_status); } && | |
17170 | { ac_try='test -s conftest.$ac_objext' | |
17171 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17172 | (eval $ac_try) 2>&5 | |
17173 | ac_status=$? | |
17174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17175 | (exit $ac_status); }; }; then | |
17176 | ac_header_compiler=yes | |
17177 | else | |
17178 | echo "$as_me: failed program was:" >&5 | |
17179 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17180 | ||
17181 | ac_header_compiler=no | |
17182 | fi | |
17183 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17184 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17185 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17186 | ||
17187 | # Is the header present? | |
17188 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17189 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17190 | cat >conftest.$ac_ext <<_ACEOF | |
17191 | #line $LINENO "configure" | |
17192 | /* confdefs.h. */ | |
17193 | _ACEOF | |
17194 | cat confdefs.h >>conftest.$ac_ext | |
17195 | cat >>conftest.$ac_ext <<_ACEOF | |
17196 | /* end confdefs.h. */ | |
17197 | #include <$ac_header> | |
17198 | _ACEOF | |
17199 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17200 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17201 | ac_status=$? | |
17202 | grep -v '^ *+' conftest.er1 >conftest.err | |
17203 | rm -f conftest.er1 | |
17204 | cat conftest.err >&5 | |
17205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17206 | (exit $ac_status); } >/dev/null; then | |
17207 | if test -s conftest.err; then | |
17208 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17209 | else | |
17210 | ac_cpp_err= | |
17211 | fi | |
17212 | else | |
17213 | ac_cpp_err=yes | |
17214 | fi | |
17215 | if test -z "$ac_cpp_err"; then | |
17216 | ac_header_preproc=yes | |
17217 | else | |
17218 | echo "$as_me: failed program was:" >&5 | |
17219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17220 | ||
17221 | ac_header_preproc=no | |
17222 | fi | |
17223 | rm -f conftest.err conftest.$ac_ext | |
17224 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17225 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17226 | ||
17227 | # So? What about this header? | |
17228 | case $ac_header_compiler:$ac_header_preproc in | |
17229 | yes:no ) | |
17230 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17231 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17232 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17233 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17234 | ( | |
17235 | cat <<\_ASBOX | |
17236 | ## ------------------------------------ ## | |
17237 | ## Report this to bug-autoconf@gnu.org. ## | |
17238 | ## ------------------------------------ ## | |
17239 | _ASBOX | |
17240 | ) | | |
17241 | sed "s/^/$as_me: WARNING: /" >&2 | |
17242 | ;; | |
17243 | no:yes ) | |
17244 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17245 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17246 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17247 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17248 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17249 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17250 | ( | |
17251 | cat <<\_ASBOX | |
17252 | ## ------------------------------------ ## | |
17253 | ## Report this to bug-autoconf@gnu.org. ## | |
17254 | ## ------------------------------------ ## | |
17255 | _ASBOX | |
17256 | ) | | |
17257 | sed "s/^/$as_me: WARNING: /" >&2 | |
17258 | ;; | |
17259 | esac | |
17260 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17261 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17262 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17264 | else | |
17265 | eval "$as_ac_Header=$ac_header_preproc" | |
ab9b9eab | 17266 | fi |
e6cc62c6 VS |
17267 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17268 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17269 | ||
90dd450c | 17270 | fi |
e6cc62c6 VS |
17271 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17272 | cat >>confdefs.h <<_ACEOF | |
17273 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17274 | _ACEOF | |
17275 | ||
90dd450c | 17276 | fi |
e6cc62c6 | 17277 | |
21d1c967 | 17278 | done |
10f2d63a | 17279 | |
8284b0c5 | 17280 | |
21d1c967 GD |
17281 | if test "$ac_cv_header_iostream" = "yes" ; then |
17282 | : | |
17283 | else | |
e6cc62c6 | 17284 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17285 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17286 | _ACEOF |
788deba1 | 17287 | |
90dd450c | 17288 | fi |
ab9b9eab | 17289 | |
21d1c967 | 17290 | ac_ext=c |
21d1c967 | 17291 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17292 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17293 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17294 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 17295 | |
21d1c967 | 17296 | fi |
ab9b9eab | 17297 | |
52127426 | 17298 | |
8284b0c5 | 17299 | |
e6cc62c6 VS |
17300 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
17301 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
17302 | if test "${wx_cv_cpp_bool+set}" = set; then | |
17303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17304 | else |
e6cc62c6 VS |
17305 | |
17306 | ||
17307 | ||
17308 | ac_ext=cc | |
5c6fa7d2 | 17309 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17310 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17311 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17312 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 17313 | |
8284b0c5 | 17314 | |
e6cc62c6 VS |
17315 | cat >conftest.$ac_ext <<_ACEOF |
17316 | #line $LINENO "configure" | |
17317 | /* confdefs.h. */ | |
17318 | _ACEOF | |
17319 | cat confdefs.h >>conftest.$ac_ext | |
17320 | cat >>conftest.$ac_ext <<_ACEOF | |
17321 | /* end confdefs.h. */ | |
21d1c967 | 17322 | |
e6cc62c6 VS |
17323 | |
17324 | int | |
17325 | main () | |
17326 | { | |
21d1c967 GD |
17327 | |
17328 | bool b = true; | |
17329 | ||
17330 | return 0; | |
e6cc62c6 VS |
17331 | |
17332 | ; | |
17333 | return 0; | |
17334 | } | |
17335 | _ACEOF | |
17336 | rm -f conftest.$ac_objext | |
17337 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17338 | (eval $ac_compile) 2>&5 | |
17339 | ac_status=$? | |
17340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17341 | (exit $ac_status); } && | |
17342 | { ac_try='test -s conftest.$ac_objext' | |
17343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17344 | (eval $ac_try) 2>&5 | |
17345 | ac_status=$? | |
17346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17347 | (exit $ac_status); }; }; then | |
17348 | ||
21d1c967 | 17349 | wx_cv_cpp_bool=yes |
e6cc62c6 | 17350 | |
698dcdb6 | 17351 | else |
e6cc62c6 VS |
17352 | echo "$as_me: failed program was:" >&5 |
17353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17354 | ||
17355 | ||
21d1c967 | 17356 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
17357 | |
17358 | ||
698dcdb6 | 17359 | fi |
e6cc62c6 | 17360 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17361 | |
17362 | ac_ext=c | |
21d1c967 | 17363 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17367 | |
a0b9e27f | 17368 | |
e6cc62c6 VS |
17369 | fi |
17370 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
17371 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
17372 | |
17373 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 17374 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17375 | #define HAVE_BOOL 1 |
e6cc62c6 | 17376 | _ACEOF |
ab9b9eab | 17377 | |
21d1c967 GD |
17378 | fi |
17379 | ||
52127426 | 17380 | |
8284b0c5 | 17381 | |
e6cc62c6 VS |
17382 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
17383 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
17384 | if test "${wx_cv_explicit+set}" = set; then | |
17385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17386 | else |
e6cc62c6 VS |
17387 | |
17388 | ||
17389 | ||
17390 | ac_ext=cc | |
5c6fa7d2 | 17391 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17392 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17393 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17394 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 17395 | |
8284b0c5 | 17396 | |
e6cc62c6 VS |
17397 | cat >conftest.$ac_ext <<_ACEOF |
17398 | #line $LINENO "configure" | |
17399 | /* confdefs.h. */ | |
17400 | _ACEOF | |
17401 | cat confdefs.h >>conftest.$ac_ext | |
17402 | cat >>conftest.$ac_ext <<_ACEOF | |
17403 | /* end confdefs.h. */ | |
986ecc86 VZ |
17404 | |
17405 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
17406 | |
17407 | int | |
17408 | main () | |
17409 | { | |
986ecc86 VZ |
17410 | |
17411 | return 0; | |
e6cc62c6 VS |
17412 | |
17413 | ; | |
17414 | return 0; | |
17415 | } | |
17416 | _ACEOF | |
17417 | rm -f conftest.$ac_objext | |
17418 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17419 | (eval $ac_compile) 2>&5 | |
17420 | ac_status=$? | |
17421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17422 | (exit $ac_status); } && | |
17423 | { ac_try='test -s conftest.$ac_objext' | |
17424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17425 | (eval $ac_try) 2>&5 | |
17426 | ac_status=$? | |
17427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17428 | (exit $ac_status); }; }; then | |
17429 | ||
17430 | cat >conftest.$ac_ext <<_ACEOF | |
17431 | #line $LINENO "configure" | |
17432 | /* confdefs.h. */ | |
17433 | _ACEOF | |
17434 | cat confdefs.h >>conftest.$ac_ext | |
17435 | cat >>conftest.$ac_ext <<_ACEOF | |
17436 | /* end confdefs.h. */ | |
986ecc86 VZ |
17437 | |
17438 | class Foo { public: explicit Foo(int) {} }; | |
17439 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
17440 | |
17441 | int | |
17442 | main () | |
17443 | { | |
986ecc86 VZ |
17444 | |
17445 | TakeFoo(17); | |
17446 | return 0; | |
e6cc62c6 VS |
17447 | |
17448 | ; | |
17449 | return 0; | |
17450 | } | |
17451 | _ACEOF | |
17452 | rm -f conftest.$ac_objext | |
17453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17454 | (eval $ac_compile) 2>&5 | |
17455 | ac_status=$? | |
17456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17457 | (exit $ac_status); } && | |
17458 | { ac_try='test -s conftest.$ac_objext' | |
17459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17460 | (eval $ac_try) 2>&5 | |
17461 | ac_status=$? | |
17462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17463 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
17464 | wx_cv_explicit=no |
17465 | else | |
e6cc62c6 VS |
17466 | echo "$as_me: failed program was:" >&5 |
17467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17468 | ||
17469 | wx_cv_explicit=yes | |
17470 | ||
986ecc86 | 17471 | fi |
e6cc62c6 VS |
17472 | rm -f conftest.$ac_objext conftest.$ac_ext |
17473 | ||
986ecc86 | 17474 | else |
e6cc62c6 VS |
17475 | echo "$as_me: failed program was:" >&5 |
17476 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17477 | ||
17478 | wx_cv_explicit=no | |
17479 | ||
986ecc86 | 17480 | fi |
e6cc62c6 | 17481 | rm -f conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
17482 | |
17483 | ac_ext=c | |
986ecc86 | 17484 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17488 | |
a0b9e27f | 17489 | |
e6cc62c6 VS |
17490 | fi |
17491 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
17492 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
17493 | |
17494 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 17495 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 17496 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 17497 | _ACEOF |
986ecc86 VZ |
17498 | |
17499 | fi | |
17500 | ||
8284b0c5 | 17501 | |
e6cc62c6 VS |
17502 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
17503 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
17504 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
17505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 17506 | else |
521196a2 | 17507 | |
521196a2 | 17508 | |
e6cc62c6 VS |
17509 | ac_ext=cc |
17510 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17511 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17512 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17513 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17514 | ||
17515 | cat >conftest.$ac_ext <<_ACEOF | |
17516 | #line $LINENO "configure" | |
17517 | /* confdefs.h. */ | |
17518 | _ACEOF | |
17519 | cat confdefs.h >>conftest.$ac_ext | |
17520 | cat >>conftest.$ac_ext <<_ACEOF | |
17521 | /* end confdefs.h. */ | |
17522 | ||
17523 | int | |
17524 | main () | |
17525 | { | |
521196a2 | 17526 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
17527 | ; |
17528 | return 0; | |
17529 | } | |
17530 | _ACEOF | |
17531 | rm -f conftest.$ac_objext | |
17532 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17533 | (eval $ac_compile) 2>&5 | |
17534 | ac_status=$? | |
17535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17536 | (exit $ac_status); } && | |
17537 | { ac_try='test -s conftest.$ac_objext' | |
17538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17539 | (eval $ac_try) 2>&5 | |
17540 | ac_status=$? | |
17541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17542 | (exit $ac_status); }; }; then | |
521196a2 MB |
17543 | ac_cv_cxx_const_cast=yes |
17544 | else | |
e6cc62c6 VS |
17545 | echo "$as_me: failed program was:" >&5 |
17546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17547 | ||
17548 | ac_cv_cxx_const_cast=no | |
521196a2 | 17549 | fi |
e6cc62c6 | 17550 | rm -f conftest.$ac_objext conftest.$ac_ext |
521196a2 | 17551 | ac_ext=c |
521196a2 | 17552 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17553 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17554 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17555 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
17556 | |
17557 | ||
17558 | fi | |
e6cc62c6 VS |
17559 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
17560 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 17561 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
17562 | |
17563 | cat >>confdefs.h <<\_ACEOF | |
17564 | #define HAVE_CONST_CAST | |
17565 | _ACEOF | |
521196a2 MB |
17566 | |
17567 | fi | |
17568 | ||
17569 | ||
e87b7833 MB |
17570 | if test "$wxUSE_STL" = "yes"; then |
17571 | ac_ext=cc | |
17572 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17573 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17574 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17575 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17576 | ||
17577 | ||
17578 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
17579 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
17580 | cat >conftest.$ac_ext <<_ACEOF | |
17581 | #line $LINENO "configure" | |
17582 | /* confdefs.h. */ | |
17583 | _ACEOF | |
17584 | cat confdefs.h >>conftest.$ac_ext | |
17585 | cat >>conftest.$ac_ext <<_ACEOF | |
17586 | /* end confdefs.h. */ | |
17587 | #include <string> | |
17588 | #include <functional> | |
17589 | #include <algorithm> | |
17590 | #include <vector> | |
17591 | #include <list> | |
17592 | int | |
17593 | main () | |
17594 | { | |
17595 | std::vector<int> moo; | |
17596 | std::list<int> foo; | |
17597 | std::vector<int>::iterator it = | |
17598 | std::find_if(moo.begin(), moo.end(), | |
17599 | std::bind2nd(std::less<int>(), 3)); | |
17600 | ; | |
17601 | return 0; | |
17602 | } | |
17603 | _ACEOF | |
17604 | rm -f conftest.$ac_objext | |
17605 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17606 | (eval $ac_compile) 2>&5 | |
17607 | ac_status=$? | |
17608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17609 | (exit $ac_status); } && | |
17610 | { ac_try='test -s conftest.$ac_objext' | |
17611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17612 | (eval $ac_try) 2>&5 | |
17613 | ac_status=$? | |
17614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17615 | (exit $ac_status); }; }; then | |
17616 | echo "$as_me:$LINENO: result: yes" >&5 | |
17617 | echo "${ECHO_T}yes" >&6 | |
17618 | else | |
17619 | echo "$as_me: failed program was:" >&5 | |
17620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17621 | ||
17622 | echo "$as_me:$LINENO: result: no" >&5 | |
17623 | echo "${ECHO_T}no" >&6 | |
17624 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
17625 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
17626 | { (exit 1); exit 1; }; } | |
17627 | fi | |
17628 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17629 | ||
17630 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
17631 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
17632 | cat >conftest.$ac_ext <<_ACEOF | |
17633 | #line $LINENO "configure" | |
17634 | /* confdefs.h. */ | |
17635 | _ACEOF | |
17636 | cat confdefs.h >>conftest.$ac_ext | |
17637 | cat >>conftest.$ac_ext <<_ACEOF | |
17638 | /* end confdefs.h. */ | |
17639 | #include <string> | |
17640 | int | |
17641 | main () | |
17642 | { | |
17643 | std::wstring foo; | |
17644 | ; | |
17645 | return 0; | |
17646 | } | |
17647 | _ACEOF | |
17648 | rm -f conftest.$ac_objext | |
17649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17650 | (eval $ac_compile) 2>&5 | |
17651 | ac_status=$? | |
17652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17653 | (exit $ac_status); } && | |
17654 | { ac_try='test -s conftest.$ac_objext' | |
17655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17656 | (eval $ac_try) 2>&5 | |
17657 | ac_status=$? | |
17658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17659 | (exit $ac_status); }; }; then | |
17660 | echo "$as_me:$LINENO: result: yes" >&5 | |
17661 | echo "${ECHO_T}yes" >&6 | |
17662 | cat >>confdefs.h <<\_ACEOF | |
17663 | #define HAVE_STD_WSTRING 1 | |
17664 | _ACEOF | |
17665 | ||
17666 | else | |
17667 | echo "$as_me: failed program was:" >&5 | |
17668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17669 | ||
17670 | echo "$as_me:$LINENO: result: no" >&5 | |
17671 | echo "${ECHO_T}no" >&6 | |
17672 | fi | |
17673 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17674 | ||
17675 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
17676 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
17677 | cat >conftest.$ac_ext <<_ACEOF | |
17678 | #line $LINENO "configure" | |
17679 | /* confdefs.h. */ | |
17680 | _ACEOF | |
17681 | cat confdefs.h >>conftest.$ac_ext | |
17682 | cat >>conftest.$ac_ext <<_ACEOF | |
17683 | /* end confdefs.h. */ | |
17684 | #include <string> | |
17685 | int | |
17686 | main () | |
17687 | { | |
17688 | std::string foo, bar; | |
17689 | foo.compare(bar); | |
17690 | foo.compare(1, 1, bar); | |
17691 | foo.compare(1, 1, bar, 1, 1); | |
17692 | foo.compare(""); | |
17693 | foo.compare(1, 1, ""); | |
17694 | foo.compare(1, 1, "", 2); | |
17695 | ; | |
17696 | return 0; | |
17697 | } | |
17698 | _ACEOF | |
17699 | rm -f conftest.$ac_objext | |
17700 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17701 | (eval $ac_compile) 2>&5 | |
17702 | ac_status=$? | |
17703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17704 | (exit $ac_status); } && | |
17705 | { ac_try='test -s conftest.$ac_objext' | |
17706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17707 | (eval $ac_try) 2>&5 | |
17708 | ac_status=$? | |
17709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17710 | (exit $ac_status); }; }; then | |
17711 | echo "$as_me:$LINENO: result: yes" >&5 | |
17712 | echo "${ECHO_T}yes" >&6 | |
17713 | cat >>confdefs.h <<\_ACEOF | |
17714 | #define HAVE_STD_STRING_COMPARE 1 | |
17715 | _ACEOF | |
17716 | ||
17717 | else | |
17718 | echo "$as_me: failed program was:" >&5 | |
17719 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17720 | ||
17721 | echo "$as_me:$LINENO: result: no" >&5 | |
17722 | echo "${ECHO_T}no" >&6 | |
17723 | fi | |
17724 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17725 | ||
17726 | ac_ext=c | |
17727 | ac_cpp='$CPP $CPPFLAGS' | |
17728 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17729 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17730 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17731 | ||
17732 | fi | |
17733 | ||
8284b0c5 | 17734 | |
21d1c967 GD |
17735 | SEARCH_INCLUDE="\ |
17736 | /usr/local/include \ | |
17737 | \ | |
17738 | /usr/Motif-1.2/include \ | |
17739 | /usr/Motif-2.1/include \ | |
17740 | \ | |
17741 | /usr/include/Motif1.2 \ | |
17742 | /opt/xpm/include/X11 \ | |
17743 | /opt/GBxpm/include/ \ | |
17744 | /opt/GBxpm/X11/include/ \ | |
17745 | \ | |
17746 | /usr/Motif1.2/include \ | |
17747 | /usr/dt/include \ | |
17748 | /usr/openwin/include \ | |
17749 | \ | |
17750 | /usr/include/Xm \ | |
17751 | \ | |
17752 | /usr/X11R6/include \ | |
17753 | /usr/X11R6.4/include \ | |
17754 | /usr/X11R5/include \ | |
17755 | /usr/X11R4/include \ | |
17756 | \ | |
17757 | /usr/include/X11R6 \ | |
17758 | /usr/include/X11R5 \ | |
17759 | /usr/include/X11R4 \ | |
17760 | \ | |
17761 | /usr/local/X11R6/include \ | |
17762 | /usr/local/X11R5/include \ | |
17763 | /usr/local/X11R4/include \ | |
17764 | \ | |
17765 | /usr/local/include/X11R6 \ | |
17766 | /usr/local/include/X11R5 \ | |
17767 | /usr/local/include/X11R4 \ | |
17768 | \ | |
17769 | /usr/X11/include \ | |
17770 | /usr/include/X11 \ | |
17771 | /usr/local/X11/include \ | |
17772 | /usr/local/include/X11 \ | |
17773 | \ | |
17774 | /usr/X386/include \ | |
17775 | /usr/x386/include \ | |
17776 | /usr/XFree86/include/X11 \ | |
17777 | \ | |
17778 | X:/XFree86/include \ | |
17779 | X:/XFree86/include/X11 \ | |
17780 | \ | |
17781 | /usr/include/gtk \ | |
17782 | /usr/local/include/gtk \ | |
17783 | /usr/include/glib \ | |
17784 | /usr/local/include/glib \ | |
17785 | \ | |
17786 | /usr/include/qt \ | |
17787 | /usr/local/include/qt \ | |
17788 | \ | |
17789 | /usr/include/windows \ | |
17790 | /usr/include/wine \ | |
17791 | /usr/local/include/wine \ | |
17792 | \ | |
17793 | /usr/unsupported/include \ | |
17794 | /usr/athena/include \ | |
17795 | /usr/local/x11r5/include \ | |
17796 | /usr/lpp/Xamples/include \ | |
17797 | \ | |
2b5f62a0 | 17798 | /usr/openwin/share/include" |
21d1c967 GD |
17799 | |
17800 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
17801 | ||
8284b0c5 | 17802 | |
e6cc62c6 | 17803 | cat >confcache <<\_ACEOF |
21d1c967 GD |
17804 | # This file is a shell script that caches the results of configure |
17805 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
17806 | # scripts and configure runs, see configure's option --config-cache. |
17807 | # It is not useful on other systems. If it contains results you don't | |
17808 | # want to keep, you may remove or edit it. | |
21d1c967 | 17809 | # |
e6cc62c6 VS |
17810 | # config.status only pays attention to the cache file if you give it |
17811 | # the --recheck option to rerun configure. | |
21d1c967 | 17812 | # |
e6cc62c6 VS |
17813 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17814 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17815 | # following values. | |
17816 | ||
17817 | _ACEOF | |
17818 | ||
21d1c967 GD |
17819 | # The following way of writing the cache mishandles newlines in values, |
17820 | # but we know of no workaround that is simple, portable, and efficient. | |
17821 | # So, don't put newlines in cache variables' values. | |
17822 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17823 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
17824 | { |
17825 | (set) 2>&1 | | |
17826 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17827 | *ac_space=\ *) | |
17828 | # `set' does not quote correctly, so add quotes (double-quote | |
17829 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17830 | sed -n \ | |
17831 | "s/'/'\\\\''/g; | |
17832 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
17833 | ;; | |
17834 | *) | |
17835 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17836 | sed -n \ | |
17837 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
17838 | ;; | |
17839 | esac; | |
17840 | } | | |
17841 | sed ' | |
17842 | t clear | |
17843 | : clear | |
17844 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17845 | t end | |
17846 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
17847 | : end' >>confcache | |
17848 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 17849 | if test -w $cache_file; then |
e6cc62c6 VS |
17850 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
17851 | cat confcache >$cache_file | |
21d1c967 GD |
17852 | else |
17853 | echo "not updating unwritable cache $cache_file" | |
17854 | fi | |
ab9b9eab | 17855 | fi |
21d1c967 | 17856 | rm -f confcache |
ab9b9eab | 17857 | |
fe0895cf | 17858 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
17859 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
17860 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
17861 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
17862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17863 | else | |
17864 | ||
17865 | cat >conftest.$ac_ext <<_ACEOF | |
17866 | #line $LINENO "configure" | |
17867 | /* confdefs.h. */ | |
17868 | _ACEOF | |
17869 | cat confdefs.h >>conftest.$ac_ext | |
17870 | cat >>conftest.$ac_ext <<_ACEOF | |
17871 | /* end confdefs.h. */ | |
21d1c967 | 17872 | #include <features.h> |
e6cc62c6 VS |
17873 | int |
17874 | main () | |
17875 | { | |
ab9b9eab | 17876 | |
21d1c967 GD |
17877 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
17878 | #error not glibc2.1 | |
17879 | #endif | |
e6cc62c6 VS |
17880 | |
17881 | ; | |
17882 | return 0; | |
17883 | } | |
17884 | _ACEOF | |
17885 | rm -f conftest.$ac_objext | |
17886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17887 | (eval $ac_compile) 2>&5 | |
17888 | ac_status=$? | |
17889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17890 | (exit $ac_status); } && | |
17891 | { ac_try='test -s conftest.$ac_objext' | |
17892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17893 | (eval $ac_try) 2>&5 | |
17894 | ac_status=$? | |
17895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17896 | (exit $ac_status); }; }; then | |
17897 | ||
21d1c967 | 17898 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 17899 | |
698dcdb6 | 17900 | else |
e6cc62c6 VS |
17901 | echo "$as_me: failed program was:" >&5 |
17902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17903 | ||
17904 | ||
21d1c967 | 17905 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
17906 | |
17907 | ||
247f5006 | 17908 | fi |
e6cc62c6 | 17909 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 17910 | |
e6cc62c6 VS |
17911 | fi |
17912 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
17913 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 17914 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 17915 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17916 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 17917 | _ACEOF |
1e487827 | 17918 | |
90dd450c | 17919 | fi |
ab9b9eab VZ |
17920 | fi |
17921 | ||
5c0a20c3 VZ |
17922 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
17923 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 17924 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 17925 | #define _GNU_SOURCE 1 |
e6cc62c6 | 17926 | _ACEOF |
5c0a20c3 VZ |
17927 | |
17928 | fi | |
17929 | fi | |
17930 | ||
8284b0c5 MB |
17931 | |
17932 | ||
21d1c967 GD |
17933 | REGEX_INCLUDE= |
17934 | if test "$wxUSE_REGEX" != "no"; then | |
e6cc62c6 | 17935 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17936 | #define wxUSE_REGEX 1 |
e6cc62c6 | 17937 | _ACEOF |
698dcdb6 | 17938 | |
8284b0c5 | 17939 | |
21d1c967 | 17940 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
17941 | if test "${ac_cv_header_regex_h+set}" = set; then |
17942 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
17943 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
17944 | if test "${ac_cv_header_regex_h+set}" = set; then | |
17945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17946 | fi | |
17947 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
17948 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
17949 | else | |
17950 | # Is the header compilable? | |
17951 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
17952 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
17953 | cat >conftest.$ac_ext <<_ACEOF | |
17954 | #line $LINENO "configure" | |
17955 | /* confdefs.h. */ | |
17956 | _ACEOF | |
17957 | cat confdefs.h >>conftest.$ac_ext | |
17958 | cat >>conftest.$ac_ext <<_ACEOF | |
17959 | /* end confdefs.h. */ | |
17960 | $ac_includes_default | |
247f5006 | 17961 | #include <regex.h> |
e6cc62c6 VS |
17962 | _ACEOF |
17963 | rm -f conftest.$ac_objext | |
17964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17965 | (eval $ac_compile) 2>&5 | |
17966 | ac_status=$? | |
17967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17968 | (exit $ac_status); } && | |
17969 | { ac_try='test -s conftest.$ac_objext' | |
17970 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17971 | (eval $ac_try) 2>&5 | |
17972 | ac_status=$? | |
17973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17974 | (exit $ac_status); }; }; then | |
17975 | ac_header_compiler=yes | |
17976 | else | |
17977 | echo "$as_me: failed program was:" >&5 | |
17978 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17979 | ||
17980 | ac_header_compiler=no | |
17981 | fi | |
17982 | rm -f conftest.$ac_objext conftest.$ac_ext | |
17983 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17984 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17985 | ||
17986 | # Is the header present? | |
17987 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
17988 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
17989 | cat >conftest.$ac_ext <<_ACEOF | |
17990 | #line $LINENO "configure" | |
17991 | /* confdefs.h. */ | |
17992 | _ACEOF | |
17993 | cat confdefs.h >>conftest.$ac_ext | |
17994 | cat >>conftest.$ac_ext <<_ACEOF | |
17995 | /* end confdefs.h. */ | |
17996 | #include <regex.h> | |
17997 | _ACEOF | |
17998 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17999 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18000 | ac_status=$? | |
18001 | grep -v '^ *+' conftest.er1 >conftest.err | |
18002 | rm -f conftest.er1 | |
18003 | cat conftest.err >&5 | |
18004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18005 | (exit $ac_status); } >/dev/null; then | |
18006 | if test -s conftest.err; then | |
18007 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18008 | else | |
18009 | ac_cpp_err= | |
18010 | fi | |
18011 | else | |
18012 | ac_cpp_err=yes | |
18013 | fi | |
18014 | if test -z "$ac_cpp_err"; then | |
18015 | ac_header_preproc=yes | |
18016 | else | |
18017 | echo "$as_me: failed program was:" >&5 | |
18018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18019 | ||
18020 | ac_header_preproc=no | |
18021 | fi | |
18022 | rm -f conftest.err conftest.$ac_ext | |
18023 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18024 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18025 | ||
18026 | # So? What about this header? | |
18027 | case $ac_header_compiler:$ac_header_preproc in | |
18028 | yes:no ) | |
18029 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18030 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18031 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
18032 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
18033 | ( | |
18034 | cat <<\_ASBOX | |
18035 | ## ------------------------------------ ## | |
18036 | ## Report this to bug-autoconf@gnu.org. ## | |
18037 | ## ------------------------------------ ## | |
18038 | _ASBOX | |
18039 | ) | | |
18040 | sed "s/^/$as_me: WARNING: /" >&2 | |
18041 | ;; | |
18042 | no:yes ) | |
18043 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 | |
18044 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
18045 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 | |
18046 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
18047 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 | |
18048 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
18049 | ( | |
18050 | cat <<\_ASBOX | |
18051 | ## ------------------------------------ ## | |
18052 | ## Report this to bug-autoconf@gnu.org. ## | |
18053 | ## ------------------------------------ ## | |
18054 | _ASBOX | |
18055 | ) | | |
18056 | sed "s/^/$as_me: WARNING: /" >&2 | |
18057 | ;; | |
18058 | esac | |
18059 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18060 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18061 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18062 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18063 | else | |
18064 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 18065 | fi |
e6cc62c6 VS |
18066 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
18067 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18068 | ||
698dcdb6 | 18069 | fi |
e6cc62c6 VS |
18070 | if test $ac_cv_header_regex_h = yes; then |
18071 | ||
18072 | for ac_func in regcomp | |
21d1c967 | 18073 | do |
e6cc62c6 VS |
18074 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18075 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18076 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18077 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
18078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18079 | else | |
18080 | cat >conftest.$ac_ext <<_ACEOF | |
18081 | #line $LINENO "configure" | |
18082 | /* confdefs.h. */ | |
18083 | _ACEOF | |
18084 | cat confdefs.h >>conftest.$ac_ext | |
18085 | cat >>conftest.$ac_ext <<_ACEOF | |
18086 | /* end confdefs.h. */ | |
a0b9e27f | 18087 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
18088 | which can conflict with char $ac_func (); below. |
18089 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18090 | <limits.h> exists even on freestanding compilers. */ | |
18091 | #ifdef __STDC__ | |
18092 | # include <limits.h> | |
18093 | #else | |
18094 | # include <assert.h> | |
18095 | #endif | |
21d1c967 | 18096 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18097 | #ifdef __cplusplus |
18098 | extern "C" | |
18099 | { | |
18100 | #endif | |
21d1c967 | 18101 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18102 | builtin and then its argument prototype would still apply. */ |
18103 | char $ac_func (); | |
21d1c967 GD |
18104 | /* The GNU C library defines this for functions which it implements |
18105 | to always fail with ENOSYS. Some functions are actually named | |
18106 | something starting with __ and the normal name is an alias. */ | |
18107 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18108 | choke me | |
18109 | #else | |
e6cc62c6 VS |
18110 | char (*f) () = $ac_func; |
18111 | #endif | |
18112 | #ifdef __cplusplus | |
18113 | } | |
21d1c967 | 18114 | #endif |
90dd450c | 18115 | |
e6cc62c6 VS |
18116 | int |
18117 | main () | |
18118 | { | |
18119 | return f != $ac_func; | |
18120 | ; | |
18121 | return 0; | |
18122 | } | |
18123 | _ACEOF | |
18124 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18125 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18126 | (eval $ac_link) 2>&5 | |
18127 | ac_status=$? | |
18128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18129 | (exit $ac_status); } && | |
18130 | { ac_try='test -s conftest$ac_exeext' | |
18131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18132 | (eval $ac_try) 2>&5 | |
18133 | ac_status=$? | |
18134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18135 | (exit $ac_status); }; }; then | |
18136 | eval "$as_ac_var=yes" | |
18137 | else | |
18138 | echo "$as_me: failed program was:" >&5 | |
18139 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18140 | ||
18141 | eval "$as_ac_var=no" | |
18142 | fi | |
18143 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18144 | fi | |
18145 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18146 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18147 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18148 | cat >>confdefs.h <<_ACEOF | |
18149 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18150 | _ACEOF | |
5c6fa7d2 | 18151 | |
698dcdb6 | 18152 | fi |
21d1c967 GD |
18153 | done |
18154 | ||
ab9b9eab VZ |
18155 | fi |
18156 | ||
8284b0c5 | 18157 | |
e6cc62c6 | 18158 | |
21d1c967 GD |
18159 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
18160 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
18161 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
18162 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
18163 | { (exit 1); exit 1; }; } | |
21d1c967 | 18164 | else |
e6cc62c6 VS |
18165 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
18166 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18167 | wxUSE_REGEX=builtin |
18168 | fi | |
18169 | else | |
18170 | wxUSE_REGEX=sys | |
18171 | fi | |
ab9b9eab | 18172 | fi |
90dd450c | 18173 | |
21d1c967 GD |
18174 | if test "$wxUSE_REGEX" = "builtin" ; then |
18175 | REGEX_INCLUDE="-I\${top_srcdir}/src/regex" | |
90dd450c | 18176 | fi |
21d1c967 | 18177 | fi |
90dd450c | 18178 | |
8284b0c5 | 18179 | |
21d1c967 GD |
18180 | ZLIB_INCLUDE= |
18181 | ZLIB_LINK= | |
18182 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 18183 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18184 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 18185 | _ACEOF |
21d1c967 | 18186 | |
8284b0c5 | 18187 | |
21d1c967 | 18188 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
18189 | if test "$USE_DARWIN" = 1; then |
18190 | system_zlib_h_ok="yes" | |
18191 | else | |
e6cc62c6 VS |
18192 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
18193 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
18194 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
18196 | else |
18197 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18198 | unset ac_cv_header_zlib_h |
e6cc62c6 | 18199 | |
d643b80e | 18200 | else |
e6cc62c6 VS |
18201 | cat >conftest.$ac_ext <<_ACEOF |
18202 | #line $LINENO "configure" | |
18203 | /* confdefs.h. */ | |
18204 | _ACEOF | |
18205 | cat confdefs.h >>conftest.$ac_ext | |
18206 | cat >>conftest.$ac_ext <<_ACEOF | |
18207 | /* end confdefs.h. */ | |
18208 | ||
ef33c576 | 18209 | #include <zlib.h> |
d775acfa | 18210 | #include <stdio.h> |
d643b80e | 18211 | |
d775acfa VZ |
18212 | int main() |
18213 | { | |
18214 | FILE *f=fopen("conftestval", "w"); | |
18215 | if (!f) exit(1); | |
18216 | fprintf(f, "%s", | |
18217 | ZLIB_VERSION[0] == '1' && | |
18218 | (ZLIB_VERSION[2] > '1' || | |
18219 | (ZLIB_VERSION[2] == '1' && | |
18220 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
18221 | exit(0); | |
18222 | } | |
e6cc62c6 VS |
18223 | |
18224 | _ACEOF | |
18225 | rm -f conftest$ac_exeext | |
18226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18227 | (eval $ac_link) 2>&5 | |
18228 | ac_status=$? | |
18229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18230 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18232 | (eval $ac_try) 2>&5 | |
18233 | ac_status=$? | |
18234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18235 | (exit $ac_status); }; }; then | |
d643b80e VZ |
18236 | ac_cv_header_zlib_h=`cat conftestval` |
18237 | else | |
e6cc62c6 VS |
18238 | echo "$as_me: program exited with status $ac_status" >&5 |
18239 | echo "$as_me: failed program was:" >&5 | |
18240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18241 | ||
18242 | ( exit $ac_status ) | |
18243 | ac_cv_header_zlib_h=no | |
d643b80e | 18244 | fi |
e6cc62c6 | 18245 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
18246 | fi |
18247 | ||
d643b80e | 18248 | fi |
e6cc62c6 VS |
18249 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
18250 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18251 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18252 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18253 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18254 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18255 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18256 | fi | |
18257 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18258 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 18259 | else |
e6cc62c6 VS |
18260 | # Is the header compilable? |
18261 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
18262 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
18263 | cat >conftest.$ac_ext <<_ACEOF | |
18264 | #line $LINENO "configure" | |
18265 | /* confdefs.h. */ | |
18266 | _ACEOF | |
18267 | cat confdefs.h >>conftest.$ac_ext | |
18268 | cat >>conftest.$ac_ext <<_ACEOF | |
18269 | /* end confdefs.h. */ | |
18270 | $ac_includes_default | |
89e6bf6d | 18271 | #include <zlib.h> |
e6cc62c6 VS |
18272 | _ACEOF |
18273 | rm -f conftest.$ac_objext | |
18274 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18275 | (eval $ac_compile) 2>&5 | |
18276 | ac_status=$? | |
18277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18278 | (exit $ac_status); } && | |
18279 | { ac_try='test -s conftest.$ac_objext' | |
18280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18281 | (eval $ac_try) 2>&5 | |
18282 | ac_status=$? | |
18283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18284 | (exit $ac_status); }; }; then | |
18285 | ac_header_compiler=yes | |
18286 | else | |
18287 | echo "$as_me: failed program was:" >&5 | |
18288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18289 | ||
18290 | ac_header_compiler=no | |
18291 | fi | |
18292 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18293 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18294 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18295 | ||
18296 | # Is the header present? | |
18297 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
18298 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
18299 | cat >conftest.$ac_ext <<_ACEOF | |
18300 | #line $LINENO "configure" | |
18301 | /* confdefs.h. */ | |
18302 | _ACEOF | |
18303 | cat confdefs.h >>conftest.$ac_ext | |
18304 | cat >>conftest.$ac_ext <<_ACEOF | |
18305 | /* end confdefs.h. */ | |
18306 | #include <zlib.h> | |
18307 | _ACEOF | |
18308 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18309 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18310 | ac_status=$? | |
18311 | grep -v '^ *+' conftest.er1 >conftest.err | |
18312 | rm -f conftest.er1 | |
18313 | cat conftest.err >&5 | |
18314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18315 | (exit $ac_status); } >/dev/null; then | |
18316 | if test -s conftest.err; then | |
18317 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18318 | else | |
18319 | ac_cpp_err= | |
18320 | fi | |
18321 | else | |
18322 | ac_cpp_err=yes | |
18323 | fi | |
18324 | if test -z "$ac_cpp_err"; then | |
18325 | ac_header_preproc=yes | |
18326 | else | |
18327 | echo "$as_me: failed program was:" >&5 | |
18328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18329 | ||
18330 | ac_header_preproc=no | |
18331 | fi | |
18332 | rm -f conftest.err conftest.$ac_ext | |
18333 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18334 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18335 | ||
18336 | # So? What about this header? | |
18337 | case $ac_header_compiler:$ac_header_preproc in | |
18338 | yes:no ) | |
18339 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18340 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18341 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18342 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18343 | ( | |
18344 | cat <<\_ASBOX | |
18345 | ## ------------------------------------ ## | |
18346 | ## Report this to bug-autoconf@gnu.org. ## | |
18347 | ## ------------------------------------ ## | |
18348 | _ASBOX | |
18349 | ) | | |
18350 | sed "s/^/$as_me: WARNING: /" >&2 | |
18351 | ;; | |
18352 | no:yes ) | |
18353 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | |
18354 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
18355 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | |
18356 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
18357 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | |
18358 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18359 | ( | |
18360 | cat <<\_ASBOX | |
18361 | ## ------------------------------------ ## | |
18362 | ## Report this to bug-autoconf@gnu.org. ## | |
18363 | ## ------------------------------------ ## | |
18364 | _ASBOX | |
18365 | ) | | |
18366 | sed "s/^/$as_me: WARNING: /" >&2 | |
18367 | ;; | |
18368 | esac | |
18369 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18370 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18371 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18373 | else |
e6cc62c6 VS |
18374 | ac_cv_header_zlib_h=$ac_header_preproc |
18375 | fi | |
18376 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18377 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18378 | ||
89e6bf6d VZ |
18379 | fi |
18380 | ||
d643b80e | 18381 | |
e6cc62c6 | 18382 | |
d775acfa VZ |
18383 | system_zlib_h_ok=$ac_cv_header_zlib_h |
18384 | fi | |
18385 | ||
18386 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
18387 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
18388 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
18389 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
18390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18391 | else |
e6cc62c6 | 18392 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18393 | LIBS="-lz $LIBS" |
e6cc62c6 VS |
18394 | cat >conftest.$ac_ext <<_ACEOF |
18395 | #line $LINENO "configure" | |
18396 | /* confdefs.h. */ | |
18397 | _ACEOF | |
18398 | cat confdefs.h >>conftest.$ac_ext | |
18399 | cat >>conftest.$ac_ext <<_ACEOF | |
18400 | /* end confdefs.h. */ | |
18401 | ||
21d1c967 | 18402 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18403 | #ifdef __cplusplus |
18404 | extern "C" | |
18405 | #endif | |
21d1c967 | 18406 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18407 | builtin and then its argument prototype would still apply. */ |
18408 | char deflate (); | |
18409 | int | |
18410 | main () | |
18411 | { | |
18412 | deflate (); | |
18413 | ; | |
18414 | return 0; | |
18415 | } | |
18416 | _ACEOF | |
18417 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18418 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18419 | (eval $ac_link) 2>&5 | |
18420 | ac_status=$? | |
18421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18422 | (exit $ac_status); } && | |
18423 | { ac_try='test -s conftest$ac_exeext' | |
18424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18425 | (eval $ac_try) 2>&5 | |
18426 | ac_status=$? | |
18427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18428 | (exit $ac_status); }; }; then | |
18429 | ac_cv_lib_z_deflate=yes | |
18430 | else | |
18431 | echo "$as_me: failed program was:" >&5 | |
18432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18433 | ||
18434 | ac_cv_lib_z_deflate=no | |
18435 | fi | |
18436 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18437 | LIBS=$ac_check_lib_save_LIBS | |
18438 | fi | |
18439 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
18440 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
18441 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 18442 | ZLIB_LINK=" -lz" |
a0b9e27f | 18443 | fi |
698dcdb6 | 18444 | |
d643b80e | 18445 | fi |
247f5006 | 18446 | |
21d1c967 GD |
18447 | if test "x$ZLIB_LINK" = "x" ; then |
18448 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
18449 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
18450 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
18451 | { (exit 1); exit 1; }; } | |
21d1c967 | 18452 | else |
e6cc62c6 VS |
18453 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
18454 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18455 | wxUSE_ZLIB=builtin |
18456 | fi | |
18457 | else | |
18458 | wxUSE_ZLIB=sys | |
18459 | fi | |
18460 | fi | |
18461 | ||
18462 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
18463 | ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib" | |
18464 | fi | |
ab9b9eab VZ |
18465 | fi |
18466 | ||
8284b0c5 | 18467 | |
21d1c967 GD |
18468 | PNG_INCLUDE= |
18469 | PNG_LINK= | |
18470 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 18471 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18472 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 18473 | _ACEOF |
90dd450c | 18474 | |
8284b0c5 | 18475 | |
21d1c967 | 18476 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
18477 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
18478 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18479 | wxUSE_LIBPNG=sys |
18480 | fi | |
90dd450c | 18481 | |
21d1c967 | 18482 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
18483 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
18484 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
18485 | wxUSE_LIBPNG=builtin |
18486 | fi | |
18487 | ||
18488 | if test "$wxUSE_MGL" != 1 ; then | |
18489 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
18490 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
18491 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
18492 | if test "${ac_cv_header_png_h+set}" = set; then | |
18493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
18494 | else |
18495 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18496 | unset ac_cv_header_png_h |
e6cc62c6 | 18497 | |
5d3f766d | 18498 | else |
e6cc62c6 VS |
18499 | cat >conftest.$ac_ext <<_ACEOF |
18500 | #line $LINENO "configure" | |
18501 | /* confdefs.h. */ | |
18502 | _ACEOF | |
18503 | cat confdefs.h >>conftest.$ac_ext | |
18504 | cat >>conftest.$ac_ext <<_ACEOF | |
18505 | /* end confdefs.h. */ | |
18506 | ||
ef33c576 | 18507 | #include <png.h> |
5d3f766d VZ |
18508 | #include <stdio.h> |
18509 | ||
18510 | int main() | |
18511 | { | |
18512 | FILE *f=fopen("conftestval", "w"); | |
18513 | if (!f) exit(1); | |
18514 | fprintf(f, "%s", | |
18515 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
18516 | exit(0); | |
18517 | } | |
e6cc62c6 VS |
18518 | |
18519 | _ACEOF | |
18520 | rm -f conftest$ac_exeext | |
18521 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18522 | (eval $ac_link) 2>&5 | |
18523 | ac_status=$? | |
18524 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18525 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18527 | (eval $ac_try) 2>&5 | |
18528 | ac_status=$? | |
18529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18530 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
18531 | ac_cv_header_png_h=`cat conftestval` |
18532 | else | |
e6cc62c6 VS |
18533 | echo "$as_me: program exited with status $ac_status" >&5 |
18534 | echo "$as_me: failed program was:" >&5 | |
18535 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18536 | ||
18537 | ( exit $ac_status ) | |
18538 | ac_cv_header_png_h=no | |
5d3f766d | 18539 | fi |
e6cc62c6 | 18540 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
18541 | fi |
18542 | ||
5d3f766d | 18543 | fi |
e6cc62c6 VS |
18544 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
18545 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18546 | if test "${ac_cv_header_png_h+set}" = set; then | |
18547 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18548 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18549 | if test "${ac_cv_header_png_h+set}" = set; then | |
18550 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18551 | fi | |
18552 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18553 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 18554 | else |
e6cc62c6 VS |
18555 | # Is the header compilable? |
18556 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
18557 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
18558 | cat >conftest.$ac_ext <<_ACEOF | |
18559 | #line $LINENO "configure" | |
18560 | /* confdefs.h. */ | |
18561 | _ACEOF | |
18562 | cat confdefs.h >>conftest.$ac_ext | |
18563 | cat >>conftest.$ac_ext <<_ACEOF | |
18564 | /* end confdefs.h. */ | |
18565 | $ac_includes_default | |
89e6bf6d | 18566 | #include <png.h> |
e6cc62c6 VS |
18567 | _ACEOF |
18568 | rm -f conftest.$ac_objext | |
18569 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18570 | (eval $ac_compile) 2>&5 | |
18571 | ac_status=$? | |
18572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18573 | (exit $ac_status); } && | |
18574 | { ac_try='test -s conftest.$ac_objext' | |
18575 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18576 | (eval $ac_try) 2>&5 | |
18577 | ac_status=$? | |
18578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18579 | (exit $ac_status); }; }; then | |
18580 | ac_header_compiler=yes | |
18581 | else | |
18582 | echo "$as_me: failed program was:" >&5 | |
18583 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18584 | ||
18585 | ac_header_compiler=no | |
18586 | fi | |
18587 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18588 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18589 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18590 | ||
18591 | # Is the header present? | |
18592 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
18593 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
18594 | cat >conftest.$ac_ext <<_ACEOF | |
18595 | #line $LINENO "configure" | |
18596 | /* confdefs.h. */ | |
18597 | _ACEOF | |
18598 | cat confdefs.h >>conftest.$ac_ext | |
18599 | cat >>conftest.$ac_ext <<_ACEOF | |
18600 | /* end confdefs.h. */ | |
18601 | #include <png.h> | |
18602 | _ACEOF | |
18603 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18604 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18605 | ac_status=$? | |
18606 | grep -v '^ *+' conftest.er1 >conftest.err | |
18607 | rm -f conftest.er1 | |
18608 | cat conftest.err >&5 | |
18609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18610 | (exit $ac_status); } >/dev/null; then | |
18611 | if test -s conftest.err; then | |
18612 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18613 | else | |
18614 | ac_cpp_err= | |
18615 | fi | |
18616 | else | |
18617 | ac_cpp_err=yes | |
18618 | fi | |
18619 | if test -z "$ac_cpp_err"; then | |
18620 | ac_header_preproc=yes | |
18621 | else | |
18622 | echo "$as_me: failed program was:" >&5 | |
18623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18624 | ||
18625 | ac_header_preproc=no | |
18626 | fi | |
18627 | rm -f conftest.err conftest.$ac_ext | |
18628 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18629 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18630 | ||
18631 | # So? What about this header? | |
18632 | case $ac_header_compiler:$ac_header_preproc in | |
18633 | yes:no ) | |
18634 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
18635 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
18636 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18637 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18638 | ( | |
18639 | cat <<\_ASBOX | |
18640 | ## ------------------------------------ ## | |
18641 | ## Report this to bug-autoconf@gnu.org. ## | |
18642 | ## ------------------------------------ ## | |
18643 | _ASBOX | |
18644 | ) | | |
18645 | sed "s/^/$as_me: WARNING: /" >&2 | |
18646 | ;; | |
18647 | no:yes ) | |
18648 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 | |
18649 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
18650 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 | |
18651 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
18652 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 | |
18653 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18654 | ( | |
18655 | cat <<\_ASBOX | |
18656 | ## ------------------------------------ ## | |
18657 | ## Report this to bug-autoconf@gnu.org. ## | |
18658 | ## ------------------------------------ ## | |
18659 | _ASBOX | |
18660 | ) | | |
18661 | sed "s/^/$as_me: WARNING: /" >&2 | |
18662 | ;; | |
18663 | esac | |
18664 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18665 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18666 | if test "${ac_cv_header_png_h+set}" = set; then | |
18667 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18668 | else |
e6cc62c6 VS |
18669 | ac_cv_header_png_h=$ac_header_preproc |
18670 | fi | |
18671 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18672 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18673 | ||
89e6bf6d VZ |
18674 | fi |
18675 | ||
5d3f766d | 18676 | |
e6cc62c6 | 18677 | |
5d3f766d | 18678 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
18679 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
18680 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
18681 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
18682 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18683 | else |
e6cc62c6 | 18684 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18685 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 VS |
18686 | cat >conftest.$ac_ext <<_ACEOF |
18687 | #line $LINENO "configure" | |
18688 | /* confdefs.h. */ | |
18689 | _ACEOF | |
18690 | cat confdefs.h >>conftest.$ac_ext | |
18691 | cat >>conftest.$ac_ext <<_ACEOF | |
18692 | /* end confdefs.h. */ | |
18693 | ||
21d1c967 | 18694 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18695 | #ifdef __cplusplus |
18696 | extern "C" | |
18697 | #endif | |
21d1c967 | 18698 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18699 | builtin and then its argument prototype would still apply. */ |
18700 | char png_check_sig (); | |
18701 | int | |
18702 | main () | |
18703 | { | |
18704 | png_check_sig (); | |
18705 | ; | |
18706 | return 0; | |
18707 | } | |
18708 | _ACEOF | |
18709 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18710 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18711 | (eval $ac_link) 2>&5 | |
18712 | ac_status=$? | |
18713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18714 | (exit $ac_status); } && | |
18715 | { ac_try='test -s conftest$ac_exeext' | |
18716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18717 | (eval $ac_try) 2>&5 | |
18718 | ac_status=$? | |
18719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18720 | (exit $ac_status); }; }; then | |
18721 | ac_cv_lib_png_png_check_sig=yes | |
18722 | else | |
18723 | echo "$as_me: failed program was:" >&5 | |
18724 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18725 | ||
18726 | ac_cv_lib_png_png_check_sig=no | |
18727 | fi | |
18728 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18729 | LIBS=$ac_check_lib_save_LIBS | |
18730 | fi | |
18731 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
18732 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
18733 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 18734 | PNG_LINK=" -lpng" |
a0b9e27f | 18735 | fi |
90dd450c | 18736 | |
5d3f766d | 18737 | fi |
247f5006 | 18738 | |
21d1c967 GD |
18739 | if test "x$PNG_LINK" = "x" ; then |
18740 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
18741 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
18742 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
18743 | { (exit 1); exit 1; }; } | |
21d1c967 | 18744 | else |
e6cc62c6 VS |
18745 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
18746 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18747 | wxUSE_LIBPNG=builtin |
18748 | fi | |
18749 | else | |
2b5f62a0 | 18750 | wxUSE_LIBPNG=sys |
21d1c967 GD |
18751 | fi |
18752 | fi | |
18753 | fi | |
90dd450c | 18754 | |
21d1c967 GD |
18755 | if test "$wxUSE_LIBPNG" = "builtin" ; then |
18756 | PNG_INCLUDE="-I\${top_srcdir}/src/png" | |
18757 | fi | |
90dd450c | 18758 | |
21d1c967 | 18759 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
18760 | fi |
18761 | ||
8284b0c5 | 18762 | |
21d1c967 GD |
18763 | JPEG_INCLUDE= |
18764 | JPEG_LINK= | |
18765 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 18766 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18767 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 18768 | _ACEOF |
90dd450c | 18769 | |
8284b0c5 | 18770 | |
21d1c967 | 18771 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
18772 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
18773 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18774 | wxUSE_LIBJPEG=sys |
18775 | fi | |
90dd450c | 18776 | |
21d1c967 GD |
18777 | if test "$wxUSE_MGL" != 1 ; then |
18778 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
18779 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
18780 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
18781 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
18782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18783 | else | |
18784 | cat >conftest.$ac_ext <<_ACEOF | |
18785 | #line $LINENO "configure" | |
18786 | /* confdefs.h. */ | |
18787 | _ACEOF | |
18788 | cat confdefs.h >>conftest.$ac_ext | |
18789 | cat >>conftest.$ac_ext <<_ACEOF | |
18790 | /* end confdefs.h. */ | |
90dd450c | 18791 | |
21d1c967 GD |
18792 | #undef HAVE_STDLIB_H |
18793 | #include <stdio.h> | |
18794 | #include <jpeglib.h> | |
90dd450c | 18795 | |
e6cc62c6 VS |
18796 | int |
18797 | main () | |
18798 | { | |
18799 | ||
18800 | ||
18801 | ; | |
18802 | return 0; | |
18803 | } | |
18804 | _ACEOF | |
18805 | rm -f conftest.$ac_objext | |
18806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18807 | (eval $ac_compile) 2>&5 | |
18808 | ac_status=$? | |
18809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18810 | (exit $ac_status); } && | |
18811 | { ac_try='test -s conftest.$ac_objext' | |
18812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18813 | (eval $ac_try) 2>&5 | |
18814 | ac_status=$? | |
18815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18816 | (exit $ac_status); }; }; then | |
21d1c967 | 18817 | ac_cv_header_jpeglib_h=yes |
90dd450c | 18818 | else |
e6cc62c6 VS |
18819 | echo "$as_me: failed program was:" >&5 |
18820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18821 | ||
18822 | ac_cv_header_jpeglib_h=no | |
18823 | ||
90dd450c | 18824 | fi |
e6cc62c6 VS |
18825 | rm -f conftest.$ac_objext conftest.$ac_ext |
18826 | ||
90dd450c VZ |
18827 | fi |
18828 | ||
e6cc62c6 VS |
18829 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
18830 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 18831 | |
21d1c967 | 18832 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
18833 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
18834 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
18835 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
18836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18837 | else |
e6cc62c6 | 18838 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18839 | LIBS="-ljpeg $LIBS" |
e6cc62c6 VS |
18840 | cat >conftest.$ac_ext <<_ACEOF |
18841 | #line $LINENO "configure" | |
18842 | /* confdefs.h. */ | |
18843 | _ACEOF | |
18844 | cat confdefs.h >>conftest.$ac_ext | |
18845 | cat >>conftest.$ac_ext <<_ACEOF | |
18846 | /* end confdefs.h. */ | |
18847 | ||
21d1c967 | 18848 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18849 | #ifdef __cplusplus |
18850 | extern "C" | |
18851 | #endif | |
21d1c967 | 18852 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18853 | builtin and then its argument prototype would still apply. */ |
18854 | char jpeg_read_header (); | |
18855 | int | |
18856 | main () | |
18857 | { | |
18858 | jpeg_read_header (); | |
18859 | ; | |
18860 | return 0; | |
18861 | } | |
18862 | _ACEOF | |
18863 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18864 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18865 | (eval $ac_link) 2>&5 | |
18866 | ac_status=$? | |
18867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18868 | (exit $ac_status); } && | |
18869 | { ac_try='test -s conftest$ac_exeext' | |
18870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18871 | (eval $ac_try) 2>&5 | |
18872 | ac_status=$? | |
18873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18874 | (exit $ac_status); }; }; then | |
18875 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
18876 | else | |
18877 | echo "$as_me: failed program was:" >&5 | |
18878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18879 | ||
18880 | ac_cv_lib_jpeg_jpeg_read_header=no | |
18881 | fi | |
18882 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
18883 | LIBS=$ac_check_lib_save_LIBS | |
18884 | fi | |
18885 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
18886 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
18887 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 18888 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
18889 | fi |
18890 | ||
21d1c967 | 18891 | fi |
90dd450c | 18892 | |
21d1c967 GD |
18893 | if test "x$JPEG_LINK" = "x" ; then |
18894 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
18895 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
18896 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
18897 | { (exit 1); exit 1; }; } | |
21d1c967 | 18898 | else |
e6cc62c6 VS |
18899 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
18900 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18901 | wxUSE_LIBJPEG=builtin |
18902 | fi | |
18903 | else | |
18904 | wxUSE_LIBJPEG=sys | |
18905 | fi | |
18906 | fi | |
18907 | fi | |
90dd450c | 18908 | |
21d1c967 GD |
18909 | if test "$wxUSE_LIBJPEG" = "builtin" ; then |
18910 | JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg" | |
18911 | fi | |
18912 | fi | |
90dd450c | 18913 | |
8284b0c5 | 18914 | |
21d1c967 GD |
18915 | TIFF_INCLUDE= |
18916 | TIFF_LINK= | |
2b5f62a0 | 18917 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 18918 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 18919 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18920 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 18921 | _ACEOF |
21d1c967 | 18922 | |
8284b0c5 | 18923 | |
21d1c967 | 18924 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
18925 | if test "$wxUSE_LIBJPEG" = "sys"; then |
18926 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
18927 | fi | |
18928 | if test "$wxUSE_ZLIB" = "sys"; then | |
18929 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
18930 | fi | |
e6cc62c6 VS |
18931 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
18932 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
18933 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
18934 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
18935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18936 | fi | |
18937 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
18938 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
18939 | else | |
18940 | # Is the header compilable? | |
18941 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
18942 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
18943 | cat >conftest.$ac_ext <<_ACEOF | |
18944 | #line $LINENO "configure" | |
18945 | /* confdefs.h. */ | |
18946 | _ACEOF | |
18947 | cat confdefs.h >>conftest.$ac_ext | |
18948 | cat >>conftest.$ac_ext <<_ACEOF | |
18949 | /* end confdefs.h. */ | |
18950 | $ac_includes_default | |
247f5006 | 18951 | #include <tiffio.h> |
e6cc62c6 VS |
18952 | _ACEOF |
18953 | rm -f conftest.$ac_objext | |
18954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18955 | (eval $ac_compile) 2>&5 | |
18956 | ac_status=$? | |
18957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18958 | (exit $ac_status); } && | |
18959 | { ac_try='test -s conftest.$ac_objext' | |
18960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18961 | (eval $ac_try) 2>&5 | |
18962 | ac_status=$? | |
18963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18964 | (exit $ac_status); }; }; then | |
18965 | ac_header_compiler=yes | |
18966 | else | |
18967 | echo "$as_me: failed program was:" >&5 | |
18968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18969 | ||
18970 | ac_header_compiler=no | |
18971 | fi | |
18972 | rm -f conftest.$ac_objext conftest.$ac_ext | |
18973 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18974 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18975 | ||
18976 | # Is the header present? | |
18977 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
18978 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
18979 | cat >conftest.$ac_ext <<_ACEOF | |
18980 | #line $LINENO "configure" | |
18981 | /* confdefs.h. */ | |
18982 | _ACEOF | |
18983 | cat confdefs.h >>conftest.$ac_ext | |
18984 | cat >>conftest.$ac_ext <<_ACEOF | |
18985 | /* end confdefs.h. */ | |
18986 | #include <tiffio.h> | |
18987 | _ACEOF | |
18988 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18989 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18990 | ac_status=$? | |
18991 | grep -v '^ *+' conftest.er1 >conftest.err | |
18992 | rm -f conftest.er1 | |
18993 | cat conftest.err >&5 | |
18994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18995 | (exit $ac_status); } >/dev/null; then | |
18996 | if test -s conftest.err; then | |
18997 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18998 | else | |
18999 | ac_cpp_err= | |
19000 | fi | |
19001 | else | |
19002 | ac_cpp_err=yes | |
19003 | fi | |
19004 | if test -z "$ac_cpp_err"; then | |
19005 | ac_header_preproc=yes | |
19006 | else | |
19007 | echo "$as_me: failed program was:" >&5 | |
19008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19009 | ||
19010 | ac_header_preproc=no | |
19011 | fi | |
19012 | rm -f conftest.err conftest.$ac_ext | |
19013 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19014 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19015 | ||
19016 | # So? What about this header? | |
19017 | case $ac_header_compiler:$ac_header_preproc in | |
19018 | yes:no ) | |
19019 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19020 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19021 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
19022 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
19023 | ( | |
19024 | cat <<\_ASBOX | |
19025 | ## ------------------------------------ ## | |
19026 | ## Report this to bug-autoconf@gnu.org. ## | |
19027 | ## ------------------------------------ ## | |
19028 | _ASBOX | |
19029 | ) | | |
19030 | sed "s/^/$as_me: WARNING: /" >&2 | |
19031 | ;; | |
19032 | no:yes ) | |
19033 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 | |
19034 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
19035 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 | |
19036 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
19037 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 | |
19038 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
19039 | ( | |
19040 | cat <<\_ASBOX | |
19041 | ## ------------------------------------ ## | |
19042 | ## Report this to bug-autoconf@gnu.org. ## | |
19043 | ## ------------------------------------ ## | |
19044 | _ASBOX | |
19045 | ) | | |
19046 | sed "s/^/$as_me: WARNING: /" >&2 | |
19047 | ;; | |
19048 | esac | |
19049 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19050 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19051 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19053 | else | |
19054 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 19055 | fi |
e6cc62c6 VS |
19056 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
19057 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19058 | ||
21d1c967 | 19059 | fi |
e6cc62c6 | 19060 | if test $ac_cv_header_tiffio_h = yes; then |
0e012a93 VZ |
19061 | |
19062 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
e6cc62c6 VS |
19063 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 |
19064 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
19065 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 19066 | else |
e6cc62c6 | 19067 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 19068 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 VS |
19069 | cat >conftest.$ac_ext <<_ACEOF |
19070 | #line $LINENO "configure" | |
19071 | /* confdefs.h. */ | |
19072 | _ACEOF | |
19073 | cat confdefs.h >>conftest.$ac_ext | |
19074 | cat >>conftest.$ac_ext <<_ACEOF | |
19075 | /* end confdefs.h. */ | |
19076 | ||
ab9b9eab | 19077 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19078 | #ifdef __cplusplus |
19079 | extern "C" | |
19080 | #endif | |
ab9b9eab | 19081 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19082 | builtin and then its argument prototype would still apply. */ |
19083 | char TIFFError (); | |
19084 | int | |
19085 | main () | |
19086 | { | |
19087 | TIFFError (); | |
19088 | ; | |
19089 | return 0; | |
19090 | } | |
19091 | _ACEOF | |
19092 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19093 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19094 | (eval $ac_link) 2>&5 | |
19095 | ac_status=$? | |
19096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19097 | (exit $ac_status); } && | |
19098 | { ac_try='test -s conftest$ac_exeext' | |
19099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19100 | (eval $ac_try) 2>&5 | |
19101 | ac_status=$? | |
19102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19103 | (exit $ac_status); }; }; then | |
19104 | ac_cv_lib_tiff_TIFFError=yes | |
19105 | else | |
19106 | echo "$as_me: failed program was:" >&5 | |
19107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19108 | ||
19109 | ac_cv_lib_tiff_TIFFError=no | |
19110 | fi | |
19111 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19112 | LIBS=$ac_check_lib_save_LIBS | |
19113 | fi | |
19114 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
19115 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
19116 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 19117 | TIFF_LINK=" -ltiff" |
a0b9e27f | 19118 | fi |
cd6d6d5b | 19119 | |
e6cc62c6 | 19120 | |
0e012a93 | 19121 | |
a0b9e27f | 19122 | fi |
8284b0c5 | 19123 | |
247f5006 | 19124 | |
e6cc62c6 | 19125 | |
21d1c967 GD |
19126 | if test "x$TIFF_LINK" = "x" ; then |
19127 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
19128 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
19129 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
19130 | { (exit 1); exit 1; }; } | |
90dd450c | 19131 | else |
e6cc62c6 VS |
19132 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
19133 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 19134 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 19135 | fi |
d8356fa3 | 19136 | else |
21d1c967 | 19137 | wxUSE_LIBTIFF=sys |
d8356fa3 | 19138 | fi |
21d1c967 | 19139 | fi |
d8356fa3 | 19140 | |
21d1c967 GD |
19141 | if test "$wxUSE_LIBTIFF" = "builtin" ; then |
19142 | TIFF_INCLUDE="-I\${top_srcdir}/src/tiff" | |
1e6feb95 | 19143 | fi |
21d1c967 | 19144 | fi |
10f2d63a | 19145 | |
8284b0c5 | 19146 | |
672abd7a | 19147 | if test "$wxUSE_EXPAT" != "no"; then |
e06468e8 | 19148 | wxUSE_XML=yes |
672abd7a VS |
19149 | cat >>confdefs.h <<\_ACEOF |
19150 | #define wxUSE_EXPAT 1 | |
19151 | _ACEOF | |
19152 | ||
19153 | cat >>confdefs.h <<\_ACEOF | |
19154 | #define wxUSE_XML 1 | |
19155 | _ACEOF | |
19156 | ||
19157 | ||
19158 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
19159 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19160 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19161 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19162 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19164 | fi | |
19165 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19166 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19167 | else | |
19168 | # Is the header compilable? | |
19169 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
19170 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
19171 | cat >conftest.$ac_ext <<_ACEOF | |
19172 | #line $LINENO "configure" | |
19173 | /* confdefs.h. */ | |
19174 | _ACEOF | |
19175 | cat confdefs.h >>conftest.$ac_ext | |
19176 | cat >>conftest.$ac_ext <<_ACEOF | |
19177 | /* end confdefs.h. */ | |
19178 | $ac_includes_default | |
19179 | #include <expat.h> | |
19180 | _ACEOF | |
19181 | rm -f conftest.$ac_objext | |
19182 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19183 | (eval $ac_compile) 2>&5 | |
19184 | ac_status=$? | |
19185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19186 | (exit $ac_status); } && | |
19187 | { ac_try='test -s conftest.$ac_objext' | |
19188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19189 | (eval $ac_try) 2>&5 | |
19190 | ac_status=$? | |
19191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19192 | (exit $ac_status); }; }; then | |
19193 | ac_header_compiler=yes | |
19194 | else | |
19195 | echo "$as_me: failed program was:" >&5 | |
19196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19197 | ||
19198 | ac_header_compiler=no | |
19199 | fi | |
19200 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19201 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19202 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19203 | ||
19204 | # Is the header present? | |
19205 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
19206 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
19207 | cat >conftest.$ac_ext <<_ACEOF | |
19208 | #line $LINENO "configure" | |
19209 | /* confdefs.h. */ | |
19210 | _ACEOF | |
19211 | cat confdefs.h >>conftest.$ac_ext | |
19212 | cat >>conftest.$ac_ext <<_ACEOF | |
19213 | /* end confdefs.h. */ | |
19214 | #include <expat.h> | |
19215 | _ACEOF | |
19216 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19217 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19218 | ac_status=$? | |
19219 | grep -v '^ *+' conftest.er1 >conftest.err | |
19220 | rm -f conftest.er1 | |
19221 | cat conftest.err >&5 | |
19222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19223 | (exit $ac_status); } >/dev/null; then | |
19224 | if test -s conftest.err; then | |
19225 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19226 | else | |
19227 | ac_cpp_err= | |
19228 | fi | |
19229 | else | |
19230 | ac_cpp_err=yes | |
19231 | fi | |
19232 | if test -z "$ac_cpp_err"; then | |
19233 | ac_header_preproc=yes | |
19234 | else | |
19235 | echo "$as_me: failed program was:" >&5 | |
19236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19237 | ||
19238 | ac_header_preproc=no | |
19239 | fi | |
19240 | rm -f conftest.err conftest.$ac_ext | |
19241 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19242 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19243 | ||
19244 | # So? What about this header? | |
19245 | case $ac_header_compiler:$ac_header_preproc in | |
19246 | yes:no ) | |
19247 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19248 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19249 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 | |
19250 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19251 | ( | |
19252 | cat <<\_ASBOX | |
19253 | ## ------------------------------------ ## | |
19254 | ## Report this to bug-autoconf@gnu.org. ## | |
19255 | ## ------------------------------------ ## | |
19256 | _ASBOX | |
19257 | ) | | |
19258 | sed "s/^/$as_me: WARNING: /" >&2 | |
19259 | ;; | |
19260 | no:yes ) | |
19261 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 | |
19262 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
19263 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 | |
19264 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
19265 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 | |
19266 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19267 | ( | |
19268 | cat <<\_ASBOX | |
19269 | ## ------------------------------------ ## | |
19270 | ## Report this to bug-autoconf@gnu.org. ## | |
19271 | ## ------------------------------------ ## | |
19272 | _ASBOX | |
19273 | ) | | |
19274 | sed "s/^/$as_me: WARNING: /" >&2 | |
19275 | ;; | |
19276 | esac | |
19277 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19278 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19279 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19280 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19281 | else | |
19282 | ac_cv_header_expat_h=$ac_header_preproc | |
19283 | fi | |
19284 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19285 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19286 | ||
19287 | fi | |
5f0b6dff VS |
19288 | if test $ac_cv_header_expat_h = yes; then |
19289 | found_expat_h=1 | |
19290 | fi | |
19291 | ||
19292 | ||
19293 | if test "x$found_expat_h" = "x1"; then | |
19294 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
19295 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
19296 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
19297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19298 | else | |
19299 | ||
19300 | ||
672abd7a | 19301 | |
5f0b6dff VS |
19302 | ac_ext=cc |
19303 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19304 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19305 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19306 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19307 | ||
19308 | cat >conftest.$ac_ext <<_ACEOF | |
19309 | #line $LINENO "configure" | |
19310 | /* confdefs.h. */ | |
19311 | _ACEOF | |
19312 | cat confdefs.h >>conftest.$ac_ext | |
19313 | cat >>conftest.$ac_ext <<_ACEOF | |
19314 | /* end confdefs.h. */ | |
19315 | #include <expat.h> | |
19316 | int | |
19317 | main () | |
19318 | { | |
672abd7a | 19319 | |
5f0b6dff VS |
19320 | ; |
19321 | return 0; | |
19322 | } | |
19323 | _ACEOF | |
19324 | rm -f conftest.$ac_objext | |
19325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19326 | (eval $ac_compile) 2>&5 | |
19327 | ac_status=$? | |
19328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19329 | (exit $ac_status); } && | |
19330 | { ac_try='test -s conftest.$ac_objext' | |
19331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19332 | (eval $ac_try) 2>&5 | |
19333 | ac_status=$? | |
19334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19335 | (exit $ac_status); }; }; then | |
19336 | wx_cv_expat_is_not_broken=yes | |
19337 | else | |
19338 | echo "$as_me: failed program was:" >&5 | |
19339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19340 | ||
19341 | wx_cv_expat_is_not_broken=no | |
19342 | ||
19343 | fi | |
19344 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19345 | ac_ext=c | |
19346 | ac_cpp='$CPP $CPPFLAGS' | |
19347 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19348 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19349 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19350 | ||
19351 | ||
19352 | ||
19353 | fi | |
19354 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
19355 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
19356 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
19357 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
672abd7a VS |
19358 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 |
19359 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
19360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19361 | else | |
19362 | ac_check_lib_save_LIBS=$LIBS | |
19363 | LIBS="-lexpat $LIBS" | |
19364 | cat >conftest.$ac_ext <<_ACEOF | |
19365 | #line $LINENO "configure" | |
19366 | /* confdefs.h. */ | |
19367 | _ACEOF | |
19368 | cat confdefs.h >>conftest.$ac_ext | |
19369 | cat >>conftest.$ac_ext <<_ACEOF | |
19370 | /* end confdefs.h. */ | |
19371 | ||
19372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19373 | #ifdef __cplusplus | |
19374 | extern "C" | |
19375 | #endif | |
19376 | /* We use char because int might match the return type of a gcc2 | |
19377 | builtin and then its argument prototype would still apply. */ | |
19378 | char XML_ParserCreate (); | |
19379 | int | |
19380 | main () | |
19381 | { | |
19382 | XML_ParserCreate (); | |
19383 | ; | |
19384 | return 0; | |
19385 | } | |
19386 | _ACEOF | |
19387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19389 | (eval $ac_link) 2>&5 | |
19390 | ac_status=$? | |
19391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19392 | (exit $ac_status); } && | |
19393 | { ac_try='test -s conftest$ac_exeext' | |
19394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19395 | (eval $ac_try) 2>&5 | |
19396 | ac_status=$? | |
19397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19398 | (exit $ac_status); }; }; then | |
19399 | ac_cv_lib_expat_XML_ParserCreate=yes | |
19400 | else | |
19401 | echo "$as_me: failed program was:" >&5 | |
19402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19403 | ||
19404 | ac_cv_lib_expat_XML_ParserCreate=no | |
19405 | fi | |
19406 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
19407 | LIBS=$ac_check_lib_save_LIBS | |
19408 | fi | |
19409 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
19410 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
19411 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
19412 | EXPAT_LINK=" -lexpat" | |
19413 | fi | |
19414 | ||
5f0b6dff | 19415 | fi |
672abd7a VS |
19416 | fi |
19417 | if test "x$EXPAT_LINK" = "x" ; then | |
19418 | if test "$wxUSE_EXPAT" = "sys" ; then | |
19419 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
19420 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
19421 | { (exit 1); exit 1; }; } | |
19422 | else | |
19423 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
19424 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
19425 | wxUSE_EXPAT=builtin | |
19426 | fi | |
19427 | else | |
19428 | wxUSE_EXPAT=sys | |
19429 | fi | |
19430 | fi | |
19431 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
19432 | ||
19433 | ||
19434 | subdirs="$subdirs src/expat" | |
19435 | ||
19436 | fi | |
19437 | fi | |
19438 | ||
19439 | ||
19440 | ||
21d1c967 | 19441 | AFMINSTALL= |
2b5f62a0 | 19442 | WIN32INSTALL= |
90dd450c | 19443 | |
21d1c967 GD |
19444 | TOOLKIT= |
19445 | TOOLKIT_INCLUDE= | |
19446 | WIDGET_SET= | |
19447 | ||
19448 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
19449 | |
19450 | for ac_header in w32api.h | |
21d1c967 | 19451 | do |
e6cc62c6 VS |
19452 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19453 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19454 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19455 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19456 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19458 | fi | |
19459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19460 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19461 | else | |
19462 | # Is the header compilable? | |
19463 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19464 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19465 | cat >conftest.$ac_ext <<_ACEOF | |
19466 | #line $LINENO "configure" | |
19467 | /* confdefs.h. */ | |
19468 | _ACEOF | |
19469 | cat confdefs.h >>conftest.$ac_ext | |
19470 | cat >>conftest.$ac_ext <<_ACEOF | |
19471 | /* end confdefs.h. */ | |
19472 | $ac_includes_default | |
19473 | #include <$ac_header> | |
19474 | _ACEOF | |
19475 | rm -f conftest.$ac_objext | |
19476 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19477 | (eval $ac_compile) 2>&5 | |
19478 | ac_status=$? | |
19479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19480 | (exit $ac_status); } && | |
19481 | { ac_try='test -s conftest.$ac_objext' | |
19482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19483 | (eval $ac_try) 2>&5 | |
19484 | ac_status=$? | |
19485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19486 | (exit $ac_status); }; }; then | |
19487 | ac_header_compiler=yes | |
19488 | else | |
19489 | echo "$as_me: failed program was:" >&5 | |
19490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19491 | ||
19492 | ac_header_compiler=no | |
19493 | fi | |
19494 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19495 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19496 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19497 | ||
19498 | # Is the header present? | |
19499 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19500 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19501 | cat >conftest.$ac_ext <<_ACEOF | |
19502 | #line $LINENO "configure" | |
19503 | /* confdefs.h. */ | |
19504 | _ACEOF | |
19505 | cat confdefs.h >>conftest.$ac_ext | |
19506 | cat >>conftest.$ac_ext <<_ACEOF | |
19507 | /* end confdefs.h. */ | |
19508 | #include <$ac_header> | |
19509 | _ACEOF | |
19510 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19511 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19512 | ac_status=$? | |
19513 | grep -v '^ *+' conftest.er1 >conftest.err | |
19514 | rm -f conftest.er1 | |
19515 | cat conftest.err >&5 | |
19516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19517 | (exit $ac_status); } >/dev/null; then | |
19518 | if test -s conftest.err; then | |
19519 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19520 | else | |
19521 | ac_cpp_err= | |
19522 | fi | |
19523 | else | |
19524 | ac_cpp_err=yes | |
19525 | fi | |
19526 | if test -z "$ac_cpp_err"; then | |
19527 | ac_header_preproc=yes | |
19528 | else | |
19529 | echo "$as_me: failed program was:" >&5 | |
19530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19531 | ||
19532 | ac_header_preproc=no | |
19533 | fi | |
19534 | rm -f conftest.err conftest.$ac_ext | |
19535 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19536 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19537 | ||
19538 | # So? What about this header? | |
19539 | case $ac_header_compiler:$ac_header_preproc in | |
19540 | yes:no ) | |
19541 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19542 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19543 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19544 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19545 | ( | |
19546 | cat <<\_ASBOX | |
19547 | ## ------------------------------------ ## | |
19548 | ## Report this to bug-autoconf@gnu.org. ## | |
19549 | ## ------------------------------------ ## | |
19550 | _ASBOX | |
19551 | ) | | |
19552 | sed "s/^/$as_me: WARNING: /" >&2 | |
19553 | ;; | |
19554 | no:yes ) | |
19555 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19556 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19557 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19558 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19559 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19560 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19561 | ( | |
19562 | cat <<\_ASBOX | |
19563 | ## ------------------------------------ ## | |
19564 | ## Report this to bug-autoconf@gnu.org. ## | |
19565 | ## ------------------------------------ ## | |
19566 | _ASBOX | |
19567 | ) | | |
19568 | sed "s/^/$as_me: WARNING: /" >&2 | |
19569 | ;; | |
19570 | esac | |
19571 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19572 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19573 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19575 | else | |
19576 | eval "$as_ac_Header=$ac_header_preproc" | |
f79bd02d | 19577 | fi |
e6cc62c6 VS |
19578 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19579 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19580 | ||
21d1c967 | 19581 | fi |
e6cc62c6 VS |
19582 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19583 | cat >>confdefs.h <<_ACEOF | |
19584 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19585 | _ACEOF | |
19586 | ||
21d1c967 | 19587 | fi |
e6cc62c6 | 19588 | |
21d1c967 | 19589 | done |
f79bd02d | 19590 | |
e6cc62c6 VS |
19591 | if test "${ac_cv_header_windows_h+set}" = set; then |
19592 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19593 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19594 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19596 | fi | |
19597 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
19598 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19599 | else | |
19600 | # Is the header compilable? | |
19601 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
19602 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
19603 | cat >conftest.$ac_ext <<_ACEOF | |
19604 | #line $LINENO "configure" | |
19605 | /* confdefs.h. */ | |
19606 | _ACEOF | |
19607 | cat confdefs.h >>conftest.$ac_ext | |
19608 | cat >>conftest.$ac_ext <<_ACEOF | |
19609 | /* end confdefs.h. */ | |
19610 | $ac_includes_default | |
247f5006 | 19611 | #include <windows.h> |
e6cc62c6 VS |
19612 | _ACEOF |
19613 | rm -f conftest.$ac_objext | |
19614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19615 | (eval $ac_compile) 2>&5 | |
19616 | ac_status=$? | |
19617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19618 | (exit $ac_status); } && | |
19619 | { ac_try='test -s conftest.$ac_objext' | |
19620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19621 | (eval $ac_try) 2>&5 | |
19622 | ac_status=$? | |
19623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19624 | (exit $ac_status); }; }; then | |
19625 | ac_header_compiler=yes | |
19626 | else | |
19627 | echo "$as_me: failed program was:" >&5 | |
19628 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19629 | ||
19630 | ac_header_compiler=no | |
19631 | fi | |
19632 | rm -f conftest.$ac_objext conftest.$ac_ext | |
19633 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19634 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19635 | ||
19636 | # Is the header present? | |
19637 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
19638 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
19639 | cat >conftest.$ac_ext <<_ACEOF | |
19640 | #line $LINENO "configure" | |
19641 | /* confdefs.h. */ | |
19642 | _ACEOF | |
19643 | cat confdefs.h >>conftest.$ac_ext | |
19644 | cat >>conftest.$ac_ext <<_ACEOF | |
19645 | /* end confdefs.h. */ | |
19646 | #include <windows.h> | |
19647 | _ACEOF | |
19648 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19649 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19650 | ac_status=$? | |
19651 | grep -v '^ *+' conftest.er1 >conftest.err | |
19652 | rm -f conftest.er1 | |
19653 | cat conftest.err >&5 | |
19654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19655 | (exit $ac_status); } >/dev/null; then | |
19656 | if test -s conftest.err; then | |
19657 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19658 | else | |
19659 | ac_cpp_err= | |
19660 | fi | |
19661 | else | |
19662 | ac_cpp_err=yes | |
19663 | fi | |
19664 | if test -z "$ac_cpp_err"; then | |
19665 | ac_header_preproc=yes | |
19666 | else | |
19667 | echo "$as_me: failed program was:" >&5 | |
19668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19669 | ||
19670 | ac_header_preproc=no | |
19671 | fi | |
19672 | rm -f conftest.err conftest.$ac_ext | |
19673 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19674 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19675 | ||
19676 | # So? What about this header? | |
19677 | case $ac_header_compiler:$ac_header_preproc in | |
19678 | yes:no ) | |
19679 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19680 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19681 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19682 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19683 | ( | |
19684 | cat <<\_ASBOX | |
19685 | ## ------------------------------------ ## | |
19686 | ## Report this to bug-autoconf@gnu.org. ## | |
19687 | ## ------------------------------------ ## | |
19688 | _ASBOX | |
19689 | ) | | |
19690 | sed "s/^/$as_me: WARNING: /" >&2 | |
19691 | ;; | |
19692 | no:yes ) | |
19693 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 | |
19694 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
19695 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 | |
19696 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
19697 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 | |
19698 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
19699 | ( | |
19700 | cat <<\_ASBOX | |
19701 | ## ------------------------------------ ## | |
19702 | ## Report this to bug-autoconf@gnu.org. ## | |
19703 | ## ------------------------------------ ## | |
19704 | _ASBOX | |
19705 | ) | | |
19706 | sed "s/^/$as_me: WARNING: /" >&2 | |
19707 | ;; | |
19708 | esac | |
19709 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19710 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19711 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19712 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19713 | else | |
19714 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 19715 | fi |
e6cc62c6 VS |
19716 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
19717 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19718 | ||
90dd450c | 19719 | fi |
e6cc62c6 | 19720 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 19721 | : |
90dd450c | 19722 | else |
21d1c967 | 19723 | |
e6cc62c6 VS |
19724 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
19725 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
19726 | { (exit 1); exit 1; }; } | |
19727 | ||
5c6fa7d2 | 19728 | fi |
7b4a847f | 19729 | |
5c6fa7d2 | 19730 | |
e6cc62c6 | 19731 | |
b3dfbbc9 | 19732 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 19733 | |
7bb2947d MB |
19734 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
19735 | LIBS="$LIBS -loleacc" | |
19736 | fi | |
19737 | ||
21d1c967 GD |
19738 | case "${host}" in |
19739 | *-*-cygwin* ) | |
b3dfbbc9 | 19740 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 19741 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 19742 | esac |
f79bd02d | 19743 | |
8647bec6 RG |
19744 | if test "$wxUSE_ODBC" = "sys" ; then |
19745 | wxUSE_ODBC = "yes" | |
21d1c967 | 19746 | fi |
8647bec6 RG |
19747 | if test "$wxUSE_ODBC" = "yes" ; then |
19748 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 19749 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 19750 | #define wxUSE_ODBC 1 |
e6cc62c6 | 19751 | _ACEOF |
f79bd02d | 19752 | |
8647bec6 | 19753 | fi |
e6cc62c6 | 19754 | |
21d1c967 GD |
19755 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
19756 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
19757 | |
19758 | WIN32INSTALL=win32install | |
f79bd02d | 19759 | fi |
f79bd02d | 19760 | |
21d1c967 GD |
19761 | if test "$wxUSE_GUI" = "yes"; then |
19762 | USE_GUI=1 | |
f79bd02d | 19763 | |
21d1c967 | 19764 | GUI_TK_LIBRARY= |
f79bd02d | 19765 | |
21d1c967 GD |
19766 | WXGTK12= |
19767 | WXGTK127= | |
19768 | WXGTK20= | |
f79bd02d | 19769 | |
21d1c967 GD |
19770 | if test "$wxUSE_MSW" = 1 ; then |
19771 | TOOLKIT=MSW | |
19772 | GUIDIST=MSW_DIST | |
ffef10f6 VS |
19773 | |
19774 | case "${host}" in | |
19775 | *-*-mingw32* ) | |
19776 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
19777 | esac | |
f79bd02d JS |
19778 | fi |
19779 | ||
21d1c967 | 19780 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
19781 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
19782 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
19783 | |
19784 | gtk_version_cached=1 | |
e6cc62c6 VS |
19785 | if test "${wx_cv_lib_gtk+set}" = set; then |
19786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 19787 | else |
e6cc62c6 | 19788 | |
21d1c967 | 19789 | gtk_version_cached=0 |
e6cc62c6 VS |
19790 | echo "$as_me:$LINENO: result: " >&5 |
19791 | echo "${ECHO_T}" >&6 | |
f79bd02d | 19792 | |
21d1c967 GD |
19793 | GTK_MODULES= |
19794 | if test "$wxUSE_THREADS" = "yes"; then | |
19795 | GTK_MODULES=gthread | |
19796 | fi | |
f79bd02d | 19797 | |
2b5f62a0 | 19798 | wx_cv_lib_gtk= |
21d1c967 GD |
19799 | if test "x$wxUSE_GTK2" = "xyes"; then |
19800 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
19801 | if test "${enable_gtktest+set}" = set; then | |
19802 | enableval="$enable_gtktest" | |
e6cc62c6 | 19803 | |
f79bd02d | 19804 | else |
21d1c967 | 19805 | enable_gtktest=yes |
e6cc62c6 | 19806 | fi; |
f79bd02d | 19807 | |
21d1c967 GD |
19808 | pkg_config_args=gtk+-2.0 |
19809 | for module in . $GTK_MODULES | |
19810 | do | |
19811 | case "$module" in | |
e6cc62c6 | 19812 | gthread) |
21d1c967 GD |
19813 | pkg_config_args="$pkg_config_args gthread-2.0" |
19814 | ;; | |
19815 | esac | |
19816 | done | |
19817 | ||
19818 | no_gtk="" | |
f79bd02d | 19819 | |
21d1c967 GD |
19820 | # Extract the first word of "pkg-config", so it can be a program name with args. |
19821 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
19822 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19823 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
19824 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
19825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 19826 | else |
e6cc62c6 VS |
19827 | case $PKG_CONFIG in |
19828 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
19829 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
19830 | ;; | |
21d1c967 | 19831 | *) |
e6cc62c6 VS |
19832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19833 | for as_dir in $PATH | |
19834 | do | |
19835 | IFS=$as_save_IFS | |
19836 | test -z "$as_dir" && as_dir=. | |
19837 | for ac_exec_ext in '' $ac_executable_extensions; do | |
19838 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
19839 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
19840 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
19841 | break 2 | |
19842 | fi | |
19843 | done | |
19844 | done | |
19845 | ||
21d1c967 GD |
19846 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
19847 | ;; | |
19848 | esac | |
f79bd02d | 19849 | fi |
e6cc62c6 VS |
19850 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
19851 | ||
21d1c967 | 19852 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
19853 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
19854 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 19855 | else |
e6cc62c6 VS |
19856 | echo "$as_me:$LINENO: result: no" >&5 |
19857 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
19858 | fi |
19859 | ||
8284b0c5 | 19860 | |
21d1c967 GD |
19861 | if test x$PKG_CONFIG != xno ; then |
19862 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
19863 | : | |
19864 | else | |
19865 | echo *** pkg-config too old; version 0.7 or better required. | |
19866 | no_gtk=yes | |
19867 | PKG_CONFIG=no | |
19868 | fi | |
19869 | else | |
19870 | no_gtk=yes | |
19871 | fi | |
f79bd02d | 19872 | |
21d1c967 | 19873 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
19874 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
19875 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 19876 | |
21d1c967 GD |
19877 | if test x$PKG_CONFIG != xno ; then |
19878 | ## don't try to run the test against uninstalled libtool libs | |
19879 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
19880 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
19881 | enable_gtktest=no | |
19882 | fi | |
f79bd02d | 19883 | |
21d1c967 GD |
19884 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
19885 | : | |
19886 | else | |
19887 | no_gtk=yes | |
19888 | fi | |
19889 | fi | |
f79bd02d | 19890 | |
21d1c967 GD |
19891 | if test x"$no_gtk" = x ; then |
19892 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
19893 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
19894 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19895 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
19896 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19897 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
19898 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
19899 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
19900 | if test "x$enable_gtktest" = "xyes" ; then | |
19901 | ac_save_CFLAGS="$CFLAGS" | |
19902 | ac_save_LIBS="$LIBS" | |
19903 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
19904 | LIBS="$GTK_LIBS $LIBS" | |
19905 | rm -f conf.gtktest | |
19906 | if test "$cross_compiling" = yes; then | |
19907 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 19908 | else |
e6cc62c6 VS |
19909 | cat >conftest.$ac_ext <<_ACEOF |
19910 | #line $LINENO "configure" | |
19911 | /* confdefs.h. */ | |
19912 | _ACEOF | |
19913 | cat confdefs.h >>conftest.$ac_ext | |
19914 | cat >>conftest.$ac_ext <<_ACEOF | |
19915 | /* end confdefs.h. */ | |
f79bd02d | 19916 | |
21d1c967 GD |
19917 | #include <gtk/gtk.h> |
19918 | #include <stdio.h> | |
19919 | #include <stdlib.h> | |
f79bd02d | 19920 | |
e6cc62c6 | 19921 | int |
21d1c967 GD |
19922 | main () |
19923 | { | |
19924 | int major, minor, micro; | |
19925 | char *tmp_version; | |
f79bd02d | 19926 | |
21d1c967 | 19927 | system ("touch conf.gtktest"); |
f79bd02d | 19928 | |
21d1c967 GD |
19929 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
19930 | tmp_version = g_strdup("$min_gtk_version"); | |
19931 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
19932 | printf("%s, bad version string\n", "$min_gtk_version"); | |
19933 | exit(1); | |
19934 | } | |
f79bd02d | 19935 | |
21d1c967 GD |
19936 | if ((gtk_major_version != $gtk_config_major_version) || |
19937 | (gtk_minor_version != $gtk_config_minor_version) || | |
19938 | (gtk_micro_version != $gtk_config_micro_version)) | |
19939 | { | |
e6cc62c6 | 19940 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
19941 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
19942 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19943 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
19944 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
19945 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
19946 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
19947 | printf("*** required on your system.\n"); | |
19948 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
19949 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 19950 | } |
21d1c967 GD |
19951 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
19952 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
19953 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
19954 | { | |
19955 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
19956 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
19957 | printf("*** library (version %d.%d.%d)\n", | |
19958 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19959 | } | |
19960 | else | |
19961 | { | |
19962 | if ((gtk_major_version > major) || | |
19963 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
19964 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
19965 | { | |
19966 | return 0; | |
19967 | } | |
19968 | else | |
19969 | { | |
19970 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
19971 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
19972 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
19973 | major, minor, micro); | |
19974 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
19975 | printf("***\n"); | |
19976 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
19977 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
19978 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
19979 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
19980 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
19981 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
19982 | printf("*** so that the correct libraries are found at run-time))\n"); | |
19983 | } | |
19984 | } | |
19985 | return 1; | |
19986 | } | |
f79bd02d | 19987 | |
e6cc62c6 VS |
19988 | _ACEOF |
19989 | rm -f conftest$ac_exeext | |
19990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19991 | (eval $ac_link) 2>&5 | |
19992 | ac_status=$? | |
19993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19994 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19996 | (eval $ac_try) 2>&5 | |
19997 | ac_status=$? | |
19998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19999 | (exit $ac_status); }; }; then | |
21d1c967 | 20000 | : |
f79bd02d | 20001 | else |
e6cc62c6 VS |
20002 | echo "$as_me: program exited with status $ac_status" >&5 |
20003 | echo "$as_me: failed program was:" >&5 | |
20004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20005 | ||
20006 | ( exit $ac_status ) | |
20007 | no_gtk=yes | |
f79bd02d | 20008 | fi |
e6cc62c6 | 20009 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 20010 | fi |
21d1c967 GD |
20011 | CFLAGS="$ac_save_CFLAGS" |
20012 | LIBS="$ac_save_LIBS" | |
20013 | fi | |
20014 | fi | |
20015 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20016 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
20017 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
20018 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 20019 | else |
e6cc62c6 VS |
20020 | echo "$as_me:$LINENO: result: no" >&5 |
20021 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20022 | if test "$PKG_CONFIG" = "no" ; then |
20023 | echo "*** A new enough version of pkg-config was not found." | |
20024 | echo "*** See http://pkgconfig.sourceforge.net" | |
20025 | else | |
20026 | if test -f conf.gtktest ; then | |
20027 | : | |
20028 | else | |
20029 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
20030 | ac_save_CFLAGS="$CFLAGS" |
20031 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
20032 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
20033 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20034 | cat >conftest.$ac_ext <<_ACEOF |
20035 | #line $LINENO "configure" | |
20036 | /* confdefs.h. */ | |
20037 | _ACEOF | |
20038 | cat confdefs.h >>conftest.$ac_ext | |
20039 | cat >>conftest.$ac_ext <<_ACEOF | |
20040 | /* end confdefs.h. */ | |
21d1c967 GD |
20041 | |
20042 | #include <gtk/gtk.h> | |
20043 | #include <stdio.h> | |
f79bd02d | 20044 | |
e6cc62c6 VS |
20045 | int |
20046 | main () | |
20047 | { | |
20048 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20049 | ; | |
20050 | return 0; | |
20051 | } | |
20052 | _ACEOF | |
20053 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20055 | (eval $ac_link) 2>&5 | |
20056 | ac_status=$? | |
20057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20058 | (exit $ac_status); } && | |
20059 | { ac_try='test -s conftest$ac_exeext' | |
20060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20061 | (eval $ac_try) 2>&5 | |
20062 | ac_status=$? | |
20063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20064 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20065 | echo "*** The test program compiled, but did not run. This usually means" |
20066 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
20067 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
20068 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20069 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20070 | echo "*** is required on your system" | |
20071 | echo "***" | |
20072 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 20073 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 20074 | else |
e6cc62c6 VS |
20075 | echo "$as_me: failed program was:" >&5 |
20076 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20077 | ||
20078 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 20079 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 20080 | fi |
e6cc62c6 | 20081 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20082 | CFLAGS="$ac_save_CFLAGS" |
20083 | LIBS="$ac_save_LIBS" | |
20084 | fi | |
20085 | fi | |
20086 | GTK_CFLAGS="" | |
20087 | GTK_LIBS="" | |
20088 | : | |
20089 | fi | |
e6cc62c6 VS |
20090 | |
20091 | ||
21d1c967 | 20092 | rm -f conf.gtktest |
f79bd02d | 20093 | |
2b5f62a0 | 20094 | else |
e6cc62c6 VS |
20095 | |
20096 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20097 | if test "${with_gtk_prefix+set}" = set; then |
20098 | withval="$with_gtk_prefix" | |
20099 | gtk_config_prefix="$withval" | |
20100 | else | |
20101 | gtk_config_prefix="" | |
e6cc62c6 | 20102 | fi; |
f79bd02d | 20103 | |
21d1c967 GD |
20104 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20105 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20106 | withval="$with_gtk_exec_prefix" | |
20107 | gtk_config_exec_prefix="$withval" | |
20108 | else | |
20109 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20110 | fi; |
21d1c967 GD |
20111 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20112 | if test "${enable_gtktest+set}" = set; then | |
20113 | enableval="$enable_gtktest" | |
e6cc62c6 | 20114 | |
21d1c967 GD |
20115 | else |
20116 | enable_gtktest=yes | |
e6cc62c6 | 20117 | fi; |
21d1c967 GD |
20118 | |
20119 | for module in . $GTK_MODULES | |
20120 | do | |
20121 | case "$module" in | |
e6cc62c6 | 20122 | gthread) |
21d1c967 GD |
20123 | gtk_config_args="$gtk_config_args gthread" |
20124 | ;; | |
20125 | esac | |
20126 | done | |
20127 | ||
20128 | if test x$gtk_config_exec_prefix != x ; then | |
20129 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20130 | if test x${GTK_CONFIG+set} != xset ; then | |
20131 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20132 | fi | |
20133 | fi | |
20134 | if test x$gtk_config_prefix != x ; then | |
20135 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20136 | if test x${GTK_CONFIG+set} != xset ; then | |
20137 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20138 | fi | |
20139 | fi | |
20140 | ||
20141 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20142 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20143 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20144 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20145 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20147 | else |
e6cc62c6 VS |
20148 | case $GTK_CONFIG in |
20149 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20150 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20151 | ;; | |
21d1c967 | 20152 | *) |
e6cc62c6 VS |
20153 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20154 | for as_dir in $PATH | |
20155 | do | |
20156 | IFS=$as_save_IFS | |
20157 | test -z "$as_dir" && as_dir=. | |
20158 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20159 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20160 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20161 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20162 | break 2 | |
20163 | fi | |
20164 | done | |
20165 | done | |
20166 | ||
21d1c967 GD |
20167 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20168 | ;; | |
20169 | esac | |
20170 | fi | |
e6cc62c6 VS |
20171 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20172 | ||
21d1c967 | 20173 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20174 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20175 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20176 | else |
e6cc62c6 VS |
20177 | echo "$as_me:$LINENO: result: no" >&5 |
20178 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20179 | fi |
20180 | ||
20181 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
20182 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20183 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20184 | no_gtk="" |
20185 | if test "$GTK_CONFIG" = "no" ; then | |
20186 | no_gtk=yes | |
20187 | else | |
20188 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20189 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20190 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20191 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20192 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20193 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20194 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20195 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20196 | if test "x$enable_gtktest" = "xyes" ; then | |
20197 | ac_save_CFLAGS="$CFLAGS" | |
20198 | ac_save_LIBS="$LIBS" | |
20199 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20200 | LIBS="$GTK_LIBS $LIBS" | |
20201 | rm -f conf.gtktest | |
20202 | if test "$cross_compiling" = yes; then | |
20203 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 20204 | else |
e6cc62c6 VS |
20205 | cat >conftest.$ac_ext <<_ACEOF |
20206 | #line $LINENO "configure" | |
20207 | /* confdefs.h. */ | |
20208 | _ACEOF | |
20209 | cat confdefs.h >>conftest.$ac_ext | |
20210 | cat >>conftest.$ac_ext <<_ACEOF | |
20211 | /* end confdefs.h. */ | |
f79bd02d | 20212 | |
21d1c967 GD |
20213 | #include <gtk/gtk.h> |
20214 | #include <stdio.h> | |
20215 | #include <stdlib.h> | |
f79bd02d | 20216 | |
e6cc62c6 | 20217 | int |
21d1c967 GD |
20218 | main () |
20219 | { | |
20220 | int major, minor, micro; | |
20221 | char *tmp_version; | |
20222 | ||
20223 | system ("touch conf.gtktest"); | |
20224 | ||
20225 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20226 | tmp_version = g_strdup("$min_gtk_version"); | |
20227 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20228 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20229 | exit(1); | |
20230 | } | |
90dd450c | 20231 | |
21d1c967 GD |
20232 | if ((gtk_major_version != $gtk_config_major_version) || |
20233 | (gtk_minor_version != $gtk_config_minor_version) || | |
20234 | (gtk_micro_version != $gtk_config_micro_version)) | |
20235 | { | |
e6cc62c6 | 20236 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20237 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20238 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20239 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20240 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20241 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20242 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20243 | printf("*** required on your system.\n"); | |
20244 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20245 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20246 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20247 | } |
21d1c967 GD |
20248 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20249 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20250 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20251 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20252 | { | |
20253 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20254 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20255 | printf("*** library (version %d.%d.%d)\n", | |
20256 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20257 | } | |
20258 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20259 | else | |
20260 | { | |
20261 | if ((gtk_major_version > major) || | |
20262 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20263 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20264 | { | |
20265 | return 0; | |
20266 | } | |
20267 | else | |
20268 | { | |
20269 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20270 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20271 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20272 | major, minor, micro); | |
20273 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20274 | printf("***\n"); | |
20275 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20276 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20277 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20278 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20279 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20280 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20281 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20282 | } | |
20283 | } | |
20284 | return 1; | |
20285 | } | |
20286 | ||
e6cc62c6 VS |
20287 | _ACEOF |
20288 | rm -f conftest$ac_exeext | |
20289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20290 | (eval $ac_link) 2>&5 | |
20291 | ac_status=$? | |
20292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20293 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20295 | (eval $ac_try) 2>&5 | |
20296 | ac_status=$? | |
20297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20298 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20299 | : |
20300 | else | |
e6cc62c6 VS |
20301 | echo "$as_me: program exited with status $ac_status" >&5 |
20302 | echo "$as_me: failed program was:" >&5 | |
20303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20304 | ||
20305 | ( exit $ac_status ) | |
20306 | no_gtk=yes | |
21d1c967 | 20307 | fi |
e6cc62c6 | 20308 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20309 | fi |
21d1c967 GD |
20310 | CFLAGS="$ac_save_CFLAGS" |
20311 | LIBS="$ac_save_LIBS" | |
20312 | fi | |
20313 | fi | |
20314 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20315 | echo "$as_me:$LINENO: result: yes" >&5 |
20316 | echo "${ECHO_T}yes" >&6 | |
20317 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 20318 | else |
e6cc62c6 VS |
20319 | echo "$as_me:$LINENO: result: no" >&5 |
20320 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20321 | if test "$GTK_CONFIG" = "no" ; then |
20322 | echo "*** The gtk-config script installed by GTK could not be found" | |
20323 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20324 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20325 | echo "*** full path to gtk-config." | |
20326 | else | |
20327 | if test -f conf.gtktest ; then | |
20328 | : | |
20329 | else | |
20330 | echo "*** Could not run GTK test program, checking why..." | |
20331 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20332 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20333 | cat >conftest.$ac_ext <<_ACEOF |
20334 | #line $LINENO "configure" | |
20335 | /* confdefs.h. */ | |
20336 | _ACEOF | |
20337 | cat confdefs.h >>conftest.$ac_ext | |
20338 | cat >>conftest.$ac_ext <<_ACEOF | |
20339 | /* end confdefs.h. */ | |
21d1c967 GD |
20340 | |
20341 | #include <gtk/gtk.h> | |
20342 | #include <stdio.h> | |
20343 | ||
e6cc62c6 VS |
20344 | int |
20345 | main () | |
20346 | { | |
20347 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20348 | ; | |
20349 | return 0; | |
20350 | } | |
20351 | _ACEOF | |
20352 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20353 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20354 | (eval $ac_link) 2>&5 | |
20355 | ac_status=$? | |
20356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20357 | (exit $ac_status); } && | |
20358 | { ac_try='test -s conftest$ac_exeext' | |
20359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20360 | (eval $ac_try) 2>&5 | |
20361 | ac_status=$? | |
20362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20363 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20364 | echo "*** The test program compiled, but did not run. This usually means" |
20365 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20366 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20367 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20368 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20369 | echo "*** is required on your system" | |
20370 | echo "***" | |
20371 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20372 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20373 | echo "***" | |
20374 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20375 | echo "*** came with the system with the command" | |
20376 | echo "***" | |
e6cc62c6 | 20377 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20378 | else |
e6cc62c6 VS |
20379 | echo "$as_me: failed program was:" >&5 |
20380 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20381 | ||
20382 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20383 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20384 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20385 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20386 | fi |
e6cc62c6 | 20387 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20388 | CFLAGS="$ac_save_CFLAGS" |
20389 | LIBS="$ac_save_LIBS" | |
20390 | fi | |
20391 | fi | |
20392 | GTK_CFLAGS="" | |
20393 | GTK_LIBS="" | |
20394 | : | |
20395 | fi | |
e6cc62c6 VS |
20396 | |
20397 | ||
21d1c967 GD |
20398 | rm -f conf.gtktest |
20399 | ||
21d1c967 | 20400 | |
2b5f62a0 | 20401 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
20402 | |
20403 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20404 | if test "${with_gtk_prefix+set}" = set; then |
20405 | withval="$with_gtk_prefix" | |
20406 | gtk_config_prefix="$withval" | |
20407 | else | |
20408 | gtk_config_prefix="" | |
e6cc62c6 | 20409 | fi; |
f79bd02d | 20410 | |
21d1c967 GD |
20411 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20412 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20413 | withval="$with_gtk_exec_prefix" | |
20414 | gtk_config_exec_prefix="$withval" | |
20415 | else | |
20416 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20417 | fi; |
21d1c967 GD |
20418 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20419 | if test "${enable_gtktest+set}" = set; then | |
20420 | enableval="$enable_gtktest" | |
e6cc62c6 | 20421 | |
90dd450c | 20422 | else |
21d1c967 | 20423 | enable_gtktest=yes |
e6cc62c6 | 20424 | fi; |
21d1c967 GD |
20425 | |
20426 | for module in . $GTK_MODULES | |
20427 | do | |
20428 | case "$module" in | |
e6cc62c6 | 20429 | gthread) |
21d1c967 GD |
20430 | gtk_config_args="$gtk_config_args gthread" |
20431 | ;; | |
20432 | esac | |
20433 | done | |
20434 | ||
20435 | if test x$gtk_config_exec_prefix != x ; then | |
20436 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20437 | if test x${GTK_CONFIG+set} != xset ; then | |
20438 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20439 | fi | |
20440 | fi | |
20441 | if test x$gtk_config_prefix != x ; then | |
20442 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20443 | if test x${GTK_CONFIG+set} != xset ; then | |
20444 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20445 | fi | |
20446 | fi | |
20447 | ||
20448 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20449 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20450 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20451 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20452 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20454 | else |
e6cc62c6 VS |
20455 | case $GTK_CONFIG in |
20456 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20457 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20458 | ;; | |
21d1c967 | 20459 | *) |
e6cc62c6 VS |
20460 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20461 | for as_dir in $PATH | |
20462 | do | |
20463 | IFS=$as_save_IFS | |
20464 | test -z "$as_dir" && as_dir=. | |
20465 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20466 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20467 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20468 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20469 | break 2 | |
20470 | fi | |
20471 | done | |
20472 | done | |
20473 | ||
21d1c967 GD |
20474 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20475 | ;; | |
20476 | esac | |
20477 | fi | |
e6cc62c6 VS |
20478 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20479 | ||
21d1c967 | 20480 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20481 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20482 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20483 | else |
e6cc62c6 VS |
20484 | echo "$as_me:$LINENO: result: no" >&5 |
20485 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20486 | fi |
20487 | ||
20488 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
20489 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20490 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20491 | no_gtk="" |
20492 | if test "$GTK_CONFIG" = "no" ; then | |
20493 | no_gtk=yes | |
20494 | else | |
20495 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20496 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20497 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20498 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20499 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20500 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20501 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20502 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20503 | if test "x$enable_gtktest" = "xyes" ; then | |
20504 | ac_save_CFLAGS="$CFLAGS" | |
20505 | ac_save_LIBS="$LIBS" | |
20506 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20507 | LIBS="$GTK_LIBS $LIBS" | |
20508 | rm -f conf.gtktest | |
20509 | if test "$cross_compiling" = yes; then | |
20510 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
20511 | else | |
e6cc62c6 VS |
20512 | cat >conftest.$ac_ext <<_ACEOF |
20513 | #line $LINENO "configure" | |
20514 | /* confdefs.h. */ | |
20515 | _ACEOF | |
20516 | cat confdefs.h >>conftest.$ac_ext | |
20517 | cat >>conftest.$ac_ext <<_ACEOF | |
20518 | /* end confdefs.h. */ | |
21d1c967 GD |
20519 | |
20520 | #include <gtk/gtk.h> | |
20521 | #include <stdio.h> | |
20522 | #include <stdlib.h> | |
20523 | ||
e6cc62c6 | 20524 | int |
21d1c967 GD |
20525 | main () |
20526 | { | |
20527 | int major, minor, micro; | |
20528 | char *tmp_version; | |
20529 | ||
20530 | system ("touch conf.gtktest"); | |
20531 | ||
20532 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20533 | tmp_version = g_strdup("$min_gtk_version"); | |
20534 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20535 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20536 | exit(1); | |
20537 | } | |
20538 | ||
20539 | if ((gtk_major_version != $gtk_config_major_version) || | |
20540 | (gtk_minor_version != $gtk_config_minor_version) || | |
20541 | (gtk_micro_version != $gtk_config_micro_version)) | |
20542 | { | |
e6cc62c6 | 20543 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20544 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20545 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20546 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20547 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20548 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20549 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20550 | printf("*** required on your system.\n"); | |
20551 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20552 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20553 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20554 | } |
21d1c967 GD |
20555 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20556 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20557 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20558 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20559 | { | |
20560 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20561 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20562 | printf("*** library (version %d.%d.%d)\n", | |
20563 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20564 | } | |
20565 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20566 | else | |
20567 | { | |
20568 | if ((gtk_major_version > major) || | |
20569 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20570 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20571 | { | |
20572 | return 0; | |
20573 | } | |
20574 | else | |
20575 | { | |
20576 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20577 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20578 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20579 | major, minor, micro); | |
20580 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20581 | printf("***\n"); | |
20582 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20583 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20584 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20585 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20586 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20587 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20588 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20589 | } | |
20590 | } | |
20591 | return 1; | |
20592 | } | |
20593 | ||
e6cc62c6 VS |
20594 | _ACEOF |
20595 | rm -f conftest$ac_exeext | |
20596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20597 | (eval $ac_link) 2>&5 | |
20598 | ac_status=$? | |
20599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20600 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20602 | (eval $ac_try) 2>&5 | |
20603 | ac_status=$? | |
20604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20605 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20606 | : |
20607 | else | |
e6cc62c6 VS |
20608 | echo "$as_me: program exited with status $ac_status" >&5 |
20609 | echo "$as_me: failed program was:" >&5 | |
20610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20611 | ||
20612 | ( exit $ac_status ) | |
20613 | no_gtk=yes | |
21d1c967 | 20614 | fi |
e6cc62c6 | 20615 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20616 | fi |
21d1c967 GD |
20617 | CFLAGS="$ac_save_CFLAGS" |
20618 | LIBS="$ac_save_LIBS" | |
20619 | fi | |
20620 | fi | |
20621 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20622 | echo "$as_me:$LINENO: result: yes" >&5 |
20623 | echo "${ECHO_T}yes" >&6 | |
20624 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 20625 | else |
e6cc62c6 VS |
20626 | echo "$as_me:$LINENO: result: no" >&5 |
20627 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20628 | if test "$GTK_CONFIG" = "no" ; then |
20629 | echo "*** The gtk-config script installed by GTK could not be found" | |
20630 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20631 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20632 | echo "*** full path to gtk-config." | |
20633 | else | |
20634 | if test -f conf.gtktest ; then | |
20635 | : | |
20636 | else | |
20637 | echo "*** Could not run GTK test program, checking why..." | |
20638 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20639 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 VS |
20640 | cat >conftest.$ac_ext <<_ACEOF |
20641 | #line $LINENO "configure" | |
20642 | /* confdefs.h. */ | |
20643 | _ACEOF | |
20644 | cat confdefs.h >>conftest.$ac_ext | |
20645 | cat >>conftest.$ac_ext <<_ACEOF | |
20646 | /* end confdefs.h. */ | |
21d1c967 GD |
20647 | |
20648 | #include <gtk/gtk.h> | |
20649 | #include <stdio.h> | |
f79bd02d | 20650 | |
e6cc62c6 VS |
20651 | int |
20652 | main () | |
20653 | { | |
20654 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20655 | ; | |
20656 | return 0; | |
20657 | } | |
20658 | _ACEOF | |
20659 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20661 | (eval $ac_link) 2>&5 | |
20662 | ac_status=$? | |
20663 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20664 | (exit $ac_status); } && | |
20665 | { ac_try='test -s conftest$ac_exeext' | |
20666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20667 | (eval $ac_try) 2>&5 | |
20668 | ac_status=$? | |
20669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20670 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20671 | echo "*** The test program compiled, but did not run. This usually means" |
20672 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20673 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20674 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20675 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20676 | echo "*** is required on your system" | |
20677 | echo "***" | |
20678 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20679 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20680 | echo "***" | |
20681 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20682 | echo "*** came with the system with the command" | |
20683 | echo "***" | |
e6cc62c6 | 20684 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20685 | else |
e6cc62c6 VS |
20686 | echo "$as_me: failed program was:" >&5 |
20687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20688 | ||
20689 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20690 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20691 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20692 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20693 | fi |
e6cc62c6 | 20694 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20695 | CFLAGS="$ac_save_CFLAGS" |
20696 | LIBS="$ac_save_LIBS" | |
20697 | fi | |
20698 | fi | |
20699 | GTK_CFLAGS="" | |
20700 | GTK_LIBS="" | |
20701 | : | |
20702 | fi | |
e6cc62c6 VS |
20703 | |
20704 | ||
21d1c967 | 20705 | rm -f conf.gtktest |
f79bd02d | 20706 | |
2b5f62a0 | 20707 | fi |
21d1c967 GD |
20708 | fi |
20709 | ||
20710 | if test -z "$wx_cv_lib_gtk"; then | |
20711 | wx_cv_lib_gtk=none | |
20712 | else | |
20713 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
20714 | wx_cv_libs_gtk=$GTK_LIBS | |
20715 | fi | |
e6cc62c6 VS |
20716 | |
20717 | ||
5c6fa7d2 | 20718 | fi |
52127426 | 20719 | |
8284b0c5 | 20720 | |
21d1c967 | 20721 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
20722 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
20723 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
20724 | fi |
20725 | ||
20726 | case "$wx_cv_lib_gtk" in | |
20727 | 2.0) WXGTK20=1 | |
2b5f62a0 | 20728 | TOOLKIT_VERSION=2 |
21d1c967 GD |
20729 | ;; |
20730 | 1.2.7) WXGTK127=1 | |
20731 | WXGTK12=1 | |
20732 | ;; | |
20733 | 1.2.3) WXGTK12=1 | |
20734 | ;; | |
e6cc62c6 VS |
20735 | *) { { echo "$as_me:$LINENO: error: |
20736 | Please check that gtk-config is in path, the directory | |
20737 | where GTK+ libraries are installed (returned by | |
20738 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20739 | equivalent variable and GTK+ is version 1.2.3 or above. | |
20740 | " >&5 | |
20741 | echo "$as_me: error: | |
247f5006 VZ |
20742 | Please check that gtk-config is in path, the directory |
20743 | where GTK+ libraries are installed (returned by | |
20744 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
20745 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
20746 | " >&2;} |
20747 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
20748 | ;; |
20749 | esac | |
20750 | ||
b13cd66e VZ |
20751 | if test "$WXGTK20" = 1; then |
20752 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 20753 | |
f09359cf VS |
20754 | succeeded=no |
20755 | ||
20756 | if test -z "$PKG_CONFIG"; then | |
20757 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
20758 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
20759 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20760 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20761 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
20762 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 20763 | else |
e6cc62c6 VS |
20764 | case $PKG_CONFIG in |
20765 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
20766 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20767 | ;; | |
f09359cf | 20768 | *) |
e6cc62c6 VS |
20769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20770 | for as_dir in $PATH | |
20771 | do | |
20772 | IFS=$as_save_IFS | |
20773 | test -z "$as_dir" && as_dir=. | |
20774 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20775 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20776 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20777 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20778 | break 2 | |
20779 | fi | |
20780 | done | |
20781 | done | |
20782 | ||
f09359cf VS |
20783 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20784 | ;; | |
20785 | esac | |
20786 | fi | |
e6cc62c6 VS |
20787 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20788 | ||
f09359cf | 20789 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
20790 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20791 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 20792 | else |
e6cc62c6 VS |
20793 | echo "$as_me:$LINENO: result: no" >&5 |
20794 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
20795 | fi |
20796 | ||
20797 | fi | |
20798 | ||
20799 | if test "$PKG_CONFIG" = "no" ; then | |
20800 | echo "*** The pkg-config script could not be found. Make sure it is" | |
20801 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
20802 | echo "*** to the full path to pkg-config." | |
20803 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
20804 | else | |
20805 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
20806 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
20807 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
20808 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
20809 | |
20810 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
20811 | echo "$as_me:$LINENO: result: yes" >&5 |
20812 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
20813 | succeeded=yes |
20814 | ||
e6cc62c6 VS |
20815 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
20816 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 20817 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
20818 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
20819 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 20820 | |
e6cc62c6 VS |
20821 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
20822 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 20823 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
20824 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
20825 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
20826 | else |
20827 | PANGOFT2_CFLAGS="" | |
20828 | PANGOFT2_LIBS="" | |
e6cc62c6 | 20829 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
20830 | ## do set a variable so people can do so. |
20831 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 20832 | |
f09359cf VS |
20833 | fi |
20834 | ||
e6cc62c6 VS |
20835 | |
20836 | ||
f09359cf VS |
20837 | else |
20838 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
20839 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
20840 | fi | |
20841 | fi | |
20842 | ||
20843 | if test $succeeded = yes; then | |
e6cc62c6 | 20844 | |
b13cd66e | 20845 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 20846 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 20847 | |
f09359cf | 20848 | else |
e6cc62c6 VS |
20849 | |
20850 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
20851 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 20852 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
20853 | |
20854 | ||
f09359cf VS |
20855 | fi |
20856 | ||
b13cd66e | 20857 | fi |
2b5f62a0 VZ |
20858 | else |
20859 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
20860 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
20861 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
20862 | wxUSE_UNICODE=no |
20863 | fi | |
20864 | fi | |
20865 | ||
20866 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
20867 | |
20868 | for ac_func in poll | |
2b5f62a0 | 20869 | do |
e6cc62c6 VS |
20870 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
20871 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20872 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20873 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20874 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20875 | else | |
20876 | cat >conftest.$ac_ext <<_ACEOF | |
20877 | #line $LINENO "configure" | |
20878 | /* confdefs.h. */ | |
20879 | _ACEOF | |
20880 | cat confdefs.h >>conftest.$ac_ext | |
20881 | cat >>conftest.$ac_ext <<_ACEOF | |
20882 | /* end confdefs.h. */ | |
2b5f62a0 | 20883 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
20884 | which can conflict with char $ac_func (); below. |
20885 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20886 | <limits.h> exists even on freestanding compilers. */ | |
20887 | #ifdef __STDC__ | |
20888 | # include <limits.h> | |
20889 | #else | |
20890 | # include <assert.h> | |
20891 | #endif | |
2b5f62a0 | 20892 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20893 | #ifdef __cplusplus |
20894 | extern "C" | |
20895 | { | |
20896 | #endif | |
2b5f62a0 | 20897 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20898 | builtin and then its argument prototype would still apply. */ |
20899 | char $ac_func (); | |
2b5f62a0 VZ |
20900 | /* The GNU C library defines this for functions which it implements |
20901 | to always fail with ENOSYS. Some functions are actually named | |
20902 | something starting with __ and the normal name is an alias. */ | |
20903 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20904 | choke me | |
20905 | #else | |
e6cc62c6 VS |
20906 | char (*f) () = $ac_func; |
20907 | #endif | |
20908 | #ifdef __cplusplus | |
20909 | } | |
2b5f62a0 VZ |
20910 | #endif |
20911 | ||
e6cc62c6 VS |
20912 | int |
20913 | main () | |
20914 | { | |
20915 | return f != $ac_func; | |
20916 | ; | |
20917 | return 0; | |
20918 | } | |
20919 | _ACEOF | |
20920 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20922 | (eval $ac_link) 2>&5 | |
20923 | ac_status=$? | |
20924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20925 | (exit $ac_status); } && | |
20926 | { ac_try='test -s conftest$ac_exeext' | |
20927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20928 | (eval $ac_try) 2>&5 | |
20929 | ac_status=$? | |
20930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20931 | (exit $ac_status); }; }; then | |
20932 | eval "$as_ac_var=yes" | |
20933 | else | |
20934 | echo "$as_me: failed program was:" >&5 | |
20935 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20936 | ||
20937 | eval "$as_ac_var=no" | |
20938 | fi | |
20939 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
20940 | fi | |
20941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20942 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20943 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20944 | cat >>confdefs.h <<_ACEOF | |
20945 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20946 | _ACEOF | |
2b5f62a0 | 20947 | |
2b5f62a0 VZ |
20948 | fi |
20949 | done | |
20950 | ||
f09359cf VS |
20951 | fi |
20952 | ||
21d1c967 | 20953 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 20954 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
20955 | |
20956 | AFMINSTALL=afminstall | |
20957 | TOOLKIT=GTK | |
20958 | GUIDIST=GTK_DIST | |
20959 | ||
e6cc62c6 VS |
20960 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
20961 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
20962 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
20963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20964 | else |
e6cc62c6 | 20965 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 20966 | LIBS="-lgdk $LIBS" |
e6cc62c6 VS |
20967 | cat >conftest.$ac_ext <<_ACEOF |
20968 | #line $LINENO "configure" | |
20969 | /* confdefs.h. */ | |
20970 | _ACEOF | |
20971 | cat confdefs.h >>conftest.$ac_ext | |
20972 | cat >>conftest.$ac_ext <<_ACEOF | |
20973 | /* end confdefs.h. */ | |
20974 | ||
5c6fa7d2 | 20975 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
20976 | #ifdef __cplusplus |
20977 | extern "C" | |
20978 | #endif | |
5c6fa7d2 | 20979 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
20980 | builtin and then its argument prototype would still apply. */ |
20981 | char gdk_im_open (); | |
20982 | int | |
20983 | main () | |
20984 | { | |
20985 | gdk_im_open (); | |
20986 | ; | |
20987 | return 0; | |
20988 | } | |
20989 | _ACEOF | |
20990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20992 | (eval $ac_link) 2>&5 | |
20993 | ac_status=$? | |
20994 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20995 | (exit $ac_status); } && | |
20996 | { ac_try='test -s conftest$ac_exeext' | |
20997 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20998 | (eval $ac_try) 2>&5 | |
20999 | ac_status=$? | |
21000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21001 | (exit $ac_status); }; }; then | |
21002 | ac_cv_lib_gdk_gdk_im_open=yes | |
21003 | else | |
21004 | echo "$as_me: failed program was:" >&5 | |
21005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21006 | ||
21007 | ac_cv_lib_gdk_gdk_im_open=no | |
21008 | fi | |
21009 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21010 | LIBS=$ac_check_lib_save_LIBS | |
21011 | fi | |
21012 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
21013 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
21014 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
21015 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 21016 | #define HAVE_XIM 1 |
e6cc62c6 | 21017 | _ACEOF |
21d1c967 | 21018 | |
90dd450c | 21019 | fi |
1e6feb95 | 21020 | |
21d1c967 | 21021 | fi |
1e6feb95 | 21022 | |
21d1c967 | 21023 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
21024 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
21025 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 21026 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
21027 | echo "$as_me:$LINENO: result: not found" >&5 |
21028 | echo "${ECHO_T}not found" >&6 | |
21029 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
21030 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
21031 | { (exit 1); exit 1; }; } | |
21d1c967 | 21032 | else |
e6cc62c6 VS |
21033 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
21034 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
21035 | fi |
21036 | ||
e6cc62c6 VS |
21037 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
21038 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
21d1c967 GD |
21039 | case "${host}" in |
21040 | *-*-linux* ) | |
63a76696 VS |
21041 | if test "x$wxUSE_SHARED" = xyes ; then |
21042 | mgl_os_candidates="linux/gcc/glibc.so linux/gcc/glibc" | |
21043 | else | |
21044 | mgl_os_candidates="linux/gcc/glibc linux/gcc/glibc.so" | |
21045 | fi | |
21d1c967 GD |
21046 | ;; |
21047 | *-pc-msdosdjgpp ) | |
63a76696 | 21048 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
21049 | ;; |
21050 | *) | |
e6cc62c6 VS |
21051 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
21052 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
21053 | { (exit 1); exit 1; }; } | |
21d1c967 | 21054 | esac |
1e6feb95 | 21055 | |
21d1c967 | 21056 | mgl_lib_type="" |
63a76696 VS |
21057 | mgl_os="" |
21058 | ||
21059 | for mgl_os_i in $mgl_os_candidates ; do | |
21060 | if test "x$mgl_os" = x ; then | |
21061 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
21062 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
21063 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
21064 | mgl_lib_type=debug | |
21065 | mgl_os=$mgl_os_i | |
21066 | fi | |
21067 | fi | |
21068 | if test "x$mgl_lib_type" = x ; then | |
21069 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
21070 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
21071 | mgl_lib_type=release | |
21072 | mgl_os=$mgl_os_i | |
21073 | fi | |
21074 | fi | |
21d1c967 | 21075 | fi |
63a76696 | 21076 | done |
2224580a | 21077 | |
63a76696 | 21078 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
21079 | echo "$as_me:$LINENO: result: not found" >&5 |
21080 | echo "${ECHO_T}not found" >&6 | |
21081 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
21082 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
21083 | { (exit 1); exit 1; }; } | |
63a76696 | 21084 | fi |
e6cc62c6 VS |
21085 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
21086 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 21087 | |
1d1b75ac VZ |
21088 | wxUSE_UNIVERSAL="yes" |
21089 | ||
21d1c967 GD |
21090 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
21091 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
21092 | ||
90dd450c | 21093 | AFMINSTALL=afminstall |
21d1c967 GD |
21094 | TOOLKIT=MGL |
21095 | GUIDIST=MGL_DIST | |
21096 | fi | |
dad6c0ea | 21097 | |
21d1c967 | 21098 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
21099 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
21100 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 21101 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
21102 | echo "$as_me:$LINENO: result: not found" >&5 |
21103 | echo "${ECHO_T}not found" >&6 | |
21104 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
21105 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
21106 | { (exit 1); exit 1; }; } | |
21d1c967 | 21107 | else |
e6cc62c6 VS |
21108 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
21109 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 21110 | fi |
f6bcfd97 | 21111 | |
21d1c967 | 21112 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
21113 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
21114 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 21115 | else |
e6cc62c6 VS |
21116 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
21117 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
21118 | { (exit 1); exit 1; }; } | |
90dd450c | 21119 | fi |
0b2effe9 | 21120 | |
21d1c967 GD |
21121 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
21122 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
21123 | ||
1d1b75ac VZ |
21124 | wxUSE_UNIVERSAL="yes" |
21125 | ||
21d1c967 GD |
21126 | AFMINSTALL=afminstall |
21127 | TOOLKIT=MICROWIN | |
21128 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
21129 | |
21130 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 21131 | fi |
f6bcfd97 | 21132 | |
21d1c967 | 21133 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
21134 | echo "$as_me:$LINENO: checking for X" >&5 |
21135 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
21136 | ||
d8356fa3 | 21137 | |
21d1c967 GD |
21138 | # Check whether --with-x or --without-x was given. |
21139 | if test "${with_x+set}" = set; then | |
21140 | withval="$with_x" | |
2224580a | 21141 | |
e6cc62c6 | 21142 | fi; |
21d1c967 GD |
21143 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
21144 | if test "x$with_x" = xno; then | |
21145 | # The user explicitly disabled X. | |
21146 | have_x=disabled | |
21147 | else | |
21148 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
21149 | # Both variables are already set. | |
21150 | have_x=yes | |
21151 | else | |
e6cc62c6 VS |
21152 | if test "${ac_cv_have_x+set}" = set; then |
21153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
21154 | else |
21155 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
21156 | ac_x_includes=no ac_x_libraries=no |
21157 | rm -fr conftest.dir | |
21158 | if mkdir conftest.dir; then | |
21159 | cd conftest.dir | |
21d1c967 | 21160 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 21161 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
21162 | acfindx: |
21163 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 21164 | _ACEOF |
21d1c967 GD |
21165 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
21166 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
21167 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
21168 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
21169 | for ac_extension in a so sl; do | |
21170 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
e6cc62c6 | 21171 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21d1c967 GD |
21172 | ac_im_usrlibdir=$ac_im_libdir; break |
21173 | fi | |
21174 | done | |
21175 | # Screen out bogus values from the imake configuration. They are | |
21176 | # bogus both because they are the default anyway, and because | |
21177 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 21178 | case $ac_im_incroot in |
21d1c967 | 21179 | /usr/include) ;; |
e6cc62c6 | 21180 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 21181 | esac |
e6cc62c6 | 21182 | case $ac_im_usrlibdir in |
21d1c967 | 21183 | /usr/lib | /lib) ;; |
e6cc62c6 | 21184 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
21185 | esac |
21186 | fi | |
21187 | cd .. | |
e6cc62c6 | 21188 | rm -fr conftest.dir |
21d1c967 | 21189 | fi |
10f2d63a | 21190 | |
e6cc62c6 VS |
21191 | # Standard set of common directories for X headers. |
21192 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
21193 | ac_x_header_dirs=' | |
21194 | /usr/X11/include | |
21195 | /usr/X11R6/include | |
21196 | /usr/X11R5/include | |
21197 | /usr/X11R4/include | |
21198 | ||
21199 | /usr/include/X11 | |
21200 | /usr/include/X11R6 | |
21201 | /usr/include/X11R5 | |
21202 | /usr/include/X11R4 | |
21203 | ||
21204 | /usr/local/X11/include | |
21205 | /usr/local/X11R6/include | |
21206 | /usr/local/X11R5/include | |
21207 | /usr/local/X11R4/include | |
21208 | ||
21209 | /usr/local/include/X11 | |
21210 | /usr/local/include/X11R6 | |
21211 | /usr/local/include/X11R5 | |
21212 | /usr/local/include/X11R4 | |
21213 | ||
21214 | /usr/X386/include | |
21215 | /usr/x386/include | |
21216 | /usr/XFree86/include/X11 | |
21217 | ||
21218 | /usr/include | |
21219 | /usr/local/include | |
21220 | /usr/unsupported/include | |
21221 | /usr/athena/include | |
21222 | /usr/local/x11r5/include | |
21223 | /usr/lpp/Xamples/include | |
21224 | ||
21225 | /usr/openwin/include | |
21226 | /usr/openwin/share/include' | |
21227 | ||
21228 | if test "$ac_x_includes" = no; then | |
21229 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 21230 | # First, try using that file with no special directory specified. |
e6cc62c6 VS |
21231 | cat >conftest.$ac_ext <<_ACEOF |
21232 | #line $LINENO "configure" | |
21233 | /* confdefs.h. */ | |
21234 | _ACEOF | |
21235 | cat confdefs.h >>conftest.$ac_ext | |
21236 | cat >>conftest.$ac_ext <<_ACEOF | |
21237 | /* end confdefs.h. */ | |
21238 | #include <X11/Intrinsic.h> | |
21239 | _ACEOF | |
21240 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21241 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21242 | ac_status=$? | |
21243 | grep -v '^ *+' conftest.er1 >conftest.err | |
21244 | rm -f conftest.er1 | |
21245 | cat conftest.err >&5 | |
21246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21247 | (exit $ac_status); } >/dev/null; then | |
21248 | if test -s conftest.err; then | |
21249 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21250 | else | |
21251 | ac_cpp_err= | |
21252 | fi | |
21253 | else | |
21254 | ac_cpp_err=yes | |
21255 | fi | |
21256 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
21257 | # We can compile using X headers with no special include directory. |
21258 | ac_x_includes= | |
90dd450c | 21259 | else |
e6cc62c6 VS |
21260 | echo "$as_me: failed program was:" >&5 |
21261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21262 | ||
21263 | for ac_dir in $ac_x_header_dirs; do | |
21264 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
21265 | ac_x_includes=$ac_dir | |
21266 | break | |
21267 | fi | |
21268 | done | |
3a922bb4 | 21269 | fi |
e6cc62c6 VS |
21270 | rm -f conftest.err conftest.$ac_ext |
21271 | fi # $ac_x_includes = no | |
10f2d63a | 21272 | |
e6cc62c6 | 21273 | if test "$ac_x_libraries" = no; then |
21d1c967 | 21274 | # Check for the libraries. |
21d1c967 GD |
21275 | # See if we find them without any special options. |
21276 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
21277 | ac_save_LIBS=$LIBS |
21278 | LIBS="-lXt $LIBS" | |
21279 | cat >conftest.$ac_ext <<_ACEOF | |
21280 | #line $LINENO "configure" | |
21281 | /* confdefs.h. */ | |
21282 | _ACEOF | |
21283 | cat confdefs.h >>conftest.$ac_ext | |
21284 | cat >>conftest.$ac_ext <<_ACEOF | |
21285 | /* end confdefs.h. */ | |
21286 | #include <X11/Intrinsic.h> | |
21287 | int | |
21288 | main () | |
21289 | { | |
21290 | XtMalloc (0) | |
21291 | ; | |
21292 | return 0; | |
21293 | } | |
21294 | _ACEOF | |
21295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21297 | (eval $ac_link) 2>&5 | |
21298 | ac_status=$? | |
21299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21300 | (exit $ac_status); } && | |
21301 | { ac_try='test -s conftest$ac_exeext' | |
21302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21303 | (eval $ac_try) 2>&5 | |
21304 | ac_status=$? | |
21305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21306 | (exit $ac_status); }; }; then | |
21307 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
21308 | # We can link X programs with no special library path. |
21309 | ac_x_libraries= | |
3a922bb4 | 21310 | else |
e6cc62c6 VS |
21311 | echo "$as_me: failed program was:" >&5 |
21312 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21313 | ||
21314 | LIBS=$ac_save_LIBS | |
21315 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 21316 | do |
e6cc62c6 | 21317 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 21318 | for ac_extension in a so sl; do |
e6cc62c6 | 21319 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
21320 | ac_x_libraries=$ac_dir |
21321 | break 2 | |
21322 | fi | |
21323 | done | |
21324 | done | |
3a922bb4 | 21325 | fi |
e6cc62c6 VS |
21326 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21327 | fi # $ac_x_libraries = no | |
90dd450c | 21328 | |
e6cc62c6 | 21329 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
21330 | # Didn't find X anywhere. Cache the known absence of X. |
21331 | ac_cv_have_x="have_x=no" | |
21332 | else | |
21333 | # Record where we found X for the cache. | |
21334 | ac_cv_have_x="have_x=yes \ | |
21335 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" | |
90dd450c | 21336 | fi |
21d1c967 | 21337 | fi |
e6cc62c6 | 21338 | |
21d1c967 GD |
21339 | fi |
21340 | eval "$ac_cv_have_x" | |
21341 | fi # $with_x != no | |
90dd450c | 21342 | |
21d1c967 | 21343 | if test "$have_x" != yes; then |
e6cc62c6 VS |
21344 | echo "$as_me:$LINENO: result: $have_x" >&5 |
21345 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
21346 | no_x=yes |
21347 | else | |
21348 | # If each of the values was on the command line, it overrides each guess. | |
21349 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
21350 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
21351 | # Update the cache value to reflect the command line values. | |
21352 | ac_cv_have_x="have_x=yes \ | |
21353 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
21354 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
21355 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 21356 | fi |
90dd450c | 21357 | |
21d1c967 | 21358 | if test "$no_x" = yes; then |
90dd450c | 21359 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
21360 | |
21361 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 21362 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 21363 | _ACEOF |
90dd450c VZ |
21364 | |
21365 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
21366 | else | |
21367 | if test -n "$x_includes"; then | |
21368 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 21369 | fi |
3a922bb4 | 21370 | |
90dd450c VZ |
21371 | # It would also be nice to do this for all -L options, not just this one. |
21372 | if test -n "$x_libraries"; then | |
21373 | X_LIBS="$X_LIBS -L$x_libraries" | |
21374 | # For Solaris; some versions of Sun CC require a space after -R and | |
21375 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 21376 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 21377 | "SunOS 5"*) |
e6cc62c6 VS |
21378 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
21379 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
21380 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
21381 | cat >conftest.$ac_ext <<_ACEOF | |
21382 | #line $LINENO "configure" | |
21383 | /* confdefs.h. */ | |
21384 | _ACEOF | |
21385 | cat confdefs.h >>conftest.$ac_ext | |
21386 | cat >>conftest.$ac_ext <<_ACEOF | |
21387 | /* end confdefs.h. */ | |
21388 | ||
21389 | int | |
21390 | main () | |
21391 | { | |
90dd450c | 21392 | |
e6cc62c6 VS |
21393 | ; |
21394 | return 0; | |
21395 | } | |
21396 | _ACEOF | |
21397 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21399 | (eval $ac_link) 2>&5 | |
21400 | ac_status=$? | |
21401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21402 | (exit $ac_status); } && | |
21403 | { ac_try='test -s conftest$ac_exeext' | |
21404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21405 | (eval $ac_try) 2>&5 | |
21406 | ac_status=$? | |
21407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21408 | (exit $ac_status); }; }; then | |
90dd450c | 21409 | ac_R_nospace=yes |
3a922bb4 | 21410 | else |
e6cc62c6 VS |
21411 | echo "$as_me: failed program was:" >&5 |
21412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21413 | ||
21414 | ac_R_nospace=no | |
3a922bb4 | 21415 | fi |
e6cc62c6 | 21416 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21417 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
21418 | echo "$as_me:$LINENO: result: no" >&5 |
21419 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
21420 | X_LIBS="$X_LIBS -R$x_libraries" |
21421 | else | |
21422 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
21423 | cat >conftest.$ac_ext <<_ACEOF |
21424 | #line $LINENO "configure" | |
21425 | /* confdefs.h. */ | |
21426 | _ACEOF | |
21427 | cat confdefs.h >>conftest.$ac_ext | |
21428 | cat >>conftest.$ac_ext <<_ACEOF | |
21429 | /* end confdefs.h. */ | |
21430 | ||
21431 | int | |
21432 | main () | |
21433 | { | |
6f754473 | 21434 | |
e6cc62c6 VS |
21435 | ; |
21436 | return 0; | |
21437 | } | |
21438 | _ACEOF | |
21439 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21440 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21441 | (eval $ac_link) 2>&5 | |
21442 | ac_status=$? | |
21443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21444 | (exit $ac_status); } && | |
21445 | { ac_try='test -s conftest$ac_exeext' | |
21446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21447 | (eval $ac_try) 2>&5 | |
21448 | ac_status=$? | |
21449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21450 | (exit $ac_status); }; }; then | |
90dd450c VZ |
21451 | ac_R_space=yes |
21452 | else | |
e6cc62c6 VS |
21453 | echo "$as_me: failed program was:" >&5 |
21454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21455 | ||
21456 | ac_R_space=no | |
90dd450c | 21457 | fi |
e6cc62c6 | 21458 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21459 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
21460 | echo "$as_me:$LINENO: result: yes" >&5 |
21461 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
21462 | X_LIBS="$X_LIBS -R $x_libraries" |
21463 | else | |
e6cc62c6 VS |
21464 | echo "$as_me:$LINENO: result: neither works" >&5 |
21465 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
21466 | fi |
21467 | fi | |
e6cc62c6 | 21468 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
21469 | esac |
21470 | fi | |
21471 | ||
21472 | # Check for system-dependent libraries X programs must link with. | |
21473 | # Do this before checking for the system-independent R6 libraries | |
21474 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 21475 | |
90dd450c VZ |
21476 | if test "$ISC" = yes; then |
21477 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
21478 | else | |
e6cc62c6 VS |
21479 | # Martyn Johnson says this is needed for Ultrix, if the X |
21480 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 21481 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
21482 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
21483 | cat >conftest.$ac_ext <<_ACEOF | |
21484 | #line $LINENO "configure" | |
21485 | /* confdefs.h. */ | |
21486 | _ACEOF | |
21487 | cat confdefs.h >>conftest.$ac_ext | |
21488 | cat >>conftest.$ac_ext <<_ACEOF | |
21489 | /* end confdefs.h. */ | |
21490 | ||
247f5006 | 21491 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21492 | #ifdef __cplusplus |
21493 | extern "C" | |
21494 | #endif | |
247f5006 | 21495 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21496 | builtin and then its argument prototype would still apply. */ |
21497 | char XOpenDisplay (); | |
21498 | int | |
21499 | main () | |
21500 | { | |
21501 | XOpenDisplay (); | |
21502 | ; | |
21503 | return 0; | |
21504 | } | |
21505 | _ACEOF | |
21506 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21507 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21508 | (eval $ac_link) 2>&5 | |
21509 | ac_status=$? | |
21510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21511 | (exit $ac_status); } && | |
21512 | { ac_try='test -s conftest$ac_exeext' | |
21513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21514 | (eval $ac_try) 2>&5 | |
21515 | ac_status=$? | |
21516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21517 | (exit $ac_status); }; }; then | |
21518 | : | |
21519 | else | |
21520 | echo "$as_me: failed program was:" >&5 | |
21521 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 21522 | |
e6cc62c6 VS |
21523 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
21524 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
21525 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
21526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21527 | else |
e6cc62c6 VS |
21528 | ac_check_lib_save_LIBS=$LIBS |
21529 | LIBS="-ldnet $LIBS" | |
21530 | cat >conftest.$ac_ext <<_ACEOF | |
21531 | #line $LINENO "configure" | |
21532 | /* confdefs.h. */ | |
21533 | _ACEOF | |
21534 | cat confdefs.h >>conftest.$ac_ext | |
21535 | cat >>conftest.$ac_ext <<_ACEOF | |
21536 | /* end confdefs.h. */ | |
a0b9e27f | 21537 | |
e6cc62c6 VS |
21538 | /* Override any gcc2 internal prototype to avoid an error. */ |
21539 | #ifdef __cplusplus | |
21540 | extern "C" | |
21541 | #endif | |
21542 | /* We use char because int might match the return type of a gcc2 | |
21543 | builtin and then its argument prototype would still apply. */ | |
21544 | char dnet_ntoa (); | |
21545 | int | |
21546 | main () | |
21547 | { | |
21548 | dnet_ntoa (); | |
21549 | ; | |
21550 | return 0; | |
21551 | } | |
21552 | _ACEOF | |
21553 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21555 | (eval $ac_link) 2>&5 | |
21556 | ac_status=$? | |
21557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21558 | (exit $ac_status); } && | |
21559 | { ac_try='test -s conftest$ac_exeext' | |
21560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21561 | (eval $ac_try) 2>&5 | |
21562 | ac_status=$? | |
21563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21564 | (exit $ac_status); }; }; then | |
21565 | ac_cv_lib_dnet_dnet_ntoa=yes | |
21566 | else | |
21567 | echo "$as_me: failed program was:" >&5 | |
21568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21569 | ||
21570 | ac_cv_lib_dnet_dnet_ntoa=no | |
21571 | fi | |
21572 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21573 | LIBS=$ac_check_lib_save_LIBS | |
21574 | fi | |
21575 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
21576 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
21577 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 21578 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
21579 | fi |
21580 | ||
90dd450c | 21581 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
21582 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
21583 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
21584 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
21585 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21586 | else |
e6cc62c6 | 21587 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21588 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
21589 | cat >conftest.$ac_ext <<_ACEOF |
21590 | #line $LINENO "configure" | |
21591 | /* confdefs.h. */ | |
21592 | _ACEOF | |
21593 | cat confdefs.h >>conftest.$ac_ext | |
21594 | cat >>conftest.$ac_ext <<_ACEOF | |
21595 | /* end confdefs.h. */ | |
21596 | ||
90dd450c | 21597 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21598 | #ifdef __cplusplus |
21599 | extern "C" | |
21600 | #endif | |
90dd450c | 21601 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21602 | builtin and then its argument prototype would still apply. */ |
21603 | char dnet_ntoa (); | |
21604 | int | |
21605 | main () | |
21606 | { | |
21607 | dnet_ntoa (); | |
21608 | ; | |
21609 | return 0; | |
21610 | } | |
21611 | _ACEOF | |
21612 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21614 | (eval $ac_link) 2>&5 | |
21615 | ac_status=$? | |
21616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21617 | (exit $ac_status); } && | |
21618 | { ac_try='test -s conftest$ac_exeext' | |
21619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21620 | (eval $ac_try) 2>&5 | |
21621 | ac_status=$? | |
21622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21623 | (exit $ac_status); }; }; then | |
21624 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
21625 | else | |
21626 | echo "$as_me: failed program was:" >&5 | |
21627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21628 | ||
21629 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
21630 | fi | |
21631 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21632 | LIBS=$ac_check_lib_save_LIBS | |
21633 | fi | |
21634 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
21635 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
21636 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 21637 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
21638 | fi |
21639 | ||
90dd450c | 21640 | fi |
e6cc62c6 VS |
21641 | fi |
21642 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21643 | LIBS="$ac_xsave_LIBS" | |
978f1259 | 21644 | |
90dd450c VZ |
21645 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
21646 | # to get the SysV transport functions. | |
e6cc62c6 | 21647 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
21648 | # needs -lnsl. |
21649 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
21650 | # on Irix 5.2, according to T.E. Dickey. |
21651 | # The functions gethostbyname, getservbyname, and inet_addr are | |
21652 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
21653 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
21654 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
21655 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
21656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21657 | else | |
21658 | cat >conftest.$ac_ext <<_ACEOF | |
21659 | #line $LINENO "configure" | |
21660 | /* confdefs.h. */ | |
21661 | _ACEOF | |
21662 | cat confdefs.h >>conftest.$ac_ext | |
21663 | cat >>conftest.$ac_ext <<_ACEOF | |
21664 | /* end confdefs.h. */ | |
90dd450c | 21665 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21666 | which can conflict with char gethostbyname (); below. |
21667 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21668 | <limits.h> exists even on freestanding compilers. */ | |
21669 | #ifdef __STDC__ | |
21670 | # include <limits.h> | |
21671 | #else | |
21672 | # include <assert.h> | |
21673 | #endif | |
90dd450c | 21674 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21675 | #ifdef __cplusplus |
21676 | extern "C" | |
21677 | { | |
21678 | #endif | |
90dd450c | 21679 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21680 | builtin and then its argument prototype would still apply. */ |
21681 | char gethostbyname (); | |
90dd450c VZ |
21682 | /* The GNU C library defines this for functions which it implements |
21683 | to always fail with ENOSYS. Some functions are actually named | |
21684 | something starting with __ and the normal name is an alias. */ | |
21685 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
21686 | choke me | |
21687 | #else | |
e6cc62c6 VS |
21688 | char (*f) () = gethostbyname; |
21689 | #endif | |
21690 | #ifdef __cplusplus | |
21691 | } | |
90dd450c | 21692 | #endif |
978f1259 | 21693 | |
e6cc62c6 VS |
21694 | int |
21695 | main () | |
21696 | { | |
21697 | return f != gethostbyname; | |
21698 | ; | |
21699 | return 0; | |
21700 | } | |
21701 | _ACEOF | |
21702 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21703 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21704 | (eval $ac_link) 2>&5 | |
21705 | ac_status=$? | |
21706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21707 | (exit $ac_status); } && | |
21708 | { ac_try='test -s conftest$ac_exeext' | |
21709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21710 | (eval $ac_try) 2>&5 | |
21711 | ac_status=$? | |
21712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21713 | (exit $ac_status); }; }; then | |
21714 | ac_cv_func_gethostbyname=yes | |
21715 | else | |
21716 | echo "$as_me: failed program was:" >&5 | |
21717 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21718 | ||
21719 | ac_cv_func_gethostbyname=no | |
21720 | fi | |
21721 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21722 | fi | |
21723 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
21724 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 21725 | |
90dd450c | 21726 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
21727 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
21728 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
21729 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
21730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21731 | else |
e6cc62c6 | 21732 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21733 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
21734 | cat >conftest.$ac_ext <<_ACEOF |
21735 | #line $LINENO "configure" | |
21736 | /* confdefs.h. */ | |
21737 | _ACEOF | |
21738 | cat confdefs.h >>conftest.$ac_ext | |
21739 | cat >>conftest.$ac_ext <<_ACEOF | |
21740 | /* end confdefs.h. */ | |
21741 | ||
90dd450c | 21742 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21743 | #ifdef __cplusplus |
21744 | extern "C" | |
21745 | #endif | |
90dd450c | 21746 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21747 | builtin and then its argument prototype would still apply. */ |
21748 | char gethostbyname (); | |
21749 | int | |
21750 | main () | |
21751 | { | |
21752 | gethostbyname (); | |
21753 | ; | |
21754 | return 0; | |
21755 | } | |
21756 | _ACEOF | |
21757 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21758 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21759 | (eval $ac_link) 2>&5 | |
21760 | ac_status=$? | |
21761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21762 | (exit $ac_status); } && | |
21763 | { ac_try='test -s conftest$ac_exeext' | |
21764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21765 | (eval $ac_try) 2>&5 | |
21766 | ac_status=$? | |
21767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21768 | (exit $ac_status); }; }; then | |
21769 | ac_cv_lib_nsl_gethostbyname=yes | |
21770 | else | |
21771 | echo "$as_me: failed program was:" >&5 | |
21772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21773 | ||
21774 | ac_cv_lib_nsl_gethostbyname=no | |
21775 | fi | |
21776 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21777 | LIBS=$ac_check_lib_save_LIBS | |
21778 | fi | |
21779 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
21780 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
21781 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
21782 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 21783 | fi |
247f5006 | 21784 | |
e6cc62c6 VS |
21785 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
21786 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
21787 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
21788 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
21789 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21790 | else |
e6cc62c6 VS |
21791 | ac_check_lib_save_LIBS=$LIBS |
21792 | LIBS="-lbsd $LIBS" | |
21793 | cat >conftest.$ac_ext <<_ACEOF | |
21794 | #line $LINENO "configure" | |
21795 | /* confdefs.h. */ | |
21796 | _ACEOF | |
21797 | cat confdefs.h >>conftest.$ac_ext | |
21798 | cat >>conftest.$ac_ext <<_ACEOF | |
21799 | /* end confdefs.h. */ | |
21800 | ||
21801 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21802 | #ifdef __cplusplus | |
21803 | extern "C" | |
21804 | #endif | |
21805 | /* We use char because int might match the return type of a gcc2 | |
21806 | builtin and then its argument prototype would still apply. */ | |
21807 | char gethostbyname (); | |
21808 | int | |
21809 | main () | |
21810 | { | |
21811 | gethostbyname (); | |
21812 | ; | |
21813 | return 0; | |
21814 | } | |
21815 | _ACEOF | |
21816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21817 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21818 | (eval $ac_link) 2>&5 | |
21819 | ac_status=$? | |
21820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21821 | (exit $ac_status); } && | |
21822 | { ac_try='test -s conftest$ac_exeext' | |
21823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21824 | (eval $ac_try) 2>&5 | |
21825 | ac_status=$? | |
21826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21827 | (exit $ac_status); }; }; then | |
21828 | ac_cv_lib_bsd_gethostbyname=yes | |
21829 | else | |
21830 | echo "$as_me: failed program was:" >&5 | |
21831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21832 | ||
21833 | ac_cv_lib_bsd_gethostbyname=no | |
21834 | fi | |
21835 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21836 | LIBS=$ac_check_lib_save_LIBS | |
21837 | fi | |
21838 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
21839 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
21840 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
21841 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 21842 | fi |
b12915c1 | 21843 | |
e6cc62c6 | 21844 | fi |
90dd450c VZ |
21845 | fi |
21846 | ||
21847 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
21848 | # socket/setsockopt and other routines are undefined under SCO ODT | |
21849 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
21850 | # on later versions), says Simon Leinen: it contains gethostby* |
21851 | # variants that don't use the name server (or something). -lsocket | |
21852 | # must be given before -lnsl if both are needed. We assume that | |
21853 | # if connect needs -lnsl, so does gethostbyname. | |
21854 | echo "$as_me:$LINENO: checking for connect" >&5 | |
21855 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
21856 | if test "${ac_cv_func_connect+set}" = set; then | |
21857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21858 | else | |
21859 | cat >conftest.$ac_ext <<_ACEOF | |
21860 | #line $LINENO "configure" | |
21861 | /* confdefs.h. */ | |
21862 | _ACEOF | |
21863 | cat confdefs.h >>conftest.$ac_ext | |
21864 | cat >>conftest.$ac_ext <<_ACEOF | |
21865 | /* end confdefs.h. */ | |
90dd450c | 21866 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21867 | which can conflict with char connect (); below. |
21868 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21869 | <limits.h> exists even on freestanding compilers. */ | |
21870 | #ifdef __STDC__ | |
21871 | # include <limits.h> | |
21872 | #else | |
21873 | # include <assert.h> | |
21874 | #endif | |
90dd450c | 21875 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21876 | #ifdef __cplusplus |
21877 | extern "C" | |
21878 | { | |
21879 | #endif | |
90dd450c | 21880 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21881 | builtin and then its argument prototype would still apply. */ |
21882 | char connect (); | |
90dd450c VZ |
21883 | /* The GNU C library defines this for functions which it implements |
21884 | to always fail with ENOSYS. Some functions are actually named | |
21885 | something starting with __ and the normal name is an alias. */ | |
21886 | #if defined (__stub_connect) || defined (__stub___connect) | |
21887 | choke me | |
21888 | #else | |
e6cc62c6 VS |
21889 | char (*f) () = connect; |
21890 | #endif | |
21891 | #ifdef __cplusplus | |
21892 | } | |
90dd450c VZ |
21893 | #endif |
21894 | ||
e6cc62c6 VS |
21895 | int |
21896 | main () | |
21897 | { | |
21898 | return f != connect; | |
21899 | ; | |
21900 | return 0; | |
21901 | } | |
21902 | _ACEOF | |
21903 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21904 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21905 | (eval $ac_link) 2>&5 | |
21906 | ac_status=$? | |
21907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21908 | (exit $ac_status); } && | |
21909 | { ac_try='test -s conftest$ac_exeext' | |
21910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21911 | (eval $ac_try) 2>&5 | |
21912 | ac_status=$? | |
21913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21914 | (exit $ac_status); }; }; then | |
21915 | ac_cv_func_connect=yes | |
21916 | else | |
21917 | echo "$as_me: failed program was:" >&5 | |
21918 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21919 | ||
21920 | ac_cv_func_connect=no | |
21921 | fi | |
21922 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21923 | fi | |
21924 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
21925 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 21926 | |
90dd450c | 21927 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
21928 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
21929 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
21930 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
21931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21932 | else |
e6cc62c6 | 21933 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21934 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
21935 | cat >conftest.$ac_ext <<_ACEOF |
21936 | #line $LINENO "configure" | |
21937 | /* confdefs.h. */ | |
21938 | _ACEOF | |
21939 | cat confdefs.h >>conftest.$ac_ext | |
21940 | cat >>conftest.$ac_ext <<_ACEOF | |
21941 | /* end confdefs.h. */ | |
21942 | ||
90dd450c | 21943 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21944 | #ifdef __cplusplus |
21945 | extern "C" | |
21946 | #endif | |
90dd450c | 21947 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21948 | builtin and then its argument prototype would still apply. */ |
21949 | char connect (); | |
21950 | int | |
21951 | main () | |
21952 | { | |
21953 | connect (); | |
21954 | ; | |
21955 | return 0; | |
21956 | } | |
21957 | _ACEOF | |
21958 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21959 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21960 | (eval $ac_link) 2>&5 | |
21961 | ac_status=$? | |
21962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21963 | (exit $ac_status); } && | |
21964 | { ac_try='test -s conftest$ac_exeext' | |
21965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21966 | (eval $ac_try) 2>&5 | |
21967 | ac_status=$? | |
21968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21969 | (exit $ac_status); }; }; then | |
21970 | ac_cv_lib_socket_connect=yes | |
21971 | else | |
21972 | echo "$as_me: failed program was:" >&5 | |
21973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21974 | ||
21975 | ac_cv_lib_socket_connect=no | |
21976 | fi | |
21977 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
21978 | LIBS=$ac_check_lib_save_LIBS | |
21979 | fi | |
21980 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
21981 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
21982 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 21983 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 21984 | fi |
77e13408 | 21985 | |
90dd450c | 21986 | fi |
25d0687a | 21987 | |
e6cc62c6 VS |
21988 | # Guillermo Gomez says -lposix is necessary on A/UX. |
21989 | echo "$as_me:$LINENO: checking for remove" >&5 | |
21990 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
21991 | if test "${ac_cv_func_remove+set}" = set; then | |
21992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21993 | else | |
21994 | cat >conftest.$ac_ext <<_ACEOF | |
21995 | #line $LINENO "configure" | |
21996 | /* confdefs.h. */ | |
21997 | _ACEOF | |
21998 | cat confdefs.h >>conftest.$ac_ext | |
21999 | cat >>conftest.$ac_ext <<_ACEOF | |
22000 | /* end confdefs.h. */ | |
90dd450c | 22001 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22002 | which can conflict with char remove (); below. |
22003 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22004 | <limits.h> exists even on freestanding compilers. */ | |
22005 | #ifdef __STDC__ | |
22006 | # include <limits.h> | |
22007 | #else | |
22008 | # include <assert.h> | |
22009 | #endif | |
90dd450c | 22010 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22011 | #ifdef __cplusplus |
22012 | extern "C" | |
22013 | { | |
22014 | #endif | |
90dd450c | 22015 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22016 | builtin and then its argument prototype would still apply. */ |
22017 | char remove (); | |
90dd450c VZ |
22018 | /* The GNU C library defines this for functions which it implements |
22019 | to always fail with ENOSYS. Some functions are actually named | |
22020 | something starting with __ and the normal name is an alias. */ | |
22021 | #if defined (__stub_remove) || defined (__stub___remove) | |
22022 | choke me | |
22023 | #else | |
e6cc62c6 VS |
22024 | char (*f) () = remove; |
22025 | #endif | |
22026 | #ifdef __cplusplus | |
22027 | } | |
90dd450c | 22028 | #endif |
55e80573 | 22029 | |
e6cc62c6 VS |
22030 | int |
22031 | main () | |
22032 | { | |
22033 | return f != remove; | |
22034 | ; | |
22035 | return 0; | |
22036 | } | |
22037 | _ACEOF | |
22038 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22039 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22040 | (eval $ac_link) 2>&5 | |
22041 | ac_status=$? | |
22042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22043 | (exit $ac_status); } && | |
22044 | { ac_try='test -s conftest$ac_exeext' | |
22045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22046 | (eval $ac_try) 2>&5 | |
22047 | ac_status=$? | |
22048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22049 | (exit $ac_status); }; }; then | |
22050 | ac_cv_func_remove=yes | |
22051 | else | |
22052 | echo "$as_me: failed program was:" >&5 | |
22053 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22054 | ||
22055 | ac_cv_func_remove=no | |
22056 | fi | |
22057 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22058 | fi | |
22059 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
22060 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 22061 | |
90dd450c | 22062 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
22063 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
22064 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
22065 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
22066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22067 | else |
e6cc62c6 | 22068 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22069 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
22070 | cat >conftest.$ac_ext <<_ACEOF |
22071 | #line $LINENO "configure" | |
22072 | /* confdefs.h. */ | |
22073 | _ACEOF | |
22074 | cat confdefs.h >>conftest.$ac_ext | |
22075 | cat >>conftest.$ac_ext <<_ACEOF | |
22076 | /* end confdefs.h. */ | |
22077 | ||
90dd450c | 22078 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22079 | #ifdef __cplusplus |
22080 | extern "C" | |
22081 | #endif | |
90dd450c | 22082 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22083 | builtin and then its argument prototype would still apply. */ |
22084 | char remove (); | |
22085 | int | |
22086 | main () | |
22087 | { | |
22088 | remove (); | |
22089 | ; | |
22090 | return 0; | |
22091 | } | |
22092 | _ACEOF | |
22093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22095 | (eval $ac_link) 2>&5 | |
22096 | ac_status=$? | |
22097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22098 | (exit $ac_status); } && | |
22099 | { ac_try='test -s conftest$ac_exeext' | |
22100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22101 | (eval $ac_try) 2>&5 | |
22102 | ac_status=$? | |
22103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22104 | (exit $ac_status); }; }; then | |
22105 | ac_cv_lib_posix_remove=yes | |
22106 | else | |
22107 | echo "$as_me: failed program was:" >&5 | |
22108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22109 | ||
22110 | ac_cv_lib_posix_remove=no | |
22111 | fi | |
22112 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22113 | LIBS=$ac_check_lib_save_LIBS | |
22114 | fi | |
22115 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
22116 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
22117 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 22118 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 22119 | fi |
f6bcfd97 | 22120 | |
6fa882bd RR |
22121 | fi |
22122 | ||
90dd450c | 22123 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
22124 | echo "$as_me:$LINENO: checking for shmat" >&5 |
22125 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
22126 | if test "${ac_cv_func_shmat+set}" = set; then | |
22127 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22128 | else | |
22129 | cat >conftest.$ac_ext <<_ACEOF | |
22130 | #line $LINENO "configure" | |
22131 | /* confdefs.h. */ | |
22132 | _ACEOF | |
22133 | cat confdefs.h >>conftest.$ac_ext | |
22134 | cat >>conftest.$ac_ext <<_ACEOF | |
22135 | /* end confdefs.h. */ | |
90dd450c | 22136 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22137 | which can conflict with char shmat (); below. |
22138 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22139 | <limits.h> exists even on freestanding compilers. */ | |
22140 | #ifdef __STDC__ | |
22141 | # include <limits.h> | |
22142 | #else | |
22143 | # include <assert.h> | |
22144 | #endif | |
90dd450c | 22145 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22146 | #ifdef __cplusplus |
22147 | extern "C" | |
22148 | { | |
22149 | #endif | |
90dd450c | 22150 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22151 | builtin and then its argument prototype would still apply. */ |
22152 | char shmat (); | |
90dd450c VZ |
22153 | /* The GNU C library defines this for functions which it implements |
22154 | to always fail with ENOSYS. Some functions are actually named | |
22155 | something starting with __ and the normal name is an alias. */ | |
22156 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
22157 | choke me | |
22158 | #else | |
e6cc62c6 VS |
22159 | char (*f) () = shmat; |
22160 | #endif | |
22161 | #ifdef __cplusplus | |
22162 | } | |
90dd450c | 22163 | #endif |
10f2d63a | 22164 | |
e6cc62c6 VS |
22165 | int |
22166 | main () | |
22167 | { | |
22168 | return f != shmat; | |
22169 | ; | |
22170 | return 0; | |
22171 | } | |
22172 | _ACEOF | |
22173 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22175 | (eval $ac_link) 2>&5 | |
22176 | ac_status=$? | |
22177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22178 | (exit $ac_status); } && | |
22179 | { ac_try='test -s conftest$ac_exeext' | |
22180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22181 | (eval $ac_try) 2>&5 | |
22182 | ac_status=$? | |
22183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22184 | (exit $ac_status); }; }; then | |
22185 | ac_cv_func_shmat=yes | |
22186 | else | |
22187 | echo "$as_me: failed program was:" >&5 | |
22188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22189 | ||
22190 | ac_cv_func_shmat=no | |
22191 | fi | |
22192 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22193 | fi | |
22194 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
22195 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 22196 | |
90dd450c | 22197 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
22198 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
22199 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
22200 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
22201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 22202 | else |
e6cc62c6 | 22203 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22204 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
22205 | cat >conftest.$ac_ext <<_ACEOF |
22206 | #line $LINENO "configure" | |
22207 | /* confdefs.h. */ | |
22208 | _ACEOF | |
22209 | cat confdefs.h >>conftest.$ac_ext | |
22210 | cat >>conftest.$ac_ext <<_ACEOF | |
22211 | /* end confdefs.h. */ | |
22212 | ||
8284b0c5 | 22213 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22214 | #ifdef __cplusplus |
22215 | extern "C" | |
22216 | #endif | |
90dd450c | 22217 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22218 | builtin and then its argument prototype would still apply. */ |
22219 | char shmat (); | |
22220 | int | |
22221 | main () | |
22222 | { | |
22223 | shmat (); | |
22224 | ; | |
22225 | return 0; | |
22226 | } | |
22227 | _ACEOF | |
22228 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22230 | (eval $ac_link) 2>&5 | |
22231 | ac_status=$? | |
22232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22233 | (exit $ac_status); } && | |
22234 | { ac_try='test -s conftest$ac_exeext' | |
22235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22236 | (eval $ac_try) 2>&5 | |
22237 | ac_status=$? | |
22238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22239 | (exit $ac_status); }; }; then | |
22240 | ac_cv_lib_ipc_shmat=yes | |
22241 | else | |
22242 | echo "$as_me: failed program was:" >&5 | |
22243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22244 | ||
22245 | ac_cv_lib_ipc_shmat=no | |
22246 | fi | |
22247 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22248 | LIBS=$ac_check_lib_save_LIBS | |
22249 | fi | |
22250 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
22251 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
22252 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 22253 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
22254 | fi |
22255 | ||
d558c907 | 22256 | fi |
90dd450c | 22257 | fi |
3a922bb4 | 22258 | |
90dd450c | 22259 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 22260 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
22261 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
22262 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
22263 | # check for ICE first), but we must link in the order -lSM -lICE or | |
22264 | # we get undefined symbols. So assume we have SM if we have ICE. | |
22265 | # These have to be linked with before -lX11, unlike the other | |
22266 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
22267 | # John Interrante, Karl Berry |
22268 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
22269 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
22270 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
22271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22272 | else | |
22273 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 22274 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
22275 | cat >conftest.$ac_ext <<_ACEOF |
22276 | #line $LINENO "configure" | |
22277 | /* confdefs.h. */ | |
22278 | _ACEOF | |
22279 | cat confdefs.h >>conftest.$ac_ext | |
22280 | cat >>conftest.$ac_ext <<_ACEOF | |
22281 | /* end confdefs.h. */ | |
22282 | ||
90dd450c | 22283 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22284 | #ifdef __cplusplus |
22285 | extern "C" | |
22286 | #endif | |
90dd450c | 22287 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22288 | builtin and then its argument prototype would still apply. */ |
22289 | char IceConnectionNumber (); | |
22290 | int | |
22291 | main () | |
22292 | { | |
22293 | IceConnectionNumber (); | |
22294 | ; | |
22295 | return 0; | |
22296 | } | |
22297 | _ACEOF | |
22298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22300 | (eval $ac_link) 2>&5 | |
22301 | ac_status=$? | |
22302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22303 | (exit $ac_status); } && | |
22304 | { ac_try='test -s conftest$ac_exeext' | |
22305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22306 | (eval $ac_try) 2>&5 | |
22307 | ac_status=$? | |
22308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22309 | (exit $ac_status); }; }; then | |
22310 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
22311 | else | |
22312 | echo "$as_me: failed program was:" >&5 | |
22313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22314 | ||
22315 | ac_cv_lib_ICE_IceConnectionNumber=no | |
22316 | fi | |
22317 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22318 | LIBS=$ac_check_lib_save_LIBS | |
22319 | fi | |
22320 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
22321 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
22322 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 22323 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 22324 | fi |
10f2d63a | 22325 | |
e6cc62c6 | 22326 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
22327 | |
22328 | fi | |
22329 | ||
8284b0c5 | 22330 | |
90dd450c | 22331 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
22332 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
22333 | echo "$as_me: error: X11 not found" >&2;} | |
22334 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
22335 | fi |
22336 | ||
22337 | GUI_TK_LIBRARY="$X_LIBS" | |
22338 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
22339 | AFMINSTALL=afminstall | |
22340 | COMPILED_X_PROGRAM=0 | |
22341 | ||
21d1c967 | 22342 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
22343 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
22344 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 22345 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
22346 | echo "$as_me:$LINENO: result: not found" >&5 |
22347 | echo "${ECHO_T}not found" >&6 | |
22348 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
22349 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
22350 | { (exit 1); exit 1; }; } | |
90dd450c | 22351 | else |
e6cc62c6 VS |
22352 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
22353 | echo "${ECHO_T}$MICROWIN" >&6 | |
22354 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22355 | #define wxUSE_NANOX 1 |
e6cc62c6 | 22356 | _ACEOF |
21d1c967 | 22357 | |
90dd450c VZ |
22358 | fi |
22359 | fi | |
22360 | ||
22361 | xpm_link= | |
e6cc62c6 VS |
22362 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
22363 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
22364 | ||
90dd450c | 22365 | ac_find_libraries= |
2b5f62a0 | 22366 | for ac_dir in $SEARCH_LIB /usr/lib; |
90dd450c VZ |
22367 | do |
22368 | for ac_extension in a so sl dylib; do | |
22369 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
22370 | ac_find_libraries=$ac_dir | |
22371 | break 2 | |
22372 | fi | |
22373 | done | |
22374 | done | |
22375 | ||
22376 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 22377 | |
90dd450c VZ |
22378 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
22379 | result=$? | |
22380 | if test $result = 0; then | |
22381 | ac_path_to_link="" | |
22382 | else | |
22383 | ac_path_to_link=" -L$ac_find_libraries" | |
21d1c967 | 22384 | fi |
90dd450c | 22385 | |
21d1c967 GD |
22386 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
22387 | xpm_link=" -lXpm" | |
e6cc62c6 | 22388 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22389 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22390 | _ACEOF |
90dd450c | 22391 | |
e6cc62c6 VS |
22392 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
22393 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 22394 | else |
e6cc62c6 VS |
22395 | cat >conftest.$ac_ext <<_ACEOF |
22396 | #line $LINENO "configure" | |
22397 | /* confdefs.h. */ | |
22398 | _ACEOF | |
22399 | cat confdefs.h >>conftest.$ac_ext | |
22400 | cat >>conftest.$ac_ext <<_ACEOF | |
22401 | /* end confdefs.h. */ | |
90dd450c | 22402 | |
21d1c967 | 22403 | #include <X11/xpm.h> |
e6cc62c6 VS |
22404 | |
22405 | int | |
22406 | main () | |
22407 | { | |
6f72b082 | 22408 | |
21d1c967 GD |
22409 | int version; |
22410 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
22411 | |
22412 | ; | |
22413 | return 0; | |
22414 | } | |
22415 | _ACEOF | |
22416 | rm -f conftest.$ac_objext | |
22417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
22418 | (eval $ac_compile) 2>&5 | |
22419 | ac_status=$? | |
22420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22421 | (exit $ac_status); } && | |
22422 | { ac_try='test -s conftest.$ac_objext' | |
22423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22424 | (eval $ac_try) 2>&5 | |
22425 | ac_status=$? | |
22426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22427 | (exit $ac_status); }; }; then | |
22428 | ||
21d1c967 | 22429 | xpm_link=" -lXpm" |
e6cc62c6 | 22430 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 22431 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 22432 | _ACEOF |
90dd450c | 22433 | |
e6cc62c6 VS |
22434 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
22435 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 22436 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 22437 | |
21d1c967 | 22438 | else |
e6cc62c6 VS |
22439 | echo "$as_me: failed program was:" >&5 |
22440 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22441 | ||
22442 | ||
22443 | echo "$as_me:$LINENO: result: no" >&5 | |
22444 | echo "${ECHO_T}no" >&6 | |
22445 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
22446 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
22447 | ||
22448 | ||
6f72b082 | 22449 | fi |
e6cc62c6 | 22450 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 22451 | fi |
90dd450c | 22452 | |
e6cc62c6 VS |
22453 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
22454 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
22455 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
22456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f7f78039 | 22457 | else |
e6cc62c6 | 22458 | ac_check_lib_save_LIBS=$LIBS |
f7f78039 | 22459 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" |
e6cc62c6 VS |
22460 | cat >conftest.$ac_ext <<_ACEOF |
22461 | #line $LINENO "configure" | |
22462 | /* confdefs.h. */ | |
22463 | _ACEOF | |
22464 | cat confdefs.h >>conftest.$ac_ext | |
22465 | cat >>conftest.$ac_ext <<_ACEOF | |
22466 | /* end confdefs.h. */ | |
22467 | ||
f7f78039 | 22468 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22469 | #ifdef __cplusplus |
22470 | extern "C" | |
22471 | #endif | |
f7f78039 | 22472 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22473 | builtin and then its argument prototype would still apply. */ |
22474 | char XShapeQueryExtension (); | |
22475 | int | |
22476 | main () | |
22477 | { | |
22478 | XShapeQueryExtension (); | |
22479 | ; | |
22480 | return 0; | |
22481 | } | |
22482 | _ACEOF | |
22483 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22484 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22485 | (eval $ac_link) 2>&5 | |
22486 | ac_status=$? | |
22487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22488 | (exit $ac_status); } && | |
22489 | { ac_try='test -s conftest$ac_exeext' | |
22490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22491 | (eval $ac_try) 2>&5 | |
22492 | ac_status=$? | |
22493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22494 | (exit $ac_status); }; }; then | |
22495 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
22496 | else | |
22497 | echo "$as_me: failed program was:" >&5 | |
22498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22499 | ||
22500 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
22501 | fi | |
22502 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
22503 | LIBS=$ac_check_lib_save_LIBS | |
22504 | fi | |
22505 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
22506 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
22507 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
f7f78039 | 22508 | |
f7f78039 MB |
22509 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" |
22510 | wxHAVE_XEXT_LIB=1 | |
e6cc62c6 | 22511 | |
f7f78039 MB |
22512 | fi |
22513 | ||
22514 | ||
2b5f62a0 | 22515 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 22516 | |
2b5f62a0 | 22517 | succeeded=no |
90dd450c | 22518 | |
2b5f62a0 VZ |
22519 | if test -z "$PKG_CONFIG"; then |
22520 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22521 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22522 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22524 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22526 | else |
e6cc62c6 VS |
22527 | case $PKG_CONFIG in |
22528 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22529 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22530 | ;; | |
2b5f62a0 | 22531 | *) |
e6cc62c6 VS |
22532 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22533 | for as_dir in $PATH | |
22534 | do | |
22535 | IFS=$as_save_IFS | |
22536 | test -z "$as_dir" && as_dir=. | |
22537 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22538 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22539 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22540 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22541 | break 2 | |
22542 | fi | |
22543 | done | |
22544 | done | |
22545 | ||
2b5f62a0 VZ |
22546 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22547 | ;; | |
22548 | esac | |
22549 | fi | |
e6cc62c6 VS |
22550 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22551 | ||
2b5f62a0 | 22552 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22553 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22554 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22555 | else |
e6cc62c6 VS |
22556 | echo "$as_me:$LINENO: result: no" >&5 |
22557 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22558 | fi |
22559 | ||
22560 | fi | |
22561 | ||
22562 | if test "$PKG_CONFIG" = "no" ; then | |
22563 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22564 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22565 | echo "*** to the full path to pkg-config." | |
22566 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22567 | else | |
22568 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22569 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22570 | echo "$as_me:$LINENO: checking for pangox" >&5 |
22571 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22572 | |
22573 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
22574 | echo "$as_me:$LINENO: result: yes" >&5 |
22575 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22576 | succeeded=yes |
22577 | ||
e6cc62c6 VS |
22578 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
22579 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22580 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
22581 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
22582 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 22583 | |
e6cc62c6 VS |
22584 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
22585 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22586 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
22587 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
22588 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
22589 | else |
22590 | PANGOX_CFLAGS="" | |
22591 | PANGOX_LIBS="" | |
e6cc62c6 | 22592 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22593 | ## do set a variable so people can do so. |
22594 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 22595 | |
2b5f62a0 VZ |
22596 | fi |
22597 | ||
e6cc62c6 VS |
22598 | |
22599 | ||
2b5f62a0 VZ |
22600 | else |
22601 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22602 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22603 | fi | |
22604 | fi | |
22605 | ||
22606 | if test $succeeded = yes; then | |
e6cc62c6 | 22607 | |
2b5f62a0 | 22608 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 22609 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 22610 | |
2b5f62a0 | 22611 | else |
e6cc62c6 VS |
22612 | |
22613 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
22614 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
22615 | { (exit 1); exit 1; }; } | |
22616 | ||
22617 | ||
2b5f62a0 VZ |
22618 | fi |
22619 | ||
e6cc62c6 | 22620 | |
2b5f62a0 VZ |
22621 | succeeded=no |
22622 | ||
22623 | if test -z "$PKG_CONFIG"; then | |
22624 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22625 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22628 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22630 | else |
e6cc62c6 VS |
22631 | case $PKG_CONFIG in |
22632 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22633 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22634 | ;; | |
2b5f62a0 | 22635 | *) |
e6cc62c6 VS |
22636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22637 | for as_dir in $PATH | |
22638 | do | |
22639 | IFS=$as_save_IFS | |
22640 | test -z "$as_dir" && as_dir=. | |
22641 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22642 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22643 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22644 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22645 | break 2 | |
22646 | fi | |
22647 | done | |
22648 | done | |
22649 | ||
2b5f62a0 VZ |
22650 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22651 | ;; | |
22652 | esac | |
22653 | fi | |
e6cc62c6 VS |
22654 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22655 | ||
2b5f62a0 | 22656 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22657 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22658 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22659 | else |
e6cc62c6 VS |
22660 | echo "$as_me:$LINENO: result: no" >&5 |
22661 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22662 | fi |
22663 | ||
22664 | fi | |
22665 | ||
22666 | if test "$PKG_CONFIG" = "no" ; then | |
22667 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22668 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22669 | echo "*** to the full path to pkg-config." | |
22670 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22671 | else | |
22672 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22673 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22674 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22675 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22676 | |
22677 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22678 | echo "$as_me:$LINENO: result: yes" >&5 |
22679 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22680 | succeeded=yes |
22681 | ||
e6cc62c6 VS |
22682 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22683 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22684 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22685 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22686 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 22687 | |
e6cc62c6 VS |
22688 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22689 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22690 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22691 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22692 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
22693 | else |
22694 | PANGOFT2_CFLAGS="" | |
22695 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22696 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22697 | ## do set a variable so people can do so. |
22698 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22699 | |
2b5f62a0 VZ |
22700 | fi |
22701 | ||
e6cc62c6 VS |
22702 | |
22703 | ||
2b5f62a0 VZ |
22704 | else |
22705 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22706 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22707 | fi | |
22708 | fi | |
22709 | ||
22710 | if test $succeeded = yes; then | |
e6cc62c6 | 22711 | |
2b5f62a0 | 22712 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22713 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22714 | |
2b5f62a0 | 22715 | else |
e6cc62c6 VS |
22716 | |
22717 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22718 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 22719 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22720 | |
22721 | ||
2b5f62a0 VZ |
22722 | fi |
22723 | ||
e6cc62c6 | 22724 | |
2b5f62a0 VZ |
22725 | succeeded=no |
22726 | ||
22727 | if test -z "$PKG_CONFIG"; then | |
22728 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22729 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22730 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22731 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22732 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22734 | else |
e6cc62c6 VS |
22735 | case $PKG_CONFIG in |
22736 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22737 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22738 | ;; | |
2b5f62a0 | 22739 | *) |
e6cc62c6 VS |
22740 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22741 | for as_dir in $PATH | |
22742 | do | |
22743 | IFS=$as_save_IFS | |
22744 | test -z "$as_dir" && as_dir=. | |
22745 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22746 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22747 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22748 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22749 | break 2 | |
22750 | fi | |
22751 | done | |
22752 | done | |
22753 | ||
2b5f62a0 VZ |
22754 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22755 | ;; | |
22756 | esac | |
22757 | fi | |
e6cc62c6 VS |
22758 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22759 | ||
2b5f62a0 | 22760 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22761 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22762 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22763 | else |
e6cc62c6 VS |
22764 | echo "$as_me:$LINENO: result: no" >&5 |
22765 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22766 | fi |
22767 | ||
22768 | fi | |
22769 | ||
22770 | if test "$PKG_CONFIG" = "no" ; then | |
22771 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22772 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22773 | echo "*** to the full path to pkg-config." | |
22774 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22775 | else | |
22776 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22777 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22778 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
22779 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22780 | |
22781 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
22782 | echo "$as_me:$LINENO: result: yes" >&5 |
22783 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22784 | succeeded=yes |
22785 | ||
e6cc62c6 VS |
22786 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
22787 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22788 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
22789 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
22790 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 22791 | |
e6cc62c6 VS |
22792 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
22793 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22794 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
22795 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
22796 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
22797 | else |
22798 | PANGOXFT_CFLAGS="" | |
22799 | PANGOXFT_LIBS="" | |
e6cc62c6 | 22800 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22801 | ## do set a variable so people can do so. |
22802 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 22803 | |
2b5f62a0 VZ |
22804 | fi |
22805 | ||
e6cc62c6 VS |
22806 | |
22807 | ||
2b5f62a0 VZ |
22808 | else |
22809 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22810 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22811 | fi | |
22812 | fi | |
22813 | ||
22814 | if test $succeeded = yes; then | |
e6cc62c6 | 22815 | |
2b5f62a0 | 22816 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 22817 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 22818 | |
2b5f62a0 | 22819 | else |
e6cc62c6 VS |
22820 | |
22821 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
22822 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
22823 | ||
22824 | ||
2b5f62a0 VZ |
22825 | fi |
22826 | ||
22827 | fi | |
22828 | ||
22829 | wxUSE_UNIVERSAL="yes" | |
22830 | ||
22831 | if test "$wxUSE_NANOX" = "yes"; then | |
22832 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 22833 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1" |
2b5f62a0 VZ |
22834 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
22835 | else | |
22836 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link" | |
22837 | fi | |
22838 | ||
22839 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
22840 | TOOLKIT=X11 | |
22841 | GUIDIST=X11_DIST | |
22842 | fi | |
22843 | ||
21d1c967 GD |
22844 | if test "$wxUSE_MOTIF" = 1; then |
22845 | if test "$no_x" = yes; then | |
22846 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
22847 | |
22848 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22849 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 22850 | _ACEOF |
21d1c967 GD |
22851 | |
22852 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22853 | else | |
22854 | if test -n "$x_includes"; then | |
22855 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
22856 | fi |
22857 | ||
21d1c967 GD |
22858 | # It would also be nice to do this for all -L options, not just this one. |
22859 | if test -n "$x_libraries"; then | |
22860 | X_LIBS="$X_LIBS -L$x_libraries" | |
22861 | # For Solaris; some versions of Sun CC require a space after -R and | |
22862 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 22863 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 22864 | "SunOS 5"*) |
e6cc62c6 VS |
22865 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
22866 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
22867 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
22868 | cat >conftest.$ac_ext <<_ACEOF | |
22869 | #line $LINENO "configure" | |
22870 | /* confdefs.h. */ | |
22871 | _ACEOF | |
22872 | cat confdefs.h >>conftest.$ac_ext | |
22873 | cat >>conftest.$ac_ext <<_ACEOF | |
22874 | /* end confdefs.h. */ | |
22875 | ||
22876 | int | |
22877 | main () | |
22878 | { | |
21d1c967 | 22879 | |
e6cc62c6 VS |
22880 | ; |
22881 | return 0; | |
22882 | } | |
22883 | _ACEOF | |
22884 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22886 | (eval $ac_link) 2>&5 | |
22887 | ac_status=$? | |
22888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22889 | (exit $ac_status); } && | |
22890 | { ac_try='test -s conftest$ac_exeext' | |
22891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22892 | (eval $ac_try) 2>&5 | |
22893 | ac_status=$? | |
22894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22895 | (exit $ac_status); }; }; then | |
21d1c967 | 22896 | ac_R_nospace=yes |
698dcdb6 | 22897 | else |
e6cc62c6 VS |
22898 | echo "$as_me: failed program was:" >&5 |
22899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22900 | ||
22901 | ac_R_nospace=no | |
10f2d63a | 22902 | fi |
e6cc62c6 | 22903 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 22904 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
22905 | echo "$as_me:$LINENO: result: no" >&5 |
22906 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
22907 | X_LIBS="$X_LIBS -R$x_libraries" |
22908 | else | |
22909 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 VS |
22910 | cat >conftest.$ac_ext <<_ACEOF |
22911 | #line $LINENO "configure" | |
22912 | /* confdefs.h. */ | |
22913 | _ACEOF | |
22914 | cat confdefs.h >>conftest.$ac_ext | |
22915 | cat >>conftest.$ac_ext <<_ACEOF | |
22916 | /* end confdefs.h. */ | |
22917 | ||
22918 | int | |
22919 | main () | |
22920 | { | |
f0c87536 | 22921 | |
e6cc62c6 VS |
22922 | ; |
22923 | return 0; | |
22924 | } | |
22925 | _ACEOF | |
22926 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22927 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22928 | (eval $ac_link) 2>&5 | |
22929 | ac_status=$? | |
22930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22931 | (exit $ac_status); } && | |
22932 | { ac_try='test -s conftest$ac_exeext' | |
22933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22934 | (eval $ac_try) 2>&5 | |
22935 | ac_status=$? | |
22936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22937 | (exit $ac_status); }; }; then | |
21d1c967 GD |
22938 | ac_R_space=yes |
22939 | else | |
e6cc62c6 VS |
22940 | echo "$as_me: failed program was:" >&5 |
22941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22942 | ||
22943 | ac_R_space=no | |
21d1c967 | 22944 | fi |
e6cc62c6 | 22945 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 22946 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
22947 | echo "$as_me:$LINENO: result: yes" >&5 |
22948 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
22949 | X_LIBS="$X_LIBS -R $x_libraries" |
22950 | else | |
e6cc62c6 VS |
22951 | echo "$as_me:$LINENO: result: neither works" >&5 |
22952 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
22953 | fi |
22954 | fi | |
e6cc62c6 | 22955 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
22956 | esac |
22957 | fi | |
90dd450c | 22958 | |
21d1c967 GD |
22959 | # Check for system-dependent libraries X programs must link with. |
22960 | # Do this before checking for the system-independent R6 libraries | |
22961 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
22962 | ||
22963 | if test "$ISC" = yes; then | |
22964 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
22965 | else | |
e6cc62c6 VS |
22966 | # Martyn Johnson says this is needed for Ultrix, if the X |
22967 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 22968 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
22969 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
22970 | cat >conftest.$ac_ext <<_ACEOF | |
22971 | #line $LINENO "configure" | |
22972 | /* confdefs.h. */ | |
22973 | _ACEOF | |
22974 | cat confdefs.h >>conftest.$ac_ext | |
22975 | cat >>conftest.$ac_ext <<_ACEOF | |
22976 | /* end confdefs.h. */ | |
22977 | ||
247f5006 | 22978 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22979 | #ifdef __cplusplus |
22980 | extern "C" | |
22981 | #endif | |
247f5006 | 22982 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22983 | builtin and then its argument prototype would still apply. */ |
22984 | char XOpenDisplay (); | |
22985 | int | |
22986 | main () | |
22987 | { | |
22988 | XOpenDisplay (); | |
22989 | ; | |
22990 | return 0; | |
22991 | } | |
22992 | _ACEOF | |
22993 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22995 | (eval $ac_link) 2>&5 | |
22996 | ac_status=$? | |
22997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22998 | (exit $ac_status); } && | |
22999 | { ac_try='test -s conftest$ac_exeext' | |
23000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23001 | (eval $ac_try) 2>&5 | |
23002 | ac_status=$? | |
23003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23004 | (exit $ac_status); }; }; then | |
23005 | : | |
23006 | else | |
23007 | echo "$as_me: failed program was:" >&5 | |
23008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 23009 | |
e6cc62c6 VS |
23010 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
23011 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
23012 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
23013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23014 | else |
e6cc62c6 VS |
23015 | ac_check_lib_save_LIBS=$LIBS |
23016 | LIBS="-ldnet $LIBS" | |
23017 | cat >conftest.$ac_ext <<_ACEOF | |
23018 | #line $LINENO "configure" | |
23019 | /* confdefs.h. */ | |
23020 | _ACEOF | |
23021 | cat confdefs.h >>conftest.$ac_ext | |
23022 | cat >>conftest.$ac_ext <<_ACEOF | |
23023 | /* end confdefs.h. */ | |
a0b9e27f | 23024 | |
e6cc62c6 VS |
23025 | /* Override any gcc2 internal prototype to avoid an error. */ |
23026 | #ifdef __cplusplus | |
23027 | extern "C" | |
23028 | #endif | |
23029 | /* We use char because int might match the return type of a gcc2 | |
23030 | builtin and then its argument prototype would still apply. */ | |
23031 | char dnet_ntoa (); | |
23032 | int | |
23033 | main () | |
23034 | { | |
23035 | dnet_ntoa (); | |
23036 | ; | |
23037 | return 0; | |
23038 | } | |
23039 | _ACEOF | |
23040 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23041 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23042 | (eval $ac_link) 2>&5 | |
23043 | ac_status=$? | |
23044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23045 | (exit $ac_status); } && | |
23046 | { ac_try='test -s conftest$ac_exeext' | |
23047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23048 | (eval $ac_try) 2>&5 | |
23049 | ac_status=$? | |
23050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23051 | (exit $ac_status); }; }; then | |
23052 | ac_cv_lib_dnet_dnet_ntoa=yes | |
23053 | else | |
23054 | echo "$as_me: failed program was:" >&5 | |
23055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23056 | ||
23057 | ac_cv_lib_dnet_dnet_ntoa=no | |
23058 | fi | |
23059 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23060 | LIBS=$ac_check_lib_save_LIBS | |
23061 | fi | |
23062 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
23063 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
23064 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 23065 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 23066 | fi |
0fb0dd83 | 23067 | |
21d1c967 | 23068 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
23069 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
23070 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
23071 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
23072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23073 | else |
e6cc62c6 | 23074 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23075 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 VS |
23076 | cat >conftest.$ac_ext <<_ACEOF |
23077 | #line $LINENO "configure" | |
23078 | /* confdefs.h. */ | |
23079 | _ACEOF | |
23080 | cat confdefs.h >>conftest.$ac_ext | |
23081 | cat >>conftest.$ac_ext <<_ACEOF | |
23082 | /* end confdefs.h. */ | |
23083 | ||
21d1c967 | 23084 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23085 | #ifdef __cplusplus |
23086 | extern "C" | |
23087 | #endif | |
21d1c967 | 23088 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23089 | builtin and then its argument prototype would still apply. */ |
23090 | char dnet_ntoa (); | |
23091 | int | |
23092 | main () | |
23093 | { | |
23094 | dnet_ntoa (); | |
23095 | ; | |
23096 | return 0; | |
23097 | } | |
23098 | _ACEOF | |
23099 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23100 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23101 | (eval $ac_link) 2>&5 | |
23102 | ac_status=$? | |
23103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23104 | (exit $ac_status); } && | |
23105 | { ac_try='test -s conftest$ac_exeext' | |
23106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23107 | (eval $ac_try) 2>&5 | |
23108 | ac_status=$? | |
23109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23110 | (exit $ac_status); }; }; then | |
23111 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
23112 | else | |
23113 | echo "$as_me: failed program was:" >&5 | |
23114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23115 | ||
23116 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
23117 | fi | |
23118 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23119 | LIBS=$ac_check_lib_save_LIBS | |
23120 | fi | |
23121 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
23122 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
23123 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 23124 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
23125 | fi |
23126 | ||
21d1c967 | 23127 | fi |
e6cc62c6 VS |
23128 | fi |
23129 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23130 | LIBS="$ac_xsave_LIBS" | |
90dd450c | 23131 | |
21d1c967 GD |
23132 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
23133 | # to get the SysV transport functions. | |
e6cc62c6 | 23134 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
23135 | # needs -lnsl. |
23136 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
23137 | # on Irix 5.2, according to T.E. Dickey. |
23138 | # The functions gethostbyname, getservbyname, and inet_addr are | |
23139 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
23140 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
23141 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
23142 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
23143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23144 | else | |
23145 | cat >conftest.$ac_ext <<_ACEOF | |
23146 | #line $LINENO "configure" | |
23147 | /* confdefs.h. */ | |
23148 | _ACEOF | |
23149 | cat confdefs.h >>conftest.$ac_ext | |
23150 | cat >>conftest.$ac_ext <<_ACEOF | |
23151 | /* end confdefs.h. */ | |
21d1c967 | 23152 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23153 | which can conflict with char gethostbyname (); below. |
23154 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23155 | <limits.h> exists even on freestanding compilers. */ | |
23156 | #ifdef __STDC__ | |
23157 | # include <limits.h> | |
23158 | #else | |
23159 | # include <assert.h> | |
23160 | #endif | |
21d1c967 | 23161 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23162 | #ifdef __cplusplus |
23163 | extern "C" | |
23164 | { | |
23165 | #endif | |
21d1c967 | 23166 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23167 | builtin and then its argument prototype would still apply. */ |
23168 | char gethostbyname (); | |
21d1c967 GD |
23169 | /* The GNU C library defines this for functions which it implements |
23170 | to always fail with ENOSYS. Some functions are actually named | |
23171 | something starting with __ and the normal name is an alias. */ | |
23172 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
23173 | choke me | |
23174 | #else | |
e6cc62c6 VS |
23175 | char (*f) () = gethostbyname; |
23176 | #endif | |
23177 | #ifdef __cplusplus | |
23178 | } | |
21d1c967 | 23179 | #endif |
90dd450c | 23180 | |
e6cc62c6 VS |
23181 | int |
23182 | main () | |
23183 | { | |
23184 | return f != gethostbyname; | |
23185 | ; | |
23186 | return 0; | |
23187 | } | |
23188 | _ACEOF | |
23189 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23190 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23191 | (eval $ac_link) 2>&5 | |
23192 | ac_status=$? | |
23193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23194 | (exit $ac_status); } && | |
23195 | { ac_try='test -s conftest$ac_exeext' | |
23196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23197 | (eval $ac_try) 2>&5 | |
23198 | ac_status=$? | |
23199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23200 | (exit $ac_status); }; }; then | |
23201 | ac_cv_func_gethostbyname=yes | |
23202 | else | |
23203 | echo "$as_me: failed program was:" >&5 | |
23204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23205 | ||
23206 | ac_cv_func_gethostbyname=no | |
23207 | fi | |
23208 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23209 | fi | |
23210 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
23211 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 23212 | |
21d1c967 | 23213 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
23214 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
23215 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
23216 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
23217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23218 | else |
e6cc62c6 | 23219 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23220 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
23221 | cat >conftest.$ac_ext <<_ACEOF |
23222 | #line $LINENO "configure" | |
23223 | /* confdefs.h. */ | |
23224 | _ACEOF | |
23225 | cat confdefs.h >>conftest.$ac_ext | |
23226 | cat >>conftest.$ac_ext <<_ACEOF | |
23227 | /* end confdefs.h. */ | |
23228 | ||
21d1c967 | 23229 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23230 | #ifdef __cplusplus |
23231 | extern "C" | |
23232 | #endif | |
21d1c967 | 23233 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23234 | builtin and then its argument prototype would still apply. */ |
23235 | char gethostbyname (); | |
23236 | int | |
23237 | main () | |
23238 | { | |
23239 | gethostbyname (); | |
23240 | ; | |
23241 | return 0; | |
23242 | } | |
23243 | _ACEOF | |
23244 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23245 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23246 | (eval $ac_link) 2>&5 | |
23247 | ac_status=$? | |
23248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23249 | (exit $ac_status); } && | |
23250 | { ac_try='test -s conftest$ac_exeext' | |
23251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23252 | (eval $ac_try) 2>&5 | |
23253 | ac_status=$? | |
23254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23255 | (exit $ac_status); }; }; then | |
23256 | ac_cv_lib_nsl_gethostbyname=yes | |
23257 | else | |
23258 | echo "$as_me: failed program was:" >&5 | |
23259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23260 | ||
23261 | ac_cv_lib_nsl_gethostbyname=no | |
23262 | fi | |
23263 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23264 | LIBS=$ac_check_lib_save_LIBS | |
23265 | fi | |
23266 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
23267 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
23268 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
23269 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 23270 | fi |
247f5006 | 23271 | |
e6cc62c6 VS |
23272 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
23273 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 | |
23274 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 | |
23275 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
23276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23277 | else |
e6cc62c6 VS |
23278 | ac_check_lib_save_LIBS=$LIBS |
23279 | LIBS="-lbsd $LIBS" | |
23280 | cat >conftest.$ac_ext <<_ACEOF | |
23281 | #line $LINENO "configure" | |
23282 | /* confdefs.h. */ | |
23283 | _ACEOF | |
23284 | cat confdefs.h >>conftest.$ac_ext | |
23285 | cat >>conftest.$ac_ext <<_ACEOF | |
23286 | /* end confdefs.h. */ | |
23287 | ||
23288 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23289 | #ifdef __cplusplus | |
23290 | extern "C" | |
23291 | #endif | |
23292 | /* We use char because int might match the return type of a gcc2 | |
23293 | builtin and then its argument prototype would still apply. */ | |
23294 | char gethostbyname (); | |
23295 | int | |
23296 | main () | |
23297 | { | |
23298 | gethostbyname (); | |
23299 | ; | |
23300 | return 0; | |
23301 | } | |
23302 | _ACEOF | |
23303 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23304 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23305 | (eval $ac_link) 2>&5 | |
23306 | ac_status=$? | |
23307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23308 | (exit $ac_status); } && | |
23309 | { ac_try='test -s conftest$ac_exeext' | |
23310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23311 | (eval $ac_try) 2>&5 | |
23312 | ac_status=$? | |
23313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23314 | (exit $ac_status); }; }; then | |
23315 | ac_cv_lib_bsd_gethostbyname=yes | |
23316 | else | |
23317 | echo "$as_me: failed program was:" >&5 | |
23318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23319 | ||
23320 | ac_cv_lib_bsd_gethostbyname=no | |
23321 | fi | |
23322 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23323 | LIBS=$ac_check_lib_save_LIBS | |
23324 | fi | |
23325 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
23326 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
23327 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
23328 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 23329 | fi |
90dd450c | 23330 | |
e6cc62c6 | 23331 | fi |
90dd450c VZ |
23332 | fi |
23333 | ||
21d1c967 GD |
23334 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
23335 | # socket/setsockopt and other routines are undefined under SCO ODT | |
23336 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
23337 | # on later versions), says Simon Leinen: it contains gethostby* |
23338 | # variants that don't use the name server (or something). -lsocket | |
23339 | # must be given before -lnsl if both are needed. We assume that | |
23340 | # if connect needs -lnsl, so does gethostbyname. | |
23341 | echo "$as_me:$LINENO: checking for connect" >&5 | |
23342 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
23343 | if test "${ac_cv_func_connect+set}" = set; then | |
23344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23345 | else | |
23346 | cat >conftest.$ac_ext <<_ACEOF | |
23347 | #line $LINENO "configure" | |
23348 | /* confdefs.h. */ | |
23349 | _ACEOF | |
23350 | cat confdefs.h >>conftest.$ac_ext | |
23351 | cat >>conftest.$ac_ext <<_ACEOF | |
23352 | /* end confdefs.h. */ | |
21d1c967 | 23353 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23354 | which can conflict with char connect (); below. |
23355 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23356 | <limits.h> exists even on freestanding compilers. */ | |
23357 | #ifdef __STDC__ | |
23358 | # include <limits.h> | |
23359 | #else | |
23360 | # include <assert.h> | |
23361 | #endif | |
21d1c967 | 23362 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23363 | #ifdef __cplusplus |
23364 | extern "C" | |
23365 | { | |
23366 | #endif | |
21d1c967 | 23367 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23368 | builtin and then its argument prototype would still apply. */ |
23369 | char connect (); | |
21d1c967 GD |
23370 | /* The GNU C library defines this for functions which it implements |
23371 | to always fail with ENOSYS. Some functions are actually named | |
23372 | something starting with __ and the normal name is an alias. */ | |
23373 | #if defined (__stub_connect) || defined (__stub___connect) | |
23374 | choke me | |
23375 | #else | |
e6cc62c6 VS |
23376 | char (*f) () = connect; |
23377 | #endif | |
23378 | #ifdef __cplusplus | |
23379 | } | |
21d1c967 | 23380 | #endif |
90dd450c | 23381 | |
e6cc62c6 VS |
23382 | int |
23383 | main () | |
23384 | { | |
23385 | return f != connect; | |
23386 | ; | |
23387 | return 0; | |
23388 | } | |
23389 | _ACEOF | |
23390 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23392 | (eval $ac_link) 2>&5 | |
23393 | ac_status=$? | |
23394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23395 | (exit $ac_status); } && | |
23396 | { ac_try='test -s conftest$ac_exeext' | |
23397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23398 | (eval $ac_try) 2>&5 | |
23399 | ac_status=$? | |
23400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23401 | (exit $ac_status); }; }; then | |
23402 | ac_cv_func_connect=yes | |
23403 | else | |
23404 | echo "$as_me: failed program was:" >&5 | |
23405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23406 | ||
23407 | ac_cv_func_connect=no | |
23408 | fi | |
23409 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23410 | fi | |
23411 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
23412 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 23413 | |
21d1c967 | 23414 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
23415 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
23416 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
23417 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
23418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 23419 | else |
e6cc62c6 | 23420 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23421 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23422 | cat >conftest.$ac_ext <<_ACEOF |
23423 | #line $LINENO "configure" | |
23424 | /* confdefs.h. */ | |
23425 | _ACEOF | |
23426 | cat confdefs.h >>conftest.$ac_ext | |
23427 | cat >>conftest.$ac_ext <<_ACEOF | |
23428 | /* end confdefs.h. */ | |
23429 | ||
21d1c967 | 23430 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23431 | #ifdef __cplusplus |
23432 | extern "C" | |
23433 | #endif | |
21d1c967 | 23434 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23435 | builtin and then its argument prototype would still apply. */ |
23436 | char connect (); | |
23437 | int | |
23438 | main () | |
23439 | { | |
23440 | connect (); | |
23441 | ; | |
23442 | return 0; | |
23443 | } | |
23444 | _ACEOF | |
23445 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23447 | (eval $ac_link) 2>&5 | |
23448 | ac_status=$? | |
23449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23450 | (exit $ac_status); } && | |
23451 | { ac_try='test -s conftest$ac_exeext' | |
23452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23453 | (eval $ac_try) 2>&5 | |
23454 | ac_status=$? | |
23455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23456 | (exit $ac_status); }; }; then | |
23457 | ac_cv_lib_socket_connect=yes | |
23458 | else | |
23459 | echo "$as_me: failed program was:" >&5 | |
23460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23461 | ||
23462 | ac_cv_lib_socket_connect=no | |
23463 | fi | |
23464 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23465 | LIBS=$ac_check_lib_save_LIBS | |
23466 | fi | |
23467 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23468 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23469 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 23470 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 23471 | fi |
90dd450c | 23472 | |
21d1c967 | 23473 | fi |
90dd450c | 23474 | |
e6cc62c6 VS |
23475 | # Guillermo Gomez says -lposix is necessary on A/UX. |
23476 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23477 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23478 | if test "${ac_cv_func_remove+set}" = set; then | |
23479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23480 | else | |
23481 | cat >conftest.$ac_ext <<_ACEOF | |
23482 | #line $LINENO "configure" | |
23483 | /* confdefs.h. */ | |
23484 | _ACEOF | |
23485 | cat confdefs.h >>conftest.$ac_ext | |
23486 | cat >>conftest.$ac_ext <<_ACEOF | |
23487 | /* end confdefs.h. */ | |
21d1c967 | 23488 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23489 | which can conflict with char remove (); below. |
23490 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23491 | <limits.h> exists even on freestanding compilers. */ | |
23492 | #ifdef __STDC__ | |
23493 | # include <limits.h> | |
23494 | #else | |
23495 | # include <assert.h> | |
23496 | #endif | |
21d1c967 | 23497 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23498 | #ifdef __cplusplus |
23499 | extern "C" | |
23500 | { | |
23501 | #endif | |
21d1c967 | 23502 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23503 | builtin and then its argument prototype would still apply. */ |
23504 | char remove (); | |
21d1c967 GD |
23505 | /* The GNU C library defines this for functions which it implements |
23506 | to always fail with ENOSYS. Some functions are actually named | |
23507 | something starting with __ and the normal name is an alias. */ | |
23508 | #if defined (__stub_remove) || defined (__stub___remove) | |
23509 | choke me | |
23510 | #else | |
e6cc62c6 VS |
23511 | char (*f) () = remove; |
23512 | #endif | |
23513 | #ifdef __cplusplus | |
23514 | } | |
21d1c967 | 23515 | #endif |
90dd450c | 23516 | |
e6cc62c6 VS |
23517 | int |
23518 | main () | |
23519 | { | |
23520 | return f != remove; | |
23521 | ; | |
23522 | return 0; | |
23523 | } | |
23524 | _ACEOF | |
23525 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23527 | (eval $ac_link) 2>&5 | |
23528 | ac_status=$? | |
23529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23530 | (exit $ac_status); } && | |
23531 | { ac_try='test -s conftest$ac_exeext' | |
23532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23533 | (eval $ac_try) 2>&5 | |
23534 | ac_status=$? | |
23535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23536 | (exit $ac_status); }; }; then | |
23537 | ac_cv_func_remove=yes | |
23538 | else | |
23539 | echo "$as_me: failed program was:" >&5 | |
23540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23541 | ||
23542 | ac_cv_func_remove=no | |
23543 | fi | |
23544 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23545 | fi | |
23546 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23547 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 23548 | |
21d1c967 | 23549 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
23550 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
23551 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23552 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23554 | else |
e6cc62c6 | 23555 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23556 | LIBS="-lposix $LIBS" |
e6cc62c6 VS |
23557 | cat >conftest.$ac_ext <<_ACEOF |
23558 | #line $LINENO "configure" | |
23559 | /* confdefs.h. */ | |
23560 | _ACEOF | |
23561 | cat confdefs.h >>conftest.$ac_ext | |
23562 | cat >>conftest.$ac_ext <<_ACEOF | |
23563 | /* end confdefs.h. */ | |
23564 | ||
21d1c967 | 23565 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23566 | #ifdef __cplusplus |
23567 | extern "C" | |
23568 | #endif | |
21d1c967 | 23569 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23570 | builtin and then its argument prototype would still apply. */ |
23571 | char remove (); | |
23572 | int | |
23573 | main () | |
23574 | { | |
23575 | remove (); | |
23576 | ; | |
23577 | return 0; | |
23578 | } | |
23579 | _ACEOF | |
23580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23582 | (eval $ac_link) 2>&5 | |
23583 | ac_status=$? | |
23584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23585 | (exit $ac_status); } && | |
23586 | { ac_try='test -s conftest$ac_exeext' | |
23587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23588 | (eval $ac_try) 2>&5 | |
23589 | ac_status=$? | |
23590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23591 | (exit $ac_status); }; }; then | |
23592 | ac_cv_lib_posix_remove=yes | |
23593 | else | |
23594 | echo "$as_me: failed program was:" >&5 | |
23595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23596 | ||
23597 | ac_cv_lib_posix_remove=no | |
23598 | fi | |
23599 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23600 | LIBS=$ac_check_lib_save_LIBS | |
23601 | fi | |
23602 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23603 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23604 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 23605 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 23606 | fi |
19bc6aad | 23607 | |
90dd450c | 23608 | fi |
19bc6aad | 23609 | |
21d1c967 | 23610 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
23611 | echo "$as_me:$LINENO: checking for shmat" >&5 |
23612 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23613 | if test "${ac_cv_func_shmat+set}" = set; then | |
23614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23615 | else | |
23616 | cat >conftest.$ac_ext <<_ACEOF | |
23617 | #line $LINENO "configure" | |
23618 | /* confdefs.h. */ | |
23619 | _ACEOF | |
23620 | cat confdefs.h >>conftest.$ac_ext | |
23621 | cat >>conftest.$ac_ext <<_ACEOF | |
23622 | /* end confdefs.h. */ | |
21d1c967 | 23623 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23624 | which can conflict with char shmat (); below. |
23625 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23626 | <limits.h> exists even on freestanding compilers. */ | |
23627 | #ifdef __STDC__ | |
23628 | # include <limits.h> | |
23629 | #else | |
23630 | # include <assert.h> | |
23631 | #endif | |
21d1c967 | 23632 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23633 | #ifdef __cplusplus |
23634 | extern "C" | |
23635 | { | |
23636 | #endif | |
21d1c967 | 23637 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23638 | builtin and then its argument prototype would still apply. */ |
23639 | char shmat (); | |
21d1c967 GD |
23640 | /* The GNU C library defines this for functions which it implements |
23641 | to always fail with ENOSYS. Some functions are actually named | |
23642 | something starting with __ and the normal name is an alias. */ | |
23643 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23644 | choke me | |
23645 | #else | |
e6cc62c6 VS |
23646 | char (*f) () = shmat; |
23647 | #endif | |
23648 | #ifdef __cplusplus | |
23649 | } | |
21d1c967 | 23650 | #endif |
90dd450c | 23651 | |
e6cc62c6 VS |
23652 | int |
23653 | main () | |
23654 | { | |
23655 | return f != shmat; | |
23656 | ; | |
23657 | return 0; | |
23658 | } | |
23659 | _ACEOF | |
23660 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23661 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23662 | (eval $ac_link) 2>&5 | |
23663 | ac_status=$? | |
23664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23665 | (exit $ac_status); } && | |
23666 | { ac_try='test -s conftest$ac_exeext' | |
23667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23668 | (eval $ac_try) 2>&5 | |
23669 | ac_status=$? | |
23670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23671 | (exit $ac_status); }; }; then | |
23672 | ac_cv_func_shmat=yes | |
23673 | else | |
23674 | echo "$as_me: failed program was:" >&5 | |
23675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23676 | ||
23677 | ac_cv_func_shmat=no | |
23678 | fi | |
23679 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23680 | fi | |
23681 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23682 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 23683 | |
21d1c967 | 23684 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
23685 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23686 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23687 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23688 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 23689 | else |
e6cc62c6 | 23690 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 23691 | LIBS="-lipc $LIBS" |
e6cc62c6 VS |
23692 | cat >conftest.$ac_ext <<_ACEOF |
23693 | #line $LINENO "configure" | |
23694 | /* confdefs.h. */ | |
23695 | _ACEOF | |
23696 | cat confdefs.h >>conftest.$ac_ext | |
23697 | cat >>conftest.$ac_ext <<_ACEOF | |
23698 | /* end confdefs.h. */ | |
23699 | ||
5c6fa7d2 | 23700 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23701 | #ifdef __cplusplus |
23702 | extern "C" | |
23703 | #endif | |
5c6fa7d2 | 23704 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23705 | builtin and then its argument prototype would still apply. */ |
23706 | char shmat (); | |
23707 | int | |
23708 | main () | |
23709 | { | |
23710 | shmat (); | |
23711 | ; | |
23712 | return 0; | |
23713 | } | |
23714 | _ACEOF | |
23715 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23716 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23717 | (eval $ac_link) 2>&5 | |
23718 | ac_status=$? | |
23719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23720 | (exit $ac_status); } && | |
23721 | { ac_try='test -s conftest$ac_exeext' | |
23722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23723 | (eval $ac_try) 2>&5 | |
23724 | ac_status=$? | |
23725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23726 | (exit $ac_status); }; }; then | |
23727 | ac_cv_lib_ipc_shmat=yes | |
23728 | else | |
23729 | echo "$as_me: failed program was:" >&5 | |
23730 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23731 | ||
23732 | ac_cv_lib_ipc_shmat=no | |
23733 | fi | |
23734 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23735 | LIBS=$ac_check_lib_save_LIBS | |
23736 | fi | |
23737 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23738 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23739 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 23740 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 23741 | fi |
90dd450c | 23742 | |
90dd450c | 23743 | fi |
21d1c967 | 23744 | fi |
10f2d63a | 23745 | |
21d1c967 | 23746 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 23747 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
23748 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23749 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23750 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23751 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23752 | # These have to be linked with before -lX11, unlike the other | |
23753 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
23754 | # John Interrante, Karl Berry |
23755 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23756 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23757 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23759 | else | |
23760 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 23761 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 VS |
23762 | cat >conftest.$ac_ext <<_ACEOF |
23763 | #line $LINENO "configure" | |
23764 | /* confdefs.h. */ | |
23765 | _ACEOF | |
23766 | cat confdefs.h >>conftest.$ac_ext | |
23767 | cat >>conftest.$ac_ext <<_ACEOF | |
23768 | /* end confdefs.h. */ | |
23769 | ||
21d1c967 | 23770 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23771 | #ifdef __cplusplus |
23772 | extern "C" | |
23773 | #endif | |
21d1c967 | 23774 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23775 | builtin and then its argument prototype would still apply. */ |
23776 | char IceConnectionNumber (); | |
23777 | int | |
23778 | main () | |
23779 | { | |
23780 | IceConnectionNumber (); | |
23781 | ; | |
23782 | return 0; | |
23783 | } | |
23784 | _ACEOF | |
23785 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
23787 | (eval $ac_link) 2>&5 | |
23788 | ac_status=$? | |
23789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23790 | (exit $ac_status); } && | |
23791 | { ac_try='test -s conftest$ac_exeext' | |
23792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23793 | (eval $ac_try) 2>&5 | |
23794 | ac_status=$? | |
23795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23796 | (exit $ac_status); }; }; then | |
23797 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23798 | else | |
23799 | echo "$as_me: failed program was:" >&5 | |
23800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23801 | ||
23802 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23803 | fi | |
23804 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
23805 | LIBS=$ac_check_lib_save_LIBS | |
23806 | fi | |
23807 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23808 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23809 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 23810 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 23811 | fi |
21d1c967 | 23812 | |
e6cc62c6 | 23813 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 23814 | |
10f2d63a VZ |
23815 | fi |
23816 | ||
8284b0c5 | 23817 | |
21d1c967 | 23818 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
23819 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
23820 | echo "$as_me: error: X11 not found" >&2;} | |
23821 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
23822 | fi |
23823 | ||
2b5f62a0 VZ |
23824 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
23825 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
23826 | AFMINSTALL=afminstall |
23827 | COMPILED_X_PROGRAM=0 | |
23828 | ||
e6cc62c6 VS |
23829 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
23830 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
23831 | ||
21d1c967 | 23832 | ac_find_includes= |
2b5f62a0 | 23833 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
23834 | do |
23835 | if test -f "$ac_dir/Xm/Xm.h"; then | |
23836 | ac_find_includes=$ac_dir | |
23837 | break | |
23838 | fi | |
23839 | done | |
23840 | ||
23841 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
23842 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
23843 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
23844 | ||
2b5f62a0 | 23845 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
23846 | ac_path_to_include="" |
23847 | else | |
2b5f62a0 VZ |
23848 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
23849 | result=$? | |
23850 | if test $result = 0; then | |
23851 | ac_path_to_include="" | |
23852 | else | |
23853 | ac_path_to_include=" -I$ac_find_includes" | |
23854 | fi | |
dd0e4a90 VZ |
23855 | fi |
23856 | ||
23857 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 23858 | else |
e6cc62c6 VS |
23859 | cat >conftest.$ac_ext <<_ACEOF |
23860 | #line $LINENO "configure" | |
23861 | /* confdefs.h. */ | |
23862 | _ACEOF | |
23863 | cat confdefs.h >>conftest.$ac_ext | |
23864 | cat >>conftest.$ac_ext <<_ACEOF | |
23865 | /* end confdefs.h. */ | |
21d1c967 GD |
23866 | |
23867 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23868 | |
23869 | int | |
23870 | main () | |
23871 | { | |
21d1c967 GD |
23872 | |
23873 | int version; | |
23874 | version = xmUseVersion; | |
e6cc62c6 VS |
23875 | |
23876 | ; | |
23877 | return 0; | |
23878 | } | |
23879 | _ACEOF | |
23880 | rm -f conftest.$ac_objext | |
23881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23882 | (eval $ac_compile) 2>&5 | |
23883 | ac_status=$? | |
23884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23885 | (exit $ac_status); } && | |
23886 | { ac_try='test -s conftest.$ac_objext' | |
23887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23888 | (eval $ac_try) 2>&5 | |
23889 | ac_status=$? | |
23890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23891 | (exit $ac_status); }; }; then | |
23892 | ||
23893 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23894 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23895 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 23896 | |
10f2d63a | 23897 | else |
e6cc62c6 VS |
23898 | echo "$as_me: failed program was:" >&5 |
23899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23900 | ||
23901 | ||
23902 | echo "$as_me:$LINENO: result: no" >&5 | |
23903 | echo "${ECHO_T}no" >&6 | |
23904 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
23905 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
23906 | { (exit 1); exit 1; }; } | |
23907 | ||
23908 | ||
10f2d63a | 23909 | fi |
e6cc62c6 | 23910 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 23911 | fi |
10f2d63a | 23912 | |
21d1c967 | 23913 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
23914 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
23915 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
23916 | ||
21d1c967 | 23917 | ac_find_libraries= |
2b5f62a0 | 23918 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
23919 | do |
23920 | for ac_extension in a so sl dylib; do | |
23921 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
23922 | ac_find_libraries=$ac_dir | |
23923 | break 2 | |
23924 | fi | |
23925 | done | |
23926 | done | |
23927 | ||
23928 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
23929 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
23930 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
23931 | ||
21d1c967 | 23932 | |
21d1c967 GD |
23933 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
23934 | result=$? | |
23935 | if test $result = 0; then | |
23936 | ac_path_to_link="" | |
23937 | else | |
23938 | ac_path_to_link=" -L$ac_find_libraries" | |
23939 | fi | |
23940 | ||
21d1c967 | 23941 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 23942 | else |
dd0e4a90 VZ |
23943 | save_CFLAGS=$CFLAGS |
23944 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
23945 | ||
e6cc62c6 VS |
23946 | cat >conftest.$ac_ext <<_ACEOF |
23947 | #line $LINENO "configure" | |
23948 | /* confdefs.h. */ | |
23949 | _ACEOF | |
23950 | cat confdefs.h >>conftest.$ac_ext | |
23951 | cat >>conftest.$ac_ext <<_ACEOF | |
23952 | /* end confdefs.h. */ | |
21d1c967 GD |
23953 | |
23954 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
23955 | |
23956 | int | |
23957 | main () | |
23958 | { | |
21d1c967 GD |
23959 | |
23960 | int version; | |
23961 | version = xmUseVersion; | |
e6cc62c6 VS |
23962 | |
23963 | ; | |
23964 | return 0; | |
23965 | } | |
23966 | _ACEOF | |
23967 | rm -f conftest.$ac_objext | |
23968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
23969 | (eval $ac_compile) 2>&5 | |
23970 | ac_status=$? | |
23971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23972 | (exit $ac_status); } && | |
23973 | { ac_try='test -s conftest.$ac_objext' | |
23974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
23975 | (eval $ac_try) 2>&5 | |
23976 | ac_status=$? | |
23977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23978 | (exit $ac_status); }; }; then | |
23979 | ||
23980 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
23981 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 23982 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 23983 | |
d836ee96 | 23984 | else |
e6cc62c6 VS |
23985 | echo "$as_me: failed program was:" >&5 |
23986 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23987 | ||
23988 | ||
23989 | echo "$as_me:$LINENO: result: no" >&5 | |
23990 | echo "${ECHO_T}no" >&6 | |
23991 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
23992 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
23993 | { (exit 1); exit 1; }; } | |
23994 | ||
23995 | ||
d836ee96 | 23996 | fi |
e6cc62c6 | 23997 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
23998 | |
23999 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
24000 | fi |
24001 | fi | |
24002 | ||
24003 | xpm_link= | |
e6cc62c6 VS |
24004 | echo "$as_me:$LINENO: checking for Xpm library" >&5 |
24005 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
24006 | ||
21d1c967 | 24007 | ac_find_libraries= |
2b5f62a0 | 24008 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24009 | do |
24010 | for ac_extension in a so sl dylib; do | |
24011 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
24012 | ac_find_libraries=$ac_dir | |
24013 | break 2 | |
24014 | fi | |
24015 | done | |
24016 | done | |
24017 | ||
24018 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24019 | |
21d1c967 GD |
24020 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
24021 | result=$? | |
24022 | if test $result = 0; then | |
24023 | ac_path_to_link="" | |
24024 | else | |
24025 | ac_path_to_link=" -L$ac_find_libraries" | |
24026 | fi | |
24027 | ||
24028 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
dd0e4a90 | 24029 | |
21d1c967 | 24030 | xpm_link=" -lXpm" |
e6cc62c6 | 24031 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24032 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 24033 | _ACEOF |
90dd450c | 24034 | |
e6cc62c6 VS |
24035 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
24036 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
21d1c967 | 24037 | else |
dd0e4a90 VZ |
24038 | save_CFLAGS=$CFLAGS |
24039 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24040 | ||
e6cc62c6 VS |
24041 | cat >conftest.$ac_ext <<_ACEOF |
24042 | #line $LINENO "configure" | |
24043 | /* confdefs.h. */ | |
24044 | _ACEOF | |
24045 | cat confdefs.h >>conftest.$ac_ext | |
24046 | cat >>conftest.$ac_ext <<_ACEOF | |
24047 | /* end confdefs.h. */ | |
21d1c967 GD |
24048 | |
24049 | #include <X11/xpm.h> | |
e6cc62c6 VS |
24050 | |
24051 | int | |
24052 | main () | |
24053 | { | |
21d1c967 GD |
24054 | |
24055 | int version; | |
24056 | version = XpmLibraryVersion(); | |
e6cc62c6 VS |
24057 | |
24058 | ; | |
24059 | return 0; | |
24060 | } | |
24061 | _ACEOF | |
24062 | rm -f conftest.$ac_objext | |
24063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24064 | (eval $ac_compile) 2>&5 | |
24065 | ac_status=$? | |
24066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24067 | (exit $ac_status); } && | |
24068 | { ac_try='test -s conftest.$ac_objext' | |
24069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24070 | (eval $ac_try) 2>&5 | |
24071 | ac_status=$? | |
24072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24073 | (exit $ac_status); }; }; then | |
24074 | ||
21d1c967 | 24075 | xpm_link=" -lXpm" |
e6cc62c6 | 24076 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 24077 | #define wxHAVE_LIB_XPM 1 |
e6cc62c6 | 24078 | _ACEOF |
21d1c967 | 24079 | |
e6cc62c6 VS |
24080 | echo "$as_me:$LINENO: result: found in default search path" >&5 |
24081 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 24082 | COMPILED_X_PROGRAM=0 |
e6cc62c6 | 24083 | |
d836ee96 | 24084 | else |
e6cc62c6 VS |
24085 | echo "$as_me: failed program was:" >&5 |
24086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24087 | ||
24088 | ||
24089 | echo "$as_me:$LINENO: result: no" >&5 | |
24090 | echo "${ECHO_T}no" >&6 | |
24091 | { echo "$as_me:$LINENO: WARNING: library will be compiled without support for images in XPM format" >&5 | |
24092 | echo "$as_me: WARNING: library will be compiled without support for images in XPM format" >&2;} | |
24093 | ||
24094 | ||
d836ee96 | 24095 | fi |
e6cc62c6 | 24096 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
24097 | |
24098 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
24099 | fi |
24100 | ||
e6cc62c6 VS |
24101 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
24102 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
24103 | libp_link="" |
24104 | libsm_ice_link="" | |
24105 | libs_found=0 | |
24106 | for libp in "" " -lXp"; do | |
24107 | if test "$libs_found" = "0"; then | |
24108 | for libsm_ice in " -lSM -lICE"; do | |
e26c13cf | 24109 | if test "$libs_found" = "0"; then |
6a30f1c8 MB |
24110 | save_LIBS="$LIBS" |
24111 | LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
dd0e4a90 VZ |
24112 | save_CFLAGS=$CFLAGS |
24113 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24114 | ||
e6cc62c6 VS |
24115 | cat >conftest.$ac_ext <<_ACEOF |
24116 | #line $LINENO "configure" | |
24117 | /* confdefs.h. */ | |
24118 | _ACEOF | |
24119 | cat confdefs.h >>conftest.$ac_ext | |
24120 | cat >>conftest.$ac_ext <<_ACEOF | |
24121 | /* end confdefs.h. */ | |
17234b26 | 24122 | |
6a30f1c8 MB |
24123 | #include <Xm/Xm.h> |
24124 | #include <Xm/List.h> | |
e6cc62c6 VS |
24125 | |
24126 | int | |
24127 | main () | |
24128 | { | |
6a30f1c8 MB |
24129 | |
24130 | XmString string = NULL; | |
24131 | Widget w = NULL; | |
24132 | int position = 0; | |
24133 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
24134 | |
24135 | ; | |
24136 | return 0; | |
24137 | } | |
24138 | _ACEOF | |
24139 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24140 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24141 | (eval $ac_link) 2>&5 | |
24142 | ac_status=$? | |
24143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24144 | (exit $ac_status); } && | |
24145 | { ac_try='test -s conftest$ac_exeext' | |
24146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24147 | (eval $ac_try) 2>&5 | |
24148 | ac_status=$? | |
24149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24150 | (exit $ac_status); }; }; then | |
24151 | ||
6a30f1c8 MB |
24152 | libp_link="$libp" |
24153 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
24154 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
24155 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 24156 | libs_found=1 |
e6cc62c6 | 24157 | |
6a30f1c8 | 24158 | else |
e6cc62c6 VS |
24159 | echo "$as_me: failed program was:" >&5 |
24160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24161 | ||
24162 | ||
24163 | ||
6a30f1c8 | 24164 | fi |
e6cc62c6 | 24165 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
dd0e4a90 | 24166 | |
6a30f1c8 | 24167 | LIBS="$save_LIBS" |
dd0e4a90 | 24168 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
24169 | fi |
24170 | done | |
24171 | fi | |
24172 | done | |
24173 | ||
24174 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
24175 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
24176 | echo "${ECHO_T}can't find the right libraries" >&6 | |
24177 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
24178 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
24179 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
24180 | fi |
24181 | ||
da494b40 MB |
24182 | save_CFLAGS=$CFLAGS |
24183 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
24184 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
24185 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
24186 | cat >conftest.$ac_ext <<_ACEOF | |
24187 | #line $LINENO "configure" | |
24188 | /* confdefs.h. */ | |
24189 | _ACEOF | |
24190 | cat confdefs.h >>conftest.$ac_ext | |
24191 | cat >>conftest.$ac_ext <<_ACEOF | |
24192 | /* end confdefs.h. */ | |
da494b40 MB |
24193 | |
24194 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24195 | |
24196 | int | |
24197 | main () | |
24198 | { | |
da494b40 MB |
24199 | |
24200 | #if XmVersion < 2000 | |
24201 | #error "Not Motif 2" | |
24202 | #endif | |
e6cc62c6 VS |
24203 | |
24204 | ; | |
24205 | return 0; | |
24206 | } | |
24207 | _ACEOF | |
24208 | rm -f conftest.$ac_objext | |
24209 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24210 | (eval $ac_compile) 2>&5 | |
24211 | ac_status=$? | |
24212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24213 | (exit $ac_status); } && | |
24214 | { ac_try='test -s conftest.$ac_objext' | |
24215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24216 | (eval $ac_try) 2>&5 | |
24217 | ac_status=$? | |
24218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24219 | (exit $ac_status); }; }; then | |
24220 | ||
24221 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24222 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
24223 | _ACEOF |
24224 | ||
24225 | echo "$as_me:$LINENO: result: found" >&5 | |
24226 | echo "${ECHO_T}found" >&6 | |
da494b40 | 24227 | |
da494b40 | 24228 | else |
e6cc62c6 VS |
24229 | echo "$as_me: failed program was:" >&5 |
24230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24231 | ||
24232 | ||
24233 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24234 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
24235 | _ACEOF |
24236 | ||
24237 | echo "$as_me:$LINENO: result: not found" >&5 | |
24238 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 24239 | |
da494b40 | 24240 | fi |
e6cc62c6 | 24241 | rm -f conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
24242 | CFLAGS=$save_CFLAGS |
24243 | ||
6a30f1c8 | 24244 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 24245 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
24246 | TOOLKIT=MOTIF |
24247 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
24248 | wxHAVE_XEXT_LIB=1 |
24249 | fi | |
24250 | ||
24251 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1 && | |
24252 | test "$wxHAVE_XEXT_LIB" = 1; then | |
24253 | save_CFLAGS="$CFLAGS" | |
24254 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24255 | ||
e6cc62c6 VS |
24256 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 |
24257 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
24258 | cat >conftest.$ac_ext <<_ACEOF | |
24259 | #line $LINENO "configure" | |
24260 | /* confdefs.h. */ | |
24261 | _ACEOF | |
24262 | cat confdefs.h >>conftest.$ac_ext | |
24263 | cat >>conftest.$ac_ext <<_ACEOF | |
24264 | /* end confdefs.h. */ | |
24265 | ||
24266 | #include <X11/Xlib.h> | |
f7f78039 | 24267 | #include <X11/extensions/shape.h> |
e6cc62c6 VS |
24268 | |
24269 | int | |
24270 | main () | |
24271 | { | |
f7f78039 MB |
24272 | |
24273 | int dummy1, dummy2; | |
24274 | XShapeQueryExtension((Display*)NULL, | |
24275 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
24276 | |
24277 | ; | |
24278 | return 0; | |
24279 | } | |
24280 | _ACEOF | |
24281 | rm -f conftest.$ac_objext | |
24282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24283 | (eval $ac_compile) 2>&5 | |
24284 | ac_status=$? | |
24285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24286 | (exit $ac_status); } && | |
24287 | { ac_try='test -s conftest.$ac_objext' | |
24288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24289 | (eval $ac_try) 2>&5 | |
24290 | ac_status=$? | |
24291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24292 | (exit $ac_status); }; }; then | |
24293 | ||
24294 | cat >>confdefs.h <<\_ACEOF | |
f7f78039 | 24295 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
24296 | _ACEOF |
24297 | ||
24298 | echo "$as_me:$LINENO: result: found" >&5 | |
24299 | echo "${ECHO_T}found" >&6 | |
f7f78039 | 24300 | |
f7f78039 | 24301 | else |
e6cc62c6 VS |
24302 | echo "$as_me: failed program was:" >&5 |
24303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24304 | ||
24305 | ||
24306 | echo "$as_me:$LINENO: result: not found" >&5 | |
24307 | echo "${ECHO_T}not found" >&6 | |
24308 | ||
f7f78039 | 24309 | fi |
e6cc62c6 | 24310 | rm -f conftest.$ac_objext conftest.$ac_ext |
f7f78039 | 24311 | CFLAGS="$save_CFLAGS" |
21d1c967 GD |
24312 | fi |
24313 | ||
24314 | if test "$wxUSE_MAC" = 1; then | |
0c98a14e | 24315 | CPPFLAGS="$CPPFLAGS -fpascal-strings -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" |
21d1c967 | 24316 | |
0c98a14e | 24317 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
24318 | TOOLKIT=MAC |
24319 | GUIDIST=MACX_DIST | |
cf615ebb | 24320 | WXBASEPORT="_carbon" |
21d1c967 GD |
24321 | fi |
24322 | ||
ac0c4cc3 DE |
24323 | if test "$wxUSE_COCOA" = 1; then |
24324 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
24325 | TOOLKIT=COCOA | |
24326 | GUIDIST=COCOA_DIST | |
24327 | fi | |
24328 | ||
21d1c967 GD |
24329 | if test "$wxUSE_PM" = 1; then |
24330 | TOOLKIT=PM | |
24331 | GUIDIST=GTK_DIST | |
24332 | fi | |
24333 | ||
24334 | if test "$TOOLKIT" = "PM" ; then | |
24335 | TOOLKIT_DIR="os2" | |
24336 | else | |
24337 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
24338 | fi | |
24339 | ||
24340 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
24341 | ||
24342 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
24343 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
24344 | ||
24345 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
24346 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
24347 | ||
24348 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
24349 | if test "$wxUSE_X11" = 1; then | |
24350 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
24351 | else | |
24352 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
24353 | fi | |
24354 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
24355 | WIDGET_SET=univ | |
24356 | else | |
24357 | ALL_OBJECTS="\$(GUIOBJS)" | |
24358 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24359 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24360 | fi | |
24361 | ||
24362 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
24363 | ||
24364 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
24365 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
24366 | fi | |
24367 | ||
24368 | if test "$wxUSE_HTML" = "yes"; then | |
24369 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
24370 | fi | |
24371 | ||
24372 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
24373 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
24374 | fi | |
24375 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
24376 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
24377 | fi | |
24378 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
24379 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
24380 | fi | |
24381 | ||
24382 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
24383 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 24384 | else |
21d1c967 GD |
24385 | USE_GUI=0 |
24386 | ||
24387 | TOOLKIT_DIR="base" | |
24388 | ||
24389 | if test "$USE_WIN32" = 1 ; then | |
24390 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
24391 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
24392 | ||
24393 | TOOLKIT="MSW" | |
24394 | else | |
24395 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
24396 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
24397 | fi | |
24398 | ||
24399 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24400 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24401 | ||
24402 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
24403 | ||
24404 | GUIDIST="BASE_DIST" | |
24405 | DISTDIR="wxBase" | |
d836ee96 VZ |
24406 | fi |
24407 | ||
8284b0c5 | 24408 | |
8647bec6 RG |
24409 | |
24410 | ||
24411 | IODBC_C_SRC="" | |
24412 | ||
24413 | ||
24414 | if test "$TOOLKIT" != "MSW" ; then | |
24415 | ||
bb41dcbe | 24416 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then |
8647bec6 | 24417 | |
bb41dcbe | 24418 | if test "${ac_cv_header_sql_h+set}" = set; then |
e6cc62c6 VS |
24419 | echo "$as_me:$LINENO: checking for sql.h" >&5 |
24420 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24421 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24423 | fi | |
24424 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24425 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24426 | else | |
24427 | # Is the header compilable? | |
24428 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
24429 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
24430 | cat >conftest.$ac_ext <<_ACEOF | |
24431 | #line $LINENO "configure" | |
24432 | /* confdefs.h. */ | |
24433 | _ACEOF | |
24434 | cat confdefs.h >>conftest.$ac_ext | |
24435 | cat >>conftest.$ac_ext <<_ACEOF | |
24436 | /* end confdefs.h. */ | |
24437 | $ac_includes_default | |
8647bec6 | 24438 | #include <sql.h> |
e6cc62c6 VS |
24439 | _ACEOF |
24440 | rm -f conftest.$ac_objext | |
24441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24442 | (eval $ac_compile) 2>&5 | |
24443 | ac_status=$? | |
24444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24445 | (exit $ac_status); } && | |
24446 | { ac_try='test -s conftest.$ac_objext' | |
24447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24448 | (eval $ac_try) 2>&5 | |
24449 | ac_status=$? | |
24450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24451 | (exit $ac_status); }; }; then | |
24452 | ac_header_compiler=yes | |
24453 | else | |
24454 | echo "$as_me: failed program was:" >&5 | |
24455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24456 | ||
24457 | ac_header_compiler=no | |
24458 | fi | |
24459 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24460 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24461 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24462 | ||
24463 | # Is the header present? | |
24464 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
24465 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
24466 | cat >conftest.$ac_ext <<_ACEOF | |
24467 | #line $LINENO "configure" | |
24468 | /* confdefs.h. */ | |
24469 | _ACEOF | |
24470 | cat confdefs.h >>conftest.$ac_ext | |
24471 | cat >>conftest.$ac_ext <<_ACEOF | |
24472 | /* end confdefs.h. */ | |
24473 | #include <sql.h> | |
24474 | _ACEOF | |
24475 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24476 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24477 | ac_status=$? | |
24478 | grep -v '^ *+' conftest.er1 >conftest.err | |
24479 | rm -f conftest.er1 | |
24480 | cat conftest.err >&5 | |
24481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24482 | (exit $ac_status); } >/dev/null; then | |
24483 | if test -s conftest.err; then | |
24484 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24485 | else | |
24486 | ac_cpp_err= | |
24487 | fi | |
24488 | else | |
24489 | ac_cpp_err=yes | |
24490 | fi | |
24491 | if test -z "$ac_cpp_err"; then | |
24492 | ac_header_preproc=yes | |
24493 | else | |
24494 | echo "$as_me: failed program was:" >&5 | |
24495 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24496 | ||
24497 | ac_header_preproc=no | |
24498 | fi | |
24499 | rm -f conftest.err conftest.$ac_ext | |
24500 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24501 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24502 | ||
24503 | # So? What about this header? | |
24504 | case $ac_header_compiler:$ac_header_preproc in | |
24505 | yes:no ) | |
24506 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24507 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24508 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24509 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24510 | ( | |
24511 | cat <<\_ASBOX | |
24512 | ## ------------------------------------ ## | |
24513 | ## Report this to bug-autoconf@gnu.org. ## | |
24514 | ## ------------------------------------ ## | |
24515 | _ASBOX | |
24516 | ) | | |
24517 | sed "s/^/$as_me: WARNING: /" >&2 | |
24518 | ;; | |
24519 | no:yes ) | |
24520 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 | |
24521 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
24522 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 | |
24523 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
24524 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 | |
24525 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24526 | ( | |
24527 | cat <<\_ASBOX | |
24528 | ## ------------------------------------ ## | |
24529 | ## Report this to bug-autoconf@gnu.org. ## | |
24530 | ## ------------------------------------ ## | |
24531 | _ASBOX | |
24532 | ) | | |
24533 | sed "s/^/$as_me: WARNING: /" >&2 | |
24534 | ;; | |
24535 | esac | |
24536 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24537 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24538 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 24540 | else |
e6cc62c6 VS |
24541 | ac_cv_header_sql_h=$ac_header_preproc |
24542 | fi | |
24543 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24544 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24545 | ||
bb41dcbe VS |
24546 | fi |
24547 | if test $ac_cv_header_sql_h = yes; then | |
24548 | found_sql_h=1 | |
8647bec6 RG |
24549 | fi |
24550 | ||
e6cc62c6 | 24551 | |
bb41dcbe VS |
24552 | if test "x$found_sql_h" = "x1" ; then |
24553 | echo "$as_me:$LINENO: checking for iodbc in -lSQLAllocEnv" >&5 | |
24554 | echo $ECHO_N "checking for iodbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24555 | if test "${ac_cv_lib_SQLAllocEnv_iodbc+set}" = set; then | |
e6cc62c6 | 24556 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647bec6 | 24557 | else |
bb41dcbe VS |
24558 | ac_check_lib_save_LIBS=$LIBS |
24559 | LIBS="-lSQLAllocEnv $LIBS" | |
e6cc62c6 VS |
24560 | cat >conftest.$ac_ext <<_ACEOF |
24561 | #line $LINENO "configure" | |
24562 | /* confdefs.h. */ | |
24563 | _ACEOF | |
24564 | cat confdefs.h >>conftest.$ac_ext | |
24565 | cat >>conftest.$ac_ext <<_ACEOF | |
24566 | /* end confdefs.h. */ | |
24567 | ||
8647bec6 | 24568 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24569 | #ifdef __cplusplus |
24570 | extern "C" | |
24571 | #endif | |
8647bec6 | 24572 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 24573 | builtin and then its argument prototype would still apply. */ |
bb41dcbe | 24574 | char iodbc (); |
e6cc62c6 VS |
24575 | int |
24576 | main () | |
24577 | { | |
bb41dcbe | 24578 | iodbc (); |
e6cc62c6 VS |
24579 | ; |
24580 | return 0; | |
24581 | } | |
24582 | _ACEOF | |
24583 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24585 | (eval $ac_link) 2>&5 | |
24586 | ac_status=$? | |
24587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24588 | (exit $ac_status); } && | |
24589 | { ac_try='test -s conftest$ac_exeext' | |
24590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24591 | (eval $ac_try) 2>&5 | |
24592 | ac_status=$? | |
24593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24594 | (exit $ac_status); }; }; then | |
bb41dcbe | 24595 | ac_cv_lib_SQLAllocEnv_iodbc=yes |
8647bec6 | 24596 | else |
e6cc62c6 VS |
24597 | echo "$as_me: failed program was:" >&5 |
24598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24599 | ||
bb41dcbe | 24600 | ac_cv_lib_SQLAllocEnv_iodbc=no |
8647bec6 | 24601 | fi |
e6cc62c6 | 24602 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe VS |
24603 | LIBS=$ac_check_lib_save_LIBS |
24604 | fi | |
24605 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_iodbc" >&5 | |
24606 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_iodbc" >&6 | |
24607 | if test $ac_cv_lib_SQLAllocEnv_iodbc = yes; then | |
24608 | ODBC_LINK=" -liodbc" | |
24609 | else | |
24610 | ||
24611 | echo "$as_me:$LINENO: checking for unixodbc in -lSQLAllocEnv" >&5 | |
24612 | echo $ECHO_N "checking for unixodbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24613 | if test "${ac_cv_lib_SQLAllocEnv_unixodbc+set}" = set; then | |
24614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24615 | else | |
24616 | ac_check_lib_save_LIBS=$LIBS | |
24617 | LIBS="-lSQLAllocEnv $LIBS" | |
24618 | cat >conftest.$ac_ext <<_ACEOF | |
e6cc62c6 VS |
24619 | #line $LINENO "configure" |
24620 | /* confdefs.h. */ | |
24621 | _ACEOF | |
24622 | cat confdefs.h >>conftest.$ac_ext | |
24623 | cat >>conftest.$ac_ext <<_ACEOF | |
24624 | /* end confdefs.h. */ | |
24625 | ||
8647bec6 | 24626 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24627 | #ifdef __cplusplus |
24628 | extern "C" | |
24629 | #endif | |
8647bec6 | 24630 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 24631 | builtin and then its argument prototype would still apply. */ |
bb41dcbe | 24632 | char unixodbc (); |
e6cc62c6 VS |
24633 | int |
24634 | main () | |
24635 | { | |
bb41dcbe | 24636 | unixodbc (); |
e6cc62c6 VS |
24637 | ; |
24638 | return 0; | |
24639 | } | |
24640 | _ACEOF | |
24641 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24643 | (eval $ac_link) 2>&5 | |
24644 | ac_status=$? | |
24645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24646 | (exit $ac_status); } && | |
24647 | { ac_try='test -s conftest$ac_exeext' | |
24648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24649 | (eval $ac_try) 2>&5 | |
24650 | ac_status=$? | |
24651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24652 | (exit $ac_status); }; }; then | |
bb41dcbe | 24653 | ac_cv_lib_SQLAllocEnv_unixodbc=yes |
8647bec6 | 24654 | else |
e6cc62c6 VS |
24655 | echo "$as_me: failed program was:" >&5 |
24656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24657 | ||
bb41dcbe | 24658 | ac_cv_lib_SQLAllocEnv_unixodbc=no |
8647bec6 | 24659 | fi |
e6cc62c6 | 24660 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe | 24661 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 24662 | fi |
bb41dcbe VS |
24663 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_unixodbc" >&5 |
24664 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_unixodbc" >&6 | |
24665 | if test $ac_cv_lib_SQLAllocEnv_unixodbc = yes; then | |
24666 | ODBC_LINK=" -lunixodbc" | |
24667 | else | |
24668 | ||
24669 | echo "$as_me:$LINENO: checking for odbc in -lSQLAllocEnv" >&5 | |
24670 | echo $ECHO_N "checking for odbc in -lSQLAllocEnv... $ECHO_C" >&6 | |
24671 | if test "${ac_cv_lib_SQLAllocEnv_odbc+set}" = set; then | |
24672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24673 | else | |
24674 | ac_check_lib_save_LIBS=$LIBS | |
24675 | LIBS="-lSQLAllocEnv $LIBS" | |
24676 | cat >conftest.$ac_ext <<_ACEOF | |
24677 | #line $LINENO "configure" | |
24678 | /* confdefs.h. */ | |
24679 | _ACEOF | |
24680 | cat confdefs.h >>conftest.$ac_ext | |
24681 | cat >>conftest.$ac_ext <<_ACEOF | |
24682 | /* end confdefs.h. */ | |
e6cc62c6 | 24683 | |
bb41dcbe VS |
24684 | /* Override any gcc2 internal prototype to avoid an error. */ |
24685 | #ifdef __cplusplus | |
24686 | extern "C" | |
24687 | #endif | |
24688 | /* We use char because int might match the return type of a gcc2 | |
24689 | builtin and then its argument prototype would still apply. */ | |
24690 | char odbc (); | |
24691 | int | |
24692 | main () | |
24693 | { | |
24694 | odbc (); | |
24695 | ; | |
24696 | return 0; | |
24697 | } | |
24698 | _ACEOF | |
24699 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24700 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
24701 | (eval $ac_link) 2>&5 | |
24702 | ac_status=$? | |
24703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24704 | (exit $ac_status); } && | |
24705 | { ac_try='test -s conftest$ac_exeext' | |
24706 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24707 | (eval $ac_try) 2>&5 | |
24708 | ac_status=$? | |
24709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24710 | (exit $ac_status); }; }; then | |
24711 | ac_cv_lib_SQLAllocEnv_odbc=yes | |
e6cc62c6 | 24712 | else |
bb41dcbe VS |
24713 | echo "$as_me: failed program was:" >&5 |
24714 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24715 | ||
24716 | ac_cv_lib_SQLAllocEnv_odbc=no | |
24717 | fi | |
24718 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
24719 | LIBS=$ac_check_lib_save_LIBS | |
24720 | fi | |
24721 | echo "$as_me:$LINENO: result: $ac_cv_lib_SQLAllocEnv_odbc" >&5 | |
24722 | echo "${ECHO_T}$ac_cv_lib_SQLAllocEnv_odbc" >&6 | |
24723 | if test $ac_cv_lib_SQLAllocEnv_odbc = yes; then | |
24724 | ODBC_LINK=" -lodbc" | |
24725 | fi | |
24726 | ||
24727 | ||
24728 | fi | |
e6cc62c6 | 24729 | |
e6cc62c6 | 24730 | |
8647bec6 | 24731 | fi |
e6cc62c6 | 24732 | |
fd3d7534 | 24733 | fi |
bb41dcbe VS |
24734 | if test "x$ODBC_LINK" = "x" ; then |
24735 | if test "$wxUSE_ODBC" = "sys" ; then | |
24736 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
24737 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
24738 | { (exit 1); exit 1; }; } | |
24739 | else | |
24740 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
24741 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
24742 | wxUSE_ODBC=builtin | |
24743 | fi | |
24744 | else | |
24745 | wxUSE_ODBC=sys | |
8647bec6 | 24746 | fi |
8647bec6 | 24747 | fi |
bb41dcbe VS |
24748 | if test "$wxUSE_ODBC" != "no" ; then |
24749 | cat >>confdefs.h <<\_ACEOF | |
24750 | #define wxUSE_ODBC 1 | |
24751 | _ACEOF | |
e6cc62c6 | 24752 | |
0bdb08e7 VS |
24753 | if test "$wxUSE_ODBC" = "builtin" ; then |
24754 | cat >>confdefs.h <<\_ACEOF | |
24755 | #define wxUSE_BUILTIN_IODBC 1 | |
24756 | _ACEOF | |
24757 | ||
24758 | fi | |
bb41dcbe VS |
24759 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
24760 | ||
24761 | WXODBCFLAG="-D_IODBC_" | |
24762 | fi | |
6232543b | 24763 | fi |
21d1c967 GD |
24764 | |
24765 | if test "$wxUSE_REGEX" = "builtin" ; then | |
24766 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 24767 | fi |
21d1c967 GD |
24768 | if test "$wxUSE_ZLIB" = "builtin" ; then |
24769 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
24770 | fi |
24771 | ||
8284b0c5 | 24772 | |
4d264332 | 24773 | USE_OPENGL=0 |
21d1c967 | 24774 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 24775 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
24776 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
24777 | elif test "$wxUSE_MSW" = 1; then | |
24778 | OPENGL_LIBS="-lopengl32 -lglu32" | |
24779 | else | |
01aa5863 VS |
24780 | |
24781 | ||
24782 | ac_find_includes= | |
24783 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24784 | do | |
24785 | if test -f "$ac_dir/GL/gl.h"; then | |
24786 | ac_find_includes=$ac_dir | |
24787 | break | |
24788 | fi | |
24789 | done | |
24790 | ||
24791 | if test "$ac_find_includes" != "" ; then | |
24792 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
24793 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
01aa5863 VS |
24794 | |
24795 | if test "x$ac_find_includes" = "x/usr/include"; then | |
24796 | ac_path_to_include="" | |
24797 | else | |
24798 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
24799 | result=$? | |
24800 | if test $result = 0; then | |
24801 | ac_path_to_include="" | |
24802 | else | |
24803 | ac_path_to_include=" -I$ac_find_includes" | |
24804 | fi | |
24805 | fi | |
24806 | ||
24807 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
01aa5863 VS |
24808 | fi |
24809 | ||
e6cc62c6 VS |
24810 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
24811 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24812 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24813 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24814 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24815 | fi | |
24816 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
24817 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24818 | else | |
24819 | # Is the header compilable? | |
24820 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
24821 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
24822 | cat >conftest.$ac_ext <<_ACEOF | |
24823 | #line $LINENO "configure" | |
24824 | /* confdefs.h. */ | |
24825 | _ACEOF | |
24826 | cat confdefs.h >>conftest.$ac_ext | |
24827 | cat >>conftest.$ac_ext <<_ACEOF | |
24828 | /* end confdefs.h. */ | |
24829 | $ac_includes_default | |
21d1c967 | 24830 | #include <GL/gl.h> |
e6cc62c6 VS |
24831 | _ACEOF |
24832 | rm -f conftest.$ac_objext | |
24833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
24834 | (eval $ac_compile) 2>&5 | |
24835 | ac_status=$? | |
24836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24837 | (exit $ac_status); } && | |
24838 | { ac_try='test -s conftest.$ac_objext' | |
24839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
24840 | (eval $ac_try) 2>&5 | |
24841 | ac_status=$? | |
24842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24843 | (exit $ac_status); }; }; then | |
24844 | ac_header_compiler=yes | |
24845 | else | |
24846 | echo "$as_me: failed program was:" >&5 | |
24847 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24848 | ||
24849 | ac_header_compiler=no | |
24850 | fi | |
24851 | rm -f conftest.$ac_objext conftest.$ac_ext | |
24852 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
24853 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24854 | ||
24855 | # Is the header present? | |
24856 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
24857 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
24858 | cat >conftest.$ac_ext <<_ACEOF | |
24859 | #line $LINENO "configure" | |
24860 | /* confdefs.h. */ | |
24861 | _ACEOF | |
24862 | cat confdefs.h >>conftest.$ac_ext | |
24863 | cat >>conftest.$ac_ext <<_ACEOF | |
24864 | /* end confdefs.h. */ | |
24865 | #include <GL/gl.h> | |
24866 | _ACEOF | |
24867 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24868 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24869 | ac_status=$? | |
24870 | grep -v '^ *+' conftest.er1 >conftest.err | |
24871 | rm -f conftest.er1 | |
24872 | cat conftest.err >&5 | |
24873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24874 | (exit $ac_status); } >/dev/null; then | |
24875 | if test -s conftest.err; then | |
24876 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24877 | else | |
24878 | ac_cpp_err= | |
24879 | fi | |
24880 | else | |
24881 | ac_cpp_err=yes | |
24882 | fi | |
24883 | if test -z "$ac_cpp_err"; then | |
24884 | ac_header_preproc=yes | |
24885 | else | |
24886 | echo "$as_me: failed program was:" >&5 | |
24887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24888 | ||
24889 | ac_header_preproc=no | |
24890 | fi | |
24891 | rm -f conftest.err conftest.$ac_ext | |
24892 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24893 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24894 | ||
24895 | # So? What about this header? | |
24896 | case $ac_header_compiler:$ac_header_preproc in | |
24897 | yes:no ) | |
24898 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
24899 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
24900 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24901 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24902 | ( | |
24903 | cat <<\_ASBOX | |
24904 | ## ------------------------------------ ## | |
24905 | ## Report this to bug-autoconf@gnu.org. ## | |
24906 | ## ------------------------------------ ## | |
24907 | _ASBOX | |
24908 | ) | | |
24909 | sed "s/^/$as_me: WARNING: /" >&2 | |
24910 | ;; | |
24911 | no:yes ) | |
24912 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 | |
24913 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
24914 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 | |
24915 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
24916 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 | |
24917 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
24918 | ( | |
24919 | cat <<\_ASBOX | |
24920 | ## ------------------------------------ ## | |
24921 | ## Report this to bug-autoconf@gnu.org. ## | |
24922 | ## ------------------------------------ ## | |
24923 | _ASBOX | |
24924 | ) | | |
24925 | sed "s/^/$as_me: WARNING: /" >&2 | |
24926 | ;; | |
24927 | esac | |
24928 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
24929 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
24930 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
24931 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24932 | else | |
24933 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 24934 | fi |
e6cc62c6 VS |
24935 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
24936 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
24937 | ||
698dcdb6 | 24938 | fi |
e6cc62c6 VS |
24939 | if test $ac_cv_header_GL_gl_h = yes; then |
24940 | ||
89e3b3e4 VZ |
24941 | found_gl=0 |
24942 | ||
e6cc62c6 VS |
24943 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
24944 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
24945 | ||
21d1c967 | 24946 | ac_find_libraries= |
2b5f62a0 | 24947 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24948 | do |
24949 | for ac_extension in a so sl dylib; do | |
24950 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
24951 | ac_find_libraries=$ac_dir | |
24952 | break 2 | |
24953 | fi | |
24954 | done | |
24955 | done | |
24956 | ||
24957 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24958 | |
21d1c967 GD |
24959 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24960 | result=$? | |
24961 | if test $result = 0; then | |
24962 | ac_path_to_link="" | |
24963 | else | |
24964 | ac_path_to_link=" -L$ac_find_libraries" | |
24965 | fi | |
24966 | ||
89e3b3e4 VZ |
24967 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
24968 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 24969 | fi |
89e3b3e4 | 24970 | |
e6cc62c6 | 24971 | |
89e3b3e4 VZ |
24972 | ac_find_libraries= |
24973 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24974 | do | |
24975 | for ac_extension in a so sl dylib; do | |
24976 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
24977 | ac_find_libraries=$ac_dir | |
24978 | break 2 | |
24979 | fi | |
24980 | done | |
24981 | done | |
24982 | ||
24983 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 24984 | |
89e3b3e4 VZ |
24985 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
24986 | result=$? | |
24987 | if test $result = 0; then | |
24988 | ac_path_to_link="" | |
24989 | else | |
24990 | ac_path_to_link=" -L$ac_find_libraries" | |
24991 | fi | |
24992 | ||
24993 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
24994 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
24995 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
24996 | fi | |
24997 | ||
24998 | found_gl=1 | |
24999 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
25000 | echo "$as_me:$LINENO: result: yes" >&5 |
25001 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
25002 | fi |
25003 | fi | |
25004 | ||
bb41dcbe | 25005 | if test "$found_gl" != 1; then |
e6cc62c6 VS |
25006 | echo "$as_me:$LINENO: result: no" >&5 |
25007 | echo "${ECHO_T}no" >&6 | |
25008 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
25009 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
25010 | ||
21d1c967 | 25011 | ac_find_libraries= |
2b5f62a0 | 25012 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
25013 | do |
25014 | for ac_extension in a so sl dylib; do | |
25015 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
25016 | ac_find_libraries=$ac_dir | |
25017 | break 2 | |
25018 | fi | |
25019 | done | |
25020 | done | |
25021 | ||
25022 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25023 | |
21d1c967 GD |
25024 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25025 | result=$? | |
25026 | if test $result = 0; then | |
25027 | ac_path_to_link="" | |
25028 | else | |
25029 | ac_path_to_link=" -L$ac_find_libraries" | |
25030 | fi | |
25031 | ||
25032 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
25033 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
25034 | echo "$as_me:$LINENO: result: yes" >&5 |
25035 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 25036 | else |
e6cc62c6 VS |
25037 | echo "$as_me:$LINENO: result: no" >&5 |
25038 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
25039 | fi |
25040 | fi | |
e6cc62c6 | 25041 | |
5c6fa7d2 | 25042 | fi |
52127426 | 25043 | |
8284b0c5 | 25044 | |
e6cc62c6 | 25045 | |
21d1c967 | 25046 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
25047 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
25048 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
25049 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
25050 | fi |
25051 | fi | |
90dd450c | 25052 | |
21d1c967 | 25053 | if test "$wxUSE_OPENGL" = "yes"; then |
4d264332 | 25054 | USE_OPENGL=1 |
e6cc62c6 | 25055 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 25056 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 25057 | _ACEOF |
21d1c967 | 25058 | |
e6cc62c6 | 25059 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 25060 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 25061 | _ACEOF |
21d1c967 | 25062 | |
520755bb | 25063 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" |
21d1c967 | 25064 | fi |
10f2d63a | 25065 | fi |
21d1c967 GD |
25066 | |
25067 | if test -z "$TOOLKIT_VPATH" ; then | |
25068 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 25069 | fi |
21d1c967 GD |
25070 | |
25071 | if test -n "$TOOLKIT" ; then | |
25072 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
25073 | fi | |
25074 | ||
fe0895cf | 25075 | UNICODE=0 |
21d1c967 GD |
25076 | lib_unicode_suffix= |
25077 | if test "$wxUSE_UNICODE" = "yes"; then | |
25078 | lib_unicode_suffix=u | |
fe0895cf | 25079 | UNICODE=1 |
90dd450c | 25080 | fi |
698dcdb6 | 25081 | |
21d1c967 | 25082 | lib_debug_suffix= |
6c67131a | 25083 | DEBUG_FLAG=0 |
21d1c967 GD |
25084 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
25085 | lib_debug_suffix=d | |
6c67131a VS |
25086 | DEBUG_FLAG=1 |
25087 | fi | |
25088 | ||
25089 | DEBUG_INFO=0 | |
25090 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
25091 | DEBUG_INFO=1 | |
21d1c967 | 25092 | fi |
698dcdb6 | 25093 | |
1cbb95a2 | 25094 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
2b5f62a0 VZ |
25095 | |
25096 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
25097 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
25098 | |
25099 | if test "$cross_compiling" = "yes"; then | |
25100 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
25101 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
ea66c762 | 25102 | HOST_SUFFIX="-${host_alias}" |
21d1c967 GD |
25103 | fi |
25104 | ||
25105 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
25106 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
cf615ebb VS |
25107 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" |
25108 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
21d1c967 GD |
25109 | |
25110 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
25111 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
25112 | ||
25113 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
25114 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
25115 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
25116 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
25117 | ||
25118 | case "${host}" in | |
25119 | *-*-cygwin* | *-*-mingw32* ) | |
ec67c474 VS |
25120 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" |
25121 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
21d1c967 GD |
25122 | ;; |
25123 | ||
25124 | *-*-darwin* ) | |
e6cc62c6 | 25125 | |
05159a27 GD |
25126 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
25127 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
25128 | ||
25129 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
25130 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
25131 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
25132 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
25133 | ||
21d1c967 | 25134 | if test "$wxUSE_MAC" = 1; then |
f346733b GD |
25135 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" |
25136 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
21d1c967 GD |
25137 | fi |
25138 | ;; | |
25139 | esac | |
25140 | ||
25141 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
25142 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
25143 | ||
25144 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
25145 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
25146 | ||
25147 | if test "$wxUSE_OPENGL" = "yes"; then | |
25148 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
25149 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
25150 | fi | |
25151 | ||
8284b0c5 MB |
25152 | |
25153 | ||
21d1c967 GD |
25154 | if test "$wxUSE_SHARED" = "yes"; then |
25155 | case "${host}" in | |
25156 | *-pc-os2_emx | *-pc-os2-emx | \ | |
25157 | *-pc-msdosdjgpp ) | |
25158 | wxUSE_SHARED=no | |
e6cc62c6 VS |
25159 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
25160 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
25161 | ;; |
25162 | esac | |
25163 | fi | |
25164 | ||
fe0895cf | 25165 | SHARED=0 |
2b5f62a0 | 25166 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 25167 | SHARED=1 |
2b5f62a0 | 25168 | |
e6cc62c6 | 25169 | |
2b5f62a0 VZ |
25170 | found_versioning=no |
25171 | ||
e6cc62c6 | 25172 | |
2b5f62a0 | 25173 | if test $found_versioning = no ; then |
e6cc62c6 VS |
25174 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
25175 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
25176 | if test "${wx_cv_version_script+set}" = set; then | |
25177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 25178 | else |
e6cc62c6 | 25179 | |
2b5f62a0 VZ |
25180 | echo "VER_1 { *; };" >conftest.sym |
25181 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 25182 | |
2b5f62a0 VZ |
25183 | if { ac_try=' |
25184 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
25185 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
25186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25187 | (eval $ac_try) 2>&5 | |
25188 | ac_status=$? | |
25189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25190 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
25191 | if test -s conftest.stderr ; then |
25192 | wx_cv_version_script=no | |
25193 | else | |
25194 | wx_cv_version_script=yes | |
25195 | fi | |
25196 | else | |
25197 | wx_cv_version_script=no | |
25198 | fi | |
25199 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 25200 | |
e6cc62c6 VS |
25201 | fi |
25202 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
25203 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 25204 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 25205 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
25206 | fi |
25207 | fi | |
21d1c967 | 25208 | |
21d1c967 | 25209 | |
21d1c967 | 25210 | case "${host}" in |
fe0895cf | 25211 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 25212 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
345b8952 | 25213 | ;; |
21d1c967 GD |
25214 | |
25215 | *-*-solaris2* ) | |
25216 | if test "$GCC" = yes ; then | |
25217 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
25218 | |
25219 | saveLdflags="$LDFLAGS" | |
25220 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
25221 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
25222 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
25223 | cat >conftest.$ac_ext <<_ACEOF | |
25224 | #line $LINENO "configure" | |
25225 | /* confdefs.h. */ | |
25226 | _ACEOF | |
25227 | cat confdefs.h >>conftest.$ac_ext | |
25228 | cat >>conftest.$ac_ext <<_ACEOF | |
25229 | /* end confdefs.h. */ | |
25230 | ||
25231 | int | |
25232 | main () | |
25233 | { | |
fe0895cf | 25234 | |
e6cc62c6 VS |
25235 | ; |
25236 | return 0; | |
25237 | } | |
25238 | _ACEOF | |
25239 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25241 | (eval $ac_link) 2>&5 | |
25242 | ac_status=$? | |
25243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25244 | (exit $ac_status); } && | |
25245 | { ac_try='test -s conftest$ac_exeext' | |
25246 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25247 | (eval $ac_try) 2>&5 | |
25248 | ac_status=$? | |
25249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25250 | (exit $ac_status); }; }; then | |
25251 | ||
25252 | echo "$as_me:$LINENO: result: yes" >&5 | |
25253 | echo "${ECHO_T}yes" >&6 | |
25254 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
25255 | ||
25256 | else | |
25257 | echo "$as_me: failed program was:" >&5 | |
25258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25259 | ||
25260 | ||
25261 | echo "$as_me:$LINENO: result: no" >&5 | |
25262 | echo "${ECHO_T}no" >&6 | |
25263 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
25264 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 25265 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 VS |
25266 | cat >conftest.$ac_ext <<_ACEOF |
25267 | #line $LINENO "configure" | |
25268 | /* confdefs.h. */ | |
25269 | _ACEOF | |
25270 | cat confdefs.h >>conftest.$ac_ext | |
25271 | cat >>conftest.$ac_ext <<_ACEOF | |
25272 | /* end confdefs.h. */ | |
25273 | ||
25274 | int | |
25275 | main () | |
25276 | { | |
25277 | ||
25278 | ; | |
25279 | return 0; | |
25280 | } | |
25281 | _ACEOF | |
25282 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25283 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
25284 | (eval $ac_link) 2>&5 | |
25285 | ac_status=$? | |
25286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25287 | (exit $ac_status); } && | |
25288 | { ac_try='test -s conftest$ac_exeext' | |
25289 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25290 | (eval $ac_try) 2>&5 | |
25291 | ac_status=$? | |
25292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25293 | (exit $ac_status); }; }; then | |
25294 | ||
25295 | echo "$as_me:$LINENO: result: yes" >&5 | |
25296 | echo "${ECHO_T}yes" >&6 | |
25297 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
25298 | else | |
25299 | echo "$as_me: failed program was:" >&5 | |
25300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 25301 | |
fe0895cf | 25302 | |
e6cc62c6 VS |
25303 | echo "$as_me:$LINENO: result: no" >&5 |
25304 | echo "${ECHO_T}no" >&6 | |
25305 | ||
fe0895cf | 25306 | fi |
e6cc62c6 VS |
25307 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
25308 | ||
25309 | fi | |
25310 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
fe0895cf | 25311 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
25312 | else |
25313 | SHARED_LD="${CXX} -G -o" | |
25314 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 25315 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
25316 | fi |
25317 | ;; | |
0f1bc9c2 VS |
25318 | |
25319 | powerpc-*-darwin* ) | |
ef0add05 VS |
25320 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" |
25321 | cat <<EOF >change-install-names | |
25322 | #!/bin/sh | |
25323 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
25324 | inst_cmd="install_name_tool " | |
25325 | for i in \${libnames} ; do | |
25326 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
25327 | done | |
25328 | \${inst_cmd} \${3} | |
25329 | EOF | |
25330 | chmod +x change-install-names | |
0f1bc9c2 VS |
25331 | ;; |
25332 | ||
21d1c967 GD |
25333 | esac |
25334 | ||
25335 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
25336 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
25337 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
25338 | fi | |
25339 | ||
25340 | WX_TARGET_LIBRARY_TYPE="so" | |
25341 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 25342 | fi |
10f2d63a | 25343 | |
21d1c967 GD |
25344 | if test "$wxUSE_SHARED" = "no"; then |
25345 | ||
25346 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
25347 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
25348 | fi | |
25349 | ||
ac0c4cc3 | 25350 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
25351 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
25352 | fi | |
25353 | ||
25354 | if test "$wxUSE_OPENGL" = "yes"; then | |
25355 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
25356 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
25357 | else | |
25358 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
25359 | fi | |
25360 | ||
25361 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
25362 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
25363 | ||
25364 | WX_TARGET_LIBRARY_TYPE="a" | |
25365 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
25366 | |
25367 | STATIC_FLAG="yes" | |
25368 | else | |
25369 | STATIC_FLAG="no" | |
90dd450c | 25370 | fi |
1e487827 | 25371 | |
93fac604 VZ |
25372 | MACRESCOMP="@#" |
25373 | MACSETFILE="@#" | |
36825681 | 25374 | MACRESWXCONFIG="#" |
21d1c967 | 25375 | if test "$wxUSE_MAC" = 1; then |
e6cc62c6 | 25376 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
25377 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
25378 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
25379 | # Extract the first word of "Rez", so it can be a program name with args. | |
25380 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25381 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25383 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 25385 | else |
21d1c967 GD |
25386 | if test -n "$RESCOMP"; then |
25387 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 25388 | else |
e6cc62c6 VS |
25389 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25390 | for as_dir in $PATH | |
25391 | do | |
25392 | IFS=$as_save_IFS | |
25393 | test -z "$as_dir" && as_dir=. | |
25394 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25395 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25396 | ac_cv_prog_RESCOMP="Rez" | |
25397 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25398 | break 2 | |
25399 | fi | |
25400 | done | |
25401 | done | |
25402 | ||
21d1c967 | 25403 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 25404 | fi |
b93d0d08 | 25405 | fi |
e6cc62c6 | 25406 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 25407 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25408 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25409 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 25410 | else |
e6cc62c6 VS |
25411 | echo "$as_me:$LINENO: result: no" >&5 |
25412 | echo "${ECHO_T}no" >&6 | |
90dd450c | 25413 | fi |
b93d0d08 | 25414 | |
21d1c967 GD |
25415 | # Extract the first word of "DeRez", so it can be a program name with args. |
25416 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25417 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25418 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25419 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25420 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 25421 | else |
21d1c967 GD |
25422 | if test -n "$DEREZ"; then |
25423 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 25424 | else |
e6cc62c6 VS |
25425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25426 | for as_dir in $PATH | |
25427 | do | |
25428 | IFS=$as_save_IFS | |
25429 | test -z "$as_dir" && as_dir=. | |
25430 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25431 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25432 | ac_cv_prog_DEREZ="DeRez" | |
25433 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25434 | break 2 | |
25435 | fi | |
25436 | done | |
25437 | done | |
25438 | ||
21d1c967 | 25439 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 25440 | fi |
90dd450c | 25441 | fi |
e6cc62c6 | 25442 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 25443 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25444 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25445 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 25446 | else |
e6cc62c6 VS |
25447 | echo "$as_me:$LINENO: result: no" >&5 |
25448 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 25449 | fi |
698dcdb6 | 25450 | |
36825681 GD |
25451 | # Extract the first word of "SetFile", so it can be a program name with args. |
25452 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25453 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25454 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25455 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
25457 | else |
25458 | if test -n "$SETFILE"; then | |
25459 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25460 | else | |
e6cc62c6 VS |
25461 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25462 | for as_dir in $PATH | |
25463 | do | |
25464 | IFS=$as_save_IFS | |
25465 | test -z "$as_dir" && as_dir=. | |
25466 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25467 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25468 | ac_cv_prog_SETFILE="SetFile" | |
25469 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25470 | break 2 | |
25471 | fi | |
25472 | done | |
25473 | done | |
25474 | ||
36825681 GD |
25475 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25476 | fi | |
25477 | fi | |
e6cc62c6 | 25478 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 25479 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25480 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25481 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 25482 | else |
e6cc62c6 VS |
25483 | echo "$as_me:$LINENO: result: no" >&5 |
25484 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
25485 | fi |
25486 | ||
21d1c967 | 25487 | MACOSX_BUNDLE="bundle" |
36825681 GD |
25488 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" |
25489 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25490 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
64440d77 DE |
25491 | elif test "$wxUSE_COCOA" = 1; then |
25492 | # Extract the first word of "Rez", so it can be a program name with args. | |
25493 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25494 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25495 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25496 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25498 | else |
25499 | if test -n "$RESCOMP"; then | |
25500 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
25501 | else | |
e6cc62c6 VS |
25502 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25503 | for as_dir in $PATH | |
25504 | do | |
25505 | IFS=$as_save_IFS | |
25506 | test -z "$as_dir" && as_dir=. | |
25507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25508 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25509 | ac_cv_prog_RESCOMP="Rez" | |
25510 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25511 | break 2 | |
25512 | fi | |
25513 | done | |
25514 | done | |
25515 | ||
64440d77 DE |
25516 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
25517 | fi | |
25518 | fi | |
e6cc62c6 | 25519 | RESCOMP=$ac_cv_prog_RESCOMP |
64440d77 | 25520 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25521 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25522 | echo "${ECHO_T}$RESCOMP" >&6 | |
64440d77 | 25523 | else |
e6cc62c6 VS |
25524 | echo "$as_me:$LINENO: result: no" >&5 |
25525 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25526 | fi |
25527 | ||
25528 | # Extract the first word of "DeRez", so it can be a program name with args. | |
25529 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25530 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25531 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25532 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25534 | else |
25535 | if test -n "$DEREZ"; then | |
25536 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
25537 | else | |
e6cc62c6 VS |
25538 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25539 | for as_dir in $PATH | |
25540 | do | |
25541 | IFS=$as_save_IFS | |
25542 | test -z "$as_dir" && as_dir=. | |
25543 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25544 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25545 | ac_cv_prog_DEREZ="DeRez" | |
25546 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25547 | break 2 | |
25548 | fi | |
25549 | done | |
25550 | done | |
25551 | ||
64440d77 DE |
25552 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
25553 | fi | |
25554 | fi | |
e6cc62c6 | 25555 | DEREZ=$ac_cv_prog_DEREZ |
64440d77 | 25556 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25557 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25558 | echo "${ECHO_T}$DEREZ" >&6 | |
64440d77 | 25559 | else |
e6cc62c6 VS |
25560 | echo "$as_me:$LINENO: result: no" >&5 |
25561 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25562 | fi |
25563 | ||
25564 | # Extract the first word of "SetFile", so it can be a program name with args. | |
25565 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25566 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25568 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
64440d77 DE |
25570 | else |
25571 | if test -n "$SETFILE"; then | |
25572 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25573 | else | |
e6cc62c6 VS |
25574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25575 | for as_dir in $PATH | |
25576 | do | |
25577 | IFS=$as_save_IFS | |
25578 | test -z "$as_dir" && as_dir=. | |
25579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25580 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25581 | ac_cv_prog_SETFILE="SetFile" | |
25582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25583 | break 2 | |
25584 | fi | |
25585 | done | |
25586 | done | |
25587 | ||
64440d77 DE |
25588 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25589 | fi | |
25590 | fi | |
e6cc62c6 | 25591 | SETFILE=$ac_cv_prog_SETFILE |
64440d77 | 25592 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25593 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25594 | echo "${ECHO_T}$SETFILE" >&6 | |
64440d77 | 25595 | else |
e6cc62c6 VS |
25596 | echo "$as_me:$LINENO: result: no" >&5 |
25597 | echo "${ECHO_T}no" >&6 | |
64440d77 DE |
25598 | fi |
25599 | ||
25600 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
25601 | MACSETFILE="\$(SETFILE)" | |
9711d31e | 25602 | MACRESWXCONFIG="echo -n | ${RESCOMP} -d __DARWIN__ -t APPL \${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
21d1c967 GD |
25603 | else |
25604 | if test "$wxUSE_PM" = 1; then | |
36825681 | 25605 | MACRESCOMP="emxbind -ep" |
90dd450c | 25606 | fi |
4f14bcd8 | 25607 | fi |
10f2d63a | 25608 | |
8284b0c5 | 25609 | |
e6cc62c6 VS |
25610 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
25611 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
25612 | if test "${ac_cv_type_mode_t+set}" = set; then | |
25613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 25614 | else |
e6cc62c6 VS |
25615 | cat >conftest.$ac_ext <<_ACEOF |
25616 | #line $LINENO "configure" | |
25617 | /* confdefs.h. */ | |
25618 | _ACEOF | |
25619 | cat confdefs.h >>conftest.$ac_ext | |
25620 | cat >>conftest.$ac_ext <<_ACEOF | |
25621 | /* end confdefs.h. */ | |
25622 | $ac_includes_default | |
25623 | int | |
25624 | main () | |
25625 | { | |
25626 | if ((mode_t *) 0) | |
25627 | return 0; | |
25628 | if (sizeof (mode_t)) | |
25629 | return 0; | |
25630 | ; | |
25631 | return 0; | |
25632 | } | |
25633 | _ACEOF | |
25634 | rm -f conftest.$ac_objext | |
25635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25636 | (eval $ac_compile) 2>&5 | |
25637 | ac_status=$? | |
25638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25639 | (exit $ac_status); } && | |
25640 | { ac_try='test -s conftest.$ac_objext' | |
25641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25642 | (eval $ac_try) 2>&5 | |
25643 | ac_status=$? | |
25644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25645 | (exit $ac_status); }; }; then | |
25646 | ac_cv_type_mode_t=yes | |
a0b9e27f | 25647 | else |
e6cc62c6 VS |
25648 | echo "$as_me: failed program was:" >&5 |
25649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25650 | |
e6cc62c6 | 25651 | ac_cv_type_mode_t=no |
a0b9e27f | 25652 | fi |
e6cc62c6 | 25653 | rm -f conftest.$ac_objext conftest.$ac_ext |
52127426 | 25654 | fi |
e6cc62c6 VS |
25655 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
25656 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
25657 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
25658 | : |
25659 | else | |
a0b9e27f | 25660 | |
e6cc62c6 VS |
25661 | cat >>confdefs.h <<_ACEOF |
25662 | #define mode_t int | |
25663 | _ACEOF | |
8284b0c5 MB |
25664 | |
25665 | fi | |
25666 | ||
e6cc62c6 VS |
25667 | echo "$as_me:$LINENO: checking for off_t" >&5 |
25668 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
25669 | if test "${ac_cv_type_off_t+set}" = set; then | |
25670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25671 | else |
e6cc62c6 VS |
25672 | cat >conftest.$ac_ext <<_ACEOF |
25673 | #line $LINENO "configure" | |
25674 | /* confdefs.h. */ | |
25675 | _ACEOF | |
25676 | cat confdefs.h >>conftest.$ac_ext | |
25677 | cat >>conftest.$ac_ext <<_ACEOF | |
25678 | /* end confdefs.h. */ | |
25679 | $ac_includes_default | |
25680 | int | |
25681 | main () | |
25682 | { | |
25683 | if ((off_t *) 0) | |
25684 | return 0; | |
25685 | if (sizeof (off_t)) | |
25686 | return 0; | |
25687 | ; | |
25688 | return 0; | |
25689 | } | |
25690 | _ACEOF | |
25691 | rm -f conftest.$ac_objext | |
25692 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25693 | (eval $ac_compile) 2>&5 | |
25694 | ac_status=$? | |
25695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25696 | (exit $ac_status); } && | |
25697 | { ac_try='test -s conftest.$ac_objext' | |
25698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25699 | (eval $ac_try) 2>&5 | |
25700 | ac_status=$? | |
25701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25702 | (exit $ac_status); }; }; then | |
25703 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 25704 | else |
e6cc62c6 VS |
25705 | echo "$as_me: failed program was:" >&5 |
25706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25707 | |
e6cc62c6 | 25708 | ac_cv_type_off_t=no |
8284b0c5 | 25709 | fi |
e6cc62c6 | 25710 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 25711 | fi |
e6cc62c6 VS |
25712 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
25713 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
25714 | if test $ac_cv_type_off_t = yes; then | |
25715 | : | |
247f5006 VZ |
25716 | else |
25717 | ||
e6cc62c6 | 25718 | cat >>confdefs.h <<_ACEOF |
90dd450c | 25719 | #define off_t long |
e6cc62c6 | 25720 | _ACEOF |
10f2d63a | 25721 | |
90dd450c | 25722 | fi |
10f2d63a | 25723 | |
e6cc62c6 VS |
25724 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
25725 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
25726 | if test "${ac_cv_type_pid_t+set}" = set; then | |
25727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 25728 | else |
e6cc62c6 VS |
25729 | cat >conftest.$ac_ext <<_ACEOF |
25730 | #line $LINENO "configure" | |
25731 | /* confdefs.h. */ | |
25732 | _ACEOF | |
25733 | cat confdefs.h >>conftest.$ac_ext | |
25734 | cat >>conftest.$ac_ext <<_ACEOF | |
25735 | /* end confdefs.h. */ | |
25736 | $ac_includes_default | |
25737 | int | |
25738 | main () | |
25739 | { | |
25740 | if ((pid_t *) 0) | |
25741 | return 0; | |
25742 | if (sizeof (pid_t)) | |
25743 | return 0; | |
25744 | ; | |
25745 | return 0; | |
25746 | } | |
25747 | _ACEOF | |
25748 | rm -f conftest.$ac_objext | |
25749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25750 | (eval $ac_compile) 2>&5 | |
25751 | ac_status=$? | |
25752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25753 | (exit $ac_status); } && | |
25754 | { ac_try='test -s conftest.$ac_objext' | |
25755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25756 | (eval $ac_try) 2>&5 | |
25757 | ac_status=$? | |
25758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25759 | (exit $ac_status); }; }; then | |
90dd450c | 25760 | ac_cv_type_pid_t=yes |
698dcdb6 | 25761 | else |
e6cc62c6 VS |
25762 | echo "$as_me: failed program was:" >&5 |
25763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25764 | |
e6cc62c6 VS |
25765 | ac_cv_type_pid_t=no |
25766 | fi | |
25767 | rm -f conftest.$ac_objext conftest.$ac_ext | |
a0b9e27f | 25768 | fi |
e6cc62c6 VS |
25769 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
25770 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
25771 | if test $ac_cv_type_pid_t = yes; then | |
25772 | : | |
25773 | else | |
25774 | ||
25775 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25776 | #define pid_t int |
e6cc62c6 | 25777 | _ACEOF |
10f2d63a | 25778 | |
7b4a847f RR |
25779 | fi |
25780 | ||
e6cc62c6 VS |
25781 | echo "$as_me:$LINENO: checking for size_t" >&5 |
25782 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
25783 | if test "${ac_cv_type_size_t+set}" = set; then | |
25784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 25785 | else |
e6cc62c6 VS |
25786 | cat >conftest.$ac_ext <<_ACEOF |
25787 | #line $LINENO "configure" | |
25788 | /* confdefs.h. */ | |
25789 | _ACEOF | |
25790 | cat confdefs.h >>conftest.$ac_ext | |
25791 | cat >>conftest.$ac_ext <<_ACEOF | |
25792 | /* end confdefs.h. */ | |
25793 | $ac_includes_default | |
25794 | int | |
25795 | main () | |
25796 | { | |
25797 | if ((size_t *) 0) | |
25798 | return 0; | |
25799 | if (sizeof (size_t)) | |
25800 | return 0; | |
25801 | ; | |
25802 | return 0; | |
25803 | } | |
25804 | _ACEOF | |
25805 | rm -f conftest.$ac_objext | |
25806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25807 | (eval $ac_compile) 2>&5 | |
25808 | ac_status=$? | |
25809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25810 | (exit $ac_status); } && | |
25811 | { ac_try='test -s conftest.$ac_objext' | |
25812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25813 | (eval $ac_try) 2>&5 | |
25814 | ac_status=$? | |
25815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25816 | (exit $ac_status); }; }; then | |
90dd450c | 25817 | ac_cv_type_size_t=yes |
18dbb1f6 | 25818 | else |
e6cc62c6 VS |
25819 | echo "$as_me: failed program was:" >&5 |
25820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 25821 | |
e6cc62c6 | 25822 | ac_cv_type_size_t=no |
a0b9e27f | 25823 | fi |
e6cc62c6 VS |
25824 | rm -f conftest.$ac_objext conftest.$ac_ext |
25825 | fi | |
25826 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
25827 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
25828 | if test $ac_cv_type_size_t = yes; then | |
25829 | : | |
25830 | else | |
25831 | ||
25832 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 25833 | #define size_t unsigned |
e6cc62c6 | 25834 | _ACEOF |
90dd450c VZ |
25835 | |
25836 | fi | |
25837 | ||
e6cc62c6 VS |
25838 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
25839 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
25840 | if test "${ac_cv_type_uid_t+set}" = set; then | |
25841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 25842 | else |
e6cc62c6 VS |
25843 | cat >conftest.$ac_ext <<_ACEOF |
25844 | #line $LINENO "configure" | |
25845 | /* confdefs.h. */ | |
25846 | _ACEOF | |
25847 | cat confdefs.h >>conftest.$ac_ext | |
25848 | cat >>conftest.$ac_ext <<_ACEOF | |
25849 | /* end confdefs.h. */ | |
90dd450c | 25850 | #include <sys/types.h> |
e6cc62c6 VS |
25851 | |
25852 | _ACEOF | |
90dd450c | 25853 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 25854 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 25855 | ac_cv_type_uid_t=yes |
b3e8d00a | 25856 | else |
90dd450c | 25857 | ac_cv_type_uid_t=no |
b3e8d00a | 25858 | fi |
90dd450c | 25859 | rm -f conftest* |
b3e8d00a | 25860 | |
4f14bcd8 | 25861 | fi |
e6cc62c6 VS |
25862 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
25863 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 25864 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
25865 | |
25866 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25867 | #define uid_t int |
e6cc62c6 | 25868 | _ACEOF |
247f5006 | 25869 | |
e6cc62c6 VS |
25870 | |
25871 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 25872 | #define gid_t int |
e6cc62c6 | 25873 | _ACEOF |
4f14bcd8 | 25874 | |
b3e8d00a | 25875 | fi |
b3e8d00a | 25876 | |
8284b0c5 MB |
25877 | |
25878 | ||
e6cc62c6 VS |
25879 | |
25880 | ac_ext=cc | |
4f14bcd8 | 25881 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
25882 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
25883 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
25884 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
25885 | ||
25886 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
25887 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
25888 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
25889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25890 | else | |
25891 | ||
25892 | cat >conftest.$ac_ext <<_ACEOF | |
25893 | #line $LINENO "configure" | |
25894 | /* confdefs.h. */ | |
25895 | _ACEOF | |
25896 | cat confdefs.h >>conftest.$ac_ext | |
25897 | cat >>conftest.$ac_ext <<_ACEOF | |
25898 | /* end confdefs.h. */ | |
90dd450c | 25899 | #include <stddef.h> |
e6cc62c6 VS |
25900 | int |
25901 | main () | |
25902 | { | |
90dd450c VZ |
25903 | |
25904 | return 0; } | |
25905 | ||
25906 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
25907 | ||
25908 | int bar() { | |
e6cc62c6 VS |
25909 | |
25910 | ; | |
25911 | return 0; | |
25912 | } | |
25913 | _ACEOF | |
25914 | rm -f conftest.$ac_objext | |
25915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25916 | (eval $ac_compile) 2>&5 | |
25917 | ac_status=$? | |
25918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25919 | (exit $ac_status); } && | |
25920 | { ac_try='test -s conftest.$ac_objext' | |
25921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25922 | (eval $ac_try) 2>&5 | |
25923 | ac_status=$? | |
25924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25925 | (exit $ac_status); }; }; then | |
90dd450c | 25926 | wx_cv_size_t_is_uint=no |
698dcdb6 | 25927 | else |
e6cc62c6 VS |
25928 | echo "$as_me: failed program was:" >&5 |
25929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25930 | ||
25931 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 25932 | |
247f5006 | 25933 | fi |
e6cc62c6 VS |
25934 | rm -f conftest.$ac_objext conftest.$ac_ext |
25935 | ||
a0b9e27f | 25936 | |
e6cc62c6 VS |
25937 | fi |
25938 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
25939 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 25940 | |
90dd450c | 25941 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 25942 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 25943 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 25944 | _ACEOF |
698dcdb6 | 25945 | |
90dd450c | 25946 | else |
e6cc62c6 VS |
25947 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
25948 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
25949 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
25950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 25951 | else |
e6cc62c6 VS |
25952 | cat >conftest.$ac_ext <<_ACEOF |
25953 | #line $LINENO "configure" | |
25954 | /* confdefs.h. */ | |
25955 | _ACEOF | |
25956 | cat confdefs.h >>conftest.$ac_ext | |
25957 | cat >>conftest.$ac_ext <<_ACEOF | |
25958 | /* end confdefs.h. */ | |
90dd450c | 25959 | #include <stddef.h> |
e6cc62c6 VS |
25960 | int |
25961 | main () | |
25962 | { | |
90dd450c VZ |
25963 | |
25964 | return 0; } | |
25965 | ||
25966 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
25967 | ||
25968 | int bar() { | |
e6cc62c6 VS |
25969 | |
25970 | ; | |
25971 | return 0; | |
25972 | } | |
25973 | _ACEOF | |
25974 | rm -f conftest.$ac_objext | |
25975 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
25976 | (eval $ac_compile) 2>&5 | |
25977 | ac_status=$? | |
25978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25979 | (exit $ac_status); } && | |
25980 | { ac_try='test -s conftest.$ac_objext' | |
25981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25982 | (eval $ac_try) 2>&5 | |
25983 | ac_status=$? | |
25984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25985 | (exit $ac_status); }; }; then | |
90dd450c | 25986 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 25987 | else |
e6cc62c6 VS |
25988 | echo "$as_me: failed program was:" >&5 |
25989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25990 | ||
25991 | wx_cv_size_t_is_ulong=yes | |
25992 | ||
247f5006 | 25993 | fi |
e6cc62c6 | 25994 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 25995 | |
e6cc62c6 VS |
25996 | fi |
25997 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
25998 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 25999 | |
90dd450c | 26000 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 26001 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26002 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 26003 | _ACEOF |
4f14bcd8 GD |
26004 | |
26005 | fi | |
90dd450c | 26006 | fi |
1e487827 | 26007 | |
90dd450c | 26008 | ac_ext=c |
4f14bcd8 | 26009 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26010 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26011 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26012 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 26013 | |
5c6fa7d2 | 26014 | |
8284b0c5 | 26015 | |
e6cc62c6 VS |
26016 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
26017 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
26018 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
26019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26020 | else |
e6cc62c6 VS |
26021 | |
26022 | cat >conftest.$ac_ext <<_ACEOF | |
26023 | #line $LINENO "configure" | |
26024 | /* confdefs.h. */ | |
26025 | _ACEOF | |
26026 | cat confdefs.h >>conftest.$ac_ext | |
26027 | cat >>conftest.$ac_ext <<_ACEOF | |
26028 | /* end confdefs.h. */ | |
90dd450c | 26029 | #include <pwd.h> |
e6cc62c6 VS |
26030 | int |
26031 | main () | |
26032 | { | |
f6bcfd97 | 26033 | |
90dd450c VZ |
26034 | char *p; |
26035 | struct passwd *pw; | |
26036 | p = pw->pw_gecos; | |
e6cc62c6 VS |
26037 | |
26038 | ; | |
26039 | return 0; | |
26040 | } | |
26041 | _ACEOF | |
26042 | rm -f conftest.$ac_objext | |
26043 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26044 | (eval $ac_compile) 2>&5 | |
26045 | ac_status=$? | |
26046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26047 | (exit $ac_status); } && | |
26048 | { ac_try='test -s conftest.$ac_objext' | |
26049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26050 | (eval $ac_try) 2>&5 | |
26051 | ac_status=$? | |
26052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26053 | (exit $ac_status); }; }; then | |
26054 | ||
90dd450c | 26055 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 26056 | |
10f2d63a | 26057 | else |
e6cc62c6 VS |
26058 | echo "$as_me: failed program was:" >&5 |
26059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26060 | ||
26061 | ||
90dd450c | 26062 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 26063 | |
247f5006 VZ |
26064 | |
26065 | fi | |
e6cc62c6 | 26066 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26067 | |
e6cc62c6 VS |
26068 | |
26069 | fi | |
26070 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
26071 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 26072 | |
90dd450c | 26073 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 26074 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26075 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 26076 | _ACEOF |
c521c494 | 26077 | |
90dd450c | 26078 | fi |
4f14bcd8 | 26079 | |
8284b0c5 | 26080 | |
d29b553b | 26081 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 26082 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 26083 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 26084 | _ACEOF |
d74f4b5a | 26085 | |
8284b0c5 | 26086 | |
d74f4b5a VZ |
26087 | WCSLEN_FOUND=0 |
26088 | WCHAR_LINK= | |
e6cc62c6 VS |
26089 | |
26090 | for ac_func in wcslen | |
7a30264c | 26091 | do |
e6cc62c6 VS |
26092 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26093 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26094 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26095 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26097 | else | |
26098 | cat >conftest.$ac_ext <<_ACEOF | |
26099 | #line $LINENO "configure" | |
26100 | /* confdefs.h. */ | |
26101 | _ACEOF | |
26102 | cat confdefs.h >>conftest.$ac_ext | |
26103 | cat >>conftest.$ac_ext <<_ACEOF | |
26104 | /* end confdefs.h. */ | |
7a30264c | 26105 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26106 | which can conflict with char $ac_func (); below. |
26107 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26108 | <limits.h> exists even on freestanding compilers. */ | |
26109 | #ifdef __STDC__ | |
26110 | # include <limits.h> | |
26111 | #else | |
26112 | # include <assert.h> | |
26113 | #endif | |
4f14bcd8 | 26114 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26115 | #ifdef __cplusplus |
26116 | extern "C" | |
26117 | { | |
26118 | #endif | |
4f14bcd8 | 26119 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26120 | builtin and then its argument prototype would still apply. */ |
26121 | char $ac_func (); | |
7a30264c VZ |
26122 | /* The GNU C library defines this for functions which it implements |
26123 | to always fail with ENOSYS. Some functions are actually named | |
26124 | something starting with __ and the normal name is an alias. */ | |
26125 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26126 | choke me | |
26127 | #else | |
e6cc62c6 VS |
26128 | char (*f) () = $ac_func; |
26129 | #endif | |
26130 | #ifdef __cplusplus | |
26131 | } | |
7a30264c VZ |
26132 | #endif |
26133 | ||
e6cc62c6 VS |
26134 | int |
26135 | main () | |
26136 | { | |
26137 | return f != $ac_func; | |
26138 | ; | |
26139 | return 0; | |
26140 | } | |
26141 | _ACEOF | |
26142 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26143 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26144 | (eval $ac_link) 2>&5 | |
26145 | ac_status=$? | |
26146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26147 | (exit $ac_status); } && | |
26148 | { ac_try='test -s conftest$ac_exeext' | |
26149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26150 | (eval $ac_try) 2>&5 | |
26151 | ac_status=$? | |
26152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26153 | (exit $ac_status); }; }; then | |
26154 | eval "$as_ac_var=yes" | |
26155 | else | |
26156 | echo "$as_me: failed program was:" >&5 | |
26157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26158 | ||
26159 | eval "$as_ac_var=no" | |
26160 | fi | |
26161 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26162 | fi | |
26163 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26164 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26165 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26166 | cat >>confdefs.h <<_ACEOF | |
26167 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26168 | _ACEOF | |
d74f4b5a | 26169 | WCSLEN_FOUND=1 |
7a30264c VZ |
26170 | fi |
26171 | done | |
9d8deca0 | 26172 | |
8284b0c5 | 26173 | |
d74f4b5a | 26174 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 26175 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
26176 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
26177 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
26178 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
26179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 26180 | else |
e6cc62c6 | 26181 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26182 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 VS |
26183 | cat >conftest.$ac_ext <<_ACEOF |
26184 | #line $LINENO "configure" | |
26185 | /* confdefs.h. */ | |
26186 | _ACEOF | |
26187 | cat confdefs.h >>conftest.$ac_ext | |
26188 | cat >>conftest.$ac_ext <<_ACEOF | |
26189 | /* end confdefs.h. */ | |
26190 | ||
4f14bcd8 | 26191 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26192 | #ifdef __cplusplus |
26193 | extern "C" | |
26194 | #endif | |
4f14bcd8 | 26195 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26196 | builtin and then its argument prototype would still apply. */ |
26197 | char wcslen (); | |
26198 | int | |
26199 | main () | |
26200 | { | |
26201 | wcslen (); | |
26202 | ; | |
26203 | return 0; | |
26204 | } | |
26205 | _ACEOF | |
26206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26208 | (eval $ac_link) 2>&5 | |
26209 | ac_status=$? | |
26210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26211 | (exit $ac_status); } && | |
26212 | { ac_try='test -s conftest$ac_exeext' | |
26213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26214 | (eval $ac_try) 2>&5 | |
26215 | ac_status=$? | |
26216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26217 | (exit $ac_status); }; }; then | |
26218 | ac_cv_lib_msvcrt_wcslen=yes | |
26219 | else | |
26220 | echo "$as_me: failed program was:" >&5 | |
26221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26222 | ||
26223 | ac_cv_lib_msvcrt_wcslen=no | |
26224 | fi | |
26225 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26226 | LIBS=$ac_check_lib_save_LIBS | |
26227 | fi | |
26228 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
26229 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
26230 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 26231 | WCHAR_OK=1 |
d29b553b | 26232 | fi |
698dcdb6 | 26233 | |
7a30264c | 26234 | else |
e6cc62c6 VS |
26235 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
26236 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
26237 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
26238 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 26239 | else |
e6cc62c6 | 26240 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26241 | LIBS="-lw $LIBS" |
e6cc62c6 VS |
26242 | cat >conftest.$ac_ext <<_ACEOF |
26243 | #line $LINENO "configure" | |
26244 | /* confdefs.h. */ | |
26245 | _ACEOF | |
26246 | cat confdefs.h >>conftest.$ac_ext | |
26247 | cat >>conftest.$ac_ext <<_ACEOF | |
26248 | /* end confdefs.h. */ | |
26249 | ||
4f14bcd8 | 26250 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26251 | #ifdef __cplusplus |
26252 | extern "C" | |
26253 | #endif | |
4f14bcd8 | 26254 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26255 | builtin and then its argument prototype would still apply. */ |
26256 | char wcslen (); | |
26257 | int | |
26258 | main () | |
26259 | { | |
26260 | wcslen (); | |
26261 | ; | |
26262 | return 0; | |
26263 | } | |
26264 | _ACEOF | |
26265 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26266 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26267 | (eval $ac_link) 2>&5 | |
26268 | ac_status=$? | |
26269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26270 | (exit $ac_status); } && | |
26271 | { ac_try='test -s conftest$ac_exeext' | |
26272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26273 | (eval $ac_try) 2>&5 | |
26274 | ac_status=$? | |
26275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26276 | (exit $ac_status); }; }; then | |
26277 | ac_cv_lib_w_wcslen=yes | |
26278 | else | |
26279 | echo "$as_me: failed program was:" >&5 | |
26280 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26281 | ||
26282 | ac_cv_lib_w_wcslen=no | |
26283 | fi | |
26284 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26285 | LIBS=$ac_check_lib_save_LIBS | |
26286 | fi | |
26287 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
26288 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
26289 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 26290 | |
7a30264c | 26291 | WCHAR_LINK=" -lw" |
d74f4b5a | 26292 | WCSLEN_FOUND=1 |
e6cc62c6 | 26293 | |
4f14bcd8 | 26294 | fi |
10f2d63a | 26295 | |
7a30264c | 26296 | fi |
d29b553b | 26297 | fi |
95c8801c | 26298 | |
d74f4b5a | 26299 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 26300 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 26301 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 26302 | _ACEOF |
10f2d63a | 26303 | |
d74f4b5a | 26304 | fi |
52127426 | 26305 | |
e6cc62c6 VS |
26306 | |
26307 | for ac_func in wcsrtombs | |
eb4efbdc | 26308 | do |
e6cc62c6 VS |
26309 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26310 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26311 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26312 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26314 | else | |
26315 | cat >conftest.$ac_ext <<_ACEOF | |
26316 | #line $LINENO "configure" | |
26317 | /* confdefs.h. */ | |
26318 | _ACEOF | |
26319 | cat confdefs.h >>conftest.$ac_ext | |
26320 | cat >>conftest.$ac_ext <<_ACEOF | |
26321 | /* end confdefs.h. */ | |
eb4efbdc | 26322 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26323 | which can conflict with char $ac_func (); below. |
26324 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26325 | <limits.h> exists even on freestanding compilers. */ | |
26326 | #ifdef __STDC__ | |
26327 | # include <limits.h> | |
26328 | #else | |
26329 | # include <assert.h> | |
26330 | #endif | |
eb4efbdc | 26331 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26332 | #ifdef __cplusplus |
26333 | extern "C" | |
26334 | { | |
26335 | #endif | |
4f14bcd8 | 26336 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26337 | builtin and then its argument prototype would still apply. */ |
26338 | char $ac_func (); | |
10f2d63a VZ |
26339 | /* The GNU C library defines this for functions which it implements |
26340 | to always fail with ENOSYS. Some functions are actually named | |
26341 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 26342 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
26343 | choke me |
26344 | #else | |
e6cc62c6 VS |
26345 | char (*f) () = $ac_func; |
26346 | #endif | |
26347 | #ifdef __cplusplus | |
26348 | } | |
10f2d63a VZ |
26349 | #endif |
26350 | ||
e6cc62c6 VS |
26351 | int |
26352 | main () | |
26353 | { | |
26354 | return f != $ac_func; | |
26355 | ; | |
26356 | return 0; | |
26357 | } | |
26358 | _ACEOF | |
26359 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26361 | (eval $ac_link) 2>&5 | |
26362 | ac_status=$? | |
26363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26364 | (exit $ac_status); } && | |
26365 | { ac_try='test -s conftest$ac_exeext' | |
26366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26367 | (eval $ac_try) 2>&5 | |
26368 | ac_status=$? | |
26369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26370 | (exit $ac_status); }; }; then | |
26371 | eval "$as_ac_var=yes" | |
26372 | else | |
26373 | echo "$as_me: failed program was:" >&5 | |
26374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26375 | ||
26376 | eval "$as_ac_var=no" | |
26377 | fi | |
26378 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26379 | fi | |
26380 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26381 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26382 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26383 | cat >>confdefs.h <<_ACEOF | |
26384 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26385 | _ACEOF | |
270a909e | 26386 | |
4f14bcd8 | 26387 | fi |
247f5006 | 26388 | done |
1e487827 | 26389 | |
af15babd | 26390 | else |
e6cc62c6 VS |
26391 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
26392 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 26393 | fi |
52127426 | 26394 | |
8284b0c5 | 26395 | |
e6cc62c6 VS |
26396 | |
26397 | ac_ext=cc | |
247f5006 | 26398 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26399 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26400 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26401 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26402 | ||
af15babd | 26403 | |
247f5006 VZ |
26404 | |
26405 | for ac_func in vsnprintf | |
26406 | do | |
e6cc62c6 VS |
26407 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26408 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26409 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26410 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26412 | else | |
26413 | cat >conftest.$ac_ext <<_ACEOF | |
26414 | #line $LINENO "configure" | |
26415 | /* confdefs.h. */ | |
26416 | _ACEOF | |
26417 | cat confdefs.h >>conftest.$ac_ext | |
26418 | cat >>conftest.$ac_ext <<_ACEOF | |
26419 | /* end confdefs.h. */ | |
247f5006 | 26420 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26421 | which can conflict with char $ac_func (); below. |
26422 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26423 | <limits.h> exists even on freestanding compilers. */ | |
26424 | #ifdef __STDC__ | |
26425 | # include <limits.h> | |
26426 | #else | |
26427 | # include <assert.h> | |
26428 | #endif | |
247f5006 VZ |
26429 | /* Override any gcc2 internal prototype to avoid an error. */ |
26430 | #ifdef __cplusplus | |
26431 | extern "C" | |
e6cc62c6 | 26432 | { |
247f5006 VZ |
26433 | #endif |
26434 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
26435 | builtin and then its argument prototype would still apply. */ |
26436 | char $ac_func (); | |
247f5006 VZ |
26437 | /* The GNU C library defines this for functions which it implements |
26438 | to always fail with ENOSYS. Some functions are actually named | |
26439 | something starting with __ and the normal name is an alias. */ | |
26440 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26441 | choke me | |
26442 | #else | |
e6cc62c6 VS |
26443 | char (*f) () = $ac_func; |
26444 | #endif | |
26445 | #ifdef __cplusplus | |
26446 | } | |
247f5006 | 26447 | #endif |
af15babd | 26448 | |
e6cc62c6 VS |
26449 | int |
26450 | main () | |
26451 | { | |
26452 | return f != $ac_func; | |
26453 | ; | |
26454 | return 0; | |
26455 | } | |
26456 | _ACEOF | |
26457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26459 | (eval $ac_link) 2>&5 | |
26460 | ac_status=$? | |
26461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26462 | (exit $ac_status); } && | |
26463 | { ac_try='test -s conftest$ac_exeext' | |
26464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26465 | (eval $ac_try) 2>&5 | |
26466 | ac_status=$? | |
26467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26468 | (exit $ac_status); }; }; then | |
26469 | eval "$as_ac_var=yes" | |
26470 | else | |
26471 | echo "$as_me: failed program was:" >&5 | |
26472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26473 | ||
26474 | eval "$as_ac_var=no" | |
26475 | fi | |
26476 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26477 | fi | |
26478 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26479 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26480 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26481 | cat >>confdefs.h <<_ACEOF | |
26482 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26483 | _ACEOF | |
52127426 | 26484 | |
5c6fa7d2 | 26485 | fi |
247f5006 | 26486 | done |
8284b0c5 | 26487 | |
4f14bcd8 | 26488 | |
8d90d2f2 | 26489 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
26490 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
26491 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
26492 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
26493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 26494 | else |
e6cc62c6 VS |
26495 | |
26496 | cat >conftest.$ac_ext <<_ACEOF | |
26497 | #line $LINENO "configure" | |
26498 | /* confdefs.h. */ | |
26499 | _ACEOF | |
26500 | cat confdefs.h >>conftest.$ac_ext | |
26501 | cat >>conftest.$ac_ext <<_ACEOF | |
26502 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
26503 | |
26504 | #include <stdio.h> | |
26505 | #include <stdarg.h> | |
e6cc62c6 VS |
26506 | |
26507 | int | |
26508 | main () | |
26509 | { | |
8d90d2f2 VZ |
26510 | |
26511 | char *buf; | |
26512 | va_list ap; | |
26513 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
26514 | |
26515 | ; | |
26516 | return 0; | |
26517 | } | |
26518 | _ACEOF | |
26519 | rm -f conftest.$ac_objext | |
26520 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26521 | (eval $ac_compile) 2>&5 | |
26522 | ac_status=$? | |
26523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26524 | (exit $ac_status); } && | |
26525 | { ac_try='test -s conftest.$ac_objext' | |
26526 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26527 | (eval $ac_try) 2>&5 | |
26528 | ac_status=$? | |
26529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26530 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
26531 | wx_cv_func_vsnprintf_decl=yes |
26532 | else | |
e6cc62c6 VS |
26533 | echo "$as_me: failed program was:" >&5 |
26534 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26535 | ||
26536 | wx_cv_func_vsnprintf_decl=no | |
26537 | ||
8d90d2f2 | 26538 | fi |
e6cc62c6 VS |
26539 | rm -f conftest.$ac_objext conftest.$ac_ext |
26540 | ||
8d90d2f2 | 26541 | |
e6cc62c6 VS |
26542 | fi |
26543 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
26544 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
26545 | |
26546 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 26547 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 26548 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 26549 | _ACEOF |
8d90d2f2 VZ |
26550 | |
26551 | fi | |
26552 | fi | |
26553 | ||
247f5006 | 26554 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
26555 | |
26556 | ||
26557 | ||
26558 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 26559 | do |
e6cc62c6 VS |
26560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26561 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26563 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26565 | else | |
26566 | cat >conftest.$ac_ext <<_ACEOF | |
26567 | #line $LINENO "configure" | |
26568 | /* confdefs.h. */ | |
26569 | _ACEOF | |
26570 | cat confdefs.h >>conftest.$ac_ext | |
26571 | cat >>conftest.$ac_ext <<_ACEOF | |
26572 | /* end confdefs.h. */ | |
d74f4b5a | 26573 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26574 | which can conflict with char $ac_func (); below. |
26575 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26576 | <limits.h> exists even on freestanding compilers. */ | |
26577 | #ifdef __STDC__ | |
26578 | # include <limits.h> | |
26579 | #else | |
26580 | # include <assert.h> | |
26581 | #endif | |
d74f4b5a | 26582 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
26583 | #ifdef __cplusplus |
26584 | extern "C" | |
e6cc62c6 | 26585 | { |
247f5006 | 26586 | #endif |
d74f4b5a | 26587 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26588 | builtin and then its argument prototype would still apply. */ |
26589 | char $ac_func (); | |
d74f4b5a VZ |
26590 | /* The GNU C library defines this for functions which it implements |
26591 | to always fail with ENOSYS. Some functions are actually named | |
26592 | something starting with __ and the normal name is an alias. */ | |
26593 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26594 | choke me | |
26595 | #else | |
e6cc62c6 VS |
26596 | char (*f) () = $ac_func; |
26597 | #endif | |
26598 | #ifdef __cplusplus | |
26599 | } | |
d74f4b5a VZ |
26600 | #endif |
26601 | ||
e6cc62c6 VS |
26602 | int |
26603 | main () | |
26604 | { | |
26605 | return f != $ac_func; | |
26606 | ; | |
26607 | return 0; | |
26608 | } | |
26609 | _ACEOF | |
26610 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26611 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26612 | (eval $ac_link) 2>&5 | |
26613 | ac_status=$? | |
26614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26615 | (exit $ac_status); } && | |
26616 | { ac_try='test -s conftest$ac_exeext' | |
26617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26618 | (eval $ac_try) 2>&5 | |
26619 | ac_status=$? | |
26620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26621 | (exit $ac_status); }; }; then | |
26622 | eval "$as_ac_var=yes" | |
26623 | else | |
26624 | echo "$as_me: failed program was:" >&5 | |
26625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26626 | ||
26627 | eval "$as_ac_var=no" | |
26628 | fi | |
26629 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26630 | fi | |
26631 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26632 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26633 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26634 | cat >>confdefs.h <<_ACEOF | |
26635 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26636 | _ACEOF | |
d74f4b5a | 26637 | |
d74f4b5a VZ |
26638 | fi |
26639 | done | |
26640 | ||
8d90d2f2 | 26641 | |
e6cc62c6 VS |
26642 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
26643 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
26644 | cat >conftest.$ac_ext <<_ACEOF | |
26645 | #line $LINENO "configure" | |
26646 | /* confdefs.h. */ | |
26647 | _ACEOF | |
26648 | cat confdefs.h >>conftest.$ac_ext | |
26649 | cat >>conftest.$ac_ext <<_ACEOF | |
26650 | /* end confdefs.h. */ | |
79668cae | 26651 | #include <wchar.h> |
e6cc62c6 VS |
26652 | int |
26653 | main () | |
26654 | { | |
79668cae | 26655 | &_vsnwprintf; |
e6cc62c6 VS |
26656 | ; |
26657 | return 0; | |
26658 | } | |
26659 | _ACEOF | |
26660 | rm -f conftest.$ac_objext | |
26661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26662 | (eval $ac_compile) 2>&5 | |
26663 | ac_status=$? | |
26664 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26665 | (exit $ac_status); } && | |
26666 | { ac_try='test -s conftest.$ac_objext' | |
26667 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26668 | (eval $ac_try) 2>&5 | |
26669 | ac_status=$? | |
26670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26671 | (exit $ac_status); }; }; then | |
26672 | echo "$as_me:$LINENO: result: yes" >&5 | |
26673 | echo "${ECHO_T}yes" >&6 | |
26674 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 26675 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 26676 | _ACEOF |
79668cae MB |
26677 | |
26678 | else | |
e6cc62c6 VS |
26679 | echo "$as_me: failed program was:" >&5 |
26680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26681 | ||
26682 | echo "$as_me:$LINENO: result: no" >&5 | |
26683 | echo "${ECHO_T}no" >&6 | |
79668cae | 26684 | fi |
e6cc62c6 | 26685 | rm -f conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
26686 | fi |
26687 | ||
247f5006 VZ |
26688 | ac_ext=c |
26689 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
26690 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26691 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26692 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
26693 | |
26694 | ||
26695 | ||
26696 | ||
4f14bcd8 | 26697 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 26698 | |
8284b0c5 MB |
26699 | |
26700 | ||
e6cc62c6 VS |
26701 | |
26702 | ac_ext=cc | |
4f14bcd8 | 26703 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26704 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26705 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26706 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 26707 | |
52127426 | 26708 | |
e6cc62c6 VS |
26709 | |
26710 | ||
26711 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
26712 | if test "${with_libiconv_prefix+set}" = set; then |
26713 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 26714 | |
b040e242 VS |
26715 | for dir in `echo "$withval" | tr : ' '`; do |
26716 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
26717 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
26718 | done | |
b040e242 | 26719 | |
e6cc62c6 | 26720 | fi; |
b040e242 | 26721 | |
e6cc62c6 VS |
26722 | echo "$as_me:$LINENO: checking for iconv" >&5 |
26723 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
26724 | if test "${am_cv_func_iconv+set}" = set; then | |
26725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 26726 | else |
e6cc62c6 | 26727 | |
b040e242 VS |
26728 | am_cv_func_iconv="no, consider installing GNU libiconv" |
26729 | am_cv_lib_iconv=no | |
e6cc62c6 VS |
26730 | cat >conftest.$ac_ext <<_ACEOF |
26731 | #line $LINENO "configure" | |
26732 | /* confdefs.h. */ | |
26733 | _ACEOF | |
26734 | cat confdefs.h >>conftest.$ac_ext | |
26735 | cat >>conftest.$ac_ext <<_ACEOF | |
26736 | /* end confdefs.h. */ | |
b040e242 | 26737 | #include <stdlib.h> |
4f14bcd8 | 26738 | #include <iconv.h> |
e6cc62c6 VS |
26739 | int |
26740 | main () | |
26741 | { | |
b040e242 VS |
26742 | iconv_t cd = iconv_open("",""); |
26743 | iconv(cd,NULL,NULL,NULL,NULL); | |
26744 | iconv_close(cd); | |
e6cc62c6 VS |
26745 | ; |
26746 | return 0; | |
26747 | } | |
26748 | _ACEOF | |
26749 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26751 | (eval $ac_link) 2>&5 | |
26752 | ac_status=$? | |
26753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26754 | (exit $ac_status); } && | |
26755 | { ac_try='test -s conftest$ac_exeext' | |
26756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26757 | (eval $ac_try) 2>&5 | |
26758 | ac_status=$? | |
26759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26760 | (exit $ac_status); }; }; then | |
b040e242 | 26761 | am_cv_func_iconv=yes |
af15babd | 26762 | else |
e6cc62c6 VS |
26763 | echo "$as_me: failed program was:" >&5 |
26764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26765 | ||
b040e242 | 26766 | fi |
e6cc62c6 | 26767 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26768 | if test "$am_cv_func_iconv" != yes; then |
26769 | am_save_LIBS="$LIBS" | |
26770 | LIBS="$LIBS -liconv" | |
e6cc62c6 VS |
26771 | cat >conftest.$ac_ext <<_ACEOF |
26772 | #line $LINENO "configure" | |
26773 | /* confdefs.h. */ | |
26774 | _ACEOF | |
26775 | cat confdefs.h >>conftest.$ac_ext | |
26776 | cat >>conftest.$ac_ext <<_ACEOF | |
26777 | /* end confdefs.h. */ | |
b040e242 VS |
26778 | #include <stdlib.h> |
26779 | #include <iconv.h> | |
e6cc62c6 VS |
26780 | int |
26781 | main () | |
26782 | { | |
b040e242 VS |
26783 | iconv_t cd = iconv_open("",""); |
26784 | iconv(cd,NULL,NULL,NULL,NULL); | |
26785 | iconv_close(cd); | |
e6cc62c6 VS |
26786 | ; |
26787 | return 0; | |
26788 | } | |
26789 | _ACEOF | |
26790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26792 | (eval $ac_link) 2>&5 | |
26793 | ac_status=$? | |
26794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26795 | (exit $ac_status); } && | |
26796 | { ac_try='test -s conftest$ac_exeext' | |
26797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26798 | (eval $ac_try) 2>&5 | |
26799 | ac_status=$? | |
26800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26801 | (exit $ac_status); }; }; then | |
b040e242 VS |
26802 | am_cv_lib_iconv=yes |
26803 | am_cv_func_iconv=yes | |
26804 | else | |
e6cc62c6 VS |
26805 | echo "$as_me: failed program was:" >&5 |
26806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26807 | ||
af15babd | 26808 | fi |
e6cc62c6 | 26809 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
26810 | LIBS="$am_save_LIBS" |
26811 | fi | |
247f5006 | 26812 | |
e6cc62c6 VS |
26813 | fi |
26814 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
26815 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 26816 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
26817 | |
26818 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 26819 | #define HAVE_ICONV 1 |
e6cc62c6 | 26820 | _ACEOF |
b040e242 | 26821 | |
e6cc62c6 VS |
26822 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
26823 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
26824 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
26825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 26826 | else |
e6cc62c6 VS |
26827 | cat >conftest.$ac_ext <<_ACEOF |
26828 | #line $LINENO "configure" | |
26829 | /* confdefs.h. */ | |
26830 | _ACEOF | |
26831 | cat confdefs.h >>conftest.$ac_ext | |
26832 | cat >>conftest.$ac_ext <<_ACEOF | |
26833 | /* end confdefs.h. */ | |
b040e242 VS |
26834 | |
26835 | #include <stdlib.h> | |
26836 | #include <iconv.h> | |
26837 | extern | |
26838 | #ifdef __cplusplus | |
26839 | "C" | |
26840 | #endif | |
26841 | #if defined(__STDC__) || defined(__cplusplus) | |
26842 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
26843 | #else | |
26844 | size_t iconv(); | |
26845 | #endif | |
af15babd | 26846 | |
e6cc62c6 VS |
26847 | int |
26848 | main () | |
26849 | { | |
26850 | ||
26851 | ; | |
26852 | return 0; | |
26853 | } | |
26854 | _ACEOF | |
26855 | rm -f conftest.$ac_objext | |
26856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
26857 | (eval $ac_compile) 2>&5 | |
26858 | ac_status=$? | |
26859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26860 | (exit $ac_status); } && | |
26861 | { ac_try='test -s conftest.$ac_objext' | |
26862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26863 | (eval $ac_try) 2>&5 | |
26864 | ac_status=$? | |
26865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26866 | (exit $ac_status); }; }; then | |
b7043674 | 26867 | wx_cv_func_iconv_const="no" |
b040e242 | 26868 | else |
e6cc62c6 VS |
26869 | echo "$as_me: failed program was:" >&5 |
26870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26871 | ||
26872 | wx_cv_func_iconv_const="yes" | |
26873 | ||
247f5006 | 26874 | fi |
e6cc62c6 | 26875 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26876 | |
e6cc62c6 VS |
26877 | fi |
26878 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
26879 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
26880 | |
26881 | iconv_const= | |
1c405bb5 | 26882 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
26883 | iconv_const="const" |
26884 | fi | |
26885 | ||
e6cc62c6 VS |
26886 | |
26887 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 26888 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 26889 | _ACEOF |
b040e242 VS |
26890 | |
26891 | fi | |
26892 | LIBICONV= | |
26893 | if test "$am_cv_lib_iconv" = yes; then | |
26894 | LIBICONV="-liconv" | |
26895 | fi | |
e6cc62c6 | 26896 | |
b040e242 VS |
26897 | |
26898 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 26899 | ac_ext=c |
4f14bcd8 | 26900 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26901 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26902 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26903 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 26904 | |
5c6fa7d2 | 26905 | |
8284b0c5 | 26906 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
26907 | |
26908 | for ac_func in sigaction | |
af15babd | 26909 | do |
e6cc62c6 VS |
26910 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26911 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26912 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26913 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26915 | else | |
26916 | cat >conftest.$ac_ext <<_ACEOF | |
26917 | #line $LINENO "configure" | |
26918 | /* confdefs.h. */ | |
26919 | _ACEOF | |
26920 | cat confdefs.h >>conftest.$ac_ext | |
26921 | cat >>conftest.$ac_ext <<_ACEOF | |
26922 | /* end confdefs.h. */ | |
af15babd | 26923 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26924 | which can conflict with char $ac_func (); below. |
26925 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26926 | <limits.h> exists even on freestanding compilers. */ | |
26927 | #ifdef __STDC__ | |
26928 | # include <limits.h> | |
26929 | #else | |
26930 | # include <assert.h> | |
26931 | #endif | |
af15babd | 26932 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26933 | #ifdef __cplusplus |
26934 | extern "C" | |
26935 | { | |
26936 | #endif | |
af15babd | 26937 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26938 | builtin and then its argument prototype would still apply. */ |
26939 | char $ac_func (); | |
af15babd VZ |
26940 | /* The GNU C library defines this for functions which it implements |
26941 | to always fail with ENOSYS. Some functions are actually named | |
26942 | something starting with __ and the normal name is an alias. */ | |
26943 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26944 | choke me | |
26945 | #else | |
e6cc62c6 VS |
26946 | char (*f) () = $ac_func; |
26947 | #endif | |
26948 | #ifdef __cplusplus | |
26949 | } | |
af15babd VZ |
26950 | #endif |
26951 | ||
e6cc62c6 VS |
26952 | int |
26953 | main () | |
26954 | { | |
26955 | return f != $ac_func; | |
26956 | ; | |
26957 | return 0; | |
26958 | } | |
26959 | _ACEOF | |
26960 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
26962 | (eval $ac_link) 2>&5 | |
26963 | ac_status=$? | |
26964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26965 | (exit $ac_status); } && | |
26966 | { ac_try='test -s conftest$ac_exeext' | |
26967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26968 | (eval $ac_try) 2>&5 | |
26969 | ac_status=$? | |
26970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26971 | (exit $ac_status); }; }; then | |
26972 | eval "$as_ac_var=yes" | |
26973 | else | |
26974 | echo "$as_me: failed program was:" >&5 | |
26975 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26976 | ||
26977 | eval "$as_ac_var=no" | |
26978 | fi | |
26979 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
26980 | fi | |
26981 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26982 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26983 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26984 | cat >>confdefs.h <<_ACEOF | |
26985 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26986 | _ACEOF | |
7b4a847f | 26987 | |
4f14bcd8 GD |
26988 | fi |
26989 | done | |
26990 | ||
8284b0c5 | 26991 | |
4f14bcd8 | 26992 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
26993 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
26994 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
26995 | wxUSE_ON_FATAL_EXCEPTION=no |
26996 | fi | |
26997 | ||
26998 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
26999 | |
27000 | ||
27001 | ac_ext=cc | |
5c6fa7d2 | 27002 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27003 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27004 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27005 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 27006 | |
5c6fa7d2 | 27007 | |
e6cc62c6 VS |
27008 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
27009 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
27010 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
27011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 27012 | else |
e6cc62c6 VS |
27013 | |
27014 | cat >conftest.$ac_ext <<_ACEOF | |
27015 | #line $LINENO "configure" | |
27016 | /* confdefs.h. */ | |
27017 | _ACEOF | |
27018 | cat confdefs.h >>conftest.$ac_ext | |
27019 | cat >>conftest.$ac_ext <<_ACEOF | |
27020 | /* end confdefs.h. */ | |
4f14bcd8 | 27021 | #include <signal.h> |
e6cc62c6 VS |
27022 | int |
27023 | main () | |
27024 | { | |
4f14bcd8 GD |
27025 | |
27026 | extern void testSigHandler(int); | |
27027 | ||
27028 | struct sigaction sa; | |
27029 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
27030 | |
27031 | ; | |
27032 | return 0; | |
27033 | } | |
27034 | _ACEOF | |
27035 | rm -f conftest.$ac_objext | |
27036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27037 | (eval $ac_compile) 2>&5 | |
27038 | ac_status=$? | |
27039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27040 | (exit $ac_status); } && | |
27041 | { ac_try='test -s conftest.$ac_objext' | |
27042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27043 | (eval $ac_try) 2>&5 | |
27044 | ac_status=$? | |
27045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27046 | (exit $ac_status); }; }; then | |
27047 | ||
4f14bcd8 | 27048 | wx_cv_type_sa_handler=int |
e6cc62c6 | 27049 | |
af15babd | 27050 | else |
e6cc62c6 VS |
27051 | echo "$as_me: failed program was:" >&5 |
27052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27053 | ||
27054 | ||
4f14bcd8 | 27055 | wx_cv_type_sa_handler=void |
e6cc62c6 | 27056 | |
247f5006 | 27057 | fi |
e6cc62c6 | 27058 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27059 | |
e6cc62c6 VS |
27060 | fi |
27061 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
27062 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
27063 | |
27064 | ac_ext=c | |
4f14bcd8 | 27065 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27066 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27067 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27068 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 27069 | |
8284b0c5 | 27070 | |
e6cc62c6 | 27071 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 27072 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 27073 | _ACEOF |
af15babd | 27074 | |
4f14bcd8 GD |
27075 | fi |
27076 | fi | |
af15babd | 27077 | |
e6cc62c6 VS |
27078 | |
27079 | ||
a1d22ad7 | 27080 | for ac_func in mkstemp mktemp |
af15babd | 27081 | do |
e6cc62c6 VS |
27082 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27083 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27084 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27085 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27086 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27087 | else | |
27088 | cat >conftest.$ac_ext <<_ACEOF | |
27089 | #line $LINENO "configure" | |
27090 | /* confdefs.h. */ | |
27091 | _ACEOF | |
27092 | cat confdefs.h >>conftest.$ac_ext | |
27093 | cat >>conftest.$ac_ext <<_ACEOF | |
27094 | /* end confdefs.h. */ | |
af15babd | 27095 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27096 | which can conflict with char $ac_func (); below. |
27097 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27098 | <limits.h> exists even on freestanding compilers. */ | |
27099 | #ifdef __STDC__ | |
27100 | # include <limits.h> | |
27101 | #else | |
27102 | # include <assert.h> | |
27103 | #endif | |
af15babd | 27104 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27105 | #ifdef __cplusplus |
27106 | extern "C" | |
27107 | { | |
27108 | #endif | |
af15babd | 27109 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27110 | builtin and then its argument prototype would still apply. */ |
27111 | char $ac_func (); | |
af15babd VZ |
27112 | /* The GNU C library defines this for functions which it implements |
27113 | to always fail with ENOSYS. Some functions are actually named | |
27114 | something starting with __ and the normal name is an alias. */ | |
27115 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27116 | choke me | |
27117 | #else | |
e6cc62c6 VS |
27118 | char (*f) () = $ac_func; |
27119 | #endif | |
27120 | #ifdef __cplusplus | |
27121 | } | |
af15babd VZ |
27122 | #endif |
27123 | ||
e6cc62c6 VS |
27124 | int |
27125 | main () | |
27126 | { | |
27127 | return f != $ac_func; | |
27128 | ; | |
27129 | return 0; | |
27130 | } | |
27131 | _ACEOF | |
27132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27134 | (eval $ac_link) 2>&5 | |
27135 | ac_status=$? | |
27136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27137 | (exit $ac_status); } && | |
27138 | { ac_try='test -s conftest$ac_exeext' | |
27139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27140 | (eval $ac_try) 2>&5 | |
27141 | ac_status=$? | |
27142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27143 | (exit $ac_status); }; }; then | |
27144 | eval "$as_ac_var=yes" | |
27145 | else | |
27146 | echo "$as_me: failed program was:" >&5 | |
27147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27148 | ||
27149 | eval "$as_ac_var=no" | |
27150 | fi | |
27151 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27152 | fi | |
27153 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27154 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27155 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27156 | cat >>confdefs.h <<_ACEOF | |
27157 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27158 | _ACEOF | |
ade35f11 | 27159 | break |
ade35f11 VZ |
27160 | fi |
27161 | done | |
27162 | ||
8284b0c5 | 27163 | |
e6cc62c6 VS |
27164 | echo "$as_me:$LINENO: checking for statfs" >&5 |
27165 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
27166 | if test "${wx_cv_func_statfs+set}" = set; then | |
27167 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 27168 | else |
e6cc62c6 VS |
27169 | cat >conftest.$ac_ext <<_ACEOF |
27170 | #line $LINENO "configure" | |
27171 | /* confdefs.h. */ | |
27172 | _ACEOF | |
27173 | cat confdefs.h >>conftest.$ac_ext | |
27174 | cat >>conftest.$ac_ext <<_ACEOF | |
27175 | /* end confdefs.h. */ | |
4f14bcd8 GD |
27176 | |
27177 | #if defined(__BSD__) | |
27178 | #include <sys/param.h> | |
27179 | #include <sys/mount.h> | |
27180 | #else | |
27181 | #include <sys/vfs.h> | |
27182 | #endif | |
e6cc62c6 VS |
27183 | |
27184 | int | |
27185 | main () | |
27186 | { | |
4f14bcd8 GD |
27187 | |
27188 | long l; | |
27189 | struct statfs fs; | |
27190 | statfs("/", &fs); | |
27191 | l = fs.f_bsize; | |
27192 | l += fs.f_blocks; | |
27193 | l += fs.f_bavail; | |
e6cc62c6 VS |
27194 | |
27195 | ; | |
27196 | return 0; | |
27197 | } | |
27198 | _ACEOF | |
27199 | rm -f conftest.$ac_objext | |
27200 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27201 | (eval $ac_compile) 2>&5 | |
27202 | ac_status=$? | |
27203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27204 | (exit $ac_status); } && | |
27205 | { ac_try='test -s conftest.$ac_objext' | |
27206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27207 | (eval $ac_try) 2>&5 | |
27208 | ac_status=$? | |
27209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27210 | (exit $ac_status); }; }; then | |
27211 | ||
4f14bcd8 | 27212 | wx_cv_func_statfs=yes |
e6cc62c6 | 27213 | |
4f14bcd8 | 27214 | else |
e6cc62c6 VS |
27215 | echo "$as_me: failed program was:" >&5 |
27216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27217 | ||
27218 | ||
4f14bcd8 | 27219 | wx_cv_func_statfs=no |
e6cc62c6 | 27220 | |
8284b0c5 | 27221 | |
247f5006 | 27222 | fi |
e6cc62c6 | 27223 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27224 | |
e6cc62c6 VS |
27225 | fi |
27226 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
27227 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
27228 | |
27229 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 27230 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 27231 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27232 | #define HAVE_STATFS 1 |
e6cc62c6 | 27233 | _ACEOF |
4f14bcd8 GD |
27234 | |
27235 | else | |
e6cc62c6 VS |
27236 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
27237 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
27238 | if test "${wx_cv_func_statvfs+set}" = set; then | |
27239 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 27240 | else |
e6cc62c6 VS |
27241 | cat >conftest.$ac_ext <<_ACEOF |
27242 | #line $LINENO "configure" | |
27243 | /* confdefs.h. */ | |
27244 | _ACEOF | |
27245 | cat confdefs.h >>conftest.$ac_ext | |
27246 | cat >>conftest.$ac_ext <<_ACEOF | |
27247 | /* end confdefs.h. */ | |
af15babd | 27248 | |
54ab82b3 VZ |
27249 | #include <stddef.h> |
27250 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27251 | |
27252 | int | |
27253 | main () | |
27254 | { | |
af15babd | 27255 | |
54ab82b3 | 27256 | statvfs("/", NULL); |
e6cc62c6 VS |
27257 | |
27258 | ; | |
27259 | return 0; | |
27260 | } | |
27261 | _ACEOF | |
27262 | rm -f conftest.$ac_objext | |
27263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27264 | (eval $ac_compile) 2>&5 | |
27265 | ac_status=$? | |
27266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27267 | (exit $ac_status); } && | |
27268 | { ac_try='test -s conftest.$ac_objext' | |
27269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27270 | (eval $ac_try) 2>&5 | |
27271 | ac_status=$? | |
27272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27273 | (exit $ac_status); }; }; then | |
54ab82b3 | 27274 | wx_cv_func_statvfs=yes |
af15babd | 27275 | else |
e6cc62c6 VS |
27276 | echo "$as_me: failed program was:" >&5 |
27277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27278 | ||
27279 | wx_cv_func_statvfs=no | |
27280 | ||
247f5006 | 27281 | fi |
e6cc62c6 | 27282 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27283 | |
e6cc62c6 VS |
27284 | fi |
27285 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
27286 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 27287 | |
4f14bcd8 | 27288 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
27289 | |
27290 | ||
27291 | ac_ext=cc | |
54ab82b3 | 27292 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27293 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27294 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27295 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
27296 | |
27297 | ||
e6cc62c6 VS |
27298 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
27299 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
27300 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
27301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 27302 | else |
e6cc62c6 VS |
27303 | cat >conftest.$ac_ext <<_ACEOF |
27304 | #line $LINENO "configure" | |
27305 | /* confdefs.h. */ | |
27306 | _ACEOF | |
27307 | cat confdefs.h >>conftest.$ac_ext | |
27308 | cat >>conftest.$ac_ext <<_ACEOF | |
27309 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27310 | |
27311 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27312 | |
27313 | int | |
27314 | main () | |
27315 | { | |
54ab82b3 VZ |
27316 | |
27317 | long l; | |
27318 | statvfs_t fs; | |
27319 | statvfs("/", &fs); | |
27320 | l = fs.f_bsize; | |
27321 | l += fs.f_blocks; | |
27322 | l += fs.f_bavail; | |
e6cc62c6 VS |
27323 | |
27324 | ; | |
27325 | return 0; | |
27326 | } | |
27327 | _ACEOF | |
27328 | rm -f conftest.$ac_objext | |
27329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27330 | (eval $ac_compile) 2>&5 | |
27331 | ac_status=$? | |
27332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27333 | (exit $ac_status); } && | |
27334 | { ac_try='test -s conftest.$ac_objext' | |
27335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27336 | (eval $ac_try) 2>&5 | |
27337 | ac_status=$? | |
27338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27339 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27340 | wx_cv_type_statvfs_t=statvfs_t |
27341 | else | |
e6cc62c6 VS |
27342 | echo "$as_me: failed program was:" >&5 |
27343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27344 | ||
27345 | ||
27346 | cat >conftest.$ac_ext <<_ACEOF | |
27347 | #line $LINENO "configure" | |
27348 | /* confdefs.h. */ | |
27349 | _ACEOF | |
27350 | cat confdefs.h >>conftest.$ac_ext | |
27351 | cat >>conftest.$ac_ext <<_ACEOF | |
27352 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27353 | |
27354 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27355 | |
27356 | int | |
27357 | main () | |
27358 | { | |
54ab82b3 VZ |
27359 | |
27360 | long l; | |
65d8ef1e | 27361 | struct statvfs fs; |
54ab82b3 VZ |
27362 | statvfs("/", &fs); |
27363 | l = fs.f_bsize; | |
27364 | l += fs.f_blocks; | |
27365 | l += fs.f_bavail; | |
e6cc62c6 VS |
27366 | |
27367 | ; | |
27368 | return 0; | |
27369 | } | |
27370 | _ACEOF | |
27371 | rm -f conftest.$ac_objext | |
27372 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
27373 | (eval $ac_compile) 2>&5 | |
27374 | ac_status=$? | |
27375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27376 | (exit $ac_status); } && | |
27377 | { ac_try='test -s conftest.$ac_objext' | |
27378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27379 | (eval $ac_try) 2>&5 | |
27380 | ac_status=$? | |
27381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27382 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27383 | wx_cv_type_statvfs_t="struct statvfs" |
27384 | else | |
e6cc62c6 VS |
27385 | echo "$as_me: failed program was:" >&5 |
27386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27387 | ||
27388 | wx_cv_type_statvfs_t="unknown" | |
27389 | ||
54ab82b3 | 27390 | fi |
e6cc62c6 VS |
27391 | rm -f conftest.$ac_objext conftest.$ac_ext |
27392 | ||
27393 | ||
54ab82b3 | 27394 | fi |
e6cc62c6 | 27395 | rm -f conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 27396 | |
e6cc62c6 VS |
27397 | fi |
27398 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
27399 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
27400 | |
27401 | ac_ext=c | |
54ab82b3 | 27402 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27403 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27404 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27405 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
27406 | |
27407 | ||
27408 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 27409 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27410 | #define HAVE_STATVFS 1 |
e6cc62c6 | 27411 | _ACEOF |
af15babd | 27412 | |
54ab82b3 | 27413 | fi |
4f14bcd8 | 27414 | else |
54ab82b3 | 27415 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
27416 | fi |
27417 | fi | |
af15babd | 27418 | |
54ab82b3 | 27419 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 27420 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 27421 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 27422 | _ACEOF |
54ab82b3 VZ |
27423 | |
27424 | else | |
e6cc62c6 VS |
27425 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
27426 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
27427 | fi |
27428 | ||
4f14bcd8 | 27429 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
27430 | |
27431 | ||
27432 | for ac_func in fcntl flock | |
af15babd | 27433 | do |
e6cc62c6 VS |
27434 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27435 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27436 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27437 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27439 | else | |
27440 | cat >conftest.$ac_ext <<_ACEOF | |
27441 | #line $LINENO "configure" | |
27442 | /* confdefs.h. */ | |
27443 | _ACEOF | |
27444 | cat confdefs.h >>conftest.$ac_ext | |
27445 | cat >>conftest.$ac_ext <<_ACEOF | |
27446 | /* end confdefs.h. */ | |
af15babd | 27447 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27448 | which can conflict with char $ac_func (); below. |
27449 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27450 | <limits.h> exists even on freestanding compilers. */ | |
27451 | #ifdef __STDC__ | |
27452 | # include <limits.h> | |
27453 | #else | |
27454 | # include <assert.h> | |
27455 | #endif | |
af15babd | 27456 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27457 | #ifdef __cplusplus |
27458 | extern "C" | |
27459 | { | |
27460 | #endif | |
af15babd | 27461 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27462 | builtin and then its argument prototype would still apply. */ |
27463 | char $ac_func (); | |
af15babd VZ |
27464 | /* The GNU C library defines this for functions which it implements |
27465 | to always fail with ENOSYS. Some functions are actually named | |
27466 | something starting with __ and the normal name is an alias. */ | |
27467 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27468 | choke me | |
27469 | #else | |
e6cc62c6 VS |
27470 | char (*f) () = $ac_func; |
27471 | #endif | |
27472 | #ifdef __cplusplus | |
27473 | } | |
af15babd VZ |
27474 | #endif |
27475 | ||
e6cc62c6 VS |
27476 | int |
27477 | main () | |
27478 | { | |
27479 | return f != $ac_func; | |
27480 | ; | |
27481 | return 0; | |
27482 | } | |
27483 | _ACEOF | |
27484 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27486 | (eval $ac_link) 2>&5 | |
27487 | ac_status=$? | |
27488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27489 | (exit $ac_status); } && | |
27490 | { ac_try='test -s conftest$ac_exeext' | |
27491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27492 | (eval $ac_try) 2>&5 | |
27493 | ac_status=$? | |
27494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27495 | (exit $ac_status); }; }; then | |
27496 | eval "$as_ac_var=yes" | |
27497 | else | |
27498 | echo "$as_me: failed program was:" >&5 | |
27499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27500 | ||
27501 | eval "$as_ac_var=no" | |
27502 | fi | |
27503 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27504 | fi | |
27505 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27506 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27507 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27508 | cat >>confdefs.h <<_ACEOF | |
27509 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27510 | _ACEOF | |
4f14bcd8 | 27511 | break |
af15babd VZ |
27512 | fi |
27513 | done | |
27514 | ||
8284b0c5 | 27515 | |
4f14bcd8 | 27516 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
27517 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
27518 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
27519 | wxUSE_SNGLINST_CHECKER=no |
27520 | fi | |
27521 | fi | |
af15babd | 27522 | |
e6cc62c6 | 27523 | |
4f14bcd8 | 27524 | for ac_func in timegm |
af15babd | 27525 | do |
e6cc62c6 VS |
27526 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27527 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27528 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27529 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27531 | else | |
27532 | cat >conftest.$ac_ext <<_ACEOF | |
27533 | #line $LINENO "configure" | |
27534 | /* confdefs.h. */ | |
27535 | _ACEOF | |
27536 | cat confdefs.h >>conftest.$ac_ext | |
27537 | cat >>conftest.$ac_ext <<_ACEOF | |
27538 | /* end confdefs.h. */ | |
af15babd | 27539 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27540 | which can conflict with char $ac_func (); below. |
27541 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27542 | <limits.h> exists even on freestanding compilers. */ | |
27543 | #ifdef __STDC__ | |
27544 | # include <limits.h> | |
27545 | #else | |
27546 | # include <assert.h> | |
27547 | #endif | |
af15babd | 27548 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27549 | #ifdef __cplusplus |
27550 | extern "C" | |
27551 | { | |
27552 | #endif | |
af15babd | 27553 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27554 | builtin and then its argument prototype would still apply. */ |
27555 | char $ac_func (); | |
af15babd VZ |
27556 | /* The GNU C library defines this for functions which it implements |
27557 | to always fail with ENOSYS. Some functions are actually named | |
27558 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
27559 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27560 | choke me | |
27561 | #else | |
e6cc62c6 VS |
27562 | char (*f) () = $ac_func; |
27563 | #endif | |
27564 | #ifdef __cplusplus | |
27565 | } | |
247f5006 VZ |
27566 | #endif |
27567 | ||
e6cc62c6 VS |
27568 | int |
27569 | main () | |
27570 | { | |
27571 | return f != $ac_func; | |
27572 | ; | |
27573 | return 0; | |
27574 | } | |
27575 | _ACEOF | |
27576 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27577 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27578 | (eval $ac_link) 2>&5 | |
27579 | ac_status=$? | |
27580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27581 | (exit $ac_status); } && | |
27582 | { ac_try='test -s conftest$ac_exeext' | |
27583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27584 | (eval $ac_try) 2>&5 | |
27585 | ac_status=$? | |
27586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27587 | (exit $ac_status); }; }; then | |
27588 | eval "$as_ac_var=yes" | |
27589 | else | |
27590 | echo "$as_me: failed program was:" >&5 | |
27591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27592 | ||
27593 | eval "$as_ac_var=no" | |
27594 | fi | |
27595 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27596 | fi | |
27597 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27598 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27599 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27600 | cat >>confdefs.h <<_ACEOF | |
27601 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27602 | _ACEOF | |
703e0a69 | 27603 | |
af15babd VZ |
27604 | fi |
27605 | done | |
27606 | ||
8284b0c5 | 27607 | |
e6cc62c6 VS |
27608 | |
27609 | ||
4f14bcd8 | 27610 | for ac_func in putenv setenv |
10f2d63a | 27611 | do |
e6cc62c6 VS |
27612 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27613 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27614 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27615 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27617 | else | |
27618 | cat >conftest.$ac_ext <<_ACEOF | |
27619 | #line $LINENO "configure" | |
27620 | /* confdefs.h. */ | |
27621 | _ACEOF | |
27622 | cat confdefs.h >>conftest.$ac_ext | |
27623 | cat >>conftest.$ac_ext <<_ACEOF | |
27624 | /* end confdefs.h. */ | |
af15babd | 27625 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27626 | which can conflict with char $ac_func (); below. |
27627 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27628 | <limits.h> exists even on freestanding compilers. */ | |
27629 | #ifdef __STDC__ | |
27630 | # include <limits.h> | |
27631 | #else | |
27632 | # include <assert.h> | |
27633 | #endif | |
af15babd | 27634 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27635 | #ifdef __cplusplus |
27636 | extern "C" | |
27637 | { | |
27638 | #endif | |
af15babd | 27639 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27640 | builtin and then its argument prototype would still apply. */ |
27641 | char $ac_func (); | |
af15babd VZ |
27642 | /* The GNU C library defines this for functions which it implements |
27643 | to always fail with ENOSYS. Some functions are actually named | |
27644 | something starting with __ and the normal name is an alias. */ | |
27645 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27646 | choke me | |
27647 | #else | |
e6cc62c6 VS |
27648 | char (*f) () = $ac_func; |
27649 | #endif | |
27650 | #ifdef __cplusplus | |
27651 | } | |
af15babd VZ |
27652 | #endif |
27653 | ||
e6cc62c6 VS |
27654 | int |
27655 | main () | |
27656 | { | |
27657 | return f != $ac_func; | |
27658 | ; | |
27659 | return 0; | |
27660 | } | |
27661 | _ACEOF | |
27662 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27664 | (eval $ac_link) 2>&5 | |
27665 | ac_status=$? | |
27666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27667 | (exit $ac_status); } && | |
27668 | { ac_try='test -s conftest$ac_exeext' | |
27669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27670 | (eval $ac_try) 2>&5 | |
27671 | ac_status=$? | |
27672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27673 | (exit $ac_status); }; }; then | |
27674 | eval "$as_ac_var=yes" | |
27675 | else | |
27676 | echo "$as_me: failed program was:" >&5 | |
27677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27678 | ||
27679 | eval "$as_ac_var=no" | |
27680 | fi | |
27681 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27682 | fi | |
27683 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27684 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27685 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27686 | cat >>confdefs.h <<_ACEOF | |
27687 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27688 | _ACEOF | |
4f14bcd8 | 27689 | break |
af15babd | 27690 | fi |
af15babd VZ |
27691 | done |
27692 | ||
8284b0c5 | 27693 | |
4f14bcd8 GD |
27694 | HAVE_SOME_SLEEP_FUNC=0 |
27695 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 27696 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27697 | #define HAVE_SLEEP 1 |
e6cc62c6 | 27698 | _ACEOF |
af15babd | 27699 | |
4f14bcd8 | 27700 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27701 | fi |
27702 | ||
4f14bcd8 | 27703 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 27704 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27705 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27706 | _ACEOF |
10f2d63a | 27707 | |
4f14bcd8 | 27708 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27709 | fi |
27710 | ||
4f14bcd8 GD |
27711 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
27712 | POSIX4_LINK= | |
e6cc62c6 VS |
27713 | |
27714 | for ac_func in nanosleep | |
4f14bcd8 | 27715 | do |
e6cc62c6 VS |
27716 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27717 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27718 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27719 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27721 | else | |
27722 | cat >conftest.$ac_ext <<_ACEOF | |
27723 | #line $LINENO "configure" | |
27724 | /* confdefs.h. */ | |
27725 | _ACEOF | |
27726 | cat confdefs.h >>conftest.$ac_ext | |
27727 | cat >>conftest.$ac_ext <<_ACEOF | |
27728 | /* end confdefs.h. */ | |
4f14bcd8 | 27729 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27730 | which can conflict with char $ac_func (); below. |
27731 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27732 | <limits.h> exists even on freestanding compilers. */ | |
27733 | #ifdef __STDC__ | |
27734 | # include <limits.h> | |
27735 | #else | |
27736 | # include <assert.h> | |
27737 | #endif | |
10f2d63a | 27738 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27739 | #ifdef __cplusplus |
27740 | extern "C" | |
27741 | { | |
27742 | #endif | |
10f2d63a | 27743 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27744 | builtin and then its argument prototype would still apply. */ |
27745 | char $ac_func (); | |
4f14bcd8 GD |
27746 | /* The GNU C library defines this for functions which it implements |
27747 | to always fail with ENOSYS. Some functions are actually named | |
27748 | something starting with __ and the normal name is an alias. */ | |
27749 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27750 | choke me | |
27751 | #else | |
e6cc62c6 VS |
27752 | char (*f) () = $ac_func; |
27753 | #endif | |
27754 | #ifdef __cplusplus | |
27755 | } | |
4f14bcd8 GD |
27756 | #endif |
27757 | ||
e6cc62c6 VS |
27758 | int |
27759 | main () | |
27760 | { | |
27761 | return f != $ac_func; | |
27762 | ; | |
27763 | return 0; | |
27764 | } | |
27765 | _ACEOF | |
27766 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27767 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27768 | (eval $ac_link) 2>&5 | |
27769 | ac_status=$? | |
27770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27771 | (exit $ac_status); } && | |
27772 | { ac_try='test -s conftest$ac_exeext' | |
27773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27774 | (eval $ac_try) 2>&5 | |
27775 | ac_status=$? | |
27776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27777 | (exit $ac_status); }; }; then | |
27778 | eval "$as_ac_var=yes" | |
27779 | else | |
27780 | echo "$as_me: failed program was:" >&5 | |
27781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27782 | ||
27783 | eval "$as_ac_var=no" | |
27784 | fi | |
27785 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27786 | fi | |
27787 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27788 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27789 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27790 | cat >>confdefs.h <<_ACEOF | |
27791 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27792 | _ACEOF | |
27793 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27794 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27795 | _ACEOF |
4f14bcd8 | 27796 | |
10f2d63a | 27797 | else |
e6cc62c6 VS |
27798 | |
27799 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
27800 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
27801 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
27802 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 27803 | else |
e6cc62c6 | 27804 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 27805 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
27806 | cat >conftest.$ac_ext <<_ACEOF |
27807 | #line $LINENO "configure" | |
27808 | /* confdefs.h. */ | |
27809 | _ACEOF | |
27810 | cat confdefs.h >>conftest.$ac_ext | |
27811 | cat >>conftest.$ac_ext <<_ACEOF | |
27812 | /* end confdefs.h. */ | |
27813 | ||
10f2d63a | 27814 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27815 | #ifdef __cplusplus |
27816 | extern "C" | |
27817 | #endif | |
10f2d63a | 27818 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27819 | builtin and then its argument prototype would still apply. */ |
27820 | char nanosleep (); | |
27821 | int | |
27822 | main () | |
27823 | { | |
27824 | nanosleep (); | |
27825 | ; | |
27826 | return 0; | |
27827 | } | |
27828 | _ACEOF | |
27829 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27830 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27831 | (eval $ac_link) 2>&5 | |
27832 | ac_status=$? | |
27833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27834 | (exit $ac_status); } && | |
27835 | { ac_try='test -s conftest$ac_exeext' | |
27836 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27837 | (eval $ac_try) 2>&5 | |
27838 | ac_status=$? | |
27839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27840 | (exit $ac_status); }; }; then | |
27841 | ac_cv_lib_posix4_nanosleep=yes | |
27842 | else | |
27843 | echo "$as_me: failed program was:" >&5 | |
27844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27845 | ||
27846 | ac_cv_lib_posix4_nanosleep=no | |
27847 | fi | |
27848 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27849 | LIBS=$ac_check_lib_save_LIBS | |
27850 | fi | |
27851 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
27852 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
27853 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
27854 | ||
27855 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27856 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 27857 | _ACEOF |
4f14bcd8 | 27858 | |
3d63bc3a | 27859 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 27860 | |
10f2d63a | 27861 | else |
10f2d63a | 27862 | |
e6cc62c6 VS |
27863 | |
27864 | for ac_func in usleep | |
4f14bcd8 | 27865 | do |
e6cc62c6 VS |
27866 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27867 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27868 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27869 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27871 | else | |
27872 | cat >conftest.$ac_ext <<_ACEOF | |
27873 | #line $LINENO "configure" | |
27874 | /* confdefs.h. */ | |
27875 | _ACEOF | |
27876 | cat confdefs.h >>conftest.$ac_ext | |
27877 | cat >>conftest.$ac_ext <<_ACEOF | |
27878 | /* end confdefs.h. */ | |
4f14bcd8 | 27879 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27880 | which can conflict with char $ac_func (); below. |
27881 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27882 | <limits.h> exists even on freestanding compilers. */ | |
27883 | #ifdef __STDC__ | |
27884 | # include <limits.h> | |
27885 | #else | |
27886 | # include <assert.h> | |
27887 | #endif | |
4f14bcd8 | 27888 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27889 | #ifdef __cplusplus |
27890 | extern "C" | |
27891 | { | |
27892 | #endif | |
4f14bcd8 | 27893 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27894 | builtin and then its argument prototype would still apply. */ |
27895 | char $ac_func (); | |
4f14bcd8 GD |
27896 | /* The GNU C library defines this for functions which it implements |
27897 | to always fail with ENOSYS. Some functions are actually named | |
27898 | something starting with __ and the normal name is an alias. */ | |
27899 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27900 | choke me | |
27901 | #else | |
e6cc62c6 VS |
27902 | char (*f) () = $ac_func; |
27903 | #endif | |
27904 | #ifdef __cplusplus | |
27905 | } | |
4f14bcd8 GD |
27906 | #endif |
27907 | ||
e6cc62c6 VS |
27908 | int |
27909 | main () | |
27910 | { | |
27911 | return f != $ac_func; | |
27912 | ; | |
27913 | return 0; | |
27914 | } | |
27915 | _ACEOF | |
27916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
27918 | (eval $ac_link) 2>&5 | |
27919 | ac_status=$? | |
27920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27921 | (exit $ac_status); } && | |
27922 | { ac_try='test -s conftest$ac_exeext' | |
27923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
27924 | (eval $ac_try) 2>&5 | |
27925 | ac_status=$? | |
27926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27927 | (exit $ac_status); }; }; then | |
27928 | eval "$as_ac_var=yes" | |
27929 | else | |
27930 | echo "$as_me: failed program was:" >&5 | |
27931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27932 | ||
27933 | eval "$as_ac_var=no" | |
27934 | fi | |
27935 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
27936 | fi | |
27937 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27938 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27939 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27940 | cat >>confdefs.h <<_ACEOF | |
27941 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27942 | _ACEOF | |
27943 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 27944 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27945 | _ACEOF |
4f14bcd8 | 27946 | |
698dcdb6 | 27947 | else |
e6cc62c6 VS |
27948 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
27949 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
27950 | ||
10f2d63a | 27951 | fi |
4f14bcd8 | 27952 | done |
10f2d63a | 27953 | |
e6cc62c6 VS |
27954 | |
27955 | ||
6232543b | 27956 | fi |
10f2d63a | 27957 | |
e6cc62c6 VS |
27958 | |
27959 | ||
1e487827 | 27960 | fi |
4f14bcd8 | 27961 | done |
703e0a69 | 27962 | |
10f2d63a VZ |
27963 | fi |
27964 | ||
e6cc62c6 VS |
27965 | |
27966 | ||
4f14bcd8 | 27967 | for ac_func in uname gethostname |
70846f0a | 27968 | do |
e6cc62c6 VS |
27969 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27970 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27971 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27972 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27974 | else | |
27975 | cat >conftest.$ac_ext <<_ACEOF | |
27976 | #line $LINENO "configure" | |
27977 | /* confdefs.h. */ | |
27978 | _ACEOF | |
27979 | cat confdefs.h >>conftest.$ac_ext | |
27980 | cat >>conftest.$ac_ext <<_ACEOF | |
27981 | /* end confdefs.h. */ | |
70846f0a | 27982 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27983 | which can conflict with char $ac_func (); below. |
27984 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27985 | <limits.h> exists even on freestanding compilers. */ | |
27986 | #ifdef __STDC__ | |
27987 | # include <limits.h> | |
27988 | #else | |
27989 | # include <assert.h> | |
27990 | #endif | |
70846f0a | 27991 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27992 | #ifdef __cplusplus |
27993 | extern "C" | |
27994 | { | |
27995 | #endif | |
70846f0a | 27996 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27997 | builtin and then its argument prototype would still apply. */ |
27998 | char $ac_func (); | |
70846f0a VZ |
27999 | /* The GNU C library defines this for functions which it implements |
28000 | to always fail with ENOSYS. Some functions are actually named | |
28001 | something starting with __ and the normal name is an alias. */ | |
28002 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28003 | choke me | |
28004 | #else | |
e6cc62c6 VS |
28005 | char (*f) () = $ac_func; |
28006 | #endif | |
28007 | #ifdef __cplusplus | |
28008 | } | |
70846f0a VZ |
28009 | #endif |
28010 | ||
e6cc62c6 VS |
28011 | int |
28012 | main () | |
28013 | { | |
28014 | return f != $ac_func; | |
28015 | ; | |
28016 | return 0; | |
28017 | } | |
28018 | _ACEOF | |
28019 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28020 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28021 | (eval $ac_link) 2>&5 | |
28022 | ac_status=$? | |
28023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28024 | (exit $ac_status); } && | |
28025 | { ac_try='test -s conftest$ac_exeext' | |
28026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28027 | (eval $ac_try) 2>&5 | |
28028 | ac_status=$? | |
28029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28030 | (exit $ac_status); }; }; then | |
28031 | eval "$as_ac_var=yes" | |
28032 | else | |
28033 | echo "$as_me: failed program was:" >&5 | |
28034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28035 | ||
28036 | eval "$as_ac_var=no" | |
28037 | fi | |
28038 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28039 | fi | |
28040 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28041 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28042 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28043 | cat >>confdefs.h <<_ACEOF | |
28044 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28045 | _ACEOF | |
4f14bcd8 | 28046 | break |
70846f0a VZ |
28047 | fi |
28048 | done | |
28049 | ||
8284b0c5 MB |
28050 | |
28051 | ||
e6cc62c6 VS |
28052 | |
28053 | ac_ext=cc | |
4f14bcd8 | 28054 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28055 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28056 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28057 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28058 | ||
8284b0c5 | 28059 | |
4f14bcd8 GD |
28060 | |
28061 | for ac_func in strtok_r | |
10f2d63a | 28062 | do |
e6cc62c6 VS |
28063 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28064 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28065 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28066 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28068 | else | |
28069 | cat >conftest.$ac_ext <<_ACEOF | |
28070 | #line $LINENO "configure" | |
28071 | /* confdefs.h. */ | |
28072 | _ACEOF | |
28073 | cat confdefs.h >>conftest.$ac_ext | |
28074 | cat >>conftest.$ac_ext <<_ACEOF | |
28075 | /* end confdefs.h. */ | |
4f14bcd8 | 28076 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28077 | which can conflict with char $ac_func (); below. |
28078 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28079 | <limits.h> exists even on freestanding compilers. */ | |
28080 | #ifdef __STDC__ | |
28081 | # include <limits.h> | |
28082 | #else | |
28083 | # include <assert.h> | |
28084 | #endif | |
4f14bcd8 GD |
28085 | /* Override any gcc2 internal prototype to avoid an error. */ |
28086 | #ifdef __cplusplus | |
28087 | extern "C" | |
e6cc62c6 | 28088 | { |
4f14bcd8 GD |
28089 | #endif |
28090 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
28091 | builtin and then its argument prototype would still apply. */ |
28092 | char $ac_func (); | |
4f14bcd8 GD |
28093 | /* The GNU C library defines this for functions which it implements |
28094 | to always fail with ENOSYS. Some functions are actually named | |
28095 | something starting with __ and the normal name is an alias. */ | |
28096 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28097 | choke me | |
28098 | #else | |
e6cc62c6 VS |
28099 | char (*f) () = $ac_func; |
28100 | #endif | |
28101 | #ifdef __cplusplus | |
28102 | } | |
4f14bcd8 GD |
28103 | #endif |
28104 | ||
e6cc62c6 VS |
28105 | int |
28106 | main () | |
28107 | { | |
28108 | return f != $ac_func; | |
28109 | ; | |
28110 | return 0; | |
28111 | } | |
28112 | _ACEOF | |
28113 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28114 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28115 | (eval $ac_link) 2>&5 | |
28116 | ac_status=$? | |
28117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28118 | (exit $ac_status); } && | |
28119 | { ac_try='test -s conftest$ac_exeext' | |
28120 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28121 | (eval $ac_try) 2>&5 | |
28122 | ac_status=$? | |
28123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28124 | (exit $ac_status); }; }; then | |
28125 | eval "$as_ac_var=yes" | |
28126 | else | |
28127 | echo "$as_me: failed program was:" >&5 | |
28128 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28129 | ||
28130 | eval "$as_ac_var=no" | |
28131 | fi | |
28132 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28133 | fi | |
28134 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28135 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28136 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28137 | cat >>confdefs.h <<_ACEOF | |
28138 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28139 | _ACEOF | |
4f14bcd8 | 28140 | |
10f2d63a VZ |
28141 | fi |
28142 | done | |
28143 | ||
8284b0c5 | 28144 | |
4f14bcd8 | 28145 | ac_ext=c |
4f14bcd8 | 28146 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28147 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28148 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28149 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 28150 | |
5c6fa7d2 | 28151 | |
8284b0c5 | 28152 | INET_LINK= |
e6cc62c6 | 28153 | |
4f14bcd8 GD |
28154 | for ac_func in inet_addr |
28155 | do | |
e6cc62c6 VS |
28156 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28157 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28158 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28159 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28160 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28161 | else | |
28162 | cat >conftest.$ac_ext <<_ACEOF | |
28163 | #line $LINENO "configure" | |
28164 | /* confdefs.h. */ | |
28165 | _ACEOF | |
28166 | cat confdefs.h >>conftest.$ac_ext | |
28167 | cat >>conftest.$ac_ext <<_ACEOF | |
28168 | /* end confdefs.h. */ | |
4f14bcd8 | 28169 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28170 | which can conflict with char $ac_func (); below. |
28171 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28172 | <limits.h> exists even on freestanding compilers. */ | |
28173 | #ifdef __STDC__ | |
28174 | # include <limits.h> | |
28175 | #else | |
28176 | # include <assert.h> | |
28177 | #endif | |
10f2d63a | 28178 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28179 | #ifdef __cplusplus |
28180 | extern "C" | |
28181 | { | |
28182 | #endif | |
10f2d63a | 28183 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28184 | builtin and then its argument prototype would still apply. */ |
28185 | char $ac_func (); | |
4f14bcd8 GD |
28186 | /* The GNU C library defines this for functions which it implements |
28187 | to always fail with ENOSYS. Some functions are actually named | |
28188 | something starting with __ and the normal name is an alias. */ | |
28189 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28190 | choke me | |
28191 | #else | |
e6cc62c6 VS |
28192 | char (*f) () = $ac_func; |
28193 | #endif | |
28194 | #ifdef __cplusplus | |
28195 | } | |
4f14bcd8 GD |
28196 | #endif |
28197 | ||
e6cc62c6 VS |
28198 | int |
28199 | main () | |
28200 | { | |
28201 | return f != $ac_func; | |
28202 | ; | |
28203 | return 0; | |
28204 | } | |
28205 | _ACEOF | |
28206 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28207 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28208 | (eval $ac_link) 2>&5 | |
28209 | ac_status=$? | |
28210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28211 | (exit $ac_status); } && | |
28212 | { ac_try='test -s conftest$ac_exeext' | |
28213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28214 | (eval $ac_try) 2>&5 | |
28215 | ac_status=$? | |
28216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28217 | (exit $ac_status); }; }; then | |
28218 | eval "$as_ac_var=yes" | |
28219 | else | |
28220 | echo "$as_me: failed program was:" >&5 | |
28221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28222 | ||
28223 | eval "$as_ac_var=no" | |
28224 | fi | |
28225 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28226 | fi | |
28227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28228 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28229 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28230 | cat >>confdefs.h <<_ACEOF | |
28231 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28232 | _ACEOF | |
28233 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28234 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 28235 | _ACEOF |
10f2d63a VZ |
28236 | |
28237 | else | |
e6cc62c6 VS |
28238 | |
28239 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
28240 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
28241 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
28242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28243 | else |
e6cc62c6 | 28244 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28245 | LIBS="-lnsl $LIBS" |
e6cc62c6 VS |
28246 | cat >conftest.$ac_ext <<_ACEOF |
28247 | #line $LINENO "configure" | |
28248 | /* confdefs.h. */ | |
28249 | _ACEOF | |
28250 | cat confdefs.h >>conftest.$ac_ext | |
28251 | cat >>conftest.$ac_ext <<_ACEOF | |
28252 | /* end confdefs.h. */ | |
28253 | ||
10f2d63a | 28254 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28255 | #ifdef __cplusplus |
28256 | extern "C" | |
28257 | #endif | |
10f2d63a | 28258 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28259 | builtin and then its argument prototype would still apply. */ |
28260 | char inet_addr (); | |
28261 | int | |
28262 | main () | |
28263 | { | |
28264 | inet_addr (); | |
28265 | ; | |
28266 | return 0; | |
28267 | } | |
28268 | _ACEOF | |
28269 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28271 | (eval $ac_link) 2>&5 | |
28272 | ac_status=$? | |
28273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28274 | (exit $ac_status); } && | |
28275 | { ac_try='test -s conftest$ac_exeext' | |
28276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28277 | (eval $ac_try) 2>&5 | |
28278 | ac_status=$? | |
28279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28280 | (exit $ac_status); }; }; then | |
28281 | ac_cv_lib_nsl_inet_addr=yes | |
28282 | else | |
28283 | echo "$as_me: failed program was:" >&5 | |
28284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28285 | ||
28286 | ac_cv_lib_nsl_inet_addr=no | |
28287 | fi | |
28288 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28289 | LIBS=$ac_check_lib_save_LIBS | |
28290 | fi | |
28291 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
28292 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
28293 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 28294 | INET_LINK="nsl" |
10f2d63a | 28295 | else |
0e012a93 VZ |
28296 | |
28297 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
e6cc62c6 VS |
28298 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 |
28299 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
28300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28301 | else |
e6cc62c6 | 28302 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28303 | LIBS="-lresolv $LIBS" |
e6cc62c6 VS |
28304 | cat >conftest.$ac_ext <<_ACEOF |
28305 | #line $LINENO "configure" | |
28306 | /* confdefs.h. */ | |
28307 | _ACEOF | |
28308 | cat confdefs.h >>conftest.$ac_ext | |
28309 | cat >>conftest.$ac_ext <<_ACEOF | |
28310 | /* end confdefs.h. */ | |
28311 | ||
5c6fa7d2 | 28312 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28313 | #ifdef __cplusplus |
28314 | extern "C" | |
28315 | #endif | |
5c6fa7d2 | 28316 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28317 | builtin and then its argument prototype would still apply. */ |
28318 | char inet_addr (); | |
28319 | int | |
28320 | main () | |
28321 | { | |
28322 | inet_addr (); | |
28323 | ; | |
28324 | return 0; | |
28325 | } | |
28326 | _ACEOF | |
28327 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28328 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28329 | (eval $ac_link) 2>&5 | |
28330 | ac_status=$? | |
28331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28332 | (exit $ac_status); } && | |
28333 | { ac_try='test -s conftest$ac_exeext' | |
28334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28335 | (eval $ac_try) 2>&5 | |
28336 | ac_status=$? | |
28337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28338 | (exit $ac_status); }; }; then | |
28339 | ac_cv_lib_resolv_inet_addr=yes | |
28340 | else | |
28341 | echo "$as_me: failed program was:" >&5 | |
28342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28343 | ||
28344 | ac_cv_lib_resolv_inet_addr=no | |
28345 | fi | |
28346 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28347 | LIBS=$ac_check_lib_save_LIBS | |
28348 | fi | |
28349 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
28350 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
28351 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 28352 | INET_LINK="resolv" |
698dcdb6 | 28353 | else |
0e012a93 VZ |
28354 | |
28355 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
e6cc62c6 VS |
28356 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 |
28357 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
28358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 28359 | else |
e6cc62c6 | 28360 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 28361 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
28362 | cat >conftest.$ac_ext <<_ACEOF |
28363 | #line $LINENO "configure" | |
28364 | /* confdefs.h. */ | |
28365 | _ACEOF | |
28366 | cat confdefs.h >>conftest.$ac_ext | |
28367 | cat >>conftest.$ac_ext <<_ACEOF | |
28368 | /* end confdefs.h. */ | |
28369 | ||
3c011993 | 28370 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28371 | #ifdef __cplusplus |
28372 | extern "C" | |
28373 | #endif | |
3c011993 | 28374 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28375 | builtin and then its argument prototype would still apply. */ |
28376 | char inet_addr (); | |
28377 | int | |
28378 | main () | |
28379 | { | |
28380 | inet_addr (); | |
28381 | ; | |
28382 | return 0; | |
28383 | } | |
28384 | _ACEOF | |
28385 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28386 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28387 | (eval $ac_link) 2>&5 | |
28388 | ac_status=$? | |
28389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28390 | (exit $ac_status); } && | |
28391 | { ac_try='test -s conftest$ac_exeext' | |
28392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28393 | (eval $ac_try) 2>&5 | |
28394 | ac_status=$? | |
28395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28396 | (exit $ac_status); }; }; then | |
28397 | ac_cv_lib_socket_inet_addr=yes | |
28398 | else | |
28399 | echo "$as_me: failed program was:" >&5 | |
28400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28401 | ||
28402 | ac_cv_lib_socket_inet_addr=no | |
28403 | fi | |
28404 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28405 | LIBS=$ac_check_lib_save_LIBS | |
28406 | fi | |
28407 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
28408 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
28409 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
28410 | INET_LINK="socket" | |
4f14bcd8 | 28411 | |
8284b0c5 | 28412 | fi |
e6cc62c6 | 28413 | |
698dcdb6 | 28414 | |
0e012a93 | 28415 | |
7b4a847f | 28416 | fi |
e6cc62c6 VS |
28417 | |
28418 | ||
0e012a93 | 28419 | |
a0b9e27f | 28420 | fi |
579d8138 | 28421 | |
e6cc62c6 VS |
28422 | |
28423 | ||
5c6fa7d2 | 28424 | fi |
e6cc62c6 VS |
28425 | done |
28426 | ||
28427 | ||
28428 | ||
28429 | for ac_func in inet_aton | |
28430 | do | |
28431 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28432 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28433 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28434 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28436 | else | |
28437 | cat >conftest.$ac_ext <<_ACEOF | |
28438 | #line $LINENO "configure" | |
28439 | /* confdefs.h. */ | |
28440 | _ACEOF | |
28441 | cat confdefs.h >>conftest.$ac_ext | |
28442 | cat >>conftest.$ac_ext <<_ACEOF | |
28443 | /* end confdefs.h. */ | |
28444 | /* System header to define __stub macros and hopefully few prototypes, | |
28445 | which can conflict with char $ac_func (); below. | |
28446 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28447 | <limits.h> exists even on freestanding compilers. */ | |
28448 | #ifdef __STDC__ | |
28449 | # include <limits.h> | |
28450 | #else | |
28451 | # include <assert.h> | |
28452 | #endif | |
28453 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28454 | #ifdef __cplusplus | |
28455 | extern "C" | |
28456 | { | |
28457 | #endif | |
28458 | /* We use char because int might match the return type of a gcc2 | |
28459 | builtin and then its argument prototype would still apply. */ | |
28460 | char $ac_func (); | |
28461 | /* The GNU C library defines this for functions which it implements | |
28462 | to always fail with ENOSYS. Some functions are actually named | |
28463 | something starting with __ and the normal name is an alias. */ | |
28464 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28465 | choke me | |
28466 | #else | |
28467 | char (*f) () = $ac_func; | |
28468 | #endif | |
28469 | #ifdef __cplusplus | |
28470 | } | |
28471 | #endif | |
28472 | ||
28473 | int | |
28474 | main () | |
28475 | { | |
28476 | return f != $ac_func; | |
28477 | ; | |
28478 | return 0; | |
28479 | } | |
28480 | _ACEOF | |
28481 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28482 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28483 | (eval $ac_link) 2>&5 | |
28484 | ac_status=$? | |
28485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28486 | (exit $ac_status); } && | |
28487 | { ac_try='test -s conftest$ac_exeext' | |
28488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28489 | (eval $ac_try) 2>&5 | |
28490 | ac_status=$? | |
28491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28492 | (exit $ac_status); }; }; then | |
28493 | eval "$as_ac_var=yes" | |
28494 | else | |
28495 | echo "$as_me: failed program was:" >&5 | |
28496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28497 | ||
28498 | eval "$as_ac_var=no" | |
28499 | fi | |
28500 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28501 | fi | |
28502 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28503 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28504 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28505 | cat >>confdefs.h <<_ACEOF | |
28506 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28507 | _ACEOF | |
28508 | cat >>confdefs.h <<\_ACEOF | |
28509 | #define HAVE_INET_ATON 1 | |
28510 | _ACEOF | |
28511 | ||
28512 | else | |
28513 | ||
28514 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
28515 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
28516 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
28517 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
28518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28519 | else | |
28520 | ac_check_lib_save_LIBS=$LIBS | |
28521 | LIBS="-l$INET_LINK $LIBS" | |
28522 | cat >conftest.$ac_ext <<_ACEOF | |
28523 | #line $LINENO "configure" | |
28524 | /* confdefs.h. */ | |
28525 | _ACEOF | |
28526 | cat confdefs.h >>conftest.$ac_ext | |
28527 | cat >>conftest.$ac_ext <<_ACEOF | |
28528 | /* end confdefs.h. */ | |
28529 | ||
28530 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28531 | #ifdef __cplusplus | |
28532 | extern "C" | |
28533 | #endif | |
28534 | /* We use char because int might match the return type of a gcc2 | |
28535 | builtin and then its argument prototype would still apply. */ | |
28536 | char inet_aton (); | |
28537 | int | |
28538 | main () | |
28539 | { | |
28540 | inet_aton (); | |
28541 | ; | |
28542 | return 0; | |
28543 | } | |
28544 | _ACEOF | |
28545 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28547 | (eval $ac_link) 2>&5 | |
28548 | ac_status=$? | |
28549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28550 | (exit $ac_status); } && | |
28551 | { ac_try='test -s conftest$ac_exeext' | |
28552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28553 | (eval $ac_try) 2>&5 | |
28554 | ac_status=$? | |
28555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28556 | (exit $ac_status); }; }; then | |
28557 | eval "$as_ac_Lib=yes" | |
28558 | else | |
28559 | echo "$as_me: failed program was:" >&5 | |
28560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28561 | ||
28562 | eval "$as_ac_Lib=no" | |
28563 | fi | |
28564 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28565 | LIBS=$ac_check_lib_save_LIBS | |
28566 | fi | |
28567 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
28568 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
28569 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
28570 | cat >>confdefs.h <<\_ACEOF | |
28571 | #define HAVE_INET_ATON 1 | |
28572 | _ACEOF | |
52127426 | 28573 | |
a0b9e27f | 28574 | fi |
247f5006 | 28575 | |
8284b0c5 | 28576 | |
698dcdb6 | 28577 | fi |
4f14bcd8 GD |
28578 | done |
28579 | ||
8284b0c5 | 28580 | |
e6cc62c6 VS |
28581 | if test "x$INET_LINK" != "x"; then |
28582 | cat >>confdefs.h <<\_ACEOF | |
28583 | #define HAVE_INET_ADDR 1 | |
28584 | _ACEOF | |
28585 | ||
28586 | INET_LINK=" -l$INET_LINK" | |
28587 | fi | |
28588 | ||
28589 | fi | |
a0b9e27f | 28590 | |
a0b9e27f | 28591 | |
4f14bcd8 | 28592 | |
edd891e2 VS |
28593 | EXTRALIBS_ESD= |
28594 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
28595 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
28596 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
28597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28598 | else | |
28599 | ac_check_lib_save_LIBS=$LIBS | |
28600 | LIBS="-lesd $LIBS" | |
28601 | cat >conftest.$ac_ext <<_ACEOF | |
28602 | #line $LINENO "configure" | |
28603 | /* confdefs.h. */ | |
28604 | _ACEOF | |
28605 | cat confdefs.h >>conftest.$ac_ext | |
28606 | cat >>conftest.$ac_ext <<_ACEOF | |
28607 | /* end confdefs.h. */ | |
28608 | ||
28609 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28610 | #ifdef __cplusplus | |
28611 | extern "C" | |
28612 | #endif | |
28613 | /* We use char because int might match the return type of a gcc2 | |
28614 | builtin and then its argument prototype would still apply. */ | |
28615 | char esd_close (); | |
28616 | int | |
28617 | main () | |
28618 | { | |
28619 | esd_close (); | |
28620 | ; | |
28621 | return 0; | |
28622 | } | |
28623 | _ACEOF | |
28624 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
28626 | (eval $ac_link) 2>&5 | |
28627 | ac_status=$? | |
28628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28629 | (exit $ac_status); } && | |
28630 | { ac_try='test -s conftest$ac_exeext' | |
28631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28632 | (eval $ac_try) 2>&5 | |
28633 | ac_status=$? | |
28634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28635 | (exit $ac_status); }; }; then | |
28636 | ac_cv_lib_esd_esd_close=yes | |
28637 | else | |
28638 | echo "$as_me: failed program was:" >&5 | |
28639 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28640 | ||
28641 | ac_cv_lib_esd_esd_close=no | |
28642 | fi | |
28643 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
28644 | LIBS=$ac_check_lib_save_LIBS | |
28645 | fi | |
28646 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
28647 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
28648 | if test $ac_cv_lib_esd_esd_close = yes; then | |
28649 | ||
28650 | ||
28651 | for ac_header in esd.h | |
28652 | do | |
28653 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28654 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28655 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28656 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28657 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
28658 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28659 | fi | |
edd891e2 VS |
28660 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28661 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
e6cc62c6 VS |
28662 | else |
28663 | # Is the header compilable? | |
edd891e2 VS |
28664 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
28665 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 VS |
28666 | cat >conftest.$ac_ext <<_ACEOF |
28667 | #line $LINENO "configure" | |
28668 | /* confdefs.h. */ | |
28669 | _ACEOF | |
28670 | cat confdefs.h >>conftest.$ac_ext | |
28671 | cat >>conftest.$ac_ext <<_ACEOF | |
28672 | /* end confdefs.h. */ | |
28673 | $ac_includes_default | |
edd891e2 | 28674 | #include <$ac_header> |
e6cc62c6 VS |
28675 | _ACEOF |
28676 | rm -f conftest.$ac_objext | |
28677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28678 | (eval $ac_compile) 2>&5 | |
28679 | ac_status=$? | |
28680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28681 | (exit $ac_status); } && | |
28682 | { ac_try='test -s conftest.$ac_objext' | |
28683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28684 | (eval $ac_try) 2>&5 | |
28685 | ac_status=$? | |
28686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28687 | (exit $ac_status); }; }; then | |
28688 | ac_header_compiler=yes | |
28689 | else | |
28690 | echo "$as_me: failed program was:" >&5 | |
28691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28692 | ||
28693 | ac_header_compiler=no | |
28694 | fi | |
28695 | rm -f conftest.$ac_objext conftest.$ac_ext | |
28696 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
28697 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28698 | ||
28699 | # Is the header present? | |
edd891e2 VS |
28700 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
28701 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
e6cc62c6 VS |
28702 | cat >conftest.$ac_ext <<_ACEOF |
28703 | #line $LINENO "configure" | |
28704 | /* confdefs.h. */ | |
28705 | _ACEOF | |
28706 | cat confdefs.h >>conftest.$ac_ext | |
28707 | cat >>conftest.$ac_ext <<_ACEOF | |
28708 | /* end confdefs.h. */ | |
edd891e2 | 28709 | #include <$ac_header> |
e6cc62c6 VS |
28710 | _ACEOF |
28711 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
28712 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
28713 | ac_status=$? | |
28714 | grep -v '^ *+' conftest.er1 >conftest.err | |
28715 | rm -f conftest.er1 | |
28716 | cat conftest.err >&5 | |
28717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28718 | (exit $ac_status); } >/dev/null; then | |
28719 | if test -s conftest.err; then | |
28720 | ac_cpp_err=$ac_c_preproc_warn_flag | |
28721 | else | |
28722 | ac_cpp_err= | |
28723 | fi | |
a0b9e27f | 28724 | else |
e6cc62c6 VS |
28725 | ac_cpp_err=yes |
28726 | fi | |
28727 | if test -z "$ac_cpp_err"; then | |
28728 | ac_header_preproc=yes | |
28729 | else | |
28730 | echo "$as_me: failed program was:" >&5 | |
28731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28732 | ||
28733 | ac_header_preproc=no | |
28734 | fi | |
28735 | rm -f conftest.err conftest.$ac_ext | |
28736 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
28737 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
28738 | ||
28739 | # So? What about this header? | |
28740 | case $ac_header_compiler:$ac_header_preproc in | |
28741 | yes:no ) | |
edd891e2 VS |
28742 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
28743 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
28744 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28745 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
e6cc62c6 VS |
28746 | ( |
28747 | cat <<\_ASBOX | |
28748 | ## ------------------------------------ ## | |
28749 | ## Report this to bug-autoconf@gnu.org. ## | |
28750 | ## ------------------------------------ ## | |
28751 | _ASBOX | |
28752 | ) | | |
28753 | sed "s/^/$as_me: WARNING: /" >&2 | |
28754 | ;; | |
28755 | no:yes ) | |
edd891e2 VS |
28756 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
28757 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
28758 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
28759 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
28760 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
28761 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
e6cc62c6 VS |
28762 | ( |
28763 | cat <<\_ASBOX | |
28764 | ## ------------------------------------ ## | |
28765 | ## Report this to bug-autoconf@gnu.org. ## | |
28766 | ## ------------------------------------ ## | |
28767 | _ASBOX | |
28768 | ) | | |
28769 | sed "s/^/$as_me: WARNING: /" >&2 | |
28770 | ;; | |
28771 | esac | |
edd891e2 VS |
28772 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
28773 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28774 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
28775 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28776 | else | |
edd891e2 | 28777 | eval "$as_ac_Header=$ac_header_preproc" |
a0b9e27f | 28778 | fi |
edd891e2 VS |
28779 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28780 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a0b9e27f | 28781 | |
e6cc62c6 | 28782 | fi |
edd891e2 VS |
28783 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
28784 | cat >>confdefs.h <<_ACEOF | |
28785 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
e6cc62c6 | 28786 | _ACEOF |
e6cc62c6 | 28787 | |
edd891e2 | 28788 | EXTRALIBS_ESD="-lesd" |
4f14bcd8 | 28789 | |
a0b9e27f | 28790 | fi |
247f5006 | 28791 | |
edd891e2 | 28792 | done |
8284b0c5 | 28793 | |
4f14bcd8 | 28794 | |
6232543b | 28795 | fi |
10f2d63a | 28796 | |
703e0a69 | 28797 | |
8284b0c5 | 28798 | |
d19d1899 MB |
28799 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 |
28800 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
28801 | cat >conftest.$ac_ext <<_ACEOF | |
28802 | #line $LINENO "configure" | |
28803 | /* confdefs.h. */ | |
28804 | _ACEOF | |
28805 | cat confdefs.h >>conftest.$ac_ext | |
28806 | cat >>conftest.$ac_ext <<_ACEOF | |
28807 | /* end confdefs.h. */ | |
28808 | #ifdef __linux__ | |
28809 | #include <linux/cdrom.h> | |
28810 | #else | |
28811 | /* For Solaris */ | |
28812 | #include <sys/cdio.h> | |
28813 | #endif | |
28814 | ||
28815 | int | |
28816 | main () | |
28817 | { | |
28818 | struct cdrom_tocentry entry, old_entry; | |
28819 | ; | |
28820 | return 0; | |
28821 | } | |
28822 | _ACEOF | |
28823 | rm -f conftest.$ac_objext | |
28824 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
28825 | (eval $ac_compile) 2>&5 | |
28826 | ac_status=$? | |
28827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28828 | (exit $ac_status); } && | |
28829 | { ac_try='test -s conftest.$ac_objext' | |
28830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
28831 | (eval $ac_try) 2>&5 | |
28832 | ac_status=$? | |
28833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28834 | (exit $ac_status); }; }; then | |
28835 | echo "$as_me:$LINENO: result: yes" >&5 | |
28836 | echo "${ECHO_T}yes" >&6 | |
28837 | cat >>confdefs.h <<\_ACEOF | |
28838 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
28839 | _ACEOF | |
28840 | ||
28841 | else | |
28842 | echo "$as_me: failed program was:" >&5 | |
28843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28844 | ||
28845 | echo "$as_me:$LINENO: result: no" >&5 | |
28846 | echo "${ECHO_T}no" >&6 | |
28847 | fi | |
28848 | rm -f conftest.$ac_objext conftest.$ac_ext | |
e6cc62c6 VS |
28849 | |
28850 | ||
28851 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
28852 | # This file is a shell script that caches the results of configure |
28853 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
28854 | # scripts and configure runs, see configure's option --config-cache. |
28855 | # It is not useful on other systems. If it contains results you don't | |
28856 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 28857 | # |
e6cc62c6 VS |
28858 | # config.status only pays attention to the cache file if you give it |
28859 | # the --recheck option to rerun configure. | |
4f14bcd8 | 28860 | # |
e6cc62c6 VS |
28861 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
28862 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
28863 | # following values. | |
28864 | ||
28865 | _ACEOF | |
28866 | ||
4f14bcd8 GD |
28867 | # The following way of writing the cache mishandles newlines in values, |
28868 | # but we know of no workaround that is simple, portable, and efficient. | |
28869 | # So, don't put newlines in cache variables' values. | |
28870 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
28871 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
28872 | { |
28873 | (set) 2>&1 | | |
28874 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
28875 | *ac_space=\ *) | |
28876 | # `set' does not quote correctly, so add quotes (double-quote | |
28877 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
28878 | sed -n \ | |
28879 | "s/'/'\\\\''/g; | |
28880 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
28881 | ;; | |
28882 | *) | |
28883 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
28884 | sed -n \ | |
28885 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
28886 | ;; | |
28887 | esac; | |
28888 | } | | |
28889 | sed ' | |
28890 | t clear | |
28891 | : clear | |
28892 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
28893 | t end | |
28894 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
28895 | : end' >>confcache | |
28896 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 28897 | if test -w $cache_file; then |
e6cc62c6 VS |
28898 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
28899 | cat confcache >$cache_file | |
f6bcfd97 | 28900 | else |
4f14bcd8 | 28901 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 28902 | fi |
4f14bcd8 GD |
28903 | fi |
28904 | rm -f confcache | |
f6bcfd97 | 28905 | |
8284b0c5 | 28906 | |
009fead0 | 28907 | CPP_MT_FLAG= |
73d617c9 | 28908 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
4f14bcd8 | 28909 | |
e6cc62c6 | 28910 | |
7274f1c7 | 28911 | THREADS_LINK= |
009fead0 | 28912 | THREADS_CFLAGS= |
7274f1c7 RL |
28913 | |
28914 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 28915 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
28916 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
28917 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
28918 | wxUSE_THREADS="no" |
28919 | fi | |
4f14bcd8 | 28920 | fi |
4f14bcd8 | 28921 | |
7274f1c7 | 28922 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
28923 | |
28924 | ||
009fead0 VZ |
28925 | THREAD_OPTS="-pthread" |
28926 | case "${host}" in | |
28927 | *-*-solaris2* | *-*-sunos4* ) | |
28928 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 28929 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
28930 | else |
28931 | THREAD_OPTS="-mt $THREAD_OPTS" | |
28932 | fi | |
28933 | ;; | |
28934 | *-*-freebsd*) | |
28935 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
28936 | ;; | |
17234b26 MB |
28937 | *-*-darwin* | *-*-cygwin* ) |
28938 | THREAD_OPTS="" | |
4101db81 | 28939 | ;; |
8f4a9a10 | 28940 | *-*-aix*) |
009fead0 VZ |
28941 | THREAD_OPTS="pthreads" |
28942 | ;; | |
4f5a7f74 VZ |
28943 | *-hp-hpux* ) |
28944 | if test "x$GCC" != "xyes"; then | |
28945 | THREAD_OPTS="" | |
28946 | fi | |
89e3b3e4 VZ |
28947 | ;; |
28948 | ||
28949 | *-*-irix* ) | |
28950 | if test "x$GCC" = "xyes"; then | |
28951 | THREAD_OPTS="" | |
28952 | fi | |
28953 | ;; | |
28954 | ||
28955 | *-*-*UnixWare*) | |
28956 | if test "x$GCC" != "xyes"; then | |
28957 | THREAD_OPTS="-Ethread" | |
28958 | fi | |
28959 | ;; | |
009fead0 | 28960 | esac |
4f14bcd8 | 28961 | |
02a1dfba | 28962 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 28963 | |
009fead0 VZ |
28964 | THREADS_OK=no |
28965 | for flag in $THREAD_OPTS; do | |
28966 | case $flag in | |
28967 | none) | |
e6cc62c6 VS |
28968 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
28969 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 28970 | ;; |
698dcdb6 | 28971 | |
009fead0 | 28972 | -*) |
e6cc62c6 VS |
28973 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
28974 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
28975 | THREADS_CFLAGS="$flag" |
28976 | ;; | |
698dcdb6 | 28977 | |
009fead0 | 28978 | *) |
e6cc62c6 VS |
28979 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
28980 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
28981 | THREADS_LINK="-l$flag" |
28982 | ;; | |
28983 | esac | |
10f2d63a | 28984 | |
009fead0 VZ |
28985 | save_LIBS="$LIBS" |
28986 | save_CFLAGS="$CFLAGS" | |
28987 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 28988 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 28989 | |
e6cc62c6 VS |
28990 | cat >conftest.$ac_ext <<_ACEOF |
28991 | #line $LINENO "configure" | |
28992 | /* confdefs.h. */ | |
28993 | _ACEOF | |
28994 | cat confdefs.h >>conftest.$ac_ext | |
28995 | cat >>conftest.$ac_ext <<_ACEOF | |
28996 | /* end confdefs.h. */ | |
009fead0 | 28997 | #include <pthread.h> |
e6cc62c6 VS |
28998 | int |
28999 | main () | |
29000 | { | |
009fead0 | 29001 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
29002 | ; |
29003 | return 0; | |
29004 | } | |
29005 | _ACEOF | |
29006 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29008 | (eval $ac_link) 2>&5 | |
29009 | ac_status=$? | |
29010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29011 | (exit $ac_status); } && | |
29012 | { ac_try='test -s conftest$ac_exeext' | |
29013 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29014 | (eval $ac_try) 2>&5 | |
29015 | ac_status=$? | |
29016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29017 | (exit $ac_status); }; }; then | |
009fead0 | 29018 | THREADS_OK=yes |
10f2d63a | 29019 | else |
e6cc62c6 VS |
29020 | echo "$as_me: failed program was:" >&5 |
29021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29022 | ||
6232543b | 29023 | fi |
e6cc62c6 | 29024 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
698dcdb6 | 29025 | |
009fead0 VZ |
29026 | LIBS="$save_LIBS" |
29027 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 29028 | |
e6cc62c6 VS |
29029 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
29030 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
29031 | if test "x$THREADS_OK" = "xyes"; then |
29032 | break; | |
29033 | fi | |
d9b9876f | 29034 | |
009fead0 VZ |
29035 | THREADS_LINK="" |
29036 | THREADS_CFLAGS="" | |
29037 | done | |
4f14bcd8 | 29038 | |
009fead0 VZ |
29039 | if test "x$THREADS_OK" != "xyes"; then |
29040 | wxUSE_THREADS=no | |
e6cc62c6 VS |
29041 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
29042 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 29043 | else |
db82f09e VZ |
29044 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
29045 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 29046 | |
e6cc62c6 VS |
29047 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
29048 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
29049 | flag=no |
29050 | case "${host}" in | |
2b5f62a0 VZ |
29051 | *-aix*) |
29052 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
29053 | flag="-D_THREAD_SAFE" | |
29054 | ;; | |
29055 | *-freebsd*) | |
009fead0 VZ |
29056 | flag="-D_THREAD_SAFE" |
29057 | ;; | |
06313569 GD |
29058 | *-hp-hpux* ) |
29059 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
29060 | if test "x$GCC" != "xyes"; then |
29061 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
29062 | fi | |
06313569 | 29063 | ;; |
009fead0 VZ |
29064 | *solaris* | alpha*-osf*) |
29065 | flag="-D_REENTRANT" | |
29066 | ;; | |
29067 | esac | |
e6cc62c6 VS |
29068 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
29069 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 29070 | if test "x$flag" != xno; then |
04727afd | 29071 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
29072 | fi |
29073 | ||
009fead0 | 29074 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 29075 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
29076 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
29077 | fi | |
29078 | fi | |
4f14bcd8 | 29079 | fi |
4f14bcd8 | 29080 | |
7274f1c7 | 29081 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
29082 | |
29083 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 29084 | do |
e6cc62c6 VS |
29085 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29086 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29087 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29088 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29090 | else | |
29091 | cat >conftest.$ac_ext <<_ACEOF | |
29092 | #line $LINENO "configure" | |
29093 | /* confdefs.h. */ | |
29094 | _ACEOF | |
29095 | cat confdefs.h >>conftest.$ac_ext | |
29096 | cat >>conftest.$ac_ext <<_ACEOF | |
29097 | /* end confdefs.h. */ | |
4f14bcd8 | 29098 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29099 | which can conflict with char $ac_func (); below. |
29100 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29101 | <limits.h> exists even on freestanding compilers. */ | |
29102 | #ifdef __STDC__ | |
29103 | # include <limits.h> | |
29104 | #else | |
29105 | # include <assert.h> | |
29106 | #endif | |
4f14bcd8 | 29107 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29108 | #ifdef __cplusplus |
29109 | extern "C" | |
29110 | { | |
29111 | #endif | |
4f14bcd8 | 29112 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29113 | builtin and then its argument prototype would still apply. */ |
29114 | char $ac_func (); | |
4f14bcd8 GD |
29115 | /* The GNU C library defines this for functions which it implements |
29116 | to always fail with ENOSYS. Some functions are actually named | |
29117 | something starting with __ and the normal name is an alias. */ | |
29118 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29119 | choke me | |
29120 | #else | |
e6cc62c6 VS |
29121 | char (*f) () = $ac_func; |
29122 | #endif | |
29123 | #ifdef __cplusplus | |
29124 | } | |
4f14bcd8 GD |
29125 | #endif |
29126 | ||
e6cc62c6 VS |
29127 | int |
29128 | main () | |
29129 | { | |
29130 | return f != $ac_func; | |
29131 | ; | |
29132 | return 0; | |
29133 | } | |
29134 | _ACEOF | |
29135 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29137 | (eval $ac_link) 2>&5 | |
29138 | ac_status=$? | |
29139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29140 | (exit $ac_status); } && | |
29141 | { ac_try='test -s conftest$ac_exeext' | |
29142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29143 | (eval $ac_try) 2>&5 | |
29144 | ac_status=$? | |
29145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29146 | (exit $ac_status); }; }; then | |
29147 | eval "$as_ac_var=yes" | |
29148 | else | |
29149 | echo "$as_me: failed program was:" >&5 | |
29150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29151 | ||
29152 | eval "$as_ac_var=no" | |
29153 | fi | |
29154 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29155 | fi | |
29156 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29157 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29158 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29159 | cat >>confdefs.h <<_ACEOF | |
29160 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29161 | _ACEOF | |
698dcdb6 | 29162 | |
10f2d63a | 29163 | fi |
4f14bcd8 | 29164 | done |
10f2d63a | 29165 | |
8284b0c5 | 29166 | |
e6cc62c6 VS |
29167 | |
29168 | for ac_header in sched.h | |
4f14bcd8 | 29169 | do |
e6cc62c6 VS |
29170 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
29171 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29172 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29173 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29174 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29176 | fi | |
29177 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29178 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29179 | else | |
29180 | # Is the header compilable? | |
29181 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
29182 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
29183 | cat >conftest.$ac_ext <<_ACEOF | |
29184 | #line $LINENO "configure" | |
29185 | /* confdefs.h. */ | |
29186 | _ACEOF | |
29187 | cat confdefs.h >>conftest.$ac_ext | |
29188 | cat >>conftest.$ac_ext <<_ACEOF | |
29189 | /* end confdefs.h. */ | |
29190 | $ac_includes_default | |
29191 | #include <$ac_header> | |
29192 | _ACEOF | |
29193 | rm -f conftest.$ac_objext | |
29194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29195 | (eval $ac_compile) 2>&5 | |
29196 | ac_status=$? | |
29197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29198 | (exit $ac_status); } && | |
29199 | { ac_try='test -s conftest.$ac_objext' | |
29200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29201 | (eval $ac_try) 2>&5 | |
29202 | ac_status=$? | |
29203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29204 | (exit $ac_status); }; }; then | |
29205 | ac_header_compiler=yes | |
29206 | else | |
29207 | echo "$as_me: failed program was:" >&5 | |
29208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29209 | ||
29210 | ac_header_compiler=no | |
29211 | fi | |
29212 | rm -f conftest.$ac_objext conftest.$ac_ext | |
29213 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
29214 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29215 | ||
29216 | # Is the header present? | |
29217 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
29218 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
29219 | cat >conftest.$ac_ext <<_ACEOF | |
29220 | #line $LINENO "configure" | |
29221 | /* confdefs.h. */ | |
29222 | _ACEOF | |
29223 | cat confdefs.h >>conftest.$ac_ext | |
29224 | cat >>conftest.$ac_ext <<_ACEOF | |
29225 | /* end confdefs.h. */ | |
29226 | #include <$ac_header> | |
29227 | _ACEOF | |
29228 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29229 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29230 | ac_status=$? | |
29231 | grep -v '^ *+' conftest.er1 >conftest.err | |
29232 | rm -f conftest.er1 | |
29233 | cat conftest.err >&5 | |
29234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29235 | (exit $ac_status); } >/dev/null; then | |
29236 | if test -s conftest.err; then | |
29237 | ac_cpp_err=$ac_c_preproc_warn_flag | |
29238 | else | |
29239 | ac_cpp_err= | |
29240 | fi | |
29241 | else | |
29242 | ac_cpp_err=yes | |
29243 | fi | |
29244 | if test -z "$ac_cpp_err"; then | |
29245 | ac_header_preproc=yes | |
29246 | else | |
29247 | echo "$as_me: failed program was:" >&5 | |
29248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29249 | ||
29250 | ac_header_preproc=no | |
29251 | fi | |
29252 | rm -f conftest.err conftest.$ac_ext | |
29253 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29254 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29255 | ||
29256 | # So? What about this header? | |
29257 | case $ac_header_compiler:$ac_header_preproc in | |
29258 | yes:no ) | |
29259 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
29260 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
29261 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29262 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29263 | ( | |
29264 | cat <<\_ASBOX | |
29265 | ## ------------------------------------ ## | |
29266 | ## Report this to bug-autoconf@gnu.org. ## | |
29267 | ## ------------------------------------ ## | |
29268 | _ASBOX | |
29269 | ) | | |
29270 | sed "s/^/$as_me: WARNING: /" >&2 | |
29271 | ;; | |
29272 | no:yes ) | |
29273 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
29274 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
29275 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
29276 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
29277 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
29278 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29279 | ( | |
29280 | cat <<\_ASBOX | |
29281 | ## ------------------------------------ ## | |
29282 | ## Report this to bug-autoconf@gnu.org. ## | |
29283 | ## ------------------------------------ ## | |
29284 | _ASBOX | |
29285 | ) | | |
29286 | sed "s/^/$as_me: WARNING: /" >&2 | |
29287 | ;; | |
29288 | esac | |
29289 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29290 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29291 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29293 | else | |
29294 | eval "$as_ac_Header=$ac_header_preproc" | |
13111b2a | 29295 | fi |
e6cc62c6 VS |
29296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
29297 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29298 | ||
10f2d63a | 29299 | fi |
e6cc62c6 VS |
29300 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
29301 | cat >>confdefs.h <<_ACEOF | |
29302 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29303 | _ACEOF | |
29304 | ||
f6bcfd97 | 29305 | fi |
e6cc62c6 | 29306 | |
4f14bcd8 | 29307 | done |
f6bcfd97 | 29308 | |
009fead0 | 29309 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
29310 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
29311 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
29312 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
29313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29314 | else | |
29315 | cat >conftest.$ac_ext <<_ACEOF | |
29316 | #line $LINENO "configure" | |
29317 | /* confdefs.h. */ | |
29318 | _ACEOF | |
29319 | cat confdefs.h >>conftest.$ac_ext | |
29320 | cat >>conftest.$ac_ext <<_ACEOF | |
29321 | /* end confdefs.h. */ | |
009fead0 | 29322 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29323 | which can conflict with char sched_yield (); below. |
29324 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29325 | <limits.h> exists even on freestanding compilers. */ | |
29326 | #ifdef __STDC__ | |
29327 | # include <limits.h> | |
29328 | #else | |
29329 | # include <assert.h> | |
29330 | #endif | |
4f14bcd8 | 29331 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29332 | #ifdef __cplusplus |
29333 | extern "C" | |
29334 | { | |
29335 | #endif | |
4f14bcd8 | 29336 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29337 | builtin and then its argument prototype would still apply. */ |
29338 | char sched_yield (); | |
009fead0 VZ |
29339 | /* The GNU C library defines this for functions which it implements |
29340 | to always fail with ENOSYS. Some functions are actually named | |
29341 | something starting with __ and the normal name is an alias. */ | |
29342 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
29343 | choke me | |
29344 | #else | |
e6cc62c6 VS |
29345 | char (*f) () = sched_yield; |
29346 | #endif | |
29347 | #ifdef __cplusplus | |
29348 | } | |
009fead0 VZ |
29349 | #endif |
29350 | ||
e6cc62c6 VS |
29351 | int |
29352 | main () | |
29353 | { | |
29354 | return f != sched_yield; | |
29355 | ; | |
29356 | return 0; | |
29357 | } | |
29358 | _ACEOF | |
29359 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29361 | (eval $ac_link) 2>&5 | |
29362 | ac_status=$? | |
29363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29364 | (exit $ac_status); } && | |
29365 | { ac_try='test -s conftest$ac_exeext' | |
29366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29367 | (eval $ac_try) 2>&5 | |
29368 | ac_status=$? | |
29369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29370 | (exit $ac_status); }; }; then | |
29371 | ac_cv_func_sched_yield=yes | |
29372 | else | |
29373 | echo "$as_me: failed program was:" >&5 | |
29374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29375 | ||
29376 | ac_cv_func_sched_yield=no | |
29377 | fi | |
29378 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29379 | fi | |
29380 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
29381 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
29382 | if test $ac_cv_func_sched_yield = yes; then | |
29383 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29384 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29385 | _ACEOF |
10f2d63a | 29386 | |
4f14bcd8 | 29387 | else |
009fead0 | 29388 | |
e6cc62c6 VS |
29389 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
29390 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
29391 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
29392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 29393 | else |
e6cc62c6 | 29394 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29395 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29396 | cat >conftest.$ac_ext <<_ACEOF |
29397 | #line $LINENO "configure" | |
29398 | /* confdefs.h. */ | |
29399 | _ACEOF | |
29400 | cat confdefs.h >>conftest.$ac_ext | |
29401 | cat >>conftest.$ac_ext <<_ACEOF | |
29402 | /* end confdefs.h. */ | |
29403 | ||
4f14bcd8 | 29404 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29405 | #ifdef __cplusplus |
29406 | extern "C" | |
29407 | #endif | |
4f14bcd8 | 29408 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29409 | builtin and then its argument prototype would still apply. */ |
29410 | char sched_yield (); | |
29411 | int | |
29412 | main () | |
29413 | { | |
29414 | sched_yield (); | |
29415 | ; | |
29416 | return 0; | |
29417 | } | |
29418 | _ACEOF | |
29419 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29420 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29421 | (eval $ac_link) 2>&5 | |
29422 | ac_status=$? | |
29423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29424 | (exit $ac_status); } && | |
29425 | { ac_try='test -s conftest$ac_exeext' | |
29426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29427 | (eval $ac_try) 2>&5 | |
29428 | ac_status=$? | |
29429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29430 | (exit $ac_status); }; }; then | |
29431 | ac_cv_lib_posix4_sched_yield=yes | |
29432 | else | |
29433 | echo "$as_me: failed program was:" >&5 | |
29434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29435 | ||
29436 | ac_cv_lib_posix4_sched_yield=no | |
29437 | fi | |
29438 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29439 | LIBS=$ac_check_lib_save_LIBS | |
29440 | fi | |
29441 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
29442 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
29443 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
29444 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29445 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29446 | _ACEOF |
3d63bc3a | 29447 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 29448 | else |
e6cc62c6 VS |
29449 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
29450 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
29451 | ||
54276ccf VZ |
29452 | fi |
29453 | ||
e6cc62c6 VS |
29454 | |
29455 | ||
4f14bcd8 | 29456 | fi |
698dcdb6 | 29457 | |
009fead0 | 29458 | fi |
10f2d63a | 29459 | |
7274f1c7 | 29460 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
29461 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
29462 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
29463 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
29464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29465 | else | |
29466 | cat >conftest.$ac_ext <<_ACEOF | |
29467 | #line $LINENO "configure" | |
29468 | /* confdefs.h. */ | |
29469 | _ACEOF | |
29470 | cat confdefs.h >>conftest.$ac_ext | |
29471 | cat >>conftest.$ac_ext <<_ACEOF | |
29472 | /* end confdefs.h. */ | |
009fead0 | 29473 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29474 | which can conflict with char pthread_attr_getschedpolicy (); below. |
29475 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29476 | <limits.h> exists even on freestanding compilers. */ | |
29477 | #ifdef __STDC__ | |
29478 | # include <limits.h> | |
29479 | #else | |
29480 | # include <assert.h> | |
29481 | #endif | |
4f14bcd8 | 29482 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29483 | #ifdef __cplusplus |
29484 | extern "C" | |
29485 | { | |
29486 | #endif | |
4f14bcd8 | 29487 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29488 | builtin and then its argument prototype would still apply. */ |
29489 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
29490 | /* The GNU C library defines this for functions which it implements |
29491 | to always fail with ENOSYS. Some functions are actually named | |
29492 | something starting with __ and the normal name is an alias. */ | |
29493 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
29494 | choke me | |
29495 | #else | |
e6cc62c6 VS |
29496 | char (*f) () = pthread_attr_getschedpolicy; |
29497 | #endif | |
29498 | #ifdef __cplusplus | |
29499 | } | |
009fead0 VZ |
29500 | #endif |
29501 | ||
e6cc62c6 VS |
29502 | int |
29503 | main () | |
29504 | { | |
29505 | return f != pthread_attr_getschedpolicy; | |
29506 | ; | |
29507 | return 0; | |
29508 | } | |
29509 | _ACEOF | |
29510 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29511 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29512 | (eval $ac_link) 2>&5 | |
29513 | ac_status=$? | |
29514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29515 | (exit $ac_status); } && | |
29516 | { ac_try='test -s conftest$ac_exeext' | |
29517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29518 | (eval $ac_try) 2>&5 | |
29519 | ac_status=$? | |
29520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29521 | (exit $ac_status); }; }; then | |
29522 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
29523 | else | |
29524 | echo "$as_me: failed program was:" >&5 | |
29525 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29526 | ||
29527 | ac_cv_func_pthread_attr_getschedpolicy=no | |
29528 | fi | |
29529 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29530 | fi | |
29531 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
29532 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
29533 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
29534 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
29535 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
29536 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
29537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29538 | else | |
29539 | cat >conftest.$ac_ext <<_ACEOF | |
29540 | #line $LINENO "configure" | |
29541 | /* confdefs.h. */ | |
29542 | _ACEOF | |
29543 | cat confdefs.h >>conftest.$ac_ext | |
29544 | cat >>conftest.$ac_ext <<_ACEOF | |
29545 | /* end confdefs.h. */ | |
a0b9e27f | 29546 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29547 | which can conflict with char pthread_attr_setschedparam (); below. |
29548 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29549 | <limits.h> exists even on freestanding compilers. */ | |
29550 | #ifdef __STDC__ | |
29551 | # include <limits.h> | |
29552 | #else | |
29553 | # include <assert.h> | |
29554 | #endif | |
422107f9 | 29555 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29556 | #ifdef __cplusplus |
29557 | extern "C" | |
29558 | { | |
29559 | #endif | |
422107f9 | 29560 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29561 | builtin and then its argument prototype would still apply. */ |
29562 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
29563 | /* The GNU C library defines this for functions which it implements |
29564 | to always fail with ENOSYS. Some functions are actually named | |
29565 | something starting with __ and the normal name is an alias. */ | |
29566 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
29567 | choke me | |
29568 | #else | |
e6cc62c6 VS |
29569 | char (*f) () = pthread_attr_setschedparam; |
29570 | #endif | |
29571 | #ifdef __cplusplus | |
29572 | } | |
009fead0 VZ |
29573 | #endif |
29574 | ||
e6cc62c6 VS |
29575 | int |
29576 | main () | |
29577 | { | |
29578 | return f != pthread_attr_setschedparam; | |
29579 | ; | |
29580 | return 0; | |
29581 | } | |
29582 | _ACEOF | |
29583 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29585 | (eval $ac_link) 2>&5 | |
29586 | ac_status=$? | |
29587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29588 | (exit $ac_status); } && | |
29589 | { ac_try='test -s conftest$ac_exeext' | |
29590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29591 | (eval $ac_try) 2>&5 | |
29592 | ac_status=$? | |
29593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29594 | (exit $ac_status); }; }; then | |
29595 | ac_cv_func_pthread_attr_setschedparam=yes | |
29596 | else | |
29597 | echo "$as_me: failed program was:" >&5 | |
29598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29599 | ||
29600 | ac_cv_func_pthread_attr_setschedparam=no | |
29601 | fi | |
29602 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29603 | fi | |
29604 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
29605 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
29606 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
29607 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
29608 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
29609 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
29610 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29611 | else | |
29612 | cat >conftest.$ac_ext <<_ACEOF | |
29613 | #line $LINENO "configure" | |
29614 | /* confdefs.h. */ | |
29615 | _ACEOF | |
29616 | cat confdefs.h >>conftest.$ac_ext | |
29617 | cat >>conftest.$ac_ext <<_ACEOF | |
29618 | /* end confdefs.h. */ | |
ef33c576 | 29619 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29620 | which can conflict with char sched_get_priority_max (); below. |
29621 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29622 | <limits.h> exists even on freestanding compilers. */ | |
29623 | #ifdef __STDC__ | |
29624 | # include <limits.h> | |
29625 | #else | |
29626 | # include <assert.h> | |
29627 | #endif | |
4f14bcd8 | 29628 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29629 | #ifdef __cplusplus |
29630 | extern "C" | |
29631 | { | |
29632 | #endif | |
4f14bcd8 | 29633 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29634 | builtin and then its argument prototype would still apply. */ |
29635 | char sched_get_priority_max (); | |
009fead0 VZ |
29636 | /* The GNU C library defines this for functions which it implements |
29637 | to always fail with ENOSYS. Some functions are actually named | |
29638 | something starting with __ and the normal name is an alias. */ | |
29639 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
29640 | choke me | |
29641 | #else | |
e6cc62c6 VS |
29642 | char (*f) () = sched_get_priority_max; |
29643 | #endif | |
29644 | #ifdef __cplusplus | |
29645 | } | |
009fead0 VZ |
29646 | #endif |
29647 | ||
e6cc62c6 VS |
29648 | int |
29649 | main () | |
29650 | { | |
29651 | return f != sched_get_priority_max; | |
29652 | ; | |
29653 | return 0; | |
29654 | } | |
29655 | _ACEOF | |
29656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29658 | (eval $ac_link) 2>&5 | |
29659 | ac_status=$? | |
29660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29661 | (exit $ac_status); } && | |
29662 | { ac_try='test -s conftest$ac_exeext' | |
29663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29664 | (eval $ac_try) 2>&5 | |
29665 | ac_status=$? | |
29666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29667 | (exit $ac_status); }; }; then | |
29668 | ac_cv_func_sched_get_priority_max=yes | |
29669 | else | |
29670 | echo "$as_me: failed program was:" >&5 | |
29671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29672 | ||
29673 | ac_cv_func_sched_get_priority_max=no | |
29674 | fi | |
29675 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29676 | fi | |
29677 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
29678 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
29679 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
29680 | HAVE_PRIOR_FUNCS=1 |
29681 | else | |
e6cc62c6 VS |
29682 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
29683 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
29684 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
29685 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 29686 | else |
e6cc62c6 | 29687 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29688 | LIBS="-lposix4 $LIBS" |
e6cc62c6 VS |
29689 | cat >conftest.$ac_ext <<_ACEOF |
29690 | #line $LINENO "configure" | |
29691 | /* confdefs.h. */ | |
29692 | _ACEOF | |
29693 | cat confdefs.h >>conftest.$ac_ext | |
29694 | cat >>conftest.$ac_ext <<_ACEOF | |
29695 | /* end confdefs.h. */ | |
29696 | ||
422107f9 | 29697 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29698 | #ifdef __cplusplus |
29699 | extern "C" | |
29700 | #endif | |
422107f9 | 29701 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29702 | builtin and then its argument prototype would still apply. */ |
29703 | char sched_get_priority_max (); | |
29704 | int | |
29705 | main () | |
29706 | { | |
29707 | sched_get_priority_max (); | |
29708 | ; | |
29709 | return 0; | |
29710 | } | |
29711 | _ACEOF | |
29712 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29714 | (eval $ac_link) 2>&5 | |
29715 | ac_status=$? | |
29716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29717 | (exit $ac_status); } && | |
29718 | { ac_try='test -s conftest$ac_exeext' | |
29719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29720 | (eval $ac_try) 2>&5 | |
29721 | ac_status=$? | |
29722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29723 | (exit $ac_status); }; }; then | |
29724 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
29725 | else | |
29726 | echo "$as_me: failed program was:" >&5 | |
29727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29728 | ||
29729 | ac_cv_lib_posix4_sched_get_priority_max=no | |
29730 | fi | |
29731 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29732 | LIBS=$ac_check_lib_save_LIBS | |
29733 | fi | |
29734 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
29735 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
29736 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 29737 | |
7274f1c7 RL |
29738 | HAVE_PRIOR_FUNCS=1 |
29739 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 29740 | |
4f14bcd8 | 29741 | fi |
463abc64 | 29742 | |
e6cc62c6 | 29743 | |
328a083c | 29744 | fi |
463abc64 | 29745 | |
e6cc62c6 | 29746 | |
7b4a847f | 29747 | fi |
579d8138 | 29748 | |
e6cc62c6 | 29749 | |
5c6fa7d2 | 29750 | fi |
52127426 | 29751 | |
8284b0c5 | 29752 | |
7274f1c7 | 29753 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 29754 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29755 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 29756 | _ACEOF |
463abc64 | 29757 | |
7274f1c7 | 29758 | else |
e6cc62c6 VS |
29759 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
29760 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 29761 | fi |
463abc64 | 29762 | |
e6cc62c6 VS |
29763 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
29764 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
29765 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
29766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29767 | else | |
29768 | cat >conftest.$ac_ext <<_ACEOF | |
29769 | #line $LINENO "configure" | |
29770 | /* confdefs.h. */ | |
29771 | _ACEOF | |
29772 | cat confdefs.h >>conftest.$ac_ext | |
29773 | cat >>conftest.$ac_ext <<_ACEOF | |
29774 | /* end confdefs.h. */ | |
009fead0 | 29775 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29776 | which can conflict with char pthread_cancel (); below. |
29777 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29778 | <limits.h> exists even on freestanding compilers. */ | |
29779 | #ifdef __STDC__ | |
29780 | # include <limits.h> | |
29781 | #else | |
29782 | # include <assert.h> | |
29783 | #endif | |
422107f9 | 29784 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29785 | #ifdef __cplusplus |
29786 | extern "C" | |
29787 | { | |
29788 | #endif | |
422107f9 | 29789 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29790 | builtin and then its argument prototype would still apply. */ |
29791 | char pthread_cancel (); | |
009fead0 VZ |
29792 | /* The GNU C library defines this for functions which it implements |
29793 | to always fail with ENOSYS. Some functions are actually named | |
29794 | something starting with __ and the normal name is an alias. */ | |
29795 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
29796 | choke me | |
29797 | #else | |
e6cc62c6 VS |
29798 | char (*f) () = pthread_cancel; |
29799 | #endif | |
29800 | #ifdef __cplusplus | |
29801 | } | |
009fead0 VZ |
29802 | #endif |
29803 | ||
e6cc62c6 VS |
29804 | int |
29805 | main () | |
29806 | { | |
29807 | return f != pthread_cancel; | |
29808 | ; | |
29809 | return 0; | |
29810 | } | |
29811 | _ACEOF | |
29812 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
29814 | (eval $ac_link) 2>&5 | |
29815 | ac_status=$? | |
29816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29817 | (exit $ac_status); } && | |
29818 | { ac_try='test -s conftest$ac_exeext' | |
29819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29820 | (eval $ac_try) 2>&5 | |
29821 | ac_status=$? | |
29822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29823 | (exit $ac_status); }; }; then | |
29824 | ac_cv_func_pthread_cancel=yes | |
29825 | else | |
29826 | echo "$as_me: failed program was:" >&5 | |
29827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29828 | ||
29829 | ac_cv_func_pthread_cancel=no | |
29830 | fi | |
29831 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
29832 | fi | |
29833 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
29834 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
29835 | if test $ac_cv_func_pthread_cancel = yes; then | |
29836 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29837 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 29838 | _ACEOF |
4f14bcd8 | 29839 | |
698dcdb6 | 29840 | else |
e6cc62c6 VS |
29841 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
29842 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
29843 | fi |
29844 | ||
5c6fa7d2 | 29845 | |
e6cc62c6 VS |
29846 | echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5 |
29847 | echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6 | |
29848 | if test "${wx_cv_func_pthread_cleanup_push+set}" = set; then | |
29849 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 29850 | else |
e6cc62c6 VS |
29851 | |
29852 | cat >conftest.$ac_ext <<_ACEOF | |
29853 | #line $LINENO "configure" | |
29854 | /* confdefs.h. */ | |
29855 | _ACEOF | |
29856 | cat confdefs.h >>conftest.$ac_ext | |
29857 | cat >>conftest.$ac_ext <<_ACEOF | |
29858 | /* end confdefs.h. */ | |
4f14bcd8 | 29859 | #include <pthread.h> |
e6cc62c6 VS |
29860 | int |
29861 | main () | |
29862 | { | |
4f14bcd8 | 29863 | |
7274f1c7 RL |
29864 | pthread_cleanup_push(NULL, NULL); |
29865 | pthread_cleanup_pop(0); | |
e6cc62c6 VS |
29866 | |
29867 | ; | |
29868 | return 0; | |
29869 | } | |
29870 | _ACEOF | |
29871 | rm -f conftest.$ac_objext | |
29872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29873 | (eval $ac_compile) 2>&5 | |
29874 | ac_status=$? | |
29875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29876 | (exit $ac_status); } && | |
29877 | { ac_try='test -s conftest.$ac_objext' | |
29878 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29879 | (eval $ac_try) 2>&5 | |
29880 | ac_status=$? | |
29881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29882 | (exit $ac_status); }; }; then | |
29883 | ||
7274f1c7 | 29884 | wx_cv_func_pthread_cleanup_push=yes |
e6cc62c6 | 29885 | |
4f14bcd8 | 29886 | else |
e6cc62c6 VS |
29887 | echo "$as_me: failed program was:" >&5 |
29888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29889 | ||
29890 | ||
7274f1c7 | 29891 | wx_cv_func_pthread_cleanup_push=no |
e6cc62c6 | 29892 | |
247f5006 | 29893 | fi |
e6cc62c6 | 29894 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29895 | |
e6cc62c6 VS |
29896 | fi |
29897 | echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup_push" >&5 | |
29898 | echo "${ECHO_T}$wx_cv_func_pthread_cleanup_push" >&6 | |
4f14bcd8 | 29899 | |
7274f1c7 | 29900 | if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then |
e6cc62c6 | 29901 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29902 | #define HAVE_THREAD_CLEANUP_FUNCTIONS 1 |
e6cc62c6 | 29903 | _ACEOF |
c7a2bf27 | 29904 | |
7274f1c7 | 29905 | fi |
4f14bcd8 | 29906 | |
e6cc62c6 VS |
29907 | |
29908 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
29909 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
29910 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
29911 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 29912 | else |
e6cc62c6 VS |
29913 | |
29914 | cat >conftest.$ac_ext <<_ACEOF | |
29915 | #line $LINENO "configure" | |
29916 | /* confdefs.h. */ | |
29917 | _ACEOF | |
29918 | cat confdefs.h >>conftest.$ac_ext | |
29919 | cat >>conftest.$ac_ext <<_ACEOF | |
29920 | /* end confdefs.h. */ | |
4f14bcd8 | 29921 | #include <pthread.h> |
e6cc62c6 VS |
29922 | int |
29923 | main () | |
29924 | { | |
4f14bcd8 | 29925 | |
7274f1c7 RL |
29926 | pthread_mutexattr_t attr; |
29927 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
29928 | |
29929 | ; | |
29930 | return 0; | |
29931 | } | |
29932 | _ACEOF | |
29933 | rm -f conftest.$ac_objext | |
29934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29935 | (eval $ac_compile) 2>&5 | |
29936 | ac_status=$? | |
29937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29938 | (exit $ac_status); } && | |
29939 | { ac_try='test -s conftest.$ac_objext' | |
29940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
29941 | (eval $ac_try) 2>&5 | |
29942 | ac_status=$? | |
29943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29944 | (exit $ac_status); }; }; then | |
29945 | ||
7274f1c7 | 29946 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 29947 | |
3fed1840 | 29948 | else |
e6cc62c6 VS |
29949 | echo "$as_me: failed program was:" >&5 |
29950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29951 | ||
29952 | ||
7274f1c7 | 29953 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
29954 | |
29955 | ||
247f5006 | 29956 | fi |
e6cc62c6 | 29957 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 29958 | |
e6cc62c6 VS |
29959 | fi |
29960 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
29961 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 29962 | |
7274f1c7 | 29963 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 29964 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 29965 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 29966 | _ACEOF |
4f14bcd8 | 29967 | |
7274f1c7 | 29968 | else |
e6cc62c6 VS |
29969 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
29970 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
29971 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
29972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29973 | else | |
29974 | ||
29975 | cat >conftest.$ac_ext <<_ACEOF | |
29976 | #line $LINENO "configure" | |
29977 | /* confdefs.h. */ | |
29978 | _ACEOF | |
29979 | cat confdefs.h >>conftest.$ac_ext | |
29980 | cat >>conftest.$ac_ext <<_ACEOF | |
29981 | /* end confdefs.h. */ | |
4f14bcd8 | 29982 | #include <pthread.h> |
e6cc62c6 VS |
29983 | int |
29984 | main () | |
29985 | { | |
4f14bcd8 | 29986 | |
7274f1c7 | 29987 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
29988 | |
29989 | ; | |
29990 | return 0; | |
29991 | } | |
29992 | _ACEOF | |
29993 | rm -f conftest.$ac_objext | |
29994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
29995 | (eval $ac_compile) 2>&5 | |
29996 | ac_status=$? | |
29997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29998 | (exit $ac_status); } && | |
29999 | { ac_try='test -s conftest.$ac_objext' | |
30000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30001 | (eval $ac_try) 2>&5 | |
30002 | ac_status=$? | |
30003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30004 | (exit $ac_status); }; }; then | |
30005 | ||
7274f1c7 | 30006 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 30007 | |
698dcdb6 | 30008 | else |
e6cc62c6 VS |
30009 | echo "$as_me: failed program was:" >&5 |
30010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30011 | ||
30012 | ||
7274f1c7 | 30013 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
30014 | |
30015 | ||
247f5006 | 30016 | fi |
e6cc62c6 | 30017 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30018 | |
e6cc62c6 VS |
30019 | fi |
30020 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
30021 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 30022 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 30023 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30024 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 30025 | _ACEOF |
3fed1840 | 30026 | |
7274f1c7 | 30027 | else |
e6cc62c6 VS |
30028 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
30029 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
30030 | fi |
30031 | fi | |
7274f1c7 | 30032 | fi |
3fed1840 | 30033 | |
a0b9e27f MB |
30034 | else |
30035 | if test "$wxUSE_THREADS" = "yes" ; then | |
30036 | case "${host}" in | |
30037 | *-*-mingw32* ) | |
e6cc62c6 VS |
30038 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
30039 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
30040 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
30041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 30042 | else |
e6cc62c6 | 30043 | |
ca8e52b3 VZ |
30044 | CFLAGS_OLD="$CFLAGS" |
30045 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 VS |
30046 | cat >conftest.$ac_ext <<_ACEOF |
30047 | #line $LINENO "configure" | |
30048 | /* confdefs.h. */ | |
30049 | _ACEOF | |
30050 | cat confdefs.h >>conftest.$ac_ext | |
30051 | cat >>conftest.$ac_ext <<_ACEOF | |
30052 | /* end confdefs.h. */ | |
30053 | ||
30054 | int | |
30055 | main () | |
30056 | { | |
ca8e52b3 | 30057 | |
e6cc62c6 VS |
30058 | ; |
30059 | return 0; | |
30060 | } | |
30061 | _ACEOF | |
30062 | rm -f conftest.$ac_objext | |
30063 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30064 | (eval $ac_compile) 2>&5 | |
30065 | ac_status=$? | |
30066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30067 | (exit $ac_status); } && | |
30068 | { ac_try='test -s conftest.$ac_objext' | |
30069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30070 | (eval $ac_try) 2>&5 | |
30071 | ac_status=$? | |
30072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30073 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
30074 | wx_cv_cflags_mthread=yes |
30075 | else | |
e6cc62c6 VS |
30076 | echo "$as_me: failed program was:" >&5 |
30077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30078 | ||
30079 | wx_cv_cflags_mthread=no | |
30080 | ||
ca8e52b3 | 30081 | fi |
e6cc62c6 VS |
30082 | rm -f conftest.$ac_objext conftest.$ac_ext |
30083 | ||
ca8e52b3 | 30084 | |
e6cc62c6 VS |
30085 | fi |
30086 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
30087 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
30088 | |
30089 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
30090 | CXXFLAGS="$CXXFLAGS -mthreads" | |
30091 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
30092 | LDFLAGS="$LDFLAGS -mthreads" | |
30093 | else | |
30094 | CFLAGS="$CFLAGS_OLD" | |
30095 | fi | |
a0b9e27f | 30096 | ;; |
73d617c9 MB |
30097 | *-pc-os2*emx ) |
30098 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
30099 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
30100 | LDFLAGS="$LDFLAGS -Zmt" | |
30101 | ;; | |
a0b9e27f MB |
30102 | esac |
30103 | fi | |
4f14bcd8 GD |
30104 | fi |
30105 | ||
30106 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 30107 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30108 | #define wxUSE_THREADS 1 |
e6cc62c6 | 30109 | _ACEOF |
7b6058cd | 30110 | |
8284b0c5 | 30111 | |
4f14bcd8 | 30112 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 30113 | else |
4f14bcd8 | 30114 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
30115 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
30116 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
30117 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
30118 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
30119 | echo "$as_me:$LINENO: result: yes" >&5 |
30120 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 30121 | else |
e6cc62c6 VS |
30122 | echo "$as_me:$LINENO: result: no" >&5 |
30123 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
30124 | fi |
30125 | fi | |
30126 | fi | |
30127 | ||
30128 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 30129 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30130 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 30131 | _ACEOF |
4f14bcd8 GD |
30132 | |
30133 | WXGTK12=1 | |
10f2d63a | 30134 | fi |
4f14bcd8 GD |
30135 | |
30136 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 30137 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30138 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 30139 | _ACEOF |
4f14bcd8 | 30140 | |
10f2d63a | 30141 | fi |
698dcdb6 | 30142 | |
4f14bcd8 | 30143 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 30144 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30145 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 30146 | _ACEOF |
4f14bcd8 | 30147 | |
698dcdb6 | 30148 | fi |
10f2d63a | 30149 | |
4f14bcd8 GD |
30150 | WXDEBUG= |
30151 | ||
30152 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
30153 | WXDEBUG="-g" | |
30154 | wxUSE_OPTIMISE=no | |
698dcdb6 | 30155 | fi |
4f14bcd8 GD |
30156 | |
30157 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
30158 | wxUSE_DEBUG_INFO=yes | |
30159 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
30160 | fi |
30161 | ||
4f14bcd8 | 30162 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 30163 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30164 | #define WXDEBUG 1 |
e6cc62c6 | 30165 | _ACEOF |
4f14bcd8 GD |
30166 | |
30167 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 30168 | else |
4f14bcd8 GD |
30169 | if test "$wxUSE_GTK" = 1 ; then |
30170 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
30171 | fi | |
30172 | fi | |
30173 | ||
30174 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 30175 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30176 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 30177 | _ACEOF |
4f14bcd8 | 30178 | |
e6cc62c6 | 30179 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30180 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 30181 | _ACEOF |
4f14bcd8 | 30182 | |
e6cc62c6 | 30183 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30184 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 30185 | _ACEOF |
4f14bcd8 GD |
30186 | |
30187 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
30188 | fi | |
30189 | ||
30190 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 30191 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
30192 | fi |
30193 | ||
30194 | PROFILE= | |
30195 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 30196 | PROFILE=" -pg" |
10f2d63a VZ |
30197 | fi |
30198 | ||
009fead0 VZ |
30199 | CODE_GEN_FLAGS= |
30200 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 30201 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
30202 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
30203 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 30204 | fi |
4f14bcd8 GD |
30205 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
30206 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
30207 | fi | |
30208 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
30209 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
30210 | fi | |
1d1b75ac | 30211 | |
2b5f62a0 | 30212 | case "${host}" in |
1d1b75ac VZ |
30213 | powerpc*-*-aix* ) |
30214 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
30215 | ;; | |
2b5f62a0 VZ |
30216 | *-hppa* ) |
30217 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
30218 | ;; | |
1d1b75ac | 30219 | esac |
4f14bcd8 GD |
30220 | fi |
30221 | ||
af7b5345 | 30222 | OPTIMISE= |
4f14bcd8 | 30223 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
30224 | if test "$GCC" = yes ; then |
30225 | OPTIMISE="-O0" | |
30226 | fi | |
4f14bcd8 GD |
30227 | else |
30228 | if test "$GCC" = yes ; then | |
30229 | OPTIMISE="-O2" | |
af7b5345 VZ |
30230 | |
30231 | case "${host}" in | |
4f14bcd8 GD |
30232 | i586-*-*|i686-*-* ) |
30233 | OPTIMISE="${OPTIMISE} " | |
30234 | ;; | |
30235 | esac | |
30236 | else | |
30237 | OPTIMISE="-O" | |
30238 | fi | |
30239 | fi | |
30240 | ||
8d90d2f2 | 30241 | |
65d8ef1e | 30242 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 30243 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30244 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 30245 | _ACEOF |
4f14bcd8 | 30246 | |
8d90d2f2 VZ |
30247 | |
30248 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
30249 | fi |
30250 | ||
65d8ef1e | 30251 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 30252 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 30253 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 30254 | _ACEOF |
65d8ef1e VS |
30255 | |
30256 | fi | |
30257 | ||
8284b0c5 | 30258 | |
10f2d63a | 30259 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 30260 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30261 | #define wxUSE_GUI 1 |
e6cc62c6 | 30262 | _ACEOF |
10f2d63a | 30263 | |
8284b0c5 | 30264 | |
10f2d63a | 30265 | else |
e6cc62c6 | 30266 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30267 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 30268 | _ACEOF |
10f2d63a VZ |
30269 | |
30270 | fi | |
30271 | ||
8284b0c5 | 30272 | |
10f2d63a | 30273 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 30274 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30275 | #define wxUSE_UNIX 1 |
e6cc62c6 | 30276 | _ACEOF |
10f2d63a VZ |
30277 | |
30278 | fi | |
30279 | ||
8284b0c5 | 30280 | |
df5168c4 MB |
30281 | if test "$wxUSE_STL" = "yes"; then |
30282 | cat >>confdefs.h <<\_ACEOF | |
30283 | #define wxUSE_STL 1 | |
30284 | _ACEOF | |
30285 | ||
30286 | fi | |
30287 | ||
10f2d63a | 30288 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
e6cc62c6 | 30289 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30290 | #define wxUSE_APPLE_IEEE 1 |
e6cc62c6 | 30291 | _ACEOF |
10f2d63a VZ |
30292 | |
30293 | fi | |
30294 | ||
1e6feb95 | 30295 | if test "$wxUSE_TIMER" = "yes"; then |
e6cc62c6 | 30296 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30297 | #define wxUSE_TIMER 1 |
e6cc62c6 | 30298 | _ACEOF |
1e6feb95 VZ |
30299 | |
30300 | fi | |
30301 | ||
10f2d63a | 30302 | if test "$wxUSE_WAVE" = "yes"; then |
e6cc62c6 | 30303 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30304 | #define wxUSE_WAVE 1 |
e6cc62c6 | 30305 | _ACEOF |
10f2d63a VZ |
30306 | |
30307 | fi | |
30308 | ||
1e6feb95 | 30309 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
e6cc62c6 | 30310 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30311 | #define wxUSE_CMDLINE_PARSER 1 |
e6cc62c6 | 30312 | _ACEOF |
1e6feb95 VZ |
30313 | |
30314 | fi | |
30315 | ||
30316 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
e6cc62c6 | 30317 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30318 | #define wxUSE_STOPWATCH 1 |
e6cc62c6 | 30319 | _ACEOF |
1e6feb95 VZ |
30320 | |
30321 | fi | |
30322 | ||
30323 | if test "$wxUSE_DATETIME" = "yes"; then | |
e6cc62c6 | 30324 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30325 | #define wxUSE_DATETIME 1 |
e6cc62c6 | 30326 | _ACEOF |
1e6feb95 VZ |
30327 | |
30328 | fi | |
30329 | ||
10f2d63a | 30330 | if test "$wxUSE_FILE" = "yes"; then |
e6cc62c6 | 30331 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30332 | #define wxUSE_FILE 1 |
e6cc62c6 | 30333 | _ACEOF |
10f2d63a VZ |
30334 | |
30335 | fi | |
30336 | ||
1e6feb95 | 30337 | if test "$wxUSE_FFILE" = "yes"; then |
e6cc62c6 | 30338 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30339 | #define wxUSE_FFILE 1 |
e6cc62c6 | 30340 | _ACEOF |
1e6feb95 VZ |
30341 | |
30342 | fi | |
30343 | ||
24528b0c | 30344 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
e6cc62c6 | 30345 | cat >>confdefs.h <<\_ACEOF |
24528b0c | 30346 | #define wxUSE_FILESYSTEM 1 |
e6cc62c6 | 30347 | _ACEOF |
24528b0c VS |
30348 | |
30349 | fi | |
30350 | ||
10f2d63a | 30351 | if test "$wxUSE_FS_ZIP" = "yes"; then |
e6cc62c6 | 30352 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30353 | #define wxUSE_FS_ZIP 1 |
e6cc62c6 | 30354 | _ACEOF |
10f2d63a VZ |
30355 | |
30356 | fi | |
30357 | ||
30358 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
e6cc62c6 | 30359 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30360 | #define wxUSE_ZIPSTREAM 1 |
e6cc62c6 | 30361 | _ACEOF |
10f2d63a VZ |
30362 | |
30363 | fi | |
30364 | ||
eb4efbdc | 30365 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
e6cc62c6 | 30366 | cat >>confdefs.h <<\_ACEOF |
eb4efbdc | 30367 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
e6cc62c6 | 30368 | _ACEOF |
eb4efbdc VZ |
30369 | |
30370 | fi | |
30371 | ||
4f3c5f06 | 30372 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 | 30373 | cat >>confdefs.h <<\_ACEOF |
4f3c5f06 | 30374 | #define wxUSE_SNGLINST_CHECKER 1 |
e6cc62c6 | 30375 | _ACEOF |
4f3c5f06 VZ |
30376 | |
30377 | fi | |
30378 | ||
10f2d63a | 30379 | if test "$wxUSE_BUSYINFO" = "yes"; then |
e6cc62c6 | 30380 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30381 | #define wxUSE_BUSYINFO 1 |
e6cc62c6 | 30382 | _ACEOF |
10f2d63a VZ |
30383 | |
30384 | fi | |
30385 | ||
30386 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
e6cc62c6 | 30387 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30388 | #define wxUSE_STD_IOSTREAM 1 |
e6cc62c6 | 30389 | _ACEOF |
10f2d63a VZ |
30390 | |
30391 | fi | |
30392 | ||
a3a584a7 | 30393 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
e6cc62c6 | 30394 | cat >>confdefs.h <<\_ACEOF |
a3a584a7 | 30395 | #define wxUSE_TEXTBUFFER 1 |
e6cc62c6 | 30396 | _ACEOF |
a3a584a7 VZ |
30397 | |
30398 | fi | |
30399 | ||
10f2d63a | 30400 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 30401 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
e6cc62c6 VS |
30402 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
30403 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
10f2d63a | 30404 | else |
e6cc62c6 | 30405 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30406 | #define wxUSE_TEXTFILE 1 |
e6cc62c6 | 30407 | _ACEOF |
10f2d63a VZ |
30408 | |
30409 | fi | |
30410 | fi | |
30411 | ||
30412 | if test "$wxUSE_CONFIG" = "yes" ; then | |
30413 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
e6cc62c6 VS |
30414 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
30415 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
10f2d63a | 30416 | else |
e6cc62c6 | 30417 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30418 | #define wxUSE_CONFIG 1 |
e6cc62c6 | 30419 | _ACEOF |
10f2d63a VZ |
30420 | |
30421 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
30422 | fi | |
30423 | fi | |
30424 | ||
30425 | if test "$wxUSE_INTL" = "yes" ; then | |
30426 | if test "$wxUSE_FILE" != "yes"; then | |
e6cc62c6 VS |
30427 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
30428 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
10f2d63a | 30429 | else |
e6cc62c6 | 30430 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30431 | #define wxUSE_INTL 1 |
e6cc62c6 | 30432 | _ACEOF |
10f2d63a VZ |
30433 | |
30434 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 30435 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
30436 | fi |
30437 | fi | |
30438 | ||
30439 | if test "$wxUSE_LOG" = "yes"; then | |
e6cc62c6 | 30440 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30441 | #define wxUSE_LOG 1 |
e6cc62c6 | 30442 | _ACEOF |
10f2d63a | 30443 | |
8284b0c5 | 30444 | |
d73be714 | 30445 | if test "$wxUSE_LOGGUI" = "yes"; then |
e6cc62c6 | 30446 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30447 | #define wxUSE_LOGGUI 1 |
e6cc62c6 | 30448 | _ACEOF |
d73be714 VZ |
30449 | |
30450 | fi | |
30451 | ||
30452 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
e6cc62c6 | 30453 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30454 | #define wxUSE_LOGWINDOW 1 |
e6cc62c6 | 30455 | _ACEOF |
69d27ff7 MB |
30456 | |
30457 | fi | |
30458 | ||
30459 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
e6cc62c6 | 30460 | cat >>confdefs.h <<\_ACEOF |
69d27ff7 | 30461 | #define wxUSE_LOG_DIALOG 1 |
e6cc62c6 | 30462 | _ACEOF |
d73be714 VZ |
30463 | |
30464 | fi | |
10f2d63a VZ |
30465 | fi |
30466 | ||
30467 | if test "$wxUSE_LONGLONG" = "yes"; then | |
e6cc62c6 | 30468 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30469 | #define wxUSE_LONGLONG 1 |
e6cc62c6 | 30470 | _ACEOF |
10f2d63a VZ |
30471 | |
30472 | fi | |
30473 | ||
e8f65ba6 | 30474 | if test "$wxUSE_GEOMETRY" = "yes"; then |
e6cc62c6 | 30475 | cat >>confdefs.h <<\_ACEOF |
e8f65ba6 | 30476 | #define wxUSE_GEOMETRY 1 |
e6cc62c6 | 30477 | _ACEOF |
e8f65ba6 RR |
30478 | |
30479 | fi | |
30480 | ||
10f2d63a | 30481 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
e6cc62c6 | 30482 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30483 | #define wxUSE_DIALUP_MANAGER 1 |
e6cc62c6 | 30484 | _ACEOF |
10f2d63a | 30485 | |
70f7a477 | 30486 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
30487 | fi |
30488 | ||
30489 | if test "$wxUSE_STREAMS" = "yes" ; then | |
e6cc62c6 | 30490 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30491 | #define wxUSE_STREAMS 1 |
e6cc62c6 | 30492 | _ACEOF |
10f2d63a VZ |
30493 | |
30494 | fi | |
30495 | ||
5c6fa7d2 | 30496 | |
8284b0c5 | 30497 | if test "$wxUSE_DATETIME" = "yes"; then |
e6cc62c6 VS |
30498 | |
30499 | for ac_func in strptime | |
83307f33 | 30500 | do |
e6cc62c6 VS |
30501 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30502 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30503 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30504 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30506 | else | |
30507 | cat >conftest.$ac_ext <<_ACEOF | |
30508 | #line $LINENO "configure" | |
30509 | /* confdefs.h. */ | |
30510 | _ACEOF | |
30511 | cat confdefs.h >>conftest.$ac_ext | |
30512 | cat >>conftest.$ac_ext <<_ACEOF | |
30513 | /* end confdefs.h. */ | |
83307f33 | 30514 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30515 | which can conflict with char $ac_func (); below. |
30516 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30517 | <limits.h> exists even on freestanding compilers. */ | |
30518 | #ifdef __STDC__ | |
30519 | # include <limits.h> | |
30520 | #else | |
30521 | # include <assert.h> | |
30522 | #endif | |
83307f33 | 30523 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30524 | #ifdef __cplusplus |
30525 | extern "C" | |
30526 | { | |
30527 | #endif | |
83307f33 | 30528 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30529 | builtin and then its argument prototype would still apply. */ |
30530 | char $ac_func (); | |
83307f33 VZ |
30531 | /* The GNU C library defines this for functions which it implements |
30532 | to always fail with ENOSYS. Some functions are actually named | |
30533 | something starting with __ and the normal name is an alias. */ | |
30534 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30535 | choke me | |
30536 | #else | |
e6cc62c6 VS |
30537 | char (*f) () = $ac_func; |
30538 | #endif | |
30539 | #ifdef __cplusplus | |
30540 | } | |
83307f33 VZ |
30541 | #endif |
30542 | ||
e6cc62c6 VS |
30543 | int |
30544 | main () | |
30545 | { | |
30546 | return f != $ac_func; | |
30547 | ; | |
30548 | return 0; | |
30549 | } | |
30550 | _ACEOF | |
30551 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30552 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30553 | (eval $ac_link) 2>&5 | |
30554 | ac_status=$? | |
30555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30556 | (exit $ac_status); } && | |
30557 | { ac_try='test -s conftest$ac_exeext' | |
30558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30559 | (eval $ac_try) 2>&5 | |
30560 | ac_status=$? | |
30561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30562 | (exit $ac_status); }; }; then | |
30563 | eval "$as_ac_var=yes" | |
30564 | else | |
30565 | echo "$as_me: failed program was:" >&5 | |
30566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30567 | ||
30568 | eval "$as_ac_var=no" | |
30569 | fi | |
30570 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30571 | fi | |
30572 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30573 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30574 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30575 | cat >>confdefs.h <<_ACEOF | |
30576 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30577 | _ACEOF | |
83307f33 | 30578 | |
83307f33 VZ |
30579 | fi |
30580 | done | |
30581 | ||
5c6fa7d2 | 30582 | |
e6cc62c6 VS |
30583 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
30584 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
30585 | if test "${wx_cv_var_timezone+set}" = set; then | |
30586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 30587 | else |
e6cc62c6 VS |
30588 | |
30589 | cat >conftest.$ac_ext <<_ACEOF | |
30590 | #line $LINENO "configure" | |
30591 | /* confdefs.h. */ | |
30592 | _ACEOF | |
30593 | cat confdefs.h >>conftest.$ac_ext | |
30594 | cat >>conftest.$ac_ext <<_ACEOF | |
30595 | /* end confdefs.h. */ | |
360d6699 | 30596 | |
b4085ce6 | 30597 | #include <time.h> |
e6cc62c6 VS |
30598 | |
30599 | int | |
30600 | main () | |
30601 | { | |
360d6699 VZ |
30602 | |
30603 | int tz; | |
4f11a343 | 30604 | tz = timezone; |
e6cc62c6 VS |
30605 | |
30606 | ; | |
30607 | return 0; | |
30608 | } | |
30609 | _ACEOF | |
30610 | rm -f conftest.$ac_objext | |
30611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30612 | (eval $ac_compile) 2>&5 | |
30613 | ac_status=$? | |
30614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30615 | (exit $ac_status); } && | |
30616 | { ac_try='test -s conftest.$ac_objext' | |
30617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30618 | (eval $ac_try) 2>&5 | |
30619 | ac_status=$? | |
30620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30621 | (exit $ac_status); }; }; then | |
30622 | ||
4f11a343 | 30623 | wx_cv_var_timezone=timezone |
e6cc62c6 | 30624 | |
360d6699 | 30625 | else |
e6cc62c6 VS |
30626 | echo "$as_me: failed program was:" >&5 |
30627 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30628 | ||
30629 | ||
30630 | cat >conftest.$ac_ext <<_ACEOF | |
30631 | #line $LINENO "configure" | |
30632 | /* confdefs.h. */ | |
30633 | _ACEOF | |
30634 | cat confdefs.h >>conftest.$ac_ext | |
30635 | cat >>conftest.$ac_ext <<_ACEOF | |
30636 | /* end confdefs.h. */ | |
360d6699 | 30637 | |
b4085ce6 | 30638 | #include <time.h> |
e6cc62c6 VS |
30639 | |
30640 | int | |
30641 | main () | |
30642 | { | |
360d6699 VZ |
30643 | |
30644 | int tz; | |
30645 | tz = _timezone; | |
e6cc62c6 VS |
30646 | |
30647 | ; | |
30648 | return 0; | |
30649 | } | |
30650 | _ACEOF | |
30651 | rm -f conftest.$ac_objext | |
30652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30653 | (eval $ac_compile) 2>&5 | |
30654 | ac_status=$? | |
30655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30656 | (exit $ac_status); } && | |
30657 | { ac_try='test -s conftest.$ac_objext' | |
30658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30659 | (eval $ac_try) 2>&5 | |
30660 | ac_status=$? | |
30661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30662 | (exit $ac_status); }; }; then | |
30663 | ||
360d6699 | 30664 | wx_cv_var_timezone=_timezone |
e6cc62c6 | 30665 | |
5357c8e8 | 30666 | else |
e6cc62c6 VS |
30667 | echo "$as_me: failed program was:" >&5 |
30668 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30669 | ||
30670 | ||
30671 | cat >conftest.$ac_ext <<_ACEOF | |
30672 | #line $LINENO "configure" | |
30673 | /* confdefs.h. */ | |
30674 | _ACEOF | |
30675 | cat confdefs.h >>conftest.$ac_ext | |
30676 | cat >>conftest.$ac_ext <<_ACEOF | |
30677 | /* end confdefs.h. */ | |
5357c8e8 | 30678 | |
b4085ce6 | 30679 | #include <time.h> |
e6cc62c6 VS |
30680 | |
30681 | int | |
30682 | main () | |
30683 | { | |
5357c8e8 VZ |
30684 | |
30685 | int tz; | |
4f11a343 | 30686 | tz = __timezone; |
e6cc62c6 VS |
30687 | |
30688 | ; | |
30689 | return 0; | |
30690 | } | |
30691 | _ACEOF | |
30692 | rm -f conftest.$ac_objext | |
30693 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30694 | (eval $ac_compile) 2>&5 | |
30695 | ac_status=$? | |
30696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30697 | (exit $ac_status); } && | |
30698 | { ac_try='test -s conftest.$ac_objext' | |
30699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30700 | (eval $ac_try) 2>&5 | |
30701 | ac_status=$? | |
30702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30703 | (exit $ac_status); }; }; then | |
30704 | ||
4f11a343 | 30705 | wx_cv_var_timezone=__timezone |
e6cc62c6 | 30706 | |
360d6699 | 30707 | else |
e6cc62c6 VS |
30708 | echo "$as_me: failed program was:" >&5 |
30709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30710 | ||
30711 | ||
f9bc1684 | 30712 | if test "$USE_DOS" = 0 ; then |
e6cc62c6 VS |
30713 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
30714 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
f9bc1684 | 30715 | fi |
e6cc62c6 VS |
30716 | |
30717 | ||
7b4a847f | 30718 | fi |
e6cc62c6 VS |
30719 | rm -f conftest.$ac_objext conftest.$ac_ext |
30720 | ||
30721 | ||
5c6fa7d2 | 30722 | fi |
e6cc62c6 VS |
30723 | rm -f conftest.$ac_objext conftest.$ac_ext |
30724 | ||
30725 | ||
247f5006 | 30726 | fi |
e6cc62c6 | 30727 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30728 | |
e6cc62c6 VS |
30729 | |
30730 | fi | |
30731 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
30732 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
698dcdb6 | 30733 | |
f9bc1684 | 30734 | if test "x$wx_cv_var_timezone" != x ; then |
e6cc62c6 | 30735 | cat >>confdefs.h <<_ACEOF |
360d6699 | 30736 | #define WX_TIMEZONE $wx_cv_var_timezone |
e6cc62c6 | 30737 | _ACEOF |
360d6699 | 30738 | |
f9bc1684 | 30739 | fi |
698dcdb6 | 30740 | |
e6cc62c6 VS |
30741 | |
30742 | for ac_func in localtime | |
afc31813 | 30743 | do |
e6cc62c6 VS |
30744 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30745 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30746 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30747 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30749 | else | |
30750 | cat >conftest.$ac_ext <<_ACEOF | |
30751 | #line $LINENO "configure" | |
30752 | /* confdefs.h. */ | |
30753 | _ACEOF | |
30754 | cat confdefs.h >>conftest.$ac_ext | |
30755 | cat >>conftest.$ac_ext <<_ACEOF | |
30756 | /* end confdefs.h. */ | |
afc31813 | 30757 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30758 | which can conflict with char $ac_func (); below. |
30759 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30760 | <limits.h> exists even on freestanding compilers. */ | |
30761 | #ifdef __STDC__ | |
30762 | # include <limits.h> | |
30763 | #else | |
30764 | # include <assert.h> | |
30765 | #endif | |
afc31813 | 30766 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30767 | #ifdef __cplusplus |
30768 | extern "C" | |
30769 | { | |
30770 | #endif | |
afc31813 | 30771 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30772 | builtin and then its argument prototype would still apply. */ |
30773 | char $ac_func (); | |
afc31813 VZ |
30774 | /* The GNU C library defines this for functions which it implements |
30775 | to always fail with ENOSYS. Some functions are actually named | |
30776 | something starting with __ and the normal name is an alias. */ | |
30777 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30778 | choke me | |
30779 | #else | |
e6cc62c6 VS |
30780 | char (*f) () = $ac_func; |
30781 | #endif | |
30782 | #ifdef __cplusplus | |
30783 | } | |
afc31813 VZ |
30784 | #endif |
30785 | ||
e6cc62c6 VS |
30786 | int |
30787 | main () | |
30788 | { | |
30789 | return f != $ac_func; | |
30790 | ; | |
30791 | return 0; | |
30792 | } | |
30793 | _ACEOF | |
30794 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30795 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30796 | (eval $ac_link) 2>&5 | |
30797 | ac_status=$? | |
30798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30799 | (exit $ac_status); } && | |
30800 | { ac_try='test -s conftest$ac_exeext' | |
30801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30802 | (eval $ac_try) 2>&5 | |
30803 | ac_status=$? | |
30804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30805 | (exit $ac_status); }; }; then | |
30806 | eval "$as_ac_var=yes" | |
30807 | else | |
30808 | echo "$as_me: failed program was:" >&5 | |
30809 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30810 | ||
30811 | eval "$as_ac_var=no" | |
30812 | fi | |
30813 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30814 | fi | |
30815 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30816 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30817 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30818 | cat >>confdefs.h <<_ACEOF | |
30819 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30820 | _ACEOF | |
afc31813 | 30821 | |
afc31813 VZ |
30822 | fi |
30823 | done | |
30824 | ||
5c6fa7d2 | 30825 | |
8284b0c5 | 30826 | if test "$ac_cv_func_localtime" = "yes"; then |
e6cc62c6 VS |
30827 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
30828 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
30829 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
30830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 30831 | else |
e6cc62c6 VS |
30832 | |
30833 | cat >conftest.$ac_ext <<_ACEOF | |
30834 | #line $LINENO "configure" | |
30835 | /* confdefs.h. */ | |
30836 | _ACEOF | |
30837 | cat confdefs.h >>conftest.$ac_ext | |
30838 | cat >>conftest.$ac_ext <<_ACEOF | |
30839 | /* end confdefs.h. */ | |
0470b1e6 | 30840 | |
b4085ce6 | 30841 | #include <time.h> |
e6cc62c6 VS |
30842 | |
30843 | int | |
30844 | main () | |
30845 | { | |
0470b1e6 VZ |
30846 | |
30847 | struct tm tm; | |
30848 | tm.tm_gmtoff++; | |
e6cc62c6 VS |
30849 | |
30850 | ; | |
30851 | return 0; | |
30852 | } | |
30853 | _ACEOF | |
30854 | rm -f conftest.$ac_objext | |
30855 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
30856 | (eval $ac_compile) 2>&5 | |
30857 | ac_status=$? | |
30858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30859 | (exit $ac_status); } && | |
30860 | { ac_try='test -s conftest.$ac_objext' | |
30861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30862 | (eval $ac_try) 2>&5 | |
30863 | ac_status=$? | |
30864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30865 | (exit $ac_status); }; }; then | |
30866 | ||
f03a98d8 | 30867 | wx_cv_struct_tm_has_gmtoff=yes |
e6cc62c6 | 30868 | |
0470b1e6 | 30869 | else |
e6cc62c6 VS |
30870 | echo "$as_me: failed program was:" >&5 |
30871 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30872 | ||
30873 | wx_cv_struct_tm_has_gmtoff=no | |
30874 | ||
247f5006 | 30875 | fi |
e6cc62c6 | 30876 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30877 | |
e6cc62c6 VS |
30878 | fi |
30879 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
30880 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
30881 | fi |
30882 | ||
30883 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
e6cc62c6 | 30884 | cat >>confdefs.h <<\_ACEOF |
6232543b | 30885 | #define WX_GMTOFF_IN_TM 1 |
e6cc62c6 | 30886 | _ACEOF |
0470b1e6 | 30887 | |
3fcdd07b VZ |
30888 | fi |
30889 | ||
e6cc62c6 VS |
30890 | |
30891 | ||
30892 | for ac_func in gettimeofday ftime | |
3fcdd07b | 30893 | do |
e6cc62c6 VS |
30894 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30895 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30896 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30897 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30898 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30899 | else | |
30900 | cat >conftest.$ac_ext <<_ACEOF | |
30901 | #line $LINENO "configure" | |
30902 | /* confdefs.h. */ | |
30903 | _ACEOF | |
30904 | cat confdefs.h >>conftest.$ac_ext | |
30905 | cat >>conftest.$ac_ext <<_ACEOF | |
30906 | /* end confdefs.h. */ | |
3fcdd07b | 30907 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30908 | which can conflict with char $ac_func (); below. |
30909 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30910 | <limits.h> exists even on freestanding compilers. */ | |
30911 | #ifdef __STDC__ | |
30912 | # include <limits.h> | |
30913 | #else | |
30914 | # include <assert.h> | |
30915 | #endif | |
3fcdd07b | 30916 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30917 | #ifdef __cplusplus |
30918 | extern "C" | |
30919 | { | |
30920 | #endif | |
3fcdd07b | 30921 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30922 | builtin and then its argument prototype would still apply. */ |
30923 | char $ac_func (); | |
3fcdd07b VZ |
30924 | /* The GNU C library defines this for functions which it implements |
30925 | to always fail with ENOSYS. Some functions are actually named | |
30926 | something starting with __ and the normal name is an alias. */ | |
30927 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30928 | choke me | |
30929 | #else | |
e6cc62c6 VS |
30930 | char (*f) () = $ac_func; |
30931 | #endif | |
30932 | #ifdef __cplusplus | |
30933 | } | |
3fcdd07b VZ |
30934 | #endif |
30935 | ||
e6cc62c6 VS |
30936 | int |
30937 | main () | |
30938 | { | |
30939 | return f != $ac_func; | |
30940 | ; | |
30941 | return 0; | |
30942 | } | |
30943 | _ACEOF | |
30944 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30945 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
30946 | (eval $ac_link) 2>&5 | |
30947 | ac_status=$? | |
30948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30949 | (exit $ac_status); } && | |
30950 | { ac_try='test -s conftest$ac_exeext' | |
30951 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
30952 | (eval $ac_try) 2>&5 | |
30953 | ac_status=$? | |
30954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30955 | (exit $ac_status); }; }; then | |
30956 | eval "$as_ac_var=yes" | |
30957 | else | |
30958 | echo "$as_me: failed program was:" >&5 | |
30959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30960 | ||
30961 | eval "$as_ac_var=no" | |
30962 | fi | |
30963 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
30964 | fi | |
30965 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30966 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30967 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30968 | cat >>confdefs.h <<_ACEOF | |
30969 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30970 | _ACEOF | |
3fcdd07b | 30971 | break |
3fcdd07b VZ |
30972 | fi |
30973 | done | |
30974 | ||
698dcdb6 | 30975 | |
8284b0c5 | 30976 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
e6cc62c6 VS |
30977 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
30978 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
30979 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
30980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30981 | else | |
30982 | ||
30983 | ||
30984 | ||
30985 | ac_ext=cc | |
5c6fa7d2 | 30986 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
30987 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
30988 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
30989 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52127426 | 30990 | |
8284b0c5 | 30991 | |
e6cc62c6 VS |
30992 | cat >conftest.$ac_ext <<_ACEOF |
30993 | #line $LINENO "configure" | |
30994 | /* confdefs.h. */ | |
30995 | _ACEOF | |
30996 | cat confdefs.h >>conftest.$ac_ext | |
30997 | cat >>conftest.$ac_ext <<_ACEOF | |
30998 | /* end confdefs.h. */ | |
afc31813 VZ |
30999 | |
31000 | #include <sys/time.h> | |
31001 | #include <unistd.h> | |
e6cc62c6 VS |
31002 | |
31003 | int | |
31004 | main () | |
31005 | { | |
afc31813 VZ |
31006 | |
31007 | struct timeval tv; | |
776862b4 | 31008 | gettimeofday(&tv, NULL); |
e6cc62c6 VS |
31009 | |
31010 | ; | |
31011 | return 0; | |
31012 | } | |
31013 | _ACEOF | |
31014 | rm -f conftest.$ac_objext | |
31015 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31016 | (eval $ac_compile) 2>&5 | |
31017 | ac_status=$? | |
31018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31019 | (exit $ac_status); } && | |
31020 | { ac_try='test -s conftest.$ac_objext' | |
31021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31022 | (eval $ac_try) 2>&5 | |
31023 | ac_status=$? | |
31024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31025 | (exit $ac_status); }; }; then | |
afc31813 | 31026 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 31027 | else |
e6cc62c6 VS |
31028 | echo "$as_me: failed program was:" >&5 |
31029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31030 | ||
31031 | cat >conftest.$ac_ext <<_ACEOF | |
31032 | #line $LINENO "configure" | |
31033 | /* confdefs.h. */ | |
31034 | _ACEOF | |
31035 | cat confdefs.h >>conftest.$ac_ext | |
31036 | cat >>conftest.$ac_ext <<_ACEOF | |
31037 | /* end confdefs.h. */ | |
afc31813 VZ |
31038 | |
31039 | #include <sys/time.h> | |
31040 | #include <unistd.h> | |
e6cc62c6 VS |
31041 | |
31042 | int | |
31043 | main () | |
31044 | { | |
afc31813 VZ |
31045 | |
31046 | struct timeval tv; | |
31047 | gettimeofday(&tv); | |
e6cc62c6 VS |
31048 | |
31049 | ; | |
31050 | return 0; | |
31051 | } | |
31052 | _ACEOF | |
31053 | rm -f conftest.$ac_objext | |
31054 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31055 | (eval $ac_compile) 2>&5 | |
31056 | ac_status=$? | |
31057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31058 | (exit $ac_status); } && | |
31059 | { ac_try='test -s conftest.$ac_objext' | |
31060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31061 | (eval $ac_try) 2>&5 | |
31062 | ac_status=$? | |
31063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31064 | (exit $ac_status); }; }; then | |
afc31813 | 31065 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 31066 | else |
e6cc62c6 VS |
31067 | echo "$as_me: failed program was:" >&5 |
31068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31069 | ||
31070 | ||
31071 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
31072 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
776862b4 | 31073 | wx_cv_func_gettimeofday_has_2_args=unknown |
e6cc62c6 VS |
31074 | |
31075 | ||
10f2d63a | 31076 | fi |
e6cc62c6 VS |
31077 | rm -f conftest.$ac_objext conftest.$ac_ext |
31078 | ||
10f2d63a | 31079 | fi |
e6cc62c6 | 31080 | rm -f conftest.$ac_objext conftest.$ac_ext |
afc31813 | 31081 | ac_ext=c |
10f2d63a | 31082 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
31083 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
31084 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31085 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 31086 | |
a0b9e27f | 31087 | |
e6cc62c6 VS |
31088 | fi |
31089 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
31090 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 31091 | |
afc31813 | 31092 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
e6cc62c6 | 31093 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 31094 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
e6cc62c6 | 31095 | _ACEOF |
afc31813 VZ |
31096 | |
31097 | fi | |
31098 | fi | |
31099 | ||
afc31813 VZ |
31100 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
31101 | fi | |
31102 | ||
8284b0c5 | 31103 | |
52127426 | 31104 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 31105 | if test "$wxUSE_MGL" = "1"; then |
e6cc62c6 VS |
31106 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
31107 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
31108 | wxUSE_SOCKETS="no" |
31109 | fi | |
3879ecda VZ |
31110 | if test "$wxUSE_COCOA" = "1"; then |
31111 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under Cocoa... disabled" >&5 | |
31112 | echo "$as_me: WARNING: wxSocket not yet supported under Cocoa... disabled" >&2;} | |
31113 | wxUSE_SOCKETS="no" | |
31114 | fi | |
0feee163 | 31115 | fi |
b089607b | 31116 | |
0feee163 VZ |
31117 | if test "$wxUSE_SOCKETS" = "yes"; then |
31118 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
31119 | echo "$as_me:$LINENO: checking for socket" >&5 |
31120 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
31121 | if test "${ac_cv_func_socket+set}" = set; then | |
31122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31123 | else | |
31124 | cat >conftest.$ac_ext <<_ACEOF | |
31125 | #line $LINENO "configure" | |
31126 | /* confdefs.h. */ | |
31127 | _ACEOF | |
31128 | cat confdefs.h >>conftest.$ac_ext | |
31129 | cat >>conftest.$ac_ext <<_ACEOF | |
31130 | /* end confdefs.h. */ | |
c63c7106 | 31131 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31132 | which can conflict with char socket (); below. |
31133 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31134 | <limits.h> exists even on freestanding compilers. */ | |
31135 | #ifdef __STDC__ | |
31136 | # include <limits.h> | |
31137 | #else | |
31138 | # include <assert.h> | |
31139 | #endif | |
c63c7106 | 31140 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31141 | #ifdef __cplusplus |
31142 | extern "C" | |
31143 | { | |
31144 | #endif | |
c63c7106 | 31145 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31146 | builtin and then its argument prototype would still apply. */ |
31147 | char socket (); | |
c63c7106 VZ |
31148 | /* The GNU C library defines this for functions which it implements |
31149 | to always fail with ENOSYS. Some functions are actually named | |
31150 | something starting with __ and the normal name is an alias. */ | |
31151 | #if defined (__stub_socket) || defined (__stub___socket) | |
31152 | choke me | |
31153 | #else | |
e6cc62c6 VS |
31154 | char (*f) () = socket; |
31155 | #endif | |
31156 | #ifdef __cplusplus | |
31157 | } | |
c63c7106 VZ |
31158 | #endif |
31159 | ||
e6cc62c6 VS |
31160 | int |
31161 | main () | |
31162 | { | |
31163 | return f != socket; | |
31164 | ; | |
31165 | return 0; | |
31166 | } | |
31167 | _ACEOF | |
31168 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31170 | (eval $ac_link) 2>&5 | |
31171 | ac_status=$? | |
31172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31173 | (exit $ac_status); } && | |
31174 | { ac_try='test -s conftest$ac_exeext' | |
31175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31176 | (eval $ac_try) 2>&5 | |
31177 | ac_status=$? | |
31178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31179 | (exit $ac_status); }; }; then | |
31180 | ac_cv_func_socket=yes | |
31181 | else | |
31182 | echo "$as_me: failed program was:" >&5 | |
31183 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31184 | ||
31185 | ac_cv_func_socket=no | |
31186 | fi | |
31187 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31188 | fi | |
31189 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
31190 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
31191 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
31192 | : |
31193 | else | |
0e012a93 VZ |
31194 | |
31195 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
e6cc62c6 VS |
31196 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
31197 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
31198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 31199 | else |
e6cc62c6 | 31200 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 31201 | LIBS="-lsocket $LIBS" |
e6cc62c6 VS |
31202 | cat >conftest.$ac_ext <<_ACEOF |
31203 | #line $LINENO "configure" | |
31204 | /* confdefs.h. */ | |
31205 | _ACEOF | |
31206 | cat confdefs.h >>conftest.$ac_ext | |
31207 | cat >>conftest.$ac_ext <<_ACEOF | |
31208 | /* end confdefs.h. */ | |
31209 | ||
c63c7106 | 31210 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31211 | #ifdef __cplusplus |
31212 | extern "C" | |
31213 | #endif | |
c63c7106 | 31214 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31215 | builtin and then its argument prototype would still apply. */ |
31216 | char socket (); | |
31217 | int | |
31218 | main () | |
31219 | { | |
31220 | socket (); | |
31221 | ; | |
31222 | return 0; | |
31223 | } | |
31224 | _ACEOF | |
31225 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31226 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31227 | (eval $ac_link) 2>&5 | |
31228 | ac_status=$? | |
31229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31230 | (exit $ac_status); } && | |
31231 | { ac_try='test -s conftest$ac_exeext' | |
31232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31233 | (eval $ac_try) 2>&5 | |
31234 | ac_status=$? | |
31235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31236 | (exit $ac_status); }; }; then | |
31237 | ac_cv_lib_socket_socket=yes | |
31238 | else | |
31239 | echo "$as_me: failed program was:" >&5 | |
31240 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31241 | ||
31242 | ac_cv_lib_socket_socket=no | |
31243 | fi | |
31244 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31245 | LIBS=$ac_check_lib_save_LIBS | |
31246 | fi | |
31247 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
31248 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
31249 | if test $ac_cv_lib_socket_socket = yes; then | |
d558c907 | 31250 | if test "$INET_LINK" != " -lsocket"; then |
0e012a93 VZ |
31251 | INET_LINK="$INET_LINK -lsocket" |
31252 | fi | |
c63c7106 | 31253 | else |
afc31813 | 31254 | |
0e012a93 | 31255 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
e6cc62c6 | 31256 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} |
0e012a93 | 31257 | wxUSE_SOCKETS=no |
e6cc62c6 VS |
31258 | |
31259 | ||
6232543b | 31260 | fi |
b089607b | 31261 | |
e6cc62c6 | 31262 | |
0e012a93 | 31263 | |
1e487827 | 31264 | fi |
afc31813 | 31265 | |
3a922bb4 | 31266 | fi |
0feee163 | 31267 | fi |
51a9faba | 31268 | |
0feee163 VZ |
31269 | if test "$wxUSE_SOCKETS" = "yes" ; then |
31270 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
31271 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
31272 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
31273 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
31274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 31275 | else |
e6cc62c6 VS |
31276 | |
31277 | cat >conftest.$ac_ext <<_ACEOF | |
31278 | #line $LINENO "configure" | |
31279 | /* confdefs.h. */ | |
31280 | _ACEOF | |
31281 | cat confdefs.h >>conftest.$ac_ext | |
31282 | cat >>conftest.$ac_ext <<_ACEOF | |
31283 | /* end confdefs.h. */ | |
51a9faba | 31284 | |
3a922bb4 RL |
31285 | #include <sys/types.h> |
31286 | #include <sys/socket.h> | |
e6cc62c6 VS |
31287 | |
31288 | int | |
31289 | main () | |
31290 | { | |
51a9faba | 31291 | |
3a922bb4 RL |
31292 | socklen_t len; |
31293 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31294 | |
31295 | ; | |
31296 | return 0; | |
31297 | } | |
31298 | _ACEOF | |
31299 | rm -f conftest.$ac_objext | |
31300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31301 | (eval $ac_compile) 2>&5 | |
31302 | ac_status=$? | |
31303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31304 | (exit $ac_status); } && | |
31305 | { ac_try='test -s conftest.$ac_objext' | |
31306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31307 | (eval $ac_try) 2>&5 | |
31308 | ac_status=$? | |
31309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31310 | (exit $ac_status); }; }; then | |
51a9faba | 31311 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 31312 | else |
e6cc62c6 VS |
31313 | echo "$as_me: failed program was:" >&5 |
31314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31315 | ||
31316 | ||
9711d31e GD |
31317 | CFLAGS_OLD="$CFLAGS" |
31318 | if test "$GCC" = yes ; then | |
31319 | CFLAGS="$CFLAGS -Werror" | |
31320 | fi | |
31321 | ||
e6cc62c6 VS |
31322 | cat >conftest.$ac_ext <<_ACEOF |
31323 | #line $LINENO "configure" | |
31324 | /* confdefs.h. */ | |
31325 | _ACEOF | |
31326 | cat confdefs.h >>conftest.$ac_ext | |
31327 | cat >>conftest.$ac_ext <<_ACEOF | |
31328 | /* end confdefs.h. */ | |
51a9faba | 31329 | |
9711d31e GD |
31330 | #include <sys/types.h> |
31331 | #include <sys/socket.h> | |
e6cc62c6 VS |
31332 | |
31333 | int | |
31334 | main () | |
31335 | { | |
51a9faba | 31336 | |
9711d31e GD |
31337 | size_t len; |
31338 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31339 | |
31340 | ; | |
31341 | return 0; | |
31342 | } | |
31343 | _ACEOF | |
31344 | rm -f conftest.$ac_objext | |
31345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31346 | (eval $ac_compile) 2>&5 | |
31347 | ac_status=$? | |
31348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31349 | (exit $ac_status); } && | |
31350 | { ac_try='test -s conftest.$ac_objext' | |
31351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31352 | (eval $ac_try) 2>&5 | |
31353 | ac_status=$? | |
31354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31355 | (exit $ac_status); }; }; then | |
51a9faba | 31356 | wx_cv_type_getsockname3=size_t |
afc31813 | 31357 | else |
e6cc62c6 VS |
31358 | echo "$as_me: failed program was:" >&5 |
31359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31360 | ||
31361 | cat >conftest.$ac_ext <<_ACEOF | |
31362 | #line $LINENO "configure" | |
31363 | /* confdefs.h. */ | |
31364 | _ACEOF | |
31365 | cat confdefs.h >>conftest.$ac_ext | |
31366 | cat >>conftest.$ac_ext <<_ACEOF | |
31367 | /* end confdefs.h. */ | |
51a9faba | 31368 | |
9711d31e GD |
31369 | #include <sys/types.h> |
31370 | #include <sys/socket.h> | |
e6cc62c6 VS |
31371 | |
31372 | int | |
31373 | main () | |
31374 | { | |
51a9faba | 31375 | |
9711d31e GD |
31376 | int len; |
31377 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31378 | |
31379 | ; | |
31380 | return 0; | |
31381 | } | |
31382 | _ACEOF | |
31383 | rm -f conftest.$ac_objext | |
31384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31385 | (eval $ac_compile) 2>&5 | |
31386 | ac_status=$? | |
31387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31388 | (exit $ac_status); } && | |
31389 | { ac_try='test -s conftest.$ac_objext' | |
31390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31391 | (eval $ac_try) 2>&5 | |
31392 | ac_status=$? | |
31393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31394 | (exit $ac_status); }; }; then | |
51a9faba | 31395 | wx_cv_type_getsockname3=int |
afc31813 | 31396 | else |
e6cc62c6 VS |
31397 | echo "$as_me: failed program was:" >&5 |
31398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31399 | ||
31400 | wx_cv_type_getsockname3=unknown | |
31401 | ||
afc31813 | 31402 | fi |
e6cc62c6 VS |
31403 | rm -f conftest.$ac_objext conftest.$ac_ext |
31404 | ||
afc31813 | 31405 | fi |
e6cc62c6 | 31406 | rm -f conftest.$ac_objext conftest.$ac_ext |
9711d31e GD |
31407 | |
31408 | CFLAGS="$CFLAGS_OLD" | |
e6cc62c6 VS |
31409 | |
31410 | ||
247f5006 | 31411 | fi |
e6cc62c6 | 31412 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 31413 | |
e6cc62c6 VS |
31414 | fi |
31415 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
31416 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba | 31417 | |
3a922bb4 RL |
31418 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
31419 | wxUSE_SOCKETS=no | |
e6cc62c6 VS |
31420 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
31421 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
3a922bb4 | 31422 | else |
e6cc62c6 | 31423 | cat >>confdefs.h <<_ACEOF |
51a9faba | 31424 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
e6cc62c6 | 31425 | _ACEOF |
51a9faba | 31426 | |
3a922bb4 | 31427 | fi |
51a9faba VZ |
31428 | fi |
31429 | fi | |
afc31813 | 31430 | |
51a9faba | 31431 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 31432 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 31433 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 31434 | _ACEOF |
afc31813 | 31435 | |
70f7a477 | 31436 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
31437 | fi |
31438 | ||
3879ecda VZ |
31439 | if test "$wxUSE_PROTOCOL" = "yes"; then |
31440 | if test "$wxUSE_SOCKETS" != "yes"; then | |
31441 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
31442 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
31443 | wxUSE_PROTOCOL=no | |
31444 | fi | |
31445 | fi | |
31446 | ||
31447 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
31448 | cat >>confdefs.h <<\_ACEOF | |
31449 | #define wxUSE_PROTOCOL 1 | |
31450 | _ACEOF | |
31451 | ||
31452 | ||
31453 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
31454 | cat >>confdefs.h <<\_ACEOF | |
31455 | #define wxUSE_PROTOCOL_HTTP 1 | |
31456 | _ACEOF | |
31457 | ||
31458 | fi | |
31459 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
31460 | cat >>confdefs.h <<\_ACEOF | |
31461 | #define wxUSE_PROTOCOL_FTP 1 | |
31462 | _ACEOF | |
31463 | ||
31464 | fi | |
31465 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
31466 | cat >>confdefs.h <<\_ACEOF | |
31467 | #define wxUSE_PROTOCOL_FILE 1 | |
31468 | _ACEOF | |
31469 | ||
31470 | fi | |
31471 | else | |
31472 | if test "$wxUSE_FS_INET" = "yes"; then | |
31473 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
31474 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
31475 | wxUSE_FS_INET="no" | |
31476 | fi | |
31477 | fi | |
31478 | ||
31479 | if test "$wxUSE_URL" = "yes"; then | |
31480 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
31481 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
31482 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
31483 | wxUSE_URL=no | |
31484 | fi | |
31485 | if test "$wxUSE_URL" = "yes"; then | |
31486 | cat >>confdefs.h <<\_ACEOF | |
31487 | #define wxUSE_URL 1 | |
31488 | _ACEOF | |
31489 | ||
31490 | fi | |
31491 | fi | |
31492 | ||
31493 | if test "$wxUSE_FS_INET" = "yes"; then | |
31494 | cat >>confdefs.h <<\_ACEOF | |
31495 | #define wxUSE_FS_INET 1 | |
31496 | _ACEOF | |
31497 | ||
31498 | fi | |
31499 | ||
8284b0c5 | 31500 | |
dc3d889d VZ |
31501 | if test "$wxUSE_GUI" = "yes"; then |
31502 | ||
ac0c4cc3 | 31503 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
e6cc62c6 VS |
31504 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 |
31505 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 | 31506 | wxUSE_JOYSTICK=no |
156b2523 GD |
31507 | fi |
31508 | ||
131f235d | 31509 | if test "$TOOLKIT" != "MSW"; then |
3a922bb4 | 31510 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 VS |
31511 | |
31512 | for ac_header in linux/joystick.h | |
10f2d63a | 31513 | do |
e6cc62c6 VS |
31514 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
31515 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31516 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31517 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31518 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31520 | fi | |
31521 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31522 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31523 | else | |
31524 | # Is the header compilable? | |
31525 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31526 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31527 | cat >conftest.$ac_ext <<_ACEOF | |
31528 | #line $LINENO "configure" | |
31529 | /* confdefs.h. */ | |
31530 | _ACEOF | |
31531 | cat confdefs.h >>conftest.$ac_ext | |
31532 | cat >>conftest.$ac_ext <<_ACEOF | |
31533 | /* end confdefs.h. */ | |
31534 | $ac_includes_default | |
31535 | #include <$ac_header> | |
31536 | _ACEOF | |
31537 | rm -f conftest.$ac_objext | |
31538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
31539 | (eval $ac_compile) 2>&5 | |
31540 | ac_status=$? | |
31541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31542 | (exit $ac_status); } && | |
31543 | { ac_try='test -s conftest.$ac_objext' | |
31544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31545 | (eval $ac_try) 2>&5 | |
31546 | ac_status=$? | |
31547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31548 | (exit $ac_status); }; }; then | |
31549 | ac_header_compiler=yes | |
31550 | else | |
31551 | echo "$as_me: failed program was:" >&5 | |
31552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31553 | ||
31554 | ac_header_compiler=no | |
31555 | fi | |
31556 | rm -f conftest.$ac_objext conftest.$ac_ext | |
31557 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
31558 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31559 | ||
31560 | # Is the header present? | |
31561 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31562 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31563 | cat >conftest.$ac_ext <<_ACEOF | |
31564 | #line $LINENO "configure" | |
31565 | /* confdefs.h. */ | |
31566 | _ACEOF | |
31567 | cat confdefs.h >>conftest.$ac_ext | |
31568 | cat >>conftest.$ac_ext <<_ACEOF | |
31569 | /* end confdefs.h. */ | |
31570 | #include <$ac_header> | |
31571 | _ACEOF | |
31572 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31573 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31574 | ac_status=$? | |
31575 | grep -v '^ *+' conftest.er1 >conftest.err | |
31576 | rm -f conftest.er1 | |
31577 | cat conftest.err >&5 | |
31578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31579 | (exit $ac_status); } >/dev/null; then | |
31580 | if test -s conftest.err; then | |
31581 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31582 | else | |
31583 | ac_cpp_err= | |
31584 | fi | |
31585 | else | |
31586 | ac_cpp_err=yes | |
31587 | fi | |
31588 | if test -z "$ac_cpp_err"; then | |
31589 | ac_header_preproc=yes | |
31590 | else | |
31591 | echo "$as_me: failed program was:" >&5 | |
31592 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31593 | ||
31594 | ac_header_preproc=no | |
31595 | fi | |
31596 | rm -f conftest.err conftest.$ac_ext | |
31597 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31598 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31599 | ||
31600 | # So? What about this header? | |
31601 | case $ac_header_compiler:$ac_header_preproc in | |
31602 | yes:no ) | |
31603 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
31604 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
31605 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31606 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31607 | ( | |
31608 | cat <<\_ASBOX | |
31609 | ## ------------------------------------ ## | |
31610 | ## Report this to bug-autoconf@gnu.org. ## | |
31611 | ## ------------------------------------ ## | |
31612 | _ASBOX | |
31613 | ) | | |
31614 | sed "s/^/$as_me: WARNING: /" >&2 | |
31615 | ;; | |
31616 | no:yes ) | |
31617 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
31618 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
31619 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
31620 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
31621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
31622 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31623 | ( | |
31624 | cat <<\_ASBOX | |
31625 | ## ------------------------------------ ## | |
31626 | ## Report this to bug-autoconf@gnu.org. ## | |
31627 | ## ------------------------------------ ## | |
31628 | _ASBOX | |
31629 | ) | | |
31630 | sed "s/^/$as_me: WARNING: /" >&2 | |
31631 | ;; | |
31632 | esac | |
31633 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31634 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31635 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31636 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31637 | else | |
31638 | eval "$as_ac_Header=$ac_header_preproc" | |
247f5006 | 31639 | fi |
e6cc62c6 VS |
31640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31641 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31642 | ||
10f2d63a | 31643 | fi |
e6cc62c6 VS |
31644 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31645 | cat >>confdefs.h <<_ACEOF | |
31646 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31647 | _ACEOF | |
31648 | ||
247f5006 | 31649 | fi |
e6cc62c6 | 31650 | |
10f2d63a VZ |
31651 | done |
31652 | ||
3a922bb4 RL |
31653 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
31654 | wxUSE_JOYSTICK=no | |
e6cc62c6 VS |
31655 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
31656 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
3a922bb4 RL |
31657 | fi |
31658 | fi | |
31659 | fi | |
b089607b | 31660 | |
3a922bb4 | 31661 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 | 31662 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31663 | #define wxUSE_JOYSTICK 1 |
e6cc62c6 | 31664 | _ACEOF |
10f2d63a | 31665 | |
3a922bb4 RL |
31666 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
31667 | fi | |
dc3d889d VZ |
31668 | fi |
31669 | ||
8284b0c5 | 31670 | |
73d617c9 | 31671 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
b089607b | 31672 | |
3a922bb4 RL |
31673 | HAVE_DL_FUNCS=0 |
31674 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 31675 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
31676 | if test "$USE_DARWIN" = 1; then |
31677 | HAVE_DL_FUNCS=1 | |
31678 | else | |
e6cc62c6 VS |
31679 | |
31680 | for ac_func in dlopen | |
10f2d63a | 31681 | do |
e6cc62c6 VS |
31682 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31683 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31684 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31685 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31687 | else | |
31688 | cat >conftest.$ac_ext <<_ACEOF | |
31689 | #line $LINENO "configure" | |
31690 | /* confdefs.h. */ | |
31691 | _ACEOF | |
31692 | cat confdefs.h >>conftest.$ac_ext | |
31693 | cat >>conftest.$ac_ext <<_ACEOF | |
31694 | /* end confdefs.h. */ | |
10f2d63a | 31695 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31696 | which can conflict with char $ac_func (); below. |
31697 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31698 | <limits.h> exists even on freestanding compilers. */ | |
31699 | #ifdef __STDC__ | |
31700 | # include <limits.h> | |
31701 | #else | |
31702 | # include <assert.h> | |
31703 | #endif | |
10f2d63a | 31704 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31705 | #ifdef __cplusplus |
31706 | extern "C" | |
31707 | { | |
31708 | #endif | |
10f2d63a | 31709 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31710 | builtin and then its argument prototype would still apply. */ |
31711 | char $ac_func (); | |
10f2d63a VZ |
31712 | /* The GNU C library defines this for functions which it implements |
31713 | to always fail with ENOSYS. Some functions are actually named | |
31714 | something starting with __ and the normal name is an alias. */ | |
31715 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31716 | choke me | |
31717 | #else | |
e6cc62c6 VS |
31718 | char (*f) () = $ac_func; |
31719 | #endif | |
31720 | #ifdef __cplusplus | |
31721 | } | |
10f2d63a VZ |
31722 | #endif |
31723 | ||
e6cc62c6 VS |
31724 | int |
31725 | main () | |
31726 | { | |
31727 | return f != $ac_func; | |
31728 | ; | |
31729 | return 0; | |
31730 | } | |
31731 | _ACEOF | |
31732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31734 | (eval $ac_link) 2>&5 | |
31735 | ac_status=$? | |
31736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31737 | (exit $ac_status); } && | |
31738 | { ac_try='test -s conftest$ac_exeext' | |
31739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31740 | (eval $ac_try) 2>&5 | |
31741 | ac_status=$? | |
31742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31743 | (exit $ac_status); }; }; then | |
31744 | eval "$as_ac_var=yes" | |
31745 | else | |
31746 | echo "$as_me: failed program was:" >&5 | |
31747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31748 | ||
31749 | eval "$as_ac_var=no" | |
31750 | fi | |
31751 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31752 | fi | |
31753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31754 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31755 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31756 | cat >>confdefs.h <<_ACEOF | |
31757 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31758 | _ACEOF | |
31759 | ||
31760 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31761 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31762 | _ACEOF |
10f2d63a | 31763 | |
3a922bb4 | 31764 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 31765 | |
10f2d63a | 31766 | else |
e6cc62c6 VS |
31767 | |
31768 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
31769 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
31770 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
31771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 31772 | else |
e6cc62c6 | 31773 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 31774 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
31775 | cat >conftest.$ac_ext <<_ACEOF |
31776 | #line $LINENO "configure" | |
31777 | /* confdefs.h. */ | |
31778 | _ACEOF | |
31779 | cat confdefs.h >>conftest.$ac_ext | |
31780 | cat >>conftest.$ac_ext <<_ACEOF | |
31781 | /* end confdefs.h. */ | |
31782 | ||
10f2d63a | 31783 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31784 | #ifdef __cplusplus |
31785 | extern "C" | |
31786 | #endif | |
10f2d63a | 31787 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31788 | builtin and then its argument prototype would still apply. */ |
31789 | char dlopen (); | |
31790 | int | |
31791 | main () | |
31792 | { | |
31793 | dlopen (); | |
31794 | ; | |
31795 | return 0; | |
31796 | } | |
31797 | _ACEOF | |
31798 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31799 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31800 | (eval $ac_link) 2>&5 | |
31801 | ac_status=$? | |
31802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31803 | (exit $ac_status); } && | |
31804 | { ac_try='test -s conftest$ac_exeext' | |
31805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31806 | (eval $ac_try) 2>&5 | |
31807 | ac_status=$? | |
31808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31809 | (exit $ac_status); }; }; then | |
31810 | ac_cv_lib_dl_dlopen=yes | |
31811 | else | |
31812 | echo "$as_me: failed program was:" >&5 | |
31813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31814 | ||
31815 | ac_cv_lib_dl_dlopen=no | |
31816 | fi | |
31817 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31818 | LIBS=$ac_check_lib_save_LIBS | |
31819 | fi | |
31820 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
31821 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
31822 | if test $ac_cv_lib_dl_dlopen = yes; then | |
31823 | ||
31824 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31825 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31826 | _ACEOF |
10f2d63a | 31827 | |
3a922bb4 | 31828 | HAVE_DL_FUNCS=1 |
3d63bc3a | 31829 | DL_LINK=" -ldl$DL_LINK" |
e6cc62c6 | 31830 | |
10f2d63a | 31831 | else |
10f2d63a | 31832 | |
e6cc62c6 VS |
31833 | |
31834 | for ac_func in shl_load | |
10f2d63a | 31835 | do |
e6cc62c6 VS |
31836 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31837 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31838 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31839 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31841 | else | |
31842 | cat >conftest.$ac_ext <<_ACEOF | |
31843 | #line $LINENO "configure" | |
31844 | /* confdefs.h. */ | |
31845 | _ACEOF | |
31846 | cat confdefs.h >>conftest.$ac_ext | |
31847 | cat >>conftest.$ac_ext <<_ACEOF | |
31848 | /* end confdefs.h. */ | |
10f2d63a | 31849 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31850 | which can conflict with char $ac_func (); below. |
31851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31852 | <limits.h> exists even on freestanding compilers. */ | |
31853 | #ifdef __STDC__ | |
31854 | # include <limits.h> | |
31855 | #else | |
31856 | # include <assert.h> | |
31857 | #endif | |
10f2d63a | 31858 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31859 | #ifdef __cplusplus |
31860 | extern "C" | |
31861 | { | |
31862 | #endif | |
10f2d63a | 31863 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31864 | builtin and then its argument prototype would still apply. */ |
31865 | char $ac_func (); | |
10f2d63a VZ |
31866 | /* The GNU C library defines this for functions which it implements |
31867 | to always fail with ENOSYS. Some functions are actually named | |
31868 | something starting with __ and the normal name is an alias. */ | |
31869 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31870 | choke me | |
31871 | #else | |
e6cc62c6 VS |
31872 | char (*f) () = $ac_func; |
31873 | #endif | |
31874 | #ifdef __cplusplus | |
31875 | } | |
10f2d63a VZ |
31876 | #endif |
31877 | ||
e6cc62c6 VS |
31878 | int |
31879 | main () | |
31880 | { | |
31881 | return f != $ac_func; | |
31882 | ; | |
31883 | return 0; | |
31884 | } | |
31885 | _ACEOF | |
31886 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31887 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31888 | (eval $ac_link) 2>&5 | |
31889 | ac_status=$? | |
31890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31891 | (exit $ac_status); } && | |
31892 | { ac_try='test -s conftest$ac_exeext' | |
31893 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31894 | (eval $ac_try) 2>&5 | |
31895 | ac_status=$? | |
31896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31897 | (exit $ac_status); }; }; then | |
31898 | eval "$as_ac_var=yes" | |
31899 | else | |
31900 | echo "$as_me: failed program was:" >&5 | |
31901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31902 | ||
31903 | eval "$as_ac_var=no" | |
31904 | fi | |
31905 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31906 | fi | |
31907 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31908 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31909 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31910 | cat >>confdefs.h <<_ACEOF | |
31911 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31912 | _ACEOF | |
31913 | ||
31914 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31915 | #define HAVE_SHL_LOAD 1 |
e6cc62c6 | 31916 | _ACEOF |
10f2d63a | 31917 | |
3a922bb4 | 31918 | HAVE_SHL_FUNCS=1 |
e6cc62c6 | 31919 | |
10f2d63a | 31920 | else |
e6cc62c6 VS |
31921 | |
31922 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
31923 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
31924 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
31925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 31926 | else |
e6cc62c6 | 31927 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 31928 | LIBS="-lshl_load $LIBS" |
e6cc62c6 VS |
31929 | cat >conftest.$ac_ext <<_ACEOF |
31930 | #line $LINENO "configure" | |
31931 | /* confdefs.h. */ | |
31932 | _ACEOF | |
31933 | cat confdefs.h >>conftest.$ac_ext | |
31934 | cat >>conftest.$ac_ext <<_ACEOF | |
31935 | /* end confdefs.h. */ | |
31936 | ||
8284b0c5 | 31937 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31938 | #ifdef __cplusplus |
31939 | extern "C" | |
31940 | #endif | |
f6bcfd97 | 31941 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31942 | builtin and then its argument prototype would still apply. */ |
31943 | char dld (); | |
31944 | int | |
31945 | main () | |
31946 | { | |
31947 | dld (); | |
31948 | ; | |
31949 | return 0; | |
31950 | } | |
31951 | _ACEOF | |
31952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
31954 | (eval $ac_link) 2>&5 | |
31955 | ac_status=$? | |
31956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31957 | (exit $ac_status); } && | |
31958 | { ac_try='test -s conftest$ac_exeext' | |
31959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
31960 | (eval $ac_try) 2>&5 | |
31961 | ac_status=$? | |
31962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31963 | (exit $ac_status); }; }; then | |
31964 | ac_cv_lib_shl_load_dld=yes | |
31965 | else | |
31966 | echo "$as_me: failed program was:" >&5 | |
31967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31968 | ||
31969 | ac_cv_lib_shl_load_dld=no | |
31970 | fi | |
31971 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
31972 | LIBS=$ac_check_lib_save_LIBS | |
31973 | fi | |
31974 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
31975 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
31976 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 31977 | |
3a922bb4 | 31978 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 31979 | DL_LINK=" -ldld$DL_LINK" |
e6cc62c6 | 31980 | |
f6bcfd97 BP |
31981 | fi |
31982 | ||
e6cc62c6 | 31983 | |
10f2d63a VZ |
31984 | fi |
31985 | done | |
31986 | ||
e6cc62c6 | 31987 | |
10f2d63a VZ |
31988 | fi |
31989 | ||
e6cc62c6 | 31990 | |
10f2d63a VZ |
31991 | fi |
31992 | done | |
31993 | ||
5c6fa7d2 | 31994 | |
8284b0c5 | 31995 | if test "$HAVE_DL_FUNCS" = 1; then |
e6cc62c6 VS |
31996 | |
31997 | for ac_func in dlerror | |
f6bcfd97 | 31998 | do |
e6cc62c6 VS |
31999 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32000 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32001 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32002 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32004 | else | |
32005 | cat >conftest.$ac_ext <<_ACEOF | |
32006 | #line $LINENO "configure" | |
32007 | /* confdefs.h. */ | |
32008 | _ACEOF | |
32009 | cat confdefs.h >>conftest.$ac_ext | |
32010 | cat >>conftest.$ac_ext <<_ACEOF | |
32011 | /* end confdefs.h. */ | |
f6bcfd97 | 32012 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32013 | which can conflict with char $ac_func (); below. |
32014 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32015 | <limits.h> exists even on freestanding compilers. */ | |
32016 | #ifdef __STDC__ | |
32017 | # include <limits.h> | |
32018 | #else | |
32019 | # include <assert.h> | |
32020 | #endif | |
f6bcfd97 | 32021 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32022 | #ifdef __cplusplus |
32023 | extern "C" | |
32024 | { | |
32025 | #endif | |
f6bcfd97 | 32026 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32027 | builtin and then its argument prototype would still apply. */ |
32028 | char $ac_func (); | |
f6bcfd97 BP |
32029 | /* The GNU C library defines this for functions which it implements |
32030 | to always fail with ENOSYS. Some functions are actually named | |
32031 | something starting with __ and the normal name is an alias. */ | |
32032 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32033 | choke me | |
32034 | #else | |
e6cc62c6 VS |
32035 | char (*f) () = $ac_func; |
32036 | #endif | |
32037 | #ifdef __cplusplus | |
32038 | } | |
f6bcfd97 BP |
32039 | #endif |
32040 | ||
e6cc62c6 VS |
32041 | int |
32042 | main () | |
32043 | { | |
32044 | return f != $ac_func; | |
32045 | ; | |
32046 | return 0; | |
32047 | } | |
32048 | _ACEOF | |
32049 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32050 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32051 | (eval $ac_link) 2>&5 | |
32052 | ac_status=$? | |
32053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32054 | (exit $ac_status); } && | |
32055 | { ac_try='test -s conftest$ac_exeext' | |
32056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32057 | (eval $ac_try) 2>&5 | |
32058 | ac_status=$? | |
32059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32060 | (exit $ac_status); }; }; then | |
32061 | eval "$as_ac_var=yes" | |
32062 | else | |
32063 | echo "$as_me: failed program was:" >&5 | |
32064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32065 | ||
32066 | eval "$as_ac_var=no" | |
32067 | fi | |
32068 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32069 | fi | |
32070 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32071 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32072 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32073 | cat >>confdefs.h <<_ACEOF | |
32074 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32075 | _ACEOF | |
32076 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 32077 | #define HAVE_DLERROR 1 |
e6cc62c6 | 32078 | _ACEOF |
f6bcfd97 BP |
32079 | |
32080 | else | |
0e012a93 VZ |
32081 | |
32082 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
e6cc62c6 VS |
32083 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 |
32084 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
32085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 32086 | else |
e6cc62c6 | 32087 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 32088 | LIBS="-ldl $LIBS" |
e6cc62c6 VS |
32089 | cat >conftest.$ac_ext <<_ACEOF |
32090 | #line $LINENO "configure" | |
32091 | /* confdefs.h. */ | |
32092 | _ACEOF | |
32093 | cat confdefs.h >>conftest.$ac_ext | |
32094 | cat >>conftest.$ac_ext <<_ACEOF | |
32095 | /* end confdefs.h. */ | |
32096 | ||
f6bcfd97 | 32097 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32098 | #ifdef __cplusplus |
32099 | extern "C" | |
32100 | #endif | |
f6bcfd97 | 32101 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32102 | builtin and then its argument prototype would still apply. */ |
32103 | char dlerror (); | |
32104 | int | |
32105 | main () | |
32106 | { | |
32107 | dlerror (); | |
32108 | ; | |
32109 | return 0; | |
32110 | } | |
32111 | _ACEOF | |
32112 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32113 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32114 | (eval $ac_link) 2>&5 | |
32115 | ac_status=$? | |
32116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32117 | (exit $ac_status); } && | |
32118 | { ac_try='test -s conftest$ac_exeext' | |
32119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32120 | (eval $ac_try) 2>&5 | |
32121 | ac_status=$? | |
32122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32123 | (exit $ac_status); }; }; then | |
32124 | ac_cv_lib_dl_dlerror=yes | |
32125 | else | |
32126 | echo "$as_me: failed program was:" >&5 | |
32127 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32128 | ||
32129 | ac_cv_lib_dl_dlerror=no | |
32130 | fi | |
32131 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32132 | LIBS=$ac_check_lib_save_LIBS | |
32133 | fi | |
32134 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
32135 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
32136 | if test $ac_cv_lib_dl_dlerror = yes; then | |
32137 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 32138 | #define HAVE_DLERROR 1 |
e6cc62c6 | 32139 | _ACEOF |
f6bcfd97 | 32140 | |
f6bcfd97 BP |
32141 | fi |
32142 | ||
0e012a93 VZ |
32143 | |
32144 | ||
f6bcfd97 BP |
32145 | fi |
32146 | done | |
32147 | ||
3a922bb4 RL |
32148 | fi |
32149 | fi | |
f6bcfd97 | 32150 | |
3a922bb4 RL |
32151 | if test "$HAVE_DL_FUNCS" = 0; then |
32152 | if test "$HAVE_SHL_FUNCS" = 0; then | |
32153 | if test "$USE_UNIX" = 1; then | |
e6cc62c6 VS |
32154 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
32155 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
0b9ab0bd | 32156 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
32157 | wxUSE_DYNLIB_CLASS=no |
32158 | else | |
e6cc62c6 VS |
32159 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
32160 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
3a922bb4 RL |
32161 | fi |
32162 | fi | |
10f2d63a VZ |
32163 | fi |
32164 | fi | |
32165 | fi | |
32166 | ||
0b9ab0bd | 32167 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
e6cc62c6 | 32168 | cat >>confdefs.h <<\_ACEOF |
0b9ab0bd | 32169 | #define wxUSE_DYNAMIC_LOADER 1 |
e6cc62c6 | 32170 | _ACEOF |
0b9ab0bd | 32171 | |
1948bb32 VS |
32172 | fi |
32173 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
e6cc62c6 | 32174 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32175 | #define wxUSE_DYNLIB_CLASS 1 |
e6cc62c6 | 32176 | _ACEOF |
10f2d63a VZ |
32177 | |
32178 | fi | |
32179 | ||
8284b0c5 | 32180 | |
1e6feb95 | 32181 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 32182 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32183 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 32184 | _ACEOF |
1e6feb95 VZ |
32185 | |
32186 | fi | |
32187 | ||
10f2d63a | 32188 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 32189 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32190 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 32191 | _ACEOF |
10f2d63a | 32192 | |
8284b0c5 | 32193 | |
eb854003 | 32194 | if test "$USE_WIN32" != 1; then |
bbc3925a VS |
32195 | wxUSE_UNICODE_MSLU=no |
32196 | fi | |
a72a4bfa | 32197 | |
eb854003 | 32198 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then |
e6cc62c6 VS |
32199 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
32200 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
32201 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
32202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 32203 | else |
e6cc62c6 | 32204 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 32205 | LIBS="-lunicows $LIBS" |
e6cc62c6 VS |
32206 | cat >conftest.$ac_ext <<_ACEOF |
32207 | #line $LINENO "configure" | |
32208 | /* confdefs.h. */ | |
32209 | _ACEOF | |
32210 | cat confdefs.h >>conftest.$ac_ext | |
32211 | cat >>conftest.$ac_ext <<_ACEOF | |
32212 | /* end confdefs.h. */ | |
a72a4bfa | 32213 | |
8284b0c5 | 32214 | |
e6cc62c6 VS |
32215 | int |
32216 | main () | |
32217 | { | |
32218 | main (); | |
32219 | ; | |
32220 | return 0; | |
32221 | } | |
32222 | _ACEOF | |
32223 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32224 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32225 | (eval $ac_link) 2>&5 | |
32226 | ac_status=$? | |
32227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32228 | (exit $ac_status); } && | |
32229 | { ac_try='test -s conftest$ac_exeext' | |
32230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32231 | (eval $ac_try) 2>&5 | |
32232 | ac_status=$? | |
32233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32234 | (exit $ac_status); }; }; then | |
32235 | ac_cv_lib_unicows_main=yes | |
32236 | else | |
32237 | echo "$as_me: failed program was:" >&5 | |
32238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32239 | ||
32240 | ac_cv_lib_unicows_main=no | |
32241 | fi | |
32242 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
32243 | LIBS=$ac_check_lib_save_LIBS | |
32244 | fi | |
32245 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
32246 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
32247 | if test $ac_cv_lib_unicows_main = yes; then | |
32248 | ||
32249 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 32250 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
32251 | _ACEOF |
32252 | ||
a72a4bfa | 32253 | |
a72a4bfa | 32254 | else |
a72a4bfa | 32255 | |
e6cc62c6 VS |
32256 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
32257 | Applications will only run on Windows NT/2000/XP!" >&5 | |
32258 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
32259 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 32260 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 32261 | |
a72a4bfa VS |
32262 | fi |
32263 | ||
32264 | fi | |
10f2d63a VZ |
32265 | fi |
32266 | ||
10f2d63a | 32267 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 32268 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32269 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 32270 | _ACEOF |
10f2d63a VZ |
32271 | |
32272 | fi | |
32273 | ||
8284b0c5 | 32274 | |
10f2d63a | 32275 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 32276 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32277 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 32278 | _ACEOF |
10f2d63a VZ |
32279 | |
32280 | fi | |
32281 | ||
e6cc62c6 | 32282 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32283 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 32284 | _ACEOF |
10f2d63a | 32285 | |
8284b0c5 | 32286 | |
e6cc62c6 | 32287 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32288 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 32289 | _ACEOF |
10f2d63a | 32290 | |
8284b0c5 MB |
32291 | |
32292 | ||
10f2d63a | 32293 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 32294 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32295 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 32296 | _ACEOF |
10f2d63a VZ |
32297 | |
32298 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
32299 | fi | |
32300 | ||
3879ecda | 32301 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
1772d20c | 32302 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32303 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 32304 | _ACEOF |
10f2d63a | 32305 | |
1772d20c | 32306 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
10f2d63a VZ |
32307 | fi |
32308 | ||
32309 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 32310 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32311 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 32312 | _ACEOF |
10f2d63a VZ |
32313 | |
32314 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
32315 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
32316 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
32317 | fi | |
32318 | fi | |
32319 | ||
32320 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 32321 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32322 | #define wxUSE_HELP 1 |
e6cc62c6 | 32323 | _ACEOF |
10f2d63a VZ |
32324 | |
32325 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 32326 | |
77e13408 | 32327 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 32328 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 32329 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 32330 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 32331 | _ACEOF |
29fd3c0c | 32332 | |
3e44f09d | 32333 | fi |
3379ed37 | 32334 | fi |
031d8228 VS |
32335 | |
32336 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
32337 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 32338 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 32339 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 32340 | _ACEOF |
031d8228 VS |
32341 | |
32342 | else | |
e6cc62c6 VS |
32343 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
32344 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
32345 | wxUSE_WXHTML_HELP=no |
32346 | fi | |
32347 | fi | |
10f2d63a VZ |
32348 | fi |
32349 | ||
32350 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
32351 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
32352 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
32353 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 32354 | else |
e6cc62c6 | 32355 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32356 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 32357 | _ACEOF |
10f2d63a VZ |
32358 | |
32359 | fi | |
32360 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
32361 | fi | |
32362 | ||
e6cc62c6 VS |
32363 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
32364 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
32365 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
32366 | { (exit 1); exit 1; }; } | |
32367 | fi | |
32368 | ||
32369 | ||
32370 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
32371 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
32372 | -o "$wxUSE_OLE" = "yes" \ | |
32373 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
32374 | ||
32375 | for ac_header in ole2.h | |
32376 | do | |
32377 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32378 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32379 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32380 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32381 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32383 | fi | |
32384 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32385 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32386 | else | |
32387 | # Is the header compilable? | |
32388 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32389 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32390 | cat >conftest.$ac_ext <<_ACEOF | |
32391 | #line $LINENO "configure" | |
32392 | /* confdefs.h. */ | |
32393 | _ACEOF | |
32394 | cat confdefs.h >>conftest.$ac_ext | |
32395 | cat >>conftest.$ac_ext <<_ACEOF | |
32396 | /* end confdefs.h. */ | |
32397 | $ac_includes_default | |
32398 | #include <$ac_header> | |
32399 | _ACEOF | |
32400 | rm -f conftest.$ac_objext | |
32401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32402 | (eval $ac_compile) 2>&5 | |
32403 | ac_status=$? | |
32404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32405 | (exit $ac_status); } && | |
32406 | { ac_try='test -s conftest.$ac_objext' | |
32407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32408 | (eval $ac_try) 2>&5 | |
32409 | ac_status=$? | |
32410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32411 | (exit $ac_status); }; }; then | |
32412 | ac_header_compiler=yes | |
32413 | else | |
32414 | echo "$as_me: failed program was:" >&5 | |
32415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32416 | ||
32417 | ac_header_compiler=no | |
32418 | fi | |
32419 | rm -f conftest.$ac_objext conftest.$ac_ext | |
32420 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
32421 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32422 | ||
32423 | # Is the header present? | |
32424 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32425 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32426 | cat >conftest.$ac_ext <<_ACEOF | |
32427 | #line $LINENO "configure" | |
32428 | /* confdefs.h. */ | |
32429 | _ACEOF | |
32430 | cat confdefs.h >>conftest.$ac_ext | |
32431 | cat >>conftest.$ac_ext <<_ACEOF | |
32432 | /* end confdefs.h. */ | |
32433 | #include <$ac_header> | |
32434 | _ACEOF | |
32435 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32436 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32437 | ac_status=$? | |
32438 | grep -v '^ *+' conftest.er1 >conftest.err | |
32439 | rm -f conftest.er1 | |
32440 | cat conftest.err >&5 | |
32441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32442 | (exit $ac_status); } >/dev/null; then | |
32443 | if test -s conftest.err; then | |
32444 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32445 | else | |
32446 | ac_cpp_err= | |
32447 | fi | |
32448 | else | |
32449 | ac_cpp_err=yes | |
32450 | fi | |
32451 | if test -z "$ac_cpp_err"; then | |
32452 | ac_header_preproc=yes | |
32453 | else | |
32454 | echo "$as_me: failed program was:" >&5 | |
32455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32456 | ||
32457 | ac_header_preproc=no | |
32458 | fi | |
32459 | rm -f conftest.err conftest.$ac_ext | |
32460 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32461 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32462 | ||
32463 | # So? What about this header? | |
32464 | case $ac_header_compiler:$ac_header_preproc in | |
32465 | yes:no ) | |
32466 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
32467 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
32468 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32469 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32470 | ( | |
32471 | cat <<\_ASBOX | |
32472 | ## ------------------------------------ ## | |
32473 | ## Report this to bug-autoconf@gnu.org. ## | |
32474 | ## ------------------------------------ ## | |
32475 | _ASBOX | |
32476 | ) | | |
32477 | sed "s/^/$as_me: WARNING: /" >&2 | |
32478 | ;; | |
32479 | no:yes ) | |
32480 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
32481 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
32482 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
32483 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
32484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
32485 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32486 | ( | |
32487 | cat <<\_ASBOX | |
32488 | ## ------------------------------------ ## | |
32489 | ## Report this to bug-autoconf@gnu.org. ## | |
32490 | ## ------------------------------------ ## | |
32491 | _ASBOX | |
32492 | ) | | |
32493 | sed "s/^/$as_me: WARNING: /" >&2 | |
32494 | ;; | |
32495 | esac | |
32496 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32497 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32498 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32500 | else | |
32501 | eval "$as_ac_Header=$ac_header_preproc" | |
32502 | fi | |
32503 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32504 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32505 | ||
10f2d63a | 32506 | fi |
e6cc62c6 VS |
32507 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32508 | cat >>confdefs.h <<_ACEOF | |
32509 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32510 | _ACEOF | |
10f2d63a | 32511 | |
10f2d63a | 32512 | fi |
e6cc62c6 | 32513 | |
10f2d63a VZ |
32514 | done |
32515 | ||
8284b0c5 | 32516 | |
2b9bdf71 VZ |
32517 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
32518 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
32519 | |
32520 | ||
e6cc62c6 VS |
32521 | ac_ext=cc |
32522 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32523 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32524 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32525 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32526 | ||
32527 | ||
32528 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
32529 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
32530 | cat >conftest.$ac_ext <<_ACEOF | |
32531 | #line $LINENO "configure" | |
32532 | /* confdefs.h. */ | |
32533 | _ACEOF | |
32534 | cat confdefs.h >>conftest.$ac_ext | |
32535 | cat >>conftest.$ac_ext <<_ACEOF | |
32536 | /* end confdefs.h. */ | |
8284b0c5 MB |
32537 | #include <windows.h> |
32538 | #include <ole2.h> | |
e6cc62c6 VS |
32539 | int |
32540 | main () | |
32541 | { | |
8284b0c5 | 32542 | |
e6cc62c6 VS |
32543 | ; |
32544 | return 0; | |
32545 | } | |
32546 | _ACEOF | |
32547 | rm -f conftest.$ac_objext | |
32548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
32549 | (eval $ac_compile) 2>&5 | |
32550 | ac_status=$? | |
32551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32552 | (exit $ac_status); } && | |
32553 | { ac_try='test -s conftest.$ac_objext' | |
32554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32555 | (eval $ac_try) 2>&5 | |
32556 | ac_status=$? | |
32557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32558 | (exit $ac_status); }; }; then | |
32559 | echo "$as_me:$LINENO: result: no" >&5 | |
32560 | echo "${ECHO_T}no" >&6 | |
32561 | else | |
32562 | echo "$as_me: failed program was:" >&5 | |
32563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32564 | ||
32565 | echo "$as_me:$LINENO: result: yes" >&5 | |
32566 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
32567 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
32568 | fi | |
e6cc62c6 | 32569 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 32570 | ac_ext=c |
8284b0c5 | 32571 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
32572 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
32573 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32574 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 32575 | |
2b9bdf71 | 32576 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 32577 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
e6cc62c6 | 32578 | cat >>confdefs.h <<\_ACEOF |
4f11a343 | 32579 | #define wxUSE_OLE 1 |
e6cc62c6 | 32580 | _ACEOF |
4f11a343 | 32581 | |
8284b0c5 | 32582 | |
2b9bdf71 VZ |
32583 | fi |
32584 | ||
e6cc62c6 | 32585 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32586 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32587 | _ACEOF |
2b9bdf71 VZ |
32588 | |
32589 | else | |
e6cc62c6 VS |
32590 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
32591 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
32592 | |
32593 | wxUSE_CLIPBOARD=no | |
32594 | wxUSE_DRAG_AND_DROP=no | |
32595 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
32596 | wxUSE_OLE=no |
32597 | fi | |
32598 | ||
32599 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 32600 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32601 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32602 | _ACEOF |
3bce6687 JS |
32603 | |
32604 | ||
e6cc62c6 | 32605 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32606 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 32607 | _ACEOF |
3bce6687 JS |
32608 | |
32609 | fi | |
32610 | fi | |
32611 | ||
2b9bdf71 VZ |
32612 | if test "$wxUSE_IPC" = "yes"; then |
32613 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
32614 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
32615 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
32616 | fi |
32617 | ||
e6cc62c6 | 32618 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32619 | #define wxUSE_IPC 1 |
e6cc62c6 | 32620 | _ACEOF |
2b9bdf71 VZ |
32621 | |
32622 | fi | |
32623 | ||
32624 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 32625 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32626 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
32627 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32628 | wxUSE_CLIPBOARD=no |
32629 | fi | |
32630 | ||
32631 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 32632 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32633 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 32634 | _ACEOF |
2b9bdf71 | 32635 | |
8284b0c5 | 32636 | |
e6cc62c6 | 32637 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 32638 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32639 | _ACEOF |
673f4220 | 32640 | |
6c657b52 | 32641 | fi |
2b9bdf71 VZ |
32642 | fi |
32643 | ||
32644 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
32645 | if test "$wxUSE_GTK" = 1; then | |
32646 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
32647 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
32648 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
32649 | wxUSE_DRAG_AND_DROP=no |
32650 | fi | |
32651 | fi | |
32652 | ||
2b9bdf71 | 32653 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32654 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
32655 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
32656 | wxUSE_DRAG_AND_DROP=no |
32657 | fi | |
32658 | ||
f79bd02d | 32659 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
32660 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
32661 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
32662 | wxUSE_DRAG_AND_DROP=no |
32663 | fi | |
32664 | ||
6c657b52 | 32665 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32666 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
32667 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32668 | wxUSE_DRAG_AND_DROP=no |
32669 | fi | |
32670 | ||
10f2d63a | 32671 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 32672 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32673 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 32674 | _ACEOF |
10f2d63a VZ |
32675 | |
32676 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
32677 | fi | |
32678 | ||
32679 | fi | |
32680 | ||
32681 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 32682 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32683 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 32684 | _ACEOF |
10f2d63a VZ |
32685 | |
32686 | fi | |
32687 | ||
8284b0c5 | 32688 | |
1e6feb95 VZ |
32689 | USES_CONTROLS=0 |
32690 | if test "$wxUSE_CONTROLS" = "yes"; then | |
32691 | USES_CONTROLS=1 | |
32692 | fi | |
32693 | ||
10f2d63a | 32694 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 32695 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32696 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 32697 | _ACEOF |
10f2d63a | 32698 | |
1e6feb95 VZ |
32699 | USES_CONTROLS=1 |
32700 | fi | |
32701 | ||
32702 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 32703 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32704 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 32705 | _ACEOF |
1e6feb95 VZ |
32706 | |
32707 | USES_CONTROLS=1 | |
32708 | fi | |
32709 | ||
32710 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 32711 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32712 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 32713 | _ACEOF |
1e6feb95 VZ |
32714 | |
32715 | USES_CONTROLS=1 | |
32716 | fi | |
32717 | ||
32718 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 32719 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32720 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 32721 | _ACEOF |
1e6feb95 VZ |
32722 | |
32723 | USES_CONTROLS=1 | |
32724 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
32725 | fi |
32726 | ||
32727 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 32728 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32729 | #define wxUSE_CARET 1 |
e6cc62c6 | 32730 | _ACEOF |
10f2d63a | 32731 | |
1e6feb95 | 32732 | USES_CONTROLS=1 |
10f2d63a VZ |
32733 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
32734 | fi | |
32735 | ||
32736 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 32737 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32738 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 32739 | _ACEOF |
10f2d63a | 32740 | |
1e6feb95 | 32741 | USES_CONTROLS=1 |
10f2d63a VZ |
32742 | fi |
32743 | ||
32744 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 32745 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32746 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 32747 | _ACEOF |
10f2d63a | 32748 | |
1e6feb95 | 32749 | USES_CONTROLS=1 |
10f2d63a VZ |
32750 | fi |
32751 | ||
32752 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 32753 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32754 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 32755 | _ACEOF |
10f2d63a | 32756 | |
1e6feb95 | 32757 | USES_CONTROLS=1 |
10f2d63a VZ |
32758 | fi |
32759 | ||
32760 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 32761 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32762 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 32763 | _ACEOF |
10f2d63a | 32764 | |
1e6feb95 | 32765 | USES_CONTROLS=1 |
10f2d63a VZ |
32766 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
32767 | fi | |
32768 | ||
da494b40 | 32769 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 32770 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 32771 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 32772 | _ACEOF |
da494b40 MB |
32773 | |
32774 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
32775 | fi | |
32776 | ||
10f2d63a | 32777 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 32778 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32779 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 32780 | _ACEOF |
10f2d63a | 32781 | |
1e6feb95 | 32782 | USES_CONTROLS=1 |
10f2d63a VZ |
32783 | fi |
32784 | ||
d6a55c4b | 32785 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 32786 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 32787 | #define wxUSE_GRID 1 |
e6cc62c6 | 32788 | _ACEOF |
10f2d63a | 32789 | |
1e6feb95 | 32790 | USES_CONTROLS=1 |
d6a55c4b | 32791 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
32792 | fi |
32793 | ||
32794 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32795 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32796 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 32797 | _ACEOF |
10f2d63a VZ |
32798 | |
32799 | fi | |
32800 | ||
0e012a93 VZ |
32801 | if test "$wxUSE_LISTBOOK" = "yes"; then |
32802 | cat >>confdefs.h <<\_ACEOF | |
32803 | #define wxUSE_LISTBOOK 1 | |
32804 | _ACEOF | |
32805 | ||
32806 | USES_CONTROLS=1 | |
32807 | fi | |
32808 | ||
10f2d63a | 32809 | if test "$wxUSE_LISTBOX" = "yes"; then |
e6cc62c6 | 32810 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32811 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 32812 | _ACEOF |
10f2d63a | 32813 | |
1e6feb95 | 32814 | USES_CONTROLS=1 |
10f2d63a VZ |
32815 | fi |
32816 | ||
32817 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
32818 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 32819 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32820 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 32821 | _ACEOF |
10f2d63a | 32822 | |
1e6feb95 | 32823 | USES_CONTROLS=1 |
10f2d63a VZ |
32824 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
32825 | else | |
e6cc62c6 VS |
32826 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
32827 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
32828 | fi |
32829 | fi | |
32830 | ||
32831 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 32832 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32833 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 32834 | _ACEOF |
10f2d63a | 32835 | |
1e6feb95 | 32836 | USES_CONTROLS=1 |
10f2d63a VZ |
32837 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
32838 | fi | |
32839 | ||
24176f2c | 32840 | |
10f2d63a | 32841 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 32842 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32843 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 32844 | _ACEOF |
10f2d63a | 32845 | |
1e6feb95 | 32846 | USES_CONTROLS=1 |
10f2d63a VZ |
32847 | fi |
32848 | ||
32849 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 32850 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32851 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 32852 | _ACEOF |
10f2d63a | 32853 | |
1e6feb95 | 32854 | USES_CONTROLS=1 |
10f2d63a VZ |
32855 | fi |
32856 | ||
32857 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 32858 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32859 | #define wxUSE_SASH 1 |
e6cc62c6 | 32860 | _ACEOF |
10f2d63a VZ |
32861 | |
32862 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
32863 | fi | |
32864 | ||
32865 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 32866 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32867 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 32868 | _ACEOF |
10f2d63a | 32869 | |
1e6feb95 | 32870 | USES_CONTROLS=1 |
741a9306 | 32871 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
32872 | fi |
32873 | ||
32874 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 32875 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32876 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 32877 | _ACEOF |
10f2d63a | 32878 | |
1e6feb95 | 32879 | USES_CONTROLS=1 |
10f2d63a VZ |
32880 | fi |
32881 | ||
32882 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 32883 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32884 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 32885 | _ACEOF |
10f2d63a | 32886 | |
1e6feb95 | 32887 | USES_CONTROLS=1 |
10f2d63a VZ |
32888 | fi |
32889 | ||
56cfaa52 | 32890 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 32891 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 32892 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 32893 | _ACEOF |
56cfaa52 | 32894 | |
1e6feb95 | 32895 | USES_CONTROLS=1 |
56cfaa52 RR |
32896 | fi |
32897 | ||
10f2d63a | 32898 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 32899 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32900 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 32901 | _ACEOF |
10f2d63a VZ |
32902 | |
32903 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
32904 | fi | |
32905 | ||
32906 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 32907 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32908 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 32909 | _ACEOF |
10f2d63a | 32910 | |
1e6feb95 | 32911 | USES_CONTROLS=1 |
10f2d63a VZ |
32912 | fi |
32913 | ||
32914 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 32915 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32916 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 32917 | _ACEOF |
10f2d63a | 32918 | |
1e6feb95 VZ |
32919 | USES_CONTROLS=1 |
32920 | fi | |
32921 | ||
32922 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 32923 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32924 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 32925 | _ACEOF |
1e6feb95 VZ |
32926 | |
32927 | USES_CONTROLS=1 | |
10f2d63a VZ |
32928 | fi |
32929 | ||
32930 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 32931 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32932 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 32933 | _ACEOF |
10f2d63a | 32934 | |
89e6bf6d | 32935 | USES_CONTROLS=1 |
10f2d63a VZ |
32936 | fi |
32937 | ||
32938 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 32939 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32940 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 32941 | _ACEOF |
10f2d63a | 32942 | |
1e6feb95 | 32943 | USES_CONTROLS=1 |
698dcdb6 | 32944 | |
2286341c | 32945 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
32946 | fi |
32947 | ||
32948 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 32949 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32950 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 32951 | _ACEOF |
10f2d63a VZ |
32952 | |
32953 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
32954 | fi | |
32955 | ||
1e6feb95 | 32956 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 32957 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32958 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 32959 | _ACEOF |
1e6feb95 VZ |
32960 | |
32961 | USES_CONTROLS=1 | |
32962 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
32963 | fi | |
32964 | ||
1db8dc4a | 32965 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 32966 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
32967 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
32968 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
32969 | wxUSE_TOGGLEBTN=no |
32970 | fi | |
32971 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
32972 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
32973 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
32974 | wxUSE_TOGGLEBTN=no |
32975 | fi | |
32976 | ||
32977 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 32978 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 32979 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 32980 | _ACEOF |
1db8dc4a | 32981 | |
1e6feb95 | 32982 | USES_CONTROLS=1 |
a45d7ab7 | 32983 | fi |
1db8dc4a VZ |
32984 | fi |
32985 | ||
360d6699 | 32986 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 32987 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 32988 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 32989 | _ACEOF |
360d6699 VZ |
32990 | |
32991 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 32992 | USES_CONTROLS=1 |
360d6699 VZ |
32993 | fi |
32994 | ||
10f2d63a | 32995 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 32996 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32997 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 32998 | _ACEOF |
10f2d63a | 32999 | |
1e6feb95 | 33000 | USES_CONTROLS=1 |
698dcdb6 | 33001 | |
360d6699 VZ |
33002 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
33003 | wxUSE_TOOLBAR_NATIVE="yes" | |
33004 | fi | |
33005 | ||
1e6feb95 | 33006 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 33007 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 33008 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 33009 | _ACEOF |
360d6699 | 33010 | |
1e6feb95 VZ |
33011 | USES_CONTROLS=1 |
33012 | fi | |
33013 | ||
33014 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
33015 | fi |
33016 | ||
10f2d63a VZ |
33017 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
33018 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
33019 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
33020 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 33021 | else |
89e6bf6d | 33022 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
33023 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
33024 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 33025 | else |
e6cc62c6 | 33026 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33027 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 33028 | _ACEOF |
10f2d63a VZ |
33029 | |
33030 | fi | |
33031 | fi | |
33032 | fi | |
33033 | ||
33034 | if test "$wxUSE_TREECTRL" = "yes"; then | |
33035 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 33036 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33037 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 33038 | _ACEOF |
10f2d63a | 33039 | |
1e6feb95 | 33040 | USES_CONTROLS=1 |
10f2d63a VZ |
33041 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
33042 | else | |
e6cc62c6 VS |
33043 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
33044 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
33045 | fi |
33046 | fi | |
33047 | ||
9f41d601 | 33048 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 33049 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
33050 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
33051 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 33052 | else |
485cf710 | 33053 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
33054 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&5 |
33055 | echo "$as_me: WARNING: wxPopupWindow not yet supported under Motif... disabled" >&2;} | |
485cf710 | 33056 | else |
3c011993 | 33057 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
33058 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 |
33059 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 33060 | else |
e6cc62c6 | 33061 | cat >>confdefs.h <<\_ACEOF |
9f41d601 | 33062 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 33063 | _ACEOF |
9f41d601 | 33064 | |
8284b0c5 | 33065 | |
3c011993 VZ |
33066 | USES_CONTROLS=1 |
33067 | fi | |
485cf710 | 33068 | fi |
6abe4b65 | 33069 | fi |
9f41d601 RR |
33070 | fi |
33071 | ||
dd964dcc | 33072 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 33073 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
33074 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
33075 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 33076 | else |
e6cc62c6 | 33077 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 33078 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 33079 | _ACEOF |
dd964dcc | 33080 | |
3c011993 | 33081 | fi |
dd964dcc VZ |
33082 | fi |
33083 | ||
1e6feb95 | 33084 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 33085 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33086 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 33087 | _ACEOF |
10f2d63a | 33088 | |
10f2d63a VZ |
33089 | fi |
33090 | ||
8284b0c5 | 33091 | |
1e6feb95 | 33092 | |
24fd6d87 | 33093 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 33094 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 33095 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 33096 | _ACEOF |
24fd6d87 VZ |
33097 | |
33098 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
33099 | fi | |
33100 | ||
7bb2947d | 33101 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
e6cc62c6 | 33102 | cat >>confdefs.h <<\_ACEOF |
7bb2947d | 33103 | #define wxUSE_ACCESSIBILITY 1 |
e6cc62c6 | 33104 | _ACEOF |
7bb2947d MB |
33105 | |
33106 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
33107 | fi | |
33108 | ||
1e6feb95 | 33109 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 33110 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33111 | #define wxUSE_MENUS 1 |
e6cc62c6 | 33112 | _ACEOF |
10f2d63a | 33113 | |
1e6feb95 | 33114 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
33115 | fi |
33116 | ||
1e6feb95 | 33117 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 33118 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33119 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 33120 | _ACEOF |
10f2d63a | 33121 | |
10f2d63a VZ |
33122 | fi |
33123 | ||
1e6feb95 | 33124 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 33125 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33126 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 33127 | _ACEOF |
10f2d63a | 33128 | |
10f2d63a VZ |
33129 | fi |
33130 | ||
3e44f09d | 33131 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 33132 | cat >>confdefs.h <<\_ACEOF |
3e44f09d | 33133 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 33134 | _ACEOF |
3e44f09d | 33135 | |
131f235d VS |
33136 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ |
33137 | "$TOOLKIT" = "MOTIF"; then | |
321d2b14 VZ |
33138 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" |
33139 | fi | |
33140 | ||
3e44f09d VZ |
33141 | fi |
33142 | ||
10f2d63a | 33143 | if test "$wxUSE_MINIFRAME" = "yes"; then |
e6cc62c6 | 33144 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33145 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 33146 | _ACEOF |
10f2d63a VZ |
33147 | |
33148 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
33149 | fi | |
33150 | ||
4d264332 | 33151 | USE_HTML=0 |
10f2d63a | 33152 | if test "$wxUSE_HTML" = "yes"; then |
e6cc62c6 | 33153 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33154 | #define wxUSE_HTML 1 |
e6cc62c6 | 33155 | _ACEOF |
10f2d63a | 33156 | |
4d264332 | 33157 | USE_HTML=1 |
c74dc163 | 33158 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" |
10f2d63a VZ |
33159 | fi |
33160 | ||
33161 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
e6cc62c6 | 33162 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 33163 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 33164 | _ACEOF |
703e0a69 | 33165 | |
698dcdb6 VZ |
33166 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
33167 | fi | |
33168 | ||
edae8572 | 33169 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 33170 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 33171 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 33172 | _ACEOF |
edae8572 VZ |
33173 | |
33174 | fi | |
33175 | ||
698dcdb6 | 33176 | if test "$wxUSE_IMAGE" = "yes" ; then |
e6cc62c6 | 33177 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33178 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 33179 | _ACEOF |
698dcdb6 VZ |
33180 | |
33181 | fi | |
33182 | ||
33183 | if test "$wxUSE_GIF" = "yes" ; then | |
e6cc62c6 | 33184 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33185 | #define wxUSE_GIF 1 |
e6cc62c6 | 33186 | _ACEOF |
698dcdb6 VZ |
33187 | |
33188 | fi | |
33189 | ||
33190 | if test "$wxUSE_PCX" = "yes" ; then | |
e6cc62c6 | 33191 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33192 | #define wxUSE_PCX 1 |
e6cc62c6 | 33193 | _ACEOF |
698dcdb6 VZ |
33194 | |
33195 | fi | |
33196 | ||
4b6b4dfc | 33197 | if test "$wxUSE_IFF" = "yes" ; then |
e6cc62c6 | 33198 | cat >>confdefs.h <<\_ACEOF |
4b6b4dfc | 33199 | #define wxUSE_IFF 1 |
e6cc62c6 | 33200 | _ACEOF |
4b6b4dfc RR |
33201 | |
33202 | fi | |
33203 | ||
698dcdb6 | 33204 | if test "$wxUSE_PNM" = "yes" ; then |
e6cc62c6 | 33205 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33206 | #define wxUSE_PNM 1 |
e6cc62c6 | 33207 | _ACEOF |
698dcdb6 VZ |
33208 | |
33209 | fi | |
33210 | ||
33211 | if test "$wxUSE_XPM" = "yes" ; then | |
e6cc62c6 | 33212 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33213 | #define wxUSE_XPM 1 |
e6cc62c6 | 33214 | _ACEOF |
698dcdb6 VZ |
33215 | |
33216 | fi | |
33217 | ||
658974ae | 33218 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
e6cc62c6 | 33219 | cat >>confdefs.h <<\_ACEOF |
658974ae | 33220 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 33221 | _ACEOF |
658974ae VS |
33222 | |
33223 | fi | |
33224 | ||
a72a4bfa VS |
33225 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
33226 | LIBS=" -lunicows $LIBS" | |
33227 | fi | |
33228 | ||
8284b0c5 | 33229 | |
1e6feb95 | 33230 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 33231 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33232 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 33233 | _ACEOF |
1e6feb95 VZ |
33234 | |
33235 | fi | |
33236 | ||
33237 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 33238 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33239 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 33240 | _ACEOF |
1e6feb95 VZ |
33241 | |
33242 | fi | |
33243 | ||
33244 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 33245 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33246 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 33247 | _ACEOF |
1e6feb95 VZ |
33248 | |
33249 | fi | |
33250 | ||
8db37e06 | 33251 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 33252 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 33253 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 33254 | _ACEOF |
8db37e06 VZ |
33255 | |
33256 | fi | |
33257 | ||
1e6feb95 | 33258 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 33259 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33260 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 33261 | _ACEOF |
1e6feb95 VZ |
33262 | |
33263 | fi | |
33264 | ||
33265 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 33266 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
33267 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
33268 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 33269 | else |
e6cc62c6 | 33270 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33271 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 33272 | _ACEOF |
1e6feb95 | 33273 | |
1e6feb95 VZ |
33274 | fi |
33275 | fi | |
33276 | ||
33277 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 33278 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33279 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 33280 | _ACEOF |
1e6feb95 VZ |
33281 | |
33282 | fi | |
33283 | ||
33284 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 33285 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33286 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 33287 | _ACEOF |
1e6feb95 VZ |
33288 | |
33289 | fi | |
33290 | ||
33291 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
33292 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33293 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
33294 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 33295 | else |
e6cc62c6 | 33296 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33297 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 33298 | _ACEOF |
1e6feb95 VZ |
33299 | |
33300 | fi | |
33301 | fi | |
33302 | ||
cbca9943 | 33303 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 33304 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 33305 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 33306 | _ACEOF |
cbca9943 VZ |
33307 | |
33308 | fi | |
33309 | ||
1e6feb95 VZ |
33310 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
33311 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33312 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
33313 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 33314 | else |
e6cc62c6 | 33315 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33316 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 33317 | _ACEOF |
1e6feb95 | 33318 | |
7b4a847f RR |
33319 | fi |
33320 | fi | |
579d8138 | 33321 | |
8284b0c5 | 33322 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 33323 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 33324 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 33325 | _ACEOF |
8284b0c5 MB |
33326 | |
33327 | fi | |
33328 | ||
33329 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 33330 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 33331 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 33332 | _ACEOF |
8284b0c5 MB |
33333 | |
33334 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
33335 | fi | |
33336 | ||
33337 | ||
33338 | if test "$cross_compiling" = "yes"; then | |
33339 | OSINFO="\"$host\"" | |
33340 | else | |
33341 | OSINFO=`uname -s -r -m` | |
33342 | OSINFO="\"$OSINFO\"" | |
33343 | fi | |
33344 | ||
e6cc62c6 | 33345 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33346 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 33347 | _ACEOF |
8284b0c5 MB |
33348 | |
33349 | ||
33350 | ||
33351 | if test "x$prefix" != "xNONE"; then | |
33352 | wxPREFIX=$prefix | |
33353 | else | |
33354 | wxPREFIX=$ac_default_prefix | |
33355 | fi | |
33356 | ||
e6cc62c6 | 33357 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33358 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 33359 | _ACEOF |
8284b0c5 MB |
33360 | |
33361 | ||
e6cc62c6 | 33362 | top_builddir_wxconfig=`pwd` |
52c71b80 | 33363 | |
8284b0c5 MB |
33364 | |
33365 | ||
edd891e2 VS |
33366 | CORE_BASE_LIBS="net base" |
33367 | CORE_GUI_LIBS="adv core" | |
33368 | ||
33369 | if test "$wxUSE_XML" = "yes" ; then | |
33370 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
33371 | fi | |
45293562 VS |
33372 | if test "$wxUSE_ODBC" != "no" ; then |
33373 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
33374 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
edd891e2 VS |
33375 | fi |
33376 | if test "$wxUSE_HTML" = "yes" ; then | |
33377 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
33378 | fi | |
33379 | ||
33380 | ||
33381 | ||
33382 | ||
33383 | ||
33384 | ||
33385 | ||
8284b0c5 MB |
33386 | |
33387 | if test "$wxUSE_MAC" = 1 ; then | |
33388 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
33389 | fi | |
ac0c4cc3 DE |
33390 | if test "$wxUSE_COCOA" = 1 ; then |
33391 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
33392 | fi | |
8284b0c5 MB |
33393 | |
33394 | ||
2b5f62a0 VZ |
33395 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
33396 | ||
33397 | have_cos=0 | |
33398 | have_floor=0 | |
e6cc62c6 | 33399 | |
2b5f62a0 VZ |
33400 | for ac_func in cos |
33401 | do | |
e6cc62c6 VS |
33402 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33403 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33404 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33405 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33407 | else | |
33408 | cat >conftest.$ac_ext <<_ACEOF | |
33409 | #line $LINENO "configure" | |
33410 | /* confdefs.h. */ | |
33411 | _ACEOF | |
33412 | cat confdefs.h >>conftest.$ac_ext | |
33413 | cat >>conftest.$ac_ext <<_ACEOF | |
33414 | /* end confdefs.h. */ | |
2b5f62a0 | 33415 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33416 | which can conflict with char $ac_func (); below. |
33417 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33418 | <limits.h> exists even on freestanding compilers. */ | |
33419 | #ifdef __STDC__ | |
33420 | # include <limits.h> | |
33421 | #else | |
33422 | # include <assert.h> | |
33423 | #endif | |
2b5f62a0 | 33424 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33425 | #ifdef __cplusplus |
33426 | extern "C" | |
33427 | { | |
33428 | #endif | |
2b5f62a0 | 33429 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33430 | builtin and then its argument prototype would still apply. */ |
33431 | char $ac_func (); | |
2b5f62a0 VZ |
33432 | /* The GNU C library defines this for functions which it implements |
33433 | to always fail with ENOSYS. Some functions are actually named | |
33434 | something starting with __ and the normal name is an alias. */ | |
33435 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33436 | choke me | |
33437 | #else | |
e6cc62c6 VS |
33438 | char (*f) () = $ac_func; |
33439 | #endif | |
33440 | #ifdef __cplusplus | |
33441 | } | |
2b5f62a0 VZ |
33442 | #endif |
33443 | ||
e6cc62c6 VS |
33444 | int |
33445 | main () | |
33446 | { | |
33447 | return f != $ac_func; | |
33448 | ; | |
33449 | return 0; | |
33450 | } | |
33451 | _ACEOF | |
33452 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33453 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33454 | (eval $ac_link) 2>&5 | |
33455 | ac_status=$? | |
33456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33457 | (exit $ac_status); } && | |
33458 | { ac_try='test -s conftest$ac_exeext' | |
33459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33460 | (eval $ac_try) 2>&5 | |
33461 | ac_status=$? | |
33462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33463 | (exit $ac_status); }; }; then | |
33464 | eval "$as_ac_var=yes" | |
33465 | else | |
33466 | echo "$as_me: failed program was:" >&5 | |
33467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33468 | ||
33469 | eval "$as_ac_var=no" | |
33470 | fi | |
33471 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33472 | fi | |
33473 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33474 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33475 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33476 | cat >>confdefs.h <<_ACEOF | |
33477 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33478 | _ACEOF | |
2b5f62a0 | 33479 | have_cos=1 |
2b5f62a0 VZ |
33480 | fi |
33481 | done | |
33482 | ||
e6cc62c6 | 33483 | |
2b5f62a0 VZ |
33484 | for ac_func in floor |
33485 | do | |
e6cc62c6 VS |
33486 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33487 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33488 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33489 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33491 | else | |
33492 | cat >conftest.$ac_ext <<_ACEOF | |
33493 | #line $LINENO "configure" | |
33494 | /* confdefs.h. */ | |
33495 | _ACEOF | |
33496 | cat confdefs.h >>conftest.$ac_ext | |
33497 | cat >>conftest.$ac_ext <<_ACEOF | |
33498 | /* end confdefs.h. */ | |
2b5f62a0 | 33499 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33500 | which can conflict with char $ac_func (); below. |
33501 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33502 | <limits.h> exists even on freestanding compilers. */ | |
33503 | #ifdef __STDC__ | |
33504 | # include <limits.h> | |
33505 | #else | |
33506 | # include <assert.h> | |
33507 | #endif | |
2b5f62a0 | 33508 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33509 | #ifdef __cplusplus |
33510 | extern "C" | |
33511 | { | |
33512 | #endif | |
2b5f62a0 | 33513 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33514 | builtin and then its argument prototype would still apply. */ |
33515 | char $ac_func (); | |
2b5f62a0 VZ |
33516 | /* The GNU C library defines this for functions which it implements |
33517 | to always fail with ENOSYS. Some functions are actually named | |
33518 | something starting with __ and the normal name is an alias. */ | |
33519 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33520 | choke me | |
33521 | #else | |
e6cc62c6 VS |
33522 | char (*f) () = $ac_func; |
33523 | #endif | |
33524 | #ifdef __cplusplus | |
33525 | } | |
2b5f62a0 VZ |
33526 | #endif |
33527 | ||
e6cc62c6 VS |
33528 | int |
33529 | main () | |
33530 | { | |
33531 | return f != $ac_func; | |
33532 | ; | |
33533 | return 0; | |
33534 | } | |
33535 | _ACEOF | |
33536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33538 | (eval $ac_link) 2>&5 | |
33539 | ac_status=$? | |
33540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33541 | (exit $ac_status); } && | |
33542 | { ac_try='test -s conftest$ac_exeext' | |
33543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33544 | (eval $ac_try) 2>&5 | |
33545 | ac_status=$? | |
33546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33547 | (exit $ac_status); }; }; then | |
33548 | eval "$as_ac_var=yes" | |
33549 | else | |
33550 | echo "$as_me: failed program was:" >&5 | |
33551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33552 | ||
33553 | eval "$as_ac_var=no" | |
33554 | fi | |
33555 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33556 | fi | |
33557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33558 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33559 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33560 | cat >>confdefs.h <<_ACEOF | |
33561 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33562 | _ACEOF | |
2b5f62a0 | 33563 | have_floor=1 |
2b5f62a0 VZ |
33564 | fi |
33565 | done | |
33566 | ||
e6cc62c6 VS |
33567 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
33568 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33569 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
33570 | echo "$as_me:$LINENO: result: yes" >&5 |
33571 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33572 | else |
e6cc62c6 VS |
33573 | echo "$as_me:$LINENO: result: no" >&5 |
33574 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33575 | LIBS="$LIBS -lm" |
33576 | # use different functions to avoid configure caching | |
33577 | have_sin=0 | |
33578 | have_ceil=0 | |
e6cc62c6 VS |
33579 | |
33580 | for ac_func in sin | |
2b5f62a0 | 33581 | do |
e6cc62c6 VS |
33582 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33583 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33584 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33585 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33587 | else | |
33588 | cat >conftest.$ac_ext <<_ACEOF | |
33589 | #line $LINENO "configure" | |
33590 | /* confdefs.h. */ | |
33591 | _ACEOF | |
33592 | cat confdefs.h >>conftest.$ac_ext | |
33593 | cat >>conftest.$ac_ext <<_ACEOF | |
33594 | /* end confdefs.h. */ | |
2b5f62a0 | 33595 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33596 | which can conflict with char $ac_func (); below. |
33597 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33598 | <limits.h> exists even on freestanding compilers. */ | |
33599 | #ifdef __STDC__ | |
33600 | # include <limits.h> | |
33601 | #else | |
33602 | # include <assert.h> | |
33603 | #endif | |
2b5f62a0 | 33604 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33605 | #ifdef __cplusplus |
33606 | extern "C" | |
33607 | { | |
33608 | #endif | |
2b5f62a0 | 33609 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33610 | builtin and then its argument prototype would still apply. */ |
33611 | char $ac_func (); | |
2b5f62a0 VZ |
33612 | /* The GNU C library defines this for functions which it implements |
33613 | to always fail with ENOSYS. Some functions are actually named | |
33614 | something starting with __ and the normal name is an alias. */ | |
33615 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33616 | choke me | |
33617 | #else | |
e6cc62c6 VS |
33618 | char (*f) () = $ac_func; |
33619 | #endif | |
33620 | #ifdef __cplusplus | |
33621 | } | |
2b5f62a0 VZ |
33622 | #endif |
33623 | ||
e6cc62c6 VS |
33624 | int |
33625 | main () | |
33626 | { | |
33627 | return f != $ac_func; | |
33628 | ; | |
33629 | return 0; | |
33630 | } | |
33631 | _ACEOF | |
33632 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33633 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33634 | (eval $ac_link) 2>&5 | |
33635 | ac_status=$? | |
33636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33637 | (exit $ac_status); } && | |
33638 | { ac_try='test -s conftest$ac_exeext' | |
33639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33640 | (eval $ac_try) 2>&5 | |
33641 | ac_status=$? | |
33642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33643 | (exit $ac_status); }; }; then | |
33644 | eval "$as_ac_var=yes" | |
33645 | else | |
33646 | echo "$as_me: failed program was:" >&5 | |
33647 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33648 | ||
33649 | eval "$as_ac_var=no" | |
33650 | fi | |
33651 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33652 | fi | |
33653 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33654 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33655 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33656 | cat >>confdefs.h <<_ACEOF | |
33657 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33658 | _ACEOF | |
2b5f62a0 | 33659 | have_sin=1 |
2b5f62a0 VZ |
33660 | fi |
33661 | done | |
33662 | ||
e6cc62c6 VS |
33663 | |
33664 | for ac_func in ceil | |
2b5f62a0 | 33665 | do |
e6cc62c6 VS |
33666 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33667 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33668 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33669 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33670 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33671 | else | |
33672 | cat >conftest.$ac_ext <<_ACEOF | |
33673 | #line $LINENO "configure" | |
33674 | /* confdefs.h. */ | |
33675 | _ACEOF | |
33676 | cat confdefs.h >>conftest.$ac_ext | |
33677 | cat >>conftest.$ac_ext <<_ACEOF | |
33678 | /* end confdefs.h. */ | |
2b5f62a0 | 33679 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33680 | which can conflict with char $ac_func (); below. |
33681 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33682 | <limits.h> exists even on freestanding compilers. */ | |
33683 | #ifdef __STDC__ | |
33684 | # include <limits.h> | |
33685 | #else | |
33686 | # include <assert.h> | |
33687 | #endif | |
2b5f62a0 | 33688 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33689 | #ifdef __cplusplus |
33690 | extern "C" | |
33691 | { | |
33692 | #endif | |
2b5f62a0 | 33693 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33694 | builtin and then its argument prototype would still apply. */ |
33695 | char $ac_func (); | |
2b5f62a0 VZ |
33696 | /* The GNU C library defines this for functions which it implements |
33697 | to always fail with ENOSYS. Some functions are actually named | |
33698 | something starting with __ and the normal name is an alias. */ | |
33699 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33700 | choke me | |
33701 | #else | |
e6cc62c6 VS |
33702 | char (*f) () = $ac_func; |
33703 | #endif | |
33704 | #ifdef __cplusplus | |
33705 | } | |
2b5f62a0 VZ |
33706 | #endif |
33707 | ||
e6cc62c6 VS |
33708 | int |
33709 | main () | |
33710 | { | |
33711 | return f != $ac_func; | |
33712 | ; | |
33713 | return 0; | |
33714 | } | |
33715 | _ACEOF | |
33716 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33717 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
33718 | (eval $ac_link) 2>&5 | |
33719 | ac_status=$? | |
33720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33721 | (exit $ac_status); } && | |
33722 | { ac_try='test -s conftest$ac_exeext' | |
33723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
33724 | (eval $ac_try) 2>&5 | |
33725 | ac_status=$? | |
33726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33727 | (exit $ac_status); }; }; then | |
33728 | eval "$as_ac_var=yes" | |
33729 | else | |
33730 | echo "$as_me: failed program was:" >&5 | |
33731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33732 | ||
33733 | eval "$as_ac_var=no" | |
33734 | fi | |
33735 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
33736 | fi | |
33737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33738 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33739 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33740 | cat >>confdefs.h <<_ACEOF | |
33741 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33742 | _ACEOF | |
2b5f62a0 | 33743 | have_ceil=1 |
2b5f62a0 VZ |
33744 | fi |
33745 | done | |
33746 | ||
e6cc62c6 VS |
33747 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
33748 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33749 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
33750 | echo "$as_me:$LINENO: result: yes" >&5 |
33751 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33752 | else |
e6cc62c6 VS |
33753 | echo "$as_me:$LINENO: result: no" >&5 |
33754 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33755 | # not sure we should warn the user, crash, etc. |
33756 | fi | |
33757 | fi | |
8284b0c5 MB |
33758 | |
33759 | if test "$wxUSE_GUI" = "yes"; then | |
33760 | ||
e6cc62c6 | 33761 | |
8284b0c5 MB |
33762 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
33763 | drawing dynamic erase event exec font image \ | |
1dd02ac0 | 33764 | minimal propsize rotate shaped widgets render" |
b625909c VS |
33765 | |
33766 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
33767 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
33768 | fi | |
8284b0c5 MB |
33769 | else |
33770 | SAMPLES_SUBDIRS="console" | |
33771 | fi | |
33772 | ||
33773 | ||
e6cc62c6 | 33774 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
8284b0c5 MB |
33775 | -I\${top_srcdir}/include \ |
33776 | $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \ | |
33777 | $TOOLKIT_INCLUDE" | |
33778 | ||
fddeb06b VS |
33779 | if test "$GXX" = yes ; then |
33780 | CXXWARNINGS="-Wall" | |
33781 | fi | |
33782 | ||
33783 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
33784 | ||
95318f7d | 33785 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
33786 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
33787 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
33788 | |
33789 | ||
fddeb06b | 33790 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 | 33791 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
672abd7a | 33792 | EXTRALIBS_XML="$EXPAT_LINK" |
bb41dcbe | 33793 | EXTRALIBS_ODBC="$ODBC_LINK" |
c74dc163 VS |
33794 | if test "$wxUSE_GUI" = "yes"; then |
33795 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
33796 | fi | |
34b08d2c VS |
33797 | if test "$wxUSE_OPENGL" = "yes"; then |
33798 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
33799 | fi | |
fddeb06b VS |
33800 | |
33801 | LDFLAGS="$LDFLAGS $PROFILE" | |
33802 | ||
8284b0c5 MB |
33803 | if test "$wxUSE_GTK" = 1; then |
33804 | WXCONFIG_INCLUDE= | |
33805 | else | |
33806 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
33807 | fi | |
33808 | ||
67c13b6c VS |
33809 | WXCONFIG_EXTRALIBS="$LIBS" |
33810 | ||
33811 | if test "$wxUSE_REGEX" = "builtin" ; then | |
33812 | wxconfig_3rdparty="$wxconfig_3rdparty regex" | |
33813 | fi | |
33814 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
33815 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
33816 | fi | |
33817 | if test "$wxUSE_ODBC" = "builtin" ; then | |
33818 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
33819 | fi | |
33820 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
33821 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
33822 | fi | |
33823 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
33824 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
33825 | fi | |
33826 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
33827 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
33828 | fi | |
33829 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
33830 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
33831 | fi | |
bb41dcbe VS |
33832 | if test "$wxUSE_ODBC" = "builtin" ; then |
33833 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
33834 | fi | |
67c13b6c VS |
33835 | |
33836 | for i in $wxconfig_3rdparty ; do | |
33837 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
33838 | done | |
33839 | ||
33840 | ||
fe0895cf VS |
33841 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
33842 | WXUNIV=1 | |
33843 | else | |
33844 | WXUNIV=0 | |
8284b0c5 MB |
33845 | fi |
33846 | ||
8284b0c5 MB |
33847 | |
33848 | ||
33849 | ||
33850 | ||
33851 | ||
33852 | ||
33853 | ||
672abd7a | 33854 | |
9747f85d VS |
33855 | if test $wxUSE_MONOLITHIC = "yes" ; then |
33856 | MONOLITHIC=1 | |
33857 | else | |
33858 | MONOLITHIC=0 | |
33859 | fi | |
8284b0c5 | 33860 | |
bb41dcbe VS |
33861 | if test $wxUSE_ODBC != "no" ; then |
33862 | USE_ODBC=1 | |
33863 | else | |
33864 | USE_ODBC=0 | |
33865 | fi | |
33866 | ||
029b47ad VS |
33867 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
33868 | OFFICIAL_BUILD=1 | |
33869 | else | |
33870 | OFFICIAL_BUILD=0 | |
33871 | fi | |
33872 | ||
8ee2dd05 VS |
33873 | |
33874 | ||
33875 | ||
8284b0c5 MB |
33876 | |
33877 | ||
33878 | ||
33879 | ||
33880 | ||
33881 | ||
c74dc163 | 33882 | |
34b08d2c | 33883 | |
672abd7a | 33884 | |
cf615ebb | 33885 | |
6c67131a VS |
33886 | |
33887 | ||
bb41dcbe | 33888 | |
fe0895cf | 33889 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr [A-Z] [a-z]` |
8284b0c5 MB |
33890 | |
33891 | ||
33892 | ||
33893 | ||
33894 | ||
ea66c762 | 33895 | |
0f1bc9c2 | 33896 | |
fe0895cf | 33897 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
33898 | |
33899 | if test -n "$ac_tool_prefix"; then | |
33900 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
33901 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
33902 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33904 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
33905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 33906 | else |
fe0895cf VS |
33907 | if test -n "$RANLIB"; then |
33908 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 33909 | else |
e6cc62c6 VS |
33910 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
33911 | for as_dir in $PATH | |
33912 | do | |
33913 | IFS=$as_save_IFS | |
33914 | test -z "$as_dir" && as_dir=. | |
33915 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33916 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33917 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
33918 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33919 | break 2 | |
33920 | fi | |
33921 | done | |
33922 | done | |
33923 | ||
10f2d63a | 33924 | fi |
10f2d63a | 33925 | fi |
e6cc62c6 | 33926 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 33927 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
33928 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
33929 | echo "${ECHO_T}$RANLIB" >&6 | |
33930 | else | |
33931 | echo "$as_me:$LINENO: result: no" >&5 | |
33932 | echo "${ECHO_T}no" >&6 | |
33933 | fi | |
33934 | ||
33935 | fi | |
33936 | if test -z "$ac_cv_prog_RANLIB"; then | |
33937 | ac_ct_RANLIB=$RANLIB | |
33938 | # Extract the first word of "ranlib", so it can be a program name with args. | |
33939 | set dummy ranlib; ac_word=$2 | |
33940 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
33941 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
33942 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
33943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33944 | else | |
33945 | if test -n "$ac_ct_RANLIB"; then | |
33946 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
33947 | else | |
33948 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33949 | for as_dir in $PATH | |
33950 | do | |
33951 | IFS=$as_save_IFS | |
33952 | test -z "$as_dir" && as_dir=. | |
33953 | for ac_exec_ext in '' $ac_executable_extensions; do | |
33954 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
33955 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
33956 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
33957 | break 2 | |
33958 | fi | |
33959 | done | |
33960 | done | |
33961 | ||
33962 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
33963 | fi | |
33964 | fi | |
33965 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
33966 | if test -n "$ac_ct_RANLIB"; then | |
33967 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
33968 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 33969 | else |
e6cc62c6 VS |
33970 | echo "$as_me:$LINENO: result: no" >&5 |
33971 | echo "${ECHO_T}no" >&6 | |
33972 | fi | |
33973 | ||
33974 | RANLIB=$ac_ct_RANLIB | |
33975 | else | |
33976 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 33977 | fi |
665bbe97 | 33978 | |
fe0895cf VS |
33979 | # Find a good install program. We prefer a C program (faster), |
33980 | # so one script is as good as another. But avoid the broken or | |
33981 | # incompatible versions: | |
33982 | # SysV /etc/install, /usr/sbin/install | |
33983 | # SunOS /usr/etc/install | |
33984 | # IRIX /sbin/install | |
33985 | # AIX /bin/install | |
e6cc62c6 | 33986 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
33987 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
33988 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
33989 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
33990 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
33991 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
33992 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 33993 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
33994 | if test "${ac_cv_path_install+set}" = set; then |
33995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33996 | else | |
33997 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
33998 | for as_dir in $PATH | |
33999 | do | |
34000 | IFS=$as_save_IFS | |
34001 | test -z "$as_dir" && as_dir=. | |
34002 | # Account for people who put trailing slashes in PATH elements. | |
34003 | case $as_dir/ in | |
34004 | ./ | .// | /cC/* | \ | |
34005 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
34006 | /usr/ucb/* ) ;; | |
34007 | *) | |
34008 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
34009 | # Don't use installbsd from OSF since it installs stuff as root | |
34010 | # by default. | |
34011 | for ac_prog in ginstall scoinst install; do | |
34012 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34013 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
34014 | if test $ac_prog = install && | |
34015 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
34016 | # AIX install. It has an incompatible calling convention. | |
34017 | : | |
34018 | elif test $ac_prog = install && | |
34019 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
34020 | # program-specific install script used by HP pwplus--don't use. | |
34021 | : | |
34022 | else | |
34023 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
34024 | break 3 | |
34025 | fi | |
34026 | fi | |
fe0895cf | 34027 | done |
e6cc62c6 VS |
34028 | done |
34029 | ;; | |
34030 | esac | |
34031 | done | |
34032 | ||
fe0895cf VS |
34033 | |
34034 | fi | |
34035 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 34036 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
34037 | else |
34038 | # As a last resort, use the slow shell script. We don't cache a | |
34039 | # path for INSTALL within a source directory, because that will | |
34040 | # break other packages using the cache if that directory is | |
34041 | # removed, or if the path is relative. | |
e6cc62c6 | 34042 | INSTALL=$ac_install_sh |
fe0895cf VS |
34043 | fi |
34044 | fi | |
e6cc62c6 VS |
34045 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
34046 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
34047 | |
34048 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
34049 | # It thinks the first close brace ends the variable substitution. | |
34050 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
34051 | ||
e6cc62c6 | 34052 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
34053 | |
34054 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
34055 | ||
e6cc62c6 VS |
34056 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
34057 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
34058 | LN_S=$as_ln_s | |
34059 | if test "$LN_S" = "ln -s"; then | |
34060 | echo "$as_me:$LINENO: result: yes" >&5 | |
34061 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 34062 | else |
e6cc62c6 VS |
34063 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
34064 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
34065 | fi |
34066 | ||
34067 | ||
e6cc62c6 VS |
34068 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
34069 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
34070 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
34071 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
34072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 34073 | else |
e6cc62c6 | 34074 | cat >conftest.make <<\_ACEOF |
fe0895cf | 34075 | all: |
e6cc62c6 VS |
34076 | @echo 'ac_maketemp="$(MAKE)"' |
34077 | _ACEOF | |
fe0895cf | 34078 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 34079 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
34080 | if test -n "$ac_maketemp"; then |
34081 | eval ac_cv_prog_make_${ac_make}_set=yes | |
34082 | else | |
34083 | eval ac_cv_prog_make_${ac_make}_set=no | |
34084 | fi | |
e6cc62c6 | 34085 | rm -f conftest.make |
fe0895cf VS |
34086 | fi |
34087 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
34088 | echo "$as_me:$LINENO: result: yes" >&5 |
34089 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
34090 | SET_MAKE= |
34091 | else | |
e6cc62c6 VS |
34092 | echo "$as_me:$LINENO: result: no" >&5 |
34093 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34094 | SET_MAKE="MAKE=${MAKE-make}" |
34095 | fi | |
34096 | ||
e6cc62c6 VS |
34097 | |
34098 | ||
fe0895cf VS |
34099 | if test "$build" != "$host" ; then |
34100 | AR=$host_alias-ar | |
34101 | STRIP=$host_alias-strip | |
34102 | else | |
34103 | # Extract the first word of "ar", so it can be a program name with args. | |
34104 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
34105 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34106 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34107 | if test "${ac_cv_prog_AR+set}" = set; then | |
34108 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34109 | else |
34110 | if test -n "$AR"; then | |
34111 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
34112 | else | |
e6cc62c6 VS |
34113 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34114 | for as_dir in $PATH | |
34115 | do | |
34116 | IFS=$as_save_IFS | |
34117 | test -z "$as_dir" && as_dir=. | |
34118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34119 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34120 | ac_cv_prog_AR="ar" | |
34121 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34122 | break 2 | |
34123 | fi | |
34124 | done | |
34125 | done | |
34126 | ||
fe0895cf VS |
34127 | test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar" |
34128 | fi | |
34129 | fi | |
e6cc62c6 | 34130 | AR=$ac_cv_prog_AR |
fe0895cf | 34131 | if test -n "$AR"; then |
e6cc62c6 VS |
34132 | echo "$as_me:$LINENO: result: $AR" >&5 |
34133 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 34134 | else |
e6cc62c6 VS |
34135 | echo "$as_me:$LINENO: result: no" >&5 |
34136 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34137 | fi |
34138 | ||
34139 | # Extract the first word of "strip", so it can be a program name with args. | |
34140 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
34141 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34142 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34143 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
34144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34145 | else |
34146 | if test -n "$STRIP"; then | |
34147 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
34148 | else | |
e6cc62c6 VS |
34149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34150 | for as_dir in $PATH | |
34151 | do | |
34152 | IFS=$as_save_IFS | |
34153 | test -z "$as_dir" && as_dir=. | |
34154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34155 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34156 | ac_cv_prog_STRIP="strip" | |
34157 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34158 | break 2 | |
34159 | fi | |
34160 | done | |
34161 | done | |
34162 | ||
fe0895cf VS |
34163 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
34164 | fi | |
34165 | fi | |
e6cc62c6 | 34166 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 34167 | if test -n "$STRIP"; then |
e6cc62c6 VS |
34168 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
34169 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 34170 | else |
e6cc62c6 VS |
34171 | echo "$as_me:$LINENO: result: no" >&5 |
34172 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34173 | fi |
34174 | ||
34175 | fi | |
34176 | ||
34177 | case ${host} in | |
34178 | *-hp-hpux* ) | |
34179 | INSTALL_DIR="mkdir" | |
34180 | ;; | |
34181 | *) INSTALL_DIR="$INSTALL -d" | |
34182 | ;; | |
34183 | esac | |
e6cc62c6 | 34184 | |
fe0895cf | 34185 | |
6b9d41a5 VS |
34186 | LDFLAGS_GUI= |
34187 | case ${host} in | |
34188 | *-*-cygwin* | *-*-mingw32* ) | |
34189 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
34190 | esac | |
34191 | ||
34192 | ||
fe0895cf | 34193 | fi |
e6cc62c6 VS |
34194 | |
34195 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
34196 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 34197 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 34198 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 34199 | else |
e6cc62c6 | 34200 | |
fe0895cf VS |
34201 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
34202 | egrep -s GNU > /dev/null); then | |
34203 | bakefile_cv_prog_makeisgnu="yes" | |
34204 | else | |
34205 | bakefile_cv_prog_makeisgnu="no" | |
34206 | fi | |
fe0895cf | 34207 | |
e6cc62c6 | 34208 | fi |
49b0a3aa VS |
34209 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
34210 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
34211 | |
34212 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
34213 | IF_GNU_MAKE="" | |
34214 | else | |
34215 | IF_GNU_MAKE="#" | |
34216 | fi | |
fe0895cf | 34217 | |
e6cc62c6 VS |
34218 | |
34219 | ||
fe0895cf VS |
34220 | PLATFORM_UNIX=0 |
34221 | PLATFORM_WIN32=0 | |
34222 | PLATFORM_MSDOS=0 | |
34223 | PLATFORM_MAC=0 | |
34224 | PLATFORM_MACOSX=0 | |
96c1699d | 34225 | PLATFORM_OS2=0 |
e6cc62c6 | 34226 | |
fe0895cf VS |
34227 | case "${host}" in |
34228 | *-*-cygwin* | *-*-mingw32* ) | |
34229 | PLATFORM_WIN32=1 | |
34230 | ;; | |
96c1699d | 34231 | *-pc-msdosdjgpp ) |
fe0895cf VS |
34232 | PLATFORM_MSDOS=1 |
34233 | ;; | |
96c1699d VS |
34234 | *-pc-os2_emx | *-pc-os2-emx ) |
34235 | PLATFORM_OS2=1 | |
34236 | ;; | |
fe0895cf VS |
34237 | powerpc-*-darwin* ) |
34238 | PLATFORM_MAC=1 | |
34239 | PLATFORM_MACOSX=1 | |
34240 | ;; | |
34241 | * ) | |
34242 | PLATFORM_UNIX=1 | |
34243 | ;; | |
34244 | esac | |
34245 | ||
fe0895cf | 34246 | |
e6cc62c6 VS |
34247 | |
34248 | ||
34249 | ||
34250 | ||
34251 | ||
34252 | ||
96c1699d | 34253 | |
fe0895cf | 34254 | SO_SUFFIX="so" |
131f235d | 34255 | SO_SUFFIX_MODULE="so" |
fe0895cf | 34256 | EXEEXT="" |
4b1f6360 | 34257 | LIBPREFIX=lib |
fe0895cf | 34258 | DLLPREFIX=lib |
131f235d | 34259 | DLLPREFIX_MODULE= |
e6cc62c6 | 34260 | |
fe0895cf VS |
34261 | case "${host}" in |
34262 | *-hp-hpux* ) | |
34263 | SO_SUFFIX="sl" | |
131f235d | 34264 | SO_SUFFIX_MODULE="sl" |
fe0895cf VS |
34265 | ;; |
34266 | *-*-aix* ) | |
34267 | SO_SUFFIX="a" | |
131f235d | 34268 | SO_SUFFIX_MODULE="a" |
fe0895cf VS |
34269 | ;; |
34270 | *-*-cygwin* | *-*-mingw32* ) | |
34271 | SO_SUFFIX="dll" | |
131f235d | 34272 | SO_SUFFIX_MODULE="dll" |
fe0895cf VS |
34273 | EXEEXT=".exe" |
34274 | DLLPREFIX="" | |
34275 | ;; | |
4b1f6360 VS |
34276 | *-pc-msdosdjgpp ) |
34277 | EXEEXT=".exe" | |
34278 | DLLPREFIX="" | |
34279 | ;; | |
34280 | *-pc-os2_emx | *-pc-os2-emx ) | |
fe0895cf VS |
34281 | EXEEXT=".exe" |
34282 | DLLPREFIX="" | |
4b1f6360 | 34283 | LIBPREFIX="" |
fe0895cf VS |
34284 | ;; |
34285 | powerpc-*-darwin* ) | |
34286 | SO_SUFFIX="dylib" | |
131f235d | 34287 | SO_SUFFIX_MODULE="bundle" |
fe0895cf VS |
34288 | ;; |
34289 | esac | |
34290 | ||
fe0895cf | 34291 | |
e6cc62c6 VS |
34292 | |
34293 | ||
34294 | ||
34295 | ||
131f235d VS |
34296 | |
34297 | ||
4b1f6360 | 34298 | |
fe0895cf VS |
34299 | SHARED_LD_CC="\$(CC) -shared -o" |
34300 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
34301 | ||
34302 | if test "x$GCC" = "xyes"; then | |
34303 | PIC_FLAG="-fPIC" | |
34304 | fi | |
34305 | ||
34306 | case "${host}" in | |
34307 | *-hp-hpux* ) | |
34308 | if test "x$GCC" = "xyes"; then | |
34309 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
34310 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
34311 | else | |
34312 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
34313 | ||
34314 | SHARED_LD_CC="${CC} -b -o" | |
34315 | SHARED_LD_CXX="${CXX} -b -o" | |
34316 | PIC_FLAG="+Z" | |
34317 | fi | |
34318 | ;; | |
34319 | ||
34320 | *-*-linux* ) | |
34321 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
34322 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
34323 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
34324 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
34325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 34326 | else |
fe0895cf | 34327 | |
e6cc62c6 VS |
34328 | cat >conftest.$ac_ext <<_ACEOF |
34329 | #line $LINENO "configure" | |
34330 | /* confdefs.h. */ | |
34331 | _ACEOF | |
34332 | cat confdefs.h >>conftest.$ac_ext | |
34333 | cat >>conftest.$ac_ext <<_ACEOF | |
34334 | /* end confdefs.h. */ | |
34335 | ||
34336 | int | |
34337 | main () | |
34338 | { | |
fe0895cf VS |
34339 | |
34340 | #ifndef __INTEL_COMPILER | |
34341 | #error Not icc | |
34342 | #endif | |
e6cc62c6 VS |
34343 | |
34344 | ; | |
34345 | return 0; | |
34346 | } | |
34347 | _ACEOF | |
34348 | rm -f conftest.$ac_objext | |
34349 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34350 | (eval $ac_compile) 2>&5 | |
34351 | ac_status=$? | |
34352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34353 | (exit $ac_status); } && | |
34354 | { ac_try='test -s conftest.$ac_objext' | |
34355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34356 | (eval $ac_try) 2>&5 | |
34357 | ac_status=$? | |
34358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34359 | (exit $ac_status); }; }; then | |
fe0895cf VS |
34360 | bakefile_cv_prog_icc=yes |
34361 | else | |
e6cc62c6 VS |
34362 | echo "$as_me: failed program was:" >&5 |
34363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34364 | ||
34365 | bakefile_cv_prog_icc=no | |
34366 | ||
fe0895cf | 34367 | fi |
e6cc62c6 | 34368 | rm -f conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 34369 | |
e6cc62c6 VS |
34370 | fi |
34371 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
34372 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
34373 | if test "$bakefile_cv_prog_icc" = "yes"; then |
34374 | PIC_FLAG="-KPIC" | |
34375 | fi | |
34376 | fi | |
34377 | ;; | |
34378 | ||
34379 | *-*-solaris2* ) | |
34380 | if test "x$GCC" != xyes ; then | |
34381 | SHARED_LD_CC="${CC} -G -o" | |
34382 | SHARED_LD_CXX="${CXX} -G -o" | |
34383 | PIC_FLAG="-KPIC" | |
34384 | fi | |
34385 | ;; | |
34386 | ||
34387 | *-*-darwin* ) | |
34388 | CFLAGS="$CFLAGS -fno-common" | |
34389 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
34390 | |
34391 | ||
fe0895cf VS |
34392 | cat <<EOF >shared-ld-sh |
34393 | #!/bin/sh | |
34394 | #----------------------------------------------------------------------------- | |
34395 | #-- Name: distrib/mac/shared-ld-sh | |
34396 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
34397 | #-- Author: Gilles Depeyrot | |
34398 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
34399 | #-- Licence: any use permitted | |
34400 | #----------------------------------------------------------------------------- | |
34401 | ||
34402 | verbose=0 | |
34403 | args="" | |
34404 | objects="" | |
131f235d | 34405 | linking_flag="-dynamiclib" |
fe0895cf VS |
34406 | |
34407 | while test \${#} -gt 0; do | |
34408 | case \${1} in | |
34409 | ||
34410 | -v) | |
34411 | verbose=1 | |
34412 | ;; | |
34413 | ||
34414 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
34415 | # collect these options and values | |
34416 | args="\${args} \${1} \${2}" | |
34417 | shift | |
34418 | ;; | |
34419 | ||
34420 | -l*|-L*|-flat_namespace) | |
34421 | # collect these options | |
34422 | args="\${args} \${1}" | |
34423 | ;; | |
34424 | ||
131f235d VS |
34425 | -dynamiclib|-bundle) |
34426 | linking_flag="\${1}" | |
fe0895cf VS |
34427 | ;; |
34428 | ||
34429 | -*) | |
34430 | echo "shared-ld: unhandled option '\${1}'" | |
34431 | exit 1 | |
34432 | ;; | |
34433 | ||
4d264332 | 34434 | *.o | *.a | *.dylib) |
fe0895cf VS |
34435 | # collect object files |
34436 | objects="\${objects} \${1}" | |
34437 | ;; | |
34438 | ||
34439 | *) | |
34440 | echo "shared-ld: unhandled argument '\${1}'" | |
34441 | exit 1 | |
34442 | ;; | |
34443 | ||
34444 | esac | |
34445 | shift | |
34446 | done | |
34447 | ||
34448 | # | |
34449 | # Link one module containing all the others | |
34450 | # | |
34451 | if test \${verbose} = 1; then | |
34452 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
34453 | fi | |
34454 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
34455 | status=\$? | |
34456 | if test \${status} != 0; then | |
34457 | exit \${status} | |
34458 | fi | |
34459 | ||
34460 | # | |
34461 | # Link the shared library from the single module created | |
34462 | # | |
34463 | if test \${verbose} = 1; then | |
131f235d | 34464 | echo "cc \${linking_flag} master.\$\$.o \${args}" |
fe0895cf | 34465 | fi |
131f235d | 34466 | c++ \${linking_flag} master.\$\$.o \${args} |
fe0895cf VS |
34467 | status=\$? |
34468 | if test \${status} != 0; then | |
34469 | exit \${status} | |
34470 | fi | |
34471 | ||
34472 | # | |
34473 | # Remove intermediate module | |
34474 | # | |
34475 | rm -f master.\$\$.o | |
34476 | ||
34477 | exit 0 | |
34478 | EOF | |
34479 | chmod +x shared-ld-sh | |
34480 | ||
131f235d VS |
34481 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -undefined suppress -flat_namespace -o" |
34482 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -undefined suppress -flat_namespace -o" | |
fe0895cf | 34483 | SHARED_LD_CXX="$SHARED_LD_CC" |
131f235d | 34484 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" |
fe0895cf VS |
34485 | PIC_FLAG="-dynamic -fPIC" |
34486 | ;; | |
34487 | ||
34488 | *-*-aix* ) | |
34489 | if test "x$GCC" != "xyes"; then | |
34490 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
34491 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
34492 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34493 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34494 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
34495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34496 | else |
34497 | if test -n "$AIX_CXX_LD"; then | |
34498 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
34499 | else | |
e6cc62c6 VS |
34500 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34501 | for as_dir in $PATH | |
34502 | do | |
34503 | IFS=$as_save_IFS | |
34504 | test -z "$as_dir" && as_dir=. | |
34505 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34506 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34507 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
34508 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34509 | break 2 | |
34510 | fi | |
34511 | done | |
34512 | done | |
34513 | ||
fe0895cf VS |
34514 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
34515 | fi | |
34516 | fi | |
e6cc62c6 | 34517 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 34518 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
34519 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
34520 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 34521 | else |
e6cc62c6 VS |
34522 | echo "$as_me:$LINENO: result: no" >&5 |
34523 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34524 | fi |
34525 | ||
34526 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
34527 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
34528 | fi | |
34529 | ;; | |
34530 | ||
34531 | *-*-beos* ) | |
34532 | SHARED_LD_CC="${LD} -shared -o" | |
34533 | SHARED_LD_CXX="${LD} -shared -o" | |
34534 | ;; | |
34535 | ||
34536 | *-*-irix* ) | |
34537 | if test "x$GCC" != "xyes"; then | |
34538 | PIC_FLAG="-KPIC" | |
34539 | fi | |
34540 | ;; | |
e6cc62c6 | 34541 | |
fe0895cf VS |
34542 | *-*-cygwin* | *-*-mingw32* ) |
34543 | PIC_FLAG="" | |
34544 | ;; | |
e6cc62c6 | 34545 | |
fe0895cf VS |
34546 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
34547 | *-*-sunos4* | \ | |
34548 | *-*-osf* | \ | |
34549 | *-*-dgux5* | \ | |
4b1f6360 | 34550 | *-pc-os2_emx | *-pc-os2-emx | \ |
fe0895cf VS |
34551 | *-*-sysv5* ) |
34552 | ;; | |
34553 | ||
34554 | *) | |
e6cc62c6 VS |
34555 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 |
34556 | echo "$as_me: error: unknown system type $host." >&2;} | |
34557 | { (exit 1); exit 1; }; } | |
fe0895cf VS |
34558 | esac |
34559 | ||
131f235d VS |
34560 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
34561 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
34562 | fi | |
34563 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
239394fb | 34564 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" |
131f235d VS |
34565 | fi |
34566 | ||
34567 | ||
34568 | ||
fe0895cf | 34569 | |
e6cc62c6 VS |
34570 | |
34571 | ||
34572 | ||
34573 | ||
fe0895cf VS |
34574 | USE_SOVERSION=0 |
34575 | USE_SOVERLINUX=0 | |
34576 | USE_SOVERSOLARIS=0 | |
34577 | USE_SOSYMLINKS=0 | |
34578 | USE_MACVERSION=0 | |
34579 | SONAME_FLAG= | |
34580 | ||
34581 | case "${host}" in | |
34582 | *-*-linux* ) | |
34583 | SONAME_FLAG="-Wl,-soname," | |
34584 | USE_SOVERSION=1 | |
34585 | USE_SOVERLINUX=1 | |
34586 | USE_SOSYMLINKS=1 | |
34587 | ;; | |
34588 | ||
34589 | *-*-solaris2* ) | |
34590 | SONAME_FLAG="-h " | |
34591 | USE_SOVERSION=1 | |
34592 | USE_SOVERSOLARIS=1 | |
34593 | USE_SOSYMLINKS=1 | |
34594 | ;; | |
34595 | ||
34596 | *-*-darwin* ) | |
34597 | USE_MACVERSION=1 | |
34598 | USE_SOVERSION=1 | |
34599 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 34600 | ;; |
fe0895cf VS |
34601 | esac |
34602 | ||
fe0895cf | 34603 | |
e6cc62c6 VS |
34604 | |
34605 | ||
34606 | ||
34607 | ||
34608 | ||
34609 | ||
34610 | ||
49b0a3aa VS |
34611 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
34612 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
34613 | DEPS_TRACKING=0 | |
34614 | ||
fe0895cf | 34615 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
34616 | DEPSMODE=gcc |
34617 | DEPS_TRACKING=1 | |
3e5c3c83 VS |
34618 | case "${host}" in |
34619 | powerpc-*-darwin* ) | |
34620 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
34621 | ;; | |
34622 | * ) | |
34623 | DEPSFLAG_GCC="-MMD" | |
34624 | ;; | |
34625 | esac | |
49b0a3aa VS |
34626 | echo "$as_me:$LINENO: result: gcc" >&5 |
34627 | echo "${ECHO_T}gcc" >&6 | |
34628 | else | |
34629 | echo "$as_me:$LINENO: result: none" >&5 | |
34630 | echo "${ECHO_T}none" >&6 | |
34631 | fi | |
34632 | ||
34633 | if test $DEPS_TRACKING = 1 ; then | |
34634 | cat <<EOF >bk-deps | |
34635 | #!/bin/sh | |
34636 | ||
45842500 VS |
34637 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf |
34638 | # script. It is used to track C/C++ files dependencies in portable way. | |
49b0a3aa VS |
34639 | # |
34640 | # Permission is given to use this file in any way. | |
34641 | ||
34642 | DEPSMODE=$DEPSMODE | |
34643 | DEPSDIR=.deps | |
3e5c3c83 | 34644 | DEPSFLAG_GCC="$DEPSFLAG_GCC" |
49b0a3aa VS |
34645 | |
34646 | mkdir -p \$DEPSDIR | |
34647 | ||
34648 | if test \$DEPSMODE = gcc ; then | |
3e5c3c83 | 34649 | \${*} \${DEPSFLAG_GCC} |
49b0a3aa VS |
34650 | status=\${?} |
34651 | if test \${status} != 0 ; then | |
34652 | exit \${status} | |
34653 | fi | |
34654 | # move created file to the location we want it in: | |
34655 | while test \${#} -gt 0; do | |
34656 | case "\${1}" in | |
34657 | -o ) | |
34658 | shift | |
34659 | objfile=\${1} | |
34660 | ;; | |
34661 | -* ) | |
34662 | ;; | |
34663 | * ) | |
34664 | srcfile=\${1} | |
34665 | ;; | |
34666 | esac | |
34667 | shift | |
34668 | done | |
34669 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
34670 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
34671 | if test -f \$depfile ; then |
34672 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
34673 | rm -f \$depfile | |
34674 | else | |
34675 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
34676 | if test -f \$depfile ; then | |
4c8b7f4b | 34677 | sed -e "/^\$objfile/! s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
34678 | rm -f \$depfile |
34679 | fi | |
34680 | fi | |
49b0a3aa VS |
34681 | exit 0 |
34682 | else | |
34683 | \${*} | |
34684 | exit \${?} | |
34685 | fi | |
34686 | EOF | |
34687 | chmod +x bk-deps | |
fe0895cf | 34688 | fi |
fe0895cf | 34689 | |
e6cc62c6 VS |
34690 | |
34691 | ||
34692 | ||
fe0895cf VS |
34693 | RESCOMP= |
34694 | SETFILE= | |
34695 | ||
e6cc62c6 | 34696 | case ${host} in |
fe0895cf VS |
34697 | *-*-cygwin* | *-*-mingw32* ) |
34698 | if test "$build" != "$host" ; then | |
34699 | RESCOMP=$host_alias-windres | |
34700 | else | |
34701 | # Extract the first word of "windres", so it can be a program name with args. | |
34702 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
34703 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34705 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34707 | else |
34708 | if test -n "$RESCOMP"; then | |
34709 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34710 | else | |
e6cc62c6 VS |
34711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34712 | for as_dir in $PATH | |
34713 | do | |
34714 | IFS=$as_save_IFS | |
34715 | test -z "$as_dir" && as_dir=. | |
34716 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34717 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34718 | ac_cv_prog_RESCOMP="windres" | |
34719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34720 | break 2 | |
34721 | fi | |
34722 | done | |
34723 | done | |
34724 | ||
fe0895cf VS |
34725 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
34726 | fi | |
34727 | fi | |
e6cc62c6 | 34728 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34729 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34730 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34731 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34732 | else |
e6cc62c6 VS |
34733 | echo "$as_me:$LINENO: result: no" >&5 |
34734 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34735 | fi |
34736 | ||
34737 | fi | |
34738 | ;; | |
e6cc62c6 | 34739 | |
fe0895cf VS |
34740 | *-*-darwin* ) |
34741 | # Extract the first word of "Rez", so it can be a program name with args. | |
34742 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
34743 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34745 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
34746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34747 | else |
34748 | if test -n "$RESCOMP"; then | |
34749 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
34750 | else | |
e6cc62c6 VS |
34751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34752 | for as_dir in $PATH | |
34753 | do | |
34754 | IFS=$as_save_IFS | |
34755 | test -z "$as_dir" && as_dir=. | |
34756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34757 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34758 | ac_cv_prog_RESCOMP="Rez" | |
34759 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34760 | break 2 | |
34761 | fi | |
34762 | done | |
34763 | done | |
34764 | ||
fe0895cf VS |
34765 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
34766 | fi | |
34767 | fi | |
e6cc62c6 | 34768 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 34769 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
34770 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
34771 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 34772 | else |
e6cc62c6 VS |
34773 | echo "$as_me:$LINENO: result: no" >&5 |
34774 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34775 | fi |
34776 | ||
34777 | # Extract the first word of "SetFile", so it can be a program name with args. | |
34778 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
34779 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34781 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
34782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34783 | else |
34784 | if test -n "$SETFILE"; then | |
34785 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
34786 | else | |
e6cc62c6 VS |
34787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34788 | for as_dir in $PATH | |
34789 | do | |
34790 | IFS=$as_save_IFS | |
34791 | test -z "$as_dir" && as_dir=. | |
34792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34793 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34794 | ac_cv_prog_SETFILE="SetFile" | |
34795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34796 | break 2 | |
34797 | fi | |
34798 | done | |
34799 | done | |
34800 | ||
fe0895cf VS |
34801 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
34802 | fi | |
34803 | fi | |
e6cc62c6 | 34804 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 34805 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
34806 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
34807 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 34808 | else |
e6cc62c6 VS |
34809 | echo "$as_me:$LINENO: result: no" >&5 |
34810 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34811 | fi |
34812 | ||
34813 | ;; | |
34814 | esac | |
34815 | ||
fe0895cf VS |
34816 | |
34817 | ||
e6cc62c6 VS |
34818 | |
34819 | ||
34820 | ||
34821 | ||
45842500 | 34822 | |
0e012a93 VZ |
34823 | |
34824 | ||
45842500 VS |
34825 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
34826 | if test "${enable_precomp_headers+set}" = set; then | |
34827 | enableval="$enable_precomp_headers" | |
34828 | bk_use_pch="$enableval" | |
34829 | fi; | |
34830 | ||
34831 | GCC_PCH=0 | |
34832 | ||
34833 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
34834 | if test "x$GCC" = "xyes"; then | |
34835 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
34836 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
34837 | cat >conftest.$ac_ext <<_ACEOF | |
34838 | #line $LINENO "configure" | |
34839 | /* confdefs.h. */ | |
34840 | _ACEOF | |
34841 | cat confdefs.h >>conftest.$ac_ext | |
34842 | cat >>conftest.$ac_ext <<_ACEOF | |
34843 | /* end confdefs.h. */ | |
34844 | ||
34845 | int | |
34846 | main () | |
34847 | { | |
34848 | ||
8bcf2d20 VS |
34849 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) |
34850 | #error "no pch support" | |
34851 | #endif | |
34852 | #if (__GNUC__ < 3) | |
34853 | #error "no pch support" | |
34854 | #endif | |
34855 | #if (__GNUC__ == 3) && \ | |
34856 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
34857 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
34858 | #error "no pch support" | |
45842500 VS |
34859 | #endif |
34860 | ||
34861 | ; | |
34862 | return 0; | |
34863 | } | |
34864 | _ACEOF | |
34865 | rm -f conftest.$ac_objext | |
34866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
34867 | (eval $ac_compile) 2>&5 | |
34868 | ac_status=$? | |
34869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34870 | (exit $ac_status); } && | |
34871 | { ac_try='test -s conftest.$ac_objext' | |
34872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
34873 | (eval $ac_try) 2>&5 | |
34874 | ac_status=$? | |
34875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34876 | (exit $ac_status); }; }; then | |
34877 | ||
34878 | echo "$as_me:$LINENO: result: yes" >&5 | |
34879 | echo "${ECHO_T}yes" >&6 | |
34880 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
34881 | GCC_PCH=1 | |
34882 | ||
34883 | else | |
34884 | echo "$as_me: failed program was:" >&5 | |
34885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34886 | ||
34887 | ||
34888 | echo "$as_me:$LINENO: result: no" >&5 | |
34889 | echo "${ECHO_T}no" >&6 | |
34890 | ||
34891 | fi | |
34892 | rm -f conftest.$ac_objext conftest.$ac_ext | |
34893 | if test $GCC_PCH = 1 ; then | |
34894 | cat <<EOF >bk-make-pch | |
34895 | #!/bin/sh | |
34896 | ||
34897 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
34898 | # script. It is used to generated precompiled headers. | |
34899 | # | |
34900 | # Permission is given to use this file in any way. | |
34901 | ||
34902 | outfile="\${1}" | |
34903 | header="\${2}" | |
34904 | shift | |
34905 | shift | |
34906 | ||
34907 | compiler= | |
34908 | headerfile= | |
34909 | while test \${#} -gt 0; do | |
34910 | case "\${1}" in | |
34911 | -I* ) | |
34912 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
34913 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
34914 | headerfile="\${incdir}/\${header}" | |
34915 | fi | |
34916 | ;; | |
34917 | esac | |
34918 | compiler="\${compiler} \${1}" | |
34919 | shift | |
34920 | done | |
34921 | ||
34922 | if test "x\${headerfile}" = "x" ; then | |
34923 | echo "error: can't find header \${header} in include paths" >2 | |
34924 | else | |
34925 | if test -f \${outfile} ; then | |
34926 | rm -f \${outfile} | |
34927 | else | |
34928 | mkdir -p \`dirname \${outfile}\` | |
34929 | fi | |
34930 | depsfile=".deps/\`basename \${outfile}\`.d" | |
34931 | mkdir -p .deps | |
34932 | # can do this because gcc is >= 3.4: | |
34933 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
34934 | exit \${?} | |
34935 | fi | |
34936 | EOF | |
34937 | chmod +x bk-make-pch | |
34938 | fi | |
34939 | fi | |
34940 | fi | |
34941 | ||
34942 | ||
34943 | ||
34944 | ||
34945 | ||
d78c94f2 | 34946 | COND_BUILD_DEBUG="#" |
6f628073 | 34947 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 34948 | COND_BUILD_DEBUG="" |
6f628073 VS |
34949 | fi |
34950 | ||
6c67131a VS |
34951 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" |
34952 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
34953 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
34954 | fi | |
34955 | ||
34956 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
34957 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
34958 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
34959 | fi | |
34960 | ||
d78c94f2 | 34961 | COND_BUILD_RELEASE="#" |
6f628073 | 34962 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 34963 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
34964 | fi |
34965 | ||
6c67131a VS |
34966 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" |
34967 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
34968 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
34969 | fi | |
34970 | ||
34971 | COND_DEBUG_FLAG_1="#" | |
34972 | if test "x$DEBUG_FLAG" = "x1" ; then | |
34973 | COND_DEBUG_FLAG_1="" | |
34974 | fi | |
34975 | ||
34976 | COND_DEBUG_INFO_0="#" | |
34977 | if test "x$DEBUG_INFO" = "x0" ; then | |
34978 | COND_DEBUG_INFO_0="" | |
34979 | fi | |
34980 | ||
34981 | COND_DEBUG_INFO_1="#" | |
34982 | if test "x$DEBUG_INFO" = "x1" ; then | |
34983 | COND_DEBUG_INFO_1="" | |
34984 | fi | |
34985 | ||
f95cd8fa VS |
34986 | COND_DEPS_TRACKING_0="#" |
34987 | if test "x$DEPS_TRACKING" = "x0" ; then | |
34988 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
34989 | fi |
34990 | ||
8ee2dd05 VS |
34991 | COND_DEPS_TRACKING_1="#" |
34992 | if test "x$DEPS_TRACKING" = "x1" ; then | |
34993 | COND_DEPS_TRACKING_1="" | |
34994 | fi | |
34995 | ||
45842500 VS |
34996 | COND_GCC_PCH_1="#" |
34997 | if test "x$GCC_PCH" = "x1" ; then | |
34998 | COND_GCC_PCH_1="" | |
34999 | fi | |
35000 | ||
6f628073 VS |
35001 | COND_MONOLITHIC_0="#" |
35002 | if test "x$MONOLITHIC" = "x0" ; then | |
35003 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
35004 | fi |
35005 | ||
6f628073 VS |
35006 | COND_MONOLITHIC_0_SHARED_0="#" |
35007 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
35008 | COND_MONOLITHIC_0_SHARED_0="" | |
35009 | fi | |
35010 | ||
35011 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
35012 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
35013 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 35014 | fi |
e6cc62c6 | 35015 | |
8772a1a7 VS |
35016 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
35017 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
35018 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
35019 | fi | |
35020 | ||
250700e4 RD |
35021 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" |
35022 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
35023 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
35024 | fi | |
35025 | ||
eb69fda5 VS |
35026 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
35027 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
35028 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
35029 | fi | |
35030 | ||
8ee2dd05 VS |
35031 | COND_MONOLITHIC_0_SHARED_1="#" |
35032 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
35033 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 35034 | fi |
e6cc62c6 | 35035 | |
6f628073 VS |
35036 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
35037 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
35038 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
35039 | fi | |
35040 | ||
8772a1a7 VS |
35041 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
35042 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
35043 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
35044 | fi | |
35045 | ||
250700e4 RD |
35046 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" |
35047 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
35048 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
35049 | fi | |
35050 | ||
eb69fda5 VS |
35051 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
35052 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
35053 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
35054 | fi | |
35055 | ||
3af038c0 VS |
35056 | COND_MONOLITHIC_1="#" |
35057 | if test "x$MONOLITHIC" = "x1" ; then | |
35058 | COND_MONOLITHIC_1="" | |
35059 | fi | |
35060 | ||
6f628073 VS |
35061 | COND_MONOLITHIC_1_SHARED_0="#" |
35062 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
35063 | COND_MONOLITHIC_1_SHARED_0="" | |
35064 | fi | |
35065 | ||
35066 | COND_MONOLITHIC_1_SHARED_1="#" | |
35067 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
35068 | COND_MONOLITHIC_1_SHARED_1="" | |
35069 | fi | |
35070 | ||
3af038c0 VS |
35071 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
35072 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
35073 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
35074 | fi | |
35075 | ||
35076 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
35077 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
35078 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
35079 | fi | |
35080 | ||
6f628073 VS |
35081 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
35082 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
35083 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
35084 | fi | |
35085 | ||
3af038c0 VS |
35086 | COND_PLATFORM_MACOSX_1="#" |
35087 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
35088 | COND_PLATFORM_MACOSX_1="" | |
35089 | fi | |
35090 | ||
250700e4 RD |
35091 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
35092 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
35093 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
35094 | fi | |
35095 | ||
35096 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
35097 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
35098 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
35099 | fi | |
35100 | ||
35101 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
35102 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
35103 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
35104 | fi | |
35105 | ||
8ee2dd05 VS |
35106 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
35107 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
35108 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
35109 | fi | |
35110 | ||
45842500 VS |
35111 | COND_PLATFORM_MAC_1="#" |
35112 | if test "x$PLATFORM_MAC" = "x1" ; then | |
35113 | COND_PLATFORM_MAC_1="" | |
35114 | fi | |
35115 | ||
3d8c1de0 VS |
35116 | COND_PLATFORM_OS2_1="#" |
35117 | if test "x$PLATFORM_OS2" = "x1" ; then | |
35118 | COND_PLATFORM_OS2_1="" | |
35119 | fi | |
35120 | ||
8772a1a7 VS |
35121 | COND_PLATFORM_UNIX_0="#" |
35122 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
35123 | COND_PLATFORM_UNIX_0="" | |
35124 | fi | |
35125 | ||
3af038c0 VS |
35126 | COND_PLATFORM_UNIX_1="#" |
35127 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
35128 | COND_PLATFORM_UNIX_1="" | |
35129 | fi | |
35130 | ||
35131 | COND_PLATFORM_WIN32_0="#" | |
35132 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
35133 | COND_PLATFORM_WIN32_0="" | |
35134 | fi | |
35135 | ||
35136 | COND_PLATFORM_WIN32_1="#" | |
35137 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
35138 | COND_PLATFORM_WIN32_1="" | |
35139 | fi | |
35140 | ||
45842500 VS |
35141 | COND_SHARED_0="#" |
35142 | if test "x$SHARED" = "x0" ; then | |
35143 | COND_SHARED_0="" | |
35144 | fi | |
35145 | ||
250700e4 RD |
35146 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
35147 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
35148 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
35149 | fi | |
35150 | ||
52a5a009 VS |
35151 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
35152 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35153 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
35154 | fi | |
35155 | ||
35156 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
35157 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35158 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
35159 | fi | |
35160 | ||
35161 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
35162 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35163 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
35164 | fi | |
35165 | ||
35166 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
35167 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
35168 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
35169 | fi | |
35170 | ||
35171 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
35172 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
35173 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
35174 | fi | |
35175 | ||
35176 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
35177 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
35178 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
35179 | fi | |
35180 | ||
35181 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
35182 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
35183 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
35184 | fi | |
35185 | ||
45842500 VS |
35186 | COND_SHARED_1="#" |
35187 | if test "x$SHARED" = "x1" ; then | |
35188 | COND_SHARED_1="" | |
35189 | fi | |
35190 | ||
250700e4 RD |
35191 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" |
35192 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
35193 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
35194 | fi | |
35195 | ||
6f628073 VS |
35196 | COND_TOOLKIT_COCOA="#" |
35197 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
35198 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
35199 | fi |
35200 | ||
6f628073 VS |
35201 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
35202 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35203 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35204 | fi |
35205 | ||
6f628073 VS |
35206 | COND_TOOLKIT_GTK="#" |
35207 | if test "x$TOOLKIT" = "xGTK" ; then | |
35208 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
35209 | fi |
35210 | ||
6f628073 VS |
35211 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
35212 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
35213 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
35214 | fi |
35215 | ||
6f628073 VS |
35216 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
35217 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35218 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35219 | fi |
35220 | ||
3af038c0 VS |
35221 | COND_TOOLKIT_MAC="#" |
35222 | if test "x$TOOLKIT" = "xMAC" ; then | |
35223 | COND_TOOLKIT_MAC="" | |
35224 | fi | |
35225 | ||
8772a1a7 VS |
35226 | COND_TOOLKIT_MAC_USE_GUI_1="#" |
35227 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
35228 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
35229 | fi | |
35230 | ||
6f628073 VS |
35231 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
35232 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35233 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35234 | fi |
35235 | ||
6f628073 VS |
35236 | COND_TOOLKIT_MGL="#" |
35237 | if test "x$TOOLKIT" = "xMGL" ; then | |
35238 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
35239 | fi |
35240 | ||
6f628073 VS |
35241 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
35242 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
35243 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
35244 | fi |
35245 | ||
6f628073 VS |
35246 | COND_TOOLKIT_MOTIF="#" |
35247 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
35248 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
35249 | fi |
35250 | ||
6f628073 VS |
35251 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
35252 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
35253 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 35254 | fi |
e6cc62c6 | 35255 | |
6f628073 VS |
35256 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
35257 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35258 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35259 | fi |
35260 | ||
6f628073 VS |
35261 | COND_TOOLKIT_MSW="#" |
35262 | if test "x$TOOLKIT" = "xMSW" ; then | |
35263 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
35264 | fi |
35265 | ||
6f628073 VS |
35266 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
35267 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
35268 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 35269 | fi |
e6cc62c6 | 35270 | |
6f628073 VS |
35271 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
35272 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35273 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 35274 | fi |
e6cc62c6 | 35275 | |
96c1699d VS |
35276 | COND_TOOLKIT_PM="#" |
35277 | if test "x$TOOLKIT" = "xPM" ; then | |
35278 | COND_TOOLKIT_PM="" | |
35279 | fi | |
35280 | ||
35281 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
35282 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
35283 | COND_TOOLKIT_PM_USE_GUI_1="" | |
35284 | fi | |
35285 | ||
35286 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
35287 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35288 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
35289 | fi | |
35290 | ||
6f628073 VS |
35291 | COND_TOOLKIT_X11="#" |
35292 | if test "x$TOOLKIT" = "xX11" ; then | |
35293 | COND_TOOLKIT_X11="" | |
9747f85d VS |
35294 | fi |
35295 | ||
6f628073 VS |
35296 | COND_TOOLKIT_X11_USE_GUI_1="#" |
35297 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
35298 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
35299 | fi |
35300 | ||
3af038c0 VS |
35301 | COND_UNICODE_1="#" |
35302 | if test "x$UNICODE" = "x1" ; then | |
35303 | COND_UNICODE_1="" | |
35304 | fi | |
35305 | ||
35306 | COND_USE_GUI_0="#" | |
35307 | if test "x$USE_GUI" = "x0" ; then | |
35308 | COND_USE_GUI_0="" | |
35309 | fi | |
35310 | ||
35311 | COND_USE_GUI_1="#" | |
35312 | if test "x$USE_GUI" = "x1" ; then | |
35313 | COND_USE_GUI_1="" | |
35314 | fi | |
35315 | ||
e6cc62c6 | 35316 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
35317 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
35318 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 35319 | fi |
e6cc62c6 VS |
35320 | |
35321 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
35322 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
35323 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
35324 | fi |
35325 | ||
66a96744 VS |
35326 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
35327 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35328 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
35329 | fi | |
35330 | ||
35331 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
35332 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35333 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
35334 | fi | |
35335 | ||
35336 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
35337 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35338 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
35339 | fi | |
35340 | ||
6f628073 VS |
35341 | COND_USE_SOSYMLINKS_1="#" |
35342 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
35343 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
35344 | fi |
35345 | ||
6f628073 VS |
35346 | COND_USE_SOVERLINUX_1="#" |
35347 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
35348 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
35349 | fi |
35350 | ||
6f628073 VS |
35351 | COND_USE_SOVERSION_0="#" |
35352 | if test "x$USE_SOVERSION" = "x0" ; then | |
35353 | COND_USE_SOVERSION_0="" | |
fddeb06b | 35354 | fi |
fe0895cf | 35355 | |
6f628073 VS |
35356 | COND_USE_SOVERSOLARIS_1="#" |
35357 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
35358 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 35359 | fi |
fe0895cf | 35360 | |
3af038c0 VS |
35361 | COND_WXUNIV_1="#" |
35362 | if test "x$WXUNIV" = "x1" ; then | |
35363 | COND_WXUNIV_1="" | |
35364 | fi | |
35365 | ||
66a96744 VS |
35366 | COND_WXUSE_EXPAT_BUILTIN="#" |
35367 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
35368 | COND_WXUSE_EXPAT_BUILTIN="" | |
35369 | fi | |
35370 | ||
02980527 VS |
35371 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
35372 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35373 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
35374 | fi | |
35375 | ||
35376 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
35377 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35378 | COND_WXUSE_LIBPNG_BUILTIN="" | |
35379 | fi | |
35380 | ||
35381 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
35382 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35383 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
35384 | fi | |
35385 | ||
35386 | COND_WXUSE_ODBC_BUILTIN="#" | |
35387 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
35388 | COND_WXUSE_ODBC_BUILTIN="" | |
35389 | fi | |
35390 | ||
35391 | COND_WXUSE_REGEX_BUILTIN="#" | |
35392 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
35393 | COND_WXUSE_REGEX_BUILTIN="" | |
35394 | fi | |
35395 | ||
35396 | COND_WXUSE_ZLIB_BUILTIN="#" | |
35397 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
35398 | COND_WXUSE_ZLIB_BUILTIN="" | |
35399 | fi | |
35400 | ||
1772d20c | 35401 | |
fe0895cf | 35402 | |
fe0895cf | 35403 | |
fe0895cf | 35404 | |
45842500 VS |
35405 | if test $GCC_PCH = 1 ; then |
35406 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" | |
35407 | else | |
35408 | case "${host}" in | |
35409 | powerpc-*-darwin* ) | |
35410 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
35411 | ;; | |
45842500 VS |
35412 | esac |
35413 | fi | |
2c6f14e1 VS |
35414 | case "${host}" in |
35415 | powerpc-*-darwin* ) | |
35416 | CODE_GEN_FLAGS_CXX="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS_CXX" | |
35417 | ;; | |
35418 | esac | |
fe0895cf VS |
35419 | |
35420 | ||
fddeb06b | 35421 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
35422 | |
35423 | ||
35424 | ||
35425 | ||
35426 | ||
35427 | ||
35428 | ||
35429 | ||
35430 | ||
35431 | ||
35432 | ||
35433 | ||
35434 | ||
35435 | ||
35436 | ||
35437 | ||
35438 | ||
35439 | ||
35440 | ||
35441 | ||
35442 | ||
35443 | ||
35444 | ||
35445 | ||
35446 | ||
35447 | ||
35448 | ||
35449 | ||
35450 | ||
35451 | ||
35452 | ||
35453 | ||
35454 | ||
35455 | ||
35456 | ||
35457 | ||
35458 | ||
35459 | ||
35460 | ||
35461 | ||
35462 | ||
35463 | ||
35464 | ||
35465 | ||
35466 | ||
35467 | ||
35468 | ||
35469 | ||
35470 | ||
35471 | ||
35472 | ||
35473 | ||
35474 | ||
35475 | ||
35476 | ||
35477 | ||
35478 | ||
35479 | ||
35480 | ||
35481 | ||
35482 | ||
35483 | ||
35484 | ||
35485 | ||
35486 | ||
35487 | ||
35488 | ||
35489 | ||
35490 | ||
35491 | ||
35492 | ||
35493 | ||
35494 | ||
35495 | ||
35496 | ||
35497 | ||
35498 | ||
35499 | ||
35500 | ||
35501 | ||
35502 | ||
35503 | ||
35504 | ||
35505 | ||
35506 | ||
35507 | ||
35508 | ||
35509 | ||
35510 | ||
35511 | ||
35512 | ||
35513 | ||
35514 | ||
35515 | ||
fe0895cf | 35516 | |
f0290fca VS |
35517 | |
35518 | ||
67c13b6c | 35519 | |
e6cc62c6 VS |
35520 | |
35521 | ||
35522 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
35523 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
35524 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
35525 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
35526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35527 | else | |
35528 | cat >conftest.make <<\_ACEOF | |
35529 | all: | |
35530 | @echo 'ac_maketemp="$(MAKE)"' | |
35531 | _ACEOF | |
35532 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
35533 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
35534 | if test -n "$ac_maketemp"; then | |
35535 | eval ac_cv_prog_make_${ac_make}_set=yes | |
35536 | else | |
35537 | eval ac_cv_prog_make_${ac_make}_set=no | |
35538 | fi | |
35539 | rm -f conftest.make | |
35540 | fi | |
35541 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
35542 | echo "$as_me:$LINENO: result: yes" >&5 | |
35543 | echo "${ECHO_T}yes" >&6 | |
35544 | SET_MAKE= | |
35545 | else | |
35546 | echo "$as_me:$LINENO: result: no" >&5 | |
35547 | echo "${ECHO_T}no" >&6 | |
35548 | SET_MAKE="MAKE=${MAKE-make}" | |
35549 | fi | |
35550 | ||
35551 | ||
35552 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
35553 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
35554 | fi | |
35555 | ||
35556 | ac_config_headers="$ac_config_headers setup.h" | |
35557 | ||
35558 | ||
81345eef | 35559 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
35560 | |
35561 | ||
35562 | ac_config_commands="$ac_config_commands default" | |
35563 | ||
35564 | ||
9de9b8f0 | 35565 | |
6c3e36af VZ |
35566 | if test "$wxUSE_GUI" = "yes"; then |
35567 | SUBDIRS="samples demos utils contrib" | |
35568 | else SUBDIRS="samples utils" | |
35569 | fi | |
e6cc62c6 | 35570 | |
166263e6 | 35571 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 35572 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 35573 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 | 35574 | if test ${subdir} = "samples"; then |
8772a1a7 VS |
35575 | makefiles="samples/Makefile.in $makefiles" |
35576 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
166263e6 VZ |
35577 | if test -d $srcdir/samples/$sample; then |
35578 | makefiles="samples/$sample/Makefile.in $makefiles" | |
35579 | fi | |
35580 | done | |
35581 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
35582 | fi | |
6c3e36af | 35583 | else if test ${subdir} = "samples"; then |
8772a1a7 | 35584 | makefiles="samples/Makefile.in samples/console/Makefile.in" |
6c3e36af | 35585 | else makefiles="utils/HelpGen/Makefile.in \ |
73d617c9 | 35586 | utils/HelpGen/src/Makefile.in" |
6c3e36af VZ |
35587 | fi |
35588 | fi | |
35589 | ||
9747f85d VS |
35590 | for mkin in $makefiles ; do |
35591 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
35592 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 35593 | |
9747f85d VS |
35594 | done |
35595 | fi | |
35596 | done | |
e6cc62c6 | 35597 | |
9de9b8f0 | 35598 | |
e6cc62c6 VS |
35599 | cat >confcache <<\_ACEOF |
35600 | # This file is a shell script that caches the results of configure | |
35601 | # tests run on this system so they can be shared between configure | |
35602 | # scripts and configure runs, see configure's option --config-cache. | |
35603 | # It is not useful on other systems. If it contains results you don't | |
35604 | # want to keep, you may remove or edit it. | |
35605 | # | |
35606 | # config.status only pays attention to the cache file if you give it | |
35607 | # the --recheck option to rerun configure. | |
35608 | # | |
35609 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
35610 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
35611 | # following values. | |
35612 | ||
35613 | _ACEOF | |
35614 | ||
35615 | # The following way of writing the cache mishandles newlines in values, | |
35616 | # but we know of no workaround that is simple, portable, and efficient. | |
35617 | # So, don't put newlines in cache variables' values. | |
35618 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
35619 | # and sets the high bit in the cache file unless we assign to the vars. | |
35620 | { | |
35621 | (set) 2>&1 | | |
35622 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
35623 | *ac_space=\ *) | |
35624 | # `set' does not quote correctly, so add quotes (double-quote | |
35625 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
35626 | sed -n \ | |
35627 | "s/'/'\\\\''/g; | |
35628 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
35629 | ;; | |
35630 | *) | |
35631 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
35632 | sed -n \ | |
35633 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
35634 | ;; | |
35635 | esac; | |
35636 | } | | |
35637 | sed ' | |
35638 | t clear | |
35639 | : clear | |
35640 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
35641 | t end | |
35642 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
35643 | : end' >>confcache | |
35644 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
35645 | if test -w $cache_file; then | |
35646 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
35647 | cat confcache >$cache_file | |
35648 | else | |
35649 | echo "not updating unwritable cache $cache_file" | |
35650 | fi | |
35651 | fi | |
35652 | rm -f confcache | |
35653 | ||
35654 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
35655 | # Let make expand exec_prefix. | |
35656 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
35657 | ||
35658 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
35659 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
35660 | # trailing colons and then remove the whole line if VPATH becomes empty | |
35661 | # (actually we leave an empty line to preserve line numbers). | |
35662 | if test "x$srcdir" = x.; then | |
35663 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
35664 | s/:*\$(srcdir):*/:/; | |
35665 | s/:*\${srcdir}:*/:/; | |
35666 | s/:*@srcdir@:*/:/; | |
35667 | s/^\([^=]*=[ ]*\):*/\1/; | |
35668 | s/:*$//; | |
35669 | s/^[^=]*=[ ]*$//; | |
35670 | }' | |
35671 | fi | |
35672 | ||
35673 | DEFS=-DHAVE_CONFIG_H | |
35674 | ||
35675 | ac_libobjs= | |
35676 | ac_ltlibobjs= | |
35677 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
35678 | # 1. Remove the extension, and $U if already installed. | |
35679 | ac_i=`echo "$ac_i" | | |
35680 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
35681 | # 2. Add them. | |
35682 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
35683 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
35684 | done | |
35685 | LIBOBJS=$ac_libobjs | |
35686 | ||
35687 | LTLIBOBJS=$ac_ltlibobjs | |
35688 | ||
35689 | ||
35690 | ||
35691 | : ${CONFIG_STATUS=./config.status} | |
35692 | ac_clean_files_save=$ac_clean_files | |
35693 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
35694 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
35695 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
35696 | cat >$CONFIG_STATUS <<_ACEOF | |
35697 | #! $SHELL | |
35698 | # Generated by $as_me. | |
35699 | # Run this file to recreate the current configuration. | |
35700 | # Compiler output produced by configure, useful for debugging | |
35701 | # configure, is in config.log if it exists. | |
35702 | ||
35703 | debug=false | |
35704 | ac_cs_recheck=false | |
35705 | ac_cs_silent=false | |
35706 | SHELL=\${CONFIG_SHELL-$SHELL} | |
35707 | _ACEOF | |
35708 | ||
35709 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35710 | ## --------------------- ## | |
35711 | ## M4sh Initialization. ## | |
35712 | ## --------------------- ## | |
35713 | ||
35714 | # Be Bourne compatible | |
35715 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
35716 | emulate sh | |
35717 | NULLCMD=: | |
35718 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
35719 | # is contrary to our usage. Disable this feature. | |
35720 | alias -g '${1+"$@"}'='"$@"' | |
35721 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
35722 | set -o posix | |
35723 | fi | |
35724 | ||
35725 | # Support unset when possible. | |
35726 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
35727 | as_unset=unset | |
35728 | else | |
35729 | as_unset=false | |
35730 | fi | |
35731 | ||
35732 | ||
35733 | # Work around bugs in pre-3.0 UWIN ksh. | |
35734 | $as_unset ENV MAIL MAILPATH | |
35735 | PS1='$ ' | |
35736 | PS2='> ' | |
35737 | PS4='+ ' | |
35738 | ||
35739 | # NLS nuisances. | |
35740 | for as_var in \ | |
35741 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
35742 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
35743 | LC_TELEPHONE LC_TIME | |
35744 | do | |
35745 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
35746 | eval $as_var=C; export $as_var | |
35747 | else | |
35748 | $as_unset $as_var | |
35749 | fi | |
35750 | done | |
35751 | ||
35752 | # Required to use basename. | |
35753 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35754 | as_expr=expr | |
35755 | else | |
35756 | as_expr=false | |
35757 | fi | |
35758 | ||
35759 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
35760 | as_basename=basename | |
35761 | else | |
35762 | as_basename=false | |
35763 | fi | |
35764 | ||
35765 | ||
35766 | # Name of the executable. | |
35767 | as_me=`$as_basename "$0" || | |
35768 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
35769 | X"$0" : 'X\(//\)$' \| \ | |
35770 | X"$0" : 'X\(/\)$' \| \ | |
35771 | . : '\(.\)' 2>/dev/null || | |
35772 | echo X/"$0" | | |
35773 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
35774 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
35775 | /^X\/\(\/\).*/{ s//\1/; q; } | |
35776 | s/.*/./; q'` | |
35777 | ||
35778 | ||
35779 | # PATH needs CR, and LINENO needs CR and PATH. | |
35780 | # Avoid depending upon Character Ranges. | |
35781 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
35782 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
35783 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
35784 | as_cr_digits='0123456789' | |
35785 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
35786 | ||
35787 | # The user is always right. | |
35788 | if test "${PATH_SEPARATOR+set}" != set; then | |
35789 | echo "#! /bin/sh" >conf$$.sh | |
35790 | echo "exit 0" >>conf$$.sh | |
35791 | chmod +x conf$$.sh | |
35792 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
35793 | PATH_SEPARATOR=';' | |
35794 | else | |
35795 | PATH_SEPARATOR=: | |
35796 | fi | |
35797 | rm -f conf$$.sh | |
35798 | fi | |
35799 | ||
35800 | ||
35801 | as_lineno_1=$LINENO | |
35802 | as_lineno_2=$LINENO | |
35803 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
35804 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
35805 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
35806 | # Find who we are. Look in the path if we contain no path at all | |
35807 | # relative or not. | |
35808 | case $0 in | |
35809 | *[\\/]* ) as_myself=$0 ;; | |
35810 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35811 | for as_dir in $PATH | |
35812 | do | |
35813 | IFS=$as_save_IFS | |
35814 | test -z "$as_dir" && as_dir=. | |
35815 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
35816 | done | |
35817 | ||
35818 | ;; | |
35819 | esac | |
35820 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
35821 | # in which case we are not to be found in the path. | |
35822 | if test "x$as_myself" = x; then | |
35823 | as_myself=$0 | |
35824 | fi | |
35825 | if test ! -f "$as_myself"; then | |
35826 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
35827 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
35828 | { (exit 1); exit 1; }; } | |
35829 | fi | |
35830 | case $CONFIG_SHELL in | |
35831 | '') | |
35832 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35833 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
35834 | do | |
35835 | IFS=$as_save_IFS | |
35836 | test -z "$as_dir" && as_dir=. | |
35837 | for as_base in sh bash ksh sh5; do | |
35838 | case $as_dir in | |
35839 | /*) | |
35840 | if ("$as_dir/$as_base" -c ' | |
35841 | as_lineno_1=$LINENO | |
35842 | as_lineno_2=$LINENO | |
35843 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
35844 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
35845 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
35846 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
35847 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
35848 | CONFIG_SHELL=$as_dir/$as_base | |
35849 | export CONFIG_SHELL | |
35850 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
35851 | fi;; | |
35852 | esac | |
35853 | done | |
35854 | done | |
35855 | ;; | |
35856 | esac | |
35857 | ||
35858 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
35859 | # uniformly replaced by the line number. The first 'sed' inserts a | |
35860 | # line-number line before each line; the second 'sed' does the real | |
35861 | # work. The second script uses 'N' to pair each line-number line | |
35862 | # with the numbered line, and appends trailing '-' during | |
35863 | # substitution so that $LINENO is not a special case at line end. | |
35864 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
35865 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
35866 | sed '=' <$as_myself | | |
35867 | sed ' | |
35868 | N | |
35869 | s,$,-, | |
35870 | : loop | |
35871 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
35872 | t loop | |
35873 | s,-$,, | |
35874 | s,^['$as_cr_digits']*\n,, | |
35875 | ' >$as_me.lineno && | |
35876 | chmod +x $as_me.lineno || | |
35877 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
35878 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
35879 | { (exit 1); exit 1; }; } | |
35880 | ||
35881 | # Don't try to exec as it changes $[0], causing all sort of problems | |
35882 | # (the dirname of $[0] is not the place where we might find the | |
35883 | # original and so on. Autoconf is especially sensible to this). | |
35884 | . ./$as_me.lineno | |
35885 | # Exit status is that of the last command. | |
35886 | exit | |
35887 | } | |
35888 | ||
35889 | ||
35890 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
35891 | *c*,-n*) ECHO_N= ECHO_C=' | |
35892 | ' ECHO_T=' ' ;; | |
35893 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
35894 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
35895 | esac | |
35896 | ||
35897 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
35898 | as_expr=expr | |
35899 | else | |
35900 | as_expr=false | |
35901 | fi | |
35902 | ||
35903 | rm -f conf$$ conf$$.exe conf$$.file | |
35904 | echo >conf$$.file | |
35905 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
35906 | # We could just check for DJGPP; but this test a) works b) is more generic | |
35907 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
35908 | if test -f conf$$.exe; then | |
35909 | # Don't use ln at all; we don't have any links | |
35910 | as_ln_s='cp -p' | |
35911 | else | |
35912 | as_ln_s='ln -s' | |
35913 | fi | |
35914 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
35915 | as_ln_s=ln | |
35916 | else | |
35917 | as_ln_s='cp -p' | |
35918 | fi | |
35919 | rm -f conf$$ conf$$.exe conf$$.file | |
35920 | ||
35921 | if mkdir -p . 2>/dev/null; then | |
35922 | as_mkdir_p=: | |
35923 | else | |
35924 | as_mkdir_p=false | |
35925 | fi | |
35926 | ||
35927 | as_executable_p="test -f" | |
35928 | ||
35929 | # Sed expression to map a string onto a valid CPP name. | |
35930 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
35931 | ||
35932 | # Sed expression to map a string onto a valid variable name. | |
35933 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
35934 | ||
35935 | ||
35936 | # IFS | |
35937 | # We need space, tab and new line, in precisely that order. | |
35938 | as_nl=' | |
35939 | ' | |
35940 | IFS=" $as_nl" | |
35941 | ||
35942 | # CDPATH. | |
35943 | $as_unset CDPATH | |
35944 | ||
35945 | exec 6>&1 | |
35946 | ||
35947 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
35948 | # report actual input values of CONFIG_FILES etc. instead of their | |
35949 | # values after options handling. Logging --version etc. is OK. | |
35950 | exec 5>>config.log | |
35951 | { | |
35952 | echo | |
35953 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
35954 | ## Running $as_me. ## | |
35955 | _ASBOX | |
35956 | } >&5 | |
35957 | cat >&5 <<_CSEOF | |
35958 | ||
35959 | This file was extended by wxWindows $as_me 2.5.0, which was | |
35960 | generated by GNU Autoconf 2.57. Invocation command line was | |
35961 | ||
35962 | CONFIG_FILES = $CONFIG_FILES | |
35963 | CONFIG_HEADERS = $CONFIG_HEADERS | |
35964 | CONFIG_LINKS = $CONFIG_LINKS | |
35965 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
35966 | $ $0 $@ | |
35967 | ||
35968 | _CSEOF | |
35969 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
35970 | echo >&5 | |
35971 | _ACEOF | |
35972 | ||
35973 | # Files that config.status was made for. | |
35974 | if test -n "$ac_config_files"; then | |
35975 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
35976 | fi | |
35977 | ||
35978 | if test -n "$ac_config_headers"; then | |
35979 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
35980 | fi | |
35981 | ||
35982 | if test -n "$ac_config_links"; then | |
35983 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
35984 | fi | |
35985 | ||
35986 | if test -n "$ac_config_commands"; then | |
35987 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
35988 | fi | |
35989 | ||
35990 | cat >>$CONFIG_STATUS <<\_ACEOF | |
35991 | ||
35992 | ac_cs_usage="\ | |
35993 | \`$as_me' instantiates files from templates according to the | |
35994 | current configuration. | |
35995 | ||
35996 | Usage: $0 [OPTIONS] [FILE]... | |
35997 | ||
35998 | -h, --help print this help, then exit | |
35999 | -V, --version print version number, then exit | |
36000 | -q, --quiet do not print progress messages | |
36001 | -d, --debug don't remove temporary files | |
36002 | --recheck update $as_me by reconfiguring in the same conditions | |
36003 | --file=FILE[:TEMPLATE] | |
36004 | instantiate the configuration file FILE | |
36005 | --header=FILE[:TEMPLATE] | |
36006 | instantiate the configuration header FILE | |
36007 | ||
36008 | Configuration files: | |
36009 | $config_files | |
36010 | ||
36011 | Configuration headers: | |
36012 | $config_headers | |
36013 | ||
36014 | Configuration commands: | |
36015 | $config_commands | |
36016 | ||
36017 | Report bugs to <bug-autoconf@gnu.org>." | |
36018 | _ACEOF | |
36019 | ||
36020 | cat >>$CONFIG_STATUS <<_ACEOF | |
36021 | ac_cs_version="\\ | |
36022 | wxWindows config.status 2.5.0 | |
36023 | configured by $0, generated by GNU Autoconf 2.57, | |
36024 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
36025 | ||
36026 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
36027 | Free Software Foundation, Inc. | |
36028 | This config.status script is free software; the Free Software Foundation | |
36029 | gives unlimited permission to copy, distribute and modify it." | |
36030 | srcdir=$srcdir | |
36031 | INSTALL="$INSTALL" | |
36032 | _ACEOF | |
36033 | ||
36034 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36035 | # If no file are specified by the user, then we need to provide default | |
36036 | # value. By we need to know if files were specified by the user. | |
36037 | ac_need_defaults=: | |
36038 | while test $# != 0 | |
36039 | do | |
36040 | case $1 in | |
36041 | --*=*) | |
36042 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
36043 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
36044 | ac_shift=: | |
36045 | ;; | |
36046 | -*) | |
36047 | ac_option=$1 | |
36048 | ac_optarg=$2 | |
36049 | ac_shift=shift | |
36050 | ;; | |
36051 | *) # This is not an option, so the user has probably given explicit | |
36052 | # arguments. | |
36053 | ac_option=$1 | |
36054 | ac_need_defaults=false;; | |
36055 | esac | |
36056 | ||
36057 | case $ac_option in | |
36058 | # Handling of the options. | |
36059 | _ACEOF | |
36060 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36061 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
36062 | ac_cs_recheck=: ;; | |
36063 | --version | --vers* | -V ) | |
36064 | echo "$ac_cs_version"; exit 0 ;; | |
36065 | --he | --h) | |
36066 | # Conflict between --help and --header | |
36067 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
36068 | Try \`$0 --help' for more information." >&5 | |
36069 | echo "$as_me: error: ambiguous option: $1 | |
36070 | Try \`$0 --help' for more information." >&2;} | |
36071 | { (exit 1); exit 1; }; };; | |
36072 | --help | --hel | -h ) | |
36073 | echo "$ac_cs_usage"; exit 0 ;; | |
36074 | --debug | --d* | -d ) | |
36075 | debug=: ;; | |
36076 | --file | --fil | --fi | --f ) | |
36077 | $ac_shift | |
36078 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
36079 | ac_need_defaults=false;; | |
36080 | --header | --heade | --head | --hea ) | |
36081 | $ac_shift | |
36082 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
36083 | ac_need_defaults=false;; | |
36084 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
36085 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
36086 | ac_cs_silent=: ;; | |
36087 | ||
36088 | # This is an error. | |
36089 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
36090 | Try \`$0 --help' for more information." >&5 | |
36091 | echo "$as_me: error: unrecognized option: $1 | |
36092 | Try \`$0 --help' for more information." >&2;} | |
36093 | { (exit 1); exit 1; }; } ;; | |
36094 | ||
36095 | *) ac_config_targets="$ac_config_targets $1" ;; | |
36096 | ||
36097 | esac | |
36098 | shift | |
36099 | done | |
36100 | ||
36101 | ac_configure_extra_args= | |
36102 | ||
36103 | if $ac_cs_silent; then | |
36104 | exec 6>/dev/null | |
36105 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
36106 | fi |
36107 | ||
e6cc62c6 VS |
36108 | _ACEOF |
36109 | cat >>$CONFIG_STATUS <<_ACEOF | |
36110 | if \$ac_cs_recheck; then | |
36111 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
36112 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
36113 | fi |
36114 | ||
e6cc62c6 | 36115 | _ACEOF |
fe0895cf | 36116 | |
e6cc62c6 | 36117 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 36118 | # |
e6cc62c6 | 36119 | # INIT-COMMANDS section. |
10f2d63a | 36120 | # |
10f2d63a | 36121 | |
a0b9e27f | 36122 | |
e6cc62c6 VS |
36123 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
36124 | LN_S="${LN_S}" | |
10f2d63a | 36125 | |
10f2d63a | 36126 | |
10f2d63a | 36127 | |
e6cc62c6 | 36128 | _ACEOF |
8284b0c5 | 36129 | |
52127426 | 36130 | |
247f5006 | 36131 | |
e6cc62c6 VS |
36132 | cat >>$CONFIG_STATUS <<\_ACEOF |
36133 | for ac_config_target in $ac_config_targets | |
247f5006 | 36134 | do |
e6cc62c6 VS |
36135 | case "$ac_config_target" in |
36136 | # Handling of arguments. | |
81345eef VZ |
36137 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
36138 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
36139 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 36140 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
36141 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
36142 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
36143 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
36144 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
36145 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
36146 | esac |
36147 | done | |
36148 | ||
e6cc62c6 VS |
36149 | # If the user did not use the arguments to specify the items to instantiate, |
36150 | # then the envvar interface is used. Set only those that are not. | |
36151 | # We use the long form for the default assignment because of an extremely | |
36152 | # bizarre bug on SunOS 4.1.3. | |
36153 | if $ac_need_defaults; then | |
36154 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
36155 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
36156 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
36157 | fi | |
36158 | ||
36159 | # Have a temporary directory for convenience. Make it in the build tree | |
36160 | # simply because there is no reason to put it here, and in addition, | |
36161 | # creating and moving files from /tmp can sometimes cause problems. | |
36162 | # Create a temporary directory, and hook for its removal unless debugging. | |
36163 | $debug || | |
36164 | { | |
36165 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
36166 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
36167 | } | |
247f5006 | 36168 | |
e6cc62c6 | 36169 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 36170 | |
e6cc62c6 VS |
36171 | { |
36172 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
36173 | test -n "$tmp" && test -d "$tmp" | |
36174 | } || | |
36175 | { | |
36176 | tmp=./confstat$$-$RANDOM | |
36177 | (umask 077 && mkdir $tmp) | |
36178 | } || | |
36179 | { | |
36180 | echo "$me: cannot create a temporary directory in ." >&2 | |
36181 | { (exit 1); exit 1; } | |
36182 | } | |
36183 | ||
36184 | _ACEOF | |
36185 | ||
36186 | cat >>$CONFIG_STATUS <<_ACEOF | |
36187 | ||
36188 | # | |
36189 | # CONFIG_FILES section. | |
36190 | # | |
247f5006 | 36191 | |
e6cc62c6 VS |
36192 | # No need to generate the scripts if there are no CONFIG_FILES. |
36193 | # This happens for instance when ./config.status config.h | |
36194 | if test -n "\$CONFIG_FILES"; then | |
36195 | # Protect against being on the right side of a sed subst in config.status. | |
36196 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
36197 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
36198 | s,@SHELL@,$SHELL,;t t | |
36199 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
36200 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
36201 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
36202 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
36203 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
36204 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
36205 | s,@exec_prefix@,$exec_prefix,;t t | |
36206 | s,@prefix@,$prefix,;t t | |
36207 | s,@program_transform_name@,$program_transform_name,;t t | |
36208 | s,@bindir@,$bindir,;t t | |
36209 | s,@sbindir@,$sbindir,;t t | |
36210 | s,@libexecdir@,$libexecdir,;t t | |
36211 | s,@datadir@,$datadir,;t t | |
36212 | s,@sysconfdir@,$sysconfdir,;t t | |
36213 | s,@sharedstatedir@,$sharedstatedir,;t t | |
36214 | s,@localstatedir@,$localstatedir,;t t | |
36215 | s,@libdir@,$libdir,;t t | |
36216 | s,@includedir@,$includedir,;t t | |
36217 | s,@oldincludedir@,$oldincludedir,;t t | |
36218 | s,@infodir@,$infodir,;t t | |
36219 | s,@mandir@,$mandir,;t t | |
36220 | s,@build_alias@,$build_alias,;t t | |
36221 | s,@host_alias@,$host_alias,;t t | |
36222 | s,@target_alias@,$target_alias,;t t | |
36223 | s,@DEFS@,$DEFS,;t t | |
36224 | s,@ECHO_C@,$ECHO_C,;t t | |
36225 | s,@ECHO_N@,$ECHO_N,;t t | |
36226 | s,@ECHO_T@,$ECHO_T,;t t | |
36227 | s,@LIBS@,$LIBS,;t t | |
36228 | s,@build@,$build,;t t | |
36229 | s,@build_cpu@,$build_cpu,;t t | |
36230 | s,@build_vendor@,$build_vendor,;t t | |
36231 | s,@build_os@,$build_os,;t t | |
36232 | s,@host@,$host,;t t | |
36233 | s,@host_cpu@,$host_cpu,;t t | |
36234 | s,@host_vendor@,$host_vendor,;t t | |
36235 | s,@host_os@,$host_os,;t t | |
36236 | s,@target@,$target,;t t | |
36237 | s,@target_cpu@,$target_cpu,;t t | |
36238 | s,@target_vendor@,$target_vendor,;t t | |
36239 | s,@target_os@,$target_os,;t t | |
36240 | s,@CC@,$CC,;t t | |
36241 | s,@CFLAGS@,$CFLAGS,;t t | |
36242 | s,@LDFLAGS@,$LDFLAGS,;t t | |
36243 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
36244 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
36245 | s,@EXEEXT@,$EXEEXT,;t t | |
36246 | s,@OBJEXT@,$OBJEXT,;t t | |
36247 | s,@CPP@,$CPP,;t t | |
36248 | s,@EGREP@,$EGREP,;t t | |
36249 | s,@CXX@,$CXX,;t t | |
36250 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
36251 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
36252 | s,@RANLIB@,$RANLIB,;t t | |
36253 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
36254 | s,@AR@,$AR,;t t | |
36255 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
36256 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
36257 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
36258 | s,@STRIP@,$STRIP,;t t | |
36259 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
e6cc62c6 VS |
36260 | s,@LN_S@,$LN_S,;t t |
36261 | s,@CXXCPP@,$CXXCPP,;t t | |
672abd7a | 36262 | s,@subdirs@,$subdirs,;t t |
e6cc62c6 VS |
36263 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
36264 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
36265 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
36266 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
36267 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
36268 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
36269 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
36270 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
36271 | s,@X_LIBS@,$X_LIBS,;t t | |
36272 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
36273 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
36274 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
36275 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
36276 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
36277 | s,@RESCOMP@,$RESCOMP,;t t |
36278 | s,@DEREZ@,$DEREZ,;t t | |
36279 | s,@SETFILE@,$SETFILE,;t t | |
36280 | s,@LIBICONV@,$LIBICONV,;t t | |
edd891e2 VS |
36281 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t |
36282 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
36283 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
e6cc62c6 VS |
36284 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t |
36285 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
672abd7a | 36286 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t |
e6cc62c6 VS |
36287 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t |
36288 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
36289 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
36290 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
36291 | s,@VENDOR@,$VENDOR,;t t |
36292 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
36293 | s,@WXUNIV@,$WXUNIV,;t t |
36294 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
36295 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
672abd7a | 36296 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t |
bb41dcbe | 36297 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t |
c74dc163 | 36298 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
34b08d2c | 36299 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t |
e6cc62c6 VS |
36300 | s,@UNICODE@,$UNICODE,;t t |
36301 | s,@BUILD@,$BUILD,;t t | |
6c67131a VS |
36302 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t |
36303 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
e6cc62c6 VS |
36304 | s,@SHARED@,$SHARED,;t t |
36305 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
36306 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
36307 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
0f1bc9c2 | 36308 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t |
ea66c762 | 36309 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t |
e6cc62c6 VS |
36310 | s,@SET_MAKE@,$SET_MAKE,;t t |
36311 | s,@MAKE_SET@,$MAKE_SET,;t t | |
36312 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
6b9d41a5 | 36313 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
36314 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
36315 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
36316 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
36317 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
36318 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
96c1699d | 36319 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t |
e6cc62c6 | 36320 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
131f235d | 36321 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t |
4b1f6360 | 36322 | s,@LIBPREFIX@,$LIBPREFIX,;t t |
e6cc62c6 | 36323 | s,@DLLPREFIX@,$DLLPREFIX,;t t |
131f235d | 36324 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t |
dc838d98 | 36325 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
36326 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
36327 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
131f235d VS |
36328 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t |
36329 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
e6cc62c6 VS |
36330 | s,@PIC_FLAG@,$PIC_FLAG,;t t |
36331 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
36332 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
36333 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
36334 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
36335 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
36336 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 36337 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
45842500 | 36338 | s,@GCC_PCH@,$GCC_PCH,;t t |
d78c94f2 | 36339 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
6c67131a VS |
36340 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t |
36341 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
d78c94f2 | 36342 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
6c67131a VS |
36343 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t |
36344 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
36345 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
36346 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
f95cd8fa | 36347 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 36348 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
45842500 | 36349 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t |
6f628073 | 36350 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
36351 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
36352 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8772a1a7 | 36353 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1,;t t |
250700e4 | 36354 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t |
eb69fda5 | 36355 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8ee2dd05 | 36356 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 36357 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
8772a1a7 | 36358 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1,;t t |
250700e4 | 36359 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t |
eb69fda5 | 36360 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
3af038c0 | 36361 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
36362 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
36363 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
36364 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
36365 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 36366 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 36367 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
250700e4 RD |
36368 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
36369 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
36370 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
8ee2dd05 | 36371 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
45842500 | 36372 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
3d8c1de0 | 36373 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
8772a1a7 | 36374 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t |
3af038c0 VS |
36375 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
36376 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
36377 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
45842500 | 36378 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t |
250700e4 | 36379 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
52a5a009 VS |
36380 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
36381 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
36382 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
36383 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
36384 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
36385 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
36386 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
45842500 | 36387 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t |
250700e4 | 36388 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t |
6f628073 VS |
36389 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
36390 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
36391 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
36392 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 | 36393 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
3af038c0 | 36394 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
8772a1a7 | 36395 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t |
6f628073 VS |
36396 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
36397 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
36398 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
6f628073 VS |
36399 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t |
36400 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
36401 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 36402 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
36403 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
36404 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
96c1699d VS |
36405 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
36406 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
36407 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
6f628073 VS |
36408 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
36409 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
3af038c0 VS |
36410 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
36411 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
36412 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
36413 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
36414 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
66a96744 VS |
36415 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
36416 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
36417 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
6f628073 VS |
36418 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
36419 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
36420 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
36421 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
3af038c0 | 36422 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
66a96744 | 36423 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t |
3af038c0 VS |
36424 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t |
36425 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
36426 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
36427 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
36428 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
36429 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
e6cc62c6 VS |
36430 | s,@PATH_IFS@,$PATH_IFS,;t t |
36431 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
36432 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
36433 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
36434 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
36435 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
cf615ebb VS |
36436 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
36437 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
e6cc62c6 VS |
36438 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t |
36439 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
36440 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
36441 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
36442 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
36443 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
36444 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
36445 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
36446 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
36447 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
36448 | s,@WX_ALL@,$WX_ALL,;t t | |
36449 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
36450 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
36451 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
36452 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
36453 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
36454 | s,@USE_GUI@,$USE_GUI,;t t | |
36455 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
36456 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
36457 | s,@TOOLKIT@,$TOOLKIT,;t t | |
36458 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
36459 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
36460 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
36461 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
36462 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
36463 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
36464 | s,@cross_compiling@,$cross_compiling,;t t | |
67c13b6c | 36465 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
e6cc62c6 VS |
36466 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t |
36467 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
36468 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
36469 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
36470 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
36471 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
ffef10f6 | 36472 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t |
e6cc62c6 | 36473 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
f0290fca VS |
36474 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
36475 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
36476 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
36477 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
36478 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
36479 | s,@GUIDIST@,$GUIDIST,;t t | |
36480 | s,@PORT_FILES@,$PORT_FILES,;t t | |
36481 | s,@DISTDIR@,$DISTDIR,;t t | |
36482 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
36483 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
36484 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
36485 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
36486 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
36487 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
36488 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
36489 | s,@RESFLAGS@,$RESFLAGS,;t t | |
36490 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
36491 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
36492 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
36493 | s,@MACOSX_BUNDLE@,$MACOSX_BUNDLE,;t t | |
36494 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
36495 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
36496 | s,@MACSETFILE@,$MACSETFILE,;t t | |
36497 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
36498 | s,@GCC@,$GCC,;t t | |
36499 | s,@DLLTOOL@,$DLLTOOL,;t t | |
36500 | s,@AS@,$AS,;t t | |
36501 | s,@NM@,$NM,;t t | |
36502 | s,@LD@,$LD,;t t | |
36503 | s,@MAKEINFO@,$MAKEINFO,;t t | |
36504 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
e6cc62c6 VS |
36505 | s,@LIBOBJS@,$LIBOBJS,;t t |
36506 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
36507 | CEOF |
36508 | ||
e6cc62c6 VS |
36509 | _ACEOF |
36510 | ||
36511 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36512 | # Split the substitutions into bite-sized pieces for seds with | |
36513 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
36514 | ac_max_sed_lines=48 | |
36515 | ac_sed_frag=1 # Number of current file. | |
36516 | ac_beg=1 # First line for current file. | |
36517 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
36518 | ac_more_lines=: | |
36519 | ac_sed_cmds= | |
36520 | while $ac_more_lines; do | |
36521 | if test $ac_beg -gt 1; then | |
36522 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 36523 | else |
e6cc62c6 VS |
36524 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
36525 | fi | |
36526 | if test ! -s $tmp/subs.frag; then | |
36527 | ac_more_lines=false | |
36528 | else | |
36529 | # The purpose of the label and of the branching condition is to | |
36530 | # speed up the sed processing (if there are no `@' at all, there | |
36531 | # is no need to browse any of the substitutions). | |
36532 | # These are the two extra sed commands mentioned above. | |
36533 | (echo ':t | |
36534 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
36535 | if test -z "$ac_sed_cmds"; then | |
36536 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
36537 | else | |
36538 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
36539 | fi | |
36540 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
36541 | ac_beg=$ac_end | |
36542 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 36543 | fi |
e6cc62c6 VS |
36544 | done |
36545 | if test -z "$ac_sed_cmds"; then | |
36546 | ac_sed_cmds=cat | |
10f2d63a | 36547 | fi |
e6cc62c6 | 36548 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 36549 | |
e6cc62c6 VS |
36550 | _ACEOF |
36551 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36552 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 36553 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
36554 | case $ac_file in |
36555 | - | *:- | *:-:* ) # input from stdin | |
36556 | cat >$tmp/stdin | |
36557 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36558 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36559 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36560 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36561 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a | 36562 | esac |
247f5006 | 36563 | |
e6cc62c6 VS |
36564 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
36565 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
36566 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36567 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
36568 | X"$ac_file" : 'X\(//\)$' \| \ | |
36569 | X"$ac_file" : 'X\(/\)' \| \ | |
36570 | . : '\(.\)' 2>/dev/null || | |
36571 | echo X"$ac_file" | | |
36572 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36573 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36574 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36575 | /^X\(\/\).*/{ s//\1/; q; } | |
36576 | s/.*/./; q'` | |
36577 | { if $as_mkdir_p; then | |
36578 | mkdir -p "$ac_dir" | |
a0b9e27f | 36579 | else |
e6cc62c6 VS |
36580 | as_dir="$ac_dir" |
36581 | as_dirs= | |
36582 | while test ! -d "$as_dir"; do | |
36583 | as_dirs="$as_dir $as_dirs" | |
36584 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36585 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36586 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36587 | X"$as_dir" : 'X\(//\)$' \| \ | |
36588 | X"$as_dir" : 'X\(/\)' \| \ | |
36589 | . : '\(.\)' 2>/dev/null || | |
36590 | echo X"$as_dir" | | |
36591 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36592 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36593 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36594 | /^X\(\/\).*/{ s//\1/; q; } | |
36595 | s/.*/./; q'` | |
36596 | done | |
36597 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36598 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36599 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36600 | { (exit 1); exit 1; }; }; } | |
36601 | ||
36602 | ac_builddir=. | |
36603 | ||
36604 | if test "$ac_dir" != .; then | |
36605 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36606 | # A "../" for each directory in $ac_dir_suffix. | |
36607 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36608 | else | |
36609 | ac_dir_suffix= ac_top_builddir= | |
36610 | fi | |
247f5006 | 36611 | |
e6cc62c6 VS |
36612 | case $srcdir in |
36613 | .) # No --srcdir option. We are building in place. | |
36614 | ac_srcdir=. | |
36615 | if test -z "$ac_top_builddir"; then | |
36616 | ac_top_srcdir=. | |
36617 | else | |
36618 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36619 | fi ;; | |
36620 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36621 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36622 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 36623 | *) # Relative path. |
e6cc62c6 VS |
36624 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
36625 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36626 | esac | |
36627 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36628 | # absolute. | |
36629 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36630 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36631 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36632 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
10f2d63a | 36633 | |
247f5006 | 36634 | |
e6cc62c6 VS |
36635 | case $INSTALL in |
36636 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
36637 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 36638 | esac |
247f5006 | 36639 | |
e6cc62c6 VS |
36640 | if test x"$ac_file" != x-; then |
36641 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
36642 | echo "$as_me: creating $ac_file" >&6;} | |
36643 | rm -f "$ac_file" | |
36644 | fi | |
36645 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
36646 | # use $as_me), people would be surprised to read: | |
36647 | # /* config.h. Generated by config.status. */ | |
36648 | if test x"$ac_file" = x-; then | |
36649 | configure_input= | |
36650 | else | |
36651 | configure_input="$ac_file. " | |
36652 | fi | |
36653 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
36654 | sed 's,.*/,,'` by configure." | |
36655 | ||
36656 | # First look for the input files in the build tree, otherwise in the | |
36657 | # src tree. | |
36658 | ac_file_inputs=`IFS=: | |
36659 | for f in $ac_file_in; do | |
36660 | case $f in | |
36661 | -) echo $tmp/stdin ;; | |
36662 | [\\/$]*) | |
36663 | # Absolute (can't be DOS-style, as IFS=:) | |
36664 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36665 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36666 | { (exit 1); exit 1; }; } | |
36667 | echo $f;; | |
36668 | *) # Relative | |
36669 | if test -f "$f"; then | |
36670 | # Build tree | |
36671 | echo $f | |
36672 | elif test -f "$srcdir/$f"; then | |
36673 | # Source tree | |
36674 | echo $srcdir/$f | |
36675 | else | |
36676 | # /dev/null tree | |
36677 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36678 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36679 | { (exit 1); exit 1; }; } | |
36680 | fi;; | |
36681 | esac | |
36682 | done` || { (exit 1); exit 1; } | |
36683 | _ACEOF | |
36684 | cat >>$CONFIG_STATUS <<_ACEOF | |
36685 | sed "$ac_vpsub | |
36686 | $extrasub | |
36687 | _ACEOF | |
36688 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36689 | :t | |
36690 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
36691 | s,@configure_input@,$configure_input,;t t | |
36692 | s,@srcdir@,$ac_srcdir,;t t | |
36693 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
36694 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
36695 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
36696 | s,@builddir@,$ac_builddir,;t t | |
36697 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
36698 | s,@top_builddir@,$ac_top_builddir,;t t | |
36699 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
36700 | s,@INSTALL@,$ac_INSTALL,;t t | |
36701 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
36702 | rm -f $tmp/stdin | |
36703 | if test x"$ac_file" != x-; then | |
36704 | mv $tmp/out $ac_file | |
36705 | else | |
36706 | cat $tmp/out | |
36707 | rm -f $tmp/out | |
36708 | fi | |
36709 | ||
36710 | done | |
36711 | _ACEOF | |
36712 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36713 | ||
36714 | # | |
36715 | # CONFIG_HEADER section. | |
36716 | # | |
10f2d63a VZ |
36717 | |
36718 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
36719 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
36720 | # | |
36721 | # ac_d sets the value in "#define NAME VALUE" lines. | |
e6cc62c6 VS |
36722 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
36723 | ac_dB='[ ].*$,\1#\2' | |
36724 | ac_dC=' ' | |
36725 | ac_dD=',;t' | |
36726 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
36727 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
36728 | ac_uB='$,\1#\2define\3' | |
10f2d63a | 36729 | ac_uC=' ' |
e6cc62c6 VS |
36730 | ac_uD=',;t' |
36731 | ||
36732 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 36733 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
36734 | case $ac_file in |
36735 | - | *:- | *:-:* ) # input from stdin | |
36736 | cat >$tmp/stdin | |
36737 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36738 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36739 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36740 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
36741 | * ) ac_file_in=$ac_file.in ;; | |
10f2d63a VZ |
36742 | esac |
36743 | ||
e6cc62c6 VS |
36744 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
36745 | echo "$as_me: creating $ac_file" >&6;} | |
36746 | ||
36747 | # First look for the input files in the build tree, otherwise in the | |
36748 | # src tree. | |
36749 | ac_file_inputs=`IFS=: | |
36750 | for f in $ac_file_in; do | |
36751 | case $f in | |
36752 | -) echo $tmp/stdin ;; | |
36753 | [\\/$]*) | |
36754 | # Absolute (can't be DOS-style, as IFS=:) | |
36755 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36756 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36757 | { (exit 1); exit 1; }; } | |
36758 | echo $f;; | |
36759 | *) # Relative | |
36760 | if test -f "$f"; then | |
36761 | # Build tree | |
36762 | echo $f | |
36763 | elif test -f "$srcdir/$f"; then | |
36764 | # Source tree | |
36765 | echo $srcdir/$f | |
36766 | else | |
36767 | # /dev/null tree | |
36768 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
36769 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
36770 | { (exit 1); exit 1; }; } | |
36771 | fi;; | |
36772 | esac | |
36773 | done` || { (exit 1); exit 1; } | |
36774 | # Remove the trailing spaces. | |
36775 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
36776 | ||
36777 | _ACEOF | |
36778 | ||
36779 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
36780 | # `conftest.undefs', that substitutes the proper values into | |
36781 | # config.h.in to produce config.h. The first handles `#define' | |
36782 | # templates, and the second `#undef' templates. | |
36783 | # And first: Protect against being on the right side of a sed subst in | |
36784 | # config.status. Protect against being in an unquoted here document | |
36785 | # in config.status. | |
36786 | rm -f conftest.defines conftest.undefs | |
36787 | # Using a here document instead of a string reduces the quoting nightmare. | |
36788 | # Putting comments in sed scripts is not portable. | |
36789 | # | |
36790 | # `end' is used to avoid that the second main sed command (meant for | |
36791 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
36792 | # See the Autoconf documentation for `clear'. | |
36793 | cat >confdef2sed.sed <<\_ACEOF | |
36794 | s/[\\&,]/\\&/g | |
36795 | s,[\\$`],\\&,g | |
36796 | t clear | |
36797 | : clear | |
36798 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
36799 | t end | |
36800 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
36801 | : end | |
36802 | _ACEOF | |
36803 | # If some macros were called several times there might be several times | |
36804 | # the same #defines, which is useless. Nevertheless, we may not want to | |
36805 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
36806 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
36807 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
36808 | rm -f confdef2sed.sed | |
10f2d63a VZ |
36809 | |
36810 | # This sed command replaces #undef with comments. This is necessary, for | |
36811 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
36812 | # on some systems where configure will not decide to define it. | |
e6cc62c6 VS |
36813 | cat >>conftest.undefs <<\_ACEOF |
36814 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
36815 | _ACEOF | |
36816 | ||
36817 | # Break up conftest.defines because some shells have a limit on the size | |
36818 | # of here documents, and old seds have small limits too (100 cmds). | |
36819 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
36820 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
36821 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
36822 | echo ' :' >>$CONFIG_STATUS | |
36823 | rm -f conftest.tail | |
36824 | while grep . conftest.defines >/dev/null | |
36825 | do | |
36826 | # Write a limited-size here document to $tmp/defines.sed. | |
36827 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
36828 | # Speed up: don't consider the non `#define' lines. | |
36829 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
36830 | # Work around the forget-to-reset-the-flag bug. | |
36831 | echo 't clr' >>$CONFIG_STATUS | |
36832 | echo ': clr' >>$CONFIG_STATUS | |
36833 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
36834 | echo 'CEOF | |
36835 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
36836 | rm -f $tmp/in | |
36837 | mv $tmp/out $tmp/in | |
36838 | ' >>$CONFIG_STATUS | |
36839 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
36840 | rm -f conftest.defines | |
36841 | mv conftest.tail conftest.defines | |
36842 | done | |
36843 | rm -f conftest.defines | |
36844 | echo ' fi # grep' >>$CONFIG_STATUS | |
36845 | echo >>$CONFIG_STATUS | |
10f2d63a | 36846 | |
e6cc62c6 VS |
36847 | # Break up conftest.undefs because some shells have a limit on the size |
36848 | # of here documents, and old seds have small limits too (100 cmds). | |
36849 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 36850 | rm -f conftest.tail |
e6cc62c6 | 36851 | while grep . conftest.undefs >/dev/null |
10f2d63a | 36852 | do |
e6cc62c6 VS |
36853 | # Write a limited-size here document to $tmp/undefs.sed. |
36854 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
36855 | # Speed up: don't consider the non `#undef' | |
36856 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
36857 | # Work around the forget-to-reset-the-flag bug. | |
36858 | echo 't clr' >>$CONFIG_STATUS | |
36859 | echo ': clr' >>$CONFIG_STATUS | |
36860 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 36861 | echo 'CEOF |
e6cc62c6 VS |
36862 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
36863 | rm -f $tmp/in | |
36864 | mv $tmp/out $tmp/in | |
36865 | ' >>$CONFIG_STATUS | |
36866 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
36867 | rm -f conftest.undefs | |
36868 | mv conftest.tail conftest.undefs | |
10f2d63a | 36869 | done |
e6cc62c6 VS |
36870 | rm -f conftest.undefs |
36871 | ||
36872 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36873 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
36874 | # use $as_me), people would be surprised to read: | |
36875 | # /* config.h. Generated by config.status. */ | |
36876 | if test x"$ac_file" = x-; then | |
36877 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 36878 | else |
e6cc62c6 | 36879 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 36880 | fi |
e6cc62c6 VS |
36881 | cat $tmp/in >>$tmp/config.h |
36882 | rm -f $tmp/in | |
36883 | if test x"$ac_file" != x-; then | |
36884 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
36885 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
36886 | echo "$as_me: $ac_file is unchanged" >&6;} | |
36887 | else | |
36888 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
36889 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36890 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
36891 | X"$ac_file" : 'X\(//\)$' \| \ | |
36892 | X"$ac_file" : 'X\(/\)' \| \ | |
36893 | . : '\(.\)' 2>/dev/null || | |
36894 | echo X"$ac_file" | | |
36895 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36896 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36897 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36898 | /^X\(\/\).*/{ s//\1/; q; } | |
36899 | s/.*/./; q'` | |
36900 | { if $as_mkdir_p; then | |
36901 | mkdir -p "$ac_dir" | |
36902 | else | |
36903 | as_dir="$ac_dir" | |
36904 | as_dirs= | |
36905 | while test ! -d "$as_dir"; do | |
36906 | as_dirs="$as_dir $as_dirs" | |
36907 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
36908 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36909 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
36910 | X"$as_dir" : 'X\(//\)$' \| \ | |
36911 | X"$as_dir" : 'X\(/\)' \| \ | |
36912 | . : '\(.\)' 2>/dev/null || | |
36913 | echo X"$as_dir" | | |
36914 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36915 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36916 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36917 | /^X\(\/\).*/{ s//\1/; q; } | |
36918 | s/.*/./; q'` | |
36919 | done | |
36920 | test ! -n "$as_dirs" || mkdir $as_dirs | |
36921 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
36922 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
36923 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 36924 | |
e6cc62c6 VS |
36925 | rm -f $ac_file |
36926 | mv $tmp/config.h $ac_file | |
36927 | fi | |
36928 | else | |
36929 | cat $tmp/config.h | |
36930 | rm -f $tmp/config.h | |
36931 | fi | |
36932 | done | |
36933 | _ACEOF | |
36934 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 36935 | |
e6cc62c6 VS |
36936 | # |
36937 | # CONFIG_COMMANDS section. | |
36938 | # | |
36939 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
36940 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
36941 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
36942 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
36943 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
36944 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
36945 | X"$ac_dest" : 'X\(//\)$' \| \ | |
36946 | X"$ac_dest" : 'X\(/\)' \| \ | |
36947 | . : '\(.\)' 2>/dev/null || | |
36948 | echo X"$ac_dest" | | |
36949 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
36950 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
36951 | /^X\(\/\/\)$/{ s//\1/; q; } | |
36952 | /^X\(\/\).*/{ s//\1/; q; } | |
36953 | s/.*/./; q'` | |
36954 | ac_builddir=. | |
36955 | ||
36956 | if test "$ac_dir" != .; then | |
36957 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
36958 | # A "../" for each directory in $ac_dir_suffix. | |
36959 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
36960 | else | |
36961 | ac_dir_suffix= ac_top_builddir= | |
36962 | fi | |
36963 | ||
36964 | case $srcdir in | |
36965 | .) # No --srcdir option. We are building in place. | |
36966 | ac_srcdir=. | |
36967 | if test -z "$ac_top_builddir"; then | |
36968 | ac_top_srcdir=. | |
36969 | else | |
36970 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
36971 | fi ;; | |
36972 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
36973 | ac_srcdir=$srcdir$ac_dir_suffix; | |
36974 | ac_top_srcdir=$srcdir ;; | |
36975 | *) # Relative path. | |
36976 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
36977 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
36978 | esac | |
36979 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
36980 | # absolute. | |
36981 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
36982 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
36983 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
36984 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
36985 | ||
36986 | ||
36987 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
36988 | echo "$as_me: executing $ac_dest commands" >&6;} | |
36989 | case $ac_dest in | |
36990 | default ) | |
652d930d | 36991 | if test ! -h wx-config; then |
991a5759 | 36992 | chmod +x wx-config |
3a922bb4 RL |
36993 | mv wx-config wx${TOOLCHAIN_NAME}-config |
36994 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 36995 | fi |
665bbe97 | 36996 | |
00cf1208 RR |
36997 | if test ! -d lib; then |
36998 | mkdir lib | |
36999 | fi | |
37000 | if test ! -d lib/wx; then | |
37001 | mkdir lib/wx | |
37002 | fi | |
37003 | if test ! -d lib/wx/include; then | |
37004 | mkdir lib/wx/include | |
37005 | fi | |
3a922bb4 RL |
37006 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
37007 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 37008 | fi |
3a922bb4 RL |
37009 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
37010 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
37011 | fi |
37012 | if test -f setup.h; then | |
3a922bb4 | 37013 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 37014 | fi |
e6cc62c6 VS |
37015 | ;; |
37016 | esac | |
37017 | done | |
37018 | _ACEOF | |
2224580a | 37019 | |
e6cc62c6 | 37020 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 37021 | |
e6cc62c6 VS |
37022 | { (exit 0); exit 0; } |
37023 | _ACEOF | |
37024 | chmod +x $CONFIG_STATUS | |
37025 | ac_clean_files=$ac_clean_files_save | |
37026 | ||
37027 | ||
37028 | # configure is writing to config.log, and then calls config.status. | |
37029 | # config.status does its own redirection, appending to config.log. | |
37030 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
37031 | # by configure, so config.status won't be able to write to it; its | |
37032 | # output is simply discarded. So we exec the FD to /dev/null, | |
37033 | # effectively closing config.log, so it can be properly (re)opened and | |
37034 | # appended to by config.status. When coming back to configure, we | |
37035 | # need to make the FD available again. | |
37036 | if test "$no_create" != yes; then | |
37037 | ac_cs_success=: | |
37038 | ac_config_status_args= | |
37039 | test "$silent" = yes && | |
37040 | ac_config_status_args="$ac_config_status_args --quiet" | |
37041 | exec 5>/dev/null | |
37042 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
37043 | exec 5>>config.log | |
37044 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
37045 | # would make configure fail if this is the last instruction. | |
37046 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
37047 | fi |
37048 | ||
672abd7a VS |
37049 | # |
37050 | # CONFIG_SUBDIRS section. | |
37051 | # | |
37052 | if test "$no_recursion" != yes; then | |
37053 | ||
37054 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
37055 | ac_sub_configure_args= | |
37056 | ac_prev= | |
37057 | for ac_arg in $ac_configure_args; do | |
37058 | if test -n "$ac_prev"; then | |
37059 | ac_prev= | |
37060 | continue | |
37061 | fi | |
37062 | case $ac_arg in | |
37063 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
37064 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
37065 | ac_prev=cache_file ;; | |
37066 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
37067 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
37068 | | --c=*) | |
37069 | ;; | |
37070 | --config-cache | -C) | |
37071 | ;; | |
37072 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
37073 | ac_prev=srcdir ;; | |
37074 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
37075 | ;; | |
37076 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
37077 | ac_prev=prefix ;; | |
37078 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
37079 | ;; | |
37080 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
37081 | esac | |
37082 | done | |
37083 | ||
37084 | # Always prepend --prefix to ensure using the same prefix | |
37085 | # in subdir configurations. | |
37086 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
37087 | ||
37088 | ac_popdir=`pwd` | |
37089 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
37090 | ||
37091 | # Do not complain, so a configure script can configure whichever | |
37092 | # parts of a large source tree are present. | |
37093 | test -d $srcdir/$ac_dir || continue | |
37094 | ||
37095 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
37096 | echo "$as_me: configuring in $ac_dir" >&6;} | |
37097 | { if $as_mkdir_p; then | |
37098 | mkdir -p "$ac_dir" | |
37099 | else | |
37100 | as_dir="$ac_dir" | |
37101 | as_dirs= | |
37102 | while test ! -d "$as_dir"; do | |
37103 | as_dirs="$as_dir $as_dirs" | |
37104 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
37105 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
37106 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
37107 | X"$as_dir" : 'X\(//\)$' \| \ | |
37108 | X"$as_dir" : 'X\(/\)' \| \ | |
37109 | . : '\(.\)' 2>/dev/null || | |
37110 | echo X"$as_dir" | | |
37111 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
37112 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
37113 | /^X\(\/\/\)$/{ s//\1/; q; } | |
37114 | /^X\(\/\).*/{ s//\1/; q; } | |
37115 | s/.*/./; q'` | |
37116 | done | |
37117 | test ! -n "$as_dirs" || mkdir $as_dirs | |
37118 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
37119 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
37120 | { (exit 1); exit 1; }; }; } | |
37121 | ||
37122 | ac_builddir=. | |
37123 | ||
37124 | if test "$ac_dir" != .; then | |
37125 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
37126 | # A "../" for each directory in $ac_dir_suffix. | |
37127 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
37128 | else | |
37129 | ac_dir_suffix= ac_top_builddir= | |
37130 | fi | |
37131 | ||
37132 | case $srcdir in | |
37133 | .) # No --srcdir option. We are building in place. | |
37134 | ac_srcdir=. | |
37135 | if test -z "$ac_top_builddir"; then | |
37136 | ac_top_srcdir=. | |
37137 | else | |
37138 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
37139 | fi ;; | |
37140 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
37141 | ac_srcdir=$srcdir$ac_dir_suffix; | |
37142 | ac_top_srcdir=$srcdir ;; | |
37143 | *) # Relative path. | |
37144 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
37145 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
37146 | esac | |
37147 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
37148 | # absolute. | |
37149 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
37150 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
37151 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
37152 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
37153 | ||
37154 | ||
37155 | cd $ac_dir | |
37156 | ||
37157 | # Check for guested configure; otherwise get Cygnus style configure. | |
37158 | if test -f $ac_srcdir/configure.gnu; then | |
37159 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
37160 | elif test -f $ac_srcdir/configure; then | |
37161 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
37162 | elif test -f $ac_srcdir/configure.in; then | |
37163 | ac_sub_configure=$ac_configure | |
37164 | else | |
37165 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
37166 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
37167 | ac_sub_configure= | |
37168 | fi | |
37169 | ||
37170 | # The recursion is here. | |
37171 | if test -n "$ac_sub_configure"; then | |
37172 | # Make the cache file name correct relative to the subdirectory. | |
37173 | case $cache_file in | |
37174 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
37175 | *) # Relative path. | |
37176 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; | |
37177 | esac | |
37178 | ||
37179 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
37180 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
37181 | # The eval makes quoting arguments work. | |
37182 | eval $ac_sub_configure $ac_sub_configure_args \ | |
37183 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || | |
37184 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
37185 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
37186 | { (exit 1); exit 1; }; } | |
37187 | fi | |
37188 | ||
37189 | cd $ac_popdir | |
37190 | done | |
37191 | fi | |
37192 | ||
8284b0c5 | 37193 | |
2b5f62a0 VZ |
37194 | echo |
37195 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
37196 | echo "" | |
37197 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT:-base only}" | |
9747f85d | 37198 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
37199 | |
37200 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
37201 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
37202 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
37203 | ||
0c98a14e | 37204 | echo " What level of wxWindows compatibility should be enabled?" |
65d8ef1e VS |
37205 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
37206 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 37207 | |
2b5f62a0 VZ |
37208 | echo " Which libraries should wxWindows use?" |
37209 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
37210 | echo " png ${wxUSE_LIBPNG-none}" | |
37211 | echo " regex ${wxUSE_REGEX}" | |
37212 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
37213 | echo " zlib ${wxUSE_ZLIB}" | |
fd3d7534 | 37214 | echo " odbc ${wxUSE_ODBC}" |
5f0b6dff | 37215 | echo " expat ${wxUSE_EXPAT}" |
2b5f62a0 VZ |
37216 | |
37217 | echo "" | |
37218 |