]>
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. | |
09d3439c | 4 | # Generated by GNU Autoconf 2.57 for wxWindows 2.5.1. |
e6cc62c6 VS |
5 | # |
6 | # Report bugs to <wx-dev@lists.wxwindows.org>. | |
7 | # | |
09d3439c VZ |
8 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
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 | 27 | # Support unset when possible. |
09d3439c | 28 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
e6cc62c6 VS |
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 | |
09d3439c | 47 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
e6cc62c6 VS |
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 | 229 | # Sed expression to map a string onto a valid CPP name. |
09d3439c | 230 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
fe0895cf | 231 | |
e6cc62c6 | 232 | # Sed expression to map a string onto a valid variable name. |
09d3439c | 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' | |
e46d2a18 VS |
272 | PACKAGE_VERSION='2.5.1' |
273 | PACKAGE_STRING='wxWindows 2.5.1' | |
e6cc62c6 VS |
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" |
09d3439c | 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_HTML 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 ac_ct_AR ac_ct_STRIP NM ac_ct_NM 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_GUI_1 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_UNIX_1_USE_GUI_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_EXCEPTIONS_0 COND_USE_EXCEPTIONS_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_ODBC_1 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 LIBWXMACRES MACRESCOMP MACSETFILE MACRESWXCONFIG GCC DLLTOOL AS 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 \ | |
09d3439c | 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\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
09d3439c VZ |
714 | X"$0" : 'X\(//\)[^/]' \| \ |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
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 | |
e46d2a18 | 796 | \`configure' configures wxWindows 2.5.1 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 | |
09d3439c | 821 | [$ac_default_prefix] |
e6cc62c6 | 822 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
09d3439c | 823 | [PREFIX] |
e6cc62c6 VS |
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 | |
e46d2a18 | 862 | short | recursive ) echo "Configuration of wxWindows 2.5.1:";; |
e6cc62c6 VS |
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 | |
e46d2a18 | 898 | --enable-ole use OLE classes (Win32 only) |
e6cc62c6 VS |
899 | --enable-dataobj use data object classes |
900 | --enable-ipc use interprocess communication (wxSocket etc.) | |
e46d2a18 VS |
901 | --enable-apple_ieee use the Apple IEEE codec |
902 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
e6cc62c6 VS |
903 | --enable-cmdline use wxCmdLineParser class |
904 | --enable-datetime use wxDateTime class | |
e6cc62c6 | 905 | --enable-dialupman use dialup network classes |
e6cc62c6 VS |
906 | --enable-dynlib use wxLibrary class for DLL loading |
907 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
e46d2a18 VS |
908 | --enable-exceptions build exception-safe library |
909 | --enable-ffile use wxFFile class | |
910 | --enable-file use wxFile class | |
911 | --enable-filesystem use virtual file systems classes | |
912 | --enable-fontmap use font encodings conversion classes | |
913 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
914 | --enable-fs_zip use virtual ZIP filesystems | |
e6cc62c6 VS |
915 | --enable-geometry use geometry class |
916 | --enable-log use logging system | |
e46d2a18 VS |
917 | --enable-longlong use wxLongLong class |
918 | --enable-mimetype use wxMimeTypesManager | |
919 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
920 | --enable-snglinst use wxSingleInstanceChecker class | |
e6cc62c6 | 921 | --enable-streams use wxStream etc classes |
e46d2a18 VS |
922 | --enable-std_iostreams use standard C++ stream classes |
923 | --enable-stopwatch use wxStopWatch class | |
924 | --enable-sysoptions use wxSystemOptions | |
e6cc62c6 VS |
925 | --enable-textbuf use wxTextBuffer class |
926 | --enable-textfile use wxTextFile class | |
e46d2a18 | 927 | --enable-timer use wxTimer class |
e6cc62c6 | 928 | --enable-unicode compile wxString with Unicode support |
e46d2a18 | 929 | --enable-wave use wxWave class |
e6cc62c6 | 930 | --enable-wxprintfv use wxWindows implementation of vprintf() |
e6cc62c6 | 931 | --enable-zipstream use wxZipInputStream |
7015ef3a | 932 | --enable-gzstream use wxGzipInputStream |
e6cc62c6 VS |
933 | --enable-url use wxURL class |
934 | --enable-protocol use wxProtocol class | |
935 | --enable-protocol-http HTTP support in wxProtocol | |
936 | --enable-protocol-ftp FTP support in wxProtocol | |
937 | --enable-protocol-file FILE support in wxProtocol | |
938 | --enable-threads use threads | |
939 | --enable-docview use document view architecture | |
940 | --enable-help use help subsystem | |
941 | --enable-mshtmlhelp use MS HTML Help (win32) | |
942 | --enable-html use wxHTML sub-library | |
943 | --enable-htmlhelp use wxHTML-based help | |
944 | --enable-constraints use layout-constraints system | |
945 | --enable-printarch use printing architecture | |
946 | --enable-mdi use multiple document interface architecture | |
947 | --enable-loggui use standard GUI logger | |
948 | --enable-logwin use wxLogWindow | |
949 | --enable-logdialog use wxLogDialog | |
950 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
951 | --enable-prologio not available; see contrib | |
952 | --enable-resources not available; see contrib | |
953 | --enable-clipboard use wxClipboard class | |
954 | --enable-dnd use Drag'n'Drop classes | |
955 | --enable-metafile use win32 metafiles | |
956 | --enable-controls use all usual controls | |
957 | --enable-accel use accelerators | |
958 | --enable-button use wxButton class | |
959 | --enable-bmpbutton use wxBitmapButton class | |
960 | --enable-calendar use wxCalendarCtrl class | |
961 | --enable-caret use wxCaret class | |
962 | --enable-checkbox use wxCheckBox class | |
963 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
964 | --enable-choice use wxChoice class | |
965 | --enable-combobox use wxComboBox class | |
966 | --enable-display use wxDisplay class | |
967 | --enable-gauge use wxGauge class | |
968 | --enable-grid use wxGrid class | |
969 | --enable-imaglist use wxImageList class | |
0e012a93 | 970 | --enable-listbook use wxListbook class |
e6cc62c6 VS |
971 | --enable-listbox use wxListBox class |
972 | --enable-listctrl use wxListCtrl class | |
973 | --enable-notebook use wxNotebook class | |
974 | --enable-radiobox use wxRadioBox class | |
975 | --enable-radiobtn use wxRadioButton class | |
976 | --enable-sash use wxSashWindow class | |
977 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
978 | --enable-slider use wxSlider class | |
979 | --enable-spinbtn use wxSpinButton class | |
980 | --enable-spinctrl use wxSpinCtrl class | |
981 | --enable-splitter use wxSplitterWindow class | |
982 | --enable-statbmp use wxStaticBitmap class | |
983 | --enable-statbox use wxStaticBox class | |
984 | --enable-statline use wxStaticLine class | |
985 | --enable-stattext use wxStaticText class | |
986 | --enable-statusbar use wxStatusBar class | |
987 | --enable-tabdialog use wxTabControl class | |
988 | --enable-textctrl use wxTextCtrl class | |
989 | --enable-togglebtn use wxToggleButton class | |
990 | --enable-toolbar use wxToolBar class | |
991 | --enable-tbarnative use native wxToolBar class | |
992 | --enable-tbarsmpl use wxToolBarSimple class | |
993 | --enable-treectrl use wxTreeCtrl class | |
994 | --enable-tipwindow use wxTipWindow class | |
995 | --enable-popupwin use wxPopUpWindow class | |
996 | --enable-commondlg use all common dialogs | |
997 | --enable-choicedlg use wxChoiceDialog | |
998 | --enable-coldlg use wxColourDialog | |
999 | --enable-filedlg use wxFileDialog | |
1000 | --enable-finddlg use wxFindReplaceDialog | |
1001 | --enable-fontdlg use wxFontDialog | |
1002 | --enable-dirdlg use wxDirDialog | |
1003 | --enable-msgdlg use wxMessageDialog | |
1004 | --enable-numberdlg use wxNumberEntryDialog | |
1005 | --enable-splash use wxSplashScreen | |
1006 | --enable-textdlg use wxTextDialog | |
1007 | --enable-tipdlg use startup tips | |
1008 | --enable-progressdlg use wxProgressDialog | |
1009 | --enable-wizarddlg use wxWizard | |
1010 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1011 | --enable-miniframe use wxMiniFrame class | |
1012 | --enable-tooltips use wxToolTip class | |
1013 | --enable-splines use spline drawing code | |
1014 | --enable-validators use wxValidator and derived classes | |
1015 | --enable-busyinfo use wxBusyInfo | |
1016 | --enable-joystick use wxJoystick (Linux only) | |
1017 | --enable-metafiles use wxMetaFile (Windows only) | |
1018 | --enable-dragimage use wxDragImage | |
1019 | --enable-accessibility enable accessibility support | |
1020 | --enable-palette use wxPalette class | |
1021 | --enable-image use wxImage class | |
1022 | --enable-gif use gif images (GIF file format) | |
1023 | --enable-pcx use pcx images (PCX file format) | |
1024 | --enable-iff use iff images (IFF file format) | |
1025 | --enable-pnm use pnm images (PNM file format) | |
1026 | --enable-xpm use xpm images (XPM file format) | |
1027 | --enable-icocur use Windows ICO and CUR formats | |
029b47ad VS |
1028 | --enable-official_build official build of wxWindows (win32 DLL only) |
1029 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
e6cc62c6 VS |
1030 | --disable-largefile omit support for large files |
1031 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1032 | --disable-gtktest Do not try to compile and run a test GTK program | |
45842500 | 1033 | --disable-precomp-headers don't use precompiled headers even if compiler can |
e6cc62c6 VS |
1034 | |
1035 | Optional Packages: | |
1036 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1037 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1038 | --with-gtk use GTK+ | |
1039 | --with-motif use Motif/Lesstif | |
1040 | --with-mac use Mac OS X | |
1041 | --with-cocoa use Cocoa | |
1042 | --with-wine use Wine | |
1043 | --with-msw use MS-Windows | |
1044 | --with-pm use OS/2 Presentation Manager | |
1045 | --with-mgl use SciTech MGL | |
1046 | --with-microwin use MicroWindows | |
1047 | --with-x11 use X11 | |
1048 | --with-libpng use libpng (PNG image format) | |
1049 | --with-libjpeg use libjpeg (JPEG file format) | |
1050 | --with-libtiff use libtiff (TIFF file format) | |
89fe663f | 1051 | --with-libxpm use libxpm (XPM file format) |
3527f29c | 1052 | --with-libmspack use libmspack (CHM help files loading) |
e6cc62c6 VS |
1053 | --with-opengl use OpenGL (or Mesa) |
1054 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1055 | --with-regex enable support for wxRegEx class | |
1056 | --with-zlib use zlib for LZW compression | |
1057 | --with-odbc use the IODBC and wxODBC classes | |
672abd7a | 1058 | --with-expat enable XML support using expat parser |
e6cc62c6 VS |
1059 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) |
1060 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1061 | --with-x use the X Window System | |
1062 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1063 | ||
1064 | Some influential environment variables: | |
1065 | CC C compiler command | |
1066 | CFLAGS C compiler flags | |
1067 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1068 | nonstandard directory <lib dir> | |
1069 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1070 | headers in a nonstandard directory <include dir> | |
1071 | CPP C preprocessor | |
1072 | CXX C++ compiler command | |
1073 | CXXFLAGS C++ compiler flags | |
1074 | CXXCPP C++ preprocessor | |
1075 | ||
1076 | Use these variables to override the choices made by `configure' or to help | |
1077 | it to find libraries and programs with nonstandard names/locations. | |
1078 | ||
1079 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1080 | _ACEOF | |
1081 | fi | |
1082 | ||
1083 | if test "$ac_init_help" = "recursive"; then | |
1084 | # If there are subdirs, report their specific --help. | |
1085 | ac_popdir=`pwd` | |
1086 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1087 | test -d $ac_dir || continue | |
1088 | ac_builddir=. | |
1089 | ||
1090 | if test "$ac_dir" != .; then | |
1091 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1092 | # A "../" for each directory in $ac_dir_suffix. | |
1093 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1094 | else | |
1095 | ac_dir_suffix= ac_top_builddir= | |
1096 | fi | |
1097 | ||
1098 | case $srcdir in | |
1099 | .) # No --srcdir option. We are building in place. | |
1100 | ac_srcdir=. | |
1101 | if test -z "$ac_top_builddir"; then | |
1102 | ac_top_srcdir=. | |
1103 | else | |
1104 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1105 | fi ;; | |
1106 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1107 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1108 | ac_top_srcdir=$srcdir ;; | |
1109 | *) # Relative path. | |
1110 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1111 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1112 | esac | |
09d3439c VZ |
1113 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
1114 | # absolute. | |
1115 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1116 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
1117 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1118 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
e6cc62c6 VS |
1119 | |
1120 | cd $ac_dir | |
1121 | # Check for guested configure; otherwise get Cygnus style configure. | |
1122 | if test -f $ac_srcdir/configure.gnu; then | |
1123 | echo | |
1124 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1125 | elif test -f $ac_srcdir/configure; then | |
1126 | echo | |
1127 | $SHELL $ac_srcdir/configure --help=recursive | |
1128 | elif test -f $ac_srcdir/configure.ac || | |
09d3439c | 1129 | test -f $ac_srcdir/configure.in; then |
e6cc62c6 VS |
1130 | echo |
1131 | $ac_configure --help | |
1132 | else | |
1133 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1134 | fi | |
1135 | cd $ac_popdir | |
1136 | done | |
1137 | fi | |
8284b0c5 | 1138 | |
e6cc62c6 VS |
1139 | test -n "$ac_init_help" && exit 0 |
1140 | if $ac_init_version; then | |
1141 | cat <<\_ACEOF | |
e46d2a18 | 1142 | wxWindows configure 2.5.1 |
09d3439c | 1143 | generated by GNU Autoconf 2.57 |
10f2d63a | 1144 | |
09d3439c VZ |
1145 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
1146 | Free Software Foundation, Inc. | |
e6cc62c6 VS |
1147 | This configure script is free software; the Free Software Foundation |
1148 | gives unlimited permission to copy, distribute and modify it. | |
1149 | _ACEOF | |
1150 | exit 0 | |
7c66a493 | 1151 | fi |
e6cc62c6 VS |
1152 | exec 5>config.log |
1153 | cat >&5 <<_ACEOF | |
1154 | This file contains any messages produced by compilers while | |
1155 | running configure, to aid debugging if configure makes a mistake. | |
1156 | ||
e46d2a18 | 1157 | It was created by wxWindows $as_me 2.5.1, which was |
09d3439c | 1158 | generated by GNU Autoconf 2.57. Invocation command line was |
e6cc62c6 VS |
1159 | |
1160 | $ $0 $@ | |
1161 | ||
1162 | _ACEOF | |
1163 | { | |
1164 | cat <<_ASUNAME | |
1165 | ## --------- ## | |
1166 | ## Platform. ## | |
1167 | ## --------- ## | |
1168 | ||
1169 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1170 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1171 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1172 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1173 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1174 | ||
1175 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1176 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1177 | ||
1178 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1179 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1180 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1181 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1182 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1183 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1184 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1185 | ||
1186 | _ASUNAME | |
1187 | ||
1188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1189 | for as_dir in $PATH | |
1190 | do | |
1191 | IFS=$as_save_IFS | |
1192 | test -z "$as_dir" && as_dir=. | |
1193 | echo "PATH: $as_dir" | |
1194 | done | |
1195 | ||
1196 | } >&5 | |
1197 | ||
1198 | cat >&5 <<_ACEOF | |
1199 | ||
1200 | ||
1201 | ## ----------- ## | |
1202 | ## Core tests. ## | |
1203 | ## ----------- ## | |
1204 | ||
1205 | _ACEOF | |
1206 | ||
1207 | ||
1208 | # Keep a trace of the command line. | |
1209 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1210 | # Strip out --silent because we don't want to record it for future runs. | |
1211 | # Also quote any args containing shell meta-characters. | |
1212 | # Make two passes to allow for proper duplicate-argument suppression. | |
1213 | ac_configure_args= | |
1214 | ac_configure_args0= | |
1215 | ac_configure_args1= | |
1216 | ac_sep= | |
1217 | ac_must_keep_next=false | |
1218 | for ac_pass in 1 2 | |
1219 | do | |
1220 | for ac_arg | |
1221 | do | |
1222 | case $ac_arg in | |
1223 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1224 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1225 | | -silent | --silent | --silen | --sile | --sil) | |
1226 | continue ;; | |
1227 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1228 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1229 | esac | |
1230 | case $ac_pass in | |
1231 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1232 | 2) | |
1233 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1234 | if test $ac_must_keep_next = true; then | |
09d3439c | 1235 | ac_must_keep_next=false # Got value, back to normal. |
e6cc62c6 | 1236 | else |
09d3439c VZ |
1237 | case $ac_arg in |
1238 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1239 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1240 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1241 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1242 | case "$ac_configure_args0 " in | |
1243 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1244 | esac | |
1245 | ;; | |
1246 | -* ) ac_must_keep_next=true ;; | |
1247 | esac | |
e6cc62c6 VS |
1248 | fi |
1249 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1250 | # Get rid of the leading space. | |
1251 | ac_sep=" " | |
1252 | ;; | |
1253 | esac | |
1254 | done | |
1255 | done | |
1256 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1257 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1258 | ||
1259 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1260 | # config.log. We remove comments because anyway the quotes in there | |
1261 | # would cause problems or look ugly. | |
1262 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1263 | # such as our DU 5.0 friend, will then `close' the trap. | |
1264 | trap 'exit_status=$? | |
1265 | # Save into config.log some information that might help in debugging. | |
1266 | { | |
1267 | echo | |
1268 | ||
1269 | cat <<\_ASBOX | |
1270 | ## ---------------- ## | |
1271 | ## Cache variables. ## | |
1272 | ## ---------------- ## | |
1273 | _ASBOX | |
1274 | echo | |
1275 | # The following way of writing the cache mishandles newlines in values, | |
1276 | { | |
1277 | (set) 2>&1 | | |
1278 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1279 | *ac_space=\ *) | |
1280 | sed -n \ | |
09d3439c VZ |
1281 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1282 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
e6cc62c6 VS |
1283 | ;; |
1284 | *) | |
1285 | sed -n \ | |
09d3439c | 1286 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
1287 | ;; |
1288 | esac; | |
1289 | } | |
1290 | echo | |
1291 | ||
1292 | cat <<\_ASBOX | |
1293 | ## ----------------- ## | |
1294 | ## Output variables. ## | |
1295 | ## ----------------- ## | |
1296 | _ASBOX | |
1297 | echo | |
1298 | for ac_var in $ac_subst_vars | |
1299 | do | |
1300 | eval ac_val=$`echo $ac_var` | |
1301 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1302 | done | sort | |
1303 | echo | |
1304 | ||
1305 | if test -n "$ac_subst_files"; then | |
1306 | cat <<\_ASBOX | |
1307 | ## ------------- ## | |
1308 | ## Output files. ## | |
1309 | ## ------------- ## | |
1310 | _ASBOX | |
1311 | echo | |
1312 | for ac_var in $ac_subst_files | |
1313 | do | |
1314 | eval ac_val=$`echo $ac_var` | |
09d3439c | 1315 | echo "$ac_var='"'"'$ac_val'"'"'" |
e6cc62c6 VS |
1316 | done | sort |
1317 | echo | |
1318 | fi | |
1319 | ||
1320 | if test -s confdefs.h; then | |
1321 | cat <<\_ASBOX | |
1322 | ## ----------- ## | |
1323 | ## confdefs.h. ## | |
1324 | ## ----------- ## | |
1325 | _ASBOX | |
1326 | echo | |
1327 | sed "/^$/d" confdefs.h | sort | |
1328 | echo | |
1329 | fi | |
1330 | test "$ac_signal" != 0 && | |
1331 | echo "$as_me: caught signal $ac_signal" | |
1332 | echo "$as_me: exit $exit_status" | |
1333 | } >&5 | |
09d3439c | 1334 | rm -f core core.* *.core && |
e6cc62c6 VS |
1335 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1336 | exit $exit_status | |
1337 | ' 0 | |
1338 | for ac_signal in 1 2 13 15; do | |
1339 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1340 | done | |
1341 | ac_signal=0 | |
1342 | ||
1343 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1344 | rm -rf conftest* confdefs.h | |
1345 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1346 | echo >confdefs.h | |
1347 | ||
1348 | # Predefined preprocessor variables. | |
1349 | ||
1350 | cat >>confdefs.h <<_ACEOF | |
1351 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1352 | _ACEOF | |
1353 | ||
1354 | ||
1355 | cat >>confdefs.h <<_ACEOF | |
1356 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1357 | _ACEOF | |
1358 | ||
1359 | ||
1360 | cat >>confdefs.h <<_ACEOF | |
1361 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1362 | _ACEOF | |
1363 | ||
1364 | ||
1365 | cat >>confdefs.h <<_ACEOF | |
1366 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1367 | _ACEOF | |
1368 | ||
1369 | ||
1370 | cat >>confdefs.h <<_ACEOF | |
1371 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1372 | _ACEOF | |
1373 | ||
1374 | ||
1375 | # Let the site file select an alternate cache file if it wants to. | |
1376 | # Prefer explicitly selected file to automatically selected ones. | |
1377 | if test -z "$CONFIG_SITE"; then | |
1378 | if test "x$prefix" != xNONE; then | |
1379 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1380 | else | |
1381 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1382 | fi | |
1383 | fi | |
1384 | for ac_site_file in $CONFIG_SITE; do | |
1385 | if test -r "$ac_site_file"; then | |
1386 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1387 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1388 | sed 's/^/| /' "$ac_site_file" >&5 | |
1389 | . "$ac_site_file" | |
1390 | fi | |
1391 | done | |
1392 | ||
1393 | if test -r "$cache_file"; then | |
1394 | # Some versions of bash will fail to source /dev/null (special | |
1395 | # files actually), so we avoid doing that. | |
1396 | if test -f "$cache_file"; then | |
1397 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1398 | echo "$as_me: loading cache $cache_file" >&6;} | |
1399 | case $cache_file in | |
1400 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1401 | *) . ./$cache_file;; | |
1402 | esac | |
1403 | fi | |
1404 | else | |
1405 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1406 | echo "$as_me: creating cache $cache_file" >&6;} | |
1407 | >$cache_file | |
1408 | fi | |
1409 | ||
1410 | # Check that the precious variables saved in the cache have kept the same | |
1411 | # value. | |
1412 | ac_cache_corrupted=false | |
1413 | for ac_var in `(set) 2>&1 | | |
09d3439c | 1414 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
e6cc62c6 VS |
1415 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1416 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1417 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1418 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1419 | case $ac_old_set,$ac_new_set in | |
1420 | set,) | |
1421 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1422 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1423 | ac_cache_corrupted=: ;; | |
1424 | ,set) | |
1425 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1426 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1427 | ac_cache_corrupted=: ;; | |
1428 | ,);; | |
1429 | *) | |
1430 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
09d3439c | 1431 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
e6cc62c6 | 1432 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
09d3439c | 1433 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
e6cc62c6 | 1434 | echo "$as_me: former value: $ac_old_val" >&2;} |
09d3439c | 1435 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
e6cc62c6 | 1436 | echo "$as_me: current value: $ac_new_val" >&2;} |
09d3439c | 1437 | ac_cache_corrupted=: |
e6cc62c6 VS |
1438 | fi;; |
1439 | esac | |
1440 | # Pass precious variables to config.status. | |
1441 | if test "$ac_new_set" = set; then | |
1442 | case $ac_new_val in | |
1443 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1444 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1445 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1446 | esac | |
1447 | case " $ac_configure_args " in | |
1448 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1449 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1450 | esac | |
1451 | fi | |
1452 | done | |
1453 | if $ac_cache_corrupted; then | |
1454 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1455 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1456 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1457 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1458 | { (exit 1); exit 1; }; } | |
1459 | fi | |
1460 | ||
1461 | ac_ext=c | |
1462 | ac_cpp='$CPP $CPPFLAGS' | |
1463 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1464 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1465 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1466 | ||
1467 | ||
1468 | ||
1469 | ||
1470 | ||
1471 | ||
1472 | ||
1473 | ||
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
698dcdb6 | 1483 | |
8284b0c5 | 1484 | |
7c66a493 | 1485 | |
a0b9e27f MB |
1486 | |
1487 | ||
a0b9e27f | 1488 | |
a0b9e27f | 1489 | |
a0b9e27f | 1490 | |
a0b9e27f | 1491 | |
a0b9e27f | 1492 | |
a0b9e27f | 1493 | |
e6cc62c6 VS |
1494 | |
1495 | ||
1496 | ac_aux_dir= | |
1497 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1498 | if test -f $ac_dir/install-sh; then | |
1499 | ac_aux_dir=$ac_dir | |
1500 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1501 | break | |
1502 | elif test -f $ac_dir/install.sh; then | |
1503 | ac_aux_dir=$ac_dir | |
1504 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1505 | break | |
1506 | elif test -f $ac_dir/shtool; then | |
1507 | ac_aux_dir=$ac_dir | |
1508 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1509 | break | |
1510 | fi | |
1511 | done | |
1512 | if test -z "$ac_aux_dir"; then | |
1513 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1514 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1515 | { (exit 1); exit 1; }; } | |
1516 | fi | |
1517 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1518 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1519 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1520 | ||
1521 | # Make sure we can run config.sub. | |
1522 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1523 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1524 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1525 | { (exit 1); exit 1; }; } | |
1526 | ||
1527 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1528 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1529 | if test "${ac_cv_build+set}" = set; then | |
1530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1531 | else | |
1532 | ac_cv_build_alias=$build_alias | |
1533 | test -z "$ac_cv_build_alias" && | |
1534 | ac_cv_build_alias=`$ac_config_guess` | |
1535 | test -z "$ac_cv_build_alias" && | |
1536 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1537 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1538 | { (exit 1); exit 1; }; } | |
1539 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1540 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1541 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1542 | { (exit 1); exit 1; }; } | |
1543 | ||
1544 | fi | |
1545 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1546 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1547 | build=$ac_cv_build | |
1548 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1549 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1550 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1551 | ||
1552 | ||
1553 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1554 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1555 | if test "${ac_cv_host+set}" = set; then | |
1556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1557 | else | |
1558 | ac_cv_host_alias=$host_alias | |
1559 | test -z "$ac_cv_host_alias" && | |
1560 | ac_cv_host_alias=$ac_cv_build_alias | |
1561 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1562 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1563 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1564 | { (exit 1); exit 1; }; } | |
1565 | ||
1566 | fi | |
1567 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1568 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1569 | host=$ac_cv_host | |
1570 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1571 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1572 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1573 | ||
1574 | ||
1575 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1576 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1577 | if test "${ac_cv_target+set}" = set; then | |
1578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1579 | else | |
1580 | ac_cv_target_alias=$target_alias | |
1581 | test "x$ac_cv_target_alias" = "x" && | |
1582 | ac_cv_target_alias=$ac_cv_host_alias | |
1583 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1584 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1585 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1586 | { (exit 1); exit 1; }; } | |
1587 | ||
1588 | fi | |
1589 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1590 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1591 | target=$ac_cv_target | |
1592 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1593 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1594 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1595 | ||
1596 | ||
1597 | # The aliases save the names the user supplied, while $host etc. | |
1598 | # will get canonicalized. | |
1599 | test -n "$target_alias" && | |
7c66a493 VZ |
1600 | test "$program_prefix$program_suffix$program_transform_name" = \ |
1601 | NONENONEs,x,x, && | |
1602 | program_prefix=${target_alias}- | |
8284b0c5 MB |
1603 | |
1604 | ||
a0b9e27f | 1605 | |
10f2d63a | 1606 | WX_MAJOR_VERSION_NUMBER=2 |
34bed6d9 | 1607 | WX_MINOR_VERSION_NUMBER=5 |
e46d2a18 | 1608 | WX_RELEASE_NUMBER=1 |
10f2d63a | 1609 | |
10f2d63a | 1610 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER |
10f2d63a | 1611 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER |
6426998c | 1612 | |
978f1259 RL |
1613 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER |
1614 | ||
7015ef3a | 1615 | WX_CURRENT=1 |
6426998c RL |
1616 | WX_REVISION=0 |
1617 | WX_AGE=0 | |
1618 | ||
8284b0c5 MB |
1619 | |
1620 | ||
10f2d63a | 1621 | USE_UNIX=1 |
73d617c9 | 1622 | USE_OS2=0 |
10f2d63a | 1623 | USE_WIN32=0 |
f9bc1684 | 1624 | USE_DOS=0 |
b12915c1 | 1625 | USE_BEOS=0 |
1216f52d | 1626 | USE_MAC=0 |
b12915c1 | 1627 | |
10f2d63a | 1628 | USE_AIX= |
fe0895cf VS |
1629 | USE_BSD= USE_DARWIN= USE_FREEBSD= |
1630 | USE_GNU= USE_HPUX= | |
89e3b3e4 | 1631 | USE_LINUX= |
f6bcfd97 | 1632 | USE_NETBSD= |
89e3b3e4 | 1633 | USE_OPENBSD= |
fe0895cf VS |
1634 | USE_OSF= USE_SGI= |
1635 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
10f2d63a | 1636 | USE_ULTRIX= |
89e3b3e4 VZ |
1637 | USE_UNIXWARE= |
1638 | ||
1639 | USE_ALPHA= | |
10f2d63a | 1640 | |
ab9b9eab VZ |
1641 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 |
1642 | ||
ac0c4cc3 | 1643 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" |
10f2d63a | 1644 | |
ac0c4cc3 | 1645 | DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1646 | DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1647 | DEFAULT_wxUSE_MAC=0 |
1648 | DEFAULT_wxUSE_MGL=0 | |
1725144d | 1649 | DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1650 | DEFAULT_wxUSE_MOTIF=0 |
1651 | DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1652 | DEFAULT_wxUSE_PM=0 |
f79bd02d | 1653 | DEFAULT_wxUSE_X11=0 |
10f2d63a | 1654 | |
ac0c4cc3 | 1655 | DEFAULT_DEFAULT_wxUSE_COCOA=0 |
10f2d63a | 1656 | DEFAULT_DEFAULT_wxUSE_GTK=0 |
1e6feb95 VZ |
1657 | DEFAULT_DEFAULT_wxUSE_MAC=0 |
1658 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1725144d | 1659 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 |
10f2d63a VZ |
1660 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 |
1661 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
e07802fc | 1662 | DEFAULT_DEFAULT_wxUSE_PM=0 |
f79bd02d | 1663 | DEFAULT_DEFAULT_wxUSE_X11=0 |
10f2d63a | 1664 | |
d6a55c4b | 1665 | PROGRAM_EXT= |
3a922bb4 | 1666 | SO_SUFFIX=so |
fe0895cf | 1667 | SAMPLES_RPATH_FLAG= |
0f1bc9c2 | 1668 | SAMPLES_RPATH_POSTLINK= |
d6a55c4b | 1669 | |
10f2d63a VZ |
1670 | case "${host}" in |
1671 | *-hp-hpux* ) | |
1672 | USE_HPUX=1 | |
1673 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1674 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
3a922bb4 | 1675 | SO_SUFFIX=sl |
e6cc62c6 | 1676 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1677 | #define __HPUX__ 1 |
e6cc62c6 | 1678 | _ACEOF |
10f2d63a VZ |
1679 | |
1680 | ;; | |
1681 | *-*-linux* ) | |
1682 | USE_LINUX=1 | |
e6cc62c6 | 1683 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1684 | #define __LINUX__ 1 |
e6cc62c6 | 1685 | _ACEOF |
10f2d63a VZ |
1686 | |
1687 | TMP=`uname -m` | |
1688 | if test "x$TMP" = "xalpha"; then | |
1689 | USE_ALPHA=1 | |
e6cc62c6 | 1690 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1691 | #define __ALPHA__ 1 |
e6cc62c6 | 1692 | _ACEOF |
fe0895cf VS |
1693 | |
1694 | fi | |
1695 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1696 | ;; | |
1697 | *-*-gnu* ) | |
1698 | USE_GNU=1 | |
e6cc62c6 | 1699 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1700 | #define __GNU__ 1 |
e6cc62c6 | 1701 | _ACEOF |
fe0895cf VS |
1702 | |
1703 | TMP=`uname -m` | |
1704 | if test "x$TMP" = "xalpha"; then | |
1705 | USE_ALPHA=1 | |
e6cc62c6 | 1706 | cat >>confdefs.h <<\_ACEOF |
fe0895cf | 1707 | #define __ALPHA__ 1 |
e6cc62c6 | 1708 | _ACEOF |
10f2d63a VZ |
1709 | |
1710 | fi | |
1711 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1712 | ;; | |
1713 | *-*-irix5* | *-*-irix6* ) | |
1714 | USE_SGI=1 | |
1715 | USE_SVR4=1 | |
e6cc62c6 | 1716 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1717 | #define __SGI__ 1 |
e6cc62c6 | 1718 | _ACEOF |
10f2d63a | 1719 | |
e6cc62c6 | 1720 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1721 | #define __SVR4__ 1 |
e6cc62c6 | 1722 | _ACEOF |
10f2d63a VZ |
1723 | |
1724 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1725 | ;; | |
1726 | *-*-solaris2* ) | |
1727 | USE_SUN=1 | |
1728 | USE_SOLARIS=1 | |
1729 | USE_SVR4=1 | |
e6cc62c6 | 1730 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1731 | #define __SUN__ 1 |
e6cc62c6 | 1732 | _ACEOF |
10f2d63a | 1733 | |
e6cc62c6 | 1734 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1735 | #define __SOLARIS__ 1 |
e6cc62c6 | 1736 | _ACEOF |
10f2d63a | 1737 | |
e6cc62c6 | 1738 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1739 | #define __SVR4__ 1 |
e6cc62c6 | 1740 | _ACEOF |
10f2d63a VZ |
1741 | |
1742 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
ab9b9eab | 1743 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1744 | ;; |
1745 | *-*-sunos4* ) | |
1746 | USE_SUN=1 | |
1747 | USE_SUNOS=1 | |
1748 | USE_BSD=1 | |
e6cc62c6 | 1749 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1750 | #define __SUN__ 1 |
e6cc62c6 | 1751 | _ACEOF |
10f2d63a | 1752 | |
e6cc62c6 | 1753 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1754 | #define __SUNOS__ 1 |
e6cc62c6 | 1755 | _ACEOF |
10f2d63a | 1756 | |
e6cc62c6 | 1757 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1758 | #define __BSD__ 1 |
e6cc62c6 | 1759 | _ACEOF |
10f2d63a VZ |
1760 | |
1761 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1762 | ;; | |
f6bcfd97 | 1763 | *-*-freebsd*) |
10f2d63a VZ |
1764 | USE_BSD=1 |
1765 | USE_FREEBSD=1 | |
e6cc62c6 | 1766 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1767 | #define __FREEBSD__ 1 |
e6cc62c6 | 1768 | _ACEOF |
10f2d63a | 1769 | |
e6cc62c6 | 1770 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1771 | #define __BSD__ 1 |
e6cc62c6 | 1772 | _ACEOF |
95c8801c VS |
1773 | |
1774 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1775 | ;; | |
1776 | *-*-openbsd*) | |
1777 | USE_BSD=1 | |
1778 | USE_OPENBSD=1 | |
e6cc62c6 | 1779 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1780 | #define __OPENBSD__ 1 |
e6cc62c6 | 1781 | _ACEOF |
95c8801c | 1782 | |
e6cc62c6 | 1783 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1784 | #define __BSD__ 1 |
e6cc62c6 | 1785 | _ACEOF |
f6bcfd97 BP |
1786 | |
1787 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1788 | ;; | |
1789 | *-*-netbsd*) | |
1790 | USE_BSD=1 | |
1791 | USE_NETBSD=1 | |
e6cc62c6 | 1792 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1793 | #define __NETBSD__ 1 |
e6cc62c6 | 1794 | _ACEOF |
f6bcfd97 | 1795 | |
e6cc62c6 | 1796 | cat >>confdefs.h <<\_ACEOF |
2b5f62a0 | 1797 | #define __BSD__ 1 |
e6cc62c6 | 1798 | _ACEOF |
10f2d63a VZ |
1799 | |
1800 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1801 | ;; | |
1802 | *-*-osf* ) | |
1803 | USE_ALPHA=1 | |
1804 | USE_OSF=1 | |
e6cc62c6 | 1805 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1806 | #define __ALPHA__ 1 |
e6cc62c6 | 1807 | _ACEOF |
10f2d63a | 1808 | |
e6cc62c6 | 1809 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1810 | #define __OSF__ 1 |
e6cc62c6 | 1811 | _ACEOF |
10f2d63a VZ |
1812 | |
1813 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
f6bcfd97 | 1814 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 |
10f2d63a VZ |
1815 | ;; |
1816 | *-*-dgux5* ) | |
1817 | USE_ALPHA=1 | |
1818 | USE_SVR4=1 | |
e6cc62c6 | 1819 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1820 | #define __ALPHA__ 1 |
e6cc62c6 | 1821 | _ACEOF |
10f2d63a | 1822 | |
e6cc62c6 | 1823 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1824 | #define __SVR4__ 1 |
e6cc62c6 | 1825 | _ACEOF |
10f2d63a VZ |
1826 | |
1827 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1828 | ;; | |
1829 | *-*-sysv5* ) | |
1830 | USE_SYSV=1 | |
1831 | USE_SVR4=1 | |
e6cc62c6 | 1832 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1833 | #define __SYSV__ 1 |
e6cc62c6 | 1834 | _ACEOF |
10f2d63a | 1835 | |
e6cc62c6 | 1836 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1837 | #define __SVR4__ 1 |
e6cc62c6 | 1838 | _ACEOF |
10f2d63a VZ |
1839 | |
1840 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1841 | ;; | |
1842 | *-*-aix* ) | |
1843 | USE_AIX=1 | |
1844 | USE_SYSV=1 | |
1845 | USE_SVR4=1 | |
2b5f62a0 | 1846 | SO_SUFFIX=a |
e6cc62c6 | 1847 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1848 | #define __AIX__ 1 |
e6cc62c6 | 1849 | _ACEOF |
10f2d63a | 1850 | |
e6cc62c6 | 1851 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1852 | #define __SYSV__ 1 |
e6cc62c6 | 1853 | _ACEOF |
10f2d63a | 1854 | |
e6cc62c6 | 1855 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1856 | #define __SVR4__ 1 |
e6cc62c6 | 1857 | _ACEOF |
10f2d63a VZ |
1858 | |
1859 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1860 | ;; | |
1861 | ||
89e3b3e4 VZ |
1862 | *-*-*UnixWare*) |
1863 | USE_SYSV=1 | |
1864 | USE_SVR4=1 | |
1865 | USE_UNIXWARE=1 | |
e6cc62c6 | 1866 | cat >>confdefs.h <<\_ACEOF |
89e3b3e4 | 1867 | #define __UNIXWARE__ 1 |
e6cc62c6 | 1868 | _ACEOF |
89e3b3e4 VZ |
1869 | |
1870 | ;; | |
1871 | ||
1c8183e2 | 1872 | *-*-cygwin* | *-*-mingw32* ) |
17234b26 | 1873 | SO_SUFFIX=dll |
cf27ef00 | 1874 | PROGRAM_EXT=".exe" |
7b7a7637 | 1875 | RESCOMP=windres |
10f2d63a VZ |
1876 | DEFAULT_DEFAULT_wxUSE_MSW=1 |
1877 | ;; | |
1878 | ||
f9bc1684 VS |
1879 | *-pc-msdosdjgpp ) |
1880 | USE_UNIX=0 | |
1881 | USE_DOS=1 | |
e6cc62c6 | 1882 | cat >>confdefs.h <<\_ACEOF |
f9bc1684 | 1883 | #define __DOS__ 1 |
e6cc62c6 | 1884 | _ACEOF |
f9bc1684 VS |
1885 | |
1886 | PROGRAM_EXT=".exe" | |
1887 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
24f5e003 | 1888 | LIBS="$LIBS -lstdc++" |
f9bc1684 VS |
1889 | ;; |
1890 | ||
6fa882bd | 1891 | *-pc-os2_emx | *-pc-os2-emx ) |
e6cc62c6 | 1892 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 1893 | #define __EMX__ 1 |
e6cc62c6 | 1894 | _ACEOF |
10f2d63a | 1895 | |
73d617c9 | 1896 | USE_OS2=1 |
7015ef3a VZ |
1897 | cat >>confdefs.h <<\_ACEOF |
1898 | #define __OS2__ 1 | |
1899 | _ACEOF | |
1900 | ||
cf27ef00 | 1901 | PROGRAM_EXT=".exe" |
e07802fc | 1902 | DEFAULT_DEFAULT_wxUSE_PM=1 |
eb69fda5 | 1903 | CXX=gcc |
73d617c9 | 1904 | LDFLAGS="$LDFLAGS -Zcrtdll -Zsysv-signals" |
d5fc095c VS |
1905 | ac_executable_extensions=".exe" |
1906 | export ac_executable_extensions | |
1907 | ac_save_IFS="$IFS" | |
e46d2a18 | 1908 | IFS='\\' |
d5fc095c VS |
1909 | ac_TEMP_PATH= |
1910 | for ac_dir in $PATH; do | |
1911 | IFS=$ac_save_IFS | |
1912 | if test -z "$ac_TEMP_PATH"; then | |
1913 | ac_TEMP_PATH="$ac_dir" | |
1914 | else | |
1915 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1916 | fi | |
1917 | done | |
1918 | export PATH="$ac_TEMP_PATH" | |
1919 | unset ac_TEMP_PATH | |
10f2d63a VZ |
1920 | ;; |
1921 | ||
d08b457b GD |
1922 | powerpc-*-darwin* ) |
1923 | USE_BSD=1 | |
f11bdd03 | 1924 | USE_DARWIN=1 |
3a922bb4 | 1925 | SO_SUFFIX=dylib |
e6cc62c6 | 1926 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1927 | #define __BSD__ 1 |
e6cc62c6 | 1928 | _ACEOF |
b4085ce6 | 1929 | |
e6cc62c6 | 1930 | cat >>confdefs.h <<\_ACEOF |
f11bdd03 | 1931 | #define __DARWIN__ 1 |
e6cc62c6 | 1932 | _ACEOF |
d08b457b | 1933 | |
e6cc62c6 | 1934 | cat >>confdefs.h <<\_ACEOF |
d08b457b | 1935 | #define __POWERPC__ 1 |
e6cc62c6 | 1936 | _ACEOF |
82d43113 | 1937 | |
e6cc62c6 | 1938 | cat >>confdefs.h <<\_ACEOF |
82d43113 | 1939 | #define TARGET_CARBON 1 |
e6cc62c6 | 1940 | _ACEOF |
b4085ce6 GD |
1941 | |
1942 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1943 | ;; | |
1944 | ||
b12915c1 VZ |
1945 | *-*-beos* ) |
1946 | USE_BEOS=1 | |
e6cc62c6 | 1947 | cat >>confdefs.h <<\_ACEOF |
b12915c1 | 1948 | #define __BEOS__ 1 |
e6cc62c6 | 1949 | _ACEOF |
b12915c1 VZ |
1950 | |
1951 | ;; | |
1952 | ||
10f2d63a | 1953 | *) |
e6cc62c6 VS |
1954 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 |
1955 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1956 | { (exit 1); exit 1; }; } | |
10f2d63a VZ |
1957 | esac |
1958 | ||
8284b0c5 MB |
1959 | |
1960 | ||
1961 | ||
1962 | wx_arg_cache_file="configarg.cache" | |
1963 | echo "loading argument cache $wx_arg_cache_file" | |
10f2d63a VZ |
1964 | rm -f ${wx_arg_cache_file}.tmp |
1965 | touch ${wx_arg_cache_file}.tmp | |
1966 | touch ${wx_arg_cache_file} | |
e6cc62c6 | 1967 | |
10f2d63a VZ |
1968 | |
1969 | DEBUG_CONFIGURE=0 | |
1970 | if test $DEBUG_CONFIGURE = 1; then | |
1e6feb95 | 1971 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 1972 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 1973 | |
d8356fa3 VZ |
1974 | DEFAULT_wxUSE_NANOX=no |
1975 | ||
10f2d63a VZ |
1976 | DEFAULT_wxUSE_THREADS=yes |
1977 | ||
1978 | DEFAULT_wxUSE_SHARED=yes | |
1e6feb95 | 1979 | DEFAULT_wxUSE_OPTIMISE=no |
10f2d63a VZ |
1980 | DEFAULT_wxUSE_PROFILE=no |
1981 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
1982 | DEFAULT_wxUSE_NO_RTTI=no |
1983 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
1984 | DEFAULT_wxUSE_PERMISSIVE=no |
1985 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1986 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1987 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1988 | DEFAULT_wxUSE_MEM_TRACING=no | |
1989 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1990 | DEFAULT_wxUSE_DMALLOC=no | |
1991 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1992 | ||
e46d2a18 | 1993 | DEFAULT_wxUSE_EXCEPTIONS=no |
10f2d63a | 1994 | DEFAULT_wxUSE_LOG=yes |
1e6feb95 VZ |
1995 | DEFAULT_wxUSE_LOGWINDOW=no |
1996 | DEFAULT_wxUSE_LOGGUI=no | |
69d27ff7 | 1997 | DEFAULT_wxUSE_LOGDIALOG=no |
10f2d63a VZ |
1998 | |
1999 | DEFAULT_wxUSE_GUI=yes | |
1e6feb95 | 2000 | DEFAULT_wxUSE_CONTROLS=no |
10f2d63a | 2001 | |
3e44f09d | 2002 | DEFAULT_wxUSE_REGEX=no |
672abd7a VS |
2003 | DEFAULT_wxUSE_XML=no |
2004 | DEFAULT_wxUSE_EXPAT=no | |
10f2d63a VZ |
2005 | DEFAULT_wxUSE_ZLIB=no |
2006 | DEFAULT_wxUSE_LIBPNG=no | |
2007 | DEFAULT_wxUSE_LIBJPEG=no | |
c7a2bf27 | 2008 | DEFAULT_wxUSE_LIBTIFF=no |
89fe663f | 2009 | DEFAULT_wxUSE_LIBXPM=no |
10f2d63a | 2010 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2011 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2012 | |
eb4efbdc | 2013 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no |
4f3c5f06 | 2014 | DEFAULT_wxUSE_SNGLINST_CHECKER=no |
10f2d63a | 2015 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2016 | DEFAULT_wxUSE_CMDLINE_PARSER=no |
2017 | DEFAULT_wxUSE_DATETIME=no | |
1e6feb95 VZ |
2018 | DEFAULT_wxUSE_TIMER=no |
2019 | DEFAULT_wxUSE_STOPWATCH=no | |
10f2d63a | 2020 | DEFAULT_wxUSE_FILE=no |
1e6feb95 | 2021 | DEFAULT_wxUSE_FFILE=no |
a3a584a7 | 2022 | DEFAULT_wxUSE_TEXTBUFFER=no |
10f2d63a | 2023 | DEFAULT_wxUSE_TEXTFILE=no |
10f2d63a VZ |
2024 | DEFAULT_wxUSE_WAVE=no |
2025 | DEFAULT_wxUSE_INTL=no | |
2026 | DEFAULT_wxUSE_CONFIG=no | |
1e6feb95 | 2027 | DEFAULT_wxUSE_FONTMAP=no |
10f2d63a VZ |
2028 | DEFAULT_wxUSE_STREAMS=no |
2029 | DEFAULT_wxUSE_SOCKETS=no | |
3bce6687 JS |
2030 | DEFAULT_wxUSE_OLE=no |
2031 | DEFAULT_wxUSE_DATAOBJ=no | |
10f2d63a | 2032 | DEFAULT_wxUSE_DIALUP_MANAGER=no |
10f2d63a | 2033 | DEFAULT_wxUSE_JOYSTICK=no |
6bff71f8 | 2034 | DEFAULT_wxUSE_DYNLIB_CLASS=no |
0b9ab0bd | 2035 | DEFAULT_wxUSE_DYNAMIC_LOADER=no |
10f2d63a | 2036 | DEFAULT_wxUSE_LONGLONG=no |
e8f65ba6 | 2037 | DEFAULT_wxUSE_GEOMETRY=no |
10f2d63a VZ |
2038 | |
2039 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2040 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2041 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2042 | ||
10f2d63a VZ |
2043 | DEFAULT_wxUSE_CLIPBOARD=no |
2044 | DEFAULT_wxUSE_TOOLTIPS=no | |
2045 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
24fd6d87 | 2046 | DEFAULT_wxUSE_DRAGIMAGE=no |
10f2d63a VZ |
2047 | DEFAULT_wxUSE_SPLINES=no |
2048 | ||
2049 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no | |
2050 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2051 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2052 | ||
10f2d63a VZ |
2053 | DEFAULT_wxUSE_RESOURCES=no |
2054 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2055 | DEFAULT_wxUSE_IPC=no | |
2056 | DEFAULT_wxUSE_HELP=no | |
29fd3c0c | 2057 | DEFAULT_wxUSE_MS_HTML_HELP=no |
3379ed37 | 2058 | DEFAULT_wxUSE_WXHTML_HELP=no |
24176f2c | 2059 | DEFAULT_wxUSE_TREELAYOUT=no |
10f2d63a | 2060 | DEFAULT_wxUSE_METAFILE=no |
1e6feb95 | 2061 | DEFAULT_wxUSE_MIMETYPE=no |
4cdb0ab0 VS |
2062 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no |
2063 | DEFAULT_wxUSE_PROTOCOL=no | |
2064 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2065 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2066 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2067 | DEFAULT_wxUSE_URL=no | |
3bd8fb5f | 2068 | |
10f2d63a | 2069 | DEFAULT_wxUSE_COMMONDLGS=no |
1e6feb95 VZ |
2070 | DEFAULT_wxUSE_CHOICEDLG=no |
2071 | DEFAULT_wxUSE_COLOURDLG=no | |
10f2d63a | 2072 | DEFAULT_wxUSE_DIRDLG=no |
1e6feb95 | 2073 | DEFAULT_wxUSE_FILEDLG=no |
8db37e06 | 2074 | DEFAULT_wxUSE_FINDREPLDLG=no |
1e6feb95 VZ |
2075 | DEFAULT_wxUSE_FONTDLG=no |
2076 | DEFAULT_wxUSE_MSGDLG=no | |
2077 | DEFAULT_wxUSE_NUMBERDLG=no | |
10f2d63a | 2078 | DEFAULT_wxUSE_TEXTDLG=no |
cbca9943 | 2079 | DEFAULT_wxUSE_SPLASH=no |
10f2d63a VZ |
2080 | DEFAULT_wxUSE_STARTUP_TIPS=no |
2081 | DEFAULT_wxUSE_PROGRESSDLG=no | |
b1f5d087 VZ |
2082 | DEFAULT_wxUSE_WIZARDDLG=no |
2083 | ||
1e6feb95 | 2084 | DEFAULT_wxUSE_MENUS=no |
10f2d63a VZ |
2085 | DEFAULT_wxUSE_MINIFRAME=no |
2086 | DEFAULT_wxUSE_HTML=no | |
24528b0c | 2087 | DEFAULT_wxUSE_FILESYSTEM=no |
10f2d63a VZ |
2088 | DEFAULT_wxUSE_FS_INET=no |
2089 | DEFAULT_wxUSE_FS_ZIP=no | |
2090 | DEFAULT_wxUSE_BUSYINFO=no | |
2091 | DEFAULT_wxUSE_ZIPSTREAM=no | |
7015ef3a | 2092 | DEFAULT_wxUSE_GZSTREAM=no |
1e6feb95 | 2093 | DEFAULT_wxUSE_VALIDATORS=no |
10f2d63a VZ |
2094 | |
2095 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 | 2096 | DEFAULT_wxUSE_BUTTON=no |
10f2d63a | 2097 | DEFAULT_wxUSE_BMPBUTTON=no |
1e6feb95 VZ |
2098 | DEFAULT_wxUSE_CALCTRL=no |
2099 | DEFAULT_wxUSE_CARET=no | |
10f2d63a VZ |
2100 | DEFAULT_wxUSE_CHECKBOX=no |
2101 | DEFAULT_wxUSE_CHECKLST=no | |
1e6feb95 | 2102 | DEFAULT_wxUSE_CHOICE=no |
10f2d63a | 2103 | DEFAULT_wxUSE_COMBOBOX=no |
da494b40 | 2104 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2105 | DEFAULT_wxUSE_GAUGE=no |
2106 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 2107 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 2108 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
2109 | DEFAULT_wxUSE_LISTBOX=no |
2110 | DEFAULT_wxUSE_LISTCTRL=no | |
2111 | DEFAULT_wxUSE_NOTEBOOK=no | |
2112 | DEFAULT_wxUSE_RADIOBOX=no | |
2113 | DEFAULT_wxUSE_RADIOBTN=no | |
2114 | DEFAULT_wxUSE_SASH=no | |
2115 | DEFAULT_wxUSE_SCROLLBAR=no | |
2116 | DEFAULT_wxUSE_SLIDER=no | |
2117 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 2118 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
2119 | DEFAULT_wxUSE_SPLITTER=no |
2120 | DEFAULT_wxUSE_STATBMP=no | |
2121 | DEFAULT_wxUSE_STATBOX=no | |
2122 | DEFAULT_wxUSE_STATLINE=no | |
1e6feb95 | 2123 | DEFAULT_wxUSE_STATTEXT=no |
10f2d63a VZ |
2124 | DEFAULT_wxUSE_STATUSBAR=yes |
2125 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2126 | DEFAULT_wxUSE_TEXTCTRL=no |
1db8dc4a | 2127 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 2128 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
2129 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
2130 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a | 2131 | DEFAULT_wxUSE_TREECTRL=no |
9f41d601 | 2132 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 2133 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
2134 | |
2135 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2136 | DEFAULT_wxUSE_UNICODE_MSLU=no |
10f2d63a VZ |
2137 | DEFAULT_wxUSE_WCSRTOMBS=no |
2138 | ||
edae8572 | 2139 | DEFAULT_wxUSE_PALETTE=no |
0046ff7c | 2140 | DEFAULT_wxUSE_IMAGE=no |
10f2d63a VZ |
2141 | DEFAULT_wxUSE_GIF=no |
2142 | DEFAULT_wxUSE_PCX=no | |
2143 | DEFAULT_wxUSE_PNM=no | |
4b6b4dfc | 2144 | DEFAULT_wxUSE_IFF=no |
0046ff7c | 2145 | DEFAULT_wxUSE_XPM=no |
658974ae | 2146 | DEFAULT_wxUSE_ICO_CUR=no |
7bb2947d | 2147 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2148 | |
e9e0dc15 | 2149 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2150 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a | 2151 | else |
1e6feb95 | 2152 | DEFAULT_wxUSE_UNIVERSAL=no |
df5168c4 | 2153 | DEFAULT_wxUSE_STL=no |
1e6feb95 | 2154 | |
d8356fa3 VZ |
2155 | DEFAULT_wxUSE_NANOX=no |
2156 | ||
10f2d63a VZ |
2157 | DEFAULT_wxUSE_THREADS=yes |
2158 | ||
2159 | DEFAULT_wxUSE_SHARED=yes | |
2160 | DEFAULT_wxUSE_OPTIMISE=yes | |
2161 | DEFAULT_wxUSE_PROFILE=no | |
2162 | DEFAULT_wxUSE_NO_DEPS=no | |
8f4a9a10 RR |
2163 | DEFAULT_wxUSE_NO_RTTI=no |
2164 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
10f2d63a VZ |
2165 | DEFAULT_wxUSE_PERMISSIVE=no |
2166 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2167 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2168 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2169 | DEFAULT_wxUSE_MEM_TRACING=no | |
2170 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2171 | DEFAULT_wxUSE_DMALLOC=no | |
2172 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2173 | ||
e46d2a18 | 2174 | DEFAULT_wxUSE_EXCEPTIONS=yes |
10f2d63a | 2175 | DEFAULT_wxUSE_LOG=yes |
d73be714 VZ |
2176 | DEFAULT_wxUSE_LOGWINDOW=yes |
2177 | DEFAULT_wxUSE_LOGGUI=yes | |
69d27ff7 | 2178 | DEFAULT_wxUSE_LOGDIALOG=yes |
10f2d63a VZ |
2179 | |
2180 | DEFAULT_wxUSE_GUI=yes | |
2181 | ||
aa2d9ecc | 2182 | DEFAULT_wxUSE_REGEX=yes |
672abd7a | 2183 | DEFAULT_wxUSE_XML=yes |
aa2d9ecc VZ |
2184 | DEFAULT_wxUSE_EXPAT=yes |
2185 | DEFAULT_wxUSE_ZLIB=yes | |
2186 | DEFAULT_wxUSE_LIBPNG=yes | |
2187 | DEFAULT_wxUSE_LIBJPEG=yes | |
2188 | DEFAULT_wxUSE_LIBTIFF=yes | |
2189 | DEFAULT_wxUSE_LIBXPM=yes | |
3527f29c | 2190 | DEFAULT_wxUSE_LIBMSPACK=yes |
16b52fa1 | 2191 | DEFAULT_wxUSE_ODBC=no |
bdad4e7e | 2192 | DEFAULT_wxUSE_OPENGL=no |
10f2d63a | 2193 | |
eb4efbdc | 2194 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes |
4f3c5f06 | 2195 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes |
10f2d63a | 2196 | DEFAULT_wxUSE_STD_IOSTREAM=no |
1e6feb95 VZ |
2197 | DEFAULT_wxUSE_CMDLINE_PARSER=yes |
2198 | DEFAULT_wxUSE_DATETIME=yes | |
1e6feb95 VZ |
2199 | DEFAULT_wxUSE_TIMER=yes |
2200 | DEFAULT_wxUSE_STOPWATCH=yes | |
10f2d63a | 2201 | DEFAULT_wxUSE_FILE=yes |
1e6feb95 | 2202 | DEFAULT_wxUSE_FFILE=yes |
a3a584a7 | 2203 | DEFAULT_wxUSE_TEXTBUFFER=yes |
10f2d63a | 2204 | DEFAULT_wxUSE_TEXTFILE=yes |
10f2d63a VZ |
2205 | DEFAULT_wxUSE_WAVE=no |
2206 | DEFAULT_wxUSE_INTL=yes | |
2207 | DEFAULT_wxUSE_CONFIG=yes | |
1e6feb95 | 2208 | DEFAULT_wxUSE_FONTMAP=yes |
10f2d63a VZ |
2209 | DEFAULT_wxUSE_STREAMS=yes |
2210 | DEFAULT_wxUSE_SOCKETS=yes | |
3bce6687 JS |
2211 | DEFAULT_wxUSE_OLE=yes |
2212 | DEFAULT_wxUSE_DATAOBJ=yes | |
10f2d63a | 2213 | DEFAULT_wxUSE_DIALUP_MANAGER=yes |
10f2d63a | 2214 | DEFAULT_wxUSE_JOYSTICK=yes |
6bff71f8 | 2215 | DEFAULT_wxUSE_DYNLIB_CLASS=yes |
9337b578 | 2216 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes |
b685cd9b | 2217 | DEFAULT_wxUSE_LONGLONG=yes |
e8f65ba6 | 2218 | DEFAULT_wxUSE_GEOMETRY=yes |
10f2d63a VZ |
2219 | |
2220 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2221 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2222 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2223 | ||
10f2d63a VZ |
2224 | DEFAULT_wxUSE_CLIPBOARD=yes |
2225 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2226 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
24fd6d87 | 2227 | DEFAULT_wxUSE_DRAGIMAGE=yes |
10f2d63a VZ |
2228 | DEFAULT_wxUSE_SPLINES=yes |
2229 | ||
2230 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes | |
2231 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2232 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2233 | ||
2b5f62a0 | 2234 | DEFAULT_wxUSE_RESOURCES=no |
10f2d63a VZ |
2235 | DEFAULT_wxUSE_CONSTRAINTS=yes |
2236 | DEFAULT_wxUSE_IPC=yes | |
2237 | DEFAULT_wxUSE_HELP=yes | |
29fd3c0c | 2238 | DEFAULT_wxUSE_MS_HTML_HELP=yes |
3379ed37 | 2239 | DEFAULT_wxUSE_WXHTML_HELP=yes |
24176f2c | 2240 | DEFAULT_wxUSE_TREELAYOUT=yes |
10f2d63a | 2241 | DEFAULT_wxUSE_METAFILE=yes |
1e6feb95 | 2242 | DEFAULT_wxUSE_MIMETYPE=yes |
3e44f09d | 2243 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes |
4cdb0ab0 VS |
2244 | DEFAULT_wxUSE_PROTOCOL=yes |
2245 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2246 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2247 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2248 | DEFAULT_wxUSE_URL=yes | |
10f2d63a VZ |
2249 | |
2250 | DEFAULT_wxUSE_COMMONDLGS=yes | |
1e6feb95 VZ |
2251 | DEFAULT_wxUSE_CHOICEDLG=yes |
2252 | DEFAULT_wxUSE_COLOURDLG=yes | |
10f2d63a | 2253 | DEFAULT_wxUSE_DIRDLG=yes |
1e6feb95 | 2254 | DEFAULT_wxUSE_FILEDLG=yes |
8db37e06 | 2255 | DEFAULT_wxUSE_FINDREPLDLG=yes |
1e6feb95 VZ |
2256 | DEFAULT_wxUSE_FONTDLG=yes |
2257 | DEFAULT_wxUSE_MSGDLG=yes | |
2258 | DEFAULT_wxUSE_NUMBERDLG=yes | |
10f2d63a | 2259 | DEFAULT_wxUSE_TEXTDLG=yes |
cbca9943 | 2260 | DEFAULT_wxUSE_SPLASH=yes |
10f2d63a VZ |
2261 | DEFAULT_wxUSE_STARTUP_TIPS=yes |
2262 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
f33f19dd VZ |
2263 | DEFAULT_wxUSE_WIZARDDLG=yes |
2264 | ||
1e6feb95 | 2265 | DEFAULT_wxUSE_MENUS=yes |
10f2d63a VZ |
2266 | DEFAULT_wxUSE_MINIFRAME=yes |
2267 | DEFAULT_wxUSE_HTML=yes | |
24528b0c | 2268 | DEFAULT_wxUSE_FILESYSTEM=yes |
10f2d63a VZ |
2269 | DEFAULT_wxUSE_FS_INET=yes |
2270 | DEFAULT_wxUSE_FS_ZIP=yes | |
2271 | DEFAULT_wxUSE_BUSYINFO=yes | |
2272 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
7015ef3a | 2273 | DEFAULT_wxUSE_GZSTREAM=yes |
10f2d63a VZ |
2274 | DEFAULT_wxUSE_VALIDATORS=yes |
2275 | ||
2276 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 | 2277 | DEFAULT_wxUSE_BUTTON=yes |
10f2d63a | 2278 | DEFAULT_wxUSE_BMPBUTTON=yes |
1e6feb95 VZ |
2279 | DEFAULT_wxUSE_CALCTRL=yes |
2280 | DEFAULT_wxUSE_CARET=yes | |
10f2d63a VZ |
2281 | DEFAULT_wxUSE_CHECKBOX=yes |
2282 | DEFAULT_wxUSE_CHECKLST=yes | |
2283 | DEFAULT_wxUSE_CHOICE=yes | |
2284 | DEFAULT_wxUSE_COMBOBOX=yes | |
da494b40 | 2285 | DEFAULT_wxUSE_DISPLAY=no |
10f2d63a VZ |
2286 | DEFAULT_wxUSE_GAUGE=yes |
2287 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 2288 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 2289 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
2290 | DEFAULT_wxUSE_LISTBOX=yes |
2291 | DEFAULT_wxUSE_LISTCTRL=yes | |
2292 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2293 | DEFAULT_wxUSE_RADIOBOX=yes | |
2294 | DEFAULT_wxUSE_RADIOBTN=yes | |
2295 | DEFAULT_wxUSE_SASH=yes | |
2296 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2297 | DEFAULT_wxUSE_SLIDER=yes | |
2298 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 2299 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
2300 | DEFAULT_wxUSE_SPLITTER=yes |
2301 | DEFAULT_wxUSE_STATBMP=yes | |
2302 | DEFAULT_wxUSE_STATBOX=yes | |
2303 | DEFAULT_wxUSE_STATLINE=yes | |
1e6feb95 | 2304 | DEFAULT_wxUSE_STATTEXT=yes |
10f2d63a VZ |
2305 | DEFAULT_wxUSE_STATUSBAR=yes |
2306 | DEFAULT_wxUSE_TABDIALOG=no | |
1e6feb95 | 2307 | DEFAULT_wxUSE_TEXTCTRL=yes |
1db8dc4a | 2308 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 2309 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
2310 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
2311 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a | 2312 | DEFAULT_wxUSE_TREECTRL=yes |
9f41d601 | 2313 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 2314 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
2315 | |
2316 | DEFAULT_wxUSE_UNICODE=no | |
a72a4bfa | 2317 | DEFAULT_wxUSE_UNICODE_MSLU=yes |
10f2d63a VZ |
2318 | DEFAULT_wxUSE_WCSRTOMBS=no |
2319 | ||
edae8572 | 2320 | DEFAULT_wxUSE_PALETTE=yes |
0046ff7c | 2321 | DEFAULT_wxUSE_IMAGE=yes |
10f2d63a VZ |
2322 | DEFAULT_wxUSE_GIF=yes |
2323 | DEFAULT_wxUSE_PCX=yes | |
cc0e8480 | 2324 | DEFAULT_wxUSE_IFF=no |
10f2d63a | 2325 | DEFAULT_wxUSE_PNM=yes |
0046ff7c | 2326 | DEFAULT_wxUSE_XPM=yes |
658974ae | 2327 | DEFAULT_wxUSE_ICO_CUR=yes |
7bb2947d | 2328 | DEFAULT_wxUSE_ACCESSIBILITY=no |
9747f85d | 2329 | |
e9e0dc15 | 2330 | DEFAULT_wxUSE_MONOLITHIC=no |
029b47ad | 2331 | DEFAULT_wxUSE_OFFICIAL_BUILD=no |
10f2d63a VZ |
2332 | fi |
2333 | ||
8284b0c5 MB |
2334 | |
2335 | ||
10f2d63a | 2336 | for toolkit in `echo $ALL_TOOLKITS`; do |
d74f4b5a VZ |
2337 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` |
2338 | if test "x$LINE" != "x" ; then | |
10f2d63a VZ |
2339 | has_toolkit_in_cache=1 |
2340 | eval "DEFAULT_$LINE" | |
2341 | eval "CACHE_$toolkit=1" | |
2342 | fi | |
2343 | done | |
2344 | ||
8284b0c5 MB |
2345 | |
2346 | ||
5005acfe | 2347 | enablestring= |
e6cc62c6 VS |
2348 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 |
2349 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
10f2d63a VZ |
2350 | no_cache=0 |
2351 | # Check whether --enable-gui or --disable-gui was given. | |
2352 | if test "${enable_gui+set}" = set; then | |
2353 | enableval="$enable_gui" | |
e6cc62c6 | 2354 | |
10f2d63a VZ |
2355 | if test "$enableval" = yes; then |
2356 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2357 | else | |
2358 | ac_cv_use_gui='wxUSE_GUI=no' | |
2359 | fi | |
e6cc62c6 | 2360 | |
10f2d63a | 2361 | else |
e6cc62c6 | 2362 | |
10f2d63a VZ |
2363 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` |
2364 | if test "x$LINE" != x ; then | |
2365 | eval "DEFAULT_$LINE" | |
2366 | else | |
2367 | no_cache=1 | |
2368 | fi | |
2369 | ||
2370 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
10f2d63a | 2371 | |
e6cc62c6 | 2372 | fi; |
10f2d63a VZ |
2373 | |
2374 | eval "$ac_cv_use_gui" | |
2375 | if test "$no_cache" != 1; then | |
2376 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2377 | fi | |
2378 | ||
2379 | if test "$wxUSE_GUI" = yes; then | |
e6cc62c6 VS |
2380 | echo "$as_me:$LINENO: result: yes" >&5 |
2381 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2382 | else |
e6cc62c6 VS |
2383 | echo "$as_me:$LINENO: result: no" >&5 |
2384 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2385 | fi |
e6cc62c6 | 2386 | |
10f2d63a | 2387 | |
9747f85d VS |
2388 | enablestring= |
2389 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2390 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2391 | no_cache=0 | |
2392 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2393 | if test "${enable_monolithic+set}" = set; then | |
2394 | enableval="$enable_monolithic" | |
2395 | ||
2396 | if test "$enableval" = yes; then | |
2397 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2398 | else | |
2399 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2400 | fi | |
2401 | ||
2402 | else | |
2403 | ||
2404 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2405 | if test "x$LINE" != x ; then | |
2406 | eval "DEFAULT_$LINE" | |
2407 | else | |
2408 | no_cache=1 | |
2409 | fi | |
2410 | ||
2411 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2412 | ||
2413 | fi; | |
2414 | ||
2415 | eval "$ac_cv_use_monolithic" | |
2416 | if test "$no_cache" != 1; then | |
2417 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2418 | fi | |
2419 | ||
2420 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2421 | echo "$as_me:$LINENO: result: yes" >&5 | |
2422 | echo "${ECHO_T}yes" >&6 | |
2423 | else | |
2424 | echo "$as_me:$LINENO: result: no" >&5 | |
2425 | echo "${ECHO_T}no" >&6 | |
2426 | fi | |
2427 | ||
2428 | ||
b12915c1 | 2429 | if test "$wxUSE_GUI" = "yes"; then |
10f2d63a | 2430 | |
8284b0c5 | 2431 | |
5005acfe | 2432 | enablestring= |
e6cc62c6 VS |
2433 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 |
2434 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
1e6feb95 VZ |
2435 | no_cache=0 |
2436 | # Check whether --enable-universal or --disable-universal was given. | |
2437 | if test "${enable_universal+set}" = set; then | |
2438 | enableval="$enable_universal" | |
e6cc62c6 | 2439 | |
1e6feb95 VZ |
2440 | if test "$enableval" = yes; then |
2441 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2442 | else | |
2443 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2444 | fi | |
e6cc62c6 | 2445 | |
1e6feb95 | 2446 | else |
e6cc62c6 | 2447 | |
1e6feb95 VZ |
2448 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` |
2449 | if test "x$LINE" != x ; then | |
2450 | eval "DEFAULT_$LINE" | |
2451 | else | |
2452 | no_cache=1 | |
2453 | fi | |
2454 | ||
2455 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
1e6feb95 | 2456 | |
e6cc62c6 | 2457 | fi; |
1e6feb95 VZ |
2458 | |
2459 | eval "$ac_cv_use_universal" | |
2460 | if test "$no_cache" != 1; then | |
2461 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2462 | fi | |
2463 | ||
2464 | if test "$wxUSE_UNIVERSAL" = yes; then | |
e6cc62c6 VS |
2465 | echo "$as_me:$LINENO: result: yes" >&5 |
2466 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 2467 | else |
e6cc62c6 VS |
2468 | echo "$as_me:$LINENO: result: no" >&5 |
2469 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 2470 | fi |
e6cc62c6 VS |
2471 | |
2472 | ||
10f2d63a VZ |
2473 | # Check whether --with-gtk or --without-gtk was given. |
2474 | if test "${with_gtk+set}" = set; then | |
2475 | withval="$with_gtk" | |
2476 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2477 | fi; |
10f2d63a VZ |
2478 | |
2479 | # Check whether --with-motif or --without-motif was given. | |
2480 | if test "${with_motif+set}" = set; then | |
2481 | withval="$with_motif" | |
2482 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2483 | fi; |
10f2d63a | 2484 | |
b4085ce6 GD |
2485 | # Check whether --with-mac or --without-mac was given. |
2486 | if test "${with_mac+set}" = set; then | |
2487 | withval="$with_mac" | |
2488 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2489 | fi; |
b4085ce6 | 2490 | |
ac0c4cc3 DE |
2491 | # Check whether --with-cocoa or --without-cocoa was given. |
2492 | if test "${with_cocoa+set}" = set; then | |
2493 | withval="$with_cocoa" | |
2494 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2495 | fi; |
ac0c4cc3 | 2496 | |
10f2d63a VZ |
2497 | # Check whether --with-wine or --without-wine was given. |
2498 | if test "${with_wine+set}" = set; then | |
2499 | withval="$with_wine" | |
89e6bf6d | 2500 | wxUSE_WINE="$withval" CACHE_WINE=1 |
e6cc62c6 | 2501 | fi; |
10f2d63a | 2502 | |
77e13408 RL |
2503 | # Check whether --with-msw or --without-msw was given. |
2504 | if test "${with_msw+set}" = set; then | |
2505 | withval="$with_msw" | |
b4efce5e | 2506 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2507 | fi; |
10f2d63a | 2508 | |
e07802fc VZ |
2509 | # Check whether --with-pm or --without-pm was given. |
2510 | if test "${with_pm+set}" = set; then | |
2511 | withval="$with_pm" | |
2512 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2513 | fi; |
698dcdb6 | 2514 | |
1e6feb95 VZ |
2515 | # Check whether --with-mgl or --without-mgl was given. |
2516 | if test "${with_mgl+set}" = set; then | |
2517 | withval="$with_mgl" | |
6c657b52 | 2518 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2519 | fi; |
1e6feb95 | 2520 | |
1725144d RR |
2521 | # Check whether --with-microwin or --without-microwin was given. |
2522 | if test "${with_microwin+set}" = set; then | |
2523 | withval="$with_microwin" | |
2524 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
e6cc62c6 | 2525 | fi; |
1725144d | 2526 | |
f79bd02d JS |
2527 | # Check whether --with-x11 or --without-x11 was given. |
2528 | if test "${with_x11+set}" = set; then | |
2529 | withval="$with_x11" | |
3c011993 | 2530 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 |
e6cc62c6 | 2531 | fi; |
a0b9e27f | 2532 | |
5005acfe | 2533 | enablestring= |
e6cc62c6 VS |
2534 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 |
2535 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
d8356fa3 | 2536 | no_cache=0 |
ba875e66 VZ |
2537 | # Check whether --enable-nanox or --disable-nanox was given. |
2538 | if test "${enable_nanox+set}" = set; then | |
2539 | enableval="$enable_nanox" | |
e6cc62c6 | 2540 | |
d8356fa3 | 2541 | if test "$enableval" = yes; then |
ba875e66 | 2542 | ac_cv_use_nanox='wxUSE_NANOX=yes' |
d8356fa3 | 2543 | else |
ba875e66 | 2544 | ac_cv_use_nanox='wxUSE_NANOX=no' |
d8356fa3 | 2545 | fi |
e6cc62c6 | 2546 | |
d8356fa3 | 2547 | else |
e6cc62c6 | 2548 | |
d8356fa3 VZ |
2549 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` |
2550 | if test "x$LINE" != x ; then | |
2551 | eval "DEFAULT_$LINE" | |
2552 | else | |
2553 | no_cache=1 | |
2554 | fi | |
2555 | ||
ba875e66 | 2556 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX |
d8356fa3 | 2557 | |
e6cc62c6 | 2558 | fi; |
d8356fa3 | 2559 | |
ba875e66 | 2560 | eval "$ac_cv_use_nanox" |
d8356fa3 | 2561 | if test "$no_cache" != 1; then |
ba875e66 | 2562 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp |
d8356fa3 VZ |
2563 | fi |
2564 | ||
2565 | if test "$wxUSE_NANOX" = yes; then | |
e6cc62c6 VS |
2566 | echo "$as_me:$LINENO: result: yes" >&5 |
2567 | echo "${ECHO_T}yes" >&6 | |
d8356fa3 | 2568 | else |
e6cc62c6 VS |
2569 | echo "$as_me:$LINENO: result: no" >&5 |
2570 | echo "${ECHO_T}no" >&6 | |
d8356fa3 | 2571 | fi |
e6cc62c6 | 2572 | |
8284b0c5 | 2573 | |
d74f4b5a | 2574 | |
5005acfe | 2575 | enablestring= |
e6cc62c6 VS |
2576 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 |
2577 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
d74f4b5a VZ |
2578 | no_cache=0 |
2579 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
8168de4c VZ |
2580 | if test "${enable_gtk2+set}" = set; then |
2581 | enableval="$enable_gtk2" | |
e6cc62c6 | 2582 | |
d74f4b5a VZ |
2583 | if test "$enableval" = yes; then |
2584 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2585 | else | |
2586 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2587 | fi | |
e6cc62c6 | 2588 | |
10f2d63a | 2589 | else |
e6cc62c6 | 2590 | |
d74f4b5a VZ |
2591 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` |
2592 | if test "x$LINE" != x ; then | |
2593 | eval "DEFAULT_$LINE" | |
2594 | else | |
2595 | no_cache=1 | |
2596 | fi | |
2597 | ||
2598 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
52127426 | 2599 | |
e6cc62c6 | 2600 | fi; |
328a083c | 2601 | |
d74f4b5a VZ |
2602 | eval "$ac_cv_use_gtk2" |
2603 | if test "$no_cache" != 1; then | |
2604 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2605 | fi | |
2606 | ||
2607 | if test "$wxUSE_GTK2" = yes; then | |
e6cc62c6 VS |
2608 | echo "$as_me:$LINENO: result: yes" >&5 |
2609 | echo "${ECHO_T}yes" >&6 | |
d74f4b5a | 2610 | else |
e6cc62c6 VS |
2611 | echo "$as_me:$LINENO: result: no" >&5 |
2612 | echo "${ECHO_T}no" >&6 | |
d74f4b5a | 2613 | fi |
d74f4b5a | 2614 | |
5c6fa7d2 | 2615 | |
e6cc62c6 VS |
2616 | |
2617 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2618 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
8284b0c5 | 2619 | no_cache=0 |
e6cc62c6 VS |
2620 | |
2621 | # Check whether --with-libpng or --without-libpng was given. | |
b12915c1 VZ |
2622 | if test "${with_libpng+set}" = set; then |
2623 | withval="$with_libpng" | |
e6cc62c6 | 2624 | |
10f2d63a | 2625 | if test "$withval" = yes; then |
b12915c1 | 2626 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' |
422107f9 | 2627 | elif test "$withval" = no; then |
b12915c1 | 2628 | ac_cv_use_libpng='wxUSE_LIBPNG=no' |
422107f9 VZ |
2629 | elif test "$withval" = sys; then |
2630 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
4f14bcd8 GD |
2631 | elif test "$withval" = builtin; then |
2632 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
422107f9 | 2633 | else |
e6cc62c6 VS |
2634 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2635 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2636 | { (exit 1); exit 1; }; } | |
10f2d63a | 2637 | fi |
e6cc62c6 | 2638 | |
10f2d63a | 2639 | else |
e6cc62c6 | 2640 | |
b12915c1 | 2641 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2642 | if test "x$LINE" != x ; then |
2643 | eval "DEFAULT_$LINE" | |
2644 | else | |
2645 | no_cache=1 | |
2646 | fi | |
2647 | ||
b12915c1 | 2648 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG |
10f2d63a | 2649 | |
e6cc62c6 | 2650 | fi; |
10f2d63a | 2651 | |
b12915c1 | 2652 | eval "$ac_cv_use_libpng" |
10f2d63a | 2653 | if test "$no_cache" != 1; then |
b12915c1 | 2654 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2655 | fi |
2656 | ||
b12915c1 | 2657 | if test "$wxUSE_LIBPNG" = yes; then |
e6cc62c6 VS |
2658 | echo "$as_me:$LINENO: result: yes" >&5 |
2659 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2660 | elif test "$wxUSE_LIBPNG" = no; then |
e6cc62c6 VS |
2661 | echo "$as_me:$LINENO: result: no" >&5 |
2662 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2663 | elif test "$wxUSE_LIBPNG" = sys; then |
e6cc62c6 VS |
2664 | echo "$as_me:$LINENO: result: system version" >&5 |
2665 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2666 | elif test "$wxUSE_LIBPNG" = builtin; then |
e6cc62c6 VS |
2667 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2668 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2669 | else |
e6cc62c6 VS |
2670 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 |
2671 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2672 | { (exit 1); exit 1; }; } | |
10f2d63a | 2673 | fi |
10f2d63a | 2674 | |
e6cc62c6 VS |
2675 | |
2676 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2677 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
10f2d63a | 2678 | no_cache=0 |
e6cc62c6 VS |
2679 | |
2680 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
b12915c1 VZ |
2681 | if test "${with_libjpeg+set}" = set; then |
2682 | withval="$with_libjpeg" | |
e6cc62c6 | 2683 | |
10f2d63a | 2684 | if test "$withval" = yes; then |
b12915c1 | 2685 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' |
422107f9 | 2686 | elif test "$withval" = no; then |
b12915c1 | 2687 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' |
422107f9 VZ |
2688 | elif test "$withval" = sys; then |
2689 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
4f14bcd8 GD |
2690 | elif test "$withval" = builtin; then |
2691 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
422107f9 | 2692 | else |
e6cc62c6 VS |
2693 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2694 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2695 | { (exit 1); exit 1; }; } | |
10f2d63a | 2696 | fi |
e6cc62c6 | 2697 | |
10f2d63a | 2698 | else |
e6cc62c6 | 2699 | |
b12915c1 | 2700 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` |
10f2d63a VZ |
2701 | if test "x$LINE" != x ; then |
2702 | eval "DEFAULT_$LINE" | |
2703 | else | |
2704 | no_cache=1 | |
2705 | fi | |
2706 | ||
b12915c1 | 2707 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG |
10f2d63a | 2708 | |
e6cc62c6 | 2709 | fi; |
10f2d63a | 2710 | |
b12915c1 | 2711 | eval "$ac_cv_use_libjpeg" |
10f2d63a | 2712 | if test "$no_cache" != 1; then |
b12915c1 | 2713 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2714 | fi |
2715 | ||
b12915c1 | 2716 | if test "$wxUSE_LIBJPEG" = yes; then |
e6cc62c6 VS |
2717 | echo "$as_me:$LINENO: result: yes" >&5 |
2718 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 2719 | elif test "$wxUSE_LIBJPEG" = no; then |
e6cc62c6 VS |
2720 | echo "$as_me:$LINENO: result: no" >&5 |
2721 | echo "${ECHO_T}no" >&6 | |
422107f9 | 2722 | elif test "$wxUSE_LIBJPEG" = sys; then |
e6cc62c6 VS |
2723 | echo "$as_me:$LINENO: result: system version" >&5 |
2724 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2725 | elif test "$wxUSE_LIBJPEG" = builtin; then |
e6cc62c6 VS |
2726 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2727 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 2728 | else |
e6cc62c6 VS |
2729 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 |
2730 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2731 | { (exit 1); exit 1; }; } | |
10f2d63a | 2732 | fi |
10f2d63a | 2733 | |
e6cc62c6 VS |
2734 | |
2735 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2736 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
10f2d63a | 2737 | no_cache=0 |
e6cc62c6 VS |
2738 | |
2739 | # Check whether --with-libtiff or --without-libtiff was given. | |
b12915c1 VZ |
2740 | if test "${with_libtiff+set}" = set; then |
2741 | withval="$with_libtiff" | |
e6cc62c6 | 2742 | |
10f2d63a | 2743 | if test "$withval" = yes; then |
b12915c1 | 2744 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' |
0dcf9893 | 2745 | elif test "$withval" = no; then |
b12915c1 | 2746 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' |
0dcf9893 VZ |
2747 | elif test "$withval" = sys; then |
2748 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
4f14bcd8 GD |
2749 | elif test "$withval" = builtin; then |
2750 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
0dcf9893 | 2751 | else |
e6cc62c6 VS |
2752 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2753 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2754 | { (exit 1); exit 1; }; } | |
10f2d63a | 2755 | fi |
e6cc62c6 | 2756 | |
10f2d63a | 2757 | else |
e6cc62c6 | 2758 | |
b12915c1 | 2759 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` |
10f2d63a VZ |
2760 | if test "x$LINE" != x ; then |
2761 | eval "DEFAULT_$LINE" | |
2762 | else | |
2763 | no_cache=1 | |
2764 | fi | |
2765 | ||
b12915c1 | 2766 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF |
10f2d63a | 2767 | |
e6cc62c6 | 2768 | fi; |
10f2d63a | 2769 | |
b12915c1 | 2770 | eval "$ac_cv_use_libtiff" |
10f2d63a | 2771 | if test "$no_cache" != 1; then |
b12915c1 | 2772 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2773 | fi |
2774 | ||
b12915c1 | 2775 | if test "$wxUSE_LIBTIFF" = yes; then |
e6cc62c6 VS |
2776 | echo "$as_me:$LINENO: result: yes" >&5 |
2777 | echo "${ECHO_T}yes" >&6 | |
0dcf9893 | 2778 | elif test "$wxUSE_LIBTIFF" = no; then |
e6cc62c6 VS |
2779 | echo "$as_me:$LINENO: result: no" >&5 |
2780 | echo "${ECHO_T}no" >&6 | |
0dcf9893 | 2781 | elif test "$wxUSE_LIBTIFF" = sys; then |
e6cc62c6 VS |
2782 | echo "$as_me:$LINENO: result: system version" >&5 |
2783 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 2784 | elif test "$wxUSE_LIBTIFF" = builtin; then |
e6cc62c6 VS |
2785 | echo "$as_me:$LINENO: result: builtin version" >&5 |
2786 | echo "${ECHO_T}builtin version" >&6 | |
0dcf9893 | 2787 | else |
e6cc62c6 VS |
2788 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 |
2789 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2790 | { (exit 1); exit 1; }; } | |
10f2d63a | 2791 | fi |
10f2d63a | 2792 | |
e6cc62c6 | 2793 | |
89fe663f VZ |
2794 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 |
2795 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2796 | no_cache=0 | |
2797 | ||
2798 | # Check whether --with-libxpm or --without-libxpm was given. | |
2799 | if test "${with_libxpm+set}" = set; then | |
2800 | withval="$with_libxpm" | |
2801 | ||
2802 | if test "$withval" = yes; then | |
2803 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2804 | elif test "$withval" = no; then | |
2805 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2806 | elif test "$withval" = sys; then | |
2807 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2808 | elif test "$withval" = builtin; then | |
2809 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2810 | else | |
2811 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2812 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2813 | { (exit 1); exit 1; }; } | |
2814 | fi | |
2815 | ||
2816 | else | |
2817 | ||
2818 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2819 | if test "x$LINE" != x ; then | |
2820 | eval "DEFAULT_$LINE" | |
2821 | else | |
2822 | no_cache=1 | |
2823 | fi | |
2824 | ||
2825 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2826 | ||
2827 | fi; | |
2828 | ||
2829 | eval "$ac_cv_use_libxpm" | |
2830 | if test "$no_cache" != 1; then | |
2831 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2832 | fi | |
2833 | ||
2834 | if test "$wxUSE_LIBXPM" = yes; then | |
2835 | echo "$as_me:$LINENO: result: yes" >&5 | |
2836 | echo "${ECHO_T}yes" >&6 | |
2837 | elif test "$wxUSE_LIBXPM" = no; then | |
2838 | echo "$as_me:$LINENO: result: no" >&5 | |
2839 | echo "${ECHO_T}no" >&6 | |
2840 | elif test "$wxUSE_LIBXPM" = sys; then | |
2841 | echo "$as_me:$LINENO: result: system version" >&5 | |
2842 | echo "${ECHO_T}system version" >&6 | |
2843 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2844 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2845 | echo "${ECHO_T}builtin version" >&6 | |
2846 | else | |
2847 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2848 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2849 | { (exit 1); exit 1; }; } | |
2850 | fi | |
2851 | ||
2852 | ||
3527f29c VS |
2853 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 |
2854 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2855 | no_cache=0 | |
2856 | ||
2857 | # Check whether --with-libmspack or --without-libmspack was given. | |
2858 | if test "${with_libmspack+set}" = set; then | |
2859 | withval="$with_libmspack" | |
2860 | ||
2861 | if test "$withval" = yes; then | |
2862 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2863 | else | |
2864 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
2865 | fi | |
2866 | ||
2867 | else | |
2868 | ||
2869 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
2870 | if test "x$LINE" != x ; then | |
2871 | eval "DEFAULT_$LINE" | |
2872 | else | |
2873 | no_cache=1 | |
2874 | fi | |
2875 | ||
2876 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
2877 | ||
2878 | fi; | |
2879 | ||
2880 | eval "$ac_cv_use_libmspack" | |
2881 | if test "$no_cache" != 1; then | |
2882 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
2883 | fi | |
2884 | ||
2885 | if test "$wxUSE_LIBMSPACK" = yes; then | |
2886 | echo "$as_me:$LINENO: result: yes" >&5 | |
2887 | echo "${ECHO_T}yes" >&6 | |
2888 | else | |
2889 | echo "$as_me:$LINENO: result: no" >&5 | |
2890 | echo "${ECHO_T}no" >&6 | |
2891 | fi | |
2892 | ||
2893 | ||
e6cc62c6 VS |
2894 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 |
2895 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
10f2d63a | 2896 | no_cache=0 |
e6cc62c6 VS |
2897 | |
2898 | # Check whether --with-opengl or --without-opengl was given. | |
b12915c1 VZ |
2899 | if test "${with_opengl+set}" = set; then |
2900 | withval="$with_opengl" | |
e6cc62c6 | 2901 | |
10f2d63a | 2902 | if test "$withval" = yes; then |
b12915c1 | 2903 | ac_cv_use_opengl='wxUSE_OPENGL=yes' |
10f2d63a | 2904 | else |
b12915c1 | 2905 | ac_cv_use_opengl='wxUSE_OPENGL=no' |
10f2d63a | 2906 | fi |
e6cc62c6 | 2907 | |
10f2d63a | 2908 | else |
e6cc62c6 | 2909 | |
b12915c1 | 2910 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` |
10f2d63a VZ |
2911 | if test "x$LINE" != x ; then |
2912 | eval "DEFAULT_$LINE" | |
2913 | else | |
2914 | no_cache=1 | |
2915 | fi | |
2916 | ||
b12915c1 | 2917 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL |
10f2d63a | 2918 | |
e6cc62c6 | 2919 | fi; |
10f2d63a | 2920 | |
b12915c1 | 2921 | eval "$ac_cv_use_opengl" |
10f2d63a | 2922 | if test "$no_cache" != 1; then |
b12915c1 | 2923 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
2924 | fi |
2925 | ||
b12915c1 | 2926 | if test "$wxUSE_OPENGL" = yes; then |
e6cc62c6 VS |
2927 | echo "$as_me:$LINENO: result: yes" >&5 |
2928 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 2929 | else |
e6cc62c6 VS |
2930 | echo "$as_me:$LINENO: result: no" >&5 |
2931 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 2932 | fi |
e6cc62c6 | 2933 | |
10f2d63a | 2934 | |
b12915c1 VZ |
2935 | fi |
2936 | ||
5c6fa7d2 | 2937 | |
e6cc62c6 VS |
2938 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 |
2939 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
8284b0c5 | 2940 | no_cache=0 |
e6cc62c6 VS |
2941 | |
2942 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
b12915c1 VZ |
2943 | if test "${with_dmalloc+set}" = set; then |
2944 | withval="$with_dmalloc" | |
e6cc62c6 | 2945 | |
c7a2bf27 | 2946 | if test "$withval" = yes; then |
b12915c1 | 2947 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' |
c7a2bf27 | 2948 | else |
b12915c1 | 2949 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' |
c7a2bf27 | 2950 | fi |
e6cc62c6 | 2951 | |
c7a2bf27 | 2952 | else |
e6cc62c6 | 2953 | |
b12915c1 | 2954 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` |
c7a2bf27 RR |
2955 | if test "x$LINE" != x ; then |
2956 | eval "DEFAULT_$LINE" | |
2957 | else | |
2958 | no_cache=1 | |
2959 | fi | |
2960 | ||
b12915c1 | 2961 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC |
c7a2bf27 | 2962 | |
e6cc62c6 | 2963 | fi; |
c7a2bf27 | 2964 | |
b12915c1 | 2965 | eval "$ac_cv_use_dmalloc" |
c7a2bf27 | 2966 | if test "$no_cache" != 1; then |
b12915c1 | 2967 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp |
c7a2bf27 RR |
2968 | fi |
2969 | ||
b12915c1 | 2970 | if test "$wxUSE_DMALLOC" = yes; then |
e6cc62c6 VS |
2971 | echo "$as_me:$LINENO: result: yes" >&5 |
2972 | echo "${ECHO_T}yes" >&6 | |
c7a2bf27 | 2973 | else |
e6cc62c6 VS |
2974 | echo "$as_me:$LINENO: result: no" >&5 |
2975 | echo "${ECHO_T}no" >&6 | |
c7a2bf27 | 2976 | fi |
c7a2bf27 | 2977 | |
e6cc62c6 VS |
2978 | |
2979 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
2980 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3e44f09d | 2981 | no_cache=0 |
e6cc62c6 VS |
2982 | |
2983 | # Check whether --with-regex or --without-regex was given. | |
3e44f09d VZ |
2984 | if test "${with_regex+set}" = set; then |
2985 | withval="$with_regex" | |
e6cc62c6 | 2986 | |
3e44f09d VZ |
2987 | if test "$withval" = yes; then |
2988 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
2989 | elif test "$withval" = no; then | |
2990 | ac_cv_use_regex='wxUSE_REGEX=no' | |
2991 | elif test "$withval" = sys; then | |
2992 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
4f14bcd8 GD |
2993 | elif test "$withval" = builtin; then |
2994 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3e44f09d | 2995 | else |
e6cc62c6 VS |
2996 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
2997 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
2998 | { (exit 1); exit 1; }; } | |
3e44f09d | 2999 | fi |
e6cc62c6 | 3000 | |
3e44f09d | 3001 | else |
e6cc62c6 | 3002 | |
3e44f09d VZ |
3003 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` |
3004 | if test "x$LINE" != x ; then | |
3005 | eval "DEFAULT_$LINE" | |
3006 | else | |
3007 | no_cache=1 | |
3008 | fi | |
3009 | ||
3010 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3e44f09d | 3011 | |
e6cc62c6 | 3012 | fi; |
3e44f09d VZ |
3013 | |
3014 | eval "$ac_cv_use_regex" | |
3015 | if test "$no_cache" != 1; then | |
3016 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3017 | fi | |
3018 | ||
3019 | if test "$wxUSE_REGEX" = yes; then | |
e6cc62c6 VS |
3020 | echo "$as_me:$LINENO: result: yes" >&5 |
3021 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 3022 | elif test "$wxUSE_REGEX" = no; then |
e6cc62c6 VS |
3023 | echo "$as_me:$LINENO: result: no" >&5 |
3024 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 3025 | elif test "$wxUSE_REGEX" = sys; then |
e6cc62c6 VS |
3026 | echo "$as_me:$LINENO: result: system version" >&5 |
3027 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3028 | elif test "$wxUSE_REGEX" = builtin; then |
e6cc62c6 VS |
3029 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3030 | echo "${ECHO_T}builtin version" >&6 | |
3e44f09d | 3031 | else |
e6cc62c6 VS |
3032 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 |
3033 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3034 | { (exit 1); exit 1; }; } | |
3e44f09d | 3035 | fi |
3e44f09d | 3036 | |
e6cc62c6 VS |
3037 | |
3038 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3039 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
10f2d63a | 3040 | no_cache=0 |
e6cc62c6 VS |
3041 | |
3042 | # Check whether --with-zlib or --without-zlib was given. | |
b12915c1 VZ |
3043 | if test "${with_zlib+set}" = set; then |
3044 | withval="$with_zlib" | |
e6cc62c6 | 3045 | |
10f2d63a | 3046 | if test "$withval" = yes; then |
b12915c1 | 3047 | ac_cv_use_zlib='wxUSE_ZLIB=yes' |
422107f9 | 3048 | elif test "$withval" = no; then |
b12915c1 | 3049 | ac_cv_use_zlib='wxUSE_ZLIB=no' |
422107f9 VZ |
3050 | elif test "$withval" = sys; then |
3051 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
4f14bcd8 GD |
3052 | elif test "$withval" = builtin; then |
3053 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
422107f9 | 3054 | else |
e6cc62c6 VS |
3055 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3056 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3057 | { (exit 1); exit 1; }; } | |
10f2d63a | 3058 | fi |
e6cc62c6 | 3059 | |
10f2d63a | 3060 | else |
e6cc62c6 | 3061 | |
b12915c1 | 3062 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` |
10f2d63a VZ |
3063 | if test "x$LINE" != x ; then |
3064 | eval "DEFAULT_$LINE" | |
3065 | else | |
3066 | no_cache=1 | |
3067 | fi | |
3068 | ||
b12915c1 | 3069 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB |
10f2d63a | 3070 | |
e6cc62c6 | 3071 | fi; |
10f2d63a | 3072 | |
b12915c1 | 3073 | eval "$ac_cv_use_zlib" |
10f2d63a | 3074 | if test "$no_cache" != 1; then |
b12915c1 | 3075 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
3076 | fi |
3077 | ||
b12915c1 | 3078 | if test "$wxUSE_ZLIB" = yes; then |
e6cc62c6 VS |
3079 | echo "$as_me:$LINENO: result: yes" >&5 |
3080 | echo "${ECHO_T}yes" >&6 | |
422107f9 | 3081 | elif test "$wxUSE_ZLIB" = no; then |
e6cc62c6 VS |
3082 | echo "$as_me:$LINENO: result: no" >&5 |
3083 | echo "${ECHO_T}no" >&6 | |
422107f9 | 3084 | elif test "$wxUSE_ZLIB" = sys; then |
e6cc62c6 VS |
3085 | echo "$as_me:$LINENO: result: system version" >&5 |
3086 | echo "${ECHO_T}system version" >&6 | |
4f14bcd8 | 3087 | elif test "$wxUSE_ZLIB" = builtin; then |
e6cc62c6 VS |
3088 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3089 | echo "${ECHO_T}builtin version" >&6 | |
422107f9 | 3090 | else |
e6cc62c6 VS |
3091 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 |
3092 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3093 | { (exit 1); exit 1; }; } | |
10f2d63a | 3094 | fi |
10f2d63a | 3095 | |
e6cc62c6 VS |
3096 | |
3097 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3098 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
10f2d63a | 3099 | no_cache=0 |
e6cc62c6 VS |
3100 | |
3101 | # Check whether --with-odbc or --without-odbc was given. | |
10f2d63a VZ |
3102 | if test "${with_odbc+set}" = set; then |
3103 | withval="$with_odbc" | |
e6cc62c6 | 3104 | |
10f2d63a VZ |
3105 | if test "$withval" = yes; then |
3106 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
8647bec6 | 3107 | elif test "$withval" = no; then |
10f2d63a | 3108 | ac_cv_use_odbc='wxUSE_ODBC=no' |
8647bec6 RG |
3109 | elif test "$withval" = sys; then |
3110 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3111 | elif test "$withval" = builtin; then | |
3112 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3113 | else | |
e6cc62c6 VS |
3114 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3115 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3116 | { (exit 1); exit 1; }; } | |
10f2d63a | 3117 | fi |
e6cc62c6 | 3118 | |
10f2d63a | 3119 | else |
e6cc62c6 | 3120 | |
10f2d63a VZ |
3121 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` |
3122 | if test "x$LINE" != x ; then | |
3123 | eval "DEFAULT_$LINE" | |
3124 | else | |
3125 | no_cache=1 | |
3126 | fi | |
3127 | ||
3128 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
10f2d63a | 3129 | |
e6cc62c6 | 3130 | fi; |
10f2d63a VZ |
3131 | |
3132 | eval "$ac_cv_use_odbc" | |
3133 | if test "$no_cache" != 1; then | |
3134 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3135 | fi | |
3136 | ||
3137 | if test "$wxUSE_ODBC" = yes; then | |
e6cc62c6 VS |
3138 | echo "$as_me:$LINENO: result: yes" >&5 |
3139 | echo "${ECHO_T}yes" >&6 | |
8647bec6 | 3140 | elif test "$wxUSE_ODBC" = no; then |
e6cc62c6 VS |
3141 | echo "$as_me:$LINENO: result: no" >&5 |
3142 | echo "${ECHO_T}no" >&6 | |
8647bec6 | 3143 | elif test "$wxUSE_ODBC" = sys; then |
e6cc62c6 VS |
3144 | echo "$as_me:$LINENO: result: system version" >&5 |
3145 | echo "${ECHO_T}system version" >&6 | |
8647bec6 | 3146 | elif test "$wxUSE_ODBC" = builtin; then |
e6cc62c6 VS |
3147 | echo "$as_me:$LINENO: result: builtin version" >&5 |
3148 | echo "${ECHO_T}builtin version" >&6 | |
8647bec6 | 3149 | else |
e6cc62c6 VS |
3150 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 |
3151 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3152 | { (exit 1); exit 1; }; } | |
10f2d63a | 3153 | fi |
e6cc62c6 | 3154 | |
52127426 | 3155 | |
672abd7a VS |
3156 | echo "$as_me:$LINENO: checking for --with-expat" >&5 |
3157 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3158 | no_cache=0 | |
3159 | ||
3160 | # Check whether --with-expat or --without-expat was given. | |
3161 | if test "${with_expat+set}" = set; then | |
3162 | withval="$with_expat" | |
3163 | ||
3164 | if test "$withval" = yes; then | |
3165 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3166 | elif test "$withval" = no; then | |
3167 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3168 | elif test "$withval" = sys; then | |
3169 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3170 | elif test "$withval" = builtin; then | |
3171 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3172 | else | |
3173 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3174 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3175 | { (exit 1); exit 1; }; } | |
3176 | fi | |
3177 | ||
3178 | else | |
3179 | ||
3180 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3181 | if test "x$LINE" != x ; then | |
3182 | eval "DEFAULT_$LINE" | |
3183 | else | |
3184 | no_cache=1 | |
3185 | fi | |
3186 | ||
3187 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3188 | ||
3189 | fi; | |
3190 | ||
3191 | eval "$ac_cv_use_expat" | |
3192 | if test "$no_cache" != 1; then | |
3193 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3194 | fi | |
3195 | ||
3196 | if test "$wxUSE_EXPAT" = yes; then | |
3197 | echo "$as_me:$LINENO: result: yes" >&5 | |
3198 | echo "${ECHO_T}yes" >&6 | |
3199 | elif test "$wxUSE_EXPAT" = no; then | |
3200 | echo "$as_me:$LINENO: result: no" >&5 | |
3201 | echo "${ECHO_T}no" >&6 | |
3202 | elif test "$wxUSE_EXPAT" = sys; then | |
3203 | echo "$as_me:$LINENO: result: system version" >&5 | |
3204 | echo "${ECHO_T}system version" >&6 | |
3205 | elif test "$wxUSE_EXPAT" = builtin; then | |
3206 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3207 | echo "${ECHO_T}builtin version" >&6 | |
3208 | else | |
3209 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3210 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3211 | { (exit 1); exit 1; }; } | |
3212 | fi | |
3213 | ||
3214 | ||
8284b0c5 MB |
3215 | |
3216 | ||
5005acfe | 3217 | enablestring= |
e6cc62c6 VS |
3218 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 |
3219 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
10f2d63a VZ |
3220 | no_cache=0 |
3221 | # Check whether --enable-shared or --disable-shared was given. | |
3222 | if test "${enable_shared+set}" = set; then | |
3223 | enableval="$enable_shared" | |
e6cc62c6 | 3224 | |
10f2d63a VZ |
3225 | if test "$enableval" = yes; then |
3226 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3227 | else | |
3228 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3229 | fi | |
e6cc62c6 | 3230 | |
10f2d63a | 3231 | else |
e6cc62c6 | 3232 | |
10f2d63a VZ |
3233 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` |
3234 | if test "x$LINE" != x ; then | |
3235 | eval "DEFAULT_$LINE" | |
3236 | else | |
3237 | no_cache=1 | |
3238 | fi | |
3239 | ||
3240 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
10f2d63a | 3241 | |
e6cc62c6 | 3242 | fi; |
10f2d63a VZ |
3243 | |
3244 | eval "$ac_cv_use_shared" | |
3245 | if test "$no_cache" != 1; then | |
3246 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3247 | fi | |
3248 | ||
3249 | if test "$wxUSE_SHARED" = yes; then | |
e6cc62c6 VS |
3250 | echo "$as_me:$LINENO: result: yes" >&5 |
3251 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3252 | else |
e6cc62c6 VS |
3253 | echo "$as_me:$LINENO: result: no" >&5 |
3254 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3255 | fi |
e6cc62c6 | 3256 | |
10f2d63a | 3257 | |
5005acfe | 3258 | enablestring= |
e6cc62c6 VS |
3259 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 |
3260 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
10f2d63a VZ |
3261 | no_cache=0 |
3262 | # Check whether --enable-optimise or --disable-optimise was given. | |
3263 | if test "${enable_optimise+set}" = set; then | |
3264 | enableval="$enable_optimise" | |
e6cc62c6 | 3265 | |
10f2d63a VZ |
3266 | if test "$enableval" = yes; then |
3267 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3268 | else | |
3269 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3270 | fi | |
e6cc62c6 | 3271 | |
10f2d63a | 3272 | else |
e6cc62c6 | 3273 | |
10f2d63a VZ |
3274 | LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}` |
3275 | if test "x$LINE" != x ; then | |
3276 | eval "DEFAULT_$LINE" | |
3277 | else | |
3278 | no_cache=1 | |
3279 | fi | |
3280 | ||
3281 | ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
10f2d63a | 3282 | |
e6cc62c6 | 3283 | fi; |
10f2d63a VZ |
3284 | |
3285 | eval "$ac_cv_use_optimise" | |
3286 | if test "$no_cache" != 1; then | |
3287 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3288 | fi | |
3289 | ||
3290 | if test "$wxUSE_OPTIMISE" = yes; then | |
e6cc62c6 VS |
3291 | echo "$as_me:$LINENO: result: yes" >&5 |
3292 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3293 | else |
e6cc62c6 VS |
3294 | echo "$as_me:$LINENO: result: no" >&5 |
3295 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3296 | fi |
e6cc62c6 | 3297 | |
10f2d63a | 3298 | |
5005acfe | 3299 | enablestring= |
e6cc62c6 VS |
3300 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 |
3301 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
10f2d63a VZ |
3302 | no_cache=0 |
3303 | # Check whether --enable-debug or --disable-debug was given. | |
3304 | if test "${enable_debug+set}" = set; then | |
3305 | enableval="$enable_debug" | |
e6cc62c6 | 3306 | |
10f2d63a VZ |
3307 | if test "$enableval" = yes; then |
3308 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3309 | else | |
3310 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3311 | fi | |
e6cc62c6 | 3312 | |
10f2d63a | 3313 | else |
e6cc62c6 | 3314 | |
10f2d63a VZ |
3315 | LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}` |
3316 | if test "x$LINE" != x ; then | |
3317 | eval "DEFAULT_$LINE" | |
3318 | else | |
3319 | no_cache=1 | |
3320 | fi | |
3321 | ||
3322 | ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
10f2d63a | 3323 | |
e6cc62c6 | 3324 | fi; |
10f2d63a VZ |
3325 | |
3326 | eval "$ac_cv_use_debug" | |
3327 | if test "$no_cache" != 1; then | |
3328 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3329 | fi | |
3330 | ||
3331 | if test "$wxUSE_DEBUG" = yes; then | |
e6cc62c6 VS |
3332 | echo "$as_me:$LINENO: result: yes" >&5 |
3333 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3334 | else |
e6cc62c6 VS |
3335 | echo "$as_me:$LINENO: result: no" >&5 |
3336 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3337 | fi |
e6cc62c6 | 3338 | |
52127426 | 3339 | |
df5168c4 MB |
3340 | enablestring= |
3341 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3342 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3343 | no_cache=0 | |
3344 | # Check whether --enable-stl or --disable-stl was given. | |
3345 | if test "${enable_stl+set}" = set; then | |
3346 | enableval="$enable_stl" | |
3347 | ||
3348 | if test "$enableval" = yes; then | |
3349 | ac_cv_use_stl='wxUSE_STL=yes' | |
3350 | else | |
3351 | ac_cv_use_stl='wxUSE_STL=no' | |
3352 | fi | |
3353 | ||
3354 | else | |
3355 | ||
3356 | LINE=`grep "wxUSE_STL" ${wx_arg_cache_file}` | |
3357 | if test "x$LINE" != x ; then | |
3358 | eval "DEFAULT_$LINE" | |
3359 | else | |
3360 | no_cache=1 | |
3361 | fi | |
3362 | ||
3363 | ac_cv_use_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3364 | ||
3365 | fi; | |
3366 | ||
3367 | eval "$ac_cv_use_stl" | |
3368 | if test "$no_cache" != 1; then | |
3369 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3370 | fi | |
3371 | ||
3372 | if test "$wxUSE_STL" = yes; then | |
3373 | echo "$as_me:$LINENO: result: yes" >&5 | |
3374 | echo "${ECHO_T}yes" >&6 | |
3375 | else | |
3376 | echo "$as_me:$LINENO: result: no" >&5 | |
3377 | echo "${ECHO_T}no" >&6 | |
3378 | fi | |
3379 | ||
3380 | ||
10f2d63a VZ |
3381 | if test "$wxUSE_DEBUG" = "yes"; then |
3382 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3383 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
6c67131a | 3384 | BUILD=debug |
10f2d63a VZ |
3385 | elif test "$wxUSE_DEBUG" = "no"; then |
3386 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3387 | DEFAULT_wxUSE_DEBUG_INFO=no | |
6c67131a | 3388 | BUILD=release |
10f2d63a VZ |
3389 | fi |
3390 | ||
8284b0c5 | 3391 | |
5005acfe | 3392 | enablestring= |
e6cc62c6 VS |
3393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 |
3394 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
10f2d63a VZ |
3395 | no_cache=0 |
3396 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3397 | if test "${enable_debug_flag+set}" = set; then | |
3398 | enableval="$enable_debug_flag" | |
e6cc62c6 | 3399 | |
10f2d63a VZ |
3400 | if test "$enableval" = yes; then |
3401 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3402 | else | |
3403 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3404 | fi | |
e6cc62c6 | 3405 | |
10f2d63a | 3406 | else |
e6cc62c6 | 3407 | |
10f2d63a VZ |
3408 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` |
3409 | if test "x$LINE" != x ; then | |
3410 | eval "DEFAULT_$LINE" | |
3411 | else | |
3412 | no_cache=1 | |
3413 | fi | |
3414 | ||
3415 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
10f2d63a | 3416 | |
e6cc62c6 | 3417 | fi; |
10f2d63a VZ |
3418 | |
3419 | eval "$ac_cv_use_debug_flag" | |
3420 | if test "$no_cache" != 1; then | |
3421 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3422 | fi | |
3423 | ||
3424 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
e6cc62c6 VS |
3425 | echo "$as_me:$LINENO: result: yes" >&5 |
3426 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3427 | else |
e6cc62c6 VS |
3428 | echo "$as_me:$LINENO: result: no" >&5 |
3429 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3430 | fi |
e6cc62c6 | 3431 | |
10f2d63a | 3432 | |
5005acfe | 3433 | enablestring= |
e6cc62c6 VS |
3434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 |
3435 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
10f2d63a VZ |
3436 | no_cache=0 |
3437 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3438 | if test "${enable_debug_info+set}" = set; then | |
3439 | enableval="$enable_debug_info" | |
e6cc62c6 | 3440 | |
10f2d63a VZ |
3441 | if test "$enableval" = yes; then |
3442 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3443 | else | |
3444 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3445 | fi | |
e6cc62c6 | 3446 | |
10f2d63a | 3447 | else |
e6cc62c6 | 3448 | |
10f2d63a VZ |
3449 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` |
3450 | if test "x$LINE" != x ; then | |
3451 | eval "DEFAULT_$LINE" | |
3452 | else | |
3453 | no_cache=1 | |
3454 | fi | |
3455 | ||
3456 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
10f2d63a | 3457 | |
e6cc62c6 | 3458 | fi; |
10f2d63a VZ |
3459 | |
3460 | eval "$ac_cv_use_debug_info" | |
3461 | if test "$no_cache" != 1; then | |
3462 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3463 | fi | |
3464 | ||
3465 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
e6cc62c6 VS |
3466 | echo "$as_me:$LINENO: result: yes" >&5 |
3467 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3468 | else |
e6cc62c6 VS |
3469 | echo "$as_me:$LINENO: result: no" >&5 |
3470 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3471 | fi |
e6cc62c6 | 3472 | |
10f2d63a | 3473 | |
5005acfe | 3474 | enablestring= |
e6cc62c6 VS |
3475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 |
3476 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
10f2d63a VZ |
3477 | no_cache=0 |
3478 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3479 | if test "${enable_debug_gdb+set}" = set; then | |
3480 | enableval="$enable_debug_gdb" | |
e6cc62c6 | 3481 | |
10f2d63a VZ |
3482 | if test "$enableval" = yes; then |
3483 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3484 | else | |
3485 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3486 | fi | |
e6cc62c6 | 3487 | |
10f2d63a | 3488 | else |
e6cc62c6 | 3489 | |
10f2d63a VZ |
3490 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` |
3491 | if test "x$LINE" != x ; then | |
3492 | eval "DEFAULT_$LINE" | |
3493 | else | |
3494 | no_cache=1 | |
3495 | fi | |
3496 | ||
3497 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
10f2d63a | 3498 | |
e6cc62c6 | 3499 | fi; |
10f2d63a VZ |
3500 | |
3501 | eval "$ac_cv_use_debug_gdb" | |
3502 | if test "$no_cache" != 1; then | |
3503 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3504 | fi | |
3505 | ||
3506 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
e6cc62c6 VS |
3507 | echo "$as_me:$LINENO: result: yes" >&5 |
3508 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3509 | else |
e6cc62c6 VS |
3510 | echo "$as_me:$LINENO: result: no" >&5 |
3511 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3512 | fi |
e6cc62c6 | 3513 | |
10f2d63a | 3514 | |
5005acfe | 3515 | enablestring= |
e6cc62c6 VS |
3516 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 |
3517 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
10f2d63a VZ |
3518 | no_cache=0 |
3519 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3520 | if test "${enable_debug_cntxt+set}" = set; then | |
3521 | enableval="$enable_debug_cntxt" | |
e6cc62c6 | 3522 | |
10f2d63a VZ |
3523 | if test "$enableval" = yes; then |
3524 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3525 | else | |
3526 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3527 | fi | |
e6cc62c6 | 3528 | |
10f2d63a | 3529 | else |
e6cc62c6 | 3530 | |
10f2d63a VZ |
3531 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` |
3532 | if test "x$LINE" != x ; then | |
3533 | eval "DEFAULT_$LINE" | |
3534 | else | |
3535 | no_cache=1 | |
3536 | fi | |
3537 | ||
3538 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
10f2d63a | 3539 | |
e6cc62c6 | 3540 | fi; |
10f2d63a VZ |
3541 | |
3542 | eval "$ac_cv_use_debug_cntxt" | |
3543 | if test "$no_cache" != 1; then | |
3544 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3545 | fi | |
3546 | ||
3547 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
e6cc62c6 VS |
3548 | echo "$as_me:$LINENO: result: yes" >&5 |
3549 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3550 | else |
e6cc62c6 VS |
3551 | echo "$as_me:$LINENO: result: no" >&5 |
3552 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3553 | fi |
e6cc62c6 | 3554 | |
10f2d63a | 3555 | |
5005acfe | 3556 | enablestring= |
e6cc62c6 VS |
3557 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 |
3558 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
10f2d63a VZ |
3559 | no_cache=0 |
3560 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3561 | if test "${enable_mem_tracing+set}" = set; then | |
3562 | enableval="$enable_mem_tracing" | |
e6cc62c6 | 3563 | |
10f2d63a VZ |
3564 | if test "$enableval" = yes; then |
3565 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3566 | else | |
3567 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3568 | fi | |
e6cc62c6 | 3569 | |
10f2d63a | 3570 | else |
e6cc62c6 | 3571 | |
10f2d63a VZ |
3572 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` |
3573 | if test "x$LINE" != x ; then | |
3574 | eval "DEFAULT_$LINE" | |
3575 | else | |
3576 | no_cache=1 | |
3577 | fi | |
3578 | ||
3579 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
10f2d63a | 3580 | |
e6cc62c6 | 3581 | fi; |
10f2d63a VZ |
3582 | |
3583 | eval "$ac_cv_use_mem_tracing" | |
3584 | if test "$no_cache" != 1; then | |
3585 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3586 | fi | |
3587 | ||
3588 | if test "$wxUSE_MEM_TRACING" = yes; then | |
e6cc62c6 VS |
3589 | echo "$as_me:$LINENO: result: yes" >&5 |
3590 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3591 | else |
e6cc62c6 VS |
3592 | echo "$as_me:$LINENO: result: no" >&5 |
3593 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3594 | fi |
e6cc62c6 | 3595 | |
10f2d63a | 3596 | |
5005acfe | 3597 | enablestring= |
e6cc62c6 VS |
3598 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 |
3599 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
10f2d63a VZ |
3600 | no_cache=0 |
3601 | # Check whether --enable-profile or --disable-profile was given. | |
3602 | if test "${enable_profile+set}" = set; then | |
3603 | enableval="$enable_profile" | |
e6cc62c6 | 3604 | |
10f2d63a VZ |
3605 | if test "$enableval" = yes; then |
3606 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3607 | else | |
3608 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3609 | fi | |
e6cc62c6 | 3610 | |
10f2d63a | 3611 | else |
e6cc62c6 | 3612 | |
10f2d63a VZ |
3613 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` |
3614 | if test "x$LINE" != x ; then | |
3615 | eval "DEFAULT_$LINE" | |
3616 | else | |
3617 | no_cache=1 | |
3618 | fi | |
3619 | ||
3620 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
10f2d63a | 3621 | |
e6cc62c6 | 3622 | fi; |
10f2d63a VZ |
3623 | |
3624 | eval "$ac_cv_use_profile" | |
3625 | if test "$no_cache" != 1; then | |
3626 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3627 | fi | |
3628 | ||
3629 | if test "$wxUSE_PROFILE" = yes; then | |
e6cc62c6 VS |
3630 | echo "$as_me:$LINENO: result: yes" >&5 |
3631 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3632 | else |
e6cc62c6 VS |
3633 | echo "$as_me:$LINENO: result: no" >&5 |
3634 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3635 | fi |
e6cc62c6 | 3636 | |
10f2d63a | 3637 | |
5005acfe | 3638 | enablestring= |
e6cc62c6 VS |
3639 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 |
3640 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
10f2d63a VZ |
3641 | no_cache=0 |
3642 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3643 | if test "${enable_no_rtti+set}" = set; then | |
3644 | enableval="$enable_no_rtti" | |
e6cc62c6 | 3645 | |
10f2d63a VZ |
3646 | if test "$enableval" = yes; then |
3647 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3648 | else | |
3649 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3650 | fi | |
e6cc62c6 | 3651 | |
10f2d63a | 3652 | else |
e6cc62c6 | 3653 | |
10f2d63a VZ |
3654 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` |
3655 | if test "x$LINE" != x ; then | |
3656 | eval "DEFAULT_$LINE" | |
3657 | else | |
3658 | no_cache=1 | |
3659 | fi | |
3660 | ||
3661 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
10f2d63a | 3662 | |
e6cc62c6 | 3663 | fi; |
10f2d63a VZ |
3664 | |
3665 | eval "$ac_cv_use_no_rtti" | |
3666 | if test "$no_cache" != 1; then | |
3667 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3668 | fi | |
3669 | ||
3670 | if test "$wxUSE_NO_RTTI" = yes; then | |
e6cc62c6 VS |
3671 | echo "$as_me:$LINENO: result: yes" >&5 |
3672 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3673 | else |
e6cc62c6 VS |
3674 | echo "$as_me:$LINENO: result: no" >&5 |
3675 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3676 | fi |
e6cc62c6 | 3677 | |
10f2d63a | 3678 | |
5005acfe | 3679 | enablestring= |
e6cc62c6 VS |
3680 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 |
3681 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
10f2d63a VZ |
3682 | no_cache=0 |
3683 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3684 | if test "${enable_no_exceptions+set}" = set; then | |
3685 | enableval="$enable_no_exceptions" | |
e6cc62c6 | 3686 | |
10f2d63a VZ |
3687 | if test "$enableval" = yes; then |
3688 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3689 | else | |
3690 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3691 | fi | |
e6cc62c6 | 3692 | |
10f2d63a | 3693 | else |
e6cc62c6 | 3694 | |
10f2d63a VZ |
3695 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` |
3696 | if test "x$LINE" != x ; then | |
3697 | eval "DEFAULT_$LINE" | |
3698 | else | |
3699 | no_cache=1 | |
3700 | fi | |
3701 | ||
3702 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
10f2d63a | 3703 | |
e6cc62c6 | 3704 | fi; |
10f2d63a VZ |
3705 | |
3706 | eval "$ac_cv_use_no_exceptions" | |
3707 | if test "$no_cache" != 1; then | |
3708 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3709 | fi | |
3710 | ||
3711 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
e6cc62c6 VS |
3712 | echo "$as_me:$LINENO: result: yes" >&5 |
3713 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3714 | else |
e6cc62c6 VS |
3715 | echo "$as_me:$LINENO: result: no" >&5 |
3716 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3717 | fi |
e6cc62c6 | 3718 | |
10f2d63a | 3719 | |
5005acfe | 3720 | enablestring= |
e6cc62c6 VS |
3721 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 |
3722 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
10f2d63a VZ |
3723 | no_cache=0 |
3724 | # Check whether --enable-permissive or --disable-permissive was given. | |
3725 | if test "${enable_permissive+set}" = set; then | |
3726 | enableval="$enable_permissive" | |
e6cc62c6 | 3727 | |
10f2d63a VZ |
3728 | if test "$enableval" = yes; then |
3729 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3730 | else | |
3731 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3732 | fi | |
e6cc62c6 | 3733 | |
10f2d63a | 3734 | else |
e6cc62c6 | 3735 | |
10f2d63a VZ |
3736 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` |
3737 | if test "x$LINE" != x ; then | |
3738 | eval "DEFAULT_$LINE" | |
3739 | else | |
3740 | no_cache=1 | |
3741 | fi | |
3742 | ||
3743 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
10f2d63a | 3744 | |
e6cc62c6 | 3745 | fi; |
10f2d63a VZ |
3746 | |
3747 | eval "$ac_cv_use_permissive" | |
3748 | if test "$no_cache" != 1; then | |
3749 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3750 | fi | |
3751 | ||
3752 | if test "$wxUSE_PERMISSIVE" = yes; then | |
e6cc62c6 VS |
3753 | echo "$as_me:$LINENO: result: yes" >&5 |
3754 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3755 | else |
e6cc62c6 VS |
3756 | echo "$as_me:$LINENO: result: no" >&5 |
3757 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3758 | fi |
e6cc62c6 | 3759 | |
10f2d63a | 3760 | |
5005acfe | 3761 | enablestring= |
e6cc62c6 VS |
3762 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 |
3763 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
10f2d63a VZ |
3764 | no_cache=0 |
3765 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3766 | if test "${enable_no_deps+set}" = set; then | |
3767 | enableval="$enable_no_deps" | |
e6cc62c6 | 3768 | |
10f2d63a VZ |
3769 | if test "$enableval" = yes; then |
3770 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3771 | else | |
3772 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3773 | fi | |
e6cc62c6 | 3774 | |
10f2d63a | 3775 | else |
e6cc62c6 | 3776 | |
10f2d63a VZ |
3777 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` |
3778 | if test "x$LINE" != x ; then | |
3779 | eval "DEFAULT_$LINE" | |
3780 | else | |
3781 | no_cache=1 | |
3782 | fi | |
3783 | ||
3784 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
10f2d63a | 3785 | |
e6cc62c6 | 3786 | fi; |
10f2d63a VZ |
3787 | |
3788 | eval "$ac_cv_use_no_deps" | |
3789 | if test "$no_cache" != 1; then | |
3790 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3791 | fi | |
3792 | ||
3793 | if test "$wxUSE_NO_DEPS" = yes; then | |
e6cc62c6 VS |
3794 | echo "$as_me:$LINENO: result: yes" >&5 |
3795 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3796 | else |
e6cc62c6 VS |
3797 | echo "$as_me:$LINENO: result: no" >&5 |
3798 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3799 | fi |
e6cc62c6 | 3800 | |
52127426 | 3801 | |
8284b0c5 | 3802 | |
65d8ef1e | 3803 | enablestring= |
e6cc62c6 VS |
3804 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 |
3805 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
54276ccf VZ |
3806 | no_cache=0 |
3807 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3808 | if test "${enable_compat22+set}" = set; then | |
3809 | enableval="$enable_compat22" | |
e6cc62c6 | 3810 | |
54276ccf VZ |
3811 | if test "$enableval" = yes; then |
3812 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3813 | else | |
3814 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3815 | fi | |
e6cc62c6 | 3816 | |
54276ccf | 3817 | else |
e6cc62c6 | 3818 | |
54276ccf VZ |
3819 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` |
3820 | if test "x$LINE" != x ; then | |
3821 | eval "DEFAULT_$LINE" | |
3822 | else | |
3823 | no_cache=1 | |
3824 | fi | |
3825 | ||
3826 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
54276ccf | 3827 | |
e6cc62c6 | 3828 | fi; |
54276ccf VZ |
3829 | |
3830 | eval "$ac_cv_use_compat22" | |
3831 | if test "$no_cache" != 1; then | |
3832 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
3833 | fi | |
3834 | ||
3835 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
e6cc62c6 VS |
3836 | echo "$as_me:$LINENO: result: yes" >&5 |
3837 | echo "${ECHO_T}yes" >&6 | |
54276ccf | 3838 | else |
e6cc62c6 VS |
3839 | echo "$as_me:$LINENO: result: no" >&5 |
3840 | echo "${ECHO_T}no" >&6 | |
54276ccf | 3841 | fi |
e6cc62c6 | 3842 | |
54276ccf | 3843 | |
65d8ef1e | 3844 | enablestring=disable |
e6cc62c6 VS |
3845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 |
3846 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
65d8ef1e VS |
3847 | no_cache=0 |
3848 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
3849 | if test "${enable_compat24+set}" = set; then | |
3850 | enableval="$enable_compat24" | |
e6cc62c6 | 3851 | |
65d8ef1e VS |
3852 | if test "$enableval" = yes; then |
3853 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
3854 | else | |
3855 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
3856 | fi | |
e6cc62c6 | 3857 | |
65d8ef1e | 3858 | else |
e6cc62c6 | 3859 | |
65d8ef1e VS |
3860 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` |
3861 | if test "x$LINE" != x ; then | |
3862 | eval "DEFAULT_$LINE" | |
3863 | else | |
3864 | no_cache=1 | |
3865 | fi | |
3866 | ||
3867 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
65d8ef1e | 3868 | |
e6cc62c6 | 3869 | fi; |
65d8ef1e VS |
3870 | |
3871 | eval "$ac_cv_use_compat24" | |
3872 | if test "$no_cache" != 1; then | |
3873 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
3874 | fi | |
3875 | ||
3876 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
e6cc62c6 VS |
3877 | echo "$as_me:$LINENO: result: yes" >&5 |
3878 | echo "${ECHO_T}yes" >&6 | |
65d8ef1e | 3879 | else |
e6cc62c6 VS |
3880 | echo "$as_me:$LINENO: result: no" >&5 |
3881 | echo "${ECHO_T}no" >&6 | |
65d8ef1e | 3882 | fi |
e6cc62c6 | 3883 | |
65d8ef1e | 3884 | |
3bd8fb5f RD |
3885 | # Check whether --enable-rpath or --disable-rpath was given. |
3886 | if test "${enable_rpath+set}" = set; then | |
3887 | enableval="$enable_rpath" | |
3888 | wxRPATH_DIR="$enableval" | |
e6cc62c6 | 3889 | fi; |
3bd8fb5f RD |
3890 | |
3891 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
3892 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
3893 | fi | |
3894 | ||
8284b0c5 MB |
3895 | |
3896 | ||
3897 | ||
5005acfe | 3898 | enablestring= |
e6cc62c6 VS |
3899 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 |
3900 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
10f2d63a VZ |
3901 | no_cache=0 |
3902 | # Check whether --enable-intl or --disable-intl was given. | |
3903 | if test "${enable_intl+set}" = set; then | |
3904 | enableval="$enable_intl" | |
e6cc62c6 | 3905 | |
10f2d63a VZ |
3906 | if test "$enableval" = yes; then |
3907 | ac_cv_use_intl='wxUSE_INTL=yes' | |
3908 | else | |
3909 | ac_cv_use_intl='wxUSE_INTL=no' | |
3910 | fi | |
e6cc62c6 | 3911 | |
10f2d63a | 3912 | else |
e6cc62c6 | 3913 | |
10f2d63a VZ |
3914 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` |
3915 | if test "x$LINE" != x ; then | |
3916 | eval "DEFAULT_$LINE" | |
3917 | else | |
3918 | no_cache=1 | |
3919 | fi | |
3920 | ||
3921 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
10f2d63a | 3922 | |
e6cc62c6 | 3923 | fi; |
10f2d63a VZ |
3924 | |
3925 | eval "$ac_cv_use_intl" | |
3926 | if test "$no_cache" != 1; then | |
3927 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
3928 | fi | |
3929 | ||
3930 | if test "$wxUSE_INTL" = yes; then | |
e6cc62c6 VS |
3931 | echo "$as_me:$LINENO: result: yes" >&5 |
3932 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3933 | else |
e6cc62c6 VS |
3934 | echo "$as_me:$LINENO: result: no" >&5 |
3935 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3936 | fi |
e6cc62c6 | 3937 | |
10f2d63a | 3938 | |
5005acfe | 3939 | enablestring= |
e6cc62c6 VS |
3940 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 |
3941 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
10f2d63a VZ |
3942 | no_cache=0 |
3943 | # Check whether --enable-config or --disable-config was given. | |
3944 | if test "${enable_config+set}" = set; then | |
3945 | enableval="$enable_config" | |
e6cc62c6 | 3946 | |
10f2d63a VZ |
3947 | if test "$enableval" = yes; then |
3948 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
3949 | else | |
3950 | ac_cv_use_config='wxUSE_CONFIG=no' | |
3951 | fi | |
e6cc62c6 | 3952 | |
10f2d63a | 3953 | else |
e6cc62c6 | 3954 | |
10f2d63a VZ |
3955 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` |
3956 | if test "x$LINE" != x ; then | |
3957 | eval "DEFAULT_$LINE" | |
3958 | else | |
3959 | no_cache=1 | |
3960 | fi | |
3961 | ||
3962 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
10f2d63a | 3963 | |
e6cc62c6 | 3964 | fi; |
10f2d63a VZ |
3965 | |
3966 | eval "$ac_cv_use_config" | |
3967 | if test "$no_cache" != 1; then | |
3968 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
3969 | fi | |
3970 | ||
3971 | if test "$wxUSE_CONFIG" = yes; then | |
e6cc62c6 VS |
3972 | echo "$as_me:$LINENO: result: yes" >&5 |
3973 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 3974 | else |
e6cc62c6 VS |
3975 | echo "$as_me:$LINENO: result: no" >&5 |
3976 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 3977 | fi |
e6cc62c6 | 3978 | |
52127426 | 3979 | |
8284b0c5 | 3980 | |
5005acfe | 3981 | enablestring= |
e6cc62c6 VS |
3982 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 |
3983 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
a1622950 VZ |
3984 | no_cache=0 |
3985 | # Check whether --enable-protocols or --disable-protocols was given. | |
3986 | if test "${enable_protocols+set}" = set; then | |
3987 | enableval="$enable_protocols" | |
e6cc62c6 | 3988 | |
a1622950 VZ |
3989 | if test "$enableval" = yes; then |
3990 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
3991 | else | |
3992 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
3993 | fi | |
e6cc62c6 | 3994 | |
a1622950 | 3995 | else |
e6cc62c6 | 3996 | |
a1622950 VZ |
3997 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
3998 | if test "x$LINE" != x ; then | |
3999 | eval "DEFAULT_$LINE" | |
4000 | else | |
4001 | no_cache=1 | |
4002 | fi | |
4003 | ||
4004 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
a1622950 | 4005 | |
e6cc62c6 | 4006 | fi; |
a1622950 VZ |
4007 | |
4008 | eval "$ac_cv_use_protocols" | |
4009 | if test "$no_cache" != 1; then | |
4010 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4011 | fi | |
4012 | ||
4013 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
4014 | echo "$as_me:$LINENO: result: yes" >&5 |
4015 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4016 | else |
e6cc62c6 VS |
4017 | echo "$as_me:$LINENO: result: no" >&5 |
4018 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4019 | fi |
e6cc62c6 | 4020 | |
a1622950 | 4021 | |
5005acfe | 4022 | enablestring= |
e6cc62c6 VS |
4023 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 |
4024 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
a1622950 VZ |
4025 | no_cache=0 |
4026 | # Check whether --enable-ftp or --disable-ftp was given. | |
4027 | if test "${enable_ftp+set}" = set; then | |
4028 | enableval="$enable_ftp" | |
e6cc62c6 | 4029 | |
a1622950 VZ |
4030 | if test "$enableval" = yes; then |
4031 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4032 | else | |
4033 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4034 | fi | |
e6cc62c6 | 4035 | |
a1622950 | 4036 | else |
e6cc62c6 | 4037 | |
a1622950 VZ |
4038 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
4039 | if test "x$LINE" != x ; then | |
4040 | eval "DEFAULT_$LINE" | |
4041 | else | |
4042 | no_cache=1 | |
4043 | fi | |
4044 | ||
4045 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
a1622950 | 4046 | |
e6cc62c6 | 4047 | fi; |
a1622950 VZ |
4048 | |
4049 | eval "$ac_cv_use_ftp" | |
4050 | if test "$no_cache" != 1; then | |
4051 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4052 | fi | |
4053 | ||
4054 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
4055 | echo "$as_me:$LINENO: result: yes" >&5 |
4056 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4057 | else |
e6cc62c6 VS |
4058 | echo "$as_me:$LINENO: result: no" >&5 |
4059 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4060 | fi |
e6cc62c6 | 4061 | |
a1622950 | 4062 | |
5005acfe | 4063 | enablestring= |
e6cc62c6 VS |
4064 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 |
4065 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
a1622950 VZ |
4066 | no_cache=0 |
4067 | # Check whether --enable-http or --disable-http was given. | |
4068 | if test "${enable_http+set}" = set; then | |
4069 | enableval="$enable_http" | |
e6cc62c6 | 4070 | |
a1622950 VZ |
4071 | if test "$enableval" = yes; then |
4072 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4073 | else | |
4074 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4075 | fi | |
e6cc62c6 | 4076 | |
a1622950 | 4077 | else |
e6cc62c6 | 4078 | |
a1622950 VZ |
4079 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
4080 | if test "x$LINE" != x ; then | |
4081 | eval "DEFAULT_$LINE" | |
4082 | else | |
4083 | no_cache=1 | |
4084 | fi | |
4085 | ||
4086 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
a1622950 | 4087 | |
e6cc62c6 | 4088 | fi; |
a1622950 VZ |
4089 | |
4090 | eval "$ac_cv_use_http" | |
4091 | if test "$no_cache" != 1; then | |
4092 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4093 | fi | |
4094 | ||
4095 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
4096 | echo "$as_me:$LINENO: result: yes" >&5 |
4097 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4098 | else |
e6cc62c6 VS |
4099 | echo "$as_me:$LINENO: result: no" >&5 |
4100 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4101 | fi |
e6cc62c6 | 4102 | |
a1622950 | 4103 | |
5005acfe | 4104 | enablestring= |
e6cc62c6 VS |
4105 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 |
4106 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
a1622950 VZ |
4107 | no_cache=0 |
4108 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4109 | if test "${enable_fileproto+set}" = set; then | |
4110 | enableval="$enable_fileproto" | |
e6cc62c6 | 4111 | |
a1622950 VZ |
4112 | if test "$enableval" = yes; then |
4113 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4114 | else | |
4115 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4116 | fi | |
e6cc62c6 | 4117 | |
a1622950 | 4118 | else |
e6cc62c6 | 4119 | |
a1622950 VZ |
4120 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
4121 | if test "x$LINE" != x ; then | |
4122 | eval "DEFAULT_$LINE" | |
4123 | else | |
4124 | no_cache=1 | |
4125 | fi | |
4126 | ||
4127 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
a1622950 | 4128 | |
e6cc62c6 | 4129 | fi; |
a1622950 VZ |
4130 | |
4131 | eval "$ac_cv_use_fileproto" | |
4132 | if test "$no_cache" != 1; then | |
4133 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4134 | fi | |
4135 | ||
4136 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
4137 | echo "$as_me:$LINENO: result: yes" >&5 |
4138 | echo "${ECHO_T}yes" >&6 | |
a1622950 | 4139 | else |
e6cc62c6 VS |
4140 | echo "$as_me:$LINENO: result: no" >&5 |
4141 | echo "${ECHO_T}no" >&6 | |
a1622950 | 4142 | fi |
e6cc62c6 | 4143 | |
a1622950 | 4144 | |
5005acfe | 4145 | enablestring= |
e6cc62c6 VS |
4146 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 |
4147 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
10f2d63a VZ |
4148 | no_cache=0 |
4149 | # Check whether --enable-sockets or --disable-sockets was given. | |
4150 | if test "${enable_sockets+set}" = set; then | |
4151 | enableval="$enable_sockets" | |
e6cc62c6 | 4152 | |
10f2d63a VZ |
4153 | if test "$enableval" = yes; then |
4154 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4155 | else | |
4156 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4157 | fi | |
e6cc62c6 | 4158 | |
10f2d63a | 4159 | else |
e6cc62c6 | 4160 | |
10f2d63a VZ |
4161 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` |
4162 | if test "x$LINE" != x ; then | |
4163 | eval "DEFAULT_$LINE" | |
4164 | else | |
4165 | no_cache=1 | |
4166 | fi | |
4167 | ||
4168 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
10f2d63a | 4169 | |
e6cc62c6 | 4170 | fi; |
10f2d63a VZ |
4171 | |
4172 | eval "$ac_cv_use_sockets" | |
4173 | if test "$no_cache" != 1; then | |
4174 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4175 | fi | |
4176 | ||
4177 | if test "$wxUSE_SOCKETS" = yes; then | |
e6cc62c6 VS |
4178 | echo "$as_me:$LINENO: result: yes" >&5 |
4179 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4180 | else |
e6cc62c6 VS |
4181 | echo "$as_me:$LINENO: result: no" >&5 |
4182 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4183 | fi |
e6cc62c6 | 4184 | |
8284b0c5 | 4185 | |
5005acfe | 4186 | enablestring= |
e6cc62c6 VS |
4187 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 |
4188 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
3bce6687 JS |
4189 | no_cache=0 |
4190 | # Check whether --enable-ole or --disable-ole was given. | |
4191 | if test "${enable_ole+set}" = set; then | |
4192 | enableval="$enable_ole" | |
e6cc62c6 | 4193 | |
3bce6687 JS |
4194 | if test "$enableval" = yes; then |
4195 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4196 | else | |
4197 | ac_cv_use_ole='wxUSE_OLE=no' | |
4198 | fi | |
e6cc62c6 | 4199 | |
3bce6687 | 4200 | else |
e6cc62c6 | 4201 | |
3bce6687 JS |
4202 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` |
4203 | if test "x$LINE" != x ; then | |
4204 | eval "DEFAULT_$LINE" | |
4205 | else | |
4206 | no_cache=1 | |
4207 | fi | |
4208 | ||
4209 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
3bce6687 | 4210 | |
e6cc62c6 | 4211 | fi; |
3bce6687 JS |
4212 | |
4213 | eval "$ac_cv_use_ole" | |
4214 | if test "$no_cache" != 1; then | |
4215 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4216 | fi | |
4217 | ||
4218 | if test "$wxUSE_OLE" = yes; then | |
e6cc62c6 VS |
4219 | echo "$as_me:$LINENO: result: yes" >&5 |
4220 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4221 | else |
e6cc62c6 VS |
4222 | echo "$as_me:$LINENO: result: no" >&5 |
4223 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4224 | fi |
e6cc62c6 | 4225 | |
3bce6687 | 4226 | |
5005acfe | 4227 | enablestring= |
e6cc62c6 VS |
4228 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 |
4229 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
3bce6687 JS |
4230 | no_cache=0 |
4231 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4232 | if test "${enable_dataobj+set}" = set; then | |
4233 | enableval="$enable_dataobj" | |
e6cc62c6 | 4234 | |
3bce6687 JS |
4235 | if test "$enableval" = yes; then |
4236 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4237 | else | |
4238 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4239 | fi | |
e6cc62c6 | 4240 | |
3bce6687 | 4241 | else |
e6cc62c6 | 4242 | |
3bce6687 JS |
4243 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` |
4244 | if test "x$LINE" != x ; then | |
4245 | eval "DEFAULT_$LINE" | |
4246 | else | |
4247 | no_cache=1 | |
4248 | fi | |
4249 | ||
4250 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
3bce6687 | 4251 | |
e6cc62c6 | 4252 | fi; |
3bce6687 JS |
4253 | |
4254 | eval "$ac_cv_use_dataobj" | |
4255 | if test "$no_cache" != 1; then | |
4256 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4257 | fi | |
4258 | ||
4259 | if test "$wxUSE_DATAOBJ" = yes; then | |
e6cc62c6 VS |
4260 | echo "$as_me:$LINENO: result: yes" >&5 |
4261 | echo "${ECHO_T}yes" >&6 | |
3bce6687 | 4262 | else |
e6cc62c6 VS |
4263 | echo "$as_me:$LINENO: result: no" >&5 |
4264 | echo "${ECHO_T}no" >&6 | |
3bce6687 | 4265 | fi |
e6cc62c6 | 4266 | |
3bce6687 | 4267 | |
52127426 | 4268 | |
5005acfe | 4269 | enablestring= |
e6cc62c6 VS |
4270 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 |
4271 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
10f2d63a | 4272 | no_cache=0 |
eb4efbdc VZ |
4273 | # Check whether --enable-ipc or --disable-ipc was given. |
4274 | if test "${enable_ipc+set}" = set; then | |
4275 | enableval="$enable_ipc" | |
e6cc62c6 | 4276 | |
10f2d63a | 4277 | if test "$enableval" = yes; then |
eb4efbdc | 4278 | ac_cv_use_ipc='wxUSE_IPC=yes' |
10f2d63a | 4279 | else |
eb4efbdc | 4280 | ac_cv_use_ipc='wxUSE_IPC=no' |
10f2d63a | 4281 | fi |
e6cc62c6 | 4282 | |
10f2d63a | 4283 | else |
e6cc62c6 | 4284 | |
eb4efbdc | 4285 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` |
10f2d63a VZ |
4286 | if test "x$LINE" != x ; then |
4287 | eval "DEFAULT_$LINE" | |
4288 | else | |
4289 | no_cache=1 | |
4290 | fi | |
4291 | ||
eb4efbdc | 4292 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC |
10f2d63a | 4293 | |
e6cc62c6 | 4294 | fi; |
10f2d63a | 4295 | |
eb4efbdc | 4296 | eval "$ac_cv_use_ipc" |
10f2d63a | 4297 | if test "$no_cache" != 1; then |
eb4efbdc | 4298 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4299 | fi |
4300 | ||
eb4efbdc | 4301 | if test "$wxUSE_IPC" = yes; then |
e6cc62c6 VS |
4302 | echo "$as_me:$LINENO: result: yes" >&5 |
4303 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4304 | else |
e6cc62c6 VS |
4305 | echo "$as_me:$LINENO: result: no" >&5 |
4306 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4307 | fi |
e6cc62c6 | 4308 | |
52127426 | 4309 | |
8284b0c5 | 4310 | |
5005acfe | 4311 | enablestring= |
e46d2a18 VS |
4312 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 |
4313 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
10f2d63a | 4314 | no_cache=0 |
e46d2a18 VS |
4315 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. |
4316 | if test "${enable_apple_ieee+set}" = set; then | |
4317 | enableval="$enable_apple_ieee" | |
e6cc62c6 | 4318 | |
10f2d63a | 4319 | if test "$enableval" = yes; then |
e46d2a18 | 4320 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' |
10f2d63a | 4321 | else |
e46d2a18 | 4322 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' |
10f2d63a | 4323 | fi |
e6cc62c6 | 4324 | |
10f2d63a | 4325 | else |
e6cc62c6 | 4326 | |
e46d2a18 | 4327 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4328 | if test "x$LINE" != x ; then |
4329 | eval "DEFAULT_$LINE" | |
4330 | else | |
4331 | no_cache=1 | |
4332 | fi | |
4333 | ||
e46d2a18 | 4334 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE |
10f2d63a | 4335 | |
e6cc62c6 | 4336 | fi; |
10f2d63a | 4337 | |
e46d2a18 | 4338 | eval "$ac_cv_use_apple_ieee" |
10f2d63a | 4339 | if test "$no_cache" != 1; then |
e46d2a18 | 4340 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4341 | fi |
4342 | ||
e46d2a18 | 4343 | if test "$wxUSE_APPLE_IEEE" = yes; then |
e6cc62c6 VS |
4344 | echo "$as_me:$LINENO: result: yes" >&5 |
4345 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4346 | else |
e6cc62c6 VS |
4347 | echo "$as_me:$LINENO: result: no" >&5 |
4348 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4349 | fi |
e6cc62c6 | 4350 | |
10f2d63a | 4351 | |
5005acfe | 4352 | enablestring= |
e46d2a18 VS |
4353 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 |
4354 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
10f2d63a | 4355 | no_cache=0 |
e46d2a18 VS |
4356 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. |
4357 | if test "${enable_catch_segvs+set}" = set; then | |
4358 | enableval="$enable_catch_segvs" | |
e6cc62c6 | 4359 | |
10f2d63a | 4360 | if test "$enableval" = yes; then |
e46d2a18 | 4361 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' |
10f2d63a | 4362 | else |
e46d2a18 | 4363 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' |
10f2d63a | 4364 | fi |
e6cc62c6 | 4365 | |
10f2d63a | 4366 | else |
e6cc62c6 | 4367 | |
e46d2a18 | 4368 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` |
10f2d63a VZ |
4369 | if test "x$LINE" != x ; then |
4370 | eval "DEFAULT_$LINE" | |
4371 | else | |
4372 | no_cache=1 | |
4373 | fi | |
4374 | ||
e46d2a18 | 4375 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION |
10f2d63a | 4376 | |
e6cc62c6 | 4377 | fi; |
10f2d63a | 4378 | |
e46d2a18 | 4379 | eval "$ac_cv_use_catch_segvs" |
10f2d63a | 4380 | if test "$no_cache" != 1; then |
e46d2a18 | 4381 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4382 | fi |
4383 | ||
e46d2a18 | 4384 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then |
e6cc62c6 VS |
4385 | echo "$as_me:$LINENO: result: yes" >&5 |
4386 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4387 | else |
e6cc62c6 VS |
4388 | echo "$as_me:$LINENO: result: no" >&5 |
4389 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4390 | fi |
e6cc62c6 | 4391 | |
10f2d63a | 4392 | |
5005acfe | 4393 | enablestring= |
e46d2a18 VS |
4394 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 |
4395 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
10f2d63a | 4396 | no_cache=0 |
e46d2a18 VS |
4397 | # Check whether --enable-cmdline or --disable-cmdline was given. |
4398 | if test "${enable_cmdline+set}" = set; then | |
4399 | enableval="$enable_cmdline" | |
e6cc62c6 | 4400 | |
10f2d63a | 4401 | if test "$enableval" = yes; then |
e46d2a18 | 4402 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' |
10f2d63a | 4403 | else |
e46d2a18 | 4404 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' |
10f2d63a | 4405 | fi |
e6cc62c6 | 4406 | |
10f2d63a | 4407 | else |
e6cc62c6 | 4408 | |
e46d2a18 | 4409 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4410 | if test "x$LINE" != x ; then |
4411 | eval "DEFAULT_$LINE" | |
4412 | else | |
4413 | no_cache=1 | |
4414 | fi | |
4415 | ||
e46d2a18 | 4416 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER |
10f2d63a | 4417 | |
e6cc62c6 | 4418 | fi; |
10f2d63a | 4419 | |
e46d2a18 | 4420 | eval "$ac_cv_use_cmdline" |
10f2d63a | 4421 | if test "$no_cache" != 1; then |
e46d2a18 | 4422 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4423 | fi |
4424 | ||
e46d2a18 | 4425 | if test "$wxUSE_CMDLINE_PARSER" = yes; then |
e6cc62c6 VS |
4426 | echo "$as_me:$LINENO: result: yes" >&5 |
4427 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4428 | else |
e6cc62c6 VS |
4429 | echo "$as_me:$LINENO: result: no" >&5 |
4430 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4431 | fi |
e6cc62c6 | 4432 | |
10f2d63a | 4433 | |
5005acfe | 4434 | enablestring= |
e46d2a18 VS |
4435 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 |
4436 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
10f2d63a | 4437 | no_cache=0 |
e46d2a18 VS |
4438 | # Check whether --enable-datetime or --disable-datetime was given. |
4439 | if test "${enable_datetime+set}" = set; then | |
4440 | enableval="$enable_datetime" | |
e6cc62c6 | 4441 | |
10f2d63a | 4442 | if test "$enableval" = yes; then |
e46d2a18 | 4443 | ac_cv_use_datetime='wxUSE_DATETIME=yes' |
10f2d63a | 4444 | else |
e46d2a18 | 4445 | ac_cv_use_datetime='wxUSE_DATETIME=no' |
10f2d63a | 4446 | fi |
e6cc62c6 | 4447 | |
10f2d63a | 4448 | else |
e6cc62c6 | 4449 | |
e46d2a18 | 4450 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` |
10f2d63a VZ |
4451 | if test "x$LINE" != x ; then |
4452 | eval "DEFAULT_$LINE" | |
4453 | else | |
4454 | no_cache=1 | |
4455 | fi | |
4456 | ||
e46d2a18 | 4457 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME |
10f2d63a | 4458 | |
e6cc62c6 | 4459 | fi; |
10f2d63a | 4460 | |
e46d2a18 | 4461 | eval "$ac_cv_use_datetime" |
10f2d63a | 4462 | if test "$no_cache" != 1; then |
e46d2a18 | 4463 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4464 | fi |
4465 | ||
e46d2a18 | 4466 | if test "$wxUSE_DATETIME" = yes; then |
e6cc62c6 VS |
4467 | echo "$as_me:$LINENO: result: yes" >&5 |
4468 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4469 | else |
e6cc62c6 VS |
4470 | echo "$as_me:$LINENO: result: no" >&5 |
4471 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4472 | fi |
e6cc62c6 | 4473 | |
10f2d63a | 4474 | |
5005acfe | 4475 | enablestring= |
e46d2a18 VS |
4476 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 |
4477 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
10f2d63a | 4478 | no_cache=0 |
e46d2a18 VS |
4479 | # Check whether --enable-dialupman or --disable-dialupman was given. |
4480 | if test "${enable_dialupman+set}" = set; then | |
4481 | enableval="$enable_dialupman" | |
e6cc62c6 | 4482 | |
10f2d63a | 4483 | if test "$enableval" = yes; then |
e46d2a18 | 4484 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' |
10f2d63a | 4485 | else |
e46d2a18 | 4486 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' |
10f2d63a | 4487 | fi |
e6cc62c6 | 4488 | |
10f2d63a | 4489 | else |
e6cc62c6 | 4490 | |
e46d2a18 | 4491 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` |
10f2d63a VZ |
4492 | if test "x$LINE" != x ; then |
4493 | eval "DEFAULT_$LINE" | |
4494 | else | |
4495 | no_cache=1 | |
4496 | fi | |
4497 | ||
e46d2a18 | 4498 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER |
10f2d63a | 4499 | |
e6cc62c6 | 4500 | fi; |
10f2d63a | 4501 | |
e46d2a18 | 4502 | eval "$ac_cv_use_dialupman" |
10f2d63a | 4503 | if test "$no_cache" != 1; then |
e46d2a18 | 4504 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4505 | fi |
4506 | ||
e46d2a18 | 4507 | if test "$wxUSE_DIALUP_MANAGER" = yes; then |
e6cc62c6 VS |
4508 | echo "$as_me:$LINENO: result: yes" >&5 |
4509 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4510 | else |
e6cc62c6 VS |
4511 | echo "$as_me:$LINENO: result: no" >&5 |
4512 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4513 | fi |
e6cc62c6 | 4514 | |
10f2d63a | 4515 | |
5005acfe | 4516 | enablestring= |
e6cc62c6 VS |
4517 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 |
4518 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
10f2d63a VZ |
4519 | no_cache=0 |
4520 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4521 | if test "${enable_dynlib+set}" = set; then | |
4522 | enableval="$enable_dynlib" | |
e6cc62c6 | 4523 | |
10f2d63a VZ |
4524 | if test "$enableval" = yes; then |
4525 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4526 | else | |
4527 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4528 | fi | |
e6cc62c6 | 4529 | |
10f2d63a | 4530 | else |
e6cc62c6 | 4531 | |
10f2d63a VZ |
4532 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` |
4533 | if test "x$LINE" != x ; then | |
4534 | eval "DEFAULT_$LINE" | |
4535 | else | |
4536 | no_cache=1 | |
4537 | fi | |
4538 | ||
4539 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
10f2d63a | 4540 | |
e6cc62c6 | 4541 | fi; |
10f2d63a VZ |
4542 | |
4543 | eval "$ac_cv_use_dynlib" | |
4544 | if test "$no_cache" != 1; then | |
4545 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4546 | fi | |
4547 | ||
4548 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
e6cc62c6 VS |
4549 | echo "$as_me:$LINENO: result: yes" >&5 |
4550 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4551 | else |
e6cc62c6 VS |
4552 | echo "$as_me:$LINENO: result: no" >&5 |
4553 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4554 | fi |
e6cc62c6 | 4555 | |
10f2d63a | 4556 | |
5005acfe | 4557 | enablestring= |
e6cc62c6 VS |
4558 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 |
4559 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
0b9ab0bd RL |
4560 | no_cache=0 |
4561 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4562 | if test "${enable_dynamicloader+set}" = set; then | |
4563 | enableval="$enable_dynamicloader" | |
e6cc62c6 | 4564 | |
0b9ab0bd RL |
4565 | if test "$enableval" = yes; then |
4566 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4567 | else | |
4568 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4569 | fi | |
e6cc62c6 | 4570 | |
0b9ab0bd | 4571 | else |
e6cc62c6 | 4572 | |
0b9ab0bd RL |
4573 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` |
4574 | if test "x$LINE" != x ; then | |
4575 | eval "DEFAULT_$LINE" | |
4576 | else | |
4577 | no_cache=1 | |
4578 | fi | |
4579 | ||
4580 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
0b9ab0bd | 4581 | |
e6cc62c6 | 4582 | fi; |
0b9ab0bd RL |
4583 | |
4584 | eval "$ac_cv_use_dynamicloader" | |
4585 | if test "$no_cache" != 1; then | |
4586 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4587 | fi | |
4588 | ||
4589 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
e6cc62c6 VS |
4590 | echo "$as_me:$LINENO: result: yes" >&5 |
4591 | echo "${ECHO_T}yes" >&6 | |
0b9ab0bd | 4592 | else |
e6cc62c6 VS |
4593 | echo "$as_me:$LINENO: result: no" >&5 |
4594 | echo "${ECHO_T}no" >&6 | |
0b9ab0bd | 4595 | fi |
e6cc62c6 | 4596 | |
0b9ab0bd | 4597 | |
5005acfe | 4598 | enablestring= |
e46d2a18 VS |
4599 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 |
4600 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
10f2d63a | 4601 | no_cache=0 |
e46d2a18 VS |
4602 | # Check whether --enable-exceptions or --disable-exceptions was given. |
4603 | if test "${enable_exceptions+set}" = set; then | |
4604 | enableval="$enable_exceptions" | |
e6cc62c6 | 4605 | |
10f2d63a | 4606 | if test "$enableval" = yes; then |
e46d2a18 | 4607 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' |
10f2d63a | 4608 | else |
e46d2a18 | 4609 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' |
10f2d63a | 4610 | fi |
e6cc62c6 | 4611 | |
10f2d63a | 4612 | else |
e6cc62c6 | 4613 | |
e46d2a18 | 4614 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
4615 | if test "x$LINE" != x ; then |
4616 | eval "DEFAULT_$LINE" | |
4617 | else | |
4618 | no_cache=1 | |
4619 | fi | |
4620 | ||
e46d2a18 | 4621 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS |
10f2d63a | 4622 | |
e6cc62c6 | 4623 | fi; |
10f2d63a | 4624 | |
e46d2a18 | 4625 | eval "$ac_cv_use_exceptions" |
10f2d63a | 4626 | if test "$no_cache" != 1; then |
e46d2a18 | 4627 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4628 | fi |
4629 | ||
e46d2a18 | 4630 | if test "$wxUSE_EXCEPTIONS" = yes; then |
e6cc62c6 VS |
4631 | echo "$as_me:$LINENO: result: yes" >&5 |
4632 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4633 | else |
e6cc62c6 VS |
4634 | echo "$as_me:$LINENO: result: no" >&5 |
4635 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4636 | fi |
e6cc62c6 | 4637 | |
10f2d63a | 4638 | |
5005acfe | 4639 | enablestring= |
e46d2a18 VS |
4640 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 |
4641 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
e8f65ba6 | 4642 | no_cache=0 |
e46d2a18 VS |
4643 | # Check whether --enable-ffile or --disable-ffile was given. |
4644 | if test "${enable_ffile+set}" = set; then | |
4645 | enableval="$enable_ffile" | |
e6cc62c6 | 4646 | |
e8f65ba6 | 4647 | if test "$enableval" = yes; then |
e46d2a18 | 4648 | ac_cv_use_ffile='wxUSE_FFILE=yes' |
e8f65ba6 | 4649 | else |
e46d2a18 | 4650 | ac_cv_use_ffile='wxUSE_FFILE=no' |
e8f65ba6 | 4651 | fi |
e6cc62c6 | 4652 | |
e8f65ba6 | 4653 | else |
e6cc62c6 | 4654 | |
e46d2a18 | 4655 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` |
e8f65ba6 RR |
4656 | if test "x$LINE" != x ; then |
4657 | eval "DEFAULT_$LINE" | |
4658 | else | |
4659 | no_cache=1 | |
4660 | fi | |
4661 | ||
e46d2a18 | 4662 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE |
e8f65ba6 | 4663 | |
e6cc62c6 | 4664 | fi; |
e8f65ba6 | 4665 | |
e46d2a18 | 4666 | eval "$ac_cv_use_ffile" |
e8f65ba6 | 4667 | if test "$no_cache" != 1; then |
e46d2a18 | 4668 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp |
e8f65ba6 RR |
4669 | fi |
4670 | ||
e46d2a18 | 4671 | if test "$wxUSE_FFILE" = yes; then |
e6cc62c6 VS |
4672 | echo "$as_me:$LINENO: result: yes" >&5 |
4673 | echo "${ECHO_T}yes" >&6 | |
e8f65ba6 | 4674 | else |
e6cc62c6 VS |
4675 | echo "$as_me:$LINENO: result: no" >&5 |
4676 | echo "${ECHO_T}no" >&6 | |
e8f65ba6 | 4677 | fi |
e6cc62c6 | 4678 | |
e8f65ba6 | 4679 | |
5005acfe | 4680 | enablestring= |
e46d2a18 VS |
4681 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 |
4682 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
10f2d63a | 4683 | no_cache=0 |
e46d2a18 VS |
4684 | # Check whether --enable-file or --disable-file was given. |
4685 | if test "${enable_file+set}" = set; then | |
4686 | enableval="$enable_file" | |
e6cc62c6 | 4687 | |
10f2d63a | 4688 | if test "$enableval" = yes; then |
e46d2a18 | 4689 | ac_cv_use_file='wxUSE_FILE=yes' |
10f2d63a | 4690 | else |
e46d2a18 | 4691 | ac_cv_use_file='wxUSE_FILE=no' |
10f2d63a | 4692 | fi |
e6cc62c6 | 4693 | |
10f2d63a | 4694 | else |
e6cc62c6 | 4695 | |
e46d2a18 | 4696 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
4697 | if test "x$LINE" != x ; then |
4698 | eval "DEFAULT_$LINE" | |
4699 | else | |
4700 | no_cache=1 | |
4701 | fi | |
4702 | ||
e46d2a18 | 4703 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE |
10f2d63a | 4704 | |
e6cc62c6 | 4705 | fi; |
10f2d63a | 4706 | |
e46d2a18 | 4707 | eval "$ac_cv_use_file" |
10f2d63a | 4708 | if test "$no_cache" != 1; then |
e46d2a18 | 4709 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4710 | fi |
4711 | ||
e46d2a18 | 4712 | if test "$wxUSE_FILE" = yes; then |
e6cc62c6 VS |
4713 | echo "$as_me:$LINENO: result: yes" >&5 |
4714 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4715 | else |
e6cc62c6 VS |
4716 | echo "$as_me:$LINENO: result: no" >&5 |
4717 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4718 | fi |
e6cc62c6 | 4719 | |
10f2d63a | 4720 | |
5005acfe | 4721 | enablestring= |
e46d2a18 VS |
4722 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 |
4723 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
10f2d63a | 4724 | no_cache=0 |
e46d2a18 VS |
4725 | # Check whether --enable-filesystem or --disable-filesystem was given. |
4726 | if test "${enable_filesystem+set}" = set; then | |
4727 | enableval="$enable_filesystem" | |
e6cc62c6 | 4728 | |
10f2d63a | 4729 | if test "$enableval" = yes; then |
e46d2a18 | 4730 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' |
10f2d63a | 4731 | else |
e46d2a18 | 4732 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' |
10f2d63a | 4733 | fi |
e6cc62c6 | 4734 | |
10f2d63a | 4735 | else |
e6cc62c6 | 4736 | |
e46d2a18 | 4737 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` |
10f2d63a VZ |
4738 | if test "x$LINE" != x ; then |
4739 | eval "DEFAULT_$LINE" | |
4740 | else | |
4741 | no_cache=1 | |
4742 | fi | |
4743 | ||
e46d2a18 | 4744 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM |
10f2d63a | 4745 | |
e6cc62c6 | 4746 | fi; |
10f2d63a | 4747 | |
e46d2a18 | 4748 | eval "$ac_cv_use_filesystem" |
10f2d63a | 4749 | if test "$no_cache" != 1; then |
e46d2a18 | 4750 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4751 | fi |
4752 | ||
e46d2a18 | 4753 | if test "$wxUSE_FILESYSTEM" = yes; then |
e6cc62c6 VS |
4754 | echo "$as_me:$LINENO: result: yes" >&5 |
4755 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4756 | else |
e6cc62c6 VS |
4757 | echo "$as_me:$LINENO: result: no" >&5 |
4758 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4759 | fi |
e6cc62c6 | 4760 | |
10f2d63a | 4761 | |
5005acfe | 4762 | enablestring= |
e46d2a18 VS |
4763 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 |
4764 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
10f2d63a | 4765 | no_cache=0 |
e46d2a18 VS |
4766 | # Check whether --enable-fontmap or --disable-fontmap was given. |
4767 | if test "${enable_fontmap+set}" = set; then | |
4768 | enableval="$enable_fontmap" | |
e6cc62c6 | 4769 | |
10f2d63a | 4770 | if test "$enableval" = yes; then |
e46d2a18 | 4771 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' |
10f2d63a | 4772 | else |
e46d2a18 | 4773 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' |
10f2d63a | 4774 | fi |
e6cc62c6 | 4775 | |
10f2d63a | 4776 | else |
e6cc62c6 | 4777 | |
e46d2a18 | 4778 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` |
10f2d63a VZ |
4779 | if test "x$LINE" != x ; then |
4780 | eval "DEFAULT_$LINE" | |
4781 | else | |
4782 | no_cache=1 | |
4783 | fi | |
4784 | ||
e46d2a18 | 4785 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP |
10f2d63a | 4786 | |
e6cc62c6 | 4787 | fi; |
10f2d63a | 4788 | |
e46d2a18 | 4789 | eval "$ac_cv_use_fontmap" |
10f2d63a | 4790 | if test "$no_cache" != 1; then |
e46d2a18 | 4791 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4792 | fi |
4793 | ||
e46d2a18 | 4794 | if test "$wxUSE_FONTMAP" = yes; then |
e6cc62c6 VS |
4795 | echo "$as_me:$LINENO: result: yes" >&5 |
4796 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4797 | else |
e6cc62c6 VS |
4798 | echo "$as_me:$LINENO: result: no" >&5 |
4799 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4800 | fi |
e6cc62c6 | 4801 | |
10f2d63a | 4802 | |
5005acfe | 4803 | enablestring= |
e46d2a18 VS |
4804 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 |
4805 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
10f2d63a | 4806 | no_cache=0 |
e46d2a18 VS |
4807 | # Check whether --enable-fs_inet or --disable-fs_inet was given. |
4808 | if test "${enable_fs_inet+set}" = set; then | |
4809 | enableval="$enable_fs_inet" | |
e6cc62c6 | 4810 | |
10f2d63a | 4811 | if test "$enableval" = yes; then |
e46d2a18 | 4812 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' |
10f2d63a | 4813 | else |
e46d2a18 | 4814 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' |
10f2d63a | 4815 | fi |
e6cc62c6 | 4816 | |
10f2d63a | 4817 | else |
e6cc62c6 | 4818 | |
e46d2a18 | 4819 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` |
10f2d63a VZ |
4820 | if test "x$LINE" != x ; then |
4821 | eval "DEFAULT_$LINE" | |
4822 | else | |
4823 | no_cache=1 | |
4824 | fi | |
4825 | ||
e46d2a18 | 4826 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET |
10f2d63a | 4827 | |
e6cc62c6 | 4828 | fi; |
10f2d63a | 4829 | |
e46d2a18 | 4830 | eval "$ac_cv_use_fs_inet" |
10f2d63a | 4831 | if test "$no_cache" != 1; then |
e46d2a18 | 4832 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4833 | fi |
4834 | ||
e46d2a18 | 4835 | if test "$wxUSE_FS_INET" = yes; then |
e6cc62c6 VS |
4836 | echo "$as_me:$LINENO: result: yes" >&5 |
4837 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4838 | else |
e6cc62c6 VS |
4839 | echo "$as_me:$LINENO: result: no" >&5 |
4840 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4841 | fi |
e6cc62c6 | 4842 | |
10f2d63a | 4843 | |
5005acfe | 4844 | enablestring= |
e46d2a18 VS |
4845 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 |
4846 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
a3a584a7 | 4847 | no_cache=0 |
e46d2a18 VS |
4848 | # Check whether --enable-fs_zip or --disable-fs_zip was given. |
4849 | if test "${enable_fs_zip+set}" = set; then | |
4850 | enableval="$enable_fs_zip" | |
e6cc62c6 | 4851 | |
a3a584a7 | 4852 | if test "$enableval" = yes; then |
e46d2a18 | 4853 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' |
a3a584a7 | 4854 | else |
e46d2a18 | 4855 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' |
a3a584a7 | 4856 | fi |
e6cc62c6 | 4857 | |
a3a584a7 | 4858 | else |
e6cc62c6 | 4859 | |
e46d2a18 | 4860 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` |
a3a584a7 VZ |
4861 | if test "x$LINE" != x ; then |
4862 | eval "DEFAULT_$LINE" | |
4863 | else | |
4864 | no_cache=1 | |
4865 | fi | |
4866 | ||
e46d2a18 | 4867 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP |
a3a584a7 | 4868 | |
e6cc62c6 | 4869 | fi; |
a3a584a7 | 4870 | |
e46d2a18 | 4871 | eval "$ac_cv_use_fs_zip" |
a3a584a7 | 4872 | if test "$no_cache" != 1; then |
e46d2a18 | 4873 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp |
a3a584a7 VZ |
4874 | fi |
4875 | ||
e46d2a18 | 4876 | if test "$wxUSE_FS_ZIP" = yes; then |
e6cc62c6 VS |
4877 | echo "$as_me:$LINENO: result: yes" >&5 |
4878 | echo "${ECHO_T}yes" >&6 | |
a3a584a7 | 4879 | else |
e6cc62c6 VS |
4880 | echo "$as_me:$LINENO: result: no" >&5 |
4881 | echo "${ECHO_T}no" >&6 | |
a3a584a7 | 4882 | fi |
e6cc62c6 | 4883 | |
a3a584a7 | 4884 | |
5005acfe | 4885 | enablestring= |
e46d2a18 VS |
4886 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 |
4887 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
10f2d63a | 4888 | no_cache=0 |
e46d2a18 VS |
4889 | # Check whether --enable-geometry or --disable-geometry was given. |
4890 | if test "${enable_geometry+set}" = set; then | |
4891 | enableval="$enable_geometry" | |
e6cc62c6 | 4892 | |
10f2d63a | 4893 | if test "$enableval" = yes; then |
e46d2a18 | 4894 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' |
10f2d63a | 4895 | else |
e46d2a18 | 4896 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' |
10f2d63a | 4897 | fi |
e6cc62c6 | 4898 | |
10f2d63a | 4899 | else |
e6cc62c6 | 4900 | |
e46d2a18 | 4901 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` |
10f2d63a VZ |
4902 | if test "x$LINE" != x ; then |
4903 | eval "DEFAULT_$LINE" | |
4904 | else | |
4905 | no_cache=1 | |
4906 | fi | |
4907 | ||
e46d2a18 | 4908 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY |
10f2d63a | 4909 | |
e6cc62c6 | 4910 | fi; |
10f2d63a | 4911 | |
e46d2a18 | 4912 | eval "$ac_cv_use_geometry" |
10f2d63a | 4913 | if test "$no_cache" != 1; then |
e46d2a18 | 4914 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4915 | fi |
4916 | ||
e46d2a18 | 4917 | if test "$wxUSE_GEOMETRY" = yes; then |
e6cc62c6 VS |
4918 | echo "$as_me:$LINENO: result: yes" >&5 |
4919 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4920 | else |
e6cc62c6 VS |
4921 | echo "$as_me:$LINENO: result: no" >&5 |
4922 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4923 | fi |
e6cc62c6 | 4924 | |
10f2d63a | 4925 | |
5005acfe | 4926 | enablestring= |
e46d2a18 VS |
4927 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 |
4928 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
10f2d63a | 4929 | no_cache=0 |
e46d2a18 VS |
4930 | # Check whether --enable-log or --disable-log was given. |
4931 | if test "${enable_log+set}" = set; then | |
4932 | enableval="$enable_log" | |
e6cc62c6 | 4933 | |
10f2d63a | 4934 | if test "$enableval" = yes; then |
e46d2a18 | 4935 | ac_cv_use_log='wxUSE_LOG=yes' |
10f2d63a | 4936 | else |
e46d2a18 | 4937 | ac_cv_use_log='wxUSE_LOG=no' |
10f2d63a | 4938 | fi |
e6cc62c6 | 4939 | |
10f2d63a | 4940 | else |
e6cc62c6 | 4941 | |
e46d2a18 | 4942 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` |
10f2d63a VZ |
4943 | if test "x$LINE" != x ; then |
4944 | eval "DEFAULT_$LINE" | |
4945 | else | |
4946 | no_cache=1 | |
4947 | fi | |
4948 | ||
e46d2a18 | 4949 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG |
10f2d63a | 4950 | |
e6cc62c6 | 4951 | fi; |
10f2d63a | 4952 | |
e46d2a18 | 4953 | eval "$ac_cv_use_log" |
10f2d63a | 4954 | if test "$no_cache" != 1; then |
e46d2a18 | 4955 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
4956 | fi |
4957 | ||
e46d2a18 | 4958 | if test "$wxUSE_LOG" = yes; then |
e6cc62c6 VS |
4959 | echo "$as_me:$LINENO: result: yes" >&5 |
4960 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 4961 | else |
e6cc62c6 VS |
4962 | echo "$as_me:$LINENO: result: no" >&5 |
4963 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 4964 | fi |
e6cc62c6 | 4965 | |
10f2d63a | 4966 | |
5005acfe | 4967 | enablestring= |
e46d2a18 VS |
4968 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 |
4969 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
10f2d63a | 4970 | no_cache=0 |
e46d2a18 VS |
4971 | # Check whether --enable-longlong or --disable-longlong was given. |
4972 | if test "${enable_longlong+set}" = set; then | |
4973 | enableval="$enable_longlong" | |
e6cc62c6 | 4974 | |
1e6feb95 | 4975 | if test "$enableval" = yes; then |
e46d2a18 | 4976 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' |
1e6feb95 | 4977 | else |
e46d2a18 | 4978 | ac_cv_use_longlong='wxUSE_LONGLONG=no' |
1e6feb95 | 4979 | fi |
e6cc62c6 | 4980 | |
1e6feb95 | 4981 | else |
e6cc62c6 | 4982 | |
e46d2a18 | 4983 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` |
1e6feb95 VZ |
4984 | if test "x$LINE" != x ; then |
4985 | eval "DEFAULT_$LINE" | |
4986 | else | |
4987 | no_cache=1 | |
4988 | fi | |
4989 | ||
e46d2a18 | 4990 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG |
1e6feb95 | 4991 | |
e6cc62c6 | 4992 | fi; |
1e6feb95 | 4993 | |
e46d2a18 | 4994 | eval "$ac_cv_use_longlong" |
1e6feb95 | 4995 | if test "$no_cache" != 1; then |
e46d2a18 | 4996 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
4997 | fi |
4998 | ||
e46d2a18 VS |
4999 | if test "$wxUSE_LONGLONG" = yes; then |
5000 | echo "$as_me:$LINENO: result: yes" >&5 | |
5001 | echo "${ECHO_T}yes" >&6 | |
5002 | else | |
5003 | echo "$as_me:$LINENO: result: no" >&5 | |
5004 | echo "${ECHO_T}no" >&6 | |
5005 | fi | |
5006 | ||
5007 | ||
5008 | enablestring= | |
5009 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5010 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5011 | no_cache=0 | |
5012 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5013 | if test "${enable_mimetype+set}" = set; then | |
5014 | enableval="$enable_mimetype" | |
5015 | ||
5016 | if test "$enableval" = yes; then | |
5017 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5018 | else | |
5019 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5020 | fi | |
5021 | ||
5022 | else | |
5023 | ||
5024 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5025 | if test "x$LINE" != x ; then | |
5026 | eval "DEFAULT_$LINE" | |
5027 | else | |
5028 | no_cache=1 | |
5029 | fi | |
5030 | ||
5031 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5032 | ||
5033 | fi; | |
5034 | ||
5035 | eval "$ac_cv_use_mimetype" | |
5036 | if test "$no_cache" != 1; then | |
5037 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5038 | fi | |
5039 | ||
5040 | if test "$wxUSE_MIMETYPE" = yes; then | |
e6cc62c6 VS |
5041 | echo "$as_me:$LINENO: result: yes" >&5 |
5042 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5043 | else |
e6cc62c6 VS |
5044 | echo "$as_me:$LINENO: result: no" >&5 |
5045 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5046 | fi |
e6cc62c6 | 5047 | |
1e6feb95 | 5048 | |
5005acfe | 5049 | enablestring= |
e6cc62c6 VS |
5050 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 |
5051 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
a72a4bfa VS |
5052 | no_cache=0 |
5053 | # Check whether --enable-mslu or --disable-mslu was given. | |
5054 | if test "${enable_mslu+set}" = set; then | |
5055 | enableval="$enable_mslu" | |
e6cc62c6 | 5056 | |
a72a4bfa VS |
5057 | if test "$enableval" = yes; then |
5058 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5059 | else | |
5060 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5061 | fi | |
e6cc62c6 | 5062 | |
a72a4bfa | 5063 | else |
e6cc62c6 | 5064 | |
a72a4bfa VS |
5065 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` |
5066 | if test "x$LINE" != x ; then | |
5067 | eval "DEFAULT_$LINE" | |
5068 | else | |
5069 | no_cache=1 | |
5070 | fi | |
5071 | ||
5072 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
a72a4bfa | 5073 | |
e6cc62c6 | 5074 | fi; |
a72a4bfa VS |
5075 | |
5076 | eval "$ac_cv_use_mslu" | |
5077 | if test "$no_cache" != 1; then | |
5078 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5079 | fi | |
5080 | ||
5081 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
e6cc62c6 VS |
5082 | echo "$as_me:$LINENO: result: yes" >&5 |
5083 | echo "${ECHO_T}yes" >&6 | |
a72a4bfa | 5084 | else |
e6cc62c6 VS |
5085 | echo "$as_me:$LINENO: result: no" >&5 |
5086 | echo "${ECHO_T}no" >&6 | |
a72a4bfa | 5087 | fi |
e6cc62c6 | 5088 | |
a72a4bfa | 5089 | |
5005acfe | 5090 | enablestring= |
e46d2a18 VS |
5091 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 |
5092 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
1e6feb95 | 5093 | no_cache=0 |
e46d2a18 VS |
5094 | # Check whether --enable-snglinst or --disable-snglinst was given. |
5095 | if test "${enable_snglinst+set}" = set; then | |
5096 | enableval="$enable_snglinst" | |
e6cc62c6 | 5097 | |
1e6feb95 | 5098 | if test "$enableval" = yes; then |
e46d2a18 | 5099 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' |
10f2d63a | 5100 | else |
e46d2a18 | 5101 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' |
10f2d63a | 5102 | fi |
e6cc62c6 | 5103 | |
10f2d63a | 5104 | else |
e6cc62c6 | 5105 | |
e46d2a18 | 5106 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5107 | if test "x$LINE" != x ; then |
5108 | eval "DEFAULT_$LINE" | |
5109 | else | |
5110 | no_cache=1 | |
5111 | fi | |
5112 | ||
e46d2a18 | 5113 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER |
10f2d63a | 5114 | |
e6cc62c6 | 5115 | fi; |
10f2d63a | 5116 | |
e46d2a18 | 5117 | eval "$ac_cv_use_snglinst" |
10f2d63a | 5118 | if test "$no_cache" != 1; then |
e46d2a18 | 5119 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5120 | fi |
5121 | ||
e46d2a18 VS |
5122 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then |
5123 | echo "$as_me:$LINENO: result: yes" >&5 | |
5124 | echo "${ECHO_T}yes" >&6 | |
5125 | else | |
5126 | echo "$as_me:$LINENO: result: no" >&5 | |
5127 | echo "${ECHO_T}no" >&6 | |
5128 | fi | |
5129 | ||
5130 | ||
5131 | enablestring= | |
5132 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5133 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5134 | no_cache=0 | |
5135 | # Check whether --enable-streams or --disable-streams was given. | |
5136 | if test "${enable_streams+set}" = set; then | |
5137 | enableval="$enable_streams" | |
5138 | ||
5139 | if test "$enableval" = yes; then | |
5140 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5141 | else | |
5142 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5143 | fi | |
5144 | ||
5145 | else | |
5146 | ||
5147 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5148 | if test "x$LINE" != x ; then | |
5149 | eval "DEFAULT_$LINE" | |
5150 | else | |
5151 | no_cache=1 | |
5152 | fi | |
5153 | ||
5154 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5155 | ||
5156 | fi; | |
5157 | ||
5158 | eval "$ac_cv_use_streams" | |
5159 | if test "$no_cache" != 1; then | |
5160 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5161 | fi | |
5162 | ||
5163 | if test "$wxUSE_STREAMS" = yes; then | |
e6cc62c6 VS |
5164 | echo "$as_me:$LINENO: result: yes" >&5 |
5165 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5166 | else |
e6cc62c6 VS |
5167 | echo "$as_me:$LINENO: result: no" >&5 |
5168 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5169 | fi |
e6cc62c6 | 5170 | |
10f2d63a | 5171 | |
5005acfe | 5172 | enablestring= |
e6cc62c6 VS |
5173 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 |
5174 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
10f2d63a VZ |
5175 | no_cache=0 |
5176 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5177 | if test "${enable_std_iostreams+set}" = set; then | |
5178 | enableval="$enable_std_iostreams" | |
e6cc62c6 | 5179 | |
10f2d63a VZ |
5180 | if test "$enableval" = yes; then |
5181 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5182 | else | |
5183 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5184 | fi | |
e6cc62c6 | 5185 | |
10f2d63a | 5186 | else |
e6cc62c6 | 5187 | |
10f2d63a VZ |
5188 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` |
5189 | if test "x$LINE" != x ; then | |
5190 | eval "DEFAULT_$LINE" | |
5191 | else | |
5192 | no_cache=1 | |
5193 | fi | |
5194 | ||
5195 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
10f2d63a | 5196 | |
e6cc62c6 | 5197 | fi; |
10f2d63a VZ |
5198 | |
5199 | eval "$ac_cv_use_std_iostreams" | |
5200 | if test "$no_cache" != 1; then | |
5201 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5202 | fi | |
5203 | ||
5204 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
e6cc62c6 VS |
5205 | echo "$as_me:$LINENO: result: yes" >&5 |
5206 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5207 | else |
e6cc62c6 VS |
5208 | echo "$as_me:$LINENO: result: no" >&5 |
5209 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5210 | fi |
e6cc62c6 | 5211 | |
10f2d63a | 5212 | |
5005acfe | 5213 | enablestring= |
e46d2a18 VS |
5214 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 |
5215 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
24528b0c | 5216 | no_cache=0 |
e46d2a18 VS |
5217 | # Check whether --enable-stopwatch or --disable-stopwatch was given. |
5218 | if test "${enable_stopwatch+set}" = set; then | |
5219 | enableval="$enable_stopwatch" | |
e6cc62c6 | 5220 | |
24528b0c | 5221 | if test "$enableval" = yes; then |
e46d2a18 | 5222 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' |
24528b0c | 5223 | else |
e46d2a18 | 5224 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' |
24528b0c | 5225 | fi |
e6cc62c6 | 5226 | |
24528b0c | 5227 | else |
e6cc62c6 | 5228 | |
e46d2a18 | 5229 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` |
24528b0c VS |
5230 | if test "x$LINE" != x ; then |
5231 | eval "DEFAULT_$LINE" | |
5232 | else | |
5233 | no_cache=1 | |
5234 | fi | |
5235 | ||
e46d2a18 | 5236 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH |
24528b0c | 5237 | |
e6cc62c6 | 5238 | fi; |
24528b0c | 5239 | |
e46d2a18 | 5240 | eval "$ac_cv_use_stopwatch" |
24528b0c | 5241 | if test "$no_cache" != 1; then |
e46d2a18 | 5242 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp |
24528b0c VS |
5243 | fi |
5244 | ||
e46d2a18 | 5245 | if test "$wxUSE_STOPWATCH" = yes; then |
e6cc62c6 VS |
5246 | echo "$as_me:$LINENO: result: yes" >&5 |
5247 | echo "${ECHO_T}yes" >&6 | |
24528b0c | 5248 | else |
e6cc62c6 VS |
5249 | echo "$as_me:$LINENO: result: no" >&5 |
5250 | echo "${ECHO_T}no" >&6 | |
24528b0c | 5251 | fi |
e6cc62c6 | 5252 | |
24528b0c | 5253 | |
5005acfe | 5254 | enablestring= |
e46d2a18 VS |
5255 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 |
5256 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
10f2d63a | 5257 | no_cache=0 |
e46d2a18 VS |
5258 | # Check whether --enable-system_options or --disable-system_options was given. |
5259 | if test "${enable_system_options+set}" = set; then | |
5260 | enableval="$enable_system_options" | |
e6cc62c6 | 5261 | |
10f2d63a | 5262 | if test "$enableval" = yes; then |
e46d2a18 | 5263 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' |
10f2d63a | 5264 | else |
e46d2a18 | 5265 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' |
10f2d63a | 5266 | fi |
e6cc62c6 | 5267 | |
10f2d63a | 5268 | else |
e6cc62c6 | 5269 | |
e46d2a18 | 5270 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` |
10f2d63a VZ |
5271 | if test "x$LINE" != x ; then |
5272 | eval "DEFAULT_$LINE" | |
5273 | else | |
5274 | no_cache=1 | |
5275 | fi | |
5276 | ||
e46d2a18 | 5277 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS |
10f2d63a | 5278 | |
e6cc62c6 | 5279 | fi; |
10f2d63a | 5280 | |
e46d2a18 | 5281 | eval "$ac_cv_use_system_options" |
10f2d63a | 5282 | if test "$no_cache" != 1; then |
e46d2a18 | 5283 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5284 | fi |
5285 | ||
e46d2a18 | 5286 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then |
e6cc62c6 VS |
5287 | echo "$as_me:$LINENO: result: yes" >&5 |
5288 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5289 | else |
e6cc62c6 VS |
5290 | echo "$as_me:$LINENO: result: no" >&5 |
5291 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5292 | fi |
e6cc62c6 | 5293 | |
10f2d63a | 5294 | |
5005acfe | 5295 | enablestring= |
e46d2a18 VS |
5296 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 |
5297 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
10f2d63a | 5298 | no_cache=0 |
e46d2a18 VS |
5299 | # Check whether --enable-textbuf or --disable-textbuf was given. |
5300 | if test "${enable_textbuf+set}" = set; then | |
5301 | enableval="$enable_textbuf" | |
e6cc62c6 | 5302 | |
10f2d63a | 5303 | if test "$enableval" = yes; then |
e46d2a18 | 5304 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' |
10f2d63a | 5305 | else |
e46d2a18 | 5306 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' |
10f2d63a | 5307 | fi |
e6cc62c6 | 5308 | |
10f2d63a | 5309 | else |
e6cc62c6 | 5310 | |
e46d2a18 | 5311 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` |
10f2d63a VZ |
5312 | if test "x$LINE" != x ; then |
5313 | eval "DEFAULT_$LINE" | |
5314 | else | |
5315 | no_cache=1 | |
5316 | fi | |
5317 | ||
e46d2a18 | 5318 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER |
10f2d63a | 5319 | |
e6cc62c6 | 5320 | fi; |
10f2d63a | 5321 | |
e46d2a18 | 5322 | eval "$ac_cv_use_textbuf" |
10f2d63a | 5323 | if test "$no_cache" != 1; then |
e46d2a18 | 5324 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5325 | fi |
5326 | ||
e46d2a18 | 5327 | if test "$wxUSE_TEXTBUFFER" = yes; then |
e6cc62c6 VS |
5328 | echo "$as_me:$LINENO: result: yes" >&5 |
5329 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5330 | else |
e6cc62c6 VS |
5331 | echo "$as_me:$LINENO: result: no" >&5 |
5332 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5333 | fi |
e6cc62c6 | 5334 | |
10f2d63a | 5335 | |
5005acfe | 5336 | enablestring= |
e46d2a18 VS |
5337 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 |
5338 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
10f2d63a | 5339 | no_cache=0 |
e46d2a18 VS |
5340 | # Check whether --enable-textfile or --disable-textfile was given. |
5341 | if test "${enable_textfile+set}" = set; then | |
5342 | enableval="$enable_textfile" | |
e6cc62c6 | 5343 | |
10f2d63a | 5344 | if test "$enableval" = yes; then |
e46d2a18 | 5345 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' |
10f2d63a | 5346 | else |
e46d2a18 | 5347 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' |
10f2d63a | 5348 | fi |
e6cc62c6 | 5349 | |
10f2d63a | 5350 | else |
e6cc62c6 | 5351 | |
e46d2a18 | 5352 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` |
10f2d63a VZ |
5353 | if test "x$LINE" != x ; then |
5354 | eval "DEFAULT_$LINE" | |
5355 | else | |
5356 | no_cache=1 | |
5357 | fi | |
5358 | ||
e46d2a18 | 5359 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE |
10f2d63a | 5360 | |
e6cc62c6 | 5361 | fi; |
10f2d63a | 5362 | |
e46d2a18 | 5363 | eval "$ac_cv_use_textfile" |
10f2d63a | 5364 | if test "$no_cache" != 1; then |
e46d2a18 | 5365 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
5366 | fi |
5367 | ||
e46d2a18 | 5368 | if test "$wxUSE_TEXTFILE" = yes; then |
e6cc62c6 VS |
5369 | echo "$as_me:$LINENO: result: yes" >&5 |
5370 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5371 | else |
e6cc62c6 VS |
5372 | echo "$as_me:$LINENO: result: no" >&5 |
5373 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5374 | fi |
e6cc62c6 | 5375 | |
8284b0c5 | 5376 | |
5005acfe | 5377 | enablestring= |
e46d2a18 VS |
5378 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 |
5379 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
eb4efbdc | 5380 | no_cache=0 |
e46d2a18 VS |
5381 | # Check whether --enable-timer or --disable-timer was given. |
5382 | if test "${enable_timer+set}" = set; then | |
5383 | enableval="$enable_timer" | |
e6cc62c6 | 5384 | |
eb4efbdc | 5385 | if test "$enableval" = yes; then |
e46d2a18 | 5386 | ac_cv_use_timer='wxUSE_TIMER=yes' |
eb4efbdc | 5387 | else |
e46d2a18 | 5388 | ac_cv_use_timer='wxUSE_TIMER=no' |
eb4efbdc | 5389 | fi |
e6cc62c6 | 5390 | |
eb4efbdc | 5391 | else |
e6cc62c6 | 5392 | |
e46d2a18 | 5393 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` |
eb4efbdc VZ |
5394 | if test "x$LINE" != x ; then |
5395 | eval "DEFAULT_$LINE" | |
5396 | else | |
5397 | no_cache=1 | |
5398 | fi | |
5399 | ||
e46d2a18 | 5400 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER |
eb4efbdc | 5401 | |
e6cc62c6 | 5402 | fi; |
eb4efbdc | 5403 | |
e46d2a18 | 5404 | eval "$ac_cv_use_timer" |
eb4efbdc | 5405 | if test "$no_cache" != 1; then |
e46d2a18 | 5406 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp |
eb4efbdc VZ |
5407 | fi |
5408 | ||
e46d2a18 | 5409 | if test "$wxUSE_TIMER" = yes; then |
e6cc62c6 VS |
5410 | echo "$as_me:$LINENO: result: yes" >&5 |
5411 | echo "${ECHO_T}yes" >&6 | |
eb4efbdc | 5412 | else |
e6cc62c6 VS |
5413 | echo "$as_me:$LINENO: result: no" >&5 |
5414 | echo "${ECHO_T}no" >&6 | |
eb4efbdc | 5415 | fi |
e6cc62c6 | 5416 | |
eb4efbdc | 5417 | |
5005acfe | 5418 | enablestring= |
e46d2a18 VS |
5419 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 |
5420 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
4f3c5f06 | 5421 | no_cache=0 |
e46d2a18 VS |
5422 | # Check whether --enable-unicode or --disable-unicode was given. |
5423 | if test "${enable_unicode+set}" = set; then | |
5424 | enableval="$enable_unicode" | |
e6cc62c6 | 5425 | |
4f3c5f06 | 5426 | if test "$enableval" = yes; then |
e46d2a18 | 5427 | ac_cv_use_unicode='wxUSE_UNICODE=yes' |
4f3c5f06 | 5428 | else |
e46d2a18 | 5429 | ac_cv_use_unicode='wxUSE_UNICODE=no' |
4f3c5f06 | 5430 | fi |
e6cc62c6 | 5431 | |
4f3c5f06 | 5432 | else |
e6cc62c6 | 5433 | |
e46d2a18 | 5434 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` |
4f3c5f06 VZ |
5435 | if test "x$LINE" != x ; then |
5436 | eval "DEFAULT_$LINE" | |
5437 | else | |
5438 | no_cache=1 | |
5439 | fi | |
5440 | ||
e46d2a18 | 5441 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE |
4f3c5f06 | 5442 | |
e6cc62c6 | 5443 | fi; |
4f3c5f06 | 5444 | |
e46d2a18 | 5445 | eval "$ac_cv_use_unicode" |
4f3c5f06 | 5446 | if test "$no_cache" != 1; then |
e46d2a18 | 5447 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp |
4f3c5f06 VZ |
5448 | fi |
5449 | ||
e46d2a18 | 5450 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
5451 | echo "$as_me:$LINENO: result: yes" >&5 |
5452 | echo "${ECHO_T}yes" >&6 | |
4f3c5f06 | 5453 | else |
e6cc62c6 VS |
5454 | echo "$as_me:$LINENO: result: no" >&5 |
5455 | echo "${ECHO_T}no" >&6 | |
4f3c5f06 | 5456 | fi |
e6cc62c6 | 5457 | |
52127426 | 5458 | |
e46d2a18 VS |
5459 | enablestring= |
5460 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wave" >&5 | |
5461 | echo $ECHO_N "checking for --${enablestring:-enable}-wave... $ECHO_C" >&6 | |
5462 | no_cache=0 | |
5463 | # Check whether --enable-wave or --disable-wave was given. | |
5464 | if test "${enable_wave+set}" = set; then | |
5465 | enableval="$enable_wave" | |
5466 | ||
5467 | if test "$enableval" = yes; then | |
5468 | ac_cv_use_wave='wxUSE_WAVE=yes' | |
5469 | else | |
5470 | ac_cv_use_wave='wxUSE_WAVE=no' | |
5471 | fi | |
5472 | ||
5473 | else | |
5474 | ||
5475 | LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}` | |
5476 | if test "x$LINE" != x ; then | |
5477 | eval "DEFAULT_$LINE" | |
5478 | else | |
5479 | no_cache=1 | |
5480 | fi | |
5481 | ||
5482 | ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE | |
5483 | ||
5484 | fi; | |
5485 | ||
5486 | eval "$ac_cv_use_wave" | |
5487 | if test "$no_cache" != 1; then | |
5488 | echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp | |
5489 | fi | |
5490 | ||
5491 | if test "$wxUSE_WAVE" = yes; then | |
5492 | echo "$as_me:$LINENO: result: yes" >&5 | |
5493 | echo "${ECHO_T}yes" >&6 | |
5494 | else | |
5495 | echo "$as_me:$LINENO: result: no" >&5 | |
5496 | echo "${ECHO_T}no" >&6 | |
5497 | fi | |
5498 | ||
8284b0c5 | 5499 | |
5005acfe | 5500 | enablestring= |
e46d2a18 VS |
5501 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 |
5502 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
1e6feb95 | 5503 | no_cache=0 |
e46d2a18 VS |
5504 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. |
5505 | if test "${enable_wxprintfv+set}" = set; then | |
5506 | enableval="$enable_wxprintfv" | |
e6cc62c6 | 5507 | |
1e6feb95 | 5508 | if test "$enableval" = yes; then |
e46d2a18 | 5509 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' |
1e6feb95 | 5510 | else |
e46d2a18 | 5511 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' |
1e6feb95 | 5512 | fi |
e6cc62c6 | 5513 | |
1e6feb95 | 5514 | else |
e6cc62c6 | 5515 | |
e46d2a18 | 5516 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` |
1e6feb95 VZ |
5517 | if test "x$LINE" != x ; then |
5518 | eval "DEFAULT_$LINE" | |
5519 | else | |
5520 | no_cache=1 | |
5521 | fi | |
5522 | ||
e46d2a18 | 5523 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF |
1e6feb95 | 5524 | |
e6cc62c6 | 5525 | fi; |
1e6feb95 | 5526 | |
e46d2a18 | 5527 | eval "$ac_cv_use_wxprintfv" |
1e6feb95 | 5528 | if test "$no_cache" != 1; then |
e46d2a18 | 5529 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp |
1e6feb95 VZ |
5530 | fi |
5531 | ||
e46d2a18 | 5532 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then |
e6cc62c6 VS |
5533 | echo "$as_me:$LINENO: result: yes" >&5 |
5534 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 5535 | else |
e6cc62c6 VS |
5536 | echo "$as_me:$LINENO: result: no" >&5 |
5537 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 5538 | fi |
e6cc62c6 | 5539 | |
1e6feb95 | 5540 | |
5005acfe | 5541 | enablestring= |
e46d2a18 VS |
5542 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 |
5543 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
3e44f09d | 5544 | no_cache=0 |
e46d2a18 VS |
5545 | # Check whether --enable-zipstream or --disable-zipstream was given. |
5546 | if test "${enable_zipstream+set}" = set; then | |
5547 | enableval="$enable_zipstream" | |
e6cc62c6 | 5548 | |
3e44f09d | 5549 | if test "$enableval" = yes; then |
e46d2a18 | 5550 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' |
3e44f09d | 5551 | else |
e46d2a18 | 5552 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' |
3e44f09d | 5553 | fi |
e6cc62c6 | 5554 | |
3e44f09d | 5555 | else |
e6cc62c6 | 5556 | |
e46d2a18 | 5557 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` |
3e44f09d VZ |
5558 | if test "x$LINE" != x ; then |
5559 | eval "DEFAULT_$LINE" | |
5560 | else | |
5561 | no_cache=1 | |
5562 | fi | |
5563 | ||
e46d2a18 | 5564 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM |
3e44f09d | 5565 | |
e6cc62c6 | 5566 | fi; |
3e44f09d | 5567 | |
e46d2a18 | 5568 | eval "$ac_cv_use_zipstream" |
3e44f09d | 5569 | if test "$no_cache" != 1; then |
e46d2a18 | 5570 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp |
3e44f09d VZ |
5571 | fi |
5572 | ||
e46d2a18 | 5573 | if test "$wxUSE_ZIPSTREAM" = yes; then |
e6cc62c6 VS |
5574 | echo "$as_me:$LINENO: result: yes" >&5 |
5575 | echo "${ECHO_T}yes" >&6 | |
3e44f09d | 5576 | else |
e6cc62c6 VS |
5577 | echo "$as_me:$LINENO: result: no" >&5 |
5578 | echo "${ECHO_T}no" >&6 | |
3e44f09d | 5579 | fi |
e6cc62c6 | 5580 | |
8284b0c5 | 5581 | |
7015ef3a VZ |
5582 | enablestring= |
5583 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gzstream" >&5 | |
5584 | echo $ECHO_N "checking for --${enablestring:-enable}-gzstream... $ECHO_C" >&6 | |
5585 | no_cache=0 | |
5586 | # Check whether --enable-gzstream or --disable-gzstream was given. | |
5587 | if test "${enable_gzstream+set}" = set; then | |
5588 | enableval="$enable_gzstream" | |
5589 | ||
5590 | if test "$enableval" = yes; then | |
5591 | ac_cv_use_gzstream='wxUSE_GZSTREAM=yes' | |
5592 | else | |
5593 | ac_cv_use_gzstream='wxUSE_GZSTREAM=no' | |
5594 | fi | |
5595 | ||
5596 | else | |
5597 | ||
5598 | LINE=`grep "wxUSE_GZSTREAM" ${wx_arg_cache_file}` | |
5599 | if test "x$LINE" != x ; then | |
5600 | eval "DEFAULT_$LINE" | |
5601 | else | |
5602 | no_cache=1 | |
5603 | fi | |
5604 | ||
5605 | ac_cv_use_gzstream='wxUSE_GZSTREAM='$DEFAULT_wxUSE_GZSTREAM | |
5606 | ||
5607 | fi; | |
5608 | ||
5609 | eval "$ac_cv_use_gzstream" | |
5610 | if test "$no_cache" != 1; then | |
5611 | echo $ac_cv_use_gzstream >> ${wx_arg_cache_file}.tmp | |
5612 | fi | |
5613 | ||
5614 | if test "$wxUSE_GZSTREAM" = yes; then | |
5615 | echo "$as_me:$LINENO: result: yes" >&5 | |
5616 | echo "${ECHO_T}yes" >&6 | |
5617 | else | |
5618 | echo "$as_me:$LINENO: result: no" >&5 | |
5619 | echo "${ECHO_T}no" >&6 | |
5620 | fi | |
5621 | ||
5622 | ||
52127426 | 5623 | |
5005acfe | 5624 | enablestring= |
e6cc62c6 VS |
5625 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 |
5626 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5627 | no_cache=0 |
5628 | # Check whether --enable-url or --disable-url was given. | |
5629 | if test "${enable_url+set}" = set; then | |
5630 | enableval="$enable_url" | |
e6cc62c6 | 5631 | |
4cdb0ab0 VS |
5632 | if test "$enableval" = yes; then |
5633 | ac_cv_use_url='wxUSE_URL=yes' | |
5634 | else | |
5635 | ac_cv_use_url='wxUSE_URL=no' | |
5636 | fi | |
e6cc62c6 | 5637 | |
4cdb0ab0 | 5638 | else |
e6cc62c6 | 5639 | |
4cdb0ab0 VS |
5640 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` |
5641 | if test "x$LINE" != x ; then | |
5642 | eval "DEFAULT_$LINE" | |
5643 | else | |
5644 | no_cache=1 | |
5645 | fi | |
5646 | ||
5647 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
4cdb0ab0 | 5648 | |
e6cc62c6 | 5649 | fi; |
4cdb0ab0 VS |
5650 | |
5651 | eval "$ac_cv_use_url" | |
5652 | if test "$no_cache" != 1; then | |
5653 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5654 | fi | |
5655 | ||
5656 | if test "$wxUSE_URL" = yes; then | |
e6cc62c6 VS |
5657 | echo "$as_me:$LINENO: result: yes" >&5 |
5658 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5659 | else |
e6cc62c6 VS |
5660 | echo "$as_me:$LINENO: result: no" >&5 |
5661 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5662 | fi |
e6cc62c6 | 5663 | |
4cdb0ab0 | 5664 | |
5005acfe | 5665 | enablestring= |
e6cc62c6 VS |
5666 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 |
5667 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5668 | no_cache=0 |
5669 | # Check whether --enable-protocol or --disable-protocol was given. | |
5670 | if test "${enable_protocol+set}" = set; then | |
5671 | enableval="$enable_protocol" | |
e6cc62c6 | 5672 | |
4cdb0ab0 VS |
5673 | if test "$enableval" = yes; then |
5674 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5675 | else | |
5676 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5677 | fi | |
e6cc62c6 | 5678 | |
4cdb0ab0 | 5679 | else |
e6cc62c6 | 5680 | |
4cdb0ab0 VS |
5681 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` |
5682 | if test "x$LINE" != x ; then | |
5683 | eval "DEFAULT_$LINE" | |
5684 | else | |
5685 | no_cache=1 | |
5686 | fi | |
5687 | ||
5688 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4cdb0ab0 | 5689 | |
e6cc62c6 | 5690 | fi; |
4cdb0ab0 VS |
5691 | |
5692 | eval "$ac_cv_use_protocol" | |
5693 | if test "$no_cache" != 1; then | |
5694 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5695 | fi | |
5696 | ||
5697 | if test "$wxUSE_PROTOCOL" = yes; then | |
e6cc62c6 VS |
5698 | echo "$as_me:$LINENO: result: yes" >&5 |
5699 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5700 | else |
e6cc62c6 VS |
5701 | echo "$as_me:$LINENO: result: no" >&5 |
5702 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5703 | fi |
e6cc62c6 | 5704 | |
4cdb0ab0 | 5705 | |
5005acfe | 5706 | enablestring= |
e6cc62c6 VS |
5707 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 |
5708 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5709 | no_cache=0 |
5710 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5711 | if test "${enable_protocol_http+set}" = set; then | |
5712 | enableval="$enable_protocol_http" | |
e6cc62c6 | 5713 | |
4cdb0ab0 VS |
5714 | if test "$enableval" = yes; then |
5715 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5716 | else | |
5717 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5718 | fi | |
e6cc62c6 | 5719 | |
4cdb0ab0 | 5720 | else |
e6cc62c6 | 5721 | |
4cdb0ab0 VS |
5722 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` |
5723 | if test "x$LINE" != x ; then | |
5724 | eval "DEFAULT_$LINE" | |
5725 | else | |
5726 | no_cache=1 | |
5727 | fi | |
5728 | ||
5729 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4cdb0ab0 | 5730 | |
e6cc62c6 | 5731 | fi; |
4cdb0ab0 VS |
5732 | |
5733 | eval "$ac_cv_use_protocol_http" | |
5734 | if test "$no_cache" != 1; then | |
5735 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5736 | fi | |
5737 | ||
5738 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
e6cc62c6 VS |
5739 | echo "$as_me:$LINENO: result: yes" >&5 |
5740 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5741 | else |
e6cc62c6 VS |
5742 | echo "$as_me:$LINENO: result: no" >&5 |
5743 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5744 | fi |
e6cc62c6 | 5745 | |
4cdb0ab0 | 5746 | |
5005acfe | 5747 | enablestring= |
e6cc62c6 VS |
5748 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 |
5749 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5750 | no_cache=0 |
5751 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5752 | if test "${enable_protocol_ftp+set}" = set; then | |
5753 | enableval="$enable_protocol_ftp" | |
e6cc62c6 | 5754 | |
4cdb0ab0 VS |
5755 | if test "$enableval" = yes; then |
5756 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5757 | else | |
5758 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5759 | fi | |
e6cc62c6 | 5760 | |
4cdb0ab0 | 5761 | else |
e6cc62c6 | 5762 | |
4cdb0ab0 VS |
5763 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` |
5764 | if test "x$LINE" != x ; then | |
5765 | eval "DEFAULT_$LINE" | |
5766 | else | |
5767 | no_cache=1 | |
5768 | fi | |
5769 | ||
5770 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4cdb0ab0 | 5771 | |
e6cc62c6 | 5772 | fi; |
4cdb0ab0 VS |
5773 | |
5774 | eval "$ac_cv_use_protocol_ftp" | |
5775 | if test "$no_cache" != 1; then | |
5776 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5777 | fi | |
5778 | ||
5779 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
e6cc62c6 VS |
5780 | echo "$as_me:$LINENO: result: yes" >&5 |
5781 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5782 | else |
e6cc62c6 VS |
5783 | echo "$as_me:$LINENO: result: no" >&5 |
5784 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5785 | fi |
e6cc62c6 | 5786 | |
4cdb0ab0 | 5787 | |
5005acfe | 5788 | enablestring= |
e6cc62c6 VS |
5789 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 |
5790 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
4cdb0ab0 VS |
5791 | no_cache=0 |
5792 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5793 | if test "${enable_protocol_file+set}" = set; then | |
5794 | enableval="$enable_protocol_file" | |
e6cc62c6 | 5795 | |
4cdb0ab0 VS |
5796 | if test "$enableval" = yes; then |
5797 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5798 | else | |
5799 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5800 | fi | |
e6cc62c6 | 5801 | |
4cdb0ab0 | 5802 | else |
e6cc62c6 | 5803 | |
4cdb0ab0 VS |
5804 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` |
5805 | if test "x$LINE" != x ; then | |
5806 | eval "DEFAULT_$LINE" | |
5807 | else | |
5808 | no_cache=1 | |
5809 | fi | |
5810 | ||
5811 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4cdb0ab0 | 5812 | |
e6cc62c6 | 5813 | fi; |
4cdb0ab0 VS |
5814 | |
5815 | eval "$ac_cv_use_protocol_file" | |
5816 | if test "$no_cache" != 1; then | |
5817 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5818 | fi | |
5819 | ||
5820 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
e6cc62c6 VS |
5821 | echo "$as_me:$LINENO: result: yes" >&5 |
5822 | echo "${ECHO_T}yes" >&6 | |
4cdb0ab0 | 5823 | else |
e6cc62c6 VS |
5824 | echo "$as_me:$LINENO: result: no" >&5 |
5825 | echo "${ECHO_T}no" >&6 | |
4cdb0ab0 | 5826 | fi |
e6cc62c6 | 5827 | |
52127426 | 5828 | |
8284b0c5 MB |
5829 | |
5830 | ||
5831 | ||
5005acfe | 5832 | enablestring= |
e6cc62c6 VS |
5833 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 |
5834 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
10f2d63a VZ |
5835 | no_cache=0 |
5836 | # Check whether --enable-threads or --disable-threads was given. | |
5837 | if test "${enable_threads+set}" = set; then | |
5838 | enableval="$enable_threads" | |
e6cc62c6 | 5839 | |
10f2d63a VZ |
5840 | if test "$enableval" = yes; then |
5841 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5842 | else | |
5843 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5844 | fi | |
e6cc62c6 | 5845 | |
10f2d63a | 5846 | else |
e6cc62c6 | 5847 | |
10f2d63a VZ |
5848 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` |
5849 | if test "x$LINE" != x ; then | |
5850 | eval "DEFAULT_$LINE" | |
5851 | else | |
5852 | no_cache=1 | |
5853 | fi | |
5854 | ||
5855 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
10f2d63a | 5856 | |
e6cc62c6 | 5857 | fi; |
10f2d63a VZ |
5858 | |
5859 | eval "$ac_cv_use_threads" | |
5860 | if test "$no_cache" != 1; then | |
5861 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5862 | fi | |
5863 | ||
5864 | if test "$wxUSE_THREADS" = yes; then | |
e6cc62c6 VS |
5865 | echo "$as_me:$LINENO: result: yes" >&5 |
5866 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5867 | else |
e6cc62c6 VS |
5868 | echo "$as_me:$LINENO: result: no" >&5 |
5869 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5870 | fi |
e6cc62c6 | 5871 | |
10f2d63a | 5872 | |
b12915c1 VZ |
5873 | if test "$wxUSE_GUI" = "yes"; then |
5874 | ||
8284b0c5 MB |
5875 | |
5876 | ||
5005acfe | 5877 | enablestring= |
e6cc62c6 VS |
5878 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 |
5879 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
10f2d63a VZ |
5880 | no_cache=0 |
5881 | # Check whether --enable-docview or --disable-docview was given. | |
5882 | if test "${enable_docview+set}" = set; then | |
5883 | enableval="$enable_docview" | |
e6cc62c6 | 5884 | |
10f2d63a VZ |
5885 | if test "$enableval" = yes; then |
5886 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
5887 | else | |
5888 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
5889 | fi | |
e6cc62c6 | 5890 | |
10f2d63a | 5891 | else |
e6cc62c6 | 5892 | |
10f2d63a VZ |
5893 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` |
5894 | if test "x$LINE" != x ; then | |
5895 | eval "DEFAULT_$LINE" | |
5896 | else | |
5897 | no_cache=1 | |
5898 | fi | |
5899 | ||
5900 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
10f2d63a | 5901 | |
e6cc62c6 | 5902 | fi; |
10f2d63a VZ |
5903 | |
5904 | eval "$ac_cv_use_docview" | |
5905 | if test "$no_cache" != 1; then | |
5906 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
5907 | fi | |
5908 | ||
5909 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
5910 | echo "$as_me:$LINENO: result: yes" >&5 |
5911 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5912 | else |
e6cc62c6 VS |
5913 | echo "$as_me:$LINENO: result: no" >&5 |
5914 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5915 | fi |
e6cc62c6 | 5916 | |
10f2d63a | 5917 | |
5005acfe | 5918 | enablestring= |
e6cc62c6 VS |
5919 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 |
5920 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
10f2d63a VZ |
5921 | no_cache=0 |
5922 | # Check whether --enable-help or --disable-help was given. | |
5923 | if test "${enable_help+set}" = set; then | |
5924 | enableval="$enable_help" | |
e6cc62c6 | 5925 | |
10f2d63a VZ |
5926 | if test "$enableval" = yes; then |
5927 | ac_cv_use_help='wxUSE_HELP=yes' | |
5928 | else | |
5929 | ac_cv_use_help='wxUSE_HELP=no' | |
5930 | fi | |
e6cc62c6 | 5931 | |
10f2d63a | 5932 | else |
e6cc62c6 | 5933 | |
10f2d63a VZ |
5934 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` |
5935 | if test "x$LINE" != x ; then | |
5936 | eval "DEFAULT_$LINE" | |
5937 | else | |
5938 | no_cache=1 | |
5939 | fi | |
5940 | ||
5941 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
10f2d63a | 5942 | |
e6cc62c6 | 5943 | fi; |
10f2d63a VZ |
5944 | |
5945 | eval "$ac_cv_use_help" | |
5946 | if test "$no_cache" != 1; then | |
5947 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
5948 | fi | |
5949 | ||
5950 | if test "$wxUSE_HELP" = yes; then | |
e6cc62c6 VS |
5951 | echo "$as_me:$LINENO: result: yes" >&5 |
5952 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 5953 | else |
e6cc62c6 VS |
5954 | echo "$as_me:$LINENO: result: no" >&5 |
5955 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 5956 | fi |
e6cc62c6 | 5957 | |
10f2d63a | 5958 | |
5005acfe | 5959 | enablestring= |
e6cc62c6 VS |
5960 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 |
5961 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
29fd3c0c VS |
5962 | no_cache=0 |
5963 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
5964 | if test "${enable_mshtmlhelp+set}" = set; then | |
5965 | enableval="$enable_mshtmlhelp" | |
e6cc62c6 | 5966 | |
29fd3c0c VS |
5967 | if test "$enableval" = yes; then |
5968 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
5969 | else | |
5970 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
5971 | fi | |
e6cc62c6 | 5972 | |
29fd3c0c | 5973 | else |
e6cc62c6 | 5974 | |
29fd3c0c VS |
5975 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` |
5976 | if test "x$LINE" != x ; then | |
5977 | eval "DEFAULT_$LINE" | |
5978 | else | |
5979 | no_cache=1 | |
5980 | fi | |
5981 | ||
5982 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
29fd3c0c | 5983 | |
e6cc62c6 | 5984 | fi; |
29fd3c0c VS |
5985 | |
5986 | eval "$ac_cv_use_mshtmlhelp" | |
5987 | if test "$no_cache" != 1; then | |
5988 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
5989 | fi | |
5990 | ||
5991 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
e6cc62c6 VS |
5992 | echo "$as_me:$LINENO: result: yes" >&5 |
5993 | echo "${ECHO_T}yes" >&6 | |
29fd3c0c | 5994 | else |
e6cc62c6 VS |
5995 | echo "$as_me:$LINENO: result: no" >&5 |
5996 | echo "${ECHO_T}no" >&6 | |
29fd3c0c | 5997 | fi |
e6cc62c6 | 5998 | |
29fd3c0c | 5999 | |
5005acfe | 6000 | enablestring= |
e6cc62c6 VS |
6001 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 |
6002 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
3379ed37 VZ |
6003 | no_cache=0 |
6004 | # Check whether --enable-html or --disable-html was given. | |
6005 | if test "${enable_html+set}" = set; then | |
6006 | enableval="$enable_html" | |
e6cc62c6 | 6007 | |
3379ed37 VZ |
6008 | if test "$enableval" = yes; then |
6009 | ac_cv_use_html='wxUSE_HTML=yes' | |
6010 | else | |
6011 | ac_cv_use_html='wxUSE_HTML=no' | |
6012 | fi | |
e6cc62c6 | 6013 | |
3379ed37 | 6014 | else |
e6cc62c6 | 6015 | |
3379ed37 VZ |
6016 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` |
6017 | if test "x$LINE" != x ; then | |
6018 | eval "DEFAULT_$LINE" | |
6019 | else | |
6020 | no_cache=1 | |
6021 | fi | |
6022 | ||
6023 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
3379ed37 | 6024 | |
e6cc62c6 | 6025 | fi; |
3379ed37 VZ |
6026 | |
6027 | eval "$ac_cv_use_html" | |
6028 | if test "$no_cache" != 1; then | |
6029 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6030 | fi | |
6031 | ||
6032 | if test "$wxUSE_HTML" = yes; then | |
e6cc62c6 VS |
6033 | echo "$as_me:$LINENO: result: yes" >&5 |
6034 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6035 | else |
e6cc62c6 VS |
6036 | echo "$as_me:$LINENO: result: no" >&5 |
6037 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6038 | fi |
e6cc62c6 | 6039 | |
3379ed37 | 6040 | |
5005acfe | 6041 | enablestring= |
e6cc62c6 VS |
6042 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 |
6043 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
3379ed37 VZ |
6044 | no_cache=0 |
6045 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6046 | if test "${enable_htmlhelp+set}" = set; then | |
6047 | enableval="$enable_htmlhelp" | |
e6cc62c6 | 6048 | |
3379ed37 VZ |
6049 | if test "$enableval" = yes; then |
6050 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6051 | else | |
6052 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6053 | fi | |
e6cc62c6 | 6054 | |
3379ed37 | 6055 | else |
e6cc62c6 | 6056 | |
3379ed37 VZ |
6057 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` |
6058 | if test "x$LINE" != x ; then | |
6059 | eval "DEFAULT_$LINE" | |
6060 | else | |
6061 | no_cache=1 | |
6062 | fi | |
6063 | ||
6064 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
3379ed37 | 6065 | |
e6cc62c6 | 6066 | fi; |
3379ed37 VZ |
6067 | |
6068 | eval "$ac_cv_use_htmlhelp" | |
6069 | if test "$no_cache" != 1; then | |
6070 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6071 | fi | |
6072 | ||
6073 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
e6cc62c6 VS |
6074 | echo "$as_me:$LINENO: result: yes" >&5 |
6075 | echo "${ECHO_T}yes" >&6 | |
3379ed37 | 6076 | else |
e6cc62c6 VS |
6077 | echo "$as_me:$LINENO: result: no" >&5 |
6078 | echo "${ECHO_T}no" >&6 | |
3379ed37 | 6079 | fi |
e6cc62c6 | 6080 | |
3379ed37 | 6081 | |
5005acfe | 6082 | enablestring= |
e6cc62c6 VS |
6083 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 |
6084 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
10f2d63a VZ |
6085 | no_cache=0 |
6086 | # Check whether --enable-constraints or --disable-constraints was given. | |
6087 | if test "${enable_constraints+set}" = set; then | |
6088 | enableval="$enable_constraints" | |
e6cc62c6 | 6089 | |
10f2d63a VZ |
6090 | if test "$enableval" = yes; then |
6091 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6092 | else | |
6093 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6094 | fi | |
e6cc62c6 | 6095 | |
10f2d63a | 6096 | else |
e6cc62c6 | 6097 | |
10f2d63a VZ |
6098 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` |
6099 | if test "x$LINE" != x ; then | |
6100 | eval "DEFAULT_$LINE" | |
6101 | else | |
6102 | no_cache=1 | |
6103 | fi | |
6104 | ||
6105 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
10f2d63a | 6106 | |
e6cc62c6 | 6107 | fi; |
10f2d63a VZ |
6108 | |
6109 | eval "$ac_cv_use_constraints" | |
6110 | if test "$no_cache" != 1; then | |
6111 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6112 | fi | |
6113 | ||
6114 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
e6cc62c6 VS |
6115 | echo "$as_me:$LINENO: result: yes" >&5 |
6116 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6117 | else |
e6cc62c6 VS |
6118 | echo "$as_me:$LINENO: result: no" >&5 |
6119 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6120 | fi |
e6cc62c6 | 6121 | |
10f2d63a | 6122 | |
5005acfe | 6123 | enablestring= |
e6cc62c6 VS |
6124 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 |
6125 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
10f2d63a VZ |
6126 | no_cache=0 |
6127 | # Check whether --enable-printarch or --disable-printarch was given. | |
6128 | if test "${enable_printarch+set}" = set; then | |
6129 | enableval="$enable_printarch" | |
e6cc62c6 | 6130 | |
10f2d63a VZ |
6131 | if test "$enableval" = yes; then |
6132 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6133 | else | |
6134 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6135 | fi | |
e6cc62c6 | 6136 | |
10f2d63a | 6137 | else |
e6cc62c6 | 6138 | |
10f2d63a VZ |
6139 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` |
6140 | if test "x$LINE" != x ; then | |
6141 | eval "DEFAULT_$LINE" | |
6142 | else | |
6143 | no_cache=1 | |
6144 | fi | |
6145 | ||
6146 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
10f2d63a | 6147 | |
e6cc62c6 | 6148 | fi; |
10f2d63a VZ |
6149 | |
6150 | eval "$ac_cv_use_printarch" | |
6151 | if test "$no_cache" != 1; then | |
6152 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6153 | fi | |
6154 | ||
6155 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6156 | echo "$as_me:$LINENO: result: yes" >&5 |
6157 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6158 | else |
e6cc62c6 VS |
6159 | echo "$as_me:$LINENO: result: no" >&5 |
6160 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6161 | fi |
e6cc62c6 | 6162 | |
10f2d63a | 6163 | |
5005acfe | 6164 | enablestring= |
e6cc62c6 VS |
6165 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 |
6166 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
10f2d63a VZ |
6167 | no_cache=0 |
6168 | # Check whether --enable-mdi or --disable-mdi was given. | |
6169 | if test "${enable_mdi+set}" = set; then | |
6170 | enableval="$enable_mdi" | |
e6cc62c6 | 6171 | |
10f2d63a VZ |
6172 | if test "$enableval" = yes; then |
6173 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes' | |
6174 | else | |
6175 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no' | |
6176 | fi | |
e6cc62c6 | 6177 | |
10f2d63a | 6178 | else |
e6cc62c6 | 6179 | |
10f2d63a VZ |
6180 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` |
6181 | if test "x$LINE" != x ; then | |
6182 | eval "DEFAULT_$LINE" | |
6183 | else | |
6184 | no_cache=1 | |
6185 | fi | |
6186 | ||
6187 | ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
10f2d63a | 6188 | |
e6cc62c6 | 6189 | fi; |
10f2d63a VZ |
6190 | |
6191 | eval "$ac_cv_use_mdi" | |
6192 | if test "$no_cache" != 1; then | |
6193 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6194 | fi | |
6195 | ||
6196 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then | |
e6cc62c6 VS |
6197 | echo "$as_me:$LINENO: result: yes" >&5 |
6198 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6199 | else |
e6cc62c6 VS |
6200 | echo "$as_me:$LINENO: result: no" >&5 |
6201 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6202 | fi |
e6cc62c6 | 6203 | |
698dcdb6 | 6204 | |
5005acfe | 6205 | enablestring= |
e6cc62c6 VS |
6206 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 |
6207 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
1e6feb95 VZ |
6208 | no_cache=0 |
6209 | # Check whether --enable-loggui or --disable-loggui was given. | |
6210 | if test "${enable_loggui+set}" = set; then | |
6211 | enableval="$enable_loggui" | |
e6cc62c6 | 6212 | |
1e6feb95 VZ |
6213 | if test "$enableval" = yes; then |
6214 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6215 | else | |
6216 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6217 | fi | |
e6cc62c6 | 6218 | |
1e6feb95 | 6219 | else |
e6cc62c6 | 6220 | |
1e6feb95 VZ |
6221 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` |
6222 | if test "x$LINE" != x ; then | |
6223 | eval "DEFAULT_$LINE" | |
6224 | else | |
6225 | no_cache=1 | |
6226 | fi | |
6227 | ||
6228 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
1e6feb95 | 6229 | |
e6cc62c6 | 6230 | fi; |
1e6feb95 VZ |
6231 | |
6232 | eval "$ac_cv_use_loggui" | |
6233 | if test "$no_cache" != 1; then | |
6234 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6235 | fi | |
6236 | ||
6237 | if test "$wxUSE_LOGGUI" = yes; then | |
e6cc62c6 VS |
6238 | echo "$as_me:$LINENO: result: yes" >&5 |
6239 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6240 | else |
e6cc62c6 VS |
6241 | echo "$as_me:$LINENO: result: no" >&5 |
6242 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6243 | fi |
e6cc62c6 | 6244 | |
1e6feb95 | 6245 | |
5005acfe | 6246 | enablestring= |
e6cc62c6 VS |
6247 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 |
6248 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
1e6feb95 VZ |
6249 | no_cache=0 |
6250 | # Check whether --enable-logwin or --disable-logwin was given. | |
6251 | if test "${enable_logwin+set}" = set; then | |
6252 | enableval="$enable_logwin" | |
e6cc62c6 | 6253 | |
1e6feb95 VZ |
6254 | if test "$enableval" = yes; then |
6255 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6256 | else | |
6257 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6258 | fi | |
e6cc62c6 | 6259 | |
1e6feb95 | 6260 | else |
e6cc62c6 | 6261 | |
1e6feb95 VZ |
6262 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` |
6263 | if test "x$LINE" != x ; then | |
6264 | eval "DEFAULT_$LINE" | |
6265 | else | |
6266 | no_cache=1 | |
6267 | fi | |
6268 | ||
6269 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
1e6feb95 | 6270 | |
e6cc62c6 | 6271 | fi; |
1e6feb95 VZ |
6272 | |
6273 | eval "$ac_cv_use_logwin" | |
6274 | if test "$no_cache" != 1; then | |
6275 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6276 | fi | |
6277 | ||
6278 | if test "$wxUSE_LOGWINDOW" = yes; then | |
e6cc62c6 VS |
6279 | echo "$as_me:$LINENO: result: yes" >&5 |
6280 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6281 | else |
e6cc62c6 VS |
6282 | echo "$as_me:$LINENO: result: no" >&5 |
6283 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6284 | fi |
e6cc62c6 | 6285 | |
1e6feb95 | 6286 | |
5005acfe | 6287 | enablestring= |
e6cc62c6 VS |
6288 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 |
6289 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
69d27ff7 MB |
6290 | no_cache=0 |
6291 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6292 | if test "${enable_logdialog+set}" = set; then | |
6293 | enableval="$enable_logdialog" | |
e6cc62c6 | 6294 | |
69d27ff7 MB |
6295 | if test "$enableval" = yes; then |
6296 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6297 | else | |
6298 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6299 | fi | |
e6cc62c6 | 6300 | |
69d27ff7 | 6301 | else |
e6cc62c6 | 6302 | |
69d27ff7 MB |
6303 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` |
6304 | if test "x$LINE" != x ; then | |
6305 | eval "DEFAULT_$LINE" | |
6306 | else | |
6307 | no_cache=1 | |
6308 | fi | |
6309 | ||
6310 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
69d27ff7 | 6311 | |
e6cc62c6 | 6312 | fi; |
69d27ff7 MB |
6313 | |
6314 | eval "$ac_cv_use_logdialog" | |
6315 | if test "$no_cache" != 1; then | |
6316 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6317 | fi | |
6318 | ||
6319 | if test "$wxUSE_LOGDIALOG" = yes; then | |
e6cc62c6 VS |
6320 | echo "$as_me:$LINENO: result: yes" >&5 |
6321 | echo "${ECHO_T}yes" >&6 | |
69d27ff7 | 6322 | else |
e6cc62c6 VS |
6323 | echo "$as_me:$LINENO: result: no" >&5 |
6324 | echo "${ECHO_T}no" >&6 | |
69d27ff7 | 6325 | fi |
e6cc62c6 | 6326 | |
8284b0c5 | 6327 | |
52127426 | 6328 | |
5005acfe | 6329 | enablestring= |
e6cc62c6 VS |
6330 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 |
6331 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
10f2d63a VZ |
6332 | no_cache=0 |
6333 | # Check whether --enable-postscript or --disable-postscript was given. | |
6334 | if test "${enable_postscript+set}" = set; then | |
6335 | enableval="$enable_postscript" | |
e6cc62c6 | 6336 | |
10f2d63a VZ |
6337 | if test "$enableval" = yes; then |
6338 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6339 | else | |
6340 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6341 | fi | |
e6cc62c6 | 6342 | |
10f2d63a | 6343 | else |
e6cc62c6 | 6344 | |
10f2d63a VZ |
6345 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` |
6346 | if test "x$LINE" != x ; then | |
6347 | eval "DEFAULT_$LINE" | |
6348 | else | |
6349 | no_cache=1 | |
6350 | fi | |
6351 | ||
6352 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
10f2d63a | 6353 | |
e6cc62c6 | 6354 | fi; |
10f2d63a VZ |
6355 | |
6356 | eval "$ac_cv_use_postscript" | |
6357 | if test "$no_cache" != 1; then | |
6358 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6359 | fi | |
6360 | ||
6361 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
e6cc62c6 VS |
6362 | echo "$as_me:$LINENO: result: yes" >&5 |
6363 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6364 | else |
e6cc62c6 VS |
6365 | echo "$as_me:$LINENO: result: no" >&5 |
6366 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6367 | fi |
e6cc62c6 | 6368 | |
8284b0c5 MB |
6369 | |
6370 | ||
52127426 | 6371 | |
8284b0c5 | 6372 | |
5005acfe | 6373 | enablestring= |
e6cc62c6 VS |
6374 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 |
6375 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
10f2d63a | 6376 | no_cache=0 |
3c907f20 VZ |
6377 | # Check whether --enable-prologio or --disable-prologio was given. |
6378 | if test "${enable_prologio+set}" = set; then | |
6379 | enableval="$enable_prologio" | |
e6cc62c6 | 6380 | |
10f2d63a | 6381 | if test "$enableval" = yes; then |
3c907f20 | 6382 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' |
10f2d63a | 6383 | else |
3c907f20 | 6384 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' |
10f2d63a | 6385 | fi |
e6cc62c6 | 6386 | |
10f2d63a | 6387 | else |
e6cc62c6 | 6388 | |
3c907f20 | 6389 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` |
10f2d63a VZ |
6390 | if test "x$LINE" != x ; then |
6391 | eval "DEFAULT_$LINE" | |
6392 | else | |
6393 | no_cache=1 | |
6394 | fi | |
6395 | ||
3c907f20 | 6396 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO |
10f2d63a | 6397 | |
e6cc62c6 | 6398 | fi; |
10f2d63a | 6399 | |
3c907f20 | 6400 | eval "$ac_cv_use_prologio" |
10f2d63a | 6401 | if test "$no_cache" != 1; then |
3c907f20 | 6402 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6403 | fi |
6404 | ||
3c907f20 | 6405 | if test "$wxUSE_PROLOGIO" = yes; then |
e6cc62c6 VS |
6406 | echo "$as_me:$LINENO: result: yes" >&5 |
6407 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6408 | else |
e6cc62c6 VS |
6409 | echo "$as_me:$LINENO: result: no" >&5 |
6410 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6411 | fi |
e6cc62c6 | 6412 | |
8284b0c5 | 6413 | |
5005acfe | 6414 | enablestring= |
e6cc62c6 VS |
6415 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 |
6416 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
10f2d63a | 6417 | no_cache=0 |
3c907f20 VZ |
6418 | # Check whether --enable-resources or --disable-resources was given. |
6419 | if test "${enable_resources+set}" = set; then | |
6420 | enableval="$enable_resources" | |
e6cc62c6 | 6421 | |
10f2d63a | 6422 | if test "$enableval" = yes; then |
3c907f20 | 6423 | ac_cv_use_resources='wxUSE_RESOURCES=yes' |
10f2d63a | 6424 | else |
3c907f20 | 6425 | ac_cv_use_resources='wxUSE_RESOURCES=no' |
10f2d63a | 6426 | fi |
e6cc62c6 | 6427 | |
10f2d63a | 6428 | else |
e6cc62c6 | 6429 | |
3c907f20 | 6430 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` |
10f2d63a VZ |
6431 | if test "x$LINE" != x ; then |
6432 | eval "DEFAULT_$LINE" | |
6433 | else | |
6434 | no_cache=1 | |
6435 | fi | |
6436 | ||
3c907f20 | 6437 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES |
10f2d63a | 6438 | |
e6cc62c6 | 6439 | fi; |
10f2d63a | 6440 | |
3c907f20 | 6441 | eval "$ac_cv_use_resources" |
10f2d63a | 6442 | if test "$no_cache" != 1; then |
3c907f20 | 6443 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6444 | fi |
6445 | ||
3c907f20 | 6446 | if test "$wxUSE_RESOURCES" = yes; then |
e6cc62c6 VS |
6447 | echo "$as_me:$LINENO: result: yes" >&5 |
6448 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6449 | else |
e6cc62c6 VS |
6450 | echo "$as_me:$LINENO: result: no" >&5 |
6451 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6452 | fi |
e6cc62c6 | 6453 | |
8284b0c5 MB |
6454 | |
6455 | ||
52127426 | 6456 | |
5005acfe | 6457 | enablestring= |
e6cc62c6 VS |
6458 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 |
6459 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
10f2d63a VZ |
6460 | no_cache=0 |
6461 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6462 | if test "${enable_clipboard+set}" = set; then | |
6463 | enableval="$enable_clipboard" | |
e6cc62c6 | 6464 | |
10f2d63a VZ |
6465 | if test "$enableval" = yes; then |
6466 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6467 | else | |
6468 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6469 | fi | |
e6cc62c6 | 6470 | |
10f2d63a | 6471 | else |
e6cc62c6 | 6472 | |
10f2d63a VZ |
6473 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` |
6474 | if test "x$LINE" != x ; then | |
6475 | eval "DEFAULT_$LINE" | |
6476 | else | |
6477 | no_cache=1 | |
6478 | fi | |
6479 | ||
6480 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
10f2d63a | 6481 | |
e6cc62c6 | 6482 | fi; |
10f2d63a VZ |
6483 | |
6484 | eval "$ac_cv_use_clipboard" | |
6485 | if test "$no_cache" != 1; then | |
6486 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6487 | fi | |
6488 | ||
6489 | if test "$wxUSE_CLIPBOARD" = yes; then | |
e6cc62c6 VS |
6490 | echo "$as_me:$LINENO: result: yes" >&5 |
6491 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6492 | else |
e6cc62c6 VS |
6493 | echo "$as_me:$LINENO: result: no" >&5 |
6494 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6495 | fi |
e6cc62c6 | 6496 | |
10f2d63a | 6497 | |
5005acfe | 6498 | enablestring= |
e6cc62c6 VS |
6499 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 |
6500 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
10f2d63a VZ |
6501 | no_cache=0 |
6502 | # Check whether --enable-dnd or --disable-dnd was given. | |
6503 | if test "${enable_dnd+set}" = set; then | |
6504 | enableval="$enable_dnd" | |
e6cc62c6 | 6505 | |
10f2d63a VZ |
6506 | if test "$enableval" = yes; then |
6507 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6508 | else | |
6509 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6510 | fi | |
e6cc62c6 | 6511 | |
10f2d63a | 6512 | else |
e6cc62c6 | 6513 | |
10f2d63a VZ |
6514 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` |
6515 | if test "x$LINE" != x ; then | |
6516 | eval "DEFAULT_$LINE" | |
6517 | else | |
6518 | no_cache=1 | |
6519 | fi | |
6520 | ||
6521 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
10f2d63a | 6522 | |
e6cc62c6 | 6523 | fi; |
10f2d63a VZ |
6524 | |
6525 | eval "$ac_cv_use_dnd" | |
6526 | if test "$no_cache" != 1; then | |
6527 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6528 | fi | |
6529 | ||
6530 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
e6cc62c6 VS |
6531 | echo "$as_me:$LINENO: result: yes" >&5 |
6532 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6533 | else |
e6cc62c6 VS |
6534 | echo "$as_me:$LINENO: result: no" >&5 |
6535 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6536 | fi |
e6cc62c6 | 6537 | |
10f2d63a | 6538 | |
5005acfe | 6539 | enablestring= |
e6cc62c6 VS |
6540 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
6541 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
b64f0a5f RL |
6542 | no_cache=0 |
6543 | # Check whether --enable-metafile or --disable-metafile was given. | |
6544 | if test "${enable_metafile+set}" = set; then | |
6545 | enableval="$enable_metafile" | |
e6cc62c6 | 6546 | |
b64f0a5f RL |
6547 | if test "$enableval" = yes; then |
6548 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6549 | else | |
6550 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6551 | fi | |
e6cc62c6 | 6552 | |
b64f0a5f | 6553 | else |
e6cc62c6 | 6554 | |
b64f0a5f RL |
6555 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
6556 | if test "x$LINE" != x ; then | |
6557 | eval "DEFAULT_$LINE" | |
6558 | else | |
6559 | no_cache=1 | |
6560 | fi | |
6561 | ||
6562 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
b64f0a5f | 6563 | |
e6cc62c6 | 6564 | fi; |
b64f0a5f RL |
6565 | |
6566 | eval "$ac_cv_use_metafile" | |
6567 | if test "$no_cache" != 1; then | |
6568 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6569 | fi | |
6570 | ||
6571 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
6572 | echo "$as_me:$LINENO: result: yes" >&5 |
6573 | echo "${ECHO_T}yes" >&6 | |
b64f0a5f | 6574 | else |
e6cc62c6 VS |
6575 | echo "$as_me:$LINENO: result: no" >&5 |
6576 | echo "${ECHO_T}no" >&6 | |
b64f0a5f | 6577 | fi |
e6cc62c6 | 6578 | |
52127426 | 6579 | |
8284b0c5 | 6580 | |
52127426 | 6581 | |
8284b0c5 | 6582 | |
5005acfe | 6583 | enablestring= |
e6cc62c6 VS |
6584 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 |
6585 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
10f2d63a VZ |
6586 | no_cache=0 |
6587 | # Check whether --enable-controls or --disable-controls was given. | |
6588 | if test "${enable_controls+set}" = set; then | |
6589 | enableval="$enable_controls" | |
e6cc62c6 | 6590 | |
10f2d63a VZ |
6591 | if test "$enableval" = yes; then |
6592 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6593 | else | |
6594 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6595 | fi | |
e6cc62c6 | 6596 | |
10f2d63a | 6597 | else |
e6cc62c6 | 6598 | |
10f2d63a VZ |
6599 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` |
6600 | if test "x$LINE" != x ; then | |
6601 | eval "DEFAULT_$LINE" | |
6602 | else | |
6603 | no_cache=1 | |
6604 | fi | |
6605 | ||
6606 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
10f2d63a | 6607 | |
e6cc62c6 | 6608 | fi; |
10f2d63a VZ |
6609 | |
6610 | eval "$ac_cv_use_controls" | |
6611 | if test "$no_cache" != 1; then | |
6612 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6613 | fi | |
6614 | ||
6615 | if test "$wxUSE_CONTROLS" = yes; then | |
e6cc62c6 VS |
6616 | echo "$as_me:$LINENO: result: yes" >&5 |
6617 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6618 | else |
e6cc62c6 VS |
6619 | echo "$as_me:$LINENO: result: no" >&5 |
6620 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6621 | fi |
e6cc62c6 | 6622 | |
10f2d63a VZ |
6623 | |
6624 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6625 | DEFAULT_wxUSE_ACCEL=yes | |
1e6feb95 VZ |
6626 | DEFAULT_wxUSE_BMPBUTTON=yes |
6627 | DEFAULT_wxUSE_BUTTON=yes | |
6628 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6629 | DEFAULT_wxUSE_CARET=yes |
6630 | DEFAULT_wxUSE_COMBOBOX=yes | |
10f2d63a VZ |
6631 | DEFAULT_wxUSE_CHECKBOX=yes |
6632 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6633 | DEFAULT_wxUSE_CHOICE=yes | |
6634 | DEFAULT_wxUSE_GAUGE=yes | |
6635 | DEFAULT_wxUSE_GRID=yes | |
10f2d63a | 6636 | DEFAULT_wxUSE_IMAGLIST=yes |
0e012a93 | 6637 | DEFAULT_wxUSE_LISTBOOK=yes |
10f2d63a VZ |
6638 | DEFAULT_wxUSE_LISTBOX=yes |
6639 | DEFAULT_wxUSE_LISTCTRL=yes | |
6640 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6641 | DEFAULT_wxUSE_RADIOBOX=yes | |
6642 | DEFAULT_wxUSE_RADIOBTN=yes | |
6643 | DEFAULT_wxUSE_SASH=yes | |
6644 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6645 | DEFAULT_wxUSE_SLIDER=yes | |
6646 | DEFAULT_wxUSE_SPINBTN=yes | |
56cfaa52 | 6647 | DEFAULT_wxUSE_SPINCTRL=yes |
10f2d63a VZ |
6648 | DEFAULT_wxUSE_SPLITTER=yes |
6649 | DEFAULT_wxUSE_STATBMP=yes | |
6650 | DEFAULT_wxUSE_STATBOX=yes | |
6651 | DEFAULT_wxUSE_STATLINE=yes | |
6652 | DEFAULT_wxUSE_STATUSBAR=yes | |
6653 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
1db8dc4a | 6654 | DEFAULT_wxUSE_TOGGLEBTN=yes |
10f2d63a | 6655 | DEFAULT_wxUSE_TOOLBAR=yes |
360d6699 VZ |
6656 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes |
6657 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
10f2d63a VZ |
6658 | DEFAULT_wxUSE_TOOLTIPS=yes |
6659 | DEFAULT_wxUSE_TREECTRL=yes | |
9f41d601 | 6660 | DEFAULT_wxUSE_POPUPWIN=yes |
9926e4a4 | 6661 | DEFAULT_wxUSE_TIPWINDOW=yes |
10f2d63a VZ |
6662 | elif test "$wxUSE_CONTROLS" = "no"; then |
6663 | DEFAULT_wxUSE_ACCEL=no | |
1e6feb95 VZ |
6664 | DEFAULT_wxUSE_BMPBUTTON=no |
6665 | DEFAULT_wxUSE_BUTTON=no | |
6666 | DEFAULT_wxUSE_CALCTRL=no | |
10f2d63a VZ |
6667 | DEFAULT_wxUSE_CARET=no |
6668 | DEFAULT_wxUSE_COMBOBOX=no | |
10f2d63a VZ |
6669 | DEFAULT_wxUSE_CHECKBOX=no |
6670 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6671 | DEFAULT_wxUSE_CHOICE=no | |
6672 | DEFAULT_wxUSE_GAUGE=no | |
6673 | DEFAULT_wxUSE_GRID=no | |
10f2d63a | 6674 | DEFAULT_wxUSE_IMAGLIST=no |
0e012a93 | 6675 | DEFAULT_wxUSE_LISTBOOK=no |
10f2d63a VZ |
6676 | DEFAULT_wxUSE_LISTBOX=no |
6677 | DEFAULT_wxUSE_LISTCTRL=no | |
6678 | DEFAULT_wxUSE_NOTEBOOK=no | |
6679 | DEFAULT_wxUSE_RADIOBOX=no | |
6680 | DEFAULT_wxUSE_RADIOBTN=no | |
6681 | DEFAULT_wxUSE_SASH=no | |
6682 | DEFAULT_wxUSE_SCROLLBAR=no | |
6683 | DEFAULT_wxUSE_SLIDER=no | |
6684 | DEFAULT_wxUSE_SPINBTN=no | |
56cfaa52 | 6685 | DEFAULT_wxUSE_SPINCTRL=no |
10f2d63a VZ |
6686 | DEFAULT_wxUSE_SPLITTER=no |
6687 | DEFAULT_wxUSE_STATBMP=no | |
6688 | DEFAULT_wxUSE_STATBOX=no | |
6689 | DEFAULT_wxUSE_STATLINE=no | |
6690 | DEFAULT_wxUSE_STATUSBAR=no | |
6691 | DEFAULT_wxUSE_TAB_DIALOG=no | |
1db8dc4a | 6692 | DEFAULT_wxUSE_TOGGLEBTN=no |
10f2d63a | 6693 | DEFAULT_wxUSE_TOOLBAR=no |
360d6699 VZ |
6694 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no |
6695 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
10f2d63a VZ |
6696 | DEFAULT_wxUSE_TOOLTIPS=no |
6697 | DEFAULT_wxUSE_TREECTRL=no | |
9f41d601 | 6698 | DEFAULT_wxUSE_POPUPWIN=no |
9926e4a4 | 6699 | DEFAULT_wxUSE_TIPWINDOW=no |
10f2d63a VZ |
6700 | fi |
6701 | ||
ac0c4cc3 DE |
6702 | ## FIXME: This is a blatant hack |
6703 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6704 | wxUSE_PRINTING_ARCHITECTURE=no | |
ac0c4cc3 | 6705 | wxUSE_DRAG_AND_DROP=no |
8b389fab DE |
6706 | # Generic notebook requires tab dialog |
6707 | DEFAULT_wxUSE_TABDIALOG=yes | |
ac0c4cc3 | 6708 | DEFAULT_wxUSE_SCROLLBAR=no |
ac0c4cc3 | 6709 | DEFAULT_wxUSE_TOOLTIPS=no |
ac0c4cc3 | 6710 | DEFAULT_wxUSE_DRAGIMAGE=no |
ac0c4cc3 DE |
6711 | fi |
6712 | ||
8284b0c5 | 6713 | |
5005acfe | 6714 | enablestring= |
e6cc62c6 VS |
6715 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 |
6716 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
10f2d63a VZ |
6717 | no_cache=0 |
6718 | # Check whether --enable-accel or --disable-accel was given. | |
6719 | if test "${enable_accel+set}" = set; then | |
6720 | enableval="$enable_accel" | |
e6cc62c6 | 6721 | |
10f2d63a VZ |
6722 | if test "$enableval" = yes; then |
6723 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6724 | else | |
6725 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6726 | fi | |
e6cc62c6 | 6727 | |
10f2d63a | 6728 | else |
e6cc62c6 | 6729 | |
10f2d63a VZ |
6730 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` |
6731 | if test "x$LINE" != x ; then | |
6732 | eval "DEFAULT_$LINE" | |
6733 | else | |
6734 | no_cache=1 | |
6735 | fi | |
6736 | ||
6737 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
10f2d63a | 6738 | |
e6cc62c6 | 6739 | fi; |
10f2d63a VZ |
6740 | |
6741 | eval "$ac_cv_use_accel" | |
6742 | if test "$no_cache" != 1; then | |
6743 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6744 | fi | |
6745 | ||
6746 | if test "$wxUSE_ACCEL" = yes; then | |
e6cc62c6 VS |
6747 | echo "$as_me:$LINENO: result: yes" >&5 |
6748 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6749 | else |
e6cc62c6 VS |
6750 | echo "$as_me:$LINENO: result: no" >&5 |
6751 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6752 | fi |
e6cc62c6 | 6753 | |
10f2d63a | 6754 | |
5005acfe | 6755 | enablestring= |
e6cc62c6 VS |
6756 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 |
6757 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
10f2d63a | 6758 | no_cache=0 |
1e6feb95 VZ |
6759 | # Check whether --enable-button or --disable-button was given. |
6760 | if test "${enable_button+set}" = set; then | |
6761 | enableval="$enable_button" | |
e6cc62c6 | 6762 | |
10f2d63a | 6763 | if test "$enableval" = yes; then |
1e6feb95 | 6764 | ac_cv_use_button='wxUSE_BUTTON=yes' |
10f2d63a | 6765 | else |
1e6feb95 | 6766 | ac_cv_use_button='wxUSE_BUTTON=no' |
10f2d63a | 6767 | fi |
e6cc62c6 | 6768 | |
10f2d63a | 6769 | else |
e6cc62c6 | 6770 | |
1e6feb95 | 6771 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` |
10f2d63a VZ |
6772 | if test "x$LINE" != x ; then |
6773 | eval "DEFAULT_$LINE" | |
6774 | else | |
6775 | no_cache=1 | |
6776 | fi | |
6777 | ||
1e6feb95 | 6778 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON |
10f2d63a | 6779 | |
e6cc62c6 | 6780 | fi; |
10f2d63a | 6781 | |
1e6feb95 | 6782 | eval "$ac_cv_use_button" |
10f2d63a | 6783 | if test "$no_cache" != 1; then |
1e6feb95 | 6784 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
6785 | fi |
6786 | ||
1e6feb95 | 6787 | if test "$wxUSE_BUTTON" = yes; then |
e6cc62c6 VS |
6788 | echo "$as_me:$LINENO: result: yes" >&5 |
6789 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6790 | else |
e6cc62c6 VS |
6791 | echo "$as_me:$LINENO: result: no" >&5 |
6792 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6793 | fi |
e6cc62c6 | 6794 | |
10f2d63a | 6795 | |
5005acfe | 6796 | enablestring= |
e6cc62c6 VS |
6797 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 |
6798 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
10f2d63a VZ |
6799 | no_cache=0 |
6800 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6801 | if test "${enable_bmpbutton+set}" = set; then | |
6802 | enableval="$enable_bmpbutton" | |
e6cc62c6 | 6803 | |
10f2d63a VZ |
6804 | if test "$enableval" = yes; then |
6805 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6806 | else | |
6807 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6808 | fi | |
e6cc62c6 | 6809 | |
10f2d63a | 6810 | else |
e6cc62c6 | 6811 | |
10f2d63a VZ |
6812 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` |
6813 | if test "x$LINE" != x ; then | |
6814 | eval "DEFAULT_$LINE" | |
6815 | else | |
6816 | no_cache=1 | |
6817 | fi | |
6818 | ||
6819 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
10f2d63a | 6820 | |
e6cc62c6 | 6821 | fi; |
10f2d63a VZ |
6822 | |
6823 | eval "$ac_cv_use_bmpbutton" | |
6824 | if test "$no_cache" != 1; then | |
6825 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
6826 | fi | |
6827 | ||
6828 | if test "$wxUSE_BMPBUTTON" = yes; then | |
e6cc62c6 VS |
6829 | echo "$as_me:$LINENO: result: yes" >&5 |
6830 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6831 | else |
e6cc62c6 VS |
6832 | echo "$as_me:$LINENO: result: no" >&5 |
6833 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6834 | fi |
e6cc62c6 | 6835 | |
10f2d63a | 6836 | |
5005acfe | 6837 | enablestring= |
e6cc62c6 VS |
6838 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 |
6839 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
1e6feb95 VZ |
6840 | no_cache=0 |
6841 | # Check whether --enable-calendar or --disable-calendar was given. | |
6842 | if test "${enable_calendar+set}" = set; then | |
6843 | enableval="$enable_calendar" | |
e6cc62c6 | 6844 | |
1e6feb95 VZ |
6845 | if test "$enableval" = yes; then |
6846 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
6847 | else | |
6848 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
6849 | fi | |
e6cc62c6 | 6850 | |
1e6feb95 | 6851 | else |
e6cc62c6 | 6852 | |
1e6feb95 VZ |
6853 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` |
6854 | if test "x$LINE" != x ; then | |
6855 | eval "DEFAULT_$LINE" | |
6856 | else | |
6857 | no_cache=1 | |
6858 | fi | |
6859 | ||
6860 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
1e6feb95 | 6861 | |
e6cc62c6 | 6862 | fi; |
1e6feb95 VZ |
6863 | |
6864 | eval "$ac_cv_use_calendar" | |
6865 | if test "$no_cache" != 1; then | |
6866 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
6867 | fi | |
6868 | ||
6869 | if test "$wxUSE_CALCTRL" = yes; then | |
e6cc62c6 VS |
6870 | echo "$as_me:$LINENO: result: yes" >&5 |
6871 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6872 | else |
e6cc62c6 VS |
6873 | echo "$as_me:$LINENO: result: no" >&5 |
6874 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6875 | fi |
e6cc62c6 | 6876 | |
1e6feb95 | 6877 | |
5005acfe | 6878 | enablestring= |
e6cc62c6 VS |
6879 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 |
6880 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
1e6feb95 VZ |
6881 | no_cache=0 |
6882 | # Check whether --enable-caret or --disable-caret was given. | |
6883 | if test "${enable_caret+set}" = set; then | |
6884 | enableval="$enable_caret" | |
e6cc62c6 | 6885 | |
1e6feb95 VZ |
6886 | if test "$enableval" = yes; then |
6887 | ac_cv_use_caret='wxUSE_CARET=yes' | |
6888 | else | |
6889 | ac_cv_use_caret='wxUSE_CARET=no' | |
6890 | fi | |
e6cc62c6 | 6891 | |
1e6feb95 | 6892 | else |
e6cc62c6 | 6893 | |
1e6feb95 VZ |
6894 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` |
6895 | if test "x$LINE" != x ; then | |
6896 | eval "DEFAULT_$LINE" | |
6897 | else | |
6898 | no_cache=1 | |
6899 | fi | |
6900 | ||
6901 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
1e6feb95 | 6902 | |
e6cc62c6 | 6903 | fi; |
1e6feb95 VZ |
6904 | |
6905 | eval "$ac_cv_use_caret" | |
6906 | if test "$no_cache" != 1; then | |
6907 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
6908 | fi | |
6909 | ||
6910 | if test "$wxUSE_CARET" = yes; then | |
e6cc62c6 VS |
6911 | echo "$as_me:$LINENO: result: yes" >&5 |
6912 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 6913 | else |
e6cc62c6 VS |
6914 | echo "$as_me:$LINENO: result: no" >&5 |
6915 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 6916 | fi |
e6cc62c6 | 6917 | |
1e6feb95 | 6918 | |
5005acfe | 6919 | enablestring= |
e6cc62c6 VS |
6920 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 |
6921 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
10f2d63a VZ |
6922 | no_cache=0 |
6923 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
6924 | if test "${enable_checkbox+set}" = set; then | |
6925 | enableval="$enable_checkbox" | |
e6cc62c6 | 6926 | |
10f2d63a VZ |
6927 | if test "$enableval" = yes; then |
6928 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
6929 | else | |
6930 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
6931 | fi | |
e6cc62c6 | 6932 | |
10f2d63a | 6933 | else |
e6cc62c6 | 6934 | |
10f2d63a VZ |
6935 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` |
6936 | if test "x$LINE" != x ; then | |
6937 | eval "DEFAULT_$LINE" | |
6938 | else | |
6939 | no_cache=1 | |
6940 | fi | |
6941 | ||
6942 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
10f2d63a | 6943 | |
e6cc62c6 | 6944 | fi; |
10f2d63a VZ |
6945 | |
6946 | eval "$ac_cv_use_checkbox" | |
6947 | if test "$no_cache" != 1; then | |
6948 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
6949 | fi | |
6950 | ||
6951 | if test "$wxUSE_CHECKBOX" = yes; then | |
e6cc62c6 VS |
6952 | echo "$as_me:$LINENO: result: yes" >&5 |
6953 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6954 | else |
e6cc62c6 VS |
6955 | echo "$as_me:$LINENO: result: no" >&5 |
6956 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6957 | fi |
e6cc62c6 | 6958 | |
10f2d63a | 6959 | |
5005acfe | 6960 | enablestring= |
e6cc62c6 VS |
6961 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 |
6962 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
10f2d63a VZ |
6963 | no_cache=0 |
6964 | # Check whether --enable-checklst or --disable-checklst was given. | |
6965 | if test "${enable_checklst+set}" = set; then | |
6966 | enableval="$enable_checklst" | |
e6cc62c6 | 6967 | |
10f2d63a VZ |
6968 | if test "$enableval" = yes; then |
6969 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
6970 | else | |
6971 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
6972 | fi | |
e6cc62c6 | 6973 | |
10f2d63a | 6974 | else |
e6cc62c6 | 6975 | |
10f2d63a VZ |
6976 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` |
6977 | if test "x$LINE" != x ; then | |
6978 | eval "DEFAULT_$LINE" | |
6979 | else | |
6980 | no_cache=1 | |
6981 | fi | |
6982 | ||
6983 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
10f2d63a | 6984 | |
e6cc62c6 | 6985 | fi; |
10f2d63a VZ |
6986 | |
6987 | eval "$ac_cv_use_checklst" | |
6988 | if test "$no_cache" != 1; then | |
6989 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
6990 | fi | |
6991 | ||
6992 | if test "$wxUSE_CHECKLST" = yes; then | |
e6cc62c6 VS |
6993 | echo "$as_me:$LINENO: result: yes" >&5 |
6994 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 6995 | else |
e6cc62c6 VS |
6996 | echo "$as_me:$LINENO: result: no" >&5 |
6997 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 6998 | fi |
e6cc62c6 | 6999 | |
10f2d63a | 7000 | |
5005acfe | 7001 | enablestring= |
e6cc62c6 VS |
7002 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 |
7003 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
10f2d63a VZ |
7004 | no_cache=0 |
7005 | # Check whether --enable-choice or --disable-choice was given. | |
7006 | if test "${enable_choice+set}" = set; then | |
7007 | enableval="$enable_choice" | |
e6cc62c6 | 7008 | |
10f2d63a VZ |
7009 | if test "$enableval" = yes; then |
7010 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7011 | else | |
7012 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7013 | fi | |
e6cc62c6 | 7014 | |
10f2d63a | 7015 | else |
e6cc62c6 | 7016 | |
10f2d63a VZ |
7017 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` |
7018 | if test "x$LINE" != x ; then | |
7019 | eval "DEFAULT_$LINE" | |
7020 | else | |
7021 | no_cache=1 | |
7022 | fi | |
7023 | ||
7024 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
10f2d63a | 7025 | |
e6cc62c6 | 7026 | fi; |
10f2d63a VZ |
7027 | |
7028 | eval "$ac_cv_use_choice" | |
7029 | if test "$no_cache" != 1; then | |
7030 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7031 | fi | |
7032 | ||
7033 | if test "$wxUSE_CHOICE" = yes; then | |
e6cc62c6 VS |
7034 | echo "$as_me:$LINENO: result: yes" >&5 |
7035 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7036 | else |
e6cc62c6 VS |
7037 | echo "$as_me:$LINENO: result: no" >&5 |
7038 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7039 | fi |
e6cc62c6 | 7040 | |
10f2d63a | 7041 | |
5005acfe | 7042 | enablestring= |
e6cc62c6 VS |
7043 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 |
7044 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7045 | no_cache=0 |
7046 | # Check whether --enable-combobox or --disable-combobox was given. | |
7047 | if test "${enable_combobox+set}" = set; then | |
7048 | enableval="$enable_combobox" | |
e6cc62c6 | 7049 | |
10f2d63a VZ |
7050 | if test "$enableval" = yes; then |
7051 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7052 | else | |
7053 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7054 | fi | |
e6cc62c6 | 7055 | |
10f2d63a | 7056 | else |
e6cc62c6 | 7057 | |
10f2d63a VZ |
7058 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` |
7059 | if test "x$LINE" != x ; then | |
7060 | eval "DEFAULT_$LINE" | |
7061 | else | |
7062 | no_cache=1 | |
7063 | fi | |
7064 | ||
7065 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
10f2d63a | 7066 | |
e6cc62c6 | 7067 | fi; |
10f2d63a VZ |
7068 | |
7069 | eval "$ac_cv_use_combobox" | |
7070 | if test "$no_cache" != 1; then | |
7071 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7072 | fi | |
7073 | ||
7074 | if test "$wxUSE_COMBOBOX" = yes; then | |
e6cc62c6 VS |
7075 | echo "$as_me:$LINENO: result: yes" >&5 |
7076 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7077 | else |
e6cc62c6 VS |
7078 | echo "$as_me:$LINENO: result: no" >&5 |
7079 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7080 | fi |
e6cc62c6 | 7081 | |
10f2d63a | 7082 | |
da494b40 | 7083 | enablestring= |
e6cc62c6 VS |
7084 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 |
7085 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
da494b40 MB |
7086 | no_cache=0 |
7087 | # Check whether --enable-display or --disable-display was given. | |
7088 | if test "${enable_display+set}" = set; then | |
7089 | enableval="$enable_display" | |
e6cc62c6 | 7090 | |
da494b40 MB |
7091 | if test "$enableval" = yes; then |
7092 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7093 | else | |
7094 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7095 | fi | |
e6cc62c6 | 7096 | |
da494b40 | 7097 | else |
e6cc62c6 | 7098 | |
da494b40 MB |
7099 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` |
7100 | if test "x$LINE" != x ; then | |
7101 | eval "DEFAULT_$LINE" | |
7102 | else | |
7103 | no_cache=1 | |
7104 | fi | |
7105 | ||
7106 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
da494b40 | 7107 | |
e6cc62c6 | 7108 | fi; |
da494b40 MB |
7109 | |
7110 | eval "$ac_cv_use_display" | |
7111 | if test "$no_cache" != 1; then | |
7112 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7113 | fi | |
7114 | ||
7115 | if test "$wxUSE_DISPLAY" = yes; then | |
e6cc62c6 VS |
7116 | echo "$as_me:$LINENO: result: yes" >&5 |
7117 | echo "${ECHO_T}yes" >&6 | |
da494b40 | 7118 | else |
e6cc62c6 VS |
7119 | echo "$as_me:$LINENO: result: no" >&5 |
7120 | echo "${ECHO_T}no" >&6 | |
da494b40 | 7121 | fi |
e6cc62c6 | 7122 | |
da494b40 | 7123 | |
5005acfe | 7124 | enablestring= |
e6cc62c6 VS |
7125 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 |
7126 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
10f2d63a VZ |
7127 | no_cache=0 |
7128 | # Check whether --enable-gauge or --disable-gauge was given. | |
7129 | if test "${enable_gauge+set}" = set; then | |
7130 | enableval="$enable_gauge" | |
e6cc62c6 | 7131 | |
10f2d63a VZ |
7132 | if test "$enableval" = yes; then |
7133 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7134 | else | |
7135 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7136 | fi | |
e6cc62c6 | 7137 | |
10f2d63a | 7138 | else |
e6cc62c6 | 7139 | |
10f2d63a VZ |
7140 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` |
7141 | if test "x$LINE" != x ; then | |
7142 | eval "DEFAULT_$LINE" | |
7143 | else | |
7144 | no_cache=1 | |
7145 | fi | |
7146 | ||
7147 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
10f2d63a | 7148 | |
e6cc62c6 | 7149 | fi; |
10f2d63a VZ |
7150 | |
7151 | eval "$ac_cv_use_gauge" | |
7152 | if test "$no_cache" != 1; then | |
7153 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7154 | fi | |
7155 | ||
7156 | if test "$wxUSE_GAUGE" = yes; then | |
e6cc62c6 VS |
7157 | echo "$as_me:$LINENO: result: yes" >&5 |
7158 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7159 | else |
e6cc62c6 VS |
7160 | echo "$as_me:$LINENO: result: no" >&5 |
7161 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7162 | fi |
e6cc62c6 | 7163 | |
10f2d63a | 7164 | |
5005acfe | 7165 | enablestring= |
e6cc62c6 VS |
7166 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 |
7167 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
10f2d63a VZ |
7168 | no_cache=0 |
7169 | # Check whether --enable-grid or --disable-grid was given. | |
7170 | if test "${enable_grid+set}" = set; then | |
7171 | enableval="$enable_grid" | |
e6cc62c6 | 7172 | |
10f2d63a VZ |
7173 | if test "$enableval" = yes; then |
7174 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7175 | else | |
7176 | ac_cv_use_grid='wxUSE_GRID=no' | |
7177 | fi | |
e6cc62c6 | 7178 | |
10f2d63a | 7179 | else |
e6cc62c6 | 7180 | |
10f2d63a VZ |
7181 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` |
7182 | if test "x$LINE" != x ; then | |
7183 | eval "DEFAULT_$LINE" | |
7184 | else | |
7185 | no_cache=1 | |
7186 | fi | |
7187 | ||
7188 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
10f2d63a | 7189 | |
e6cc62c6 | 7190 | fi; |
10f2d63a VZ |
7191 | |
7192 | eval "$ac_cv_use_grid" | |
7193 | if test "$no_cache" != 1; then | |
7194 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7195 | fi | |
7196 | ||
7197 | if test "$wxUSE_GRID" = yes; then | |
e6cc62c6 VS |
7198 | echo "$as_me:$LINENO: result: yes" >&5 |
7199 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7200 | else |
e6cc62c6 VS |
7201 | echo "$as_me:$LINENO: result: no" >&5 |
7202 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7203 | fi |
e6cc62c6 | 7204 | |
10f2d63a | 7205 | |
5005acfe | 7206 | enablestring= |
e6cc62c6 VS |
7207 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 |
7208 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
10f2d63a VZ |
7209 | no_cache=0 |
7210 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7211 | if test "${enable_imaglist+set}" = set; then | |
7212 | enableval="$enable_imaglist" | |
e6cc62c6 | 7213 | |
10f2d63a VZ |
7214 | if test "$enableval" = yes; then |
7215 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7216 | else | |
7217 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7218 | fi | |
e6cc62c6 | 7219 | |
10f2d63a | 7220 | else |
e6cc62c6 | 7221 | |
10f2d63a VZ |
7222 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` |
7223 | if test "x$LINE" != x ; then | |
7224 | eval "DEFAULT_$LINE" | |
7225 | else | |
7226 | no_cache=1 | |
7227 | fi | |
7228 | ||
7229 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
10f2d63a | 7230 | |
e6cc62c6 | 7231 | fi; |
10f2d63a VZ |
7232 | |
7233 | eval "$ac_cv_use_imaglist" | |
7234 | if test "$no_cache" != 1; then | |
7235 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7236 | fi | |
7237 | ||
7238 | if test "$wxUSE_IMAGLIST" = yes; then | |
e6cc62c6 VS |
7239 | echo "$as_me:$LINENO: result: yes" >&5 |
7240 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7241 | else |
e6cc62c6 VS |
7242 | echo "$as_me:$LINENO: result: no" >&5 |
7243 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7244 | fi |
e6cc62c6 | 7245 | |
10f2d63a | 7246 | |
0e012a93 VZ |
7247 | enablestring= |
7248 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7249 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7250 | no_cache=0 | |
7251 | # Check whether --enable-listbook or --disable-listbook was given. | |
7252 | if test "${enable_listbook+set}" = set; then | |
7253 | enableval="$enable_listbook" | |
7254 | ||
7255 | if test "$enableval" = yes; then | |
7256 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7257 | else | |
7258 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7259 | fi | |
7260 | ||
7261 | else | |
7262 | ||
7263 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7264 | if test "x$LINE" != x ; then | |
7265 | eval "DEFAULT_$LINE" | |
7266 | else | |
7267 | no_cache=1 | |
7268 | fi | |
7269 | ||
7270 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7271 | ||
7272 | fi; | |
7273 | ||
7274 | eval "$ac_cv_use_listbook" | |
7275 | if test "$no_cache" != 1; then | |
7276 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7277 | fi | |
7278 | ||
7279 | if test "$wxUSE_LISTBOOK" = yes; then | |
7280 | echo "$as_me:$LINENO: result: yes" >&5 | |
7281 | echo "${ECHO_T}yes" >&6 | |
7282 | else | |
7283 | echo "$as_me:$LINENO: result: no" >&5 | |
7284 | echo "${ECHO_T}no" >&6 | |
7285 | fi | |
7286 | ||
7287 | ||
5005acfe | 7288 | enablestring= |
e6cc62c6 VS |
7289 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 |
7290 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7291 | no_cache=0 |
7292 | # Check whether --enable-listbox or --disable-listbox was given. | |
7293 | if test "${enable_listbox+set}" = set; then | |
7294 | enableval="$enable_listbox" | |
e6cc62c6 | 7295 | |
10f2d63a VZ |
7296 | if test "$enableval" = yes; then |
7297 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7298 | else | |
7299 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7300 | fi | |
e6cc62c6 | 7301 | |
10f2d63a | 7302 | else |
e6cc62c6 | 7303 | |
10f2d63a VZ |
7304 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` |
7305 | if test "x$LINE" != x ; then | |
7306 | eval "DEFAULT_$LINE" | |
7307 | else | |
7308 | no_cache=1 | |
7309 | fi | |
7310 | ||
7311 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
10f2d63a | 7312 | |
e6cc62c6 | 7313 | fi; |
10f2d63a VZ |
7314 | |
7315 | eval "$ac_cv_use_listbox" | |
7316 | if test "$no_cache" != 1; then | |
7317 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7318 | fi | |
7319 | ||
7320 | if test "$wxUSE_LISTBOX" = yes; then | |
e6cc62c6 VS |
7321 | echo "$as_me:$LINENO: result: yes" >&5 |
7322 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7323 | else |
e6cc62c6 VS |
7324 | echo "$as_me:$LINENO: result: no" >&5 |
7325 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7326 | fi |
e6cc62c6 | 7327 | |
10f2d63a | 7328 | |
5005acfe | 7329 | enablestring= |
e6cc62c6 VS |
7330 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 |
7331 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
10f2d63a VZ |
7332 | no_cache=0 |
7333 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7334 | if test "${enable_listctrl+set}" = set; then | |
7335 | enableval="$enable_listctrl" | |
e6cc62c6 | 7336 | |
10f2d63a VZ |
7337 | if test "$enableval" = yes; then |
7338 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7339 | else | |
7340 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7341 | fi | |
e6cc62c6 | 7342 | |
10f2d63a | 7343 | else |
e6cc62c6 | 7344 | |
10f2d63a VZ |
7345 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` |
7346 | if test "x$LINE" != x ; then | |
7347 | eval "DEFAULT_$LINE" | |
7348 | else | |
7349 | no_cache=1 | |
7350 | fi | |
7351 | ||
7352 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
10f2d63a | 7353 | |
e6cc62c6 | 7354 | fi; |
10f2d63a VZ |
7355 | |
7356 | eval "$ac_cv_use_listctrl" | |
7357 | if test "$no_cache" != 1; then | |
7358 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7359 | fi | |
7360 | ||
7361 | if test "$wxUSE_LISTCTRL" = yes; then | |
e6cc62c6 VS |
7362 | echo "$as_me:$LINENO: result: yes" >&5 |
7363 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7364 | else |
e6cc62c6 VS |
7365 | echo "$as_me:$LINENO: result: no" >&5 |
7366 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7367 | fi |
e6cc62c6 | 7368 | |
10f2d63a | 7369 | |
5005acfe | 7370 | enablestring= |
e6cc62c6 VS |
7371 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 |
7372 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
10f2d63a VZ |
7373 | no_cache=0 |
7374 | # Check whether --enable-notebook or --disable-notebook was given. | |
7375 | if test "${enable_notebook+set}" = set; then | |
7376 | enableval="$enable_notebook" | |
e6cc62c6 | 7377 | |
10f2d63a VZ |
7378 | if test "$enableval" = yes; then |
7379 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7380 | else | |
7381 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7382 | fi | |
e6cc62c6 | 7383 | |
10f2d63a | 7384 | else |
e6cc62c6 | 7385 | |
10f2d63a VZ |
7386 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` |
7387 | if test "x$LINE" != x ; then | |
7388 | eval "DEFAULT_$LINE" | |
7389 | else | |
7390 | no_cache=1 | |
7391 | fi | |
7392 | ||
7393 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
10f2d63a | 7394 | |
e6cc62c6 | 7395 | fi; |
10f2d63a VZ |
7396 | |
7397 | eval "$ac_cv_use_notebook" | |
7398 | if test "$no_cache" != 1; then | |
7399 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7400 | fi | |
7401 | ||
7402 | if test "$wxUSE_NOTEBOOK" = yes; then | |
e6cc62c6 VS |
7403 | echo "$as_me:$LINENO: result: yes" >&5 |
7404 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7405 | else |
e6cc62c6 VS |
7406 | echo "$as_me:$LINENO: result: no" >&5 |
7407 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7408 | fi |
e6cc62c6 | 7409 | |
10f2d63a | 7410 | |
5005acfe | 7411 | enablestring= |
e6cc62c6 VS |
7412 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 |
7413 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
10f2d63a VZ |
7414 | no_cache=0 |
7415 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7416 | if test "${enable_radiobox+set}" = set; then | |
7417 | enableval="$enable_radiobox" | |
e6cc62c6 | 7418 | |
10f2d63a VZ |
7419 | if test "$enableval" = yes; then |
7420 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7421 | else | |
7422 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7423 | fi | |
e6cc62c6 | 7424 | |
10f2d63a | 7425 | else |
e6cc62c6 | 7426 | |
10f2d63a VZ |
7427 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` |
7428 | if test "x$LINE" != x ; then | |
7429 | eval "DEFAULT_$LINE" | |
7430 | else | |
7431 | no_cache=1 | |
7432 | fi | |
7433 | ||
7434 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
10f2d63a | 7435 | |
e6cc62c6 | 7436 | fi; |
10f2d63a VZ |
7437 | |
7438 | eval "$ac_cv_use_radiobox" | |
7439 | if test "$no_cache" != 1; then | |
7440 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7441 | fi | |
7442 | ||
7443 | if test "$wxUSE_RADIOBOX" = yes; then | |
e6cc62c6 VS |
7444 | echo "$as_me:$LINENO: result: yes" >&5 |
7445 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7446 | else |
e6cc62c6 VS |
7447 | echo "$as_me:$LINENO: result: no" >&5 |
7448 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7449 | fi |
e6cc62c6 | 7450 | |
10f2d63a | 7451 | |
5005acfe | 7452 | enablestring= |
e6cc62c6 VS |
7453 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 |
7454 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7455 | no_cache=0 |
7456 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7457 | if test "${enable_radiobtn+set}" = set; then | |
7458 | enableval="$enable_radiobtn" | |
e6cc62c6 | 7459 | |
10f2d63a VZ |
7460 | if test "$enableval" = yes; then |
7461 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7462 | else | |
7463 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7464 | fi | |
e6cc62c6 | 7465 | |
10f2d63a | 7466 | else |
e6cc62c6 | 7467 | |
10f2d63a VZ |
7468 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` |
7469 | if test "x$LINE" != x ; then | |
7470 | eval "DEFAULT_$LINE" | |
7471 | else | |
7472 | no_cache=1 | |
7473 | fi | |
7474 | ||
7475 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
10f2d63a | 7476 | |
e6cc62c6 | 7477 | fi; |
10f2d63a VZ |
7478 | |
7479 | eval "$ac_cv_use_radiobtn" | |
7480 | if test "$no_cache" != 1; then | |
7481 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7482 | fi | |
7483 | ||
7484 | if test "$wxUSE_RADIOBTN" = yes; then | |
e6cc62c6 VS |
7485 | echo "$as_me:$LINENO: result: yes" >&5 |
7486 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7487 | else |
e6cc62c6 VS |
7488 | echo "$as_me:$LINENO: result: no" >&5 |
7489 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7490 | fi |
e6cc62c6 | 7491 | |
10f2d63a | 7492 | |
5005acfe | 7493 | enablestring= |
e6cc62c6 VS |
7494 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 |
7495 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
10f2d63a VZ |
7496 | no_cache=0 |
7497 | # Check whether --enable-sash or --disable-sash was given. | |
7498 | if test "${enable_sash+set}" = set; then | |
7499 | enableval="$enable_sash" | |
e6cc62c6 | 7500 | |
10f2d63a VZ |
7501 | if test "$enableval" = yes; then |
7502 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7503 | else | |
7504 | ac_cv_use_sash='wxUSE_SASH=no' | |
7505 | fi | |
e6cc62c6 | 7506 | |
10f2d63a | 7507 | else |
e6cc62c6 | 7508 | |
10f2d63a VZ |
7509 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` |
7510 | if test "x$LINE" != x ; then | |
7511 | eval "DEFAULT_$LINE" | |
7512 | else | |
7513 | no_cache=1 | |
7514 | fi | |
7515 | ||
7516 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
10f2d63a | 7517 | |
e6cc62c6 | 7518 | fi; |
10f2d63a VZ |
7519 | |
7520 | eval "$ac_cv_use_sash" | |
7521 | if test "$no_cache" != 1; then | |
7522 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7523 | fi | |
7524 | ||
7525 | if test "$wxUSE_SASH" = yes; then | |
e6cc62c6 VS |
7526 | echo "$as_me:$LINENO: result: yes" >&5 |
7527 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7528 | else |
e6cc62c6 VS |
7529 | echo "$as_me:$LINENO: result: no" >&5 |
7530 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7531 | fi |
e6cc62c6 | 7532 | |
10f2d63a | 7533 | |
5005acfe | 7534 | enablestring= |
e6cc62c6 VS |
7535 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 |
7536 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7537 | no_cache=0 |
7538 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7539 | if test "${enable_scrollbar+set}" = set; then | |
7540 | enableval="$enable_scrollbar" | |
e6cc62c6 | 7541 | |
10f2d63a VZ |
7542 | if test "$enableval" = yes; then |
7543 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7544 | else | |
7545 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7546 | fi | |
e6cc62c6 | 7547 | |
10f2d63a | 7548 | else |
e6cc62c6 | 7549 | |
10f2d63a VZ |
7550 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` |
7551 | if test "x$LINE" != x ; then | |
7552 | eval "DEFAULT_$LINE" | |
7553 | else | |
7554 | no_cache=1 | |
7555 | fi | |
7556 | ||
7557 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
10f2d63a | 7558 | |
e6cc62c6 | 7559 | fi; |
10f2d63a VZ |
7560 | |
7561 | eval "$ac_cv_use_scrollbar" | |
7562 | if test "$no_cache" != 1; then | |
7563 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7564 | fi | |
7565 | ||
7566 | if test "$wxUSE_SCROLLBAR" = yes; then | |
e6cc62c6 VS |
7567 | echo "$as_me:$LINENO: result: yes" >&5 |
7568 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7569 | else |
e6cc62c6 VS |
7570 | echo "$as_me:$LINENO: result: no" >&5 |
7571 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7572 | fi |
e6cc62c6 | 7573 | |
10f2d63a | 7574 | |
5005acfe | 7575 | enablestring= |
e6cc62c6 VS |
7576 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 |
7577 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
10f2d63a VZ |
7578 | no_cache=0 |
7579 | # Check whether --enable-slider or --disable-slider was given. | |
7580 | if test "${enable_slider+set}" = set; then | |
7581 | enableval="$enable_slider" | |
e6cc62c6 | 7582 | |
10f2d63a VZ |
7583 | if test "$enableval" = yes; then |
7584 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7585 | else | |
7586 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7587 | fi | |
e6cc62c6 | 7588 | |
10f2d63a | 7589 | else |
e6cc62c6 | 7590 | |
10f2d63a VZ |
7591 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` |
7592 | if test "x$LINE" != x ; then | |
7593 | eval "DEFAULT_$LINE" | |
7594 | else | |
7595 | no_cache=1 | |
7596 | fi | |
7597 | ||
7598 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
10f2d63a | 7599 | |
e6cc62c6 | 7600 | fi; |
10f2d63a VZ |
7601 | |
7602 | eval "$ac_cv_use_slider" | |
7603 | if test "$no_cache" != 1; then | |
7604 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7605 | fi | |
7606 | ||
7607 | if test "$wxUSE_SLIDER" = yes; then | |
e6cc62c6 VS |
7608 | echo "$as_me:$LINENO: result: yes" >&5 |
7609 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7610 | else |
e6cc62c6 VS |
7611 | echo "$as_me:$LINENO: result: no" >&5 |
7612 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7613 | fi |
e6cc62c6 | 7614 | |
10f2d63a | 7615 | |
5005acfe | 7616 | enablestring= |
e6cc62c6 VS |
7617 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 |
7618 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
10f2d63a VZ |
7619 | no_cache=0 |
7620 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7621 | if test "${enable_spinbtn+set}" = set; then | |
7622 | enableval="$enable_spinbtn" | |
e6cc62c6 | 7623 | |
10f2d63a VZ |
7624 | if test "$enableval" = yes; then |
7625 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7626 | else | |
7627 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7628 | fi | |
e6cc62c6 | 7629 | |
10f2d63a | 7630 | else |
e6cc62c6 | 7631 | |
10f2d63a VZ |
7632 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` |
7633 | if test "x$LINE" != x ; then | |
7634 | eval "DEFAULT_$LINE" | |
7635 | else | |
7636 | no_cache=1 | |
7637 | fi | |
7638 | ||
7639 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
10f2d63a | 7640 | |
e6cc62c6 | 7641 | fi; |
10f2d63a VZ |
7642 | |
7643 | eval "$ac_cv_use_spinbtn" | |
7644 | if test "$no_cache" != 1; then | |
7645 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7646 | fi | |
7647 | ||
7648 | if test "$wxUSE_SPINBTN" = yes; then | |
e6cc62c6 VS |
7649 | echo "$as_me:$LINENO: result: yes" >&5 |
7650 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7651 | else |
e6cc62c6 VS |
7652 | echo "$as_me:$LINENO: result: no" >&5 |
7653 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7654 | fi |
e6cc62c6 | 7655 | |
10f2d63a | 7656 | |
5005acfe | 7657 | enablestring= |
e6cc62c6 VS |
7658 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 |
7659 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
56cfaa52 RR |
7660 | no_cache=0 |
7661 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7662 | if test "${enable_spinctrl+set}" = set; then | |
7663 | enableval="$enable_spinctrl" | |
e6cc62c6 | 7664 | |
56cfaa52 RR |
7665 | if test "$enableval" = yes; then |
7666 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7667 | else | |
7668 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7669 | fi | |
e6cc62c6 | 7670 | |
56cfaa52 | 7671 | else |
e6cc62c6 | 7672 | |
56cfaa52 RR |
7673 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` |
7674 | if test "x$LINE" != x ; then | |
7675 | eval "DEFAULT_$LINE" | |
7676 | else | |
7677 | no_cache=1 | |
7678 | fi | |
7679 | ||
7680 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
56cfaa52 | 7681 | |
e6cc62c6 | 7682 | fi; |
56cfaa52 RR |
7683 | |
7684 | eval "$ac_cv_use_spinctrl" | |
7685 | if test "$no_cache" != 1; then | |
7686 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7687 | fi | |
7688 | ||
7689 | if test "$wxUSE_SPINCTRL" = yes; then | |
e6cc62c6 VS |
7690 | echo "$as_me:$LINENO: result: yes" >&5 |
7691 | echo "${ECHO_T}yes" >&6 | |
56cfaa52 | 7692 | else |
e6cc62c6 VS |
7693 | echo "$as_me:$LINENO: result: no" >&5 |
7694 | echo "${ECHO_T}no" >&6 | |
56cfaa52 | 7695 | fi |
e6cc62c6 | 7696 | |
56cfaa52 | 7697 | |
5005acfe | 7698 | enablestring= |
e6cc62c6 VS |
7699 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 |
7700 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
10f2d63a VZ |
7701 | no_cache=0 |
7702 | # Check whether --enable-splitter or --disable-splitter was given. | |
7703 | if test "${enable_splitter+set}" = set; then | |
7704 | enableval="$enable_splitter" | |
e6cc62c6 | 7705 | |
10f2d63a VZ |
7706 | if test "$enableval" = yes; then |
7707 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7708 | else | |
7709 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7710 | fi | |
e6cc62c6 | 7711 | |
10f2d63a | 7712 | else |
e6cc62c6 | 7713 | |
10f2d63a VZ |
7714 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` |
7715 | if test "x$LINE" != x ; then | |
7716 | eval "DEFAULT_$LINE" | |
7717 | else | |
7718 | no_cache=1 | |
7719 | fi | |
7720 | ||
7721 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
10f2d63a | 7722 | |
e6cc62c6 | 7723 | fi; |
10f2d63a VZ |
7724 | |
7725 | eval "$ac_cv_use_splitter" | |
7726 | if test "$no_cache" != 1; then | |
7727 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7728 | fi | |
7729 | ||
7730 | if test "$wxUSE_SPLITTER" = yes; then | |
e6cc62c6 VS |
7731 | echo "$as_me:$LINENO: result: yes" >&5 |
7732 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7733 | else |
e6cc62c6 VS |
7734 | echo "$as_me:$LINENO: result: no" >&5 |
7735 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7736 | fi |
e6cc62c6 | 7737 | |
10f2d63a | 7738 | |
5005acfe | 7739 | enablestring= |
e6cc62c6 VS |
7740 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 |
7741 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
10f2d63a VZ |
7742 | no_cache=0 |
7743 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7744 | if test "${enable_statbmp+set}" = set; then | |
7745 | enableval="$enable_statbmp" | |
e6cc62c6 | 7746 | |
10f2d63a VZ |
7747 | if test "$enableval" = yes; then |
7748 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7749 | else | |
7750 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7751 | fi | |
e6cc62c6 | 7752 | |
10f2d63a | 7753 | else |
e6cc62c6 | 7754 | |
10f2d63a VZ |
7755 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` |
7756 | if test "x$LINE" != x ; then | |
7757 | eval "DEFAULT_$LINE" | |
7758 | else | |
7759 | no_cache=1 | |
7760 | fi | |
7761 | ||
7762 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
10f2d63a | 7763 | |
e6cc62c6 | 7764 | fi; |
10f2d63a VZ |
7765 | |
7766 | eval "$ac_cv_use_statbmp" | |
7767 | if test "$no_cache" != 1; then | |
7768 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7769 | fi | |
7770 | ||
7771 | if test "$wxUSE_STATBMP" = yes; then | |
e6cc62c6 VS |
7772 | echo "$as_me:$LINENO: result: yes" >&5 |
7773 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7774 | else |
e6cc62c6 VS |
7775 | echo "$as_me:$LINENO: result: no" >&5 |
7776 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7777 | fi |
e6cc62c6 | 7778 | |
10f2d63a | 7779 | |
5005acfe | 7780 | enablestring= |
e6cc62c6 VS |
7781 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 |
7782 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
10f2d63a VZ |
7783 | no_cache=0 |
7784 | # Check whether --enable-statbox or --disable-statbox was given. | |
7785 | if test "${enable_statbox+set}" = set; then | |
7786 | enableval="$enable_statbox" | |
e6cc62c6 | 7787 | |
10f2d63a VZ |
7788 | if test "$enableval" = yes; then |
7789 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7790 | else | |
7791 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7792 | fi | |
e6cc62c6 | 7793 | |
10f2d63a | 7794 | else |
e6cc62c6 | 7795 | |
10f2d63a VZ |
7796 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` |
7797 | if test "x$LINE" != x ; then | |
7798 | eval "DEFAULT_$LINE" | |
7799 | else | |
7800 | no_cache=1 | |
7801 | fi | |
7802 | ||
7803 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
10f2d63a | 7804 | |
e6cc62c6 | 7805 | fi; |
10f2d63a VZ |
7806 | |
7807 | eval "$ac_cv_use_statbox" | |
7808 | if test "$no_cache" != 1; then | |
7809 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7810 | fi | |
7811 | ||
7812 | if test "$wxUSE_STATBOX" = yes; then | |
e6cc62c6 VS |
7813 | echo "$as_me:$LINENO: result: yes" >&5 |
7814 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7815 | else |
e6cc62c6 VS |
7816 | echo "$as_me:$LINENO: result: no" >&5 |
7817 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7818 | fi |
e6cc62c6 | 7819 | |
10f2d63a | 7820 | |
5005acfe | 7821 | enablestring= |
e6cc62c6 VS |
7822 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 |
7823 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
10f2d63a VZ |
7824 | no_cache=0 |
7825 | # Check whether --enable-statline or --disable-statline was given. | |
7826 | if test "${enable_statline+set}" = set; then | |
7827 | enableval="$enable_statline" | |
e6cc62c6 | 7828 | |
10f2d63a VZ |
7829 | if test "$enableval" = yes; then |
7830 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
7831 | else | |
7832 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
7833 | fi | |
e6cc62c6 | 7834 | |
10f2d63a | 7835 | else |
e6cc62c6 | 7836 | |
10f2d63a VZ |
7837 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` |
7838 | if test "x$LINE" != x ; then | |
7839 | eval "DEFAULT_$LINE" | |
7840 | else | |
7841 | no_cache=1 | |
7842 | fi | |
7843 | ||
7844 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
10f2d63a | 7845 | |
e6cc62c6 | 7846 | fi; |
10f2d63a VZ |
7847 | |
7848 | eval "$ac_cv_use_statline" | |
7849 | if test "$no_cache" != 1; then | |
7850 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
7851 | fi | |
7852 | ||
7853 | if test "$wxUSE_STATLINE" = yes; then | |
e6cc62c6 VS |
7854 | echo "$as_me:$LINENO: result: yes" >&5 |
7855 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7856 | else |
e6cc62c6 VS |
7857 | echo "$as_me:$LINENO: result: no" >&5 |
7858 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7859 | fi |
e6cc62c6 | 7860 | |
10f2d63a | 7861 | |
5005acfe | 7862 | enablestring= |
e6cc62c6 VS |
7863 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 |
7864 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
1e6feb95 VZ |
7865 | no_cache=0 |
7866 | # Check whether --enable-stattext or --disable-stattext was given. | |
7867 | if test "${enable_stattext+set}" = set; then | |
7868 | enableval="$enable_stattext" | |
e6cc62c6 | 7869 | |
1e6feb95 VZ |
7870 | if test "$enableval" = yes; then |
7871 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
7872 | else | |
7873 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
7874 | fi | |
e6cc62c6 | 7875 | |
1e6feb95 | 7876 | else |
e6cc62c6 | 7877 | |
1e6feb95 VZ |
7878 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` |
7879 | if test "x$LINE" != x ; then | |
7880 | eval "DEFAULT_$LINE" | |
7881 | else | |
7882 | no_cache=1 | |
7883 | fi | |
7884 | ||
7885 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
1e6feb95 | 7886 | |
e6cc62c6 | 7887 | fi; |
1e6feb95 VZ |
7888 | |
7889 | eval "$ac_cv_use_stattext" | |
7890 | if test "$no_cache" != 1; then | |
7891 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
7892 | fi | |
7893 | ||
7894 | if test "$wxUSE_STATTEXT" = yes; then | |
e6cc62c6 VS |
7895 | echo "$as_me:$LINENO: result: yes" >&5 |
7896 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 7897 | else |
e6cc62c6 VS |
7898 | echo "$as_me:$LINENO: result: no" >&5 |
7899 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 7900 | fi |
e6cc62c6 | 7901 | |
1e6feb95 | 7902 | |
5005acfe | 7903 | enablestring= |
e6cc62c6 VS |
7904 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 |
7905 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
10f2d63a VZ |
7906 | no_cache=0 |
7907 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
7908 | if test "${enable_statusbar+set}" = set; then | |
7909 | enableval="$enable_statusbar" | |
e6cc62c6 | 7910 | |
10f2d63a VZ |
7911 | if test "$enableval" = yes; then |
7912 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
7913 | else | |
7914 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
7915 | fi | |
e6cc62c6 | 7916 | |
10f2d63a | 7917 | else |
e6cc62c6 | 7918 | |
10f2d63a VZ |
7919 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` |
7920 | if test "x$LINE" != x ; then | |
7921 | eval "DEFAULT_$LINE" | |
7922 | else | |
7923 | no_cache=1 | |
7924 | fi | |
7925 | ||
7926 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
10f2d63a | 7927 | |
e6cc62c6 | 7928 | fi; |
10f2d63a VZ |
7929 | |
7930 | eval "$ac_cv_use_statusbar" | |
7931 | if test "$no_cache" != 1; then | |
7932 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
7933 | fi | |
7934 | ||
7935 | if test "$wxUSE_STATUSBAR" = yes; then | |
e6cc62c6 VS |
7936 | echo "$as_me:$LINENO: result: yes" >&5 |
7937 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7938 | else |
e6cc62c6 VS |
7939 | echo "$as_me:$LINENO: result: no" >&5 |
7940 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7941 | fi |
e6cc62c6 | 7942 | |
10f2d63a | 7943 | |
5005acfe | 7944 | enablestring= |
e6cc62c6 VS |
7945 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 |
7946 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
10f2d63a VZ |
7947 | no_cache=0 |
7948 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
7949 | if test "${enable_tabdialog+set}" = set; then | |
7950 | enableval="$enable_tabdialog" | |
e6cc62c6 | 7951 | |
10f2d63a VZ |
7952 | if test "$enableval" = yes; then |
7953 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
7954 | else | |
7955 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
7956 | fi | |
e6cc62c6 | 7957 | |
10f2d63a | 7958 | else |
e6cc62c6 | 7959 | |
10f2d63a VZ |
7960 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` |
7961 | if test "x$LINE" != x ; then | |
7962 | eval "DEFAULT_$LINE" | |
7963 | else | |
7964 | no_cache=1 | |
7965 | fi | |
7966 | ||
7967 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
10f2d63a | 7968 | |
e6cc62c6 | 7969 | fi; |
10f2d63a VZ |
7970 | |
7971 | eval "$ac_cv_use_tabdialog" | |
7972 | if test "$no_cache" != 1; then | |
7973 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
7974 | fi | |
7975 | ||
7976 | if test "$wxUSE_TABDIALOG" = yes; then | |
e6cc62c6 VS |
7977 | echo "$as_me:$LINENO: result: yes" >&5 |
7978 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 7979 | else |
e6cc62c6 VS |
7980 | echo "$as_me:$LINENO: result: no" >&5 |
7981 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 7982 | fi |
e6cc62c6 | 7983 | |
10f2d63a | 7984 | |
5005acfe | 7985 | enablestring= |
e6cc62c6 VS |
7986 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 |
7987 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
1e6feb95 VZ |
7988 | no_cache=0 |
7989 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
7990 | if test "${enable_textctrl+set}" = set; then | |
7991 | enableval="$enable_textctrl" | |
e6cc62c6 | 7992 | |
1e6feb95 VZ |
7993 | if test "$enableval" = yes; then |
7994 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
7995 | else | |
7996 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
7997 | fi | |
e6cc62c6 | 7998 | |
1e6feb95 | 7999 | else |
e6cc62c6 | 8000 | |
1e6feb95 VZ |
8001 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` |
8002 | if test "x$LINE" != x ; then | |
8003 | eval "DEFAULT_$LINE" | |
8004 | else | |
8005 | no_cache=1 | |
8006 | fi | |
8007 | ||
8008 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
1e6feb95 | 8009 | |
e6cc62c6 | 8010 | fi; |
1e6feb95 VZ |
8011 | |
8012 | eval "$ac_cv_use_textctrl" | |
8013 | if test "$no_cache" != 1; then | |
8014 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8015 | fi | |
8016 | ||
8017 | if test "$wxUSE_TEXTCTRL" = yes; then | |
e6cc62c6 VS |
8018 | echo "$as_me:$LINENO: result: yes" >&5 |
8019 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8020 | else |
e6cc62c6 VS |
8021 | echo "$as_me:$LINENO: result: no" >&5 |
8022 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8023 | fi |
e6cc62c6 | 8024 | |
1e6feb95 | 8025 | |
5005acfe | 8026 | enablestring= |
e6cc62c6 VS |
8027 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 |
8028 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
1db8dc4a VZ |
8029 | no_cache=0 |
8030 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8031 | if test "${enable_togglebtn+set}" = set; then | |
8032 | enableval="$enable_togglebtn" | |
e6cc62c6 | 8033 | |
1db8dc4a VZ |
8034 | if test "$enableval" = yes; then |
8035 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8036 | else | |
8037 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8038 | fi | |
e6cc62c6 | 8039 | |
1db8dc4a | 8040 | else |
e6cc62c6 | 8041 | |
1db8dc4a VZ |
8042 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` |
8043 | if test "x$LINE" != x ; then | |
8044 | eval "DEFAULT_$LINE" | |
8045 | else | |
8046 | no_cache=1 | |
8047 | fi | |
8048 | ||
8049 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
1db8dc4a | 8050 | |
e6cc62c6 | 8051 | fi; |
1db8dc4a VZ |
8052 | |
8053 | eval "$ac_cv_use_togglebtn" | |
8054 | if test "$no_cache" != 1; then | |
8055 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8056 | fi | |
8057 | ||
8058 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
e6cc62c6 VS |
8059 | echo "$as_me:$LINENO: result: yes" >&5 |
8060 | echo "${ECHO_T}yes" >&6 | |
1db8dc4a | 8061 | else |
e6cc62c6 VS |
8062 | echo "$as_me:$LINENO: result: no" >&5 |
8063 | echo "${ECHO_T}no" >&6 | |
1db8dc4a | 8064 | fi |
e6cc62c6 | 8065 | |
1db8dc4a | 8066 | |
5005acfe | 8067 | enablestring= |
e6cc62c6 VS |
8068 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 |
8069 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
10f2d63a VZ |
8070 | no_cache=0 |
8071 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8072 | if test "${enable_toolbar+set}" = set; then | |
8073 | enableval="$enable_toolbar" | |
e6cc62c6 | 8074 | |
10f2d63a VZ |
8075 | if test "$enableval" = yes; then |
8076 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8077 | else | |
8078 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8079 | fi | |
e6cc62c6 | 8080 | |
10f2d63a | 8081 | else |
e6cc62c6 | 8082 | |
10f2d63a VZ |
8083 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` |
8084 | if test "x$LINE" != x ; then | |
8085 | eval "DEFAULT_$LINE" | |
8086 | else | |
8087 | no_cache=1 | |
8088 | fi | |
8089 | ||
8090 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
10f2d63a | 8091 | |
e6cc62c6 | 8092 | fi; |
10f2d63a VZ |
8093 | |
8094 | eval "$ac_cv_use_toolbar" | |
8095 | if test "$no_cache" != 1; then | |
8096 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8097 | fi | |
8098 | ||
8099 | if test "$wxUSE_TOOLBAR" = yes; then | |
e6cc62c6 VS |
8100 | echo "$as_me:$LINENO: result: yes" >&5 |
8101 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8102 | else |
e6cc62c6 VS |
8103 | echo "$as_me:$LINENO: result: no" >&5 |
8104 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8105 | fi |
e6cc62c6 | 8106 | |
10f2d63a | 8107 | |
5005acfe | 8108 | enablestring= |
e6cc62c6 VS |
8109 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 |
8110 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
360d6699 VZ |
8111 | no_cache=0 |
8112 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8113 | if test "${enable_tbarnative+set}" = set; then | |
8114 | enableval="$enable_tbarnative" | |
e6cc62c6 | 8115 | |
360d6699 VZ |
8116 | if test "$enableval" = yes; then |
8117 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8118 | else | |
8119 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8120 | fi | |
e6cc62c6 | 8121 | |
360d6699 | 8122 | else |
e6cc62c6 | 8123 | |
360d6699 VZ |
8124 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` |
8125 | if test "x$LINE" != x ; then | |
8126 | eval "DEFAULT_$LINE" | |
8127 | else | |
8128 | no_cache=1 | |
8129 | fi | |
8130 | ||
8131 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
360d6699 | 8132 | |
e6cc62c6 | 8133 | fi; |
360d6699 VZ |
8134 | |
8135 | eval "$ac_cv_use_tbarnative" | |
8136 | if test "$no_cache" != 1; then | |
8137 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8138 | fi | |
8139 | ||
8140 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
e6cc62c6 VS |
8141 | echo "$as_me:$LINENO: result: yes" >&5 |
8142 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8143 | else |
e6cc62c6 VS |
8144 | echo "$as_me:$LINENO: result: no" >&5 |
8145 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8146 | fi |
e6cc62c6 | 8147 | |
360d6699 | 8148 | |
5005acfe | 8149 | enablestring= |
e6cc62c6 VS |
8150 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 |
8151 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
360d6699 VZ |
8152 | no_cache=0 |
8153 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8154 | if test "${enable_tbarsmpl+set}" = set; then | |
8155 | enableval="$enable_tbarsmpl" | |
e6cc62c6 | 8156 | |
360d6699 VZ |
8157 | if test "$enableval" = yes; then |
8158 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8159 | else | |
8160 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8161 | fi | |
e6cc62c6 | 8162 | |
360d6699 | 8163 | else |
e6cc62c6 | 8164 | |
360d6699 VZ |
8165 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` |
8166 | if test "x$LINE" != x ; then | |
8167 | eval "DEFAULT_$LINE" | |
8168 | else | |
8169 | no_cache=1 | |
8170 | fi | |
8171 | ||
8172 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
360d6699 | 8173 | |
e6cc62c6 | 8174 | fi; |
360d6699 VZ |
8175 | |
8176 | eval "$ac_cv_use_tbarsmpl" | |
8177 | if test "$no_cache" != 1; then | |
8178 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8179 | fi | |
8180 | ||
8181 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
e6cc62c6 VS |
8182 | echo "$as_me:$LINENO: result: yes" >&5 |
8183 | echo "${ECHO_T}yes" >&6 | |
360d6699 | 8184 | else |
e6cc62c6 VS |
8185 | echo "$as_me:$LINENO: result: no" >&5 |
8186 | echo "${ECHO_T}no" >&6 | |
360d6699 | 8187 | fi |
e6cc62c6 | 8188 | |
360d6699 | 8189 | |
5005acfe | 8190 | enablestring= |
e6cc62c6 VS |
8191 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 |
8192 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
10f2d63a VZ |
8193 | no_cache=0 |
8194 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8195 | if test "${enable_treectrl+set}" = set; then | |
8196 | enableval="$enable_treectrl" | |
e6cc62c6 | 8197 | |
10f2d63a VZ |
8198 | if test "$enableval" = yes; then |
8199 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8200 | else | |
8201 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8202 | fi | |
e6cc62c6 | 8203 | |
10f2d63a | 8204 | else |
e6cc62c6 | 8205 | |
10f2d63a VZ |
8206 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` |
8207 | if test "x$LINE" != x ; then | |
8208 | eval "DEFAULT_$LINE" | |
8209 | else | |
8210 | no_cache=1 | |
8211 | fi | |
8212 | ||
8213 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
10f2d63a | 8214 | |
e6cc62c6 | 8215 | fi; |
10f2d63a | 8216 | |
1e6feb95 VZ |
8217 | eval "$ac_cv_use_treectrl" |
8218 | if test "$no_cache" != 1; then | |
8219 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8220 | fi | |
8221 | ||
8222 | if test "$wxUSE_TREECTRL" = yes; then | |
e6cc62c6 VS |
8223 | echo "$as_me:$LINENO: result: yes" >&5 |
8224 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8225 | else |
e6cc62c6 VS |
8226 | echo "$as_me:$LINENO: result: no" >&5 |
8227 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8228 | fi |
e6cc62c6 | 8229 | |
1e6feb95 | 8230 | |
5005acfe | 8231 | enablestring= |
e6cc62c6 VS |
8232 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 |
8233 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
9926e4a4 VZ |
8234 | no_cache=0 |
8235 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8236 | if test "${enable_tipwindow+set}" = set; then | |
8237 | enableval="$enable_tipwindow" | |
e6cc62c6 | 8238 | |
9926e4a4 VZ |
8239 | if test "$enableval" = yes; then |
8240 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8241 | else | |
8242 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8243 | fi | |
e6cc62c6 | 8244 | |
9926e4a4 | 8245 | else |
e6cc62c6 | 8246 | |
9926e4a4 VZ |
8247 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` |
8248 | if test "x$LINE" != x ; then | |
8249 | eval "DEFAULT_$LINE" | |
8250 | else | |
8251 | no_cache=1 | |
8252 | fi | |
8253 | ||
8254 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
9926e4a4 | 8255 | |
e6cc62c6 | 8256 | fi; |
9926e4a4 VZ |
8257 | |
8258 | eval "$ac_cv_use_tipwindow" | |
8259 | if test "$no_cache" != 1; then | |
8260 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8261 | fi | |
8262 | ||
8263 | if test "$wxUSE_TIPWINDOW" = yes; then | |
e6cc62c6 VS |
8264 | echo "$as_me:$LINENO: result: yes" >&5 |
8265 | echo "${ECHO_T}yes" >&6 | |
9926e4a4 | 8266 | else |
e6cc62c6 VS |
8267 | echo "$as_me:$LINENO: result: no" >&5 |
8268 | echo "${ECHO_T}no" >&6 | |
9926e4a4 | 8269 | fi |
e6cc62c6 | 8270 | |
9926e4a4 | 8271 | |
5005acfe | 8272 | enablestring= |
e6cc62c6 VS |
8273 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 |
8274 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
9f41d601 RR |
8275 | no_cache=0 |
8276 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8277 | if test "${enable_popupwin+set}" = set; then | |
8278 | enableval="$enable_popupwin" | |
e6cc62c6 | 8279 | |
9f41d601 RR |
8280 | if test "$enableval" = yes; then |
8281 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8282 | else | |
8283 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8284 | fi | |
e6cc62c6 | 8285 | |
9f41d601 | 8286 | else |
e6cc62c6 | 8287 | |
9f41d601 RR |
8288 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` |
8289 | if test "x$LINE" != x ; then | |
8290 | eval "DEFAULT_$LINE" | |
8291 | else | |
8292 | no_cache=1 | |
8293 | fi | |
8294 | ||
8295 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
9f41d601 | 8296 | |
e6cc62c6 | 8297 | fi; |
9f41d601 RR |
8298 | |
8299 | eval "$ac_cv_use_popupwin" | |
8300 | if test "$no_cache" != 1; then | |
8301 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8302 | fi | |
8303 | ||
8304 | if test "$wxUSE_POPUPWIN" = yes; then | |
e6cc62c6 VS |
8305 | echo "$as_me:$LINENO: result: yes" >&5 |
8306 | echo "${ECHO_T}yes" >&6 | |
9f41d601 | 8307 | else |
e6cc62c6 VS |
8308 | echo "$as_me:$LINENO: result: no" >&5 |
8309 | echo "${ECHO_T}no" >&6 | |
9f41d601 | 8310 | fi |
e6cc62c6 | 8311 | |
52127426 | 8312 | |
8284b0c5 MB |
8313 | |
8314 | ||
5005acfe | 8315 | enablestring= |
e6cc62c6 VS |
8316 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 |
8317 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8318 | no_cache=0 |
8319 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8320 | if test "${enable_commondlg+set}" = set; then | |
8321 | enableval="$enable_commondlg" | |
e6cc62c6 | 8322 | |
1e6feb95 VZ |
8323 | if test "$enableval" = yes; then |
8324 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8325 | else | |
8326 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8327 | fi | |
e6cc62c6 | 8328 | |
1e6feb95 | 8329 | else |
e6cc62c6 | 8330 | |
1e6feb95 VZ |
8331 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` |
8332 | if test "x$LINE" != x ; then | |
8333 | eval "DEFAULT_$LINE" | |
8334 | else | |
8335 | no_cache=1 | |
8336 | fi | |
8337 | ||
8338 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
1e6feb95 | 8339 | |
e6cc62c6 | 8340 | fi; |
1e6feb95 VZ |
8341 | |
8342 | eval "$ac_cv_use_commondlg" | |
8343 | if test "$no_cache" != 1; then | |
8344 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8345 | fi | |
8346 | ||
8347 | if test "$wxUSE_COMMONDLGS" = yes; then | |
e6cc62c6 VS |
8348 | echo "$as_me:$LINENO: result: yes" >&5 |
8349 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8350 | else |
e6cc62c6 VS |
8351 | echo "$as_me:$LINENO: result: no" >&5 |
8352 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8353 | fi |
e6cc62c6 | 8354 | |
1e6feb95 | 8355 | |
5005acfe | 8356 | enablestring= |
e6cc62c6 VS |
8357 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 |
8358 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8359 | no_cache=0 |
8360 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8361 | if test "${enable_choicedlg+set}" = set; then | |
8362 | enableval="$enable_choicedlg" | |
e6cc62c6 | 8363 | |
1e6feb95 VZ |
8364 | if test "$enableval" = yes; then |
8365 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8366 | else | |
8367 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8368 | fi | |
e6cc62c6 | 8369 | |
1e6feb95 | 8370 | else |
e6cc62c6 | 8371 | |
1e6feb95 VZ |
8372 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` |
8373 | if test "x$LINE" != x ; then | |
8374 | eval "DEFAULT_$LINE" | |
8375 | else | |
8376 | no_cache=1 | |
8377 | fi | |
8378 | ||
8379 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
1e6feb95 | 8380 | |
e6cc62c6 | 8381 | fi; |
1e6feb95 VZ |
8382 | |
8383 | eval "$ac_cv_use_choicedlg" | |
8384 | if test "$no_cache" != 1; then | |
8385 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8386 | fi | |
8387 | ||
8388 | if test "$wxUSE_CHOICEDLG" = yes; then | |
e6cc62c6 VS |
8389 | echo "$as_me:$LINENO: result: yes" >&5 |
8390 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8391 | else |
e6cc62c6 VS |
8392 | echo "$as_me:$LINENO: result: no" >&5 |
8393 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8394 | fi |
e6cc62c6 | 8395 | |
1e6feb95 | 8396 | |
5005acfe | 8397 | enablestring= |
e6cc62c6 VS |
8398 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 |
8399 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8400 | no_cache=0 |
8401 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8402 | if test "${enable_coldlg+set}" = set; then | |
8403 | enableval="$enable_coldlg" | |
e6cc62c6 | 8404 | |
1e6feb95 VZ |
8405 | if test "$enableval" = yes; then |
8406 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8407 | else | |
8408 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8409 | fi | |
e6cc62c6 | 8410 | |
1e6feb95 | 8411 | else |
e6cc62c6 | 8412 | |
1e6feb95 VZ |
8413 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` |
8414 | if test "x$LINE" != x ; then | |
8415 | eval "DEFAULT_$LINE" | |
8416 | else | |
8417 | no_cache=1 | |
8418 | fi | |
8419 | ||
8420 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
1e6feb95 | 8421 | |
e6cc62c6 | 8422 | fi; |
1e6feb95 VZ |
8423 | |
8424 | eval "$ac_cv_use_coldlg" | |
8425 | if test "$no_cache" != 1; then | |
8426 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8427 | fi | |
8428 | ||
8429 | if test "$wxUSE_COLOURDLG" = yes; then | |
e6cc62c6 VS |
8430 | echo "$as_me:$LINENO: result: yes" >&5 |
8431 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8432 | else |
e6cc62c6 VS |
8433 | echo "$as_me:$LINENO: result: no" >&5 |
8434 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8435 | fi |
e6cc62c6 | 8436 | |
1e6feb95 | 8437 | |
5005acfe | 8438 | enablestring= |
e6cc62c6 VS |
8439 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 |
8440 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8441 | no_cache=0 |
8442 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8443 | if test "${enable_filedlg+set}" = set; then | |
8444 | enableval="$enable_filedlg" | |
e6cc62c6 | 8445 | |
1e6feb95 VZ |
8446 | if test "$enableval" = yes; then |
8447 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8448 | else | |
8449 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8450 | fi | |
e6cc62c6 | 8451 | |
1e6feb95 | 8452 | else |
e6cc62c6 | 8453 | |
1e6feb95 VZ |
8454 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` |
8455 | if test "x$LINE" != x ; then | |
8456 | eval "DEFAULT_$LINE" | |
8457 | else | |
8458 | no_cache=1 | |
8459 | fi | |
8460 | ||
8461 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
1e6feb95 | 8462 | |
e6cc62c6 | 8463 | fi; |
1e6feb95 VZ |
8464 | |
8465 | eval "$ac_cv_use_filedlg" | |
8466 | if test "$no_cache" != 1; then | |
8467 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8468 | fi | |
8469 | ||
8470 | if test "$wxUSE_FILEDLG" = yes; then | |
e6cc62c6 VS |
8471 | echo "$as_me:$LINENO: result: yes" >&5 |
8472 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8473 | else |
e6cc62c6 VS |
8474 | echo "$as_me:$LINENO: result: no" >&5 |
8475 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8476 | fi |
e6cc62c6 | 8477 | |
1e6feb95 | 8478 | |
5005acfe | 8479 | enablestring= |
e6cc62c6 VS |
8480 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 |
8481 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8db37e06 | 8482 | no_cache=0 |
69d27ff7 MB |
8483 | # Check whether --enable-finddlg or --disable-finddlg was given. |
8484 | if test "${enable_finddlg+set}" = set; then | |
8485 | enableval="$enable_finddlg" | |
e6cc62c6 | 8486 | |
8db37e06 | 8487 | if test "$enableval" = yes; then |
69d27ff7 | 8488 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' |
8db37e06 | 8489 | else |
69d27ff7 | 8490 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' |
8db37e06 | 8491 | fi |
e6cc62c6 | 8492 | |
8db37e06 | 8493 | else |
e6cc62c6 | 8494 | |
8db37e06 VZ |
8495 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` |
8496 | if test "x$LINE" != x ; then | |
8497 | eval "DEFAULT_$LINE" | |
8498 | else | |
8499 | no_cache=1 | |
8500 | fi | |
8501 | ||
69d27ff7 | 8502 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG |
8db37e06 | 8503 | |
e6cc62c6 | 8504 | fi; |
8db37e06 | 8505 | |
69d27ff7 | 8506 | eval "$ac_cv_use_finddlg" |
8db37e06 | 8507 | if test "$no_cache" != 1; then |
69d27ff7 | 8508 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp |
8db37e06 VZ |
8509 | fi |
8510 | ||
8511 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
e6cc62c6 VS |
8512 | echo "$as_me:$LINENO: result: yes" >&5 |
8513 | echo "${ECHO_T}yes" >&6 | |
8db37e06 | 8514 | else |
e6cc62c6 VS |
8515 | echo "$as_me:$LINENO: result: no" >&5 |
8516 | echo "${ECHO_T}no" >&6 | |
8db37e06 | 8517 | fi |
e6cc62c6 | 8518 | |
8db37e06 | 8519 | |
5005acfe | 8520 | enablestring= |
e6cc62c6 VS |
8521 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 |
8522 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8523 | no_cache=0 |
8524 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8525 | if test "${enable_fontdlg+set}" = set; then | |
8526 | enableval="$enable_fontdlg" | |
e6cc62c6 | 8527 | |
1e6feb95 VZ |
8528 | if test "$enableval" = yes; then |
8529 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8530 | else | |
8531 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8532 | fi | |
e6cc62c6 | 8533 | |
1e6feb95 | 8534 | else |
e6cc62c6 | 8535 | |
1e6feb95 VZ |
8536 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` |
8537 | if test "x$LINE" != x ; then | |
8538 | eval "DEFAULT_$LINE" | |
8539 | else | |
8540 | no_cache=1 | |
8541 | fi | |
8542 | ||
8543 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
1e6feb95 | 8544 | |
e6cc62c6 | 8545 | fi; |
1e6feb95 VZ |
8546 | |
8547 | eval "$ac_cv_use_fontdlg" | |
8548 | if test "$no_cache" != 1; then | |
8549 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8550 | fi | |
8551 | ||
8552 | if test "$wxUSE_FONTDLG" = yes; then | |
e6cc62c6 VS |
8553 | echo "$as_me:$LINENO: result: yes" >&5 |
8554 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8555 | else |
e6cc62c6 VS |
8556 | echo "$as_me:$LINENO: result: no" >&5 |
8557 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8558 | fi |
e6cc62c6 | 8559 | |
1e6feb95 | 8560 | |
5005acfe | 8561 | enablestring= |
e6cc62c6 VS |
8562 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 |
8563 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
1e6feb95 VZ |
8564 | no_cache=0 |
8565 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8566 | if test "${enable_dirdlg+set}" = set; then | |
8567 | enableval="$enable_dirdlg" | |
e6cc62c6 | 8568 | |
1e6feb95 VZ |
8569 | if test "$enableval" = yes; then |
8570 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8571 | else | |
8572 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8573 | fi | |
e6cc62c6 | 8574 | |
1e6feb95 | 8575 | else |
e6cc62c6 | 8576 | |
1e6feb95 VZ |
8577 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` |
8578 | if test "x$LINE" != x ; then | |
8579 | eval "DEFAULT_$LINE" | |
8580 | else | |
8581 | no_cache=1 | |
8582 | fi | |
8583 | ||
8584 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
1e6feb95 | 8585 | |
e6cc62c6 | 8586 | fi; |
1e6feb95 VZ |
8587 | |
8588 | eval "$ac_cv_use_dirdlg" | |
10f2d63a | 8589 | if test "$no_cache" != 1; then |
1e6feb95 | 8590 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8591 | fi |
8592 | ||
1e6feb95 | 8593 | if test "$wxUSE_DIRDLG" = yes; then |
e6cc62c6 VS |
8594 | echo "$as_me:$LINENO: result: yes" >&5 |
8595 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8596 | else |
e6cc62c6 VS |
8597 | echo "$as_me:$LINENO: result: no" >&5 |
8598 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8599 | fi |
e6cc62c6 | 8600 | |
698dcdb6 | 8601 | |
5005acfe | 8602 | enablestring= |
e6cc62c6 VS |
8603 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 |
8604 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
10f2d63a | 8605 | no_cache=0 |
1e6feb95 VZ |
8606 | # Check whether --enable-msgdlg or --disable-msgdlg was given. |
8607 | if test "${enable_msgdlg+set}" = set; then | |
8608 | enableval="$enable_msgdlg" | |
e6cc62c6 | 8609 | |
10f2d63a | 8610 | if test "$enableval" = yes; then |
1e6feb95 | 8611 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' |
10f2d63a | 8612 | else |
1e6feb95 | 8613 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' |
10f2d63a | 8614 | fi |
e6cc62c6 | 8615 | |
10f2d63a | 8616 | else |
e6cc62c6 | 8617 | |
1e6feb95 | 8618 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8619 | if test "x$LINE" != x ; then |
8620 | eval "DEFAULT_$LINE" | |
8621 | else | |
8622 | no_cache=1 | |
8623 | fi | |
8624 | ||
1e6feb95 | 8625 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG |
10f2d63a | 8626 | |
e6cc62c6 | 8627 | fi; |
10f2d63a | 8628 | |
1e6feb95 | 8629 | eval "$ac_cv_use_msgdlg" |
10f2d63a | 8630 | if test "$no_cache" != 1; then |
1e6feb95 | 8631 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8632 | fi |
8633 | ||
1e6feb95 | 8634 | if test "$wxUSE_MSGDLG" = yes; then |
e6cc62c6 VS |
8635 | echo "$as_me:$LINENO: result: yes" >&5 |
8636 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8637 | else |
e6cc62c6 VS |
8638 | echo "$as_me:$LINENO: result: no" >&5 |
8639 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8640 | fi |
e6cc62c6 | 8641 | |
10f2d63a | 8642 | |
5005acfe | 8643 | enablestring= |
e6cc62c6 VS |
8644 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 |
8645 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
10f2d63a | 8646 | no_cache=0 |
1e6feb95 VZ |
8647 | # Check whether --enable-numberdlg or --disable-numberdlg was given. |
8648 | if test "${enable_numberdlg+set}" = set; then | |
8649 | enableval="$enable_numberdlg" | |
e6cc62c6 | 8650 | |
10f2d63a | 8651 | if test "$enableval" = yes; then |
1e6feb95 | 8652 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' |
10f2d63a | 8653 | else |
1e6feb95 | 8654 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' |
10f2d63a | 8655 | fi |
e6cc62c6 | 8656 | |
10f2d63a | 8657 | else |
e6cc62c6 | 8658 | |
1e6feb95 | 8659 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` |
10f2d63a VZ |
8660 | if test "x$LINE" != x ; then |
8661 | eval "DEFAULT_$LINE" | |
8662 | else | |
8663 | no_cache=1 | |
8664 | fi | |
8665 | ||
1e6feb95 | 8666 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG |
10f2d63a | 8667 | |
e6cc62c6 | 8668 | fi; |
10f2d63a | 8669 | |
1e6feb95 | 8670 | eval "$ac_cv_use_numberdlg" |
10f2d63a | 8671 | if test "$no_cache" != 1; then |
1e6feb95 | 8672 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp |
10f2d63a VZ |
8673 | fi |
8674 | ||
1e6feb95 | 8675 | if test "$wxUSE_NUMBERDLG" = yes; then |
e6cc62c6 VS |
8676 | echo "$as_me:$LINENO: result: yes" >&5 |
8677 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8678 | else |
e6cc62c6 VS |
8679 | echo "$as_me:$LINENO: result: no" >&5 |
8680 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8681 | fi |
e6cc62c6 | 8682 | |
10f2d63a | 8683 | |
5005acfe | 8684 | enablestring= |
e6cc62c6 VS |
8685 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 |
8686 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
cbca9943 VZ |
8687 | no_cache=0 |
8688 | # Check whether --enable-splash or --disable-splash was given. | |
8689 | if test "${enable_splash+set}" = set; then | |
8690 | enableval="$enable_splash" | |
e6cc62c6 | 8691 | |
cbca9943 VZ |
8692 | if test "$enableval" = yes; then |
8693 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8694 | else | |
8695 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8696 | fi | |
e6cc62c6 | 8697 | |
cbca9943 | 8698 | else |
e6cc62c6 | 8699 | |
cbca9943 VZ |
8700 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` |
8701 | if test "x$LINE" != x ; then | |
8702 | eval "DEFAULT_$LINE" | |
8703 | else | |
8704 | no_cache=1 | |
8705 | fi | |
8706 | ||
8707 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
cbca9943 | 8708 | |
e6cc62c6 | 8709 | fi; |
cbca9943 VZ |
8710 | |
8711 | eval "$ac_cv_use_splash" | |
8712 | if test "$no_cache" != 1; then | |
8713 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8714 | fi | |
8715 | ||
8716 | if test "$wxUSE_SPLASH" = yes; then | |
e6cc62c6 VS |
8717 | echo "$as_me:$LINENO: result: yes" >&5 |
8718 | echo "${ECHO_T}yes" >&6 | |
cbca9943 | 8719 | else |
e6cc62c6 VS |
8720 | echo "$as_me:$LINENO: result: no" >&5 |
8721 | echo "${ECHO_T}no" >&6 | |
cbca9943 | 8722 | fi |
e6cc62c6 | 8723 | |
cbca9943 | 8724 | |
5005acfe | 8725 | enablestring= |
e6cc62c6 VS |
8726 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 |
8727 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8728 | no_cache=0 |
8729 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8730 | if test "${enable_textdlg+set}" = set; then | |
8731 | enableval="$enable_textdlg" | |
e6cc62c6 | 8732 | |
10f2d63a VZ |
8733 | if test "$enableval" = yes; then |
8734 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8735 | else | |
8736 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8737 | fi | |
e6cc62c6 | 8738 | |
10f2d63a | 8739 | else |
e6cc62c6 | 8740 | |
10f2d63a VZ |
8741 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` |
8742 | if test "x$LINE" != x ; then | |
8743 | eval "DEFAULT_$LINE" | |
8744 | else | |
8745 | no_cache=1 | |
8746 | fi | |
8747 | ||
8748 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
10f2d63a | 8749 | |
e6cc62c6 | 8750 | fi; |
10f2d63a VZ |
8751 | |
8752 | eval "$ac_cv_use_textdlg" | |
8753 | if test "$no_cache" != 1; then | |
8754 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8755 | fi | |
8756 | ||
8757 | if test "$wxUSE_TEXTDLG" = yes; then | |
e6cc62c6 VS |
8758 | echo "$as_me:$LINENO: result: yes" >&5 |
8759 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8760 | else |
e6cc62c6 VS |
8761 | echo "$as_me:$LINENO: result: no" >&5 |
8762 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8763 | fi |
e6cc62c6 | 8764 | |
10f2d63a | 8765 | |
5005acfe | 8766 | enablestring= |
e6cc62c6 VS |
8767 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 |
8768 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8769 | no_cache=0 |
8770 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8771 | if test "${enable_tipdlg+set}" = set; then | |
8772 | enableval="$enable_tipdlg" | |
e6cc62c6 | 8773 | |
10f2d63a VZ |
8774 | if test "$enableval" = yes; then |
8775 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8776 | else | |
8777 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8778 | fi | |
e6cc62c6 | 8779 | |
10f2d63a | 8780 | else |
e6cc62c6 | 8781 | |
10f2d63a VZ |
8782 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` |
8783 | if test "x$LINE" != x ; then | |
8784 | eval "DEFAULT_$LINE" | |
8785 | else | |
8786 | no_cache=1 | |
8787 | fi | |
8788 | ||
8789 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
10f2d63a | 8790 | |
e6cc62c6 | 8791 | fi; |
10f2d63a VZ |
8792 | |
8793 | eval "$ac_cv_use_tipdlg" | |
8794 | if test "$no_cache" != 1; then | |
8795 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8796 | fi | |
8797 | ||
8798 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
e6cc62c6 VS |
8799 | echo "$as_me:$LINENO: result: yes" >&5 |
8800 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8801 | else |
e6cc62c6 VS |
8802 | echo "$as_me:$LINENO: result: no" >&5 |
8803 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8804 | fi |
e6cc62c6 | 8805 | |
10f2d63a | 8806 | |
5005acfe | 8807 | enablestring= |
e6cc62c6 VS |
8808 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 |
8809 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
10f2d63a VZ |
8810 | no_cache=0 |
8811 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8812 | if test "${enable_progressdlg+set}" = set; then | |
8813 | enableval="$enable_progressdlg" | |
e6cc62c6 | 8814 | |
10f2d63a VZ |
8815 | if test "$enableval" = yes; then |
8816 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8817 | else | |
8818 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8819 | fi | |
e6cc62c6 | 8820 | |
10f2d63a | 8821 | else |
e6cc62c6 | 8822 | |
10f2d63a VZ |
8823 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` |
8824 | if test "x$LINE" != x ; then | |
8825 | eval "DEFAULT_$LINE" | |
8826 | else | |
8827 | no_cache=1 | |
8828 | fi | |
8829 | ||
8830 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
10f2d63a | 8831 | |
e6cc62c6 | 8832 | fi; |
10f2d63a VZ |
8833 | |
8834 | eval "$ac_cv_use_progressdlg" | |
8835 | if test "$no_cache" != 1; then | |
8836 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
8837 | fi | |
8838 | ||
8839 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
e6cc62c6 VS |
8840 | echo "$as_me:$LINENO: result: yes" >&5 |
8841 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8842 | else |
e6cc62c6 VS |
8843 | echo "$as_me:$LINENO: result: no" >&5 |
8844 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8845 | fi |
e6cc62c6 | 8846 | |
10f2d63a | 8847 | |
5005acfe | 8848 | enablestring= |
e6cc62c6 VS |
8849 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 |
8850 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
b1f5d087 VZ |
8851 | no_cache=0 |
8852 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
8853 | if test "${enable_wizarddlg+set}" = set; then | |
8854 | enableval="$enable_wizarddlg" | |
e6cc62c6 | 8855 | |
b1f5d087 VZ |
8856 | if test "$enableval" = yes; then |
8857 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
8858 | else | |
8859 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
8860 | fi | |
e6cc62c6 | 8861 | |
b1f5d087 | 8862 | else |
e6cc62c6 | 8863 | |
b1f5d087 VZ |
8864 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` |
8865 | if test "x$LINE" != x ; then | |
8866 | eval "DEFAULT_$LINE" | |
8867 | else | |
8868 | no_cache=1 | |
8869 | fi | |
8870 | ||
8871 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
b1f5d087 | 8872 | |
e6cc62c6 | 8873 | fi; |
b1f5d087 VZ |
8874 | |
8875 | eval "$ac_cv_use_wizarddlg" | |
8876 | if test "$no_cache" != 1; then | |
8877 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
8878 | fi | |
8879 | ||
8880 | if test "$wxUSE_WIZARDDLG" = yes; then | |
e6cc62c6 VS |
8881 | echo "$as_me:$LINENO: result: yes" >&5 |
8882 | echo "${ECHO_T}yes" >&6 | |
b1f5d087 | 8883 | else |
e6cc62c6 VS |
8884 | echo "$as_me:$LINENO: result: no" >&5 |
8885 | echo "${ECHO_T}no" >&6 | |
b1f5d087 | 8886 | fi |
e6cc62c6 | 8887 | |
8284b0c5 MB |
8888 | |
8889 | ||
52127426 | 8890 | |
5005acfe | 8891 | enablestring= |
e6cc62c6 VS |
8892 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 |
8893 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
1e6feb95 VZ |
8894 | no_cache=0 |
8895 | # Check whether --enable-menus or --disable-menus was given. | |
8896 | if test "${enable_menus+set}" = set; then | |
8897 | enableval="$enable_menus" | |
e6cc62c6 | 8898 | |
1e6feb95 VZ |
8899 | if test "$enableval" = yes; then |
8900 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
8901 | else | |
8902 | ac_cv_use_menus='wxUSE_MENUS=no' | |
8903 | fi | |
e6cc62c6 | 8904 | |
1e6feb95 | 8905 | else |
e6cc62c6 | 8906 | |
1e6feb95 VZ |
8907 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` |
8908 | if test "x$LINE" != x ; then | |
8909 | eval "DEFAULT_$LINE" | |
8910 | else | |
8911 | no_cache=1 | |
8912 | fi | |
8913 | ||
8914 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
1e6feb95 | 8915 | |
e6cc62c6 | 8916 | fi; |
1e6feb95 VZ |
8917 | |
8918 | eval "$ac_cv_use_menus" | |
8919 | if test "$no_cache" != 1; then | |
8920 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
8921 | fi | |
8922 | ||
8923 | if test "$wxUSE_MENUS" = yes; then | |
e6cc62c6 VS |
8924 | echo "$as_me:$LINENO: result: yes" >&5 |
8925 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 8926 | else |
e6cc62c6 VS |
8927 | echo "$as_me:$LINENO: result: no" >&5 |
8928 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 8929 | fi |
e6cc62c6 | 8930 | |
1e6feb95 | 8931 | |
5005acfe | 8932 | enablestring= |
e6cc62c6 VS |
8933 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 |
8934 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
10f2d63a VZ |
8935 | no_cache=0 |
8936 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
8937 | if test "${enable_miniframe+set}" = set; then | |
8938 | enableval="$enable_miniframe" | |
e6cc62c6 | 8939 | |
10f2d63a VZ |
8940 | if test "$enableval" = yes; then |
8941 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
8942 | else | |
8943 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
8944 | fi | |
e6cc62c6 | 8945 | |
10f2d63a | 8946 | else |
e6cc62c6 | 8947 | |
10f2d63a VZ |
8948 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` |
8949 | if test "x$LINE" != x ; then | |
8950 | eval "DEFAULT_$LINE" | |
8951 | else | |
8952 | no_cache=1 | |
8953 | fi | |
8954 | ||
8955 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
10f2d63a | 8956 | |
e6cc62c6 | 8957 | fi; |
10f2d63a VZ |
8958 | |
8959 | eval "$ac_cv_use_miniframe" | |
8960 | if test "$no_cache" != 1; then | |
8961 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
8962 | fi | |
8963 | ||
8964 | if test "$wxUSE_MINIFRAME" = yes; then | |
e6cc62c6 VS |
8965 | echo "$as_me:$LINENO: result: yes" >&5 |
8966 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 8967 | else |
e6cc62c6 VS |
8968 | echo "$as_me:$LINENO: result: no" >&5 |
8969 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 8970 | fi |
e6cc62c6 | 8971 | |
10f2d63a | 8972 | |
5005acfe | 8973 | enablestring= |
e6cc62c6 VS |
8974 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 |
8975 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
10f2d63a VZ |
8976 | no_cache=0 |
8977 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
8978 | if test "${enable_tooltips+set}" = set; then | |
8979 | enableval="$enable_tooltips" | |
e6cc62c6 | 8980 | |
10f2d63a VZ |
8981 | if test "$enableval" = yes; then |
8982 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
8983 | else | |
8984 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
8985 | fi | |
e6cc62c6 | 8986 | |
10f2d63a | 8987 | else |
e6cc62c6 | 8988 | |
10f2d63a VZ |
8989 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` |
8990 | if test "x$LINE" != x ; then | |
8991 | eval "DEFAULT_$LINE" | |
8992 | else | |
8993 | no_cache=1 | |
8994 | fi | |
8995 | ||
8996 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
10f2d63a | 8997 | |
e6cc62c6 | 8998 | fi; |
10f2d63a VZ |
8999 | |
9000 | eval "$ac_cv_use_tooltips" | |
9001 | if test "$no_cache" != 1; then | |
9002 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9003 | fi | |
9004 | ||
9005 | if test "$wxUSE_TOOLTIPS" = yes; then | |
e6cc62c6 VS |
9006 | echo "$as_me:$LINENO: result: yes" >&5 |
9007 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9008 | else |
e6cc62c6 VS |
9009 | echo "$as_me:$LINENO: result: no" >&5 |
9010 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9011 | fi |
e6cc62c6 | 9012 | |
10f2d63a | 9013 | |
5005acfe | 9014 | enablestring= |
e6cc62c6 VS |
9015 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 |
9016 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
10f2d63a VZ |
9017 | no_cache=0 |
9018 | # Check whether --enable-splines or --disable-splines was given. | |
9019 | if test "${enable_splines+set}" = set; then | |
9020 | enableval="$enable_splines" | |
e6cc62c6 | 9021 | |
10f2d63a VZ |
9022 | if test "$enableval" = yes; then |
9023 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9024 | else | |
9025 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9026 | fi | |
e6cc62c6 | 9027 | |
10f2d63a | 9028 | else |
e6cc62c6 | 9029 | |
10f2d63a VZ |
9030 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` |
9031 | if test "x$LINE" != x ; then | |
9032 | eval "DEFAULT_$LINE" | |
9033 | else | |
9034 | no_cache=1 | |
9035 | fi | |
9036 | ||
9037 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
10f2d63a | 9038 | |
e6cc62c6 | 9039 | fi; |
10f2d63a VZ |
9040 | |
9041 | eval "$ac_cv_use_splines" | |
9042 | if test "$no_cache" != 1; then | |
9043 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9044 | fi | |
9045 | ||
9046 | if test "$wxUSE_SPLINES" = yes; then | |
e6cc62c6 VS |
9047 | echo "$as_me:$LINENO: result: yes" >&5 |
9048 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9049 | else |
e6cc62c6 VS |
9050 | echo "$as_me:$LINENO: result: no" >&5 |
9051 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9052 | fi |
e6cc62c6 | 9053 | |
10f2d63a | 9054 | |
5005acfe | 9055 | enablestring= |
e6cc62c6 VS |
9056 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 |
9057 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
10f2d63a VZ |
9058 | no_cache=0 |
9059 | # Check whether --enable-validators or --disable-validators was given. | |
9060 | if test "${enable_validators+set}" = set; then | |
9061 | enableval="$enable_validators" | |
e6cc62c6 | 9062 | |
10f2d63a VZ |
9063 | if test "$enableval" = yes; then |
9064 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9065 | else | |
9066 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9067 | fi | |
e6cc62c6 | 9068 | |
10f2d63a | 9069 | else |
e6cc62c6 | 9070 | |
10f2d63a VZ |
9071 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` |
9072 | if test "x$LINE" != x ; then | |
9073 | eval "DEFAULT_$LINE" | |
9074 | else | |
9075 | no_cache=1 | |
9076 | fi | |
9077 | ||
9078 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
10f2d63a | 9079 | |
e6cc62c6 | 9080 | fi; |
10f2d63a VZ |
9081 | |
9082 | eval "$ac_cv_use_validators" | |
9083 | if test "$no_cache" != 1; then | |
9084 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9085 | fi | |
9086 | ||
9087 | if test "$wxUSE_VALIDATORS" = yes; then | |
e6cc62c6 VS |
9088 | echo "$as_me:$LINENO: result: yes" >&5 |
9089 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9090 | else |
e6cc62c6 VS |
9091 | echo "$as_me:$LINENO: result: no" >&5 |
9092 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9093 | fi |
e6cc62c6 | 9094 | |
10f2d63a | 9095 | |
5005acfe | 9096 | enablestring= |
e6cc62c6 VS |
9097 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 |
9098 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
10f2d63a VZ |
9099 | no_cache=0 |
9100 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9101 | if test "${enable_busyinfo+set}" = set; then | |
9102 | enableval="$enable_busyinfo" | |
e6cc62c6 | 9103 | |
10f2d63a VZ |
9104 | if test "$enableval" = yes; then |
9105 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9106 | else | |
9107 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9108 | fi | |
e6cc62c6 | 9109 | |
10f2d63a | 9110 | else |
e6cc62c6 | 9111 | |
10f2d63a VZ |
9112 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` |
9113 | if test "x$LINE" != x ; then | |
9114 | eval "DEFAULT_$LINE" | |
9115 | else | |
9116 | no_cache=1 | |
9117 | fi | |
9118 | ||
9119 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
10f2d63a | 9120 | |
e6cc62c6 | 9121 | fi; |
10f2d63a VZ |
9122 | |
9123 | eval "$ac_cv_use_busyinfo" | |
9124 | if test "$no_cache" != 1; then | |
9125 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9126 | fi | |
9127 | ||
9128 | if test "$wxUSE_BUSYINFO" = yes; then | |
e6cc62c6 VS |
9129 | echo "$as_me:$LINENO: result: yes" >&5 |
9130 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9131 | else |
e6cc62c6 VS |
9132 | echo "$as_me:$LINENO: result: no" >&5 |
9133 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9134 | fi |
e6cc62c6 | 9135 | |
10f2d63a | 9136 | |
5005acfe | 9137 | enablestring= |
e6cc62c6 VS |
9138 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 |
9139 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
f6bcfd97 BP |
9140 | no_cache=0 |
9141 | # Check whether --enable-joystick or --disable-joystick was given. | |
9142 | if test "${enable_joystick+set}" = set; then | |
9143 | enableval="$enable_joystick" | |
e6cc62c6 | 9144 | |
f6bcfd97 BP |
9145 | if test "$enableval" = yes; then |
9146 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9147 | else | |
9148 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9149 | fi | |
e6cc62c6 | 9150 | |
f6bcfd97 | 9151 | else |
e6cc62c6 | 9152 | |
f6bcfd97 BP |
9153 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` |
9154 | if test "x$LINE" != x ; then | |
9155 | eval "DEFAULT_$LINE" | |
9156 | else | |
9157 | no_cache=1 | |
9158 | fi | |
9159 | ||
9160 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
f6bcfd97 | 9161 | |
e6cc62c6 | 9162 | fi; |
f6bcfd97 BP |
9163 | |
9164 | eval "$ac_cv_use_joystick" | |
9165 | if test "$no_cache" != 1; then | |
9166 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9167 | fi | |
9168 | ||
9169 | if test "$wxUSE_JOYSTICK" = yes; then | |
e6cc62c6 VS |
9170 | echo "$as_me:$LINENO: result: yes" >&5 |
9171 | echo "${ECHO_T}yes" >&6 | |
f6bcfd97 | 9172 | else |
e6cc62c6 VS |
9173 | echo "$as_me:$LINENO: result: no" >&5 |
9174 | echo "${ECHO_T}no" >&6 | |
f6bcfd97 | 9175 | fi |
e6cc62c6 | 9176 | |
698dcdb6 | 9177 | |
5005acfe | 9178 | enablestring= |
e6cc62c6 VS |
9179 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 |
9180 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
1e6feb95 VZ |
9181 | no_cache=0 |
9182 | # Check whether --enable-metafile or --disable-metafile was given. | |
9183 | if test "${enable_metafile+set}" = set; then | |
9184 | enableval="$enable_metafile" | |
e6cc62c6 | 9185 | |
1e6feb95 VZ |
9186 | if test "$enableval" = yes; then |
9187 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9188 | else | |
9189 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9190 | fi | |
e6cc62c6 | 9191 | |
1e6feb95 | 9192 | else |
e6cc62c6 | 9193 | |
1e6feb95 VZ |
9194 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` |
9195 | if test "x$LINE" != x ; then | |
9196 | eval "DEFAULT_$LINE" | |
9197 | else | |
9198 | no_cache=1 | |
9199 | fi | |
9200 | ||
9201 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
1e6feb95 | 9202 | |
e6cc62c6 | 9203 | fi; |
1e6feb95 VZ |
9204 | |
9205 | eval "$ac_cv_use_metafile" | |
9206 | if test "$no_cache" != 1; then | |
9207 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9208 | fi | |
9209 | ||
9210 | if test "$wxUSE_METAFILE" = yes; then | |
e6cc62c6 VS |
9211 | echo "$as_me:$LINENO: result: yes" >&5 |
9212 | echo "${ECHO_T}yes" >&6 | |
1e6feb95 | 9213 | else |
e6cc62c6 VS |
9214 | echo "$as_me:$LINENO: result: no" >&5 |
9215 | echo "${ECHO_T}no" >&6 | |
1e6feb95 | 9216 | fi |
e6cc62c6 | 9217 | |
1e6feb95 | 9218 | |
5005acfe | 9219 | enablestring= |
e6cc62c6 VS |
9220 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 |
9221 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
24fd6d87 VZ |
9222 | no_cache=0 |
9223 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9224 | if test "${enable_dragimage+set}" = set; then | |
9225 | enableval="$enable_dragimage" | |
e6cc62c6 | 9226 | |
24fd6d87 VZ |
9227 | if test "$enableval" = yes; then |
9228 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9229 | else | |
9230 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9231 | fi | |
e6cc62c6 | 9232 | |
24fd6d87 | 9233 | else |
e6cc62c6 | 9234 | |
24fd6d87 VZ |
9235 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` |
9236 | if test "x$LINE" != x ; then | |
9237 | eval "DEFAULT_$LINE" | |
9238 | else | |
9239 | no_cache=1 | |
9240 | fi | |
9241 | ||
9242 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
24fd6d87 | 9243 | |
e6cc62c6 | 9244 | fi; |
24fd6d87 VZ |
9245 | |
9246 | eval "$ac_cv_use_dragimage" | |
9247 | if test "$no_cache" != 1; then | |
9248 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9249 | fi | |
9250 | ||
9251 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
e6cc62c6 VS |
9252 | echo "$as_me:$LINENO: result: yes" >&5 |
9253 | echo "${ECHO_T}yes" >&6 | |
24fd6d87 | 9254 | else |
e6cc62c6 VS |
9255 | echo "$as_me:$LINENO: result: no" >&5 |
9256 | echo "${ECHO_T}no" >&6 | |
24fd6d87 | 9257 | fi |
e6cc62c6 | 9258 | |
52127426 | 9259 | |
7bb2947d | 9260 | enablestring= |
e6cc62c6 VS |
9261 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 |
9262 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
7bb2947d MB |
9263 | no_cache=0 |
9264 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9265 | if test "${enable_accessibility+set}" = set; then | |
9266 | enableval="$enable_accessibility" | |
e6cc62c6 | 9267 | |
7bb2947d MB |
9268 | if test "$enableval" = yes; then |
9269 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9270 | else | |
9271 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9272 | fi | |
e6cc62c6 | 9273 | |
7bb2947d | 9274 | else |
e6cc62c6 | 9275 | |
7bb2947d MB |
9276 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` |
9277 | if test "x$LINE" != x ; then | |
9278 | eval "DEFAULT_$LINE" | |
9279 | else | |
9280 | no_cache=1 | |
9281 | fi | |
9282 | ||
9283 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
7bb2947d | 9284 | |
e6cc62c6 | 9285 | fi; |
7bb2947d MB |
9286 | |
9287 | eval "$ac_cv_use_accessibility" | |
9288 | if test "$no_cache" != 1; then | |
9289 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9290 | fi | |
9291 | ||
9292 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
e6cc62c6 VS |
9293 | echo "$as_me:$LINENO: result: yes" >&5 |
9294 | echo "${ECHO_T}yes" >&6 | |
7bb2947d | 9295 | else |
e6cc62c6 VS |
9296 | echo "$as_me:$LINENO: result: no" >&5 |
9297 | echo "${ECHO_T}no" >&6 | |
7bb2947d | 9298 | fi |
e6cc62c6 | 9299 | |
7bb2947d | 9300 | |
8284b0c5 MB |
9301 | |
9302 | ||
5005acfe | 9303 | enablestring= |
e6cc62c6 VS |
9304 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 |
9305 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
edae8572 VZ |
9306 | no_cache=0 |
9307 | # Check whether --enable-palette or --disable-palette was given. | |
9308 | if test "${enable_palette+set}" = set; then | |
9309 | enableval="$enable_palette" | |
e6cc62c6 | 9310 | |
edae8572 VZ |
9311 | if test "$enableval" = yes; then |
9312 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9313 | else | |
9314 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9315 | fi | |
e6cc62c6 | 9316 | |
edae8572 | 9317 | else |
e6cc62c6 | 9318 | |
edae8572 VZ |
9319 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` |
9320 | if test "x$LINE" != x ; then | |
9321 | eval "DEFAULT_$LINE" | |
9322 | else | |
9323 | no_cache=1 | |
9324 | fi | |
9325 | ||
9326 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
edae8572 | 9327 | |
e6cc62c6 | 9328 | fi; |
edae8572 VZ |
9329 | |
9330 | eval "$ac_cv_use_palette" | |
9331 | if test "$no_cache" != 1; then | |
9332 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9333 | fi | |
9334 | ||
9335 | if test "$wxUSE_PALETTE" = yes; then | |
e6cc62c6 VS |
9336 | echo "$as_me:$LINENO: result: yes" >&5 |
9337 | echo "${ECHO_T}yes" >&6 | |
edae8572 | 9338 | else |
e6cc62c6 VS |
9339 | echo "$as_me:$LINENO: result: no" >&5 |
9340 | echo "${ECHO_T}no" >&6 | |
edae8572 | 9341 | fi |
e6cc62c6 | 9342 | |
edae8572 | 9343 | |
5005acfe | 9344 | enablestring= |
e6cc62c6 VS |
9345 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 |
9346 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
0046ff7c VS |
9347 | no_cache=0 |
9348 | # Check whether --enable-image or --disable-image was given. | |
9349 | if test "${enable_image+set}" = set; then | |
9350 | enableval="$enable_image" | |
e6cc62c6 | 9351 | |
0046ff7c VS |
9352 | if test "$enableval" = yes; then |
9353 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9354 | else | |
9355 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9356 | fi | |
e6cc62c6 | 9357 | |
0046ff7c | 9358 | else |
e6cc62c6 | 9359 | |
0046ff7c VS |
9360 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` |
9361 | if test "x$LINE" != x ; then | |
9362 | eval "DEFAULT_$LINE" | |
9363 | else | |
9364 | no_cache=1 | |
9365 | fi | |
9366 | ||
9367 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
0046ff7c | 9368 | |
e6cc62c6 | 9369 | fi; |
0046ff7c VS |
9370 | |
9371 | eval "$ac_cv_use_image" | |
9372 | if test "$no_cache" != 1; then | |
9373 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9374 | fi | |
9375 | ||
9376 | if test "$wxUSE_IMAGE" = yes; then | |
e6cc62c6 VS |
9377 | echo "$as_me:$LINENO: result: yes" >&5 |
9378 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9379 | else |
e6cc62c6 VS |
9380 | echo "$as_me:$LINENO: result: no" >&5 |
9381 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9382 | fi |
e6cc62c6 | 9383 | |
0046ff7c | 9384 | |
5005acfe | 9385 | enablestring= |
e6cc62c6 VS |
9386 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 |
9387 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
10f2d63a VZ |
9388 | no_cache=0 |
9389 | # Check whether --enable-gif or --disable-gif was given. | |
9390 | if test "${enable_gif+set}" = set; then | |
9391 | enableval="$enable_gif" | |
e6cc62c6 | 9392 | |
10f2d63a VZ |
9393 | if test "$enableval" = yes; then |
9394 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9395 | else | |
9396 | ac_cv_use_gif='wxUSE_GIF=no' | |
9397 | fi | |
e6cc62c6 | 9398 | |
10f2d63a | 9399 | else |
e6cc62c6 | 9400 | |
10f2d63a VZ |
9401 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` |
9402 | if test "x$LINE" != x ; then | |
9403 | eval "DEFAULT_$LINE" | |
9404 | else | |
9405 | no_cache=1 | |
9406 | fi | |
9407 | ||
9408 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
10f2d63a | 9409 | |
e6cc62c6 | 9410 | fi; |
10f2d63a VZ |
9411 | |
9412 | eval "$ac_cv_use_gif" | |
9413 | if test "$no_cache" != 1; then | |
9414 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9415 | fi | |
9416 | ||
9417 | if test "$wxUSE_GIF" = yes; then | |
e6cc62c6 VS |
9418 | echo "$as_me:$LINENO: result: yes" >&5 |
9419 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9420 | else |
e6cc62c6 VS |
9421 | echo "$as_me:$LINENO: result: no" >&5 |
9422 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9423 | fi |
e6cc62c6 | 9424 | |
10f2d63a | 9425 | |
5005acfe | 9426 | enablestring= |
e6cc62c6 VS |
9427 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 |
9428 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
10f2d63a VZ |
9429 | no_cache=0 |
9430 | # Check whether --enable-pcx or --disable-pcx was given. | |
9431 | if test "${enable_pcx+set}" = set; then | |
9432 | enableval="$enable_pcx" | |
e6cc62c6 | 9433 | |
10f2d63a VZ |
9434 | if test "$enableval" = yes; then |
9435 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9436 | else | |
9437 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9438 | fi | |
e6cc62c6 | 9439 | |
10f2d63a | 9440 | else |
e6cc62c6 | 9441 | |
10f2d63a VZ |
9442 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` |
9443 | if test "x$LINE" != x ; then | |
9444 | eval "DEFAULT_$LINE" | |
9445 | else | |
9446 | no_cache=1 | |
9447 | fi | |
9448 | ||
9449 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
10f2d63a | 9450 | |
e6cc62c6 | 9451 | fi; |
10f2d63a VZ |
9452 | |
9453 | eval "$ac_cv_use_pcx" | |
9454 | if test "$no_cache" != 1; then | |
9455 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9456 | fi | |
9457 | ||
9458 | if test "$wxUSE_PCX" = yes; then | |
e6cc62c6 VS |
9459 | echo "$as_me:$LINENO: result: yes" >&5 |
9460 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9461 | else |
e6cc62c6 VS |
9462 | echo "$as_me:$LINENO: result: no" >&5 |
9463 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9464 | fi |
e6cc62c6 | 9465 | |
10f2d63a | 9466 | |
5005acfe | 9467 | enablestring= |
e6cc62c6 VS |
9468 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 |
9469 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
4b6b4dfc RR |
9470 | no_cache=0 |
9471 | # Check whether --enable-iff or --disable-iff was given. | |
9472 | if test "${enable_iff+set}" = set; then | |
9473 | enableval="$enable_iff" | |
e6cc62c6 | 9474 | |
4b6b4dfc RR |
9475 | if test "$enableval" = yes; then |
9476 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9477 | else | |
9478 | ac_cv_use_iff='wxUSE_IFF=no' | |
9479 | fi | |
e6cc62c6 | 9480 | |
4b6b4dfc | 9481 | else |
e6cc62c6 | 9482 | |
4b6b4dfc RR |
9483 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` |
9484 | if test "x$LINE" != x ; then | |
9485 | eval "DEFAULT_$LINE" | |
9486 | else | |
9487 | no_cache=1 | |
9488 | fi | |
9489 | ||
9490 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
4b6b4dfc | 9491 | |
e6cc62c6 | 9492 | fi; |
4b6b4dfc RR |
9493 | |
9494 | eval "$ac_cv_use_iff" | |
9495 | if test "$no_cache" != 1; then | |
9496 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9497 | fi | |
9498 | ||
9499 | if test "$wxUSE_IFF" = yes; then | |
e6cc62c6 VS |
9500 | echo "$as_me:$LINENO: result: yes" >&5 |
9501 | echo "${ECHO_T}yes" >&6 | |
4b6b4dfc | 9502 | else |
e6cc62c6 VS |
9503 | echo "$as_me:$LINENO: result: no" >&5 |
9504 | echo "${ECHO_T}no" >&6 | |
4b6b4dfc | 9505 | fi |
e6cc62c6 | 9506 | |
4b6b4dfc | 9507 | |
5005acfe | 9508 | enablestring= |
e6cc62c6 VS |
9509 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 |
9510 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
10f2d63a VZ |
9511 | no_cache=0 |
9512 | # Check whether --enable-pnm or --disable-pnm was given. | |
9513 | if test "${enable_pnm+set}" = set; then | |
9514 | enableval="$enable_pnm" | |
e6cc62c6 | 9515 | |
10f2d63a VZ |
9516 | if test "$enableval" = yes; then |
9517 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9518 | else | |
9519 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9520 | fi | |
e6cc62c6 | 9521 | |
10f2d63a | 9522 | else |
e6cc62c6 | 9523 | |
10f2d63a VZ |
9524 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` |
9525 | if test "x$LINE" != x ; then | |
9526 | eval "DEFAULT_$LINE" | |
9527 | else | |
9528 | no_cache=1 | |
9529 | fi | |
9530 | ||
9531 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
10f2d63a | 9532 | |
e6cc62c6 | 9533 | fi; |
10f2d63a VZ |
9534 | |
9535 | eval "$ac_cv_use_pnm" | |
9536 | if test "$no_cache" != 1; then | |
9537 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9538 | fi | |
9539 | ||
9540 | if test "$wxUSE_PNM" = yes; then | |
e6cc62c6 VS |
9541 | echo "$as_me:$LINENO: result: yes" >&5 |
9542 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 9543 | else |
e6cc62c6 VS |
9544 | echo "$as_me:$LINENO: result: no" >&5 |
9545 | echo "${ECHO_T}no" >&6 | |
10f2d63a | 9546 | fi |
e6cc62c6 | 9547 | |
10f2d63a | 9548 | |
5005acfe | 9549 | enablestring= |
e6cc62c6 VS |
9550 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 |
9551 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
0046ff7c | 9552 | no_cache=0 |
69d27ff7 MB |
9553 | # Check whether --enable-xpm or --disable-xpm was given. |
9554 | if test "${enable_xpm+set}" = set; then | |
9555 | enableval="$enable_xpm" | |
e6cc62c6 | 9556 | |
0046ff7c | 9557 | if test "$enableval" = yes; then |
69d27ff7 | 9558 | ac_cv_use_xpm='wxUSE_XPM=yes' |
0046ff7c | 9559 | else |
69d27ff7 | 9560 | ac_cv_use_xpm='wxUSE_XPM=no' |
0046ff7c | 9561 | fi |
e6cc62c6 | 9562 | |
0046ff7c | 9563 | else |
e6cc62c6 | 9564 | |
0046ff7c VS |
9565 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` |
9566 | if test "x$LINE" != x ; then | |
9567 | eval "DEFAULT_$LINE" | |
9568 | else | |
9569 | no_cache=1 | |
9570 | fi | |
9571 | ||
69d27ff7 | 9572 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM |
0046ff7c | 9573 | |
e6cc62c6 | 9574 | fi; |
0046ff7c | 9575 | |
69d27ff7 | 9576 | eval "$ac_cv_use_xpm" |
0046ff7c | 9577 | if test "$no_cache" != 1; then |
69d27ff7 | 9578 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp |
0046ff7c VS |
9579 | fi |
9580 | ||
9581 | if test "$wxUSE_XPM" = yes; then | |
e6cc62c6 VS |
9582 | echo "$as_me:$LINENO: result: yes" >&5 |
9583 | echo "${ECHO_T}yes" >&6 | |
0046ff7c | 9584 | else |
e6cc62c6 VS |
9585 | echo "$as_me:$LINENO: result: no" >&5 |
9586 | echo "${ECHO_T}no" >&6 | |
0046ff7c | 9587 | fi |
e6cc62c6 | 9588 | |
0046ff7c | 9589 | |
5005acfe | 9590 | enablestring= |
e6cc62c6 VS |
9591 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 |
9592 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
658974ae | 9593 | no_cache=0 |
c7206e64 VS |
9594 | # Check whether --enable-ico_cur or --disable-ico_cur was given. |
9595 | if test "${enable_ico_cur+set}" = set; then | |
9596 | enableval="$enable_ico_cur" | |
e6cc62c6 | 9597 | |
658974ae | 9598 | if test "$enableval" = yes; then |
c7206e64 | 9599 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' |
658974ae | 9600 | else |
c7206e64 | 9601 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' |
658974ae | 9602 | fi |
e6cc62c6 | 9603 | |
658974ae | 9604 | else |
e6cc62c6 | 9605 | |
658974ae VS |
9606 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` |
9607 | if test "x$LINE" != x ; then | |
9608 | eval "DEFAULT_$LINE" | |
9609 | else | |
9610 | no_cache=1 | |
9611 | fi | |
9612 | ||
c7206e64 | 9613 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR |
658974ae | 9614 | |
e6cc62c6 | 9615 | fi; |
658974ae | 9616 | |
c7206e64 | 9617 | eval "$ac_cv_use_ico_cur" |
658974ae | 9618 | if test "$no_cache" != 1; then |
c7206e64 | 9619 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp |
658974ae VS |
9620 | fi |
9621 | ||
9622 | if test "$wxUSE_ICO_CUR" = yes; then | |
e6cc62c6 VS |
9623 | echo "$as_me:$LINENO: result: yes" >&5 |
9624 | echo "${ECHO_T}yes" >&6 | |
658974ae | 9625 | else |
e6cc62c6 VS |
9626 | echo "$as_me:$LINENO: result: no" >&5 |
9627 | echo "${ECHO_T}no" >&6 | |
658974ae | 9628 | fi |
e6cc62c6 | 9629 | |
658974ae | 9630 | |
b12915c1 VZ |
9631 | fi |
9632 | ||
029b47ad VS |
9633 | |
9634 | ||
9635 | enablestring= | |
9636 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9637 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9638 | no_cache=0 | |
9639 | # Check whether --enable-official_build or --disable-official_build was given. | |
9640 | if test "${enable_official_build+set}" = set; then | |
9641 | enableval="$enable_official_build" | |
9642 | ||
9643 | if test "$enableval" = yes; then | |
9644 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9645 | else | |
9646 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9647 | fi | |
9648 | ||
9649 | else | |
9650 | ||
9651 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9652 | if test "x$LINE" != x ; then | |
9653 | eval "DEFAULT_$LINE" | |
9654 | else | |
9655 | no_cache=1 | |
9656 | fi | |
9657 | ||
9658 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9659 | ||
9660 | fi; | |
9661 | ||
9662 | eval "$ac_cv_use_official_build" | |
9663 | if test "$no_cache" != 1; then | |
9664 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9665 | fi | |
9666 | ||
9667 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9668 | echo "$as_me:$LINENO: result: yes" >&5 | |
9669 | echo "${ECHO_T}yes" >&6 | |
9670 | else | |
9671 | echo "$as_me:$LINENO: result: no" >&5 | |
9672 | echo "${ECHO_T}no" >&6 | |
9673 | fi | |
9674 | ||
9675 | # Check whether --enable-vendor or --disable-vendor was given. | |
9676 | if test "${enable_vendor+set}" = set; then | |
9677 | enableval="$enable_vendor" | |
9678 | VENDOR="$enableval" | |
9679 | fi; | |
9680 | if test "x$VENDOR" = "x"; then | |
9681 | VENDOR="custom" | |
9682 | fi | |
9683 | ||
d558c907 VS |
9684 | case "${host}" in |
9685 | *-pc-os2_emx | *-pc-os2-emx ) | |
6969f178 | 9686 | PATH_IFS=';' |
d558c907 VS |
9687 | ;; |
9688 | *) | |
9689 | PATH_IFS=':' | |
d558c907 VS |
9690 | ;; |
9691 | esac | |
9692 | ||
8284b0c5 MB |
9693 | |
9694 | ||
10f2d63a VZ |
9695 | echo "saving argument cache $wx_arg_cache_file" |
9696 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
52127426 | 9697 | |
8284b0c5 | 9698 | |
e6cc62c6 VS |
9699 | |
9700 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9701 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
89e6bf6d VZ |
9702 | |
9703 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9704 | if test "$wxUSE_WINE" = "yes"; then | |
9705 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9706 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9707 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
74500461 | 9708 | wxUSE_SHARED=no |
89e6bf6d | 9709 | fi |
10f2d63a VZ |
9710 | |
9711 | if test "$wxUSE_GUI" = "yes"; then | |
9712 | ||
3a922bb4 | 9713 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
9714 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 |
9715 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9716 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9717 | fi |
b12915c1 | 9718 | |
3a922bb4 RL |
9719 | if test "$TOOLKIT_GIVEN" = 1; then |
9720 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9721 | var=wxUSE_$toolkit | |
9722 | eval "value=\$${var}" | |
9723 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9724 | done | |
10f2d63a | 9725 | else |
3a922bb4 RL |
9726 | for toolkit in `echo $ALL_TOOLKITS`; do |
9727 | if test "$has_toolkit_in_cache" != 1; then | |
9728 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9729 | else | |
9730 | var=DEFAULT_wxUSE_$toolkit | |
9731 | fi | |
9732 | eval "wxUSE_$toolkit=\$${var}" | |
9733 | done | |
10f2d63a | 9734 | fi |
10f2d63a | 9735 | |
ac0c4cc3 DE |
9736 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ |
9737 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9738 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
10f2d63a | 9739 | |
d558c907 | 9740 | case "${host}" in |
6fa882bd | 9741 | *-pc-os2_emx | *-pc-os2-emx ) |
3a922bb4 | 9742 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` |
3a922bb4 | 9743 | esac |
10f2d63a | 9744 | |
3a922bb4 RL |
9745 | case "$NUM_TOOLKITS" in |
9746 | 1) | |
9747 | ;; | |
9748 | 0) | |
e6cc62c6 VS |
9749 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 |
9750 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9751 | { (exit 1); exit 1; }; } | |
3a922bb4 RL |
9752 | ;; |
9753 | *) | |
e6cc62c6 VS |
9754 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 |
9755 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9756 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9757 | esac |
10f2d63a | 9758 | |
3a922bb4 RL |
9759 | for toolkit in `echo $ALL_TOOLKITS`; do |
9760 | var=wxUSE_$toolkit | |
9761 | eval "value=\$${var}" | |
9762 | if test "x$value" != x; then | |
9763 | cache_var=CACHE_$toolkit | |
9764 | eval "cache=\$${cache_var}" | |
9765 | if test "$cache" = 1; then | |
9766 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9767 | fi | |
9768 | if test "$value" = 1; then | |
89fe663f | 9769 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` |
e6cc62c6 VS |
9770 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 |
9771 | echo "${ECHO_T}$toolkit_echo" >&6 | |
3a922bb4 RL |
9772 | fi |
9773 | fi | |
9774 | done | |
10f2d63a | 9775 | else |
9de9b8f0 VZ |
9776 | if test "x$host_alias" != "x"; then |
9777 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
e6cc62c6 | 9778 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 |
9de9b8f0 VZ |
9779 | else |
9780 | echo "$as_me:$LINENO: result: base only" >&5 | |
9781 | echo "${ECHO_T}base only" >&6 | |
9782 | fi | |
10f2d63a VZ |
9783 | fi |
9784 | ||
43d99b6d VS |
9785 | wants_win32=0 |
9786 | doesnt_want_win32=0 | |
17234b26 MB |
9787 | case "${host}" in |
9788 | *-*-cygwin*) | |
9789 | if test "$wxUSE_MSW" = 1 ; then | |
43d99b6d VS |
9790 | wants_win32=1 |
9791 | else | |
9792 | doesnt_want_win32=1 | |
17234b26 MB |
9793 | fi |
9794 | ;; | |
9795 | *-*-mingw*) | |
43d99b6d | 9796 | wants_win32=1 |
17234b26 MB |
9797 | ;; |
9798 | esac | |
9799 | ||
89e6bf6d VZ |
9800 | if test "$wxUSE_WINE" = "yes"; then |
9801 | wants_win32=1 | |
9802 | CC=winegcc | |
9803 | CXX=wineg++ | |
9804 | RESCOMP=wrc | |
30f2fa6c | 9805 | LDFLAGS_GUI="-mwindows" |
89e6bf6d VZ |
9806 | fi |
9807 | ||
43d99b6d | 9808 | if test "$wants_win32" = 1 ; then |
17234b26 MB |
9809 | USE_UNIX=0 |
9810 | USE_WIN32=1 | |
e6cc62c6 | 9811 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9812 | #define __WIN32__ 1 |
e6cc62c6 | 9813 | _ACEOF |
17234b26 | 9814 | |
e6cc62c6 | 9815 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9816 | #define __WIN95__ 1 |
e6cc62c6 | 9817 | _ACEOF |
17234b26 | 9818 | |
e6cc62c6 | 9819 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9820 | #define __WINDOWS__ 1 |
e6cc62c6 | 9821 | _ACEOF |
17234b26 | 9822 | |
e6cc62c6 | 9823 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9824 | #define __GNUWIN32__ 1 |
e6cc62c6 | 9825 | _ACEOF |
17234b26 | 9826 | |
e6cc62c6 | 9827 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9828 | #define STRICT 1 |
e6cc62c6 | 9829 | _ACEOF |
17234b26 | 9830 | |
e6cc62c6 | 9831 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9832 | #define WINVER 0x0400 |
e6cc62c6 | 9833 | _ACEOF |
17234b26 | 9834 | |
43d99b6d VS |
9835 | fi |
9836 | if test "$doesnt_want_win32" = 1 ; then | |
17234b26 MB |
9837 | USE_UNIX=1 |
9838 | USE_WIN32=0 | |
9839 | fi | |
9840 | ||
9841 | if test "$USE_UNIX" = 1 ; then | |
9842 | wxUSE_UNIX=yes | |
e6cc62c6 | 9843 | cat >>confdefs.h <<\_ACEOF |
17234b26 | 9844 | #define __UNIX__ 1 |
e6cc62c6 | 9845 | _ACEOF |
17234b26 MB |
9846 | |
9847 | fi | |
9848 | ||
8284b0c5 | 9849 | |
e6cc62c6 | 9850 | cat >confcache <<\_ACEOF |
10f2d63a VZ |
9851 | # This file is a shell script that caches the results of configure |
9852 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
9853 | # scripts and configure runs, see configure's option --config-cache. |
9854 | # It is not useful on other systems. If it contains results you don't | |
9855 | # want to keep, you may remove or edit it. | |
10f2d63a | 9856 | # |
e6cc62c6 VS |
9857 | # config.status only pays attention to the cache file if you give it |
9858 | # the --recheck option to rerun configure. | |
10f2d63a | 9859 | # |
e6cc62c6 VS |
9860 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9861 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9862 | # following values. | |
9863 | ||
9864 | _ACEOF | |
9865 | ||
10f2d63a VZ |
9866 | # The following way of writing the cache mishandles newlines in values, |
9867 | # but we know of no workaround that is simple, portable, and efficient. | |
9868 | # So, don't put newlines in cache variables' values. | |
9869 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9870 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
9871 | { |
9872 | (set) 2>&1 | | |
9873 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9874 | *ac_space=\ *) | |
9875 | # `set' does not quote correctly, so add quotes (double-quote | |
9876 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9877 | sed -n \ | |
09d3439c VZ |
9878 | "s/'/'\\\\''/g; |
9879 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
9880 | ;; |
9881 | *) | |
9882 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9883 | sed -n \ | |
09d3439c | 9884 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
9885 | ;; |
9886 | esac; | |
9887 | } | | |
9888 | sed ' | |
9889 | t clear | |
9890 | : clear | |
9891 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9892 | t end | |
9893 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9894 | : end' >>confcache | |
9895 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10f2d63a | 9896 | if test -w $cache_file; then |
e6cc62c6 VS |
9897 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9898 | cat confcache >$cache_file | |
10f2d63a VZ |
9899 | else |
9900 | echo "not updating unwritable cache $cache_file" | |
9901 | fi | |
9902 | fi | |
9903 | rm -f confcache | |
9904 | ||
e59890c3 | 9905 | if test "$build" != "$host" ; then |
9d353d4a | 9906 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then |
3a922bb4 RL |
9907 | CC=$host_alias-gcc |
9908 | CXX=$host_alias-c++ | |
9909 | AR=$host_alias-ar | |
9910 | RANLIB=$host_alias-ranlib | |
9911 | DLLTOOL=$host_alias-dlltool | |
9912 | RESCOMP=$host_alias-windres | |
9913 | LD=$host_alias-ld | |
9914 | NM=$host_alias-nm | |
9915 | STRIP=$host_alias-strip | |
9916 | else | |
e6cc62c6 VS |
9917 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 |
9918 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
9919 | { (exit 1); exit 1; }; } | |
3a922bb4 | 9920 | fi |
10f2d63a VZ |
9921 | fi |
9922 | ||
ec603395 | 9923 | CFLAGS=${CFLAGS:=} |
e6cc62c6 VS |
9924 | ac_ext=c |
9925 | ac_cpp='$CPP $CPPFLAGS' | |
9926 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9927 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9928 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9929 | if test -n "$ac_tool_prefix"; then | |
9930 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
9931 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
9932 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
9933 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9934 | if test "${ac_cv_prog_CC+set}" = set; then | |
9935 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9936 | else | |
9937 | if test -n "$CC"; then | |
9938 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
9939 | else | |
9940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9941 | for as_dir in $PATH | |
9942 | do | |
9943 | IFS=$as_save_IFS | |
9944 | test -z "$as_dir" && as_dir=. | |
9945 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9946 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9947 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
9948 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9949 | break 2 | |
9950 | fi | |
9951 | done | |
9952 | done | |
9953 | ||
9954 | fi | |
9955 | fi | |
9956 | CC=$ac_cv_prog_CC | |
9957 | if test -n "$CC"; then | |
9958 | echo "$as_me:$LINENO: result: $CC" >&5 | |
9959 | echo "${ECHO_T}$CC" >&6 | |
9960 | else | |
9961 | echo "$as_me:$LINENO: result: no" >&5 | |
9962 | echo "${ECHO_T}no" >&6 | |
9963 | fi | |
9964 | ||
9965 | fi | |
9966 | if test -z "$ac_cv_prog_CC"; then | |
9967 | ac_ct_CC=$CC | |
9968 | # Extract the first word of "gcc", so it can be a program name with args. | |
8284b0c5 | 9969 | set dummy gcc; ac_word=$2 |
e6cc62c6 VS |
9970 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
9971 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
9972 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
9973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9974 | else | |
9975 | if test -n "$ac_ct_CC"; then | |
9976 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
9977 | else | |
9978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9979 | for as_dir in $PATH | |
9980 | do | |
9981 | IFS=$as_save_IFS | |
9982 | test -z "$as_dir" && as_dir=. | |
9983 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9984 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
9985 | ac_cv_prog_ac_ct_CC="gcc" | |
9986 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9987 | break 2 | |
9988 | fi | |
9989 | done | |
9990 | done | |
9991 | ||
9992 | fi | |
9993 | fi | |
9994 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
9995 | if test -n "$ac_ct_CC"; then | |
9996 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
9997 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
9998 | else | |
9999 | echo "$as_me:$LINENO: result: no" >&5 | |
10000 | echo "${ECHO_T}no" >&6 | |
10001 | fi | |
10002 | ||
10003 | CC=$ac_ct_CC | |
10004 | else | |
10005 | CC="$ac_cv_prog_CC" | |
10006 | fi | |
10007 | ||
10008 | if test -z "$CC"; then | |
10009 | if test -n "$ac_tool_prefix"; then | |
10010 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10011 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10012 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10013 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10014 | if test "${ac_cv_prog_CC+set}" = set; then | |
10015 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6232543b VS |
10016 | else |
10017 | if test -n "$CC"; then | |
10018 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10f2d63a | 10019 | else |
e6cc62c6 VS |
10020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10021 | for as_dir in $PATH | |
10022 | do | |
10023 | IFS=$as_save_IFS | |
10024 | test -z "$as_dir" && as_dir=. | |
10025 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10026 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10027 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10028 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10029 | break 2 | |
10030 | fi | |
10031 | done | |
10032 | done | |
10033 | ||
10f2d63a | 10034 | fi |
6232543b | 10035 | fi |
e6cc62c6 | 10036 | CC=$ac_cv_prog_CC |
6232543b | 10037 | if test -n "$CC"; then |
e6cc62c6 VS |
10038 | echo "$as_me:$LINENO: result: $CC" >&5 |
10039 | echo "${ECHO_T}$CC" >&6 | |
10040 | else | |
10041 | echo "$as_me:$LINENO: result: no" >&5 | |
10042 | echo "${ECHO_T}no" >&6 | |
10043 | fi | |
10044 | ||
10045 | fi | |
10046 | if test -z "$ac_cv_prog_CC"; then | |
10047 | ac_ct_CC=$CC | |
10048 | # Extract the first word of "cc", so it can be a program name with args. | |
10049 | set dummy cc; ac_word=$2 | |
10050 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10051 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10052 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10054 | else | |
10055 | if test -n "$ac_ct_CC"; then | |
10056 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10057 | else | |
10058 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10059 | for as_dir in $PATH | |
10060 | do | |
10061 | IFS=$as_save_IFS | |
10062 | test -z "$as_dir" && as_dir=. | |
10063 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10064 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10065 | ac_cv_prog_ac_ct_CC="cc" | |
10066 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10067 | break 2 | |
10068 | fi | |
10069 | done | |
10070 | done | |
10071 | ||
10072 | fi | |
10073 | fi | |
10074 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10075 | if test -n "$ac_ct_CC"; then | |
10076 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10077 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10078 | else | |
10079 | echo "$as_me:$LINENO: result: no" >&5 | |
10080 | echo "${ECHO_T}no" >&6 | |
10081 | fi | |
10082 | ||
10083 | CC=$ac_ct_CC | |
247f5006 | 10084 | else |
e6cc62c6 | 10085 | CC="$ac_cv_prog_CC" |
247f5006 VZ |
10086 | fi |
10087 | ||
e6cc62c6 | 10088 | fi |
5c6fa7d2 RR |
10089 | if test -z "$CC"; then |
10090 | # Extract the first word of "cc", so it can be a program name with args. | |
10091 | set dummy cc; ac_word=$2 | |
e6cc62c6 VS |
10092 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
10093 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10094 | if test "${ac_cv_prog_CC+set}" = set; then | |
10095 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 RR |
10096 | else |
10097 | if test -n "$CC"; then | |
10098 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10099 | else | |
10100 | ac_prog_rejected=no | |
e6cc62c6 VS |
10101 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10102 | for as_dir in $PATH | |
10103 | do | |
10104 | IFS=$as_save_IFS | |
10105 | test -z "$as_dir" && as_dir=. | |
10106 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10107 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10108 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10109 | ac_prog_rejected=yes | |
10110 | continue | |
10111 | fi | |
10112 | ac_cv_prog_CC="cc" | |
10113 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10114 | break 2 | |
10115 | fi | |
10116 | done | |
10117 | done | |
10118 | ||
328a083c RR |
10119 | if test $ac_prog_rejected = yes; then |
10120 | # We found a bogon in the path, so make sure we never use it. | |
10121 | set dummy $ac_cv_prog_CC | |
10122 | shift | |
e6cc62c6 | 10123 | if test $# != 0; then |
328a083c | 10124 | # We chose a different compiler from the bogus one. |
1e487827 VS |
10125 | # However, it has the same basename, so the bogon will be chosen |
10126 | # first if we set CC to just the basename; use the full file name. | |
10127 | shift | |
e6cc62c6 | 10128 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
703e0a69 | 10129 | fi |
1e487827 VS |
10130 | fi |
10131 | fi | |
10132 | fi | |
e6cc62c6 | 10133 | CC=$ac_cv_prog_CC |
1e487827 | 10134 | if test -n "$CC"; then |
e6cc62c6 VS |
10135 | echo "$as_me:$LINENO: result: $CC" >&5 |
10136 | echo "${ECHO_T}$CC" >&6 | |
703e0a69 | 10137 | else |
e6cc62c6 VS |
10138 | echo "$as_me:$LINENO: result: no" >&5 |
10139 | echo "${ECHO_T}no" >&6 | |
703e0a69 | 10140 | fi |
1e487827 | 10141 | |
e6cc62c6 VS |
10142 | fi |
10143 | if test -z "$CC"; then | |
10144 | if test -n "$ac_tool_prefix"; then | |
10145 | for ac_prog in cl | |
10146 | do | |
10147 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10148 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10149 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10150 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10151 | if test "${ac_cv_prog_CC+set}" = set; then | |
10152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf VS |
10153 | else |
10154 | if test -n "$CC"; then | |
10155 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10156 | else | |
e6cc62c6 VS |
10157 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
10158 | for as_dir in $PATH | |
10159 | do | |
10160 | IFS=$as_save_IFS | |
10161 | test -z "$as_dir" && as_dir=. | |
10162 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10163 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10164 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10165 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10166 | break 2 | |
10167 | fi | |
10168 | done | |
10169 | done | |
10170 | ||
f09359cf VS |
10171 | fi |
10172 | fi | |
e6cc62c6 | 10173 | CC=$ac_cv_prog_CC |
f09359cf | 10174 | if test -n "$CC"; then |
e6cc62c6 VS |
10175 | echo "$as_me:$LINENO: result: $CC" >&5 |
10176 | echo "${ECHO_T}$CC" >&6 | |
f09359cf | 10177 | else |
e6cc62c6 VS |
10178 | echo "$as_me:$LINENO: result: no" >&5 |
10179 | echo "${ECHO_T}no" >&6 | |
5c6fa7d2 | 10180 | fi |
1e487827 | 10181 | |
e6cc62c6 VS |
10182 | test -n "$CC" && break |
10183 | done | |
10184 | fi | |
10185 | if test -z "$CC"; then | |
10186 | ac_ct_CC=$CC | |
10187 | for ac_prog in cl | |
10188 | do | |
10189 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10190 | set dummy $ac_prog; ac_word=$2 | |
10191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10193 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10194 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10195 | else | |
10196 | if test -n "$ac_ct_CC"; then | |
10197 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10198 | else | |
10199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10200 | for as_dir in $PATH | |
10201 | do | |
10202 | IFS=$as_save_IFS | |
10203 | test -z "$as_dir" && as_dir=. | |
10204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10205 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10206 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10208 | break 2 | |
10209 | fi | |
10210 | done | |
10211 | done | |
f09359cf | 10212 | |
e6cc62c6 VS |
10213 | fi |
10214 | fi | |
10215 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10216 | if test -n "$ac_ct_CC"; then | |
10217 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10218 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10219 | else | |
10220 | echo "$as_me:$LINENO: result: no" >&5 | |
10221 | echo "${ECHO_T}no" >&6 | |
10222 | fi | |
f09359cf | 10223 | |
e6cc62c6 VS |
10224 | test -n "$ac_ct_CC" && break |
10225 | done | |
247f5006 | 10226 | |
e6cc62c6 VS |
10227 | CC=$ac_ct_CC |
10228 | fi | |
10229 | ||
10230 | fi | |
10231 | ||
10232 | ||
10233 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10234 | See \`config.log' for more details." >&5 | |
10235 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10236 | See \`config.log' for more details." >&2;} | |
10237 | { (exit 1); exit 1; }; } | |
10238 | ||
10239 | # Provide some information about the compiler. | |
10240 | echo "$as_me:$LINENO:" \ | |
10241 | "checking for C compiler version" >&5 | |
10242 | ac_compiler=`set X $ac_compile; echo $2` | |
10243 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10244 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10245 | ac_status=$? | |
10246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10247 | (exit $ac_status); } | |
10248 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10249 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10250 | ac_status=$? | |
10251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10252 | (exit $ac_status); } | |
10253 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10254 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10255 | ac_status=$? | |
10256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10257 | (exit $ac_status); } | |
10258 | ||
10259 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 10260 | #line $LINENO "configure" |
e6cc62c6 VS |
10261 | /* confdefs.h. */ |
10262 | _ACEOF | |
10263 | cat confdefs.h >>conftest.$ac_ext | |
10264 | cat >>conftest.$ac_ext <<_ACEOF | |
10265 | /* end confdefs.h. */ | |
10266 | ||
10267 | int | |
10268 | main () | |
10269 | { | |
247f5006 | 10270 | |
e6cc62c6 VS |
10271 | ; |
10272 | return 0; | |
10273 | } | |
10274 | _ACEOF | |
10275 | ac_clean_files_save=$ac_clean_files | |
10276 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10277 | # Try to create an executable without -o first, disregard a.out. | |
10278 | # It will help us diagnose broken compilers, and finding out an intuition | |
10279 | # of exeext. | |
09d3439c VZ |
10280 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
10281 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
e6cc62c6 VS |
10282 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10283 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10284 | (eval $ac_link_default) 2>&5 | |
10285 | ac_status=$? | |
10286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10287 | (exit $ac_status); }; then | |
10288 | # Find the output, starting from the most likely. This scheme is | |
10289 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10290 | # resort. | |
10291 | ||
10292 | # Be careful to initialize this variable, since it used to be cached. | |
10293 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10294 | ac_cv_exeext= | |
10295 | # b.out is created by i960 compilers. | |
10296 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10297 | do | |
10298 | test -f "$ac_file" || continue | |
10299 | case $ac_file in | |
10300 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
09d3439c | 10301 | ;; |
e6cc62c6 | 10302 | conftest.$ac_ext ) |
09d3439c VZ |
10303 | # This is the source file. |
10304 | ;; | |
e6cc62c6 | 10305 | [ab].out ) |
09d3439c VZ |
10306 | # We found the default executable, but exeext='' is most |
10307 | # certainly right. | |
10308 | break;; | |
e6cc62c6 | 10309 | *.* ) |
09d3439c VZ |
10310 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10311 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10312 | # but it would be cool to find out if it's true. Does anybody | |
10313 | # maintain Libtool? --akim. | |
10314 | export ac_cv_exeext | |
10315 | break;; | |
e6cc62c6 | 10316 | * ) |
09d3439c | 10317 | break;; |
e6cc62c6 VS |
10318 | esac |
10319 | done | |
10320 | else | |
10321 | echo "$as_me: failed program was:" >&5 | |
10322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10323 | ||
10324 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10325 | See \`config.log' for more details." >&5 | |
10326 | echo "$as_me: error: C compiler cannot create executables | |
10327 | See \`config.log' for more details." >&2;} | |
10328 | { (exit 77); exit 77; }; } | |
10329 | fi | |
10330 | ||
10331 | ac_exeext=$ac_cv_exeext | |
10332 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10333 | echo "${ECHO_T}$ac_file" >&6 | |
10334 | ||
10335 | # Check the compiler produces executables we can run. If not, either | |
10336 | # the compiler is broken, or we cross compile. | |
10337 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10338 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10339 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10340 | # If not cross compiling, check that we can run a simple program. | |
10341 | if test "$cross_compiling" != yes; then | |
10342 | if { ac_try='./$ac_file' | |
10343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10344 | (eval $ac_try) 2>&5 | |
10345 | ac_status=$? | |
10346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10347 | (exit $ac_status); }; }; then | |
10348 | cross_compiling=no | |
698dcdb6 | 10349 | else |
e6cc62c6 VS |
10350 | if test "$cross_compiling" = maybe; then |
10351 | cross_compiling=yes | |
10352 | else | |
10353 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10354 | If you meant to cross compile, use \`--host'. | |
10355 | See \`config.log' for more details." >&5 | |
10356 | echo "$as_me: error: cannot run C compiled programs. | |
10357 | If you meant to cross compile, use \`--host'. | |
10358 | See \`config.log' for more details." >&2;} | |
10359 | { (exit 1); exit 1; }; } | |
10360 | fi | |
698dcdb6 | 10361 | fi |
52127426 | 10362 | fi |
e6cc62c6 VS |
10363 | echo "$as_me:$LINENO: result: yes" >&5 |
10364 | echo "${ECHO_T}yes" >&6 | |
10365 | ||
10366 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10367 | ac_clean_files=$ac_clean_files_save | |
10368 | # Check the compiler produces executables we can run. If not, either | |
10369 | # the compiler is broken, or we cross compile. | |
10370 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10371 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10372 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10373 | echo "${ECHO_T}$cross_compiling" >&6 | |
10374 | ||
10375 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10376 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10377 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10378 | (eval $ac_link) 2>&5 | |
10379 | ac_status=$? | |
10380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10381 | (exit $ac_status); }; then | |
10382 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10383 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10384 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10385 | # `rm'. | |
10386 | for ac_file in conftest.exe conftest conftest.*; do | |
10387 | test -f "$ac_file" || continue | |
10388 | case $ac_file in | |
10389 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10390 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
09d3439c VZ |
10391 | export ac_cv_exeext |
10392 | break;; | |
e6cc62c6 VS |
10393 | * ) break;; |
10394 | esac | |
10395 | done | |
5c6fa7d2 | 10396 | else |
e6cc62c6 VS |
10397 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
10398 | See \`config.log' for more details." >&5 | |
10399 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10400 | See \`config.log' for more details." >&2;} | |
10401 | { (exit 1); exit 1; }; } | |
10402 | fi | |
10403 | ||
10404 | rm -f conftest$ac_cv_exeext | |
10405 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10406 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10407 | ||
10408 | rm -f conftest.$ac_ext | |
10409 | EXEEXT=$ac_cv_exeext | |
10410 | ac_exeext=$EXEEXT | |
10411 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10412 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10413 | if test "${ac_cv_objext+set}" = set; then | |
10414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10415 | else | |
10416 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 10417 | #line $LINENO "configure" |
e6cc62c6 VS |
10418 | /* confdefs.h. */ |
10419 | _ACEOF | |
10420 | cat confdefs.h >>conftest.$ac_ext | |
10421 | cat >>conftest.$ac_ext <<_ACEOF | |
10422 | /* end confdefs.h. */ | |
10423 | ||
10424 | int | |
10425 | main () | |
10426 | { | |
f09359cf | 10427 | |
e6cc62c6 VS |
10428 | ; |
10429 | return 0; | |
10430 | } | |
10431 | _ACEOF | |
10432 | rm -f conftest.o conftest.obj | |
10433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10434 | (eval $ac_compile) 2>&5 | |
10435 | ac_status=$? | |
10436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10437 | (exit $ac_status); }; then | |
10438 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10439 | case $ac_file in | |
10440 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10441 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10442 | break;; | |
10443 | esac | |
10444 | done | |
a0b9e27f | 10445 | else |
e6cc62c6 VS |
10446 | echo "$as_me: failed program was:" >&5 |
10447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10448 | ||
10449 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10450 | See \`config.log' for more details." >&5 | |
10451 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10452 | See \`config.log' for more details." >&2;} | |
10453 | { (exit 1); exit 1; }; } | |
a0b9e27f | 10454 | fi |
247f5006 | 10455 | |
e6cc62c6 VS |
10456 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
10457 | fi | |
10458 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10459 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10460 | OBJEXT=$ac_cv_objext | |
10461 | ac_objext=$OBJEXT | |
10462 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10463 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10464 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 10466 | else |
e6cc62c6 | 10467 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 10468 | #line $LINENO "configure" |
e6cc62c6 VS |
10469 | /* confdefs.h. */ |
10470 | _ACEOF | |
10471 | cat confdefs.h >>conftest.$ac_ext | |
10472 | cat >>conftest.$ac_ext <<_ACEOF | |
10473 | /* end confdefs.h. */ | |
10474 | ||
10475 | int | |
10476 | main () | |
10477 | { | |
10478 | #ifndef __GNUC__ | |
10479 | choke me | |
10480 | #endif | |
10481 | ||
10482 | ; | |
10483 | return 0; | |
10484 | } | |
10485 | _ACEOF | |
10486 | rm -f conftest.$ac_objext | |
10487 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 10488 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
10489 | ac_status=$? |
10490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10491 | (exit $ac_status); } && | |
09d3439c | 10492 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
10493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10494 | (eval $ac_try) 2>&5 | |
10495 | ac_status=$? | |
10496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10497 | (exit $ac_status); }; }; then | |
10498 | ac_compiler_gnu=yes | |
10499 | else | |
10500 | echo "$as_me: failed program was:" >&5 | |
10501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10502 | ||
10503 | ac_compiler_gnu=no | |
10504 | fi | |
09d3439c | 10505 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10506 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10507 | ||
10508 | fi | |
10509 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10510 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10511 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10512 | ac_test_CFLAGS=${CFLAGS+set} | |
10513 | ac_save_CFLAGS=$CFLAGS | |
10514 | CFLAGS="-g" | |
10515 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10516 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10517 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10519 | else | |
10520 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 10521 | #line $LINENO "configure" |
e6cc62c6 VS |
10522 | /* confdefs.h. */ |
10523 | _ACEOF | |
10524 | cat confdefs.h >>conftest.$ac_ext | |
10525 | cat >>conftest.$ac_ext <<_ACEOF | |
10526 | /* end confdefs.h. */ | |
10527 | ||
10528 | int | |
10529 | main () | |
10530 | { | |
10531 | ||
10532 | ; | |
10533 | return 0; | |
10534 | } | |
10535 | _ACEOF | |
10536 | rm -f conftest.$ac_objext | |
10537 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 10538 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
10539 | ac_status=$? |
10540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10541 | (exit $ac_status); } && | |
09d3439c | 10542 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
10543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10544 | (eval $ac_try) 2>&5 | |
10545 | ac_status=$? | |
10546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10547 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
10548 | ac_cv_prog_cc_g=yes |
10549 | else | |
e6cc62c6 VS |
10550 | echo "$as_me: failed program was:" >&5 |
10551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 10552 | |
e6cc62c6 | 10553 | ac_cv_prog_cc_g=no |
10f2d63a | 10554 | fi |
09d3439c | 10555 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10556 | fi |
10557 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10558 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
f09359cf | 10559 | if test "$ac_test_CFLAGS" = set; then |
e6cc62c6 | 10560 | CFLAGS=$ac_save_CFLAGS |
f09359cf VS |
10561 | elif test $ac_cv_prog_cc_g = yes; then |
10562 | if test "$GCC" = yes; then | |
10f2d63a VZ |
10563 | CFLAGS="-g -O2" |
10564 | else | |
f09359cf | 10565 | CFLAGS="-g" |
10f2d63a | 10566 | fi |
5c0a20c3 | 10567 | else |
f09359cf VS |
10568 | if test "$GCC" = yes; then |
10569 | CFLAGS="-O2" | |
10570 | else | |
10571 | CFLAGS= | |
10572 | fi | |
10f2d63a | 10573 | fi |
e6cc62c6 VS |
10574 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
10575 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10576 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10578 | else | |
10579 | ac_cv_prog_cc_stdc=no | |
10580 | ac_save_CC=$CC | |
10581 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 10582 | #line $LINENO "configure" |
e6cc62c6 VS |
10583 | /* confdefs.h. */ |
10584 | _ACEOF | |
10585 | cat confdefs.h >>conftest.$ac_ext | |
10586 | cat >>conftest.$ac_ext <<_ACEOF | |
10587 | /* end confdefs.h. */ | |
10588 | #include <stdarg.h> | |
10589 | #include <stdio.h> | |
10590 | #include <sys/types.h> | |
10591 | #include <sys/stat.h> | |
10592 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10593 | struct buf { int x; }; | |
10594 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10595 | static char *e (p, i) | |
10596 | char **p; | |
10597 | int i; | |
10598 | { | |
10599 | return p[i]; | |
10600 | } | |
10601 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10602 | { | |
10603 | char *s; | |
10604 | va_list v; | |
10605 | va_start (v,p); | |
10606 | s = g (p, va_arg (v,int)); | |
10607 | va_end (v); | |
10608 | return s; | |
10609 | } | |
10610 | int test (int i, double x); | |
10611 | struct s1 {int (*f) (int a);}; | |
10612 | struct s2 {int (*f) (double a);}; | |
10613 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10614 | int argc; | |
10615 | char **argv; | |
10616 | int | |
10617 | main () | |
10618 | { | |
10619 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10620 | ; | |
10621 | return 0; | |
10622 | } | |
10623 | _ACEOF | |
10624 | # Don't try gcc -ansi; that turns off useful extensions and | |
10625 | # breaks some systems' header files. | |
10626 | # AIX -qlanglvl=ansi | |
10627 | # Ultrix and OSF/1 -std1 | |
10628 | # HP-UX 10.20 and later -Ae | |
10629 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10630 | # SVR4 -Xc -D__EXTENSIONS__ | |
10631 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10632 | do | |
10633 | CC="$ac_save_CC $ac_arg" | |
10634 | rm -f conftest.$ac_objext | |
10635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 10636 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
10637 | ac_status=$? |
10638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10639 | (exit $ac_status); } && | |
09d3439c | 10640 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
10641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10642 | (eval $ac_try) 2>&5 | |
10643 | ac_status=$? | |
10644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10645 | (exit $ac_status); }; }; then | |
10646 | ac_cv_prog_cc_stdc=$ac_arg | |
10647 | break | |
10648 | else | |
10649 | echo "$as_me: failed program was:" >&5 | |
10650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10651 | ||
10652 | fi | |
09d3439c | 10653 | rm -f conftest.$ac_objext |
e6cc62c6 VS |
10654 | done |
10655 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10656 | CC=$ac_save_CC | |
10657 | ||
10658 | fi | |
10659 | ||
10660 | case "x$ac_cv_prog_cc_stdc" in | |
10661 | x|xno) | |
10662 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10663 | echo "${ECHO_T}none needed" >&6 ;; | |
10664 | *) | |
10665 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10666 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10667 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10668 | esac | |
10669 | ||
10670 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10671 | # in C++ we need to declare it. In case someone uses the same compiler | |
10672 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10673 | # the declaration of exit, since it's the most demanding environment. | |
10674 | cat >conftest.$ac_ext <<_ACEOF | |
10675 | #ifndef __cplusplus | |
10676 | choke me | |
10677 | #endif | |
10678 | _ACEOF | |
10679 | rm -f conftest.$ac_objext | |
10680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 10681 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
10682 | ac_status=$? |
10683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10684 | (exit $ac_status); } && | |
09d3439c | 10685 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
10686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10687 | (eval $ac_try) 2>&5 | |
10688 | ac_status=$? | |
10689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10690 | (exit $ac_status); }; }; then | |
10691 | for ac_declaration in \ | |
09d3439c VZ |
10692 | ''\ |
10693 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
10694 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
10695 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10696 | 'extern "C" void exit (int) throw ();' \ | |
10697 | 'extern "C" void exit (int);' \ | |
10698 | 'void exit (int);' | |
10699 | do | |
10700 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 10701 | #line $LINENO "configure" |
e6cc62c6 VS |
10702 | /* confdefs.h. */ |
10703 | _ACEOF | |
10704 | cat confdefs.h >>conftest.$ac_ext | |
10705 | cat >>conftest.$ac_ext <<_ACEOF | |
10706 | /* end confdefs.h. */ | |
eea650d8 | 10707 | #include <stdlib.h> |
09d3439c | 10708 | $ac_declaration |
e6cc62c6 VS |
10709 | int |
10710 | main () | |
10711 | { | |
10712 | exit (42); | |
10713 | ; | |
10714 | return 0; | |
10715 | } | |
10716 | _ACEOF | |
10717 | rm -f conftest.$ac_objext | |
10718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 10719 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
10720 | ac_status=$? |
10721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10722 | (exit $ac_status); } && | |
09d3439c | 10723 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
10724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10725 | (eval $ac_try) 2>&5 | |
10726 | ac_status=$? | |
10727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10728 | (exit $ac_status); }; }; then | |
10729 | : | |
10730 | else | |
10731 | echo "$as_me: failed program was:" >&5 | |
10732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10733 | ||
10734 | continue | |
10735 | fi | |
09d3439c | 10736 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 10737 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 10738 | #line $LINENO "configure" |
e6cc62c6 VS |
10739 | /* confdefs.h. */ |
10740 | _ACEOF | |
10741 | cat confdefs.h >>conftest.$ac_ext | |
10742 | cat >>conftest.$ac_ext <<_ACEOF | |
10743 | /* end confdefs.h. */ | |
10744 | $ac_declaration | |
10745 | int | |
10746 | main () | |
10747 | { | |
10748 | exit (42); | |
10749 | ; | |
10750 | return 0; | |
10751 | } | |
10752 | _ACEOF | |
10753 | rm -f conftest.$ac_objext | |
10754 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 10755 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
10756 | ac_status=$? |
10757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10758 | (exit $ac_status); } && | |
09d3439c | 10759 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
10760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10761 | (eval $ac_try) 2>&5 | |
10762 | ac_status=$? | |
10763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10764 | (exit $ac_status); }; }; then | |
10765 | break | |
10766 | else | |
10767 | echo "$as_me: failed program was:" >&5 | |
10768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10769 | ||
10770 | fi | |
09d3439c | 10771 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10772 | done |
10773 | rm -f conftest* | |
10774 | if test -n "$ac_declaration"; then | |
10775 | echo '#ifdef __cplusplus' >>confdefs.h | |
10776 | echo $ac_declaration >>confdefs.h | |
10777 | echo '#endif' >>confdefs.h | |
10778 | fi | |
10779 | ||
10780 | else | |
10781 | echo "$as_me: failed program was:" >&5 | |
10782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10783 | ||
10784 | fi | |
09d3439c | 10785 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
10786 | ac_ext=c |
10787 | ac_cpp='$CPP $CPPFLAGS' | |
10788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10f2d63a VZ |
10791 | |
10792 | ||
e6cc62c6 VS |
10793 | |
10794 | ac_ext=c | |
10795 | ac_cpp='$CPP $CPPFLAGS' | |
10796 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10797 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10798 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10799 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10800 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10f2d63a VZ |
10801 | # On Suns, sometimes $CPP names a directory. |
10802 | if test -n "$CPP" && test -d "$CPP"; then | |
10803 | CPP= | |
10804 | fi | |
10805 | if test -z "$CPP"; then | |
e6cc62c6 VS |
10806 | if test "${ac_cv_prog_CPP+set}" = set; then |
10807 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10808 | else | |
10809 | # Double quotes because CPP needs to be expanded | |
10810 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10811 | do | |
10812 | ac_preproc_ok=false | |
10813 | for ac_c_preproc_warn_flag in '' yes | |
10814 | do | |
10815 | # Use a header file that comes with gcc, so configuring glibc | |
10816 | # with a fresh cross-compiler works. | |
10817 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10818 | # <limits.h> exists even on freestanding compilers. | |
10f2d63a | 10819 | # On the NeXT, cc -E runs the code through the compiler's parser, |
e6cc62c6 VS |
10820 | # not just through cpp. "Syntax error" is here to catch this case. |
10821 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 10822 | #line $LINENO "configure" |
e6cc62c6 VS |
10823 | /* confdefs.h. */ |
10824 | _ACEOF | |
10825 | cat confdefs.h >>conftest.$ac_ext | |
10826 | cat >>conftest.$ac_ext <<_ACEOF | |
10827 | /* end confdefs.h. */ | |
10828 | #ifdef __STDC__ | |
10829 | # include <limits.h> | |
10830 | #else | |
10831 | # include <assert.h> | |
10832 | #endif | |
09d3439c | 10833 | Syntax error |
e6cc62c6 VS |
10834 | _ACEOF |
10835 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10836 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10837 | ac_status=$? | |
10838 | grep -v '^ *+' conftest.er1 >conftest.err | |
10839 | rm -f conftest.er1 | |
10840 | cat conftest.err >&5 | |
10841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10842 | (exit $ac_status); } >/dev/null; then | |
10843 | if test -s conftest.err; then | |
10844 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10845 | else | |
10846 | ac_cpp_err= | |
10847 | fi | |
10f2d63a | 10848 | else |
e6cc62c6 VS |
10849 | ac_cpp_err=yes |
10850 | fi | |
10851 | if test -z "$ac_cpp_err"; then | |
a0b9e27f | 10852 | : |
247f5006 | 10853 | else |
e6cc62c6 VS |
10854 | echo "$as_me: failed program was:" >&5 |
10855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10856 | ||
10857 | # Broken: fails on valid input. | |
10858 | continue | |
10859 | fi | |
10860 | rm -f conftest.err conftest.$ac_ext | |
10861 | ||
10862 | # OK, works on sane cases. Now check whether non-existent headers | |
10863 | # can be detected and how. | |
10864 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 10865 | #line $LINENO "configure" |
e6cc62c6 VS |
10866 | /* confdefs.h. */ |
10867 | _ACEOF | |
10868 | cat confdefs.h >>conftest.$ac_ext | |
10869 | cat >>conftest.$ac_ext <<_ACEOF | |
10870 | /* end confdefs.h. */ | |
10871 | #include <ac_nonexistent.h> | |
10872 | _ACEOF | |
10873 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10874 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10875 | ac_status=$? | |
10876 | grep -v '^ *+' conftest.er1 >conftest.err | |
10877 | rm -f conftest.er1 | |
10878 | cat conftest.err >&5 | |
10879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10880 | (exit $ac_status); } >/dev/null; then | |
10881 | if test -s conftest.err; then | |
10882 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10883 | else | |
10884 | ac_cpp_err= | |
10885 | fi | |
10f2d63a | 10886 | else |
e6cc62c6 | 10887 | ac_cpp_err=yes |
579d8138 | 10888 | fi |
e6cc62c6 VS |
10889 | if test -z "$ac_cpp_err"; then |
10890 | # Broken: success on invalid input. | |
10891 | continue | |
10892 | else | |
10893 | echo "$as_me: failed program was:" >&5 | |
10894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10895 | ||
10896 | # Passes both tests. | |
10897 | ac_preproc_ok=: | |
10898 | break | |
52127426 | 10899 | fi |
e6cc62c6 VS |
10900 | rm -f conftest.err conftest.$ac_ext |
10901 | ||
10902 | done | |
10903 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
10904 | rm -f conftest.err conftest.$ac_ext | |
10905 | if $ac_preproc_ok; then | |
10906 | break | |
8284b0c5 | 10907 | fi |
e6cc62c6 VS |
10908 | |
10909 | done | |
10910 | ac_cv_prog_CPP=$CPP | |
10911 | ||
10912 | fi | |
10913 | CPP=$ac_cv_prog_CPP | |
10914 | else | |
10915 | ac_cv_prog_CPP=$CPP | |
10916 | fi | |
10917 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
10918 | echo "${ECHO_T}$CPP" >&6 | |
10919 | ac_preproc_ok=false | |
10920 | for ac_c_preproc_warn_flag in '' yes | |
10921 | do | |
10922 | # Use a header file that comes with gcc, so configuring glibc | |
10923 | # with a fresh cross-compiler works. | |
10924 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10925 | # <limits.h> exists even on freestanding compilers. | |
10926 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10927 | # not just through cpp. "Syntax error" is here to catch this case. | |
10928 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 10929 | #line $LINENO "configure" |
e6cc62c6 VS |
10930 | /* confdefs.h. */ |
10931 | _ACEOF | |
10932 | cat confdefs.h >>conftest.$ac_ext | |
10933 | cat >>conftest.$ac_ext <<_ACEOF | |
10934 | /* end confdefs.h. */ | |
10935 | #ifdef __STDC__ | |
10936 | # include <limits.h> | |
10937 | #else | |
10938 | # include <assert.h> | |
10939 | #endif | |
09d3439c | 10940 | Syntax error |
e6cc62c6 VS |
10941 | _ACEOF |
10942 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10943 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10944 | ac_status=$? | |
10945 | grep -v '^ *+' conftest.er1 >conftest.err | |
10946 | rm -f conftest.er1 | |
10947 | cat conftest.err >&5 | |
10948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10949 | (exit $ac_status); } >/dev/null; then | |
10950 | if test -s conftest.err; then | |
10951 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10952 | else | |
10953 | ac_cpp_err= | |
10954 | fi | |
10955 | else | |
10956 | ac_cpp_err=yes | |
10957 | fi | |
10958 | if test -z "$ac_cpp_err"; then | |
10959 | : | |
10960 | else | |
10961 | echo "$as_me: failed program was:" >&5 | |
10962 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10963 | ||
10964 | # Broken: fails on valid input. | |
10965 | continue | |
10966 | fi | |
10967 | rm -f conftest.err conftest.$ac_ext | |
10968 | ||
10969 | # OK, works on sane cases. Now check whether non-existent headers | |
10970 | # can be detected and how. | |
10971 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 10972 | #line $LINENO "configure" |
e6cc62c6 VS |
10973 | /* confdefs.h. */ |
10974 | _ACEOF | |
10975 | cat confdefs.h >>conftest.$ac_ext | |
10976 | cat >>conftest.$ac_ext <<_ACEOF | |
10977 | /* end confdefs.h. */ | |
10978 | #include <ac_nonexistent.h> | |
10979 | _ACEOF | |
10980 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10981 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10982 | ac_status=$? | |
10983 | grep -v '^ *+' conftest.er1 >conftest.err | |
10984 | rm -f conftest.er1 | |
10985 | cat conftest.err >&5 | |
10986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10987 | (exit $ac_status); } >/dev/null; then | |
10988 | if test -s conftest.err; then | |
10989 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10990 | else | |
10991 | ac_cpp_err= | |
10992 | fi | |
10993 | else | |
10994 | ac_cpp_err=yes | |
10995 | fi | |
10996 | if test -z "$ac_cpp_err"; then | |
10997 | # Broken: success on invalid input. | |
10998 | continue | |
10999 | else | |
11000 | echo "$as_me: failed program was:" >&5 | |
11001 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11002 | ||
11003 | # Passes both tests. | |
11004 | ac_preproc_ok=: | |
11005 | break | |
a0b9e27f | 11006 | fi |
e6cc62c6 VS |
11007 | rm -f conftest.err conftest.$ac_ext |
11008 | ||
11009 | done | |
11010 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11011 | rm -f conftest.err conftest.$ac_ext | |
11012 | if $ac_preproc_ok; then | |
11013 | : | |
11014 | else | |
11015 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11016 | See \`config.log' for more details." >&5 | |
11017 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11018 | See \`config.log' for more details." >&2;} | |
11019 | { (exit 1); exit 1; }; } | |
11020 | fi | |
11021 | ||
11022 | ac_ext=c | |
11023 | ac_cpp='$CPP $CPPFLAGS' | |
11024 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11025 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11026 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11027 | ||
11028 | ||
11029 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11030 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11031 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 11033 | else |
e6cc62c6 VS |
11034 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
11035 | then ac_cv_prog_egrep='grep -E' | |
11036 | else ac_cv_prog_egrep='egrep' | |
11037 | fi | |
10f2d63a | 11038 | fi |
e6cc62c6 VS |
11039 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
11040 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11041 | EGREP=$ac_cv_prog_egrep | |
11042 | ||
10f2d63a | 11043 | |
e6cc62c6 VS |
11044 | if test $ac_cv_c_compiler_gnu = yes; then |
11045 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11046 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11047 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11049 | else |
11050 | ac_pattern="Autoconf.*'x'" | |
e6cc62c6 | 11051 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 11052 | #line $LINENO "configure" |
e6cc62c6 VS |
11053 | /* confdefs.h. */ |
11054 | _ACEOF | |
11055 | cat confdefs.h >>conftest.$ac_ext | |
11056 | cat >>conftest.$ac_ext <<_ACEOF | |
11057 | /* end confdefs.h. */ | |
10f2d63a VZ |
11058 | #include <sgtty.h> |
11059 | Autoconf TIOCGETP | |
e6cc62c6 | 11060 | _ACEOF |
10f2d63a | 11061 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11062 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11063 | ac_cv_prog_gcc_traditional=yes |
11064 | else | |
10f2d63a VZ |
11065 | ac_cv_prog_gcc_traditional=no |
11066 | fi | |
11067 | rm -f conftest* | |
11068 | ||
8284b0c5 | 11069 | |
10f2d63a | 11070 | if test $ac_cv_prog_gcc_traditional = no; then |
e6cc62c6 | 11071 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 11072 | #line $LINENO "configure" |
e6cc62c6 VS |
11073 | /* confdefs.h. */ |
11074 | _ACEOF | |
11075 | cat confdefs.h >>conftest.$ac_ext | |
11076 | cat >>conftest.$ac_ext <<_ACEOF | |
11077 | /* end confdefs.h. */ | |
10f2d63a VZ |
11078 | #include <termio.h> |
11079 | Autoconf TCGETA | |
e6cc62c6 | 11080 | _ACEOF |
10f2d63a | 11081 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 11082 | $EGREP "$ac_pattern" >/dev/null 2>&1; then |
10f2d63a VZ |
11083 | ac_cv_prog_gcc_traditional=yes |
11084 | fi | |
11085 | rm -f conftest* | |
11086 | ||
11087 | fi | |
11088 | fi | |
e6cc62c6 VS |
11089 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 |
11090 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
10f2d63a VZ |
11091 | if test $ac_cv_prog_gcc_traditional = yes; then |
11092 | CC="$CC -traditional" | |
11093 | fi | |
11094 | fi | |
11095 | ||
8284b0c5 MB |
11096 | |
11097 | ||
e6cc62c6 VS |
11098 | |
11099 | ac_ext=cc | |
1e487827 | 11100 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
11101 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11102 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11103 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 11104 | |
698dcdb6 | 11105 | |
ec603395 | 11106 | CXXFLAGS=${CXXFLAGS:=} |
e6cc62c6 VS |
11107 | ac_ext=cc |
11108 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11109 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11110 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11111 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11112 | if test -n "$ac_tool_prefix"; then | |
11113 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11114 | do | |
11115 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11116 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11117 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11118 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11119 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11121 | else |
11122 | if test -n "$CXX"; then | |
11123 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11124 | else | |
e6cc62c6 VS |
11125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11126 | for as_dir in $PATH | |
11127 | do | |
11128 | IFS=$as_save_IFS | |
11129 | test -z "$as_dir" && as_dir=. | |
11130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11131 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11132 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11133 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11134 | break 2 | |
11135 | fi | |
11136 | done | |
11137 | done | |
11138 | ||
10f2d63a VZ |
11139 | fi |
11140 | fi | |
e6cc62c6 | 11141 | CXX=$ac_cv_prog_CXX |
10f2d63a | 11142 | if test -n "$CXX"; then |
e6cc62c6 VS |
11143 | echo "$as_me:$LINENO: result: $CXX" >&5 |
11144 | echo "${ECHO_T}$CXX" >&6 | |
10f2d63a | 11145 | else |
e6cc62c6 VS |
11146 | echo "$as_me:$LINENO: result: no" >&5 |
11147 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11148 | fi |
11149 | ||
e6cc62c6 VS |
11150 | test -n "$CXX" && break |
11151 | done | |
11152 | fi | |
11153 | if test -z "$CXX"; then | |
11154 | ac_ct_CXX=$CXX | |
11155 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11156 | do | |
11157 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11158 | set dummy $ac_prog; ac_word=$2 | |
11159 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11161 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11163 | else | |
11164 | if test -n "$ac_ct_CXX"; then | |
11165 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11166 | else | |
11167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11168 | for as_dir in $PATH | |
11169 | do | |
11170 | IFS=$as_save_IFS | |
11171 | test -z "$as_dir" && as_dir=. | |
11172 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11173 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11174 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11175 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11176 | break 2 | |
11177 | fi | |
11178 | done | |
10f2d63a | 11179 | done |
a0b9e27f | 11180 | |
8284b0c5 | 11181 | fi |
a0b9e27f | 11182 | fi |
e6cc62c6 VS |
11183 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
11184 | if test -n "$ac_ct_CXX"; then | |
11185 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11186 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11187 | else | |
11188 | echo "$as_me:$LINENO: result: no" >&5 | |
11189 | echo "${ECHO_T}no" >&6 | |
a0b9e27f | 11190 | fi |
10f2d63a | 11191 | |
e6cc62c6 VS |
11192 | test -n "$ac_ct_CXX" && break |
11193 | done | |
11194 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11195 | ||
11196 | CXX=$ac_ct_CXX | |
11197 | fi | |
11198 | ||
11199 | ||
11200 | # Provide some information about the compiler. | |
11201 | echo "$as_me:$LINENO:" \ | |
11202 | "checking for C++ compiler version" >&5 | |
11203 | ac_compiler=`set X $ac_compile; echo $2` | |
11204 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11205 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11206 | ac_status=$? | |
11207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11208 | (exit $ac_status); } | |
11209 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11210 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11211 | ac_status=$? | |
11212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11213 | (exit $ac_status); } | |
11214 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11215 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11216 | ac_status=$? | |
11217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11218 | (exit $ac_status); } | |
11219 | ||
11220 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11221 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11222 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11224 | else | |
11225 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 11226 | #line $LINENO "configure" |
e6cc62c6 VS |
11227 | /* confdefs.h. */ |
11228 | _ACEOF | |
11229 | cat confdefs.h >>conftest.$ac_ext | |
11230 | cat >>conftest.$ac_ext <<_ACEOF | |
11231 | /* end confdefs.h. */ | |
11232 | ||
11233 | int | |
11234 | main () | |
11235 | { | |
11236 | #ifndef __GNUC__ | |
11237 | choke me | |
11238 | #endif | |
10f2d63a | 11239 | |
e6cc62c6 VS |
11240 | ; |
11241 | return 0; | |
11242 | } | |
11243 | _ACEOF | |
11244 | rm -f conftest.$ac_objext | |
11245 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 11246 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
11247 | ac_status=$? |
11248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11249 | (exit $ac_status); } && | |
09d3439c | 11250 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
11251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11252 | (eval $ac_try) 2>&5 | |
11253 | ac_status=$? | |
11254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11255 | (exit $ac_status); }; }; then | |
11256 | ac_compiler_gnu=yes | |
11257 | else | |
11258 | echo "$as_me: failed program was:" >&5 | |
11259 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11260 | ||
11261 | ac_compiler_gnu=no | |
11262 | fi | |
09d3439c | 11263 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11264 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11265 | ||
11266 | fi | |
11267 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11268 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11269 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11270 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11271 | ac_save_CXXFLAGS=$CXXFLAGS | |
11272 | CXXFLAGS="-g" | |
11273 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11274 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11275 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11276 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11277 | else | |
11278 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 11279 | #line $LINENO "configure" |
e6cc62c6 VS |
11280 | /* confdefs.h. */ |
11281 | _ACEOF | |
11282 | cat confdefs.h >>conftest.$ac_ext | |
11283 | cat >>conftest.$ac_ext <<_ACEOF | |
11284 | /* end confdefs.h. */ | |
11285 | ||
11286 | int | |
11287 | main () | |
11288 | { | |
f09359cf | 11289 | |
e6cc62c6 VS |
11290 | ; |
11291 | return 0; | |
11292 | } | |
11293 | _ACEOF | |
11294 | rm -f conftest.$ac_objext | |
11295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 11296 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
11297 | ac_status=$? |
11298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11299 | (exit $ac_status); } && | |
09d3439c | 11300 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
11301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11302 | (eval $ac_try) 2>&5 | |
11303 | ac_status=$? | |
11304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11305 | (exit $ac_status); }; }; then | |
10f2d63a VZ |
11306 | ac_cv_prog_cxx_g=yes |
11307 | else | |
e6cc62c6 VS |
11308 | echo "$as_me: failed program was:" >&5 |
11309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 11310 | |
e6cc62c6 | 11311 | ac_cv_prog_cxx_g=no |
10f2d63a | 11312 | fi |
09d3439c | 11313 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11314 | fi |
11315 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11316 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
f09359cf | 11317 | if test "$ac_test_CXXFLAGS" = set; then |
e6cc62c6 | 11318 | CXXFLAGS=$ac_save_CXXFLAGS |
f09359cf VS |
11319 | elif test $ac_cv_prog_cxx_g = yes; then |
11320 | if test "$GXX" = yes; then | |
10f2d63a VZ |
11321 | CXXFLAGS="-g -O2" |
11322 | else | |
f09359cf | 11323 | CXXFLAGS="-g" |
10f2d63a | 11324 | fi |
5c0a20c3 | 11325 | else |
f09359cf VS |
11326 | if test "$GXX" = yes; then |
11327 | CXXFLAGS="-O2" | |
11328 | else | |
11329 | CXXFLAGS= | |
11330 | fi | |
10f2d63a | 11331 | fi |
e6cc62c6 | 11332 | for ac_declaration in \ |
09d3439c VZ |
11333 | ''\ |
11334 | '#include <stdlib.h>' \ | |
e6cc62c6 VS |
11335 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ |
11336 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11337 | 'extern "C" void exit (int) throw ();' \ | |
11338 | 'extern "C" void exit (int);' \ | |
11339 | 'void exit (int);' | |
11340 | do | |
11341 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 11342 | #line $LINENO "configure" |
e6cc62c6 VS |
11343 | /* confdefs.h. */ |
11344 | _ACEOF | |
11345 | cat confdefs.h >>conftest.$ac_ext | |
11346 | cat >>conftest.$ac_ext <<_ACEOF | |
11347 | /* end confdefs.h. */ | |
eea650d8 | 11348 | #include <stdlib.h> |
09d3439c | 11349 | $ac_declaration |
e6cc62c6 VS |
11350 | int |
11351 | main () | |
11352 | { | |
11353 | exit (42); | |
11354 | ; | |
11355 | return 0; | |
11356 | } | |
11357 | _ACEOF | |
11358 | rm -f conftest.$ac_objext | |
11359 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 11360 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
11361 | ac_status=$? |
11362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11363 | (exit $ac_status); } && | |
09d3439c | 11364 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
11365 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11366 | (eval $ac_try) 2>&5 | |
11367 | ac_status=$? | |
11368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11369 | (exit $ac_status); }; }; then | |
11370 | : | |
11371 | else | |
11372 | echo "$as_me: failed program was:" >&5 | |
11373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11374 | ||
11375 | continue | |
11376 | fi | |
09d3439c | 11377 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 11378 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 11379 | #line $LINENO "configure" |
e6cc62c6 VS |
11380 | /* confdefs.h. */ |
11381 | _ACEOF | |
11382 | cat confdefs.h >>conftest.$ac_ext | |
11383 | cat >>conftest.$ac_ext <<_ACEOF | |
11384 | /* end confdefs.h. */ | |
11385 | $ac_declaration | |
11386 | int | |
11387 | main () | |
11388 | { | |
11389 | exit (42); | |
11390 | ; | |
11391 | return 0; | |
11392 | } | |
11393 | _ACEOF | |
11394 | rm -f conftest.$ac_objext | |
11395 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 11396 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
11397 | ac_status=$? |
11398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11399 | (exit $ac_status); } && | |
09d3439c | 11400 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
11401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11402 | (eval $ac_try) 2>&5 | |
11403 | ac_status=$? | |
11404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11405 | (exit $ac_status); }; }; then | |
11406 | break | |
11407 | else | |
11408 | echo "$as_me: failed program was:" >&5 | |
11409 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11410 | ||
11411 | fi | |
09d3439c | 11412 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
11413 | done |
11414 | rm -f conftest* | |
11415 | if test -n "$ac_declaration"; then | |
11416 | echo '#ifdef __cplusplus' >>confdefs.h | |
11417 | echo $ac_declaration >>confdefs.h | |
11418 | echo '#endif' >>confdefs.h | |
11419 | fi | |
11420 | ||
11421 | ac_ext=cc | |
11422 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11423 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11424 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11425 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
10f2d63a VZ |
11426 | |
11427 | ||
10f2d63a | 11428 | ac_ext=c |
10f2d63a | 11429 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
11430 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11431 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11432 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 MB |
11433 | |
11434 | ||
e6cc62c6 VS |
11435 | if test -n "$ac_tool_prefix"; then |
11436 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11437 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11438 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11440 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11442 | else |
11443 | if test -n "$RANLIB"; then | |
11444 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11445 | else | |
e6cc62c6 VS |
11446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11447 | for as_dir in $PATH | |
11448 | do | |
11449 | IFS=$as_save_IFS | |
11450 | test -z "$as_dir" && as_dir=. | |
11451 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11452 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11453 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11454 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11455 | break 2 | |
11456 | fi | |
11457 | done | |
11458 | done | |
11459 | ||
10f2d63a VZ |
11460 | fi |
11461 | fi | |
e6cc62c6 | 11462 | RANLIB=$ac_cv_prog_RANLIB |
10f2d63a | 11463 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
11464 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
11465 | echo "${ECHO_T}$RANLIB" >&6 | |
11466 | else | |
11467 | echo "$as_me:$LINENO: result: no" >&5 | |
11468 | echo "${ECHO_T}no" >&6 | |
11469 | fi | |
11470 | ||
11471 | fi | |
11472 | if test -z "$ac_cv_prog_RANLIB"; then | |
11473 | ac_ct_RANLIB=$RANLIB | |
11474 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11475 | set dummy ranlib; ac_word=$2 | |
11476 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11477 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11478 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
328a083c | 11480 | else |
e6cc62c6 VS |
11481 | if test -n "$ac_ct_RANLIB"; then |
11482 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11483 | else | |
11484 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11485 | for as_dir in $PATH | |
11486 | do | |
11487 | IFS=$as_save_IFS | |
11488 | test -z "$as_dir" && as_dir=. | |
11489 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11490 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11491 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11492 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11493 | break 2 | |
11494 | fi | |
11495 | done | |
11496 | done | |
11497 | ||
11498 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11499 | fi | |
11500 | fi | |
11501 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11502 | if test -n "$ac_ct_RANLIB"; then | |
11503 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11504 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11505 | else | |
11506 | echo "$as_me:$LINENO: result: no" >&5 | |
11507 | echo "${ECHO_T}no" >&6 | |
11508 | fi | |
11509 | ||
11510 | RANLIB=$ac_ct_RANLIB | |
11511 | else | |
11512 | RANLIB="$ac_cv_prog_RANLIB" | |
328a083c RR |
11513 | fi |
11514 | ||
10f2d63a VZ |
11515 | |
11516 | # Extract the first word of "ar", so it can be a program name with args. | |
11517 | set dummy ar; ac_word=$2 | |
e6cc62c6 VS |
11518 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11519 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11520 | if test "${ac_cv_prog_AR+set}" = set; then | |
11521 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11522 | else |
11523 | if test -n "$AR"; then | |
11524 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11525 | else | |
e6cc62c6 VS |
11526 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11527 | for as_dir in $PATH | |
11528 | do | |
11529 | IFS=$as_save_IFS | |
11530 | test -z "$as_dir" && as_dir=. | |
11531 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11532 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11533 | ac_cv_prog_AR="ar" | |
11534 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11535 | break 2 | |
11536 | fi | |
11537 | done | |
11538 | done | |
11539 | ||
10f2d63a VZ |
11540 | fi |
11541 | fi | |
e6cc62c6 | 11542 | AR=$ac_cv_prog_AR |
10f2d63a | 11543 | if test -n "$AR"; then |
e6cc62c6 VS |
11544 | echo "$as_me:$LINENO: result: $AR" >&5 |
11545 | echo "${ECHO_T}$AR" >&6 | |
10f2d63a | 11546 | else |
e6cc62c6 VS |
11547 | echo "$as_me:$LINENO: result: no" >&5 |
11548 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11549 | fi |
11550 | ||
911740e7 VS |
11551 | if test "x$AR" = "x" ; then |
11552 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5 | |
11553 | echo "$as_me: error: ar is needed to build wxWindows" >&2;} | |
11554 | { (exit 1); exit 1; }; } | |
11555 | fi | |
8284b0c5 | 11556 | |
6054113a | 11557 | # Find a good install program. We prefer a C program (faster), |
10f2d63a VZ |
11558 | # so one script is as good as another. But avoid the broken or |
11559 | # incompatible versions: | |
11560 | # SysV /etc/install, /usr/sbin/install | |
11561 | # SunOS /usr/etc/install | |
11562 | # IRIX /sbin/install | |
11563 | # AIX /bin/install | |
e6cc62c6 | 11564 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
f09359cf | 11565 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
10f2d63a VZ |
11566 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
11567 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11568 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
11569 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11570 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
10f2d63a | 11571 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
11572 | if test "${ac_cv_path_install+set}" = set; then |
11573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11574 | else | |
11575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11576 | for as_dir in $PATH | |
11577 | do | |
11578 | IFS=$as_save_IFS | |
11579 | test -z "$as_dir" && as_dir=. | |
11580 | # Account for people who put trailing slashes in PATH elements. | |
11581 | case $as_dir/ in | |
11582 | ./ | .// | /cC/* | \ | |
11583 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11584 | /usr/ucb/* ) ;; | |
11585 | *) | |
11586 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11587 | # Don't use installbsd from OSF since it installs stuff as root | |
11588 | # by default. | |
11589 | for ac_prog in ginstall scoinst install; do | |
11590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
09d3439c VZ |
11591 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11592 | if test $ac_prog = install && | |
11593 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11594 | # AIX install. It has an incompatible calling convention. | |
11595 | : | |
11596 | elif test $ac_prog = install && | |
11597 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11598 | # program-specific install script used by HP pwplus--don't use. | |
11599 | : | |
11600 | else | |
11601 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11602 | break 3 | |
11603 | fi | |
11604 | fi | |
10f2d63a | 11605 | done |
e6cc62c6 VS |
11606 | done |
11607 | ;; | |
11608 | esac | |
11609 | done | |
11610 | ||
10f2d63a VZ |
11611 | |
11612 | fi | |
11613 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 11614 | INSTALL=$ac_cv_path_install |
10f2d63a VZ |
11615 | else |
11616 | # As a last resort, use the slow shell script. We don't cache a | |
11617 | # path for INSTALL within a source directory, because that will | |
11618 | # break other packages using the cache if that directory is | |
11619 | # removed, or if the path is relative. | |
e6cc62c6 | 11620 | INSTALL=$ac_install_sh |
10f2d63a VZ |
11621 | fi |
11622 | fi | |
e6cc62c6 VS |
11623 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
11624 | echo "${ECHO_T}$INSTALL" >&6 | |
10f2d63a VZ |
11625 | |
11626 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11627 | # It thinks the first close brace ends the variable substitution. | |
11628 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11629 | ||
e6cc62c6 | 11630 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
f09359cf | 11631 | |
10f2d63a VZ |
11632 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
11633 | ||
8284b0c5 | 11634 | |
1d1b75ac VZ |
11635 | case ${INSTALL} in |
11636 | /* ) # Absolute | |
11637 | ;; | |
4f5a7f74 VZ |
11638 | ?:* ) # Drive letter, considered as absolute. |
11639 | ;; | |
3bd8fb5f | 11640 | *) |
1d1b75ac VZ |
11641 | INSTALL=`pwd`/${INSTALL} ;; |
11642 | esac | |
11643 | ||
4f5a7f74 VZ |
11644 | case ${host} in |
11645 | *-hp-hpux* ) | |
11646 | INSTALL_DIR="mkdir" | |
11647 | ;; | |
11648 | ||
11649 | *) INSTALL_DIR="$INSTALL -d" | |
11650 | ;; | |
11651 | esac | |
11652 | ||
8284b0c5 | 11653 | |
6054113a GD |
11654 | case "${host}" in |
11655 | ||
b5853384 | 11656 | powerpc-*-darwin* ) |
eb99ae0b GD |
11657 | INSTALL_PROGRAM="cp -fp" |
11658 | INSTALL_DATA="cp -fp" | |
6054113a GD |
11659 | ;; |
11660 | *) | |
11661 | ;; | |
d6853540 | 11662 | esac |
698dcdb6 | 11663 | |
10f2d63a VZ |
11664 | # Extract the first word of "strip", so it can be a program name with args. |
11665 | set dummy strip; ac_word=$2 | |
e6cc62c6 VS |
11666 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
11667 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11668 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a VZ |
11670 | else |
11671 | if test -n "$STRIP"; then | |
11672 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11673 | else | |
e6cc62c6 VS |
11674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
11675 | for as_dir in $PATH | |
11676 | do | |
11677 | IFS=$as_save_IFS | |
11678 | test -z "$as_dir" && as_dir=. | |
11679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11680 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11681 | ac_cv_prog_STRIP="strip" | |
11682 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11683 | break 2 | |
11684 | fi | |
11685 | done | |
11686 | done | |
11687 | ||
10f2d63a VZ |
11688 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" |
11689 | fi | |
11690 | fi | |
e6cc62c6 | 11691 | STRIP=$ac_cv_prog_STRIP |
10f2d63a | 11692 | if test -n "$STRIP"; then |
e6cc62c6 VS |
11693 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
11694 | echo "${ECHO_T}$STRIP" >&6 | |
10f2d63a | 11695 | else |
e6cc62c6 VS |
11696 | echo "$as_me:$LINENO: result: no" >&5 |
11697 | echo "${ECHO_T}no" >&6 | |
10f2d63a VZ |
11698 | fi |
11699 | ||
5c6fa7d2 | 11700 | |
e6cc62c6 VS |
11701 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 |
11702 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11703 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 11705 | else |
e6cc62c6 | 11706 | |
414eab6d | 11707 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
d558c907 | 11708 | egrep -s GNU > /dev/null); then |
414eab6d VZ |
11709 | wx_cv_prog_makeisgnu="yes" |
11710 | else | |
11711 | wx_cv_prog_makeisgnu="no" | |
11712 | fi | |
11713 | ||
11714 | fi | |
e6cc62c6 VS |
11715 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 |
11716 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
414eab6d VZ |
11717 | |
11718 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11719 | IF_GNU_MAKE="" | |
11720 | else | |
11721 | IF_GNU_MAKE="#" | |
11722 | fi | |
11723 | ||
8284b0c5 MB |
11724 | |
11725 | ||
414eab6d | 11726 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then |
e6cc62c6 VS |
11727 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 |
11728 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11729 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
04e7a216 | 11731 | else |
e6cc62c6 | 11732 | |
10f2d63a VZ |
11733 | cat - << EOF > confMake |
11734 | check : file | |
11735 | cp \$? \$@ | |
11736 | cp \$? final_file | |
11737 | EOF | |
11738 | ||
11739 | if test ! -d sub ; then | |
11740 | mkdir sub | |
11741 | fi | |
11742 | echo dummy > sub/file | |
f6bcfd97 | 11743 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null |
10f2d63a VZ |
11744 | RESULT=$? |
11745 | rm -f sub/file check final_file confMake | |
11746 | rmdir sub | |
11747 | if test "$RESULT" = 0; then | |
04e7a216 | 11748 | wx_cv_prog_makevpath="yes" |
10f2d63a | 11749 | else |
04e7a216 VZ |
11750 | wx_cv_prog_makevpath="no" |
11751 | fi | |
11752 | ||
11753 | fi | |
e6cc62c6 VS |
11754 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 |
11755 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
04e7a216 VZ |
11756 | |
11757 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
e6cc62c6 | 11758 | { { echo "$as_me:$LINENO: error: |
5c6fa7d2 RR |
11759 | You need a make-utility that is able to use the variable |
11760 | VPATH correctly. | |
11761 | If your version of make does not support VPATH correctly, | |
11762 | please install GNU-make (possibly as gmake), and start | |
11763 | configure with the following command: | |
11764 | export MAKE=gmake; ./configure for sh-type shells | |
11765 | setenv MAKE gmake; ./configure for csh-type shells | |
11766 | Also please do remember to use gmake in this case every time | |
11767 | you are trying to compile. | |
e6cc62c6 VS |
11768 | " >&5 |
11769 | echo "$as_me: error: | |
11770 | You need a make-utility that is able to use the variable | |
11771 | VPATH correctly. | |
11772 | If your version of make does not support VPATH correctly, | |
11773 | please install GNU-make (possibly as gmake), and start | |
11774 | configure with the following command: | |
11775 | export MAKE=gmake; ./configure for sh-type shells | |
11776 | setenv MAKE gmake; ./configure for csh-type shells | |
11777 | Also please do remember to use gmake in this case every time | |
11778 | you are trying to compile. | |
11779 | " >&2;} | |
11780 | { (exit 1); exit 1; }; } | |
11781 | fi fi | |
e6cc62c6 VS |
11782 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
11783 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11784 | LN_S=$as_ln_s | |
11785 | if test "$LN_S" = "ln -s"; then | |
11786 | echo "$as_me:$LINENO: result: yes" >&5 | |
11787 | echo "${ECHO_T}yes" >&6 | |
10f2d63a | 11788 | else |
e6cc62c6 VS |
11789 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
11790 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5c6fa7d2 | 11791 | fi |
5c6fa7d2 | 11792 | |
247f5006 | 11793 | |
2b5f62a0 VZ |
11794 | case "${host}" in |
11795 | *-pc-os2_emx | *-pc-os2-emx ) | |
2b5f62a0 | 11796 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
11797 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 |
11798 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11799 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 11801 | else |
e6cc62c6 | 11802 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 11803 | LIBS="-lcExt $LIBS" |
e6cc62c6 | 11804 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 11805 | #line $LINENO "configure" |
e6cc62c6 VS |
11806 | /* confdefs.h. */ |
11807 | _ACEOF | |
11808 | cat confdefs.h >>conftest.$ac_ext | |
11809 | cat >>conftest.$ac_ext <<_ACEOF | |
11810 | /* end confdefs.h. */ | |
11811 | ||
2b5f62a0 | 11812 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
11813 | #ifdef __cplusplus |
11814 | extern "C" | |
11815 | #endif | |
2b5f62a0 | 11816 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
11817 | builtin and then its argument prototype would still apply. */ |
11818 | char drand48 (); | |
11819 | int | |
11820 | main () | |
11821 | { | |
11822 | drand48 (); | |
11823 | ; | |
11824 | return 0; | |
11825 | } | |
11826 | _ACEOF | |
11827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 11829 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
11830 | ac_status=$? |
11831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11832 | (exit $ac_status); } && | |
09d3439c | 11833 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
11834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11835 | (eval $ac_try) 2>&5 | |
11836 | ac_status=$? | |
11837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11838 | (exit $ac_status); }; }; then | |
11839 | ac_cv_lib_cExt_drand48=yes | |
11840 | else | |
11841 | echo "$as_me: failed program was:" >&5 | |
11842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11843 | ||
11844 | ac_cv_lib_cExt_drand48=no | |
11845 | fi | |
09d3439c | 11846 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
11847 | LIBS=$ac_check_lib_save_LIBS |
11848 | fi | |
11849 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
11850 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
11851 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
2b5f62a0 | 11852 | LIBS="$LIBS -lcExt" |
2b5f62a0 VZ |
11853 | fi |
11854 | ||
11855 | else | |
11856 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
11857 | fi | |
73d617c9 MB |
11858 | echo "$as_me:$LINENO: checking for gcc 3 or later" >&5 |
11859 | echo $ECHO_N "checking for gcc 3 or later... $ECHO_C" >&6 | |
11860 | if test "${wx_cv_gcc3+set}" = set; then | |
11861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11862 | else | |
11863 | ||
11864 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 11865 | #line $LINENO "configure" |
73d617c9 MB |
11866 | /* confdefs.h. */ |
11867 | _ACEOF | |
11868 | cat confdefs.h >>conftest.$ac_ext | |
11869 | cat >>conftest.$ac_ext <<_ACEOF | |
11870 | /* end confdefs.h. */ | |
3527f29c | 11871 | |
73d617c9 MB |
11872 | int |
11873 | main () | |
11874 | { | |
11875 | ||
11876 | #if (__GNUC__ < 3) | |
11877 | #error old gcc | |
11878 | #endif | |
11879 | ||
11880 | ; | |
11881 | return 0; | |
11882 | } | |
11883 | _ACEOF | |
11884 | rm -f conftest.$ac_objext | |
11885 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 11886 | (eval $ac_compile) 2>&5 |
73d617c9 MB |
11887 | ac_status=$? |
11888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11889 | (exit $ac_status); } && | |
09d3439c | 11890 | { ac_try='test -s conftest.$ac_objext' |
73d617c9 MB |
11891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11892 | (eval $ac_try) 2>&5 | |
11893 | ac_status=$? | |
11894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11895 | (exit $ac_status); }; }; then | |
11896 | ||
11897 | wx_cv_gcc3=yes | |
11898 | ||
11899 | else | |
11900 | echo "$as_me: failed program was:" >&5 | |
11901 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11902 | ||
11903 | ||
11904 | wx_cv_gcc3=no | |
11905 | ||
11906 | ||
11907 | fi | |
09d3439c | 11908 | rm -f conftest.$ac_objext conftest.$ac_ext |
73d617c9 MB |
11909 | |
11910 | fi | |
11911 | echo "$as_me:$LINENO: result: $wx_cv_gcc3" >&5 | |
11912 | echo "${ECHO_T}$wx_cv_gcc3" >&6 | |
11913 | if test "$wx_cv_gcc3" = "no"; then | |
11914 | LIBS="$LIBS -lstdcpp" | |
11915 | else | |
11916 | LIBS="$LIBS -lstdcxx" | |
11917 | fi | |
2b5f62a0 VZ |
11918 | ;; |
11919 | esac | |
11920 | ||
a0b9e27f | 11921 | |
01aa5863 VS |
11922 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
11923 | echo "$as_me:$LINENO: checking for strings.h" >&5 | |
11924 | echo $ECHO_N "checking for strings.h... $ECHO_C" >&6 | |
11925 | if test "${ac_cv_header_strings_h+set}" = set; then | |
11926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11927 | else | |
11928 | ac_cv_header_strings_h=no | |
11929 | fi | |
11930 | echo "$as_me:$LINENO: result: $ac_cv_header_strings_h" >&5 | |
11931 | echo "${ECHO_T}$ac_cv_header_strings_h" >&6 | |
11932 | if test "$ac_cv_header_strings_h" = "no"; then | |
11933 | echo "$as_me:$LINENO: result: forced no into cache" >&5 | |
11934 | echo "${ECHO_T}forced no into cache" >&6 | |
11935 | else | |
11936 | { echo "$as_me:$LINENO: WARNING: strings.h is not compatible with Mac OS X" >&5 | |
11937 | echo "$as_me: WARNING: strings.h is not compatible with Mac OS X" >&2;} | |
11938 | fi | |
11939 | fi | |
11940 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
e6cc62c6 VS |
11941 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
11942 | if test "${ac_cv_header_stdc+set}" = set; then | |
11943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11944 | else | |
11945 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 11946 | #line $LINENO "configure" |
e6cc62c6 VS |
11947 | /* confdefs.h. */ |
11948 | _ACEOF | |
11949 | cat confdefs.h >>conftest.$ac_ext | |
11950 | cat >>conftest.$ac_ext <<_ACEOF | |
11951 | /* end confdefs.h. */ | |
11952 | #include <stdlib.h> | |
11953 | #include <stdarg.h> | |
11954 | #include <string.h> | |
11955 | #include <float.h> | |
247f5006 | 11956 | |
e6cc62c6 VS |
11957 | int |
11958 | main () | |
11959 | { | |
90dd450c | 11960 | |
e6cc62c6 VS |
11961 | ; |
11962 | return 0; | |
11963 | } | |
11964 | _ACEOF | |
11965 | rm -f conftest.$ac_objext | |
11966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 11967 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
11968 | ac_status=$? |
11969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11970 | (exit $ac_status); } && | |
09d3439c | 11971 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
11972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11973 | (eval $ac_try) 2>&5 | |
11974 | ac_status=$? | |
11975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11976 | (exit $ac_status); }; }; then | |
11977 | ac_cv_header_stdc=yes | |
8284b0c5 | 11978 | else |
e6cc62c6 VS |
11979 | echo "$as_me: failed program was:" >&5 |
11980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11981 | ||
11982 | ac_cv_header_stdc=no | |
21d1c967 | 11983 | fi |
09d3439c | 11984 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 11985 | |
e6cc62c6 VS |
11986 | if test $ac_cv_header_stdc = yes; then |
11987 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
11988 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 11989 | #line $LINENO "configure" |
e6cc62c6 VS |
11990 | /* confdefs.h. */ |
11991 | _ACEOF | |
11992 | cat confdefs.h >>conftest.$ac_ext | |
11993 | cat >>conftest.$ac_ext <<_ACEOF | |
11994 | /* end confdefs.h. */ | |
11995 | #include <string.h> | |
11996 | ||
11997 | _ACEOF | |
11998 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11999 | $EGREP "memchr" >/dev/null 2>&1; then | |
12000 | : | |
12001 | else | |
12002 | ac_cv_header_stdc=no | |
3a922bb4 | 12003 | fi |
a0b9e27f | 12004 | rm -f conftest* |
e6cc62c6 | 12005 | |
90dd450c | 12006 | fi |
e6cc62c6 VS |
12007 | |
12008 | if test $ac_cv_header_stdc = yes; then | |
12009 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12010 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12011 | #line $LINENO "configure" |
e6cc62c6 VS |
12012 | /* confdefs.h. */ |
12013 | _ACEOF | |
12014 | cat confdefs.h >>conftest.$ac_ext | |
12015 | cat >>conftest.$ac_ext <<_ACEOF | |
12016 | /* end confdefs.h. */ | |
12017 | #include <stdlib.h> | |
12018 | ||
12019 | _ACEOF | |
12020 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12021 | $EGREP "free" >/dev/null 2>&1; then | |
12022 | : | |
a0b9e27f | 12023 | else |
e6cc62c6 | 12024 | ac_cv_header_stdc=no |
21d1c967 | 12025 | fi |
e6cc62c6 | 12026 | rm -f conftest* |
247f5006 VZ |
12027 | |
12028 | fi | |
e6cc62c6 VS |
12029 | |
12030 | if test $ac_cv_header_stdc = yes; then | |
12031 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12032 | if test "$cross_compiling" = yes; then | |
12033 | : | |
12034 | else | |
12035 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12036 | #line $LINENO "configure" |
e6cc62c6 VS |
12037 | /* confdefs.h. */ |
12038 | _ACEOF | |
12039 | cat confdefs.h >>conftest.$ac_ext | |
12040 | cat >>conftest.$ac_ext <<_ACEOF | |
12041 | /* end confdefs.h. */ | |
12042 | #include <ctype.h> | |
12043 | #if ((' ' & 0x0FF) == 0x020) | |
12044 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12045 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12046 | #else | |
12047 | # define ISLOWER(c) \ | |
09d3439c VZ |
12048 | (('a' <= (c) && (c) <= 'i') \ |
12049 | || ('j' <= (c) && (c) <= 'r') \ | |
12050 | || ('s' <= (c) && (c) <= 'z')) | |
e6cc62c6 VS |
12051 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12052 | #endif | |
12053 | ||
12054 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12055 | int | |
12056 | main () | |
12057 | { | |
12058 | int i; | |
12059 | for (i = 0; i < 256; i++) | |
12060 | if (XOR (islower (i), ISLOWER (i)) | |
09d3439c | 12061 | || toupper (i) != TOUPPER (i)) |
e6cc62c6 VS |
12062 | exit(2); |
12063 | exit (0); | |
12064 | } | |
12065 | _ACEOF | |
12066 | rm -f conftest$ac_exeext | |
12067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12068 | (eval $ac_link) 2>&5 | |
12069 | ac_status=$? | |
12070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12071 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12073 | (eval $ac_try) 2>&5 | |
12074 | ac_status=$? | |
12075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12076 | (exit $ac_status); }; }; then | |
12077 | : | |
a0b9e27f | 12078 | else |
e6cc62c6 VS |
12079 | echo "$as_me: program exited with status $ac_status" >&5 |
12080 | echo "$as_me: failed program was:" >&5 | |
12081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12082 | ||
12083 | ( exit $ac_status ) | |
12084 | ac_cv_header_stdc=no | |
12085 | fi | |
09d3439c | 12086 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12087 | fi |
12088 | fi | |
12089 | fi | |
12090 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12091 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12092 | if test $ac_cv_header_stdc = yes; then | |
12093 | ||
12094 | cat >>confdefs.h <<\_ACEOF | |
12095 | #define STDC_HEADERS 1 | |
12096 | _ACEOF | |
12097 | ||
a0b9e27f | 12098 | fi |
e6cc62c6 VS |
12099 | |
12100 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12101 | ||
12102 | ||
12103 | ||
12104 | ||
12105 | ||
12106 | ||
12107 | ||
12108 | ||
12109 | ||
12110 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
09d3439c | 12111 | inttypes.h stdint.h unistd.h |
e6cc62c6 VS |
12112 | do |
12113 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12114 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12115 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12116 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12118 | else | |
12119 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12120 | #line $LINENO "configure" |
e6cc62c6 VS |
12121 | /* confdefs.h. */ |
12122 | _ACEOF | |
12123 | cat confdefs.h >>conftest.$ac_ext | |
12124 | cat >>conftest.$ac_ext <<_ACEOF | |
12125 | /* end confdefs.h. */ | |
12126 | $ac_includes_default | |
12127 | ||
12128 | #include <$ac_header> | |
12129 | _ACEOF | |
12130 | rm -f conftest.$ac_objext | |
12131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 12132 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12133 | ac_status=$? |
12134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12135 | (exit $ac_status); } && | |
09d3439c | 12136 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12138 | (eval $ac_try) 2>&5 | |
12139 | ac_status=$? | |
12140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12141 | (exit $ac_status); }; }; then | |
12142 | eval "$as_ac_Header=yes" | |
12143 | else | |
12144 | echo "$as_me: failed program was:" >&5 | |
12145 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12146 | ||
12147 | eval "$as_ac_Header=no" | |
12148 | fi | |
09d3439c | 12149 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12150 | fi |
12151 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12152 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12153 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12154 | cat >>confdefs.h <<_ACEOF | |
12155 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12156 | _ACEOF | |
12157 | ||
12158 | fi | |
12159 | ||
a0b9e27f | 12160 | done |
90dd450c | 12161 | |
e6cc62c6 VS |
12162 | |
12163 | ||
12164 | for ac_header in strings.h | |
21d1c967 | 12165 | do |
e6cc62c6 VS |
12166 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12167 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12168 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12169 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12170 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12172 | fi | |
12173 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12174 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12175 | else | |
12176 | # Is the header compilable? | |
12177 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12178 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12179 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12180 | #line $LINENO "configure" |
e6cc62c6 VS |
12181 | /* confdefs.h. */ |
12182 | _ACEOF | |
12183 | cat confdefs.h >>conftest.$ac_ext | |
12184 | cat >>conftest.$ac_ext <<_ACEOF | |
12185 | /* end confdefs.h. */ | |
12186 | $ac_includes_default | |
12187 | #include <$ac_header> | |
12188 | _ACEOF | |
12189 | rm -f conftest.$ac_objext | |
12190 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 12191 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12192 | ac_status=$? |
12193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12194 | (exit $ac_status); } && | |
09d3439c | 12195 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12197 | (eval $ac_try) 2>&5 | |
12198 | ac_status=$? | |
12199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12200 | (exit $ac_status); }; }; then | |
12201 | ac_header_compiler=yes | |
12202 | else | |
12203 | echo "$as_me: failed program was:" >&5 | |
12204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12205 | ||
12206 | ac_header_compiler=no | |
12207 | fi | |
09d3439c | 12208 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12209 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12210 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12211 | ||
12212 | # Is the header present? | |
12213 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12214 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12215 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12216 | #line $LINENO "configure" |
e6cc62c6 VS |
12217 | /* confdefs.h. */ |
12218 | _ACEOF | |
12219 | cat confdefs.h >>conftest.$ac_ext | |
12220 | cat >>conftest.$ac_ext <<_ACEOF | |
12221 | /* end confdefs.h. */ | |
12222 | #include <$ac_header> | |
12223 | _ACEOF | |
12224 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12225 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12226 | ac_status=$? | |
12227 | grep -v '^ *+' conftest.er1 >conftest.err | |
12228 | rm -f conftest.er1 | |
12229 | cat conftest.err >&5 | |
12230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12231 | (exit $ac_status); } >/dev/null; then | |
12232 | if test -s conftest.err; then | |
12233 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12234 | else | |
12235 | ac_cpp_err= | |
12236 | fi | |
12237 | else | |
12238 | ac_cpp_err=yes | |
12239 | fi | |
12240 | if test -z "$ac_cpp_err"; then | |
12241 | ac_header_preproc=yes | |
12242 | else | |
12243 | echo "$as_me: failed program was:" >&5 | |
12244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12245 | ||
12246 | ac_header_preproc=no | |
12247 | fi | |
12248 | rm -f conftest.err conftest.$ac_ext | |
12249 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12250 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12251 | ||
12252 | # So? What about this header? | |
09d3439c VZ |
12253 | case $ac_header_compiler:$ac_header_preproc in |
12254 | yes:no ) | |
e6cc62c6 VS |
12255 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12256 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
12257 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12258 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12259 | ( | |
12260 | cat <<\_ASBOX | |
12261 | ## ------------------------------------ ## | |
12262 | ## Report this to bug-autoconf@gnu.org. ## | |
12263 | ## ------------------------------------ ## | |
12264 | _ASBOX | |
12265 | ) | | |
12266 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 12267 | ;; |
09d3439c | 12268 | no:yes ) |
e6cc62c6 VS |
12269 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12270 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
12271 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12272 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
12273 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12274 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12275 | ( | |
12276 | cat <<\_ASBOX | |
09d3439c VZ |
12277 | ## ------------------------------------ ## |
12278 | ## Report this to bug-autoconf@gnu.org. ## | |
12279 | ## ------------------------------------ ## | |
e6cc62c6 VS |
12280 | _ASBOX |
12281 | ) | | |
12282 | sed "s/^/$as_me: WARNING: /" >&2 | |
12283 | ;; | |
12284 | esac | |
12285 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12286 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12287 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12289 | else | |
09d3439c | 12290 | eval "$as_ac_Header=$ac_header_preproc" |
a0b9e27f | 12291 | fi |
e6cc62c6 VS |
12292 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12293 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12294 | ||
a0b9e27f | 12295 | fi |
e6cc62c6 VS |
12296 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12297 | cat >>confdefs.h <<_ACEOF | |
12298 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12299 | _ACEOF | |
12300 | ||
12301 | fi | |
12302 | ||
12303 | done | |
12304 | ||
e6cc62c6 VS |
12305 | |
12306 | ||
12307 | for ac_header in stdlib.h | |
12308 | do | |
12309 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12310 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12311 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12312 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12313 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12315 | fi | |
12316 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12317 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12318 | else | |
12319 | # Is the header compilable? | |
12320 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12321 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12322 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12323 | #line $LINENO "configure" |
e6cc62c6 VS |
12324 | /* confdefs.h. */ |
12325 | _ACEOF | |
12326 | cat confdefs.h >>conftest.$ac_ext | |
12327 | cat >>conftest.$ac_ext <<_ACEOF | |
12328 | /* end confdefs.h. */ | |
12329 | $ac_includes_default | |
12330 | #include <$ac_header> | |
12331 | _ACEOF | |
12332 | rm -f conftest.$ac_objext | |
12333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 12334 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12335 | ac_status=$? |
12336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12337 | (exit $ac_status); } && | |
09d3439c | 12338 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12340 | (eval $ac_try) 2>&5 | |
12341 | ac_status=$? | |
12342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12343 | (exit $ac_status); }; }; then | |
12344 | ac_header_compiler=yes | |
12345 | else | |
12346 | echo "$as_me: failed program was:" >&5 | |
12347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12348 | ||
12349 | ac_header_compiler=no | |
12350 | fi | |
09d3439c | 12351 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12352 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12353 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12354 | ||
12355 | # Is the header present? | |
12356 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12357 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12358 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12359 | #line $LINENO "configure" |
e6cc62c6 VS |
12360 | /* confdefs.h. */ |
12361 | _ACEOF | |
12362 | cat confdefs.h >>conftest.$ac_ext | |
12363 | cat >>conftest.$ac_ext <<_ACEOF | |
12364 | /* end confdefs.h. */ | |
12365 | #include <$ac_header> | |
12366 | _ACEOF | |
12367 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12368 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12369 | ac_status=$? | |
12370 | grep -v '^ *+' conftest.er1 >conftest.err | |
12371 | rm -f conftest.er1 | |
12372 | cat conftest.err >&5 | |
12373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12374 | (exit $ac_status); } >/dev/null; then | |
12375 | if test -s conftest.err; then | |
12376 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12377 | else | |
12378 | ac_cpp_err= | |
12379 | fi | |
12380 | else | |
12381 | ac_cpp_err=yes | |
12382 | fi | |
12383 | if test -z "$ac_cpp_err"; then | |
12384 | ac_header_preproc=yes | |
12385 | else | |
12386 | echo "$as_me: failed program was:" >&5 | |
12387 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12388 | ||
12389 | ac_header_preproc=no | |
12390 | fi | |
12391 | rm -f conftest.err conftest.$ac_ext | |
12392 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12393 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12394 | ||
12395 | # So? What about this header? | |
09d3439c VZ |
12396 | case $ac_header_compiler:$ac_header_preproc in |
12397 | yes:no ) | |
e6cc62c6 VS |
12398 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12399 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
12400 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12401 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12402 | ( | |
12403 | cat <<\_ASBOX | |
12404 | ## ------------------------------------ ## | |
12405 | ## Report this to bug-autoconf@gnu.org. ## | |
12406 | ## ------------------------------------ ## | |
12407 | _ASBOX | |
12408 | ) | | |
12409 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 12410 | ;; |
09d3439c | 12411 | no:yes ) |
e6cc62c6 VS |
12412 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12413 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
12414 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12415 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
12416 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12417 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12418 | ( | |
12419 | cat <<\_ASBOX | |
09d3439c VZ |
12420 | ## ------------------------------------ ## |
12421 | ## Report this to bug-autoconf@gnu.org. ## | |
12422 | ## ------------------------------------ ## | |
e6cc62c6 VS |
12423 | _ASBOX |
12424 | ) | | |
12425 | sed "s/^/$as_me: WARNING: /" >&2 | |
12426 | ;; | |
12427 | esac | |
12428 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12429 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12430 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 12432 | else |
09d3439c | 12433 | eval "$as_ac_Header=$ac_header_preproc" |
e6cc62c6 VS |
12434 | fi |
12435 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12436 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12437 | ||
21d1c967 | 12438 | fi |
e6cc62c6 VS |
12439 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12440 | cat >>confdefs.h <<_ACEOF | |
12441 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12442 | _ACEOF | |
12443 | ||
12444 | fi | |
12445 | ||
21d1c967 | 12446 | done |
4f14bcd8 | 12447 | |
5c6fa7d2 | 12448 | |
e6cc62c6 | 12449 | for ac_header in malloc.h |
21d1c967 | 12450 | do |
e6cc62c6 VS |
12451 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12452 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12453 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12454 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12455 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12457 | fi | |
12458 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12459 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12460 | else | |
12461 | # Is the header compilable? | |
12462 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12463 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12464 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12465 | #line $LINENO "configure" |
e6cc62c6 VS |
12466 | /* confdefs.h. */ |
12467 | _ACEOF | |
12468 | cat confdefs.h >>conftest.$ac_ext | |
12469 | cat >>conftest.$ac_ext <<_ACEOF | |
12470 | /* end confdefs.h. */ | |
12471 | $ac_includes_default | |
12472 | #include <$ac_header> | |
12473 | _ACEOF | |
12474 | rm -f conftest.$ac_objext | |
12475 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 12476 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12477 | ac_status=$? |
12478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12479 | (exit $ac_status); } && | |
09d3439c | 12480 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12482 | (eval $ac_try) 2>&5 | |
12483 | ac_status=$? | |
12484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12485 | (exit $ac_status); }; }; then | |
12486 | ac_header_compiler=yes | |
12487 | else | |
12488 | echo "$as_me: failed program was:" >&5 | |
12489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12490 | ||
12491 | ac_header_compiler=no | |
12492 | fi | |
09d3439c | 12493 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12494 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12495 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12496 | ||
12497 | # Is the header present? | |
12498 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12499 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12500 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12501 | #line $LINENO "configure" |
e6cc62c6 VS |
12502 | /* confdefs.h. */ |
12503 | _ACEOF | |
12504 | cat confdefs.h >>conftest.$ac_ext | |
12505 | cat >>conftest.$ac_ext <<_ACEOF | |
12506 | /* end confdefs.h. */ | |
12507 | #include <$ac_header> | |
12508 | _ACEOF | |
12509 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12510 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12511 | ac_status=$? | |
12512 | grep -v '^ *+' conftest.er1 >conftest.err | |
12513 | rm -f conftest.er1 | |
12514 | cat conftest.err >&5 | |
12515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12516 | (exit $ac_status); } >/dev/null; then | |
12517 | if test -s conftest.err; then | |
12518 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12519 | else | |
12520 | ac_cpp_err= | |
12521 | fi | |
12522 | else | |
12523 | ac_cpp_err=yes | |
12524 | fi | |
12525 | if test -z "$ac_cpp_err"; then | |
12526 | ac_header_preproc=yes | |
12527 | else | |
12528 | echo "$as_me: failed program was:" >&5 | |
12529 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12530 | ||
12531 | ac_header_preproc=no | |
12532 | fi | |
12533 | rm -f conftest.err conftest.$ac_ext | |
12534 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12535 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12536 | ||
12537 | # So? What about this header? | |
09d3439c VZ |
12538 | case $ac_header_compiler:$ac_header_preproc in |
12539 | yes:no ) | |
e6cc62c6 VS |
12540 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12541 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
12542 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12543 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12544 | ( | |
12545 | cat <<\_ASBOX | |
12546 | ## ------------------------------------ ## | |
12547 | ## Report this to bug-autoconf@gnu.org. ## | |
12548 | ## ------------------------------------ ## | |
12549 | _ASBOX | |
12550 | ) | | |
12551 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 12552 | ;; |
09d3439c | 12553 | no:yes ) |
e6cc62c6 VS |
12554 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12555 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
12556 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12557 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
12558 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12559 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12560 | ( | |
12561 | cat <<\_ASBOX | |
09d3439c VZ |
12562 | ## ------------------------------------ ## |
12563 | ## Report this to bug-autoconf@gnu.org. ## | |
12564 | ## ------------------------------------ ## | |
e6cc62c6 VS |
12565 | _ASBOX |
12566 | ) | | |
12567 | sed "s/^/$as_me: WARNING: /" >&2 | |
12568 | ;; | |
12569 | esac | |
12570 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12571 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12572 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12574 | else | |
09d3439c | 12575 | eval "$as_ac_Header=$ac_header_preproc" |
d4158b5d | 12576 | fi |
e6cc62c6 VS |
12577 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
12578 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12579 | ||
21d1c967 | 12580 | fi |
e6cc62c6 VS |
12581 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12582 | cat >>confdefs.h <<_ACEOF | |
12583 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12584 | _ACEOF | |
12585 | ||
12586 | fi | |
12587 | ||
12588 | done | |
12589 | ||
12590 | ||
12591 | for ac_header in unistd.h | |
12592 | do | |
12593 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12599 | fi | |
12600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12602 | else | |
12603 | # Is the header compilable? | |
12604 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12606 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12607 | #line $LINENO "configure" |
e6cc62c6 VS |
12608 | /* confdefs.h. */ |
12609 | _ACEOF | |
12610 | cat confdefs.h >>conftest.$ac_ext | |
12611 | cat >>conftest.$ac_ext <<_ACEOF | |
12612 | /* end confdefs.h. */ | |
12613 | $ac_includes_default | |
12614 | #include <$ac_header> | |
12615 | _ACEOF | |
12616 | rm -f conftest.$ac_objext | |
12617 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 12618 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12619 | ac_status=$? |
12620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12621 | (exit $ac_status); } && | |
09d3439c | 12622 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12624 | (eval $ac_try) 2>&5 | |
12625 | ac_status=$? | |
12626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12627 | (exit $ac_status); }; }; then | |
12628 | ac_header_compiler=yes | |
12629 | else | |
12630 | echo "$as_me: failed program was:" >&5 | |
12631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12632 | ||
12633 | ac_header_compiler=no | |
12634 | fi | |
09d3439c | 12635 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12636 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12637 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12638 | ||
12639 | # Is the header present? | |
12640 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12641 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12642 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12643 | #line $LINENO "configure" |
e6cc62c6 VS |
12644 | /* confdefs.h. */ |
12645 | _ACEOF | |
12646 | cat confdefs.h >>conftest.$ac_ext | |
12647 | cat >>conftest.$ac_ext <<_ACEOF | |
12648 | /* end confdefs.h. */ | |
12649 | #include <$ac_header> | |
12650 | _ACEOF | |
12651 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12652 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12653 | ac_status=$? | |
12654 | grep -v '^ *+' conftest.er1 >conftest.err | |
12655 | rm -f conftest.er1 | |
12656 | cat conftest.err >&5 | |
12657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12658 | (exit $ac_status); } >/dev/null; then | |
12659 | if test -s conftest.err; then | |
12660 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12661 | else | |
12662 | ac_cpp_err= | |
12663 | fi | |
a0b9e27f | 12664 | else |
e6cc62c6 VS |
12665 | ac_cpp_err=yes |
12666 | fi | |
12667 | if test -z "$ac_cpp_err"; then | |
12668 | ac_header_preproc=yes | |
12669 | else | |
12670 | echo "$as_me: failed program was:" >&5 | |
12671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12672 | ||
12673 | ac_header_preproc=no | |
12674 | fi | |
12675 | rm -f conftest.err conftest.$ac_ext | |
12676 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12677 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12678 | ||
12679 | # So? What about this header? | |
09d3439c VZ |
12680 | case $ac_header_compiler:$ac_header_preproc in |
12681 | yes:no ) | |
e6cc62c6 VS |
12682 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12683 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
12684 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12685 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12686 | ( | |
12687 | cat <<\_ASBOX | |
12688 | ## ------------------------------------ ## | |
12689 | ## Report this to bug-autoconf@gnu.org. ## | |
12690 | ## ------------------------------------ ## | |
12691 | _ASBOX | |
12692 | ) | | |
12693 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 12694 | ;; |
09d3439c | 12695 | no:yes ) |
e6cc62c6 VS |
12696 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12697 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
12698 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12699 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
12700 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12701 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12702 | ( | |
12703 | cat <<\_ASBOX | |
09d3439c VZ |
12704 | ## ------------------------------------ ## |
12705 | ## Report this to bug-autoconf@gnu.org. ## | |
12706 | ## ------------------------------------ ## | |
e6cc62c6 VS |
12707 | _ASBOX |
12708 | ) | | |
12709 | sed "s/^/$as_me: WARNING: /" >&2 | |
12710 | ;; | |
12711 | esac | |
12712 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12713 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12714 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12716 | else | |
09d3439c | 12717 | eval "$as_ac_Header=$ac_header_preproc" |
e6cc62c6 VS |
12718 | fi |
12719 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12720 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12721 | ||
12722 | fi | |
12723 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12724 | cat >>confdefs.h <<_ACEOF | |
12725 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12726 | _ACEOF | |
12727 | ||
d4158b5d | 12728 | fi |
e6cc62c6 | 12729 | |
21d1c967 | 12730 | done |
f6bcfd97 | 12731 | |
e6cc62c6 VS |
12732 | |
12733 | for ac_header in wchar.h | |
12734 | do | |
12735 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12736 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12737 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12738 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12739 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12741 | fi | |
12742 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12743 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12744 | else | |
12745 | # Is the header compilable? | |
12746 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12747 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12748 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12749 | #line $LINENO "configure" |
e6cc62c6 VS |
12750 | /* confdefs.h. */ |
12751 | _ACEOF | |
12752 | cat confdefs.h >>conftest.$ac_ext | |
12753 | cat >>conftest.$ac_ext <<_ACEOF | |
12754 | /* end confdefs.h. */ | |
12755 | $ac_includes_default | |
12756 | #include <$ac_header> | |
12757 | _ACEOF | |
12758 | rm -f conftest.$ac_objext | |
12759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 12760 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12761 | ac_status=$? |
12762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12763 | (exit $ac_status); } && | |
09d3439c | 12764 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12766 | (eval $ac_try) 2>&5 | |
12767 | ac_status=$? | |
12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12769 | (exit $ac_status); }; }; then | |
12770 | ac_header_compiler=yes | |
12771 | else | |
12772 | echo "$as_me: failed program was:" >&5 | |
12773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12774 | ||
12775 | ac_header_compiler=no | |
12776 | fi | |
09d3439c | 12777 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12778 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12779 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12780 | ||
12781 | # Is the header present? | |
12782 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12783 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12784 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12785 | #line $LINENO "configure" |
e6cc62c6 VS |
12786 | /* confdefs.h. */ |
12787 | _ACEOF | |
12788 | cat confdefs.h >>conftest.$ac_ext | |
12789 | cat >>conftest.$ac_ext <<_ACEOF | |
12790 | /* end confdefs.h. */ | |
12791 | #include <$ac_header> | |
12792 | _ACEOF | |
12793 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12794 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12795 | ac_status=$? | |
12796 | grep -v '^ *+' conftest.er1 >conftest.err | |
12797 | rm -f conftest.er1 | |
12798 | cat conftest.err >&5 | |
12799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12800 | (exit $ac_status); } >/dev/null; then | |
12801 | if test -s conftest.err; then | |
12802 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12803 | else | |
12804 | ac_cpp_err= | |
12805 | fi | |
12806 | else | |
12807 | ac_cpp_err=yes | |
12808 | fi | |
12809 | if test -z "$ac_cpp_err"; then | |
12810 | ac_header_preproc=yes | |
12811 | else | |
12812 | echo "$as_me: failed program was:" >&5 | |
12813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12814 | ||
12815 | ac_header_preproc=no | |
12816 | fi | |
12817 | rm -f conftest.err conftest.$ac_ext | |
12818 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12819 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12820 | ||
12821 | # So? What about this header? | |
09d3439c VZ |
12822 | case $ac_header_compiler:$ac_header_preproc in |
12823 | yes:no ) | |
e6cc62c6 VS |
12824 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12825 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
12826 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12827 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12828 | ( | |
12829 | cat <<\_ASBOX | |
12830 | ## ------------------------------------ ## | |
12831 | ## Report this to bug-autoconf@gnu.org. ## | |
12832 | ## ------------------------------------ ## | |
12833 | _ASBOX | |
12834 | ) | | |
12835 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 12836 | ;; |
09d3439c | 12837 | no:yes ) |
e6cc62c6 VS |
12838 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12839 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
12840 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12841 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
12842 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12843 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12844 | ( | |
12845 | cat <<\_ASBOX | |
09d3439c VZ |
12846 | ## ------------------------------------ ## |
12847 | ## Report this to bug-autoconf@gnu.org. ## | |
12848 | ## ------------------------------------ ## | |
e6cc62c6 VS |
12849 | _ASBOX |
12850 | ) | | |
12851 | sed "s/^/$as_me: WARNING: /" >&2 | |
12852 | ;; | |
12853 | esac | |
12854 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12855 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12856 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12857 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12858 | else | |
09d3439c | 12859 | eval "$as_ac_Header=$ac_header_preproc" |
e6cc62c6 VS |
12860 | fi |
12861 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12862 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12863 | ||
90dd450c | 12864 | fi |
e6cc62c6 VS |
12865 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
12866 | cat >>confdefs.h <<_ACEOF | |
12867 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12868 | _ACEOF | |
12869 | ||
12870 | fi | |
12871 | ||
12872 | done | |
90dd450c | 12873 | |
e6cc62c6 VS |
12874 | |
12875 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
12876 | ||
12877 | for ac_header in wcstr.h | |
21d1c967 | 12878 | do |
e6cc62c6 VS |
12879 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12880 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12881 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12882 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12883 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12885 | fi | |
12886 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12887 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12888 | else | |
12889 | # Is the header compilable? | |
12890 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12891 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12892 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12893 | #line $LINENO "configure" |
e6cc62c6 VS |
12894 | /* confdefs.h. */ |
12895 | _ACEOF | |
12896 | cat confdefs.h >>conftest.$ac_ext | |
12897 | cat >>conftest.$ac_ext <<_ACEOF | |
12898 | /* end confdefs.h. */ | |
12899 | $ac_includes_default | |
12900 | #include <$ac_header> | |
12901 | _ACEOF | |
12902 | rm -f conftest.$ac_objext | |
12903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 12904 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
12905 | ac_status=$? |
12906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12907 | (exit $ac_status); } && | |
09d3439c | 12908 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
12909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12910 | (eval $ac_try) 2>&5 | |
12911 | ac_status=$? | |
12912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12913 | (exit $ac_status); }; }; then | |
12914 | ac_header_compiler=yes | |
12915 | else | |
12916 | echo "$as_me: failed program was:" >&5 | |
12917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12918 | ||
12919 | ac_header_compiler=no | |
12920 | fi | |
09d3439c | 12921 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
12922 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12923 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12924 | ||
12925 | # Is the header present? | |
12926 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12927 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12928 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 12929 | #line $LINENO "configure" |
e6cc62c6 VS |
12930 | /* confdefs.h. */ |
12931 | _ACEOF | |
12932 | cat confdefs.h >>conftest.$ac_ext | |
12933 | cat >>conftest.$ac_ext <<_ACEOF | |
12934 | /* end confdefs.h. */ | |
12935 | #include <$ac_header> | |
12936 | _ACEOF | |
12937 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12938 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12939 | ac_status=$? | |
12940 | grep -v '^ *+' conftest.er1 >conftest.err | |
12941 | rm -f conftest.er1 | |
12942 | cat conftest.err >&5 | |
12943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12944 | (exit $ac_status); } >/dev/null; then | |
12945 | if test -s conftest.err; then | |
12946 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12947 | else | |
12948 | ac_cpp_err= | |
12949 | fi | |
12950 | else | |
12951 | ac_cpp_err=yes | |
12952 | fi | |
12953 | if test -z "$ac_cpp_err"; then | |
12954 | ac_header_preproc=yes | |
12955 | else | |
12956 | echo "$as_me: failed program was:" >&5 | |
12957 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12958 | ||
12959 | ac_header_preproc=no | |
12960 | fi | |
12961 | rm -f conftest.err conftest.$ac_ext | |
12962 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12963 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12964 | ||
12965 | # So? What about this header? | |
09d3439c VZ |
12966 | case $ac_header_compiler:$ac_header_preproc in |
12967 | yes:no ) | |
e6cc62c6 VS |
12968 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12969 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
12970 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12971 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12972 | ( | |
12973 | cat <<\_ASBOX | |
12974 | ## ------------------------------------ ## | |
12975 | ## Report this to bug-autoconf@gnu.org. ## | |
12976 | ## ------------------------------------ ## | |
12977 | _ASBOX | |
12978 | ) | | |
12979 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 12980 | ;; |
09d3439c | 12981 | no:yes ) |
e6cc62c6 VS |
12982 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12983 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
12984 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12985 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
12986 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12987 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12988 | ( | |
12989 | cat <<\_ASBOX | |
09d3439c VZ |
12990 | ## ------------------------------------ ## |
12991 | ## Report this to bug-autoconf@gnu.org. ## | |
12992 | ## ------------------------------------ ## | |
e6cc62c6 VS |
12993 | _ASBOX |
12994 | ) | | |
12995 | sed "s/^/$as_me: WARNING: /" >&2 | |
12996 | ;; | |
12997 | esac | |
12998 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12999 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13000 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13002 | else | |
09d3439c | 13003 | eval "$as_ac_Header=$ac_header_preproc" |
3a922bb4 | 13004 | fi |
e6cc62c6 VS |
13005 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13006 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13007 | ||
4f14bcd8 | 13008 | fi |
e6cc62c6 VS |
13009 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13010 | cat >>confdefs.h <<_ACEOF | |
13011 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13012 | _ACEOF | |
13013 | ||
13014 | fi | |
13015 | ||
13016 | done | |
13017 | ||
13018 | fi | |
13019 | ||
13020 | ||
13021 | for ac_header in fnmatch.h | |
13022 | do | |
13023 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13024 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13025 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13026 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13027 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13029 | fi | |
13030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13032 | else | |
13033 | # Is the header compilable? | |
13034 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13035 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13036 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13037 | #line $LINENO "configure" |
e6cc62c6 VS |
13038 | /* confdefs.h. */ |
13039 | _ACEOF | |
13040 | cat confdefs.h >>conftest.$ac_ext | |
13041 | cat >>conftest.$ac_ext <<_ACEOF | |
13042 | /* end confdefs.h. */ | |
13043 | $ac_includes_default | |
13044 | #include <$ac_header> | |
13045 | _ACEOF | |
13046 | rm -f conftest.$ac_objext | |
13047 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 13048 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13049 | ac_status=$? |
13050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13051 | (exit $ac_status); } && | |
09d3439c | 13052 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13054 | (eval $ac_try) 2>&5 | |
13055 | ac_status=$? | |
13056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13057 | (exit $ac_status); }; }; then | |
13058 | ac_header_compiler=yes | |
13059 | else | |
13060 | echo "$as_me: failed program was:" >&5 | |
13061 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13062 | ||
13063 | ac_header_compiler=no | |
13064 | fi | |
09d3439c | 13065 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13066 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13067 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13068 | ||
13069 | # Is the header present? | |
13070 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13071 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13072 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13073 | #line $LINENO "configure" |
e6cc62c6 VS |
13074 | /* confdefs.h. */ |
13075 | _ACEOF | |
13076 | cat confdefs.h >>conftest.$ac_ext | |
13077 | cat >>conftest.$ac_ext <<_ACEOF | |
13078 | /* end confdefs.h. */ | |
13079 | #include <$ac_header> | |
13080 | _ACEOF | |
13081 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13082 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13083 | ac_status=$? | |
13084 | grep -v '^ *+' conftest.er1 >conftest.err | |
13085 | rm -f conftest.er1 | |
13086 | cat conftest.err >&5 | |
13087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13088 | (exit $ac_status); } >/dev/null; then | |
13089 | if test -s conftest.err; then | |
13090 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13091 | else | |
13092 | ac_cpp_err= | |
13093 | fi | |
13094 | else | |
13095 | ac_cpp_err=yes | |
13096 | fi | |
13097 | if test -z "$ac_cpp_err"; then | |
13098 | ac_header_preproc=yes | |
13099 | else | |
13100 | echo "$as_me: failed program was:" >&5 | |
13101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13102 | ||
13103 | ac_header_preproc=no | |
13104 | fi | |
13105 | rm -f conftest.err conftest.$ac_ext | |
13106 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13107 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13108 | ||
13109 | # So? What about this header? | |
09d3439c VZ |
13110 | case $ac_header_compiler:$ac_header_preproc in |
13111 | yes:no ) | |
e6cc62c6 VS |
13112 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13113 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
13114 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13115 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13116 | ( | |
13117 | cat <<\_ASBOX | |
13118 | ## ------------------------------------ ## | |
13119 | ## Report this to bug-autoconf@gnu.org. ## | |
13120 | ## ------------------------------------ ## | |
13121 | _ASBOX | |
13122 | ) | | |
13123 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 13124 | ;; |
09d3439c | 13125 | no:yes ) |
e6cc62c6 VS |
13126 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13127 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
13128 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13129 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
13130 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13131 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13132 | ( | |
13133 | cat <<\_ASBOX | |
09d3439c VZ |
13134 | ## ------------------------------------ ## |
13135 | ## Report this to bug-autoconf@gnu.org. ## | |
13136 | ## ------------------------------------ ## | |
e6cc62c6 VS |
13137 | _ASBOX |
13138 | ) | | |
13139 | sed "s/^/$as_me: WARNING: /" >&2 | |
13140 | ;; | |
13141 | esac | |
13142 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13143 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13144 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 13146 | else |
09d3439c | 13147 | eval "$as_ac_Header=$ac_header_preproc" |
e6cc62c6 VS |
13148 | fi |
13149 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13150 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13151 | ||
21d1c967 | 13152 | fi |
e6cc62c6 VS |
13153 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13154 | cat >>confdefs.h <<_ACEOF | |
13155 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13156 | _ACEOF | |
13157 | ||
13158 | fi | |
13159 | ||
21d1c967 | 13160 | done |
90dd450c | 13161 | |
5c6fa7d2 | 13162 | |
a0b9e27f | 13163 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then |
e6cc62c6 VS |
13164 | |
13165 | for ac_func in fnmatch | |
21d1c967 | 13166 | do |
e6cc62c6 VS |
13167 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13168 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13169 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13170 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13172 | else | |
13173 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13174 | #line $LINENO "configure" |
e6cc62c6 VS |
13175 | /* confdefs.h. */ |
13176 | _ACEOF | |
13177 | cat confdefs.h >>conftest.$ac_ext | |
13178 | cat >>conftest.$ac_ext <<_ACEOF | |
13179 | /* end confdefs.h. */ | |
a0b9e27f | 13180 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
13181 | which can conflict with char $ac_func (); below. |
13182 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13183 | <limits.h> exists even on freestanding compilers. */ | |
13184 | #ifdef __STDC__ | |
13185 | # include <limits.h> | |
13186 | #else | |
13187 | # include <assert.h> | |
13188 | #endif | |
a0b9e27f | 13189 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
13190 | #ifdef __cplusplus |
13191 | extern "C" | |
13192 | { | |
13193 | #endif | |
a0b9e27f | 13194 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
13195 | builtin and then its argument prototype would still apply. */ |
13196 | char $ac_func (); | |
a0b9e27f MB |
13197 | /* The GNU C library defines this for functions which it implements |
13198 | to always fail with ENOSYS. Some functions are actually named | |
13199 | something starting with __ and the normal name is an alias. */ | |
13200 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13201 | choke me | |
13202 | #else | |
e6cc62c6 VS |
13203 | char (*f) () = $ac_func; |
13204 | #endif | |
13205 | #ifdef __cplusplus | |
13206 | } | |
a0b9e27f MB |
13207 | #endif |
13208 | ||
e6cc62c6 VS |
13209 | int |
13210 | main () | |
13211 | { | |
13212 | return f != $ac_func; | |
13213 | ; | |
13214 | return 0; | |
13215 | } | |
13216 | _ACEOF | |
13217 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13218 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 13219 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
13220 | ac_status=$? |
13221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13222 | (exit $ac_status); } && | |
09d3439c | 13223 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
13224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13225 | (eval $ac_try) 2>&5 | |
13226 | ac_status=$? | |
13227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13228 | (exit $ac_status); }; }; then | |
13229 | eval "$as_ac_var=yes" | |
13230 | else | |
13231 | echo "$as_me: failed program was:" >&5 | |
13232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13233 | ||
13234 | eval "$as_ac_var=no" | |
13235 | fi | |
09d3439c | 13236 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
13237 | fi |
13238 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13239 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13240 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13241 | cat >>confdefs.h <<_ACEOF | |
13242 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13243 | _ACEOF | |
32832908 | 13244 | |
21d1c967 GD |
13245 | fi |
13246 | done | |
90dd450c | 13247 | |
a0b9e27f | 13248 | fi |
90dd450c | 13249 | |
e6cc62c6 VS |
13250 | |
13251 | for ac_header in langinfo.h | |
21d1c967 | 13252 | do |
e6cc62c6 VS |
13253 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13254 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13255 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13256 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13257 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13259 | fi | |
13260 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13261 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13262 | else | |
13263 | # Is the header compilable? | |
13264 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13265 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13266 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13267 | #line $LINENO "configure" |
e6cc62c6 VS |
13268 | /* confdefs.h. */ |
13269 | _ACEOF | |
13270 | cat confdefs.h >>conftest.$ac_ext | |
13271 | cat >>conftest.$ac_ext <<_ACEOF | |
13272 | /* end confdefs.h. */ | |
13273 | $ac_includes_default | |
13274 | #include <$ac_header> | |
13275 | _ACEOF | |
13276 | rm -f conftest.$ac_objext | |
13277 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 13278 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13279 | ac_status=$? |
13280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13281 | (exit $ac_status); } && | |
09d3439c | 13282 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13284 | (eval $ac_try) 2>&5 | |
13285 | ac_status=$? | |
13286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13287 | (exit $ac_status); }; }; then | |
13288 | ac_header_compiler=yes | |
13289 | else | |
13290 | echo "$as_me: failed program was:" >&5 | |
13291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13292 | ||
13293 | ac_header_compiler=no | |
13294 | fi | |
09d3439c | 13295 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13296 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13297 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13298 | ||
13299 | # Is the header present? | |
13300 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13301 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13302 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13303 | #line $LINENO "configure" |
e6cc62c6 VS |
13304 | /* confdefs.h. */ |
13305 | _ACEOF | |
13306 | cat confdefs.h >>conftest.$ac_ext | |
13307 | cat >>conftest.$ac_ext <<_ACEOF | |
13308 | /* end confdefs.h. */ | |
13309 | #include <$ac_header> | |
13310 | _ACEOF | |
13311 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13312 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13313 | ac_status=$? | |
13314 | grep -v '^ *+' conftest.er1 >conftest.err | |
13315 | rm -f conftest.er1 | |
13316 | cat conftest.err >&5 | |
13317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13318 | (exit $ac_status); } >/dev/null; then | |
13319 | if test -s conftest.err; then | |
13320 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13321 | else | |
13322 | ac_cpp_err= | |
13323 | fi | |
13324 | else | |
13325 | ac_cpp_err=yes | |
13326 | fi | |
13327 | if test -z "$ac_cpp_err"; then | |
13328 | ac_header_preproc=yes | |
13329 | else | |
13330 | echo "$as_me: failed program was:" >&5 | |
13331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13332 | ||
13333 | ac_header_preproc=no | |
13334 | fi | |
13335 | rm -f conftest.err conftest.$ac_ext | |
13336 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13337 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13338 | ||
13339 | # So? What about this header? | |
09d3439c VZ |
13340 | case $ac_header_compiler:$ac_header_preproc in |
13341 | yes:no ) | |
e6cc62c6 VS |
13342 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13343 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
13344 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13345 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13346 | ( | |
13347 | cat <<\_ASBOX | |
13348 | ## ------------------------------------ ## | |
13349 | ## Report this to bug-autoconf@gnu.org. ## | |
13350 | ## ------------------------------------ ## | |
13351 | _ASBOX | |
13352 | ) | | |
13353 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 13354 | ;; |
09d3439c | 13355 | no:yes ) |
e6cc62c6 VS |
13356 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13357 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
13358 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13359 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
13360 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13361 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13362 | ( | |
13363 | cat <<\_ASBOX | |
09d3439c VZ |
13364 | ## ------------------------------------ ## |
13365 | ## Report this to bug-autoconf@gnu.org. ## | |
13366 | ## ------------------------------------ ## | |
e6cc62c6 VS |
13367 | _ASBOX |
13368 | ) | | |
13369 | sed "s/^/$as_me: WARNING: /" >&2 | |
13370 | ;; | |
13371 | esac | |
13372 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13373 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13374 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13376 | else | |
09d3439c | 13377 | eval "$as_ac_Header=$ac_header_preproc" |
90dd450c | 13378 | fi |
e6cc62c6 VS |
13379 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13380 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13381 | ||
4f14bcd8 | 13382 | fi |
e6cc62c6 VS |
13383 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13384 | cat >>confdefs.h <<_ACEOF | |
13385 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13386 | _ACEOF | |
13387 | ||
21d1c967 | 13388 | fi |
e6cc62c6 | 13389 | |
21d1c967 | 13390 | done |
3a922bb4 | 13391 | |
8284b0c5 | 13392 | |
4f5a7f74 VZ |
13393 | case "${host}" in |
13394 | *-pc-os2_emx | *-pc-os2-emx ) | |
13395 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13396 | LIBS="$LIBS -lintl" | |
13397 | fi | |
13398 | ;; | |
13399 | esac | |
1542ea39 | 13400 | |
a0b9e27f | 13401 | if test "$wxUSE_GUI" = "yes"; then |
73d617c9 | 13402 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then |
e6cc62c6 | 13403 | |
eb69fda5 | 13404 | for ac_header in X11/Xlib.h |
21d1c967 | 13405 | do |
e6cc62c6 VS |
13406 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13407 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13408 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13409 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13410 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13411 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13412 | fi | |
13413 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13414 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13415 | else | |
13416 | # Is the header compilable? | |
13417 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13418 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13419 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13420 | #line $LINENO "configure" |
e6cc62c6 VS |
13421 | /* confdefs.h. */ |
13422 | _ACEOF | |
13423 | cat confdefs.h >>conftest.$ac_ext | |
13424 | cat >>conftest.$ac_ext <<_ACEOF | |
13425 | /* end confdefs.h. */ | |
13426 | $ac_includes_default | |
13427 | #include <$ac_header> | |
13428 | _ACEOF | |
13429 | rm -f conftest.$ac_objext | |
13430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 13431 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13432 | ac_status=$? |
13433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13434 | (exit $ac_status); } && | |
09d3439c | 13435 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13437 | (eval $ac_try) 2>&5 | |
13438 | ac_status=$? | |
13439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13440 | (exit $ac_status); }; }; then | |
13441 | ac_header_compiler=yes | |
13442 | else | |
13443 | echo "$as_me: failed program was:" >&5 | |
13444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13445 | ||
13446 | ac_header_compiler=no | |
13447 | fi | |
09d3439c | 13448 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13449 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13450 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13451 | ||
13452 | # Is the header present? | |
13453 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13454 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13455 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13456 | #line $LINENO "configure" |
e6cc62c6 VS |
13457 | /* confdefs.h. */ |
13458 | _ACEOF | |
13459 | cat confdefs.h >>conftest.$ac_ext | |
13460 | cat >>conftest.$ac_ext <<_ACEOF | |
13461 | /* end confdefs.h. */ | |
13462 | #include <$ac_header> | |
13463 | _ACEOF | |
13464 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13465 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13466 | ac_status=$? | |
13467 | grep -v '^ *+' conftest.er1 >conftest.err | |
13468 | rm -f conftest.er1 | |
13469 | cat conftest.err >&5 | |
13470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13471 | (exit $ac_status); } >/dev/null; then | |
13472 | if test -s conftest.err; then | |
13473 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13474 | else | |
13475 | ac_cpp_err= | |
13476 | fi | |
13477 | else | |
13478 | ac_cpp_err=yes | |
13479 | fi | |
13480 | if test -z "$ac_cpp_err"; then | |
13481 | ac_header_preproc=yes | |
13482 | else | |
13483 | echo "$as_me: failed program was:" >&5 | |
13484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13485 | ||
13486 | ac_header_preproc=no | |
13487 | fi | |
13488 | rm -f conftest.err conftest.$ac_ext | |
13489 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13490 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13491 | ||
13492 | # So? What about this header? | |
09d3439c VZ |
13493 | case $ac_header_compiler:$ac_header_preproc in |
13494 | yes:no ) | |
e6cc62c6 VS |
13495 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13496 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
13497 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13498 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13499 | ( | |
13500 | cat <<\_ASBOX | |
13501 | ## ------------------------------------ ## | |
13502 | ## Report this to bug-autoconf@gnu.org. ## | |
13503 | ## ------------------------------------ ## | |
13504 | _ASBOX | |
13505 | ) | | |
13506 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 13507 | ;; |
09d3439c | 13508 | no:yes ) |
e6cc62c6 VS |
13509 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13510 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
13511 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13512 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
13513 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13514 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13515 | ( | |
13516 | cat <<\_ASBOX | |
09d3439c VZ |
13517 | ## ------------------------------------ ## |
13518 | ## Report this to bug-autoconf@gnu.org. ## | |
13519 | ## ------------------------------------ ## | |
e6cc62c6 VS |
13520 | _ASBOX |
13521 | ) | | |
13522 | sed "s/^/$as_me: WARNING: /" >&2 | |
13523 | ;; | |
13524 | esac | |
13525 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13526 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13527 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13529 | else | |
09d3439c | 13530 | eval "$as_ac_Header=$ac_header_preproc" |
3a922bb4 | 13531 | fi |
e6cc62c6 VS |
13532 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
13533 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13534 | ||
90dd450c | 13535 | fi |
e6cc62c6 VS |
13536 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
13537 | cat >>confdefs.h <<_ACEOF | |
13538 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13539 | _ACEOF | |
13540 | ||
247f5006 | 13541 | fi |
e6cc62c6 | 13542 | |
eb69fda5 VS |
13543 | done |
13544 | ||
13545 | ||
13546 | for ac_header in X11/XKBlib.h | |
13547 | do | |
13548 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13549 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13550 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13551 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13552 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13553 | else | |
13554 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13555 | #line $LINENO "configure" |
eb69fda5 VS |
13556 | /* confdefs.h. */ |
13557 | _ACEOF | |
13558 | cat confdefs.h >>conftest.$ac_ext | |
13559 | cat >>conftest.$ac_ext <<_ACEOF | |
13560 | /* end confdefs.h. */ | |
13561 | ||
13562 | #if HAVE_X11_XLIB_H | |
13563 | #include <X11/Xlib.h> | |
13564 | #endif | |
13565 | ||
13566 | ||
13567 | #include <$ac_header> | |
13568 | _ACEOF | |
13569 | rm -f conftest.$ac_objext | |
13570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 13571 | (eval $ac_compile) 2>&5 |
eb69fda5 VS |
13572 | ac_status=$? |
13573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13574 | (exit $ac_status); } && | |
09d3439c | 13575 | { ac_try='test -s conftest.$ac_objext' |
eb69fda5 VS |
13576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13577 | (eval $ac_try) 2>&5 | |
13578 | ac_status=$? | |
13579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13580 | (exit $ac_status); }; }; then | |
13581 | eval "$as_ac_Header=yes" | |
13582 | else | |
13583 | echo "$as_me: failed program was:" >&5 | |
13584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13585 | ||
13586 | eval "$as_ac_Header=no" | |
13587 | fi | |
09d3439c | 13588 | rm -f conftest.$ac_objext conftest.$ac_ext |
eb69fda5 VS |
13589 | fi |
13590 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13591 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13592 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13593 | cat >>confdefs.h <<_ACEOF | |
13594 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13595 | _ACEOF | |
13596 | ||
13597 | fi | |
13598 | ||
247f5006 VZ |
13599 | done |
13600 | ||
a0b9e27f MB |
13601 | fi |
13602 | fi | |
247f5006 | 13603 | |
247f5006 | 13604 | |
e6cc62c6 VS |
13605 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
13606 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13607 | if test "${ac_cv_c_const+set}" = set; then | |
13608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13609 | else | |
13610 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13611 | #line $LINENO "configure" |
e6cc62c6 VS |
13612 | /* confdefs.h. */ |
13613 | _ACEOF | |
13614 | cat confdefs.h >>conftest.$ac_ext | |
13615 | cat >>conftest.$ac_ext <<_ACEOF | |
13616 | /* end confdefs.h. */ | |
13617 | ||
13618 | int | |
13619 | main () | |
13620 | { | |
13621 | /* FIXME: Include the comments suggested by Paul. */ | |
13622 | #ifndef __cplusplus | |
13623 | /* Ultrix mips cc rejects this. */ | |
13624 | typedef int charset[2]; | |
13625 | const charset x; | |
13626 | /* SunOS 4.1.1 cc rejects this. */ | |
13627 | char const *const *ccp; | |
13628 | char **p; | |
13629 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13630 | struct point {int x, y;}; | |
13631 | static struct point const zero = {0,0}; | |
13632 | /* AIX XL C 1.02.0.0 rejects this. | |
13633 | It does not let you subtract one const X* pointer from another in | |
13634 | an arm of an if-expression whose if-part is not a constant | |
13635 | expression */ | |
13636 | const char *g = "string"; | |
13637 | ccp = &g + (g ? g-g : 0); | |
13638 | /* HPUX 7.0 cc rejects these. */ | |
13639 | ++ccp; | |
13640 | p = (char**) ccp; | |
13641 | ccp = (char const *const *) p; | |
13642 | { /* SCO 3.2v4 cc rejects this. */ | |
13643 | char *t; | |
13644 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13645 | ||
13646 | *t++ = 0; | |
13647 | } | |
13648 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13649 | int x[] = {25, 17}; | |
13650 | const int *foo = &x[0]; | |
13651 | ++foo; | |
13652 | } | |
13653 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13654 | typedef const int *iptr; | |
13655 | iptr p = 0; | |
13656 | ++p; | |
13657 | } | |
13658 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13659 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13660 | struct s { int j; const int *ap[3]; }; | |
13661 | struct s *b; b->j = 5; | |
13662 | } | |
13663 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13664 | const int foo = 10; | |
13665 | } | |
13666 | #endif | |
13667 | ||
13668 | ; | |
13669 | return 0; | |
13670 | } | |
13671 | _ACEOF | |
13672 | rm -f conftest.$ac_objext | |
13673 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 13674 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13675 | ac_status=$? |
13676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13677 | (exit $ac_status); } && | |
09d3439c | 13678 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13680 | (eval $ac_try) 2>&5 | |
13681 | ac_status=$? | |
13682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13683 | (exit $ac_status); }; }; then | |
a0b9e27f | 13684 | ac_cv_c_const=yes |
247f5006 | 13685 | else |
e6cc62c6 VS |
13686 | echo "$as_me: failed program was:" >&5 |
13687 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13688 | ||
13689 | ac_cv_c_const=no | |
247f5006 | 13690 | fi |
09d3439c | 13691 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 13692 | fi |
e6cc62c6 VS |
13693 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
13694 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
a0b9e27f | 13695 | if test $ac_cv_c_const = no; then |
e6cc62c6 VS |
13696 | |
13697 | cat >>confdefs.h <<\_ACEOF | |
13698 | #define const | |
13699 | _ACEOF | |
10f2d63a | 13700 | |
90dd450c | 13701 | fi |
81809c07 | 13702 | |
e6cc62c6 VS |
13703 | echo "$as_me:$LINENO: checking for inline" >&5 |
13704 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13705 | if test "${ac_cv_c_inline+set}" = set; then | |
13706 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8168de4c | 13707 | else |
a0b9e27f MB |
13708 | ac_cv_c_inline=no |
13709 | for ac_kw in inline __inline__ __inline; do | |
e6cc62c6 | 13710 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 13711 | #line $LINENO "configure" |
e6cc62c6 VS |
13712 | /* confdefs.h. */ |
13713 | _ACEOF | |
13714 | cat confdefs.h >>conftest.$ac_ext | |
13715 | cat >>conftest.$ac_ext <<_ACEOF | |
13716 | /* end confdefs.h. */ | |
13717 | #ifndef __cplusplus | |
13718 | typedef int foo_t; | |
13719 | static $ac_kw foo_t static_foo () {return 0; } | |
13720 | $ac_kw foo_t foo () {return 0; } | |
13721 | #endif | |
a0b9e27f | 13722 | |
e6cc62c6 VS |
13723 | _ACEOF |
13724 | rm -f conftest.$ac_objext | |
13725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 13726 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13727 | ac_status=$? |
13728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13729 | (exit $ac_status); } && | |
09d3439c | 13730 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13732 | (eval $ac_try) 2>&5 | |
13733 | ac_status=$? | |
13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13735 | (exit $ac_status); }; }; then | |
a0b9e27f | 13736 | ac_cv_c_inline=$ac_kw; break |
247f5006 | 13737 | else |
e6cc62c6 VS |
13738 | echo "$as_me: failed program was:" >&5 |
13739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13740 | ||
247f5006 | 13741 | fi |
09d3439c | 13742 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 13743 | done |
247f5006 VZ |
13744 | |
13745 | fi | |
e6cc62c6 VS |
13746 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
13747 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
13748 | case $ac_cv_c_inline in | |
a0b9e27f | 13749 | inline | yes) ;; |
09d3439c VZ |
13750 | no) |
13751 | cat >>confdefs.h <<\_ACEOF | |
13752 | #define inline | |
e6cc62c6 | 13753 | _ACEOF |
09d3439c VZ |
13754 | ;; |
13755 | *) cat >>confdefs.h <<_ACEOF | |
13756 | #define inline $ac_cv_c_inline | |
13757 | _ACEOF | |
13758 | ;; | |
a0b9e27f | 13759 | esac |
247f5006 | 13760 | |
247f5006 | 13761 | |
e6cc62c6 VS |
13762 | echo "$as_me:$LINENO: checking for char" >&5 |
13763 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
13764 | if test "${ac_cv_type_char+set}" = set; then | |
13765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13766 | else | |
13767 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13768 | #line $LINENO "configure" |
e6cc62c6 VS |
13769 | /* confdefs.h. */ |
13770 | _ACEOF | |
13771 | cat confdefs.h >>conftest.$ac_ext | |
13772 | cat >>conftest.$ac_ext <<_ACEOF | |
13773 | /* end confdefs.h. */ | |
13774 | $ac_includes_default | |
13775 | int | |
13776 | main () | |
13777 | { | |
13778 | if ((char *) 0) | |
13779 | return 0; | |
13780 | if (sizeof (char)) | |
13781 | return 0; | |
13782 | ; | |
13783 | return 0; | |
13784 | } | |
13785 | _ACEOF | |
13786 | rm -f conftest.$ac_objext | |
13787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 13788 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13789 | ac_status=$? |
13790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13791 | (exit $ac_status); } && | |
09d3439c | 13792 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13794 | (eval $ac_try) 2>&5 | |
13795 | ac_status=$? | |
13796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13797 | (exit $ac_status); }; }; then | |
13798 | ac_cv_type_char=yes | |
13799 | else | |
13800 | echo "$as_me: failed program was:" >&5 | |
13801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13802 | ||
13803 | ac_cv_type_char=no | |
13804 | fi | |
09d3439c | 13805 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13806 | fi |
13807 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
13808 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
13809 | ||
13810 | echo "$as_me:$LINENO: checking size of char" >&5 | |
13811 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
13812 | if test "${ac_cv_sizeof_char+set}" = set; then | |
13813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13814 | else | |
13815 | if test "$ac_cv_type_char" = yes; then | |
13816 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13817 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13818 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13819 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 13820 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
13821 | # Depending upon the size, compute the lo and hi bounds. |
13822 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13823 | #line $LINENO "configure" |
e6cc62c6 VS |
13824 | /* confdefs.h. */ |
13825 | _ACEOF | |
13826 | cat confdefs.h >>conftest.$ac_ext | |
13827 | cat >>conftest.$ac_ext <<_ACEOF | |
13828 | /* end confdefs.h. */ | |
13829 | $ac_includes_default | |
13830 | int | |
13831 | main () | |
13832 | { | |
13833 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
13834 | test_array [0] = 0 | |
13835 | ||
13836 | ; | |
13837 | return 0; | |
13838 | } | |
13839 | _ACEOF | |
13840 | rm -f conftest.$ac_objext | |
13841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 13842 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13843 | ac_status=$? |
13844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13845 | (exit $ac_status); } && | |
09d3439c | 13846 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13848 | (eval $ac_try) 2>&5 | |
13849 | ac_status=$? | |
13850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13851 | (exit $ac_status); }; }; then | |
13852 | ac_lo=0 ac_mid=0 | |
13853 | while :; do | |
13854 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13855 | #line $LINENO "configure" |
e6cc62c6 VS |
13856 | /* confdefs.h. */ |
13857 | _ACEOF | |
13858 | cat confdefs.h >>conftest.$ac_ext | |
13859 | cat >>conftest.$ac_ext <<_ACEOF | |
13860 | /* end confdefs.h. */ | |
13861 | $ac_includes_default | |
13862 | int | |
13863 | main () | |
13864 | { | |
13865 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
13866 | test_array [0] = 0 | |
13867 | ||
13868 | ; | |
13869 | return 0; | |
13870 | } | |
13871 | _ACEOF | |
13872 | rm -f conftest.$ac_objext | |
13873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 13874 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13875 | ac_status=$? |
13876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13877 | (exit $ac_status); } && | |
09d3439c | 13878 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13880 | (eval $ac_try) 2>&5 | |
13881 | ac_status=$? | |
13882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13883 | (exit $ac_status); }; }; then | |
13884 | ac_hi=$ac_mid; break | |
13885 | else | |
13886 | echo "$as_me: failed program was:" >&5 | |
13887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13888 | ||
13889 | ac_lo=`expr $ac_mid + 1` | |
09d3439c VZ |
13890 | if test $ac_lo -le $ac_mid; then |
13891 | ac_lo= ac_hi= | |
13892 | break | |
13893 | fi | |
13894 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 13895 | fi |
09d3439c | 13896 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 13897 | done |
a0b9e27f | 13898 | else |
e6cc62c6 VS |
13899 | echo "$as_me: failed program was:" >&5 |
13900 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13901 | ||
13902 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13903 | #line $LINENO "configure" |
e6cc62c6 VS |
13904 | /* confdefs.h. */ |
13905 | _ACEOF | |
13906 | cat confdefs.h >>conftest.$ac_ext | |
13907 | cat >>conftest.$ac_ext <<_ACEOF | |
13908 | /* end confdefs.h. */ | |
13909 | $ac_includes_default | |
13910 | int | |
13911 | main () | |
13912 | { | |
13913 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
13914 | test_array [0] = 0 | |
13915 | ||
13916 | ; | |
13917 | return 0; | |
13918 | } | |
13919 | _ACEOF | |
13920 | rm -f conftest.$ac_objext | |
13921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 13922 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13923 | ac_status=$? |
13924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13925 | (exit $ac_status); } && | |
09d3439c | 13926 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13927 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13928 | (eval $ac_try) 2>&5 | |
13929 | ac_status=$? | |
13930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13931 | (exit $ac_status); }; }; then | |
13932 | ac_hi=-1 ac_mid=-1 | |
13933 | while :; do | |
13934 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13935 | #line $LINENO "configure" |
e6cc62c6 VS |
13936 | /* confdefs.h. */ |
13937 | _ACEOF | |
13938 | cat confdefs.h >>conftest.$ac_ext | |
13939 | cat >>conftest.$ac_ext <<_ACEOF | |
13940 | /* end confdefs.h. */ | |
13941 | $ac_includes_default | |
13942 | int | |
13943 | main () | |
13944 | { | |
13945 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
13946 | test_array [0] = 0 | |
13947 | ||
13948 | ; | |
13949 | return 0; | |
13950 | } | |
13951 | _ACEOF | |
13952 | rm -f conftest.$ac_objext | |
13953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 13954 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
13955 | ac_status=$? |
13956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13957 | (exit $ac_status); } && | |
09d3439c | 13958 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
13959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13960 | (eval $ac_try) 2>&5 | |
13961 | ac_status=$? | |
13962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13963 | (exit $ac_status); }; }; then | |
13964 | ac_lo=$ac_mid; break | |
13965 | else | |
13966 | echo "$as_me: failed program was:" >&5 | |
13967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13968 | ||
13969 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
09d3439c VZ |
13970 | if test $ac_mid -le $ac_hi; then |
13971 | ac_lo= ac_hi= | |
13972 | break | |
13973 | fi | |
13974 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 13975 | fi |
09d3439c | 13976 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13977 | done |
13978 | else | |
13979 | echo "$as_me: failed program was:" >&5 | |
13980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13981 | ||
13982 | ac_lo= ac_hi= | |
13983 | fi | |
09d3439c | 13984 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 13985 | fi |
09d3439c | 13986 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
13987 | # Binary search between lo and hi bounds. |
13988 | while test "x$ac_lo" != "x$ac_hi"; do | |
13989 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13990 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 13991 | #line $LINENO "configure" |
e6cc62c6 VS |
13992 | /* confdefs.h. */ |
13993 | _ACEOF | |
13994 | cat confdefs.h >>conftest.$ac_ext | |
13995 | cat >>conftest.$ac_ext <<_ACEOF | |
13996 | /* end confdefs.h. */ | |
13997 | $ac_includes_default | |
13998 | int | |
13999 | main () | |
14000 | { | |
14001 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14002 | test_array [0] = 0 | |
14003 | ||
14004 | ; | |
14005 | return 0; | |
14006 | } | |
14007 | _ACEOF | |
14008 | rm -f conftest.$ac_objext | |
14009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14010 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14011 | ac_status=$? |
14012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14013 | (exit $ac_status); } && | |
09d3439c | 14014 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14016 | (eval $ac_try) 2>&5 | |
14017 | ac_status=$? | |
14018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14019 | (exit $ac_status); }; }; then | |
14020 | ac_hi=$ac_mid | |
14021 | else | |
14022 | echo "$as_me: failed program was:" >&5 | |
14023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14024 | ||
14025 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14026 | fi | |
09d3439c | 14027 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14028 | done |
14029 | case $ac_lo in | |
14030 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14031 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14032 | See \`config.log' for more details." >&5 | |
14033 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14034 | See \`config.log' for more details." >&2;} | |
14035 | { (exit 1); exit 1; }; } ;; | |
14036 | esac | |
14037 | else | |
14038 | if test "$cross_compiling" = yes; then | |
14039 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14040 | See \`config.log' for more details." >&5 | |
14041 | echo "$as_me: error: cannot run test program while cross compiling | |
14042 | See \`config.log' for more details." >&2;} | |
14043 | { (exit 1); exit 1; }; } | |
14044 | else | |
14045 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14046 | #line $LINENO "configure" |
e6cc62c6 VS |
14047 | /* confdefs.h. */ |
14048 | _ACEOF | |
14049 | cat confdefs.h >>conftest.$ac_ext | |
14050 | cat >>conftest.$ac_ext <<_ACEOF | |
14051 | /* end confdefs.h. */ | |
14052 | $ac_includes_default | |
14053 | long longval () { return (long) (sizeof (char)); } | |
14054 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
a0b9e27f | 14055 | #include <stdio.h> |
e6cc62c6 VS |
14056 | #include <stdlib.h> |
14057 | int | |
14058 | main () | |
247f5006 | 14059 | { |
e6cc62c6 VS |
14060 | |
14061 | FILE *f = fopen ("conftest.val", "w"); | |
14062 | if (! f) | |
14063 | exit (1); | |
14064 | if (((long) (sizeof (char))) < 0) | |
14065 | { | |
14066 | long i = longval (); | |
14067 | if (i != ((long) (sizeof (char)))) | |
14068 | exit (1); | |
14069 | fprintf (f, "%ld\n", i); | |
14070 | } | |
14071 | else | |
14072 | { | |
14073 | unsigned long i = ulongval (); | |
14074 | if (i != ((long) (sizeof (char)))) | |
14075 | exit (1); | |
14076 | fprintf (f, "%lu\n", i); | |
14077 | } | |
14078 | exit (ferror (f) || fclose (f) != 0); | |
14079 | ||
14080 | ; | |
14081 | return 0; | |
52127426 | 14082 | } |
e6cc62c6 VS |
14083 | _ACEOF |
14084 | rm -f conftest$ac_exeext | |
14085 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14086 | (eval $ac_link) 2>&5 | |
14087 | ac_status=$? | |
14088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14089 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14091 | (eval $ac_try) 2>&5 | |
14092 | ac_status=$? | |
14093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14094 | (exit $ac_status); }; }; then | |
14095 | ac_cv_sizeof_char=`cat conftest.val` | |
14096 | else | |
14097 | echo "$as_me: program exited with status $ac_status" >&5 | |
14098 | echo "$as_me: failed program was:" >&5 | |
14099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14100 | ||
14101 | ( exit $ac_status ) | |
14102 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14103 | See \`config.log' for more details." >&5 | |
14104 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14105 | See \`config.log' for more details." >&2;} | |
14106 | { (exit 1); exit 1; }; } | |
14107 | fi | |
09d3439c | 14108 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14109 | fi |
14110 | fi | |
14111 | rm -f conftest.val | |
247f5006 | 14112 | else |
a0b9e27f | 14113 | ac_cv_sizeof_char=0 |
247f5006 | 14114 | fi |
247f5006 | 14115 | fi |
e6cc62c6 VS |
14116 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 |
14117 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14118 | cat >>confdefs.h <<_ACEOF | |
14119 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14120 | _ACEOF | |
14121 | ||
14122 | ||
14123 | echo "$as_me:$LINENO: checking for short" >&5 | |
14124 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14125 | if test "${ac_cv_type_short+set}" = set; then | |
14126 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14127 | else | |
14128 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14129 | #line $LINENO "configure" |
e6cc62c6 VS |
14130 | /* confdefs.h. */ |
14131 | _ACEOF | |
14132 | cat confdefs.h >>conftest.$ac_ext | |
14133 | cat >>conftest.$ac_ext <<_ACEOF | |
14134 | /* end confdefs.h. */ | |
14135 | $ac_includes_default | |
14136 | int | |
14137 | main () | |
14138 | { | |
14139 | if ((short *) 0) | |
14140 | return 0; | |
14141 | if (sizeof (short)) | |
14142 | return 0; | |
14143 | ; | |
14144 | return 0; | |
14145 | } | |
14146 | _ACEOF | |
14147 | rm -f conftest.$ac_objext | |
14148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14149 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14150 | ac_status=$? |
14151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14152 | (exit $ac_status); } && | |
09d3439c | 14153 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14155 | (eval $ac_try) 2>&5 | |
14156 | ac_status=$? | |
14157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14158 | (exit $ac_status); }; }; then | |
14159 | ac_cv_type_short=yes | |
14160 | else | |
14161 | echo "$as_me: failed program was:" >&5 | |
14162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14163 | ||
14164 | ac_cv_type_short=no | |
14165 | fi | |
09d3439c | 14166 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14167 | fi |
14168 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14169 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14170 | ||
14171 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14172 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14173 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14175 | else | |
14176 | if test "$ac_cv_type_short" = yes; then | |
14177 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14178 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14179 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14180 | # This bug is HP SR number 8606223364. | |
14181 | if test "$cross_compiling" = yes; then | |
14182 | # Depending upon the size, compute the lo and hi bounds. | |
14183 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14184 | #line $LINENO "configure" |
e6cc62c6 VS |
14185 | /* confdefs.h. */ |
14186 | _ACEOF | |
14187 | cat confdefs.h >>conftest.$ac_ext | |
14188 | cat >>conftest.$ac_ext <<_ACEOF | |
14189 | /* end confdefs.h. */ | |
14190 | $ac_includes_default | |
14191 | int | |
14192 | main () | |
14193 | { | |
14194 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14195 | test_array [0] = 0 | |
247f5006 | 14196 | |
e6cc62c6 VS |
14197 | ; |
14198 | return 0; | |
14199 | } | |
14200 | _ACEOF | |
14201 | rm -f conftest.$ac_objext | |
14202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14203 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14204 | ac_status=$? |
14205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14206 | (exit $ac_status); } && | |
09d3439c | 14207 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14209 | (eval $ac_try) 2>&5 | |
14210 | ac_status=$? | |
14211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14212 | (exit $ac_status); }; }; then | |
14213 | ac_lo=0 ac_mid=0 | |
14214 | while :; do | |
14215 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14216 | #line $LINENO "configure" |
e6cc62c6 VS |
14217 | /* confdefs.h. */ |
14218 | _ACEOF | |
14219 | cat confdefs.h >>conftest.$ac_ext | |
14220 | cat >>conftest.$ac_ext <<_ACEOF | |
14221 | /* end confdefs.h. */ | |
14222 | $ac_includes_default | |
14223 | int | |
14224 | main () | |
14225 | { | |
14226 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14227 | test_array [0] = 0 | |
14228 | ||
14229 | ; | |
14230 | return 0; | |
14231 | } | |
14232 | _ACEOF | |
14233 | rm -f conftest.$ac_objext | |
14234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14235 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14236 | ac_status=$? |
14237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14238 | (exit $ac_status); } && | |
09d3439c | 14239 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14240 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14241 | (eval $ac_try) 2>&5 | |
14242 | ac_status=$? | |
14243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14244 | (exit $ac_status); }; }; then | |
14245 | ac_hi=$ac_mid; break | |
14246 | else | |
14247 | echo "$as_me: failed program was:" >&5 | |
14248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14249 | ||
14250 | ac_lo=`expr $ac_mid + 1` | |
09d3439c VZ |
14251 | if test $ac_lo -le $ac_mid; then |
14252 | ac_lo= ac_hi= | |
14253 | break | |
14254 | fi | |
14255 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14256 | fi |
09d3439c | 14257 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14258 | done |
14259 | else | |
14260 | echo "$as_me: failed program was:" >&5 | |
14261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14262 | ||
14263 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14264 | #line $LINENO "configure" |
e6cc62c6 VS |
14265 | /* confdefs.h. */ |
14266 | _ACEOF | |
14267 | cat confdefs.h >>conftest.$ac_ext | |
14268 | cat >>conftest.$ac_ext <<_ACEOF | |
14269 | /* end confdefs.h. */ | |
14270 | $ac_includes_default | |
14271 | int | |
14272 | main () | |
14273 | { | |
14274 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14275 | test_array [0] = 0 | |
247f5006 | 14276 | |
e6cc62c6 VS |
14277 | ; |
14278 | return 0; | |
14279 | } | |
14280 | _ACEOF | |
14281 | rm -f conftest.$ac_objext | |
14282 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14283 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14284 | ac_status=$? |
14285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14286 | (exit $ac_status); } && | |
09d3439c | 14287 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14289 | (eval $ac_try) 2>&5 | |
14290 | ac_status=$? | |
14291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14292 | (exit $ac_status); }; }; then | |
14293 | ac_hi=-1 ac_mid=-1 | |
14294 | while :; do | |
14295 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14296 | #line $LINENO "configure" |
e6cc62c6 VS |
14297 | /* confdefs.h. */ |
14298 | _ACEOF | |
14299 | cat confdefs.h >>conftest.$ac_ext | |
14300 | cat >>conftest.$ac_ext <<_ACEOF | |
14301 | /* end confdefs.h. */ | |
14302 | $ac_includes_default | |
14303 | int | |
14304 | main () | |
14305 | { | |
14306 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14307 | test_array [0] = 0 | |
247f5006 | 14308 | |
e6cc62c6 VS |
14309 | ; |
14310 | return 0; | |
14311 | } | |
14312 | _ACEOF | |
14313 | rm -f conftest.$ac_objext | |
14314 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14315 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14316 | ac_status=$? |
14317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14318 | (exit $ac_status); } && | |
09d3439c | 14319 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14320 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14321 | (eval $ac_try) 2>&5 | |
14322 | ac_status=$? | |
14323 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14324 | (exit $ac_status); }; }; then | |
14325 | ac_lo=$ac_mid; break | |
14326 | else | |
14327 | echo "$as_me: failed program was:" >&5 | |
14328 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14329 | ||
14330 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
09d3439c VZ |
14331 | if test $ac_mid -le $ac_hi; then |
14332 | ac_lo= ac_hi= | |
14333 | break | |
14334 | fi | |
14335 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14336 | fi |
09d3439c | 14337 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14338 | done |
247f5006 | 14339 | else |
e6cc62c6 VS |
14340 | echo "$as_me: failed program was:" >&5 |
14341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14342 | ||
14343 | ac_lo= ac_hi= | |
14344 | fi | |
09d3439c | 14345 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14346 | fi |
09d3439c | 14347 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14348 | # Binary search between lo and hi bounds. |
14349 | while test "x$ac_lo" != "x$ac_hi"; do | |
14350 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14351 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14352 | #line $LINENO "configure" |
e6cc62c6 VS |
14353 | /* confdefs.h. */ |
14354 | _ACEOF | |
14355 | cat confdefs.h >>conftest.$ac_ext | |
14356 | cat >>conftest.$ac_ext <<_ACEOF | |
14357 | /* end confdefs.h. */ | |
14358 | $ac_includes_default | |
14359 | int | |
14360 | main () | |
14361 | { | |
14362 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14363 | test_array [0] = 0 | |
14364 | ||
14365 | ; | |
14366 | return 0; | |
14367 | } | |
14368 | _ACEOF | |
14369 | rm -f conftest.$ac_objext | |
14370 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14371 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14372 | ac_status=$? |
14373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14374 | (exit $ac_status); } && | |
09d3439c | 14375 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14377 | (eval $ac_try) 2>&5 | |
14378 | ac_status=$? | |
14379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14380 | (exit $ac_status); }; }; then | |
14381 | ac_hi=$ac_mid | |
14382 | else | |
14383 | echo "$as_me: failed program was:" >&5 | |
14384 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14385 | ||
14386 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14387 | fi | |
09d3439c | 14388 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14389 | done |
14390 | case $ac_lo in | |
14391 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14392 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14393 | See \`config.log' for more details." >&5 | |
14394 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14395 | See \`config.log' for more details." >&2;} | |
14396 | { (exit 1); exit 1; }; } ;; | |
14397 | esac | |
247f5006 | 14398 | else |
e6cc62c6 VS |
14399 | if test "$cross_compiling" = yes; then |
14400 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14401 | See \`config.log' for more details." >&5 | |
14402 | echo "$as_me: error: cannot run test program while cross compiling | |
14403 | See \`config.log' for more details." >&2;} | |
14404 | { (exit 1); exit 1; }; } | |
14405 | else | |
14406 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14407 | #line $LINENO "configure" |
e6cc62c6 VS |
14408 | /* confdefs.h. */ |
14409 | _ACEOF | |
14410 | cat confdefs.h >>conftest.$ac_ext | |
14411 | cat >>conftest.$ac_ext <<_ACEOF | |
14412 | /* end confdefs.h. */ | |
14413 | $ac_includes_default | |
14414 | long longval () { return (long) (sizeof (short)); } | |
14415 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
a0b9e27f | 14416 | #include <stdio.h> |
e6cc62c6 VS |
14417 | #include <stdlib.h> |
14418 | int | |
14419 | main () | |
a0b9e27f | 14420 | { |
e6cc62c6 VS |
14421 | |
14422 | FILE *f = fopen ("conftest.val", "w"); | |
14423 | if (! f) | |
14424 | exit (1); | |
14425 | if (((long) (sizeof (short))) < 0) | |
14426 | { | |
14427 | long i = longval (); | |
14428 | if (i != ((long) (sizeof (short)))) | |
14429 | exit (1); | |
14430 | fprintf (f, "%ld\n", i); | |
14431 | } | |
14432 | else | |
14433 | { | |
14434 | unsigned long i = ulongval (); | |
14435 | if (i != ((long) (sizeof (short)))) | |
14436 | exit (1); | |
14437 | fprintf (f, "%lu\n", i); | |
14438 | } | |
14439 | exit (ferror (f) || fclose (f) != 0); | |
14440 | ||
14441 | ; | |
14442 | return 0; | |
a0b9e27f | 14443 | } |
e6cc62c6 VS |
14444 | _ACEOF |
14445 | rm -f conftest$ac_exeext | |
14446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14447 | (eval $ac_link) 2>&5 | |
14448 | ac_status=$? | |
14449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14450 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14452 | (eval $ac_try) 2>&5 | |
14453 | ac_status=$? | |
14454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14455 | (exit $ac_status); }; }; then | |
14456 | ac_cv_sizeof_short=`cat conftest.val` | |
14457 | else | |
14458 | echo "$as_me: program exited with status $ac_status" >&5 | |
14459 | echo "$as_me: failed program was:" >&5 | |
14460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14461 | ||
14462 | ( exit $ac_status ) | |
14463 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14464 | See \`config.log' for more details." >&5 | |
14465 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14466 | See \`config.log' for more details." >&2;} | |
14467 | { (exit 1); exit 1; }; } | |
14468 | fi | |
09d3439c | 14469 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14470 | fi |
14471 | fi | |
14472 | rm -f conftest.val | |
247f5006 | 14473 | else |
a0b9e27f | 14474 | ac_cv_sizeof_short=0 |
247f5006 | 14475 | fi |
247f5006 | 14476 | fi |
e6cc62c6 VS |
14477 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 |
14478 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14479 | cat >>confdefs.h <<_ACEOF | |
14480 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14481 | _ACEOF | |
14482 | ||
14483 | ||
14484 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14485 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14486 | if test "${ac_cv_type_void_p+set}" = set; then | |
14487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14488 | else | |
14489 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14490 | #line $LINENO "configure" |
e6cc62c6 VS |
14491 | /* confdefs.h. */ |
14492 | _ACEOF | |
14493 | cat confdefs.h >>conftest.$ac_ext | |
14494 | cat >>conftest.$ac_ext <<_ACEOF | |
14495 | /* end confdefs.h. */ | |
14496 | $ac_includes_default | |
14497 | int | |
14498 | main () | |
14499 | { | |
14500 | if ((void * *) 0) | |
14501 | return 0; | |
14502 | if (sizeof (void *)) | |
14503 | return 0; | |
14504 | ; | |
14505 | return 0; | |
14506 | } | |
14507 | _ACEOF | |
14508 | rm -f conftest.$ac_objext | |
14509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14510 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14511 | ac_status=$? |
14512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14513 | (exit $ac_status); } && | |
09d3439c | 14514 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14516 | (eval $ac_try) 2>&5 | |
14517 | ac_status=$? | |
14518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14519 | (exit $ac_status); }; }; then | |
14520 | ac_cv_type_void_p=yes | |
14521 | else | |
14522 | echo "$as_me: failed program was:" >&5 | |
14523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14524 | ||
14525 | ac_cv_type_void_p=no | |
14526 | fi | |
09d3439c | 14527 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14528 | fi |
14529 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14530 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14531 | ||
14532 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14533 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14534 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14536 | else | |
14537 | if test "$ac_cv_type_void_p" = yes; then | |
14538 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14539 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14540 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14541 | # This bug is HP SR number 8606223364. | |
14542 | if test "$cross_compiling" = yes; then | |
14543 | # Depending upon the size, compute the lo and hi bounds. | |
14544 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14545 | #line $LINENO "configure" |
e6cc62c6 VS |
14546 | /* confdefs.h. */ |
14547 | _ACEOF | |
14548 | cat confdefs.h >>conftest.$ac_ext | |
14549 | cat >>conftest.$ac_ext <<_ACEOF | |
14550 | /* end confdefs.h. */ | |
14551 | $ac_includes_default | |
14552 | int | |
14553 | main () | |
14554 | { | |
14555 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14556 | test_array [0] = 0 | |
14557 | ||
14558 | ; | |
14559 | return 0; | |
14560 | } | |
14561 | _ACEOF | |
14562 | rm -f conftest.$ac_objext | |
14563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14564 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14565 | ac_status=$? |
14566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14567 | (exit $ac_status); } && | |
09d3439c | 14568 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14570 | (eval $ac_try) 2>&5 | |
14571 | ac_status=$? | |
14572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14573 | (exit $ac_status); }; }; then | |
14574 | ac_lo=0 ac_mid=0 | |
14575 | while :; do | |
14576 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14577 | #line $LINENO "configure" |
e6cc62c6 VS |
14578 | /* confdefs.h. */ |
14579 | _ACEOF | |
14580 | cat confdefs.h >>conftest.$ac_ext | |
14581 | cat >>conftest.$ac_ext <<_ACEOF | |
14582 | /* end confdefs.h. */ | |
14583 | $ac_includes_default | |
14584 | int | |
14585 | main () | |
14586 | { | |
14587 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14588 | test_array [0] = 0 | |
247f5006 | 14589 | |
e6cc62c6 VS |
14590 | ; |
14591 | return 0; | |
14592 | } | |
14593 | _ACEOF | |
14594 | rm -f conftest.$ac_objext | |
14595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14596 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14597 | ac_status=$? |
14598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14599 | (exit $ac_status); } && | |
09d3439c | 14600 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14602 | (eval $ac_try) 2>&5 | |
14603 | ac_status=$? | |
14604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14605 | (exit $ac_status); }; }; then | |
14606 | ac_hi=$ac_mid; break | |
14607 | else | |
14608 | echo "$as_me: failed program was:" >&5 | |
14609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14610 | ||
14611 | ac_lo=`expr $ac_mid + 1` | |
09d3439c VZ |
14612 | if test $ac_lo -le $ac_mid; then |
14613 | ac_lo= ac_hi= | |
14614 | break | |
14615 | fi | |
14616 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14617 | fi |
09d3439c | 14618 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14619 | done |
14620 | else | |
14621 | echo "$as_me: failed program was:" >&5 | |
14622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14623 | ||
14624 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14625 | #line $LINENO "configure" |
e6cc62c6 VS |
14626 | /* confdefs.h. */ |
14627 | _ACEOF | |
14628 | cat confdefs.h >>conftest.$ac_ext | |
14629 | cat >>conftest.$ac_ext <<_ACEOF | |
14630 | /* end confdefs.h. */ | |
14631 | $ac_includes_default | |
14632 | int | |
14633 | main () | |
14634 | { | |
14635 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
14636 | test_array [0] = 0 | |
247f5006 | 14637 | |
e6cc62c6 VS |
14638 | ; |
14639 | return 0; | |
14640 | } | |
14641 | _ACEOF | |
14642 | rm -f conftest.$ac_objext | |
14643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14644 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14645 | ac_status=$? |
14646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14647 | (exit $ac_status); } && | |
09d3439c | 14648 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14650 | (eval $ac_try) 2>&5 | |
14651 | ac_status=$? | |
14652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14653 | (exit $ac_status); }; }; then | |
14654 | ac_hi=-1 ac_mid=-1 | |
14655 | while :; do | |
14656 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14657 | #line $LINENO "configure" |
e6cc62c6 VS |
14658 | /* confdefs.h. */ |
14659 | _ACEOF | |
14660 | cat confdefs.h >>conftest.$ac_ext | |
14661 | cat >>conftest.$ac_ext <<_ACEOF | |
14662 | /* end confdefs.h. */ | |
14663 | $ac_includes_default | |
14664 | int | |
14665 | main () | |
14666 | { | |
14667 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
14668 | test_array [0] = 0 | |
247f5006 | 14669 | |
e6cc62c6 VS |
14670 | ; |
14671 | return 0; | |
14672 | } | |
14673 | _ACEOF | |
14674 | rm -f conftest.$ac_objext | |
14675 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14676 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14677 | ac_status=$? |
14678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14679 | (exit $ac_status); } && | |
09d3439c | 14680 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14682 | (eval $ac_try) 2>&5 | |
14683 | ac_status=$? | |
14684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14685 | (exit $ac_status); }; }; then | |
14686 | ac_lo=$ac_mid; break | |
14687 | else | |
14688 | echo "$as_me: failed program was:" >&5 | |
14689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14690 | ||
14691 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
09d3439c VZ |
14692 | if test $ac_mid -le $ac_hi; then |
14693 | ac_lo= ac_hi= | |
14694 | break | |
14695 | fi | |
14696 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 14697 | fi |
09d3439c | 14698 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14699 | done |
a0b9e27f | 14700 | else |
e6cc62c6 VS |
14701 | echo "$as_me: failed program was:" >&5 |
14702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14703 | ||
14704 | ac_lo= ac_hi= | |
14705 | fi | |
09d3439c | 14706 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 14707 | fi |
09d3439c | 14708 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14709 | # Binary search between lo and hi bounds. |
14710 | while test "x$ac_lo" != "x$ac_hi"; do | |
14711 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14712 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14713 | #line $LINENO "configure" |
e6cc62c6 VS |
14714 | /* confdefs.h. */ |
14715 | _ACEOF | |
14716 | cat confdefs.h >>conftest.$ac_ext | |
14717 | cat >>conftest.$ac_ext <<_ACEOF | |
14718 | /* end confdefs.h. */ | |
14719 | $ac_includes_default | |
14720 | int | |
14721 | main () | |
14722 | { | |
14723 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14724 | test_array [0] = 0 | |
14725 | ||
14726 | ; | |
14727 | return 0; | |
14728 | } | |
14729 | _ACEOF | |
14730 | rm -f conftest.$ac_objext | |
14731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14732 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14733 | ac_status=$? |
14734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14735 | (exit $ac_status); } && | |
09d3439c | 14736 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14738 | (eval $ac_try) 2>&5 | |
14739 | ac_status=$? | |
14740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14741 | (exit $ac_status); }; }; then | |
14742 | ac_hi=$ac_mid | |
14743 | else | |
14744 | echo "$as_me: failed program was:" >&5 | |
14745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14746 | ||
14747 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14748 | fi | |
09d3439c | 14749 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14750 | done |
14751 | case $ac_lo in | |
14752 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14753 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14754 | See \`config.log' for more details." >&5 | |
14755 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14756 | See \`config.log' for more details." >&2;} | |
14757 | { (exit 1); exit 1; }; } ;; | |
14758 | esac | |
247f5006 | 14759 | else |
e6cc62c6 VS |
14760 | if test "$cross_compiling" = yes; then |
14761 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14762 | See \`config.log' for more details." >&5 | |
14763 | echo "$as_me: error: cannot run test program while cross compiling | |
14764 | See \`config.log' for more details." >&2;} | |
14765 | { (exit 1); exit 1; }; } | |
14766 | else | |
14767 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14768 | #line $LINENO "configure" |
e6cc62c6 VS |
14769 | /* confdefs.h. */ |
14770 | _ACEOF | |
14771 | cat confdefs.h >>conftest.$ac_ext | |
14772 | cat >>conftest.$ac_ext <<_ACEOF | |
14773 | /* end confdefs.h. */ | |
14774 | $ac_includes_default | |
14775 | long longval () { return (long) (sizeof (void *)); } | |
14776 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
247f5006 | 14777 | #include <stdio.h> |
e6cc62c6 VS |
14778 | #include <stdlib.h> |
14779 | int | |
14780 | main () | |
247f5006 | 14781 | { |
e6cc62c6 VS |
14782 | |
14783 | FILE *f = fopen ("conftest.val", "w"); | |
14784 | if (! f) | |
14785 | exit (1); | |
14786 | if (((long) (sizeof (void *))) < 0) | |
14787 | { | |
14788 | long i = longval (); | |
14789 | if (i != ((long) (sizeof (void *)))) | |
14790 | exit (1); | |
14791 | fprintf (f, "%ld\n", i); | |
14792 | } | |
14793 | else | |
14794 | { | |
14795 | unsigned long i = ulongval (); | |
14796 | if (i != ((long) (sizeof (void *)))) | |
14797 | exit (1); | |
14798 | fprintf (f, "%lu\n", i); | |
14799 | } | |
14800 | exit (ferror (f) || fclose (f) != 0); | |
14801 | ||
14802 | ; | |
14803 | return 0; | |
5c6fa7d2 | 14804 | } |
e6cc62c6 VS |
14805 | _ACEOF |
14806 | rm -f conftest$ac_exeext | |
14807 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14808 | (eval $ac_link) 2>&5 | |
14809 | ac_status=$? | |
14810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14811 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14813 | (eval $ac_try) 2>&5 | |
14814 | ac_status=$? | |
14815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14816 | (exit $ac_status); }; }; then | |
14817 | ac_cv_sizeof_void_p=`cat conftest.val` | |
14818 | else | |
14819 | echo "$as_me: program exited with status $ac_status" >&5 | |
14820 | echo "$as_me: failed program was:" >&5 | |
14821 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14822 | ||
14823 | ( exit $ac_status ) | |
14824 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14825 | See \`config.log' for more details." >&5 | |
14826 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14827 | See \`config.log' for more details." >&2;} | |
14828 | { (exit 1); exit 1; }; } | |
14829 | fi | |
09d3439c | 14830 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14831 | fi |
14832 | fi | |
14833 | rm -f conftest.val | |
a0b9e27f | 14834 | else |
a0b9e27f MB |
14835 | ac_cv_sizeof_void_p=0 |
14836 | fi | |
a0b9e27f | 14837 | fi |
e6cc62c6 VS |
14838 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 |
14839 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
14840 | cat >>confdefs.h <<_ACEOF | |
14841 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14842 | _ACEOF | |
14843 | ||
14844 | ||
14845 | echo "$as_me:$LINENO: checking for int" >&5 | |
14846 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14847 | if test "${ac_cv_type_int+set}" = set; then | |
14848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14849 | else | |
14850 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14851 | #line $LINENO "configure" |
e6cc62c6 VS |
14852 | /* confdefs.h. */ |
14853 | _ACEOF | |
14854 | cat confdefs.h >>conftest.$ac_ext | |
14855 | cat >>conftest.$ac_ext <<_ACEOF | |
14856 | /* end confdefs.h. */ | |
14857 | $ac_includes_default | |
14858 | int | |
14859 | main () | |
14860 | { | |
14861 | if ((int *) 0) | |
14862 | return 0; | |
14863 | if (sizeof (int)) | |
14864 | return 0; | |
14865 | ; | |
14866 | return 0; | |
14867 | } | |
14868 | _ACEOF | |
14869 | rm -f conftest.$ac_objext | |
14870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14871 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14872 | ac_status=$? |
14873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14874 | (exit $ac_status); } && | |
09d3439c | 14875 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14877 | (eval $ac_try) 2>&5 | |
14878 | ac_status=$? | |
14879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14880 | (exit $ac_status); }; }; then | |
14881 | ac_cv_type_int=yes | |
14882 | else | |
14883 | echo "$as_me: failed program was:" >&5 | |
14884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14885 | ||
14886 | ac_cv_type_int=no | |
14887 | fi | |
09d3439c | 14888 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14889 | fi |
14890 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14891 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14892 | ||
14893 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14894 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14895 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14896 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14897 | else | |
14898 | if test "$ac_cv_type_int" = yes; then | |
14899 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14900 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14901 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14902 | # This bug is HP SR number 8606223364. | |
14903 | if test "$cross_compiling" = yes; then | |
14904 | # Depending upon the size, compute the lo and hi bounds. | |
14905 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14906 | #line $LINENO "configure" |
e6cc62c6 VS |
14907 | /* confdefs.h. */ |
14908 | _ACEOF | |
14909 | cat confdefs.h >>conftest.$ac_ext | |
14910 | cat >>conftest.$ac_ext <<_ACEOF | |
14911 | /* end confdefs.h. */ | |
14912 | $ac_includes_default | |
14913 | int | |
14914 | main () | |
14915 | { | |
14916 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14917 | test_array [0] = 0 | |
8284b0c5 | 14918 | |
e6cc62c6 VS |
14919 | ; |
14920 | return 0; | |
14921 | } | |
14922 | _ACEOF | |
14923 | rm -f conftest.$ac_objext | |
14924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14925 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14926 | ac_status=$? |
14927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14928 | (exit $ac_status); } && | |
09d3439c | 14929 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14931 | (eval $ac_try) 2>&5 | |
14932 | ac_status=$? | |
14933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14934 | (exit $ac_status); }; }; then | |
14935 | ac_lo=0 ac_mid=0 | |
14936 | while :; do | |
14937 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14938 | #line $LINENO "configure" |
e6cc62c6 VS |
14939 | /* confdefs.h. */ |
14940 | _ACEOF | |
14941 | cat confdefs.h >>conftest.$ac_ext | |
14942 | cat >>conftest.$ac_ext <<_ACEOF | |
14943 | /* end confdefs.h. */ | |
14944 | $ac_includes_default | |
14945 | int | |
14946 | main () | |
14947 | { | |
14948 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14949 | test_array [0] = 0 | |
14950 | ||
14951 | ; | |
14952 | return 0; | |
14953 | } | |
14954 | _ACEOF | |
14955 | rm -f conftest.$ac_objext | |
14956 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 14957 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
14958 | ac_status=$? |
14959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14960 | (exit $ac_status); } && | |
09d3439c | 14961 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
14962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14963 | (eval $ac_try) 2>&5 | |
14964 | ac_status=$? | |
14965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14966 | (exit $ac_status); }; }; then | |
14967 | ac_hi=$ac_mid; break | |
14968 | else | |
14969 | echo "$as_me: failed program was:" >&5 | |
14970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14971 | ||
14972 | ac_lo=`expr $ac_mid + 1` | |
09d3439c VZ |
14973 | if test $ac_lo -le $ac_mid; then |
14974 | ac_lo= ac_hi= | |
14975 | break | |
14976 | fi | |
14977 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
247f5006 | 14978 | fi |
09d3439c | 14979 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
14980 | done |
14981 | else | |
14982 | echo "$as_me: failed program was:" >&5 | |
14983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14984 | ||
14985 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 14986 | #line $LINENO "configure" |
e6cc62c6 VS |
14987 | /* confdefs.h. */ |
14988 | _ACEOF | |
14989 | cat confdefs.h >>conftest.$ac_ext | |
14990 | cat >>conftest.$ac_ext <<_ACEOF | |
14991 | /* end confdefs.h. */ | |
14992 | $ac_includes_default | |
14993 | int | |
14994 | main () | |
14995 | { | |
14996 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14997 | test_array [0] = 0 | |
247f5006 | 14998 | |
e6cc62c6 VS |
14999 | ; |
15000 | return 0; | |
15001 | } | |
15002 | _ACEOF | |
15003 | rm -f conftest.$ac_objext | |
15004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15005 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15006 | ac_status=$? |
15007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15008 | (exit $ac_status); } && | |
09d3439c | 15009 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15011 | (eval $ac_try) 2>&5 | |
15012 | ac_status=$? | |
15013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15014 | (exit $ac_status); }; }; then | |
15015 | ac_hi=-1 ac_mid=-1 | |
15016 | while :; do | |
15017 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15018 | #line $LINENO "configure" |
e6cc62c6 VS |
15019 | /* confdefs.h. */ |
15020 | _ACEOF | |
15021 | cat confdefs.h >>conftest.$ac_ext | |
15022 | cat >>conftest.$ac_ext <<_ACEOF | |
15023 | /* end confdefs.h. */ | |
15024 | $ac_includes_default | |
15025 | int | |
15026 | main () | |
15027 | { | |
15028 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15029 | test_array [0] = 0 | |
247f5006 | 15030 | |
e6cc62c6 VS |
15031 | ; |
15032 | return 0; | |
15033 | } | |
15034 | _ACEOF | |
15035 | rm -f conftest.$ac_objext | |
15036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15037 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15038 | ac_status=$? |
15039 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15040 | (exit $ac_status); } && | |
09d3439c | 15041 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15043 | (eval $ac_try) 2>&5 | |
15044 | ac_status=$? | |
15045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15046 | (exit $ac_status); }; }; then | |
15047 | ac_lo=$ac_mid; break | |
15048 | else | |
15049 | echo "$as_me: failed program was:" >&5 | |
15050 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15051 | ||
15052 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
09d3439c VZ |
15053 | if test $ac_mid -le $ac_hi; then |
15054 | ac_lo= ac_hi= | |
15055 | break | |
15056 | fi | |
15057 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15058 | fi |
09d3439c | 15059 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15060 | done |
247f5006 | 15061 | else |
e6cc62c6 VS |
15062 | echo "$as_me: failed program was:" >&5 |
15063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15064 | ||
15065 | ac_lo= ac_hi= | |
15066 | fi | |
09d3439c | 15067 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15068 | fi |
09d3439c | 15069 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15070 | # Binary search between lo and hi bounds. |
15071 | while test "x$ac_lo" != "x$ac_hi"; do | |
15072 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15073 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15074 | #line $LINENO "configure" |
e6cc62c6 VS |
15075 | /* confdefs.h. */ |
15076 | _ACEOF | |
15077 | cat confdefs.h >>conftest.$ac_ext | |
15078 | cat >>conftest.$ac_ext <<_ACEOF | |
15079 | /* end confdefs.h. */ | |
15080 | $ac_includes_default | |
15081 | int | |
15082 | main () | |
15083 | { | |
15084 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15085 | test_array [0] = 0 | |
15086 | ||
15087 | ; | |
15088 | return 0; | |
15089 | } | |
15090 | _ACEOF | |
15091 | rm -f conftest.$ac_objext | |
15092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15093 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15094 | ac_status=$? |
15095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15096 | (exit $ac_status); } && | |
09d3439c | 15097 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15099 | (eval $ac_try) 2>&5 | |
15100 | ac_status=$? | |
15101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15102 | (exit $ac_status); }; }; then | |
15103 | ac_hi=$ac_mid | |
15104 | else | |
15105 | echo "$as_me: failed program was:" >&5 | |
15106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15107 | ||
15108 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15109 | fi | |
09d3439c | 15110 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15111 | done |
15112 | case $ac_lo in | |
15113 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15114 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15115 | See \`config.log' for more details." >&5 | |
15116 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15117 | See \`config.log' for more details." >&2;} | |
15118 | { (exit 1); exit 1; }; } ;; | |
15119 | esac | |
a0b9e27f | 15120 | else |
e6cc62c6 VS |
15121 | if test "$cross_compiling" = yes; then |
15122 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15123 | See \`config.log' for more details." >&5 | |
15124 | echo "$as_me: error: cannot run test program while cross compiling | |
15125 | See \`config.log' for more details." >&2;} | |
15126 | { (exit 1); exit 1; }; } | |
15127 | else | |
15128 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15129 | #line $LINENO "configure" |
e6cc62c6 VS |
15130 | /* confdefs.h. */ |
15131 | _ACEOF | |
15132 | cat confdefs.h >>conftest.$ac_ext | |
15133 | cat >>conftest.$ac_ext <<_ACEOF | |
15134 | /* end confdefs.h. */ | |
15135 | $ac_includes_default | |
15136 | long longval () { return (long) (sizeof (int)); } | |
15137 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
a0b9e27f | 15138 | #include <stdio.h> |
e6cc62c6 VS |
15139 | #include <stdlib.h> |
15140 | int | |
15141 | main () | |
247f5006 | 15142 | { |
e6cc62c6 VS |
15143 | |
15144 | FILE *f = fopen ("conftest.val", "w"); | |
15145 | if (! f) | |
15146 | exit (1); | |
15147 | if (((long) (sizeof (int))) < 0) | |
15148 | { | |
15149 | long i = longval (); | |
15150 | if (i != ((long) (sizeof (int)))) | |
15151 | exit (1); | |
15152 | fprintf (f, "%ld\n", i); | |
15153 | } | |
15154 | else | |
15155 | { | |
15156 | unsigned long i = ulongval (); | |
15157 | if (i != ((long) (sizeof (int)))) | |
15158 | exit (1); | |
15159 | fprintf (f, "%lu\n", i); | |
15160 | } | |
15161 | exit (ferror (f) || fclose (f) != 0); | |
15162 | ||
15163 | ; | |
15164 | return 0; | |
247f5006 | 15165 | } |
e6cc62c6 VS |
15166 | _ACEOF |
15167 | rm -f conftest$ac_exeext | |
15168 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15169 | (eval $ac_link) 2>&5 | |
15170 | ac_status=$? | |
15171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15172 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15174 | (eval $ac_try) 2>&5 | |
15175 | ac_status=$? | |
15176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15177 | (exit $ac_status); }; }; then | |
15178 | ac_cv_sizeof_int=`cat conftest.val` | |
15179 | else | |
15180 | echo "$as_me: program exited with status $ac_status" >&5 | |
15181 | echo "$as_me: failed program was:" >&5 | |
15182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15183 | ||
15184 | ( exit $ac_status ) | |
15185 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15186 | See \`config.log' for more details." >&5 | |
15187 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15188 | See \`config.log' for more details." >&2;} | |
15189 | { (exit 1); exit 1; }; } | |
15190 | fi | |
09d3439c | 15191 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15192 | fi |
15193 | fi | |
15194 | rm -f conftest.val | |
6f72b082 | 15195 | else |
a0b9e27f | 15196 | ac_cv_sizeof_int=0 |
21d1c967 | 15197 | fi |
698dcdb6 | 15198 | fi |
e6cc62c6 VS |
15199 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 |
15200 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15201 | cat >>confdefs.h <<_ACEOF | |
15202 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15203 | _ACEOF | |
15204 | ||
15205 | ||
15206 | echo "$as_me:$LINENO: checking for long" >&5 | |
15207 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15208 | if test "${ac_cv_type_long+set}" = set; then | |
15209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15210 | else | |
15211 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15212 | #line $LINENO "configure" |
e6cc62c6 VS |
15213 | /* confdefs.h. */ |
15214 | _ACEOF | |
15215 | cat confdefs.h >>conftest.$ac_ext | |
15216 | cat >>conftest.$ac_ext <<_ACEOF | |
15217 | /* end confdefs.h. */ | |
15218 | $ac_includes_default | |
15219 | int | |
15220 | main () | |
15221 | { | |
15222 | if ((long *) 0) | |
15223 | return 0; | |
15224 | if (sizeof (long)) | |
15225 | return 0; | |
15226 | ; | |
15227 | return 0; | |
15228 | } | |
15229 | _ACEOF | |
15230 | rm -f conftest.$ac_objext | |
15231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15232 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15233 | ac_status=$? |
15234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15235 | (exit $ac_status); } && | |
09d3439c | 15236 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15238 | (eval $ac_try) 2>&5 | |
15239 | ac_status=$? | |
15240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15241 | (exit $ac_status); }; }; then | |
15242 | ac_cv_type_long=yes | |
15243 | else | |
15244 | echo "$as_me: failed program was:" >&5 | |
15245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15246 | ||
15247 | ac_cv_type_long=no | |
15248 | fi | |
09d3439c | 15249 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15250 | fi |
15251 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15252 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15253 | ||
15254 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15255 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15256 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15258 | else | |
15259 | if test "$ac_cv_type_long" = yes; then | |
15260 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15261 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15262 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15263 | # This bug is HP SR number 8606223364. | |
15264 | if test "$cross_compiling" = yes; then | |
15265 | # Depending upon the size, compute the lo and hi bounds. | |
15266 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15267 | #line $LINENO "configure" |
e6cc62c6 VS |
15268 | /* confdefs.h. */ |
15269 | _ACEOF | |
15270 | cat confdefs.h >>conftest.$ac_ext | |
15271 | cat >>conftest.$ac_ext <<_ACEOF | |
15272 | /* end confdefs.h. */ | |
15273 | $ac_includes_default | |
15274 | int | |
15275 | main () | |
15276 | { | |
15277 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15278 | test_array [0] = 0 | |
15279 | ||
15280 | ; | |
15281 | return 0; | |
15282 | } | |
15283 | _ACEOF | |
15284 | rm -f conftest.$ac_objext | |
15285 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15286 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15287 | ac_status=$? |
15288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15289 | (exit $ac_status); } && | |
09d3439c | 15290 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15292 | (eval $ac_try) 2>&5 | |
15293 | ac_status=$? | |
15294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15295 | (exit $ac_status); }; }; then | |
15296 | ac_lo=0 ac_mid=0 | |
15297 | while :; do | |
15298 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15299 | #line $LINENO "configure" |
e6cc62c6 VS |
15300 | /* confdefs.h. */ |
15301 | _ACEOF | |
15302 | cat confdefs.h >>conftest.$ac_ext | |
15303 | cat >>conftest.$ac_ext <<_ACEOF | |
15304 | /* end confdefs.h. */ | |
15305 | $ac_includes_default | |
15306 | int | |
15307 | main () | |
15308 | { | |
15309 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15310 | test_array [0] = 0 | |
4f14bcd8 | 15311 | |
e6cc62c6 VS |
15312 | ; |
15313 | return 0; | |
15314 | } | |
15315 | _ACEOF | |
15316 | rm -f conftest.$ac_objext | |
15317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15318 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15319 | ac_status=$? |
15320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15321 | (exit $ac_status); } && | |
09d3439c | 15322 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15324 | (eval $ac_try) 2>&5 | |
15325 | ac_status=$? | |
15326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15327 | (exit $ac_status); }; }; then | |
15328 | ac_hi=$ac_mid; break | |
15329 | else | |
15330 | echo "$as_me: failed program was:" >&5 | |
15331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15332 | ||
15333 | ac_lo=`expr $ac_mid + 1` | |
09d3439c VZ |
15334 | if test $ac_lo -le $ac_mid; then |
15335 | ac_lo= ac_hi= | |
15336 | break | |
15337 | fi | |
15338 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21d1c967 | 15339 | fi |
09d3439c | 15340 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15341 | done |
15342 | else | |
15343 | echo "$as_me: failed program was:" >&5 | |
15344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15345 | ||
15346 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15347 | #line $LINENO "configure" |
e6cc62c6 VS |
15348 | /* confdefs.h. */ |
15349 | _ACEOF | |
15350 | cat confdefs.h >>conftest.$ac_ext | |
15351 | cat >>conftest.$ac_ext <<_ACEOF | |
15352 | /* end confdefs.h. */ | |
15353 | $ac_includes_default | |
15354 | int | |
15355 | main () | |
15356 | { | |
15357 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15358 | test_array [0] = 0 | |
4f14bcd8 | 15359 | |
e6cc62c6 VS |
15360 | ; |
15361 | return 0; | |
15362 | } | |
15363 | _ACEOF | |
15364 | rm -f conftest.$ac_objext | |
15365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15366 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15367 | ac_status=$? |
15368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15369 | (exit $ac_status); } && | |
09d3439c | 15370 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15372 | (eval $ac_try) 2>&5 | |
15373 | ac_status=$? | |
15374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15375 | (exit $ac_status); }; }; then | |
15376 | ac_hi=-1 ac_mid=-1 | |
15377 | while :; do | |
15378 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15379 | #line $LINENO "configure" |
e6cc62c6 VS |
15380 | /* confdefs.h. */ |
15381 | _ACEOF | |
15382 | cat confdefs.h >>conftest.$ac_ext | |
15383 | cat >>conftest.$ac_ext <<_ACEOF | |
15384 | /* end confdefs.h. */ | |
15385 | $ac_includes_default | |
15386 | int | |
15387 | main () | |
15388 | { | |
15389 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15390 | test_array [0] = 0 | |
5c6fa7d2 | 15391 | |
e6cc62c6 VS |
15392 | ; |
15393 | return 0; | |
15394 | } | |
15395 | _ACEOF | |
15396 | rm -f conftest.$ac_objext | |
15397 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15398 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15399 | ac_status=$? |
15400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15401 | (exit $ac_status); } && | |
09d3439c | 15402 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15404 | (eval $ac_try) 2>&5 | |
15405 | ac_status=$? | |
15406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15407 | (exit $ac_status); }; }; then | |
15408 | ac_lo=$ac_mid; break | |
15409 | else | |
15410 | echo "$as_me: failed program was:" >&5 | |
15411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15412 | ||
15413 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
09d3439c VZ |
15414 | if test $ac_mid -le $ac_hi; then |
15415 | ac_lo= ac_hi= | |
15416 | break | |
15417 | fi | |
15418 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15419 | fi |
09d3439c | 15420 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15421 | done |
247f5006 | 15422 | else |
e6cc62c6 VS |
15423 | echo "$as_me: failed program was:" >&5 |
15424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15425 | ||
15426 | ac_lo= ac_hi= | |
15427 | fi | |
09d3439c | 15428 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15429 | fi |
09d3439c | 15430 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15431 | # Binary search between lo and hi bounds. |
15432 | while test "x$ac_lo" != "x$ac_hi"; do | |
15433 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15434 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15435 | #line $LINENO "configure" |
e6cc62c6 VS |
15436 | /* confdefs.h. */ |
15437 | _ACEOF | |
15438 | cat confdefs.h >>conftest.$ac_ext | |
15439 | cat >>conftest.$ac_ext <<_ACEOF | |
15440 | /* end confdefs.h. */ | |
15441 | $ac_includes_default | |
15442 | int | |
15443 | main () | |
15444 | { | |
15445 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15446 | test_array [0] = 0 | |
15447 | ||
15448 | ; | |
15449 | return 0; | |
15450 | } | |
15451 | _ACEOF | |
15452 | rm -f conftest.$ac_objext | |
15453 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15454 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15455 | ac_status=$? |
15456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15457 | (exit $ac_status); } && | |
09d3439c | 15458 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15460 | (eval $ac_try) 2>&5 | |
15461 | ac_status=$? | |
15462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15463 | (exit $ac_status); }; }; then | |
15464 | ac_hi=$ac_mid | |
15465 | else | |
15466 | echo "$as_me: failed program was:" >&5 | |
15467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15468 | ||
15469 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15470 | fi | |
09d3439c | 15471 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15472 | done |
15473 | case $ac_lo in | |
15474 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
15475 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15476 | See \`config.log' for more details." >&5 | |
15477 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15478 | See \`config.log' for more details." >&2;} | |
15479 | { (exit 1); exit 1; }; } ;; | |
15480 | esac | |
247f5006 | 15481 | else |
e6cc62c6 VS |
15482 | if test "$cross_compiling" = yes; then |
15483 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15484 | See \`config.log' for more details." >&5 | |
15485 | echo "$as_me: error: cannot run test program while cross compiling | |
15486 | See \`config.log' for more details." >&2;} | |
15487 | { (exit 1); exit 1; }; } | |
15488 | else | |
15489 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15490 | #line $LINENO "configure" |
e6cc62c6 VS |
15491 | /* confdefs.h. */ |
15492 | _ACEOF | |
15493 | cat confdefs.h >>conftest.$ac_ext | |
15494 | cat >>conftest.$ac_ext <<_ACEOF | |
15495 | /* end confdefs.h. */ | |
15496 | $ac_includes_default | |
15497 | long longval () { return (long) (sizeof (long)); } | |
15498 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
a0b9e27f | 15499 | #include <stdio.h> |
e6cc62c6 VS |
15500 | #include <stdlib.h> |
15501 | int | |
15502 | main () | |
247f5006 | 15503 | { |
e6cc62c6 VS |
15504 | |
15505 | FILE *f = fopen ("conftest.val", "w"); | |
15506 | if (! f) | |
15507 | exit (1); | |
15508 | if (((long) (sizeof (long))) < 0) | |
15509 | { | |
15510 | long i = longval (); | |
15511 | if (i != ((long) (sizeof (long)))) | |
15512 | exit (1); | |
15513 | fprintf (f, "%ld\n", i); | |
15514 | } | |
15515 | else | |
15516 | { | |
15517 | unsigned long i = ulongval (); | |
15518 | if (i != ((long) (sizeof (long)))) | |
15519 | exit (1); | |
15520 | fprintf (f, "%lu\n", i); | |
15521 | } | |
15522 | exit (ferror (f) || fclose (f) != 0); | |
15523 | ||
15524 | ; | |
15525 | return 0; | |
247f5006 | 15526 | } |
e6cc62c6 VS |
15527 | _ACEOF |
15528 | rm -f conftest$ac_exeext | |
15529 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15530 | (eval $ac_link) 2>&5 | |
15531 | ac_status=$? | |
15532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15533 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15535 | (eval $ac_try) 2>&5 | |
15536 | ac_status=$? | |
15537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15538 | (exit $ac_status); }; }; then | |
15539 | ac_cv_sizeof_long=`cat conftest.val` | |
15540 | else | |
15541 | echo "$as_me: program exited with status $ac_status" >&5 | |
15542 | echo "$as_me: failed program was:" >&5 | |
15543 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15544 | ||
15545 | ( exit $ac_status ) | |
15546 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15547 | See \`config.log' for more details." >&5 | |
15548 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15549 | See \`config.log' for more details." >&2;} | |
15550 | { (exit 1); exit 1; }; } | |
15551 | fi | |
09d3439c | 15552 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15553 | fi |
15554 | fi | |
15555 | rm -f conftest.val | |
247f5006 | 15556 | else |
a0b9e27f | 15557 | ac_cv_sizeof_long=0 |
247f5006 | 15558 | fi |
247f5006 | 15559 | fi |
e6cc62c6 VS |
15560 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
15561 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15562 | cat >>confdefs.h <<_ACEOF | |
a0b9e27f | 15563 | #define SIZEOF_LONG $ac_cv_sizeof_long |
e6cc62c6 | 15564 | _ACEOF |
247f5006 | 15565 | |
a0b9e27f MB |
15566 | |
15567 | ||
15568 | case "${host}" in | |
15569 | arm-*-linux* ) | |
e6cc62c6 VS |
15570 | echo "$as_me:$LINENO: checking for long long" >&5 |
15571 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15572 | if test "${ac_cv_type_long_long+set}" = set; then | |
15573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15574 | else | |
15575 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15576 | #line $LINENO "configure" |
e6cc62c6 VS |
15577 | /* confdefs.h. */ |
15578 | _ACEOF | |
15579 | cat confdefs.h >>conftest.$ac_ext | |
15580 | cat >>conftest.$ac_ext <<_ACEOF | |
15581 | /* end confdefs.h. */ | |
15582 | $ac_includes_default | |
15583 | int | |
15584 | main () | |
15585 | { | |
15586 | if ((long long *) 0) | |
15587 | return 0; | |
15588 | if (sizeof (long long)) | |
15589 | return 0; | |
15590 | ; | |
15591 | return 0; | |
15592 | } | |
15593 | _ACEOF | |
15594 | rm -f conftest.$ac_objext | |
15595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15596 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15597 | ac_status=$? |
15598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15599 | (exit $ac_status); } && | |
09d3439c | 15600 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15601 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15602 | (eval $ac_try) 2>&5 | |
15603 | ac_status=$? | |
15604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15605 | (exit $ac_status); }; }; then | |
15606 | ac_cv_type_long_long=yes | |
15607 | else | |
15608 | echo "$as_me: failed program was:" >&5 | |
15609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15610 | ||
15611 | ac_cv_type_long_long=no | |
15612 | fi | |
09d3439c | 15613 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15614 | fi |
15615 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15616 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15617 | ||
15618 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15619 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15620 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15621 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15622 | else | |
15623 | if test "$ac_cv_type_long_long" = yes; then | |
15624 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15625 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15626 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15627 | # This bug is HP SR number 8606223364. | |
a0b9e27f | 15628 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
15629 | # Depending upon the size, compute the lo and hi bounds. |
15630 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15631 | #line $LINENO "configure" |
e6cc62c6 VS |
15632 | /* confdefs.h. */ |
15633 | _ACEOF | |
15634 | cat confdefs.h >>conftest.$ac_ext | |
15635 | cat >>conftest.$ac_ext <<_ACEOF | |
15636 | /* end confdefs.h. */ | |
15637 | $ac_includes_default | |
15638 | int | |
15639 | main () | |
15640 | { | |
15641 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
15642 | test_array [0] = 0 | |
15643 | ||
15644 | ; | |
15645 | return 0; | |
15646 | } | |
15647 | _ACEOF | |
15648 | rm -f conftest.$ac_objext | |
15649 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15650 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15651 | ac_status=$? |
15652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15653 | (exit $ac_status); } && | |
09d3439c | 15654 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15655 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15656 | (eval $ac_try) 2>&5 | |
15657 | ac_status=$? | |
15658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15659 | (exit $ac_status); }; }; then | |
15660 | ac_lo=0 ac_mid=0 | |
15661 | while :; do | |
15662 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15663 | #line $LINENO "configure" |
e6cc62c6 VS |
15664 | /* confdefs.h. */ |
15665 | _ACEOF | |
15666 | cat confdefs.h >>conftest.$ac_ext | |
15667 | cat >>conftest.$ac_ext <<_ACEOF | |
15668 | /* end confdefs.h. */ | |
15669 | $ac_includes_default | |
15670 | int | |
15671 | main () | |
15672 | { | |
15673 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15674 | test_array [0] = 0 | |
15675 | ||
15676 | ; | |
15677 | return 0; | |
15678 | } | |
15679 | _ACEOF | |
15680 | rm -f conftest.$ac_objext | |
15681 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15682 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15683 | ac_status=$? |
15684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15685 | (exit $ac_status); } && | |
09d3439c | 15686 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15688 | (eval $ac_try) 2>&5 | |
15689 | ac_status=$? | |
15690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15691 | (exit $ac_status); }; }; then | |
15692 | ac_hi=$ac_mid; break | |
15693 | else | |
15694 | echo "$as_me: failed program was:" >&5 | |
15695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15696 | ||
15697 | ac_lo=`expr $ac_mid + 1` | |
09d3439c VZ |
15698 | if test $ac_lo -le $ac_mid; then |
15699 | ac_lo= ac_hi= | |
15700 | break | |
15701 | fi | |
15702 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 15703 | fi |
09d3439c | 15704 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15705 | done |
15706 | else | |
15707 | echo "$as_me: failed program was:" >&5 | |
15708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15709 | ||
15710 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15711 | #line $LINENO "configure" |
e6cc62c6 VS |
15712 | /* confdefs.h. */ |
15713 | _ACEOF | |
15714 | cat confdefs.h >>conftest.$ac_ext | |
15715 | cat >>conftest.$ac_ext <<_ACEOF | |
15716 | /* end confdefs.h. */ | |
15717 | $ac_includes_default | |
15718 | int | |
15719 | main () | |
15720 | { | |
15721 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
15722 | test_array [0] = 0 | |
15723 | ||
15724 | ; | |
15725 | return 0; | |
15726 | } | |
15727 | _ACEOF | |
15728 | rm -f conftest.$ac_objext | |
15729 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15730 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15731 | ac_status=$? |
15732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15733 | (exit $ac_status); } && | |
09d3439c | 15734 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15736 | (eval $ac_try) 2>&5 | |
15737 | ac_status=$? | |
15738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15739 | (exit $ac_status); }; }; then | |
15740 | ac_hi=-1 ac_mid=-1 | |
15741 | while :; do | |
15742 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15743 | #line $LINENO "configure" |
e6cc62c6 VS |
15744 | /* confdefs.h. */ |
15745 | _ACEOF | |
15746 | cat confdefs.h >>conftest.$ac_ext | |
15747 | cat >>conftest.$ac_ext <<_ACEOF | |
15748 | /* end confdefs.h. */ | |
15749 | $ac_includes_default | |
15750 | int | |
15751 | main () | |
15752 | { | |
15753 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
15754 | test_array [0] = 0 | |
15755 | ||
15756 | ; | |
15757 | return 0; | |
15758 | } | |
15759 | _ACEOF | |
15760 | rm -f conftest.$ac_objext | |
15761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15762 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15763 | ac_status=$? |
15764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15765 | (exit $ac_status); } && | |
09d3439c | 15766 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15768 | (eval $ac_try) 2>&5 | |
15769 | ac_status=$? | |
15770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15771 | (exit $ac_status); }; }; then | |
15772 | ac_lo=$ac_mid; break | |
15773 | else | |
15774 | echo "$as_me: failed program was:" >&5 | |
15775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15776 | ||
15777 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
09d3439c VZ |
15778 | if test $ac_mid -le $ac_hi; then |
15779 | ac_lo= ac_hi= | |
15780 | break | |
15781 | fi | |
15782 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 15783 | fi |
09d3439c | 15784 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15785 | done |
15786 | else | |
15787 | echo "$as_me: failed program was:" >&5 | |
15788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15789 | ||
15790 | ac_lo= ac_hi= | |
15791 | fi | |
09d3439c | 15792 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 15793 | fi |
09d3439c | 15794 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15795 | # Binary search between lo and hi bounds. |
15796 | while test "x$ac_lo" != "x$ac_hi"; do | |
15797 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15798 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15799 | #line $LINENO "configure" |
e6cc62c6 VS |
15800 | /* confdefs.h. */ |
15801 | _ACEOF | |
15802 | cat confdefs.h >>conftest.$ac_ext | |
15803 | cat >>conftest.$ac_ext <<_ACEOF | |
15804 | /* end confdefs.h. */ | |
15805 | $ac_includes_default | |
15806 | int | |
15807 | main () | |
15808 | { | |
15809 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
15810 | test_array [0] = 0 | |
15811 | ||
15812 | ; | |
15813 | return 0; | |
15814 | } | |
15815 | _ACEOF | |
15816 | rm -f conftest.$ac_objext | |
15817 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15818 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15819 | ac_status=$? |
15820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15821 | (exit $ac_status); } && | |
09d3439c | 15822 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15824 | (eval $ac_try) 2>&5 | |
15825 | ac_status=$? | |
15826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15827 | (exit $ac_status); }; }; then | |
15828 | ac_hi=$ac_mid | |
15829 | else | |
15830 | echo "$as_me: failed program was:" >&5 | |
15831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15832 | ||
15833 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15834 | fi | |
09d3439c | 15835 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15836 | done |
15837 | case $ac_lo in | |
15838 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
15839 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15840 | See \`config.log' for more details." >&5 | |
15841 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15842 | See \`config.log' for more details." >&2;} | |
15843 | { (exit 1); exit 1; }; } ;; | |
15844 | esac | |
a0b9e27f | 15845 | else |
e6cc62c6 VS |
15846 | if test "$cross_compiling" = yes; then |
15847 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15848 | See \`config.log' for more details." >&5 | |
15849 | echo "$as_me: error: cannot run test program while cross compiling | |
15850 | See \`config.log' for more details." >&2;} | |
15851 | { (exit 1); exit 1; }; } | |
15852 | else | |
15853 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15854 | #line $LINENO "configure" |
e6cc62c6 VS |
15855 | /* confdefs.h. */ |
15856 | _ACEOF | |
15857 | cat confdefs.h >>conftest.$ac_ext | |
15858 | cat >>conftest.$ac_ext <<_ACEOF | |
15859 | /* end confdefs.h. */ | |
15860 | $ac_includes_default | |
15861 | long longval () { return (long) (sizeof (long long)); } | |
15862 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
a0b9e27f | 15863 | #include <stdio.h> |
e6cc62c6 VS |
15864 | #include <stdlib.h> |
15865 | int | |
15866 | main () | |
247f5006 | 15867 | { |
e6cc62c6 VS |
15868 | |
15869 | FILE *f = fopen ("conftest.val", "w"); | |
15870 | if (! f) | |
15871 | exit (1); | |
15872 | if (((long) (sizeof (long long))) < 0) | |
15873 | { | |
15874 | long i = longval (); | |
15875 | if (i != ((long) (sizeof (long long)))) | |
15876 | exit (1); | |
15877 | fprintf (f, "%ld\n", i); | |
15878 | } | |
15879 | else | |
15880 | { | |
15881 | unsigned long i = ulongval (); | |
15882 | if (i != ((long) (sizeof (long long)))) | |
15883 | exit (1); | |
15884 | fprintf (f, "%lu\n", i); | |
15885 | } | |
15886 | exit (ferror (f) || fclose (f) != 0); | |
15887 | ||
15888 | ; | |
15889 | return 0; | |
247f5006 | 15890 | } |
e6cc62c6 VS |
15891 | _ACEOF |
15892 | rm -f conftest$ac_exeext | |
15893 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15894 | (eval $ac_link) 2>&5 | |
15895 | ac_status=$? | |
15896 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15897 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15899 | (eval $ac_try) 2>&5 | |
15900 | ac_status=$? | |
15901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15902 | (exit $ac_status); }; }; then | |
15903 | ac_cv_sizeof_long_long=`cat conftest.val` | |
15904 | else | |
15905 | echo "$as_me: program exited with status $ac_status" >&5 | |
15906 | echo "$as_me: failed program was:" >&5 | |
15907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15908 | ||
15909 | ( exit $ac_status ) | |
15910 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
15911 | See \`config.log' for more details." >&5 | |
15912 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
15913 | See \`config.log' for more details." >&2;} | |
15914 | { (exit 1); exit 1; }; } | |
15915 | fi | |
09d3439c | 15916 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15917 | fi |
15918 | fi | |
15919 | rm -f conftest.val | |
7b4a847f | 15920 | else |
a0b9e27f | 15921 | ac_cv_sizeof_long_long=0 |
5c6fa7d2 RR |
15922 | fi |
15923 | fi | |
e6cc62c6 VS |
15924 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
15925 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
15926 | cat >>confdefs.h <<_ACEOF | |
15927 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
15928 | _ACEOF | |
15929 | ||
15930 | ||
15931 | ;; | |
15932 | *-hp-hpux* ) | |
15933 | echo "$as_me:$LINENO: checking for long long" >&5 | |
15934 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
15935 | if test "${ac_cv_type_long_long+set}" = set; then | |
15936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15937 | else | |
15938 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15939 | #line $LINENO "configure" |
e6cc62c6 VS |
15940 | /* confdefs.h. */ |
15941 | _ACEOF | |
15942 | cat confdefs.h >>conftest.$ac_ext | |
15943 | cat >>conftest.$ac_ext <<_ACEOF | |
15944 | /* end confdefs.h. */ | |
15945 | $ac_includes_default | |
15946 | int | |
15947 | main () | |
15948 | { | |
15949 | if ((long long *) 0) | |
15950 | return 0; | |
15951 | if (sizeof (long long)) | |
15952 | return 0; | |
15953 | ; | |
15954 | return 0; | |
15955 | } | |
15956 | _ACEOF | |
15957 | rm -f conftest.$ac_objext | |
15958 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 15959 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
15960 | ac_status=$? |
15961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15962 | (exit $ac_status); } && | |
09d3439c | 15963 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
15964 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15965 | (eval $ac_try) 2>&5 | |
15966 | ac_status=$? | |
15967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15968 | (exit $ac_status); }; }; then | |
15969 | ac_cv_type_long_long=yes | |
15970 | else | |
15971 | echo "$as_me: failed program was:" >&5 | |
15972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15973 | ||
15974 | ac_cv_type_long_long=no | |
15975 | fi | |
09d3439c | 15976 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
15977 | fi |
15978 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
15979 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
15980 | ||
15981 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
15982 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
15983 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
15984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15985 | else | |
15986 | if test "$ac_cv_type_long_long" = yes; then | |
15987 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15988 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15989 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15990 | # This bug is HP SR number 8606223364. | |
15991 | if test "$cross_compiling" = yes; then | |
15992 | # Depending upon the size, compute the lo and hi bounds. | |
15993 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 15994 | #line $LINENO "configure" |
e6cc62c6 VS |
15995 | /* confdefs.h. */ |
15996 | _ACEOF | |
15997 | cat confdefs.h >>conftest.$ac_ext | |
15998 | cat >>conftest.$ac_ext <<_ACEOF | |
15999 | /* end confdefs.h. */ | |
16000 | $ac_includes_default | |
16001 | int | |
16002 | main () | |
16003 | { | |
16004 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16005 | test_array [0] = 0 | |
16006 | ||
16007 | ; | |
16008 | return 0; | |
16009 | } | |
16010 | _ACEOF | |
16011 | rm -f conftest.$ac_objext | |
16012 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16013 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16014 | ac_status=$? |
16015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16016 | (exit $ac_status); } && | |
09d3439c | 16017 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16019 | (eval $ac_try) 2>&5 | |
16020 | ac_status=$? | |
16021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16022 | (exit $ac_status); }; }; then | |
16023 | ac_lo=0 ac_mid=0 | |
16024 | while :; do | |
16025 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16026 | #line $LINENO "configure" |
e6cc62c6 VS |
16027 | /* confdefs.h. */ |
16028 | _ACEOF | |
16029 | cat confdefs.h >>conftest.$ac_ext | |
16030 | cat >>conftest.$ac_ext <<_ACEOF | |
16031 | /* end confdefs.h. */ | |
16032 | $ac_includes_default | |
16033 | int | |
16034 | main () | |
16035 | { | |
16036 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16037 | test_array [0] = 0 | |
8284b0c5 | 16038 | |
e6cc62c6 VS |
16039 | ; |
16040 | return 0; | |
16041 | } | |
16042 | _ACEOF | |
16043 | rm -f conftest.$ac_objext | |
16044 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16045 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16046 | ac_status=$? |
16047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16048 | (exit $ac_status); } && | |
09d3439c | 16049 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16051 | (eval $ac_try) 2>&5 | |
16052 | ac_status=$? | |
16053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16054 | (exit $ac_status); }; }; then | |
16055 | ac_hi=$ac_mid; break | |
16056 | else | |
16057 | echo "$as_me: failed program was:" >&5 | |
16058 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16059 | ||
16060 | ac_lo=`expr $ac_mid + 1` | |
09d3439c VZ |
16061 | if test $ac_lo -le $ac_mid; then |
16062 | ac_lo= ac_hi= | |
16063 | break | |
16064 | fi | |
16065 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a0b9e27f | 16066 | fi |
09d3439c | 16067 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16068 | done |
16069 | else | |
16070 | echo "$as_me: failed program was:" >&5 | |
16071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16072 | ||
16073 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16074 | #line $LINENO "configure" |
e6cc62c6 VS |
16075 | /* confdefs.h. */ |
16076 | _ACEOF | |
16077 | cat confdefs.h >>conftest.$ac_ext | |
16078 | cat >>conftest.$ac_ext <<_ACEOF | |
16079 | /* end confdefs.h. */ | |
16080 | $ac_includes_default | |
16081 | int | |
16082 | main () | |
16083 | { | |
16084 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16085 | test_array [0] = 0 | |
a0b9e27f | 16086 | |
e6cc62c6 VS |
16087 | ; |
16088 | return 0; | |
16089 | } | |
16090 | _ACEOF | |
16091 | rm -f conftest.$ac_objext | |
16092 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16093 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16094 | ac_status=$? |
16095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16096 | (exit $ac_status); } && | |
09d3439c | 16097 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16099 | (eval $ac_try) 2>&5 | |
16100 | ac_status=$? | |
16101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16102 | (exit $ac_status); }; }; then | |
16103 | ac_hi=-1 ac_mid=-1 | |
16104 | while :; do | |
16105 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16106 | #line $LINENO "configure" |
e6cc62c6 VS |
16107 | /* confdefs.h. */ |
16108 | _ACEOF | |
16109 | cat confdefs.h >>conftest.$ac_ext | |
16110 | cat >>conftest.$ac_ext <<_ACEOF | |
16111 | /* end confdefs.h. */ | |
16112 | $ac_includes_default | |
16113 | int | |
16114 | main () | |
16115 | { | |
16116 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16117 | test_array [0] = 0 | |
a0b9e27f | 16118 | |
e6cc62c6 VS |
16119 | ; |
16120 | return 0; | |
16121 | } | |
16122 | _ACEOF | |
16123 | rm -f conftest.$ac_objext | |
16124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16125 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16126 | ac_status=$? |
16127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16128 | (exit $ac_status); } && | |
09d3439c | 16129 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16131 | (eval $ac_try) 2>&5 | |
16132 | ac_status=$? | |
16133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16134 | (exit $ac_status); }; }; then | |
16135 | ac_lo=$ac_mid; break | |
16136 | else | |
16137 | echo "$as_me: failed program was:" >&5 | |
16138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16139 | ||
16140 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
09d3439c VZ |
16141 | if test $ac_mid -le $ac_hi; then |
16142 | ac_lo= ac_hi= | |
16143 | break | |
16144 | fi | |
16145 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16146 | fi |
09d3439c | 16147 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16148 | done |
8284b0c5 | 16149 | else |
e6cc62c6 VS |
16150 | echo "$as_me: failed program was:" >&5 |
16151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16152 | ||
16153 | ac_lo= ac_hi= | |
16154 | fi | |
09d3439c | 16155 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16156 | fi |
09d3439c | 16157 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16158 | # Binary search between lo and hi bounds. |
16159 | while test "x$ac_lo" != "x$ac_hi"; do | |
16160 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16161 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16162 | #line $LINENO "configure" |
e6cc62c6 VS |
16163 | /* confdefs.h. */ |
16164 | _ACEOF | |
16165 | cat confdefs.h >>conftest.$ac_ext | |
16166 | cat >>conftest.$ac_ext <<_ACEOF | |
16167 | /* end confdefs.h. */ | |
16168 | $ac_includes_default | |
16169 | int | |
16170 | main () | |
16171 | { | |
16172 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16173 | test_array [0] = 0 | |
16174 | ||
16175 | ; | |
16176 | return 0; | |
16177 | } | |
16178 | _ACEOF | |
16179 | rm -f conftest.$ac_objext | |
16180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16181 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16182 | ac_status=$? |
16183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16184 | (exit $ac_status); } && | |
09d3439c | 16185 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16187 | (eval $ac_try) 2>&5 | |
16188 | ac_status=$? | |
16189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16190 | (exit $ac_status); }; }; then | |
16191 | ac_hi=$ac_mid | |
16192 | else | |
16193 | echo "$as_me: failed program was:" >&5 | |
16194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16195 | ||
16196 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16197 | fi | |
09d3439c | 16198 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16199 | done |
16200 | case $ac_lo in | |
16201 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16202 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16203 | See \`config.log' for more details." >&5 | |
16204 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16205 | See \`config.log' for more details." >&2;} | |
16206 | { (exit 1); exit 1; }; } ;; | |
16207 | esac | |
8284b0c5 | 16208 | else |
e6cc62c6 VS |
16209 | if test "$cross_compiling" = yes; then |
16210 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16211 | See \`config.log' for more details." >&5 | |
16212 | echo "$as_me: error: cannot run test program while cross compiling | |
16213 | See \`config.log' for more details." >&2;} | |
16214 | { (exit 1); exit 1; }; } | |
16215 | else | |
16216 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16217 | #line $LINENO "configure" |
e6cc62c6 VS |
16218 | /* confdefs.h. */ |
16219 | _ACEOF | |
16220 | cat confdefs.h >>conftest.$ac_ext | |
16221 | cat >>conftest.$ac_ext <<_ACEOF | |
16222 | /* end confdefs.h. */ | |
16223 | $ac_includes_default | |
16224 | long longval () { return (long) (sizeof (long long)); } | |
16225 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8284b0c5 | 16226 | #include <stdio.h> |
e6cc62c6 VS |
16227 | #include <stdlib.h> |
16228 | int | |
16229 | main () | |
8284b0c5 | 16230 | { |
e6cc62c6 VS |
16231 | |
16232 | FILE *f = fopen ("conftest.val", "w"); | |
16233 | if (! f) | |
16234 | exit (1); | |
16235 | if (((long) (sizeof (long long))) < 0) | |
16236 | { | |
16237 | long i = longval (); | |
16238 | if (i != ((long) (sizeof (long long)))) | |
16239 | exit (1); | |
16240 | fprintf (f, "%ld\n", i); | |
16241 | } | |
16242 | else | |
16243 | { | |
16244 | unsigned long i = ulongval (); | |
16245 | if (i != ((long) (sizeof (long long)))) | |
16246 | exit (1); | |
16247 | fprintf (f, "%lu\n", i); | |
16248 | } | |
16249 | exit (ferror (f) || fclose (f) != 0); | |
16250 | ||
16251 | ; | |
16252 | return 0; | |
8284b0c5 | 16253 | } |
e6cc62c6 VS |
16254 | _ACEOF |
16255 | rm -f conftest$ac_exeext | |
16256 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16257 | (eval $ac_link) 2>&5 | |
16258 | ac_status=$? | |
16259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16260 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16261 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16262 | (eval $ac_try) 2>&5 | |
16263 | ac_status=$? | |
16264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16265 | (exit $ac_status); }; }; then | |
16266 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16267 | else | |
16268 | echo "$as_me: program exited with status $ac_status" >&5 | |
16269 | echo "$as_me: failed program was:" >&5 | |
16270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16271 | ||
16272 | ( exit $ac_status ) | |
16273 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16274 | See \`config.log' for more details." >&5 | |
16275 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16276 | See \`config.log' for more details." >&2;} | |
16277 | { (exit 1); exit 1; }; } | |
16278 | fi | |
09d3439c | 16279 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16280 | fi |
16281 | fi | |
16282 | rm -f conftest.val | |
5c6fa7d2 RR |
16283 | else |
16284 | ac_cv_sizeof_long_long=0 | |
52127426 | 16285 | fi |
4f57cf11 | 16286 | fi |
e6cc62c6 VS |
16287 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16288 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16289 | cat >>confdefs.h <<_ACEOF | |
4f57cf11 | 16290 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16291 | _ACEOF |
4f57cf11 GD |
16292 | |
16293 | ||
16294 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16295 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16296 | fi | |
16297 | ;; | |
16298 | * ) | |
e6cc62c6 VS |
16299 | echo "$as_me:$LINENO: checking for long long" >&5 |
16300 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16301 | if test "${ac_cv_type_long_long+set}" = set; then | |
16302 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16303 | else | |
16304 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16305 | #line $LINENO "configure" |
e6cc62c6 VS |
16306 | /* confdefs.h. */ |
16307 | _ACEOF | |
16308 | cat confdefs.h >>conftest.$ac_ext | |
16309 | cat >>conftest.$ac_ext <<_ACEOF | |
16310 | /* end confdefs.h. */ | |
16311 | $ac_includes_default | |
16312 | int | |
16313 | main () | |
16314 | { | |
16315 | if ((long long *) 0) | |
16316 | return 0; | |
16317 | if (sizeof (long long)) | |
16318 | return 0; | |
16319 | ; | |
16320 | return 0; | |
16321 | } | |
16322 | _ACEOF | |
16323 | rm -f conftest.$ac_objext | |
16324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16325 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16326 | ac_status=$? |
16327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16328 | (exit $ac_status); } && | |
09d3439c | 16329 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16331 | (eval $ac_try) 2>&5 | |
16332 | ac_status=$? | |
16333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16334 | (exit $ac_status); }; }; then | |
16335 | ac_cv_type_long_long=yes | |
16336 | else | |
16337 | echo "$as_me: failed program was:" >&5 | |
16338 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16339 | ||
16340 | ac_cv_type_long_long=no | |
16341 | fi | |
09d3439c | 16342 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16343 | fi |
16344 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16345 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16346 | ||
16347 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16348 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16349 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16351 | else | |
16352 | if test "$ac_cv_type_long_long" = yes; then | |
16353 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16354 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16355 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16356 | # This bug is HP SR number 8606223364. | |
4f57cf11 | 16357 | if test "$cross_compiling" = yes; then |
e6cc62c6 VS |
16358 | # Depending upon the size, compute the lo and hi bounds. |
16359 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16360 | #line $LINENO "configure" |
e6cc62c6 VS |
16361 | /* confdefs.h. */ |
16362 | _ACEOF | |
16363 | cat confdefs.h >>conftest.$ac_ext | |
16364 | cat >>conftest.$ac_ext <<_ACEOF | |
16365 | /* end confdefs.h. */ | |
16366 | $ac_includes_default | |
16367 | int | |
16368 | main () | |
16369 | { | |
16370 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16371 | test_array [0] = 0 | |
16372 | ||
16373 | ; | |
16374 | return 0; | |
16375 | } | |
16376 | _ACEOF | |
16377 | rm -f conftest.$ac_objext | |
16378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16379 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16380 | ac_status=$? |
16381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16382 | (exit $ac_status); } && | |
09d3439c | 16383 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16385 | (eval $ac_try) 2>&5 | |
16386 | ac_status=$? | |
16387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16388 | (exit $ac_status); }; }; then | |
16389 | ac_lo=0 ac_mid=0 | |
16390 | while :; do | |
16391 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16392 | #line $LINENO "configure" |
e6cc62c6 VS |
16393 | /* confdefs.h. */ |
16394 | _ACEOF | |
16395 | cat confdefs.h >>conftest.$ac_ext | |
16396 | cat >>conftest.$ac_ext <<_ACEOF | |
16397 | /* end confdefs.h. */ | |
16398 | $ac_includes_default | |
16399 | int | |
16400 | main () | |
16401 | { | |
16402 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16403 | test_array [0] = 0 | |
16404 | ||
16405 | ; | |
16406 | return 0; | |
16407 | } | |
16408 | _ACEOF | |
16409 | rm -f conftest.$ac_objext | |
16410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16411 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16412 | ac_status=$? |
16413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16414 | (exit $ac_status); } && | |
09d3439c | 16415 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16417 | (eval $ac_try) 2>&5 | |
16418 | ac_status=$? | |
16419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16420 | (exit $ac_status); }; }; then | |
16421 | ac_hi=$ac_mid; break | |
16422 | else | |
16423 | echo "$as_me: failed program was:" >&5 | |
16424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16425 | ||
16426 | ac_lo=`expr $ac_mid + 1` | |
09d3439c VZ |
16427 | if test $ac_lo -le $ac_mid; then |
16428 | ac_lo= ac_hi= | |
16429 | break | |
16430 | fi | |
16431 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
e6cc62c6 | 16432 | fi |
09d3439c | 16433 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16434 | done |
16435 | else | |
16436 | echo "$as_me: failed program was:" >&5 | |
16437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16438 | ||
16439 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16440 | #line $LINENO "configure" |
e6cc62c6 VS |
16441 | /* confdefs.h. */ |
16442 | _ACEOF | |
16443 | cat confdefs.h >>conftest.$ac_ext | |
16444 | cat >>conftest.$ac_ext <<_ACEOF | |
16445 | /* end confdefs.h. */ | |
16446 | $ac_includes_default | |
16447 | int | |
16448 | main () | |
16449 | { | |
16450 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16451 | test_array [0] = 0 | |
16452 | ||
16453 | ; | |
16454 | return 0; | |
16455 | } | |
16456 | _ACEOF | |
16457 | rm -f conftest.$ac_objext | |
16458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16459 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16460 | ac_status=$? |
16461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16462 | (exit $ac_status); } && | |
09d3439c | 16463 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16465 | (eval $ac_try) 2>&5 | |
16466 | ac_status=$? | |
16467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16468 | (exit $ac_status); }; }; then | |
16469 | ac_hi=-1 ac_mid=-1 | |
16470 | while :; do | |
16471 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16472 | #line $LINENO "configure" |
e6cc62c6 VS |
16473 | /* confdefs.h. */ |
16474 | _ACEOF | |
16475 | cat confdefs.h >>conftest.$ac_ext | |
16476 | cat >>conftest.$ac_ext <<_ACEOF | |
16477 | /* end confdefs.h. */ | |
16478 | $ac_includes_default | |
16479 | int | |
16480 | main () | |
16481 | { | |
16482 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16483 | test_array [0] = 0 | |
16484 | ||
16485 | ; | |
16486 | return 0; | |
16487 | } | |
16488 | _ACEOF | |
16489 | rm -f conftest.$ac_objext | |
16490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16491 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16492 | ac_status=$? |
16493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16494 | (exit $ac_status); } && | |
09d3439c | 16495 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16497 | (eval $ac_try) 2>&5 | |
16498 | ac_status=$? | |
16499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16500 | (exit $ac_status); }; }; then | |
16501 | ac_lo=$ac_mid; break | |
16502 | else | |
16503 | echo "$as_me: failed program was:" >&5 | |
16504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16505 | ||
16506 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
09d3439c VZ |
16507 | if test $ac_mid -le $ac_hi; then |
16508 | ac_lo= ac_hi= | |
16509 | break | |
16510 | fi | |
16511 | ac_mid=`expr 2 '*' $ac_mid` | |
e6cc62c6 | 16512 | fi |
09d3439c | 16513 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16514 | done |
4f57cf11 | 16515 | else |
e6cc62c6 VS |
16516 | echo "$as_me: failed program was:" >&5 |
16517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16518 | ||
16519 | ac_lo= ac_hi= | |
16520 | fi | |
09d3439c | 16521 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16522 | fi |
09d3439c | 16523 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16524 | # Binary search between lo and hi bounds. |
16525 | while test "x$ac_lo" != "x$ac_hi"; do | |
16526 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16527 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16528 | #line $LINENO "configure" |
e6cc62c6 VS |
16529 | /* confdefs.h. */ |
16530 | _ACEOF | |
16531 | cat confdefs.h >>conftest.$ac_ext | |
16532 | cat >>conftest.$ac_ext <<_ACEOF | |
16533 | /* end confdefs.h. */ | |
16534 | $ac_includes_default | |
16535 | int | |
16536 | main () | |
16537 | { | |
16538 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16539 | test_array [0] = 0 | |
16540 | ||
16541 | ; | |
16542 | return 0; | |
16543 | } | |
16544 | _ACEOF | |
16545 | rm -f conftest.$ac_objext | |
16546 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16547 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16548 | ac_status=$? |
16549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16550 | (exit $ac_status); } && | |
09d3439c | 16551 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16553 | (eval $ac_try) 2>&5 | |
16554 | ac_status=$? | |
16555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16556 | (exit $ac_status); }; }; then | |
16557 | ac_hi=$ac_mid | |
16558 | else | |
16559 | echo "$as_me: failed program was:" >&5 | |
16560 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16561 | ||
16562 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16563 | fi | |
09d3439c | 16564 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16565 | done |
16566 | case $ac_lo in | |
16567 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16568 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16569 | See \`config.log' for more details." >&5 | |
16570 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16571 | See \`config.log' for more details." >&2;} | |
16572 | { (exit 1); exit 1; }; } ;; | |
16573 | esac | |
16574 | else | |
16575 | if test "$cross_compiling" = yes; then | |
16576 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16577 | See \`config.log' for more details." >&5 | |
16578 | echo "$as_me: error: cannot run test program while cross compiling | |
16579 | See \`config.log' for more details." >&2;} | |
16580 | { (exit 1); exit 1; }; } | |
16581 | else | |
16582 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16583 | #line $LINENO "configure" |
e6cc62c6 VS |
16584 | /* confdefs.h. */ |
16585 | _ACEOF | |
16586 | cat confdefs.h >>conftest.$ac_ext | |
16587 | cat >>conftest.$ac_ext <<_ACEOF | |
16588 | /* end confdefs.h. */ | |
16589 | $ac_includes_default | |
16590 | long longval () { return (long) (sizeof (long long)); } | |
16591 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
4f57cf11 | 16592 | #include <stdio.h> |
e6cc62c6 VS |
16593 | #include <stdlib.h> |
16594 | int | |
16595 | main () | |
4f57cf11 | 16596 | { |
e6cc62c6 VS |
16597 | |
16598 | FILE *f = fopen ("conftest.val", "w"); | |
16599 | if (! f) | |
16600 | exit (1); | |
16601 | if (((long) (sizeof (long long))) < 0) | |
16602 | { | |
16603 | long i = longval (); | |
16604 | if (i != ((long) (sizeof (long long)))) | |
16605 | exit (1); | |
16606 | fprintf (f, "%ld\n", i); | |
16607 | } | |
16608 | else | |
16609 | { | |
16610 | unsigned long i = ulongval (); | |
16611 | if (i != ((long) (sizeof (long long)))) | |
16612 | exit (1); | |
16613 | fprintf (f, "%lu\n", i); | |
16614 | } | |
16615 | exit (ferror (f) || fclose (f) != 0); | |
16616 | ||
16617 | ; | |
16618 | return 0; | |
4f57cf11 | 16619 | } |
e6cc62c6 VS |
16620 | _ACEOF |
16621 | rm -f conftest$ac_exeext | |
16622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16623 | (eval $ac_link) 2>&5 | |
16624 | ac_status=$? | |
16625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16626 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16628 | (eval $ac_try) 2>&5 | |
16629 | ac_status=$? | |
16630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16631 | (exit $ac_status); }; }; then | |
16632 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16633 | else | |
16634 | echo "$as_me: program exited with status $ac_status" >&5 | |
16635 | echo "$as_me: failed program was:" >&5 | |
16636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16637 | ||
16638 | ( exit $ac_status ) | |
16639 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16640 | See \`config.log' for more details." >&5 | |
16641 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16642 | See \`config.log' for more details." >&2;} | |
16643 | { (exit 1); exit 1; }; } | |
16644 | fi | |
09d3439c | 16645 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
16646 | fi |
16647 | fi | |
16648 | rm -f conftest.val | |
4f57cf11 | 16649 | else |
4f57cf11 GD |
16650 | ac_cv_sizeof_long_long=0 |
16651 | fi | |
7b4a847f | 16652 | fi |
e6cc62c6 VS |
16653 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
16654 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16655 | cat >>confdefs.h <<_ACEOF | |
21d1c967 | 16656 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
e6cc62c6 | 16657 | _ACEOF |
9e691f46 | 16658 | |
8284b0c5 | 16659 | |
21d1c967 GD |
16660 | esac |
16661 | ||
e6cc62c6 VS |
16662 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 |
16663 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
16664 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
16665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 16666 | else |
e6cc62c6 | 16667 | |
21d1c967 | 16668 | if test "$cross_compiling" = yes; then |
e6cc62c6 | 16669 | |
2b5f62a0 VZ |
16670 | case "${host}" in |
16671 | *-pc-msdosdjgpp ) | |
16672 | wx_cv_sizeof_wchar_t=0 | |
16673 | ;; | |
16674 | * ) | |
16675 | wx_cv_sizeof_wchar_t=4 | |
16676 | ;; | |
16677 | esac | |
e6cc62c6 VS |
16678 | |
16679 | ||
6f72b082 | 16680 | else |
e6cc62c6 | 16681 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 16682 | #line $LINENO "configure" |
e6cc62c6 VS |
16683 | /* confdefs.h. */ |
16684 | _ACEOF | |
16685 | cat confdefs.h >>conftest.$ac_ext | |
16686 | cat >>conftest.$ac_ext <<_ACEOF | |
16687 | /* end confdefs.h. */ | |
21d1c967 | 16688 | |
2b5f62a0 VZ |
16689 | /* DJGPP only has fake wchar_t: */ |
16690 | #ifdef __DJGPP__ | |
16691 | # error "fake wchar_t" | |
16692 | #endif | |
21d1c967 GD |
16693 | #ifdef HAVE_WCHAR_H |
16694 | # ifdef __CYGWIN__ | |
16695 | # include <stddef.h> | |
16696 | # endif | |
16697 | # include <wchar.h> | |
16698 | #endif | |
16699 | #ifdef HAVE_STDLIB_H | |
16700 | # include <stdlib.h> | |
16701 | #endif | |
16702 | #include <stdio.h> | |
16703 | int main() | |
16704 | { | |
16705 | FILE *f=fopen("conftestval", "w"); | |
16706 | if (!f) exit(1); | |
16707 | fprintf(f, "%i", sizeof(wchar_t)); | |
16708 | exit(0); | |
16709 | } | |
e6cc62c6 VS |
16710 | |
16711 | _ACEOF | |
16712 | rm -f conftest$ac_exeext | |
16713 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16714 | (eval $ac_link) 2>&5 | |
16715 | ac_status=$? | |
16716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16717 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16719 | (eval $ac_try) 2>&5 | |
16720 | ac_status=$? | |
16721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16722 | (exit $ac_status); }; }; then | |
21d1c967 | 16723 | wx_cv_sizeof_wchar_t=`cat conftestval` |
6f72b082 | 16724 | else |
e6cc62c6 VS |
16725 | echo "$as_me: program exited with status $ac_status" >&5 |
16726 | echo "$as_me: failed program was:" >&5 | |
16727 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16728 | ||
16729 | ( exit $ac_status ) | |
16730 | wx_cv_sizeof_wchar_t=0 | |
6f72b082 | 16731 | fi |
09d3439c | 16732 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
6f72b082 | 16733 | fi |
6f72b082 | 16734 | |
3f345b47 | 16735 | fi |
e6cc62c6 VS |
16736 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 |
16737 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
3f345b47 | 16738 | |
e6cc62c6 | 16739 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16740 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t |
e6cc62c6 | 16741 | _ACEOF |
90dd450c | 16742 | |
8284b0c5 | 16743 | |
21d1c967 GD |
16744 | # Check whether --enable-largefile or --disable-largefile was given. |
16745 | if test "${enable_largefile+set}" = set; then | |
16746 | enableval="$enable_largefile" | |
3f345b47 | 16747 | |
e6cc62c6 | 16748 | fi; |
21d1c967 GD |
16749 | if test "$enable_largefile" != no; then |
16750 | wx_largefile=no | |
e6cc62c6 VS |
16751 | |
16752 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
16753 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
16754 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
16755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16756 | else | |
16757 | ||
16758 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16759 | #line $LINENO "configure" |
e6cc62c6 VS |
16760 | /* confdefs.h. */ |
16761 | _ACEOF | |
16762 | cat confdefs.h >>conftest.$ac_ext | |
16763 | cat >>conftest.$ac_ext <<_ACEOF | |
16764 | /* end confdefs.h. */ | |
21d1c967 GD |
16765 | #define _FILE_OFFSET_BITS 64 |
16766 | #include <sys/types.h> | |
e6cc62c6 VS |
16767 | int |
16768 | main () | |
16769 | { | |
21d1c967 GD |
16770 | typedef struct { |
16771 | unsigned int field: sizeof(off_t) == 8; | |
16772 | } wxlf; | |
16773 | ||
e6cc62c6 VS |
16774 | ; |
16775 | return 0; | |
16776 | } | |
16777 | _ACEOF | |
16778 | rm -f conftest.$ac_objext | |
16779 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16780 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16781 | ac_status=$? |
16782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16783 | (exit $ac_status); } && | |
09d3439c | 16784 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16786 | (eval $ac_try) 2>&5 | |
16787 | ac_status=$? | |
16788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16789 | (exit $ac_status); }; }; then | |
21d1c967 | 16790 | ac_cv_sys_file_offset_bits=64 |
f6bcfd97 | 16791 | else |
e6cc62c6 VS |
16792 | echo "$as_me: failed program was:" >&5 |
16793 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16794 | ||
16795 | ac_cv_sys_file_offset_bits=no | |
247f5006 | 16796 | fi |
09d3439c | 16797 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 16798 | |
a0b9e27f | 16799 | |
e6cc62c6 VS |
16800 | fi |
16801 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
16802 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
21d1c967 GD |
16803 | |
16804 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
16805 | wx_largefile=yes | |
e6cc62c6 | 16806 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16807 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
e6cc62c6 | 16808 | _ACEOF |
21d1c967 GD |
16809 | |
16810 | fi | |
16811 | ||
16812 | if test "x$wx_largefile" != "xyes"; then | |
e6cc62c6 VS |
16813 | |
16814 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
16815 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
16816 | if test "${ac_cv_sys_large_files+set}" = set; then | |
16817 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16818 | else | |
16819 | ||
16820 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 16821 | #line $LINENO "configure" |
e6cc62c6 VS |
16822 | /* confdefs.h. */ |
16823 | _ACEOF | |
16824 | cat confdefs.h >>conftest.$ac_ext | |
16825 | cat >>conftest.$ac_ext <<_ACEOF | |
16826 | /* end confdefs.h. */ | |
21d1c967 GD |
16827 | #define _LARGE_FILES 1 |
16828 | #include <sys/types.h> | |
e6cc62c6 VS |
16829 | int |
16830 | main () | |
16831 | { | |
21d1c967 GD |
16832 | typedef struct { |
16833 | unsigned int field: sizeof(off_t) == 8; | |
16834 | } wxlf; | |
16835 | ||
e6cc62c6 VS |
16836 | ; |
16837 | return 0; | |
16838 | } | |
16839 | _ACEOF | |
16840 | rm -f conftest.$ac_objext | |
16841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16842 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16843 | ac_status=$? |
16844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16845 | (exit $ac_status); } && | |
09d3439c | 16846 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16848 | (eval $ac_try) 2>&5 | |
16849 | ac_status=$? | |
16850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16851 | (exit $ac_status); }; }; then | |
21d1c967 | 16852 | ac_cv_sys_large_files=1 |
f6bcfd97 | 16853 | else |
e6cc62c6 VS |
16854 | echo "$as_me: failed program was:" >&5 |
16855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16856 | ||
16857 | ac_cv_sys_large_files=no | |
247f5006 | 16858 | fi |
09d3439c | 16859 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 16860 | |
e6cc62c6 VS |
16861 | |
16862 | fi | |
16863 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
16864 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
3f345b47 | 16865 | |
21d1c967 GD |
16866 | if test "$ac_cv_sys_large_files" != no; then |
16867 | wx_largefile=yes | |
e6cc62c6 | 16868 | cat >>confdefs.h <<_ACEOF |
21d1c967 | 16869 | #define _LARGE_FILES $ac_cv_sys_large_files |
e6cc62c6 | 16870 | _ACEOF |
90dd450c | 16871 | |
90dd450c VZ |
16872 | fi |
16873 | ||
90dd450c | 16874 | fi |
90dd450c | 16875 | |
e6cc62c6 VS |
16876 | echo "$as_me:$LINENO: checking if large file support is available" >&5 |
16877 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
21d1c967 | 16878 | if test "x$wx_largefile" = "xyes"; then |
e6cc62c6 | 16879 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 16880 | #define HAVE_LARGEFILE_SUPPORT 1 |
e6cc62c6 | 16881 | _ACEOF |
90dd450c | 16882 | |
90dd450c | 16883 | fi |
e6cc62c6 VS |
16884 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 |
16885 | echo "${ECHO_T}$wx_largefile" >&6 | |
21d1c967 | 16886 | fi |
90dd450c | 16887 | |
8284b0c5 | 16888 | |
f02444d0 | 16889 | if test "x$wx_largefile" = "xyes"; then |
e26c13cf RD |
16890 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then |
16891 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
f02444d0 | 16892 | else |
e26c13cf | 16893 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" |
f02444d0 | 16894 | fi |
e26c13cf | 16895 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" |
f02444d0 VZ |
16896 | fi |
16897 | ||
e6cc62c6 VS |
16898 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
16899 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
16900 | if test "${ac_cv_c_bigendian+set}" = set; then | |
16901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 16902 | else |
21d1c967 GD |
16903 | ac_cv_c_bigendian=unknown |
16904 | # See if sys/param.h defines the BYTE_ORDER macro. | |
e6cc62c6 | 16905 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 16906 | #line $LINENO "configure" |
e6cc62c6 VS |
16907 | /* confdefs.h. */ |
16908 | _ACEOF | |
16909 | cat confdefs.h >>conftest.$ac_ext | |
16910 | cat >>conftest.$ac_ext <<_ACEOF | |
16911 | /* end confdefs.h. */ | |
21d1c967 GD |
16912 | #include <sys/types.h> |
16913 | #include <sys/param.h> | |
e6cc62c6 VS |
16914 | int |
16915 | main () | |
16916 | { | |
21d1c967 GD |
16917 | |
16918 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
16919 | bogus endian macros | |
16920 | #endif | |
e6cc62c6 VS |
16921 | ; |
16922 | return 0; | |
16923 | } | |
16924 | _ACEOF | |
16925 | rm -f conftest.$ac_objext | |
16926 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16927 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16928 | ac_status=$? |
16929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16930 | (exit $ac_status); } && | |
09d3439c | 16931 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16933 | (eval $ac_try) 2>&5 | |
16934 | ac_status=$? | |
16935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16936 | (exit $ac_status); }; }; then | |
21d1c967 | 16937 | # It does; now see whether it defined to BIG_ENDIAN or not. |
e6cc62c6 | 16938 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 16939 | #line $LINENO "configure" |
e6cc62c6 VS |
16940 | /* confdefs.h. */ |
16941 | _ACEOF | |
16942 | cat confdefs.h >>conftest.$ac_ext | |
16943 | cat >>conftest.$ac_ext <<_ACEOF | |
16944 | /* end confdefs.h. */ | |
21d1c967 GD |
16945 | #include <sys/types.h> |
16946 | #include <sys/param.h> | |
e6cc62c6 VS |
16947 | int |
16948 | main () | |
16949 | { | |
21d1c967 GD |
16950 | |
16951 | #if BYTE_ORDER != BIG_ENDIAN | |
16952 | not big endian | |
16953 | #endif | |
e6cc62c6 VS |
16954 | ; |
16955 | return 0; | |
16956 | } | |
16957 | _ACEOF | |
16958 | rm -f conftest.$ac_objext | |
16959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 16960 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
16961 | ac_status=$? |
16962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16963 | (exit $ac_status); } && | |
09d3439c | 16964 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
16965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16966 | (eval $ac_try) 2>&5 | |
16967 | ac_status=$? | |
16968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16969 | (exit $ac_status); }; }; then | |
21d1c967 | 16970 | ac_cv_c_bigendian=yes |
3f345b47 | 16971 | else |
e6cc62c6 VS |
16972 | echo "$as_me: failed program was:" >&5 |
16973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16974 | ||
16975 | ac_cv_c_bigendian=no | |
3f345b47 | 16976 | fi |
09d3439c | 16977 | rm -f conftest.$ac_objext conftest.$ac_ext |
3f345b47 | 16978 | else |
e6cc62c6 VS |
16979 | echo "$as_me: failed program was:" >&5 |
16980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16981 | ||
3f345b47 | 16982 | fi |
09d3439c | 16983 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
16984 | if test $ac_cv_c_bigendian = unknown; then |
16985 | if test "$cross_compiling" = yes; then | |
16986 | ac_cv_c_bigendian=unknown | |
10f2d63a | 16987 | else |
e6cc62c6 | 16988 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 16989 | #line $LINENO "configure" |
e6cc62c6 VS |
16990 | /* confdefs.h. */ |
16991 | _ACEOF | |
16992 | cat confdefs.h >>conftest.$ac_ext | |
16993 | cat >>conftest.$ac_ext <<_ACEOF | |
16994 | /* end confdefs.h. */ | |
21d1c967 GD |
16995 | main () { |
16996 | /* Are we little or big endian? From Harbison&Steele. */ | |
16997 | union | |
16998 | { | |
16999 | long l; | |
17000 | char c[sizeof (long)]; | |
17001 | } u; | |
17002 | u.l = 1; | |
17003 | exit (u.c[sizeof (long) - 1] == 1); | |
17004 | } | |
e6cc62c6 VS |
17005 | _ACEOF |
17006 | rm -f conftest$ac_exeext | |
17007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17008 | (eval $ac_link) 2>&5 | |
17009 | ac_status=$? | |
17010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17011 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17013 | (eval $ac_try) 2>&5 | |
17014 | ac_status=$? | |
17015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17016 | (exit $ac_status); }; }; then | |
21d1c967 | 17017 | ac_cv_c_bigendian=no |
3f345b47 | 17018 | else |
e6cc62c6 VS |
17019 | echo "$as_me: program exited with status $ac_status" >&5 |
17020 | echo "$as_me: failed program was:" >&5 | |
17021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17022 | ||
17023 | ( exit $ac_status ) | |
17024 | ac_cv_c_bigendian=yes | |
247f5006 | 17025 | fi |
09d3439c | 17026 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
247f5006 | 17027 | fi |
3f345b47 | 17028 | fi |
8168de4c | 17029 | fi |
e6cc62c6 VS |
17030 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
17031 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
247f5006 | 17032 | if test $ac_cv_c_bigendian = unknown; then |
e6cc62c6 VS |
17033 | { 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 |
17034 | 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 |
17035 | fi |
17036 | if test $ac_cv_c_bigendian = yes; then | |
e6cc62c6 | 17037 | cat >>confdefs.h <<\_ACEOF |
247f5006 | 17038 | #define WORDS_BIGENDIAN 1 |
e6cc62c6 | 17039 | _ACEOF |
247f5006 VZ |
17040 | |
17041 | fi | |
17042 | ||
17043 | ||
e6cc62c6 VS |
17044 | |
17045 | ac_ext=cc | |
17046 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17047 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17048 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17049 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17050 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
17051 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
247f5006 | 17052 | if test -z "$CXXCPP"; then |
e6cc62c6 VS |
17053 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
17054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17055 | else | |
17056 | # Double quotes because CXXCPP needs to be expanded | |
17057 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
17058 | do | |
17059 | ac_preproc_ok=false | |
17060 | for ac_cxx_preproc_warn_flag in '' yes | |
17061 | do | |
17062 | # Use a header file that comes with gcc, so configuring glibc | |
17063 | # with a fresh cross-compiler works. | |
17064 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17065 | # <limits.h> exists even on freestanding compilers. | |
17066 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17067 | # not just through cpp. "Syntax error" is here to catch this case. | |
17068 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 17069 | #line $LINENO "configure" |
e6cc62c6 VS |
17070 | /* confdefs.h. */ |
17071 | _ACEOF | |
17072 | cat confdefs.h >>conftest.$ac_ext | |
17073 | cat >>conftest.$ac_ext <<_ACEOF | |
17074 | /* end confdefs.h. */ | |
17075 | #ifdef __STDC__ | |
17076 | # include <limits.h> | |
17077 | #else | |
17078 | # include <assert.h> | |
17079 | #endif | |
09d3439c | 17080 | Syntax error |
e6cc62c6 VS |
17081 | _ACEOF |
17082 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17083 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17084 | ac_status=$? | |
17085 | grep -v '^ *+' conftest.er1 >conftest.err | |
17086 | rm -f conftest.er1 | |
17087 | cat conftest.err >&5 | |
17088 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17089 | (exit $ac_status); } >/dev/null; then | |
17090 | if test -s conftest.err; then | |
17091 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17092 | else | |
17093 | ac_cpp_err= | |
17094 | fi | |
247f5006 | 17095 | else |
e6cc62c6 VS |
17096 | ac_cpp_err=yes |
17097 | fi | |
17098 | if test -z "$ac_cpp_err"; then | |
17099 | : | |
17100 | else | |
17101 | echo "$as_me: failed program was:" >&5 | |
17102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17103 | ||
17104 | # Broken: fails on valid input. | |
17105 | continue | |
17106 | fi | |
17107 | rm -f conftest.err conftest.$ac_ext | |
17108 | ||
17109 | # OK, works on sane cases. Now check whether non-existent headers | |
17110 | # can be detected and how. | |
17111 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 17112 | #line $LINENO "configure" |
e6cc62c6 VS |
17113 | /* confdefs.h. */ |
17114 | _ACEOF | |
17115 | cat confdefs.h >>conftest.$ac_ext | |
17116 | cat >>conftest.$ac_ext <<_ACEOF | |
17117 | /* end confdefs.h. */ | |
17118 | #include <ac_nonexistent.h> | |
17119 | _ACEOF | |
17120 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17121 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17122 | ac_status=$? | |
17123 | grep -v '^ *+' conftest.er1 >conftest.err | |
17124 | rm -f conftest.er1 | |
17125 | cat conftest.err >&5 | |
17126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17127 | (exit $ac_status); } >/dev/null; then | |
17128 | if test -s conftest.err; then | |
17129 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17130 | else | |
17131 | ac_cpp_err= | |
17132 | fi | |
17133 | else | |
17134 | ac_cpp_err=yes | |
17135 | fi | |
17136 | if test -z "$ac_cpp_err"; then | |
17137 | # Broken: success on invalid input. | |
17138 | continue | |
17139 | else | |
17140 | echo "$as_me: failed program was:" >&5 | |
17141 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17142 | ||
17143 | # Passes both tests. | |
17144 | ac_preproc_ok=: | |
17145 | break | |
17146 | fi | |
17147 | rm -f conftest.err conftest.$ac_ext | |
17148 | ||
17149 | done | |
17150 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17151 | rm -f conftest.err conftest.$ac_ext | |
17152 | if $ac_preproc_ok; then | |
17153 | break | |
17154 | fi | |
17155 | ||
17156 | done | |
17157 | ac_cv_prog_CXXCPP=$CXXCPP | |
17158 | ||
17159 | fi | |
17160 | CXXCPP=$ac_cv_prog_CXXCPP | |
17161 | else | |
17162 | ac_cv_prog_CXXCPP=$CXXCPP | |
17163 | fi | |
17164 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17165 | echo "${ECHO_T}$CXXCPP" >&6 | |
17166 | ac_preproc_ok=false | |
17167 | for ac_cxx_preproc_warn_flag in '' yes | |
17168 | do | |
17169 | # Use a header file that comes with gcc, so configuring glibc | |
17170 | # with a fresh cross-compiler works. | |
17171 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17172 | # <limits.h> exists even on freestanding compilers. | |
17173 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17174 | # not just through cpp. "Syntax error" is here to catch this case. | |
17175 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 17176 | #line $LINENO "configure" |
e6cc62c6 VS |
17177 | /* confdefs.h. */ |
17178 | _ACEOF | |
17179 | cat confdefs.h >>conftest.$ac_ext | |
17180 | cat >>conftest.$ac_ext <<_ACEOF | |
17181 | /* end confdefs.h. */ | |
17182 | #ifdef __STDC__ | |
17183 | # include <limits.h> | |
17184 | #else | |
17185 | # include <assert.h> | |
17186 | #endif | |
09d3439c | 17187 | Syntax error |
e6cc62c6 VS |
17188 | _ACEOF |
17189 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17190 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17191 | ac_status=$? | |
17192 | grep -v '^ *+' conftest.er1 >conftest.err | |
17193 | rm -f conftest.er1 | |
17194 | cat conftest.err >&5 | |
17195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17196 | (exit $ac_status); } >/dev/null; then | |
17197 | if test -s conftest.err; then | |
17198 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17199 | else | |
17200 | ac_cpp_err= | |
17201 | fi | |
17202 | else | |
17203 | ac_cpp_err=yes | |
17204 | fi | |
17205 | if test -z "$ac_cpp_err"; then | |
21d1c967 | 17206 | : |
698dcdb6 | 17207 | else |
e6cc62c6 VS |
17208 | echo "$as_me: failed program was:" >&5 |
17209 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17210 | ||
17211 | # Broken: fails on valid input. | |
17212 | continue | |
17213 | fi | |
17214 | rm -f conftest.err conftest.$ac_ext | |
17215 | ||
17216 | # OK, works on sane cases. Now check whether non-existent headers | |
17217 | # can be detected and how. | |
17218 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 17219 | #line $LINENO "configure" |
e6cc62c6 VS |
17220 | /* confdefs.h. */ |
17221 | _ACEOF | |
17222 | cat confdefs.h >>conftest.$ac_ext | |
17223 | cat >>conftest.$ac_ext <<_ACEOF | |
17224 | /* end confdefs.h. */ | |
17225 | #include <ac_nonexistent.h> | |
17226 | _ACEOF | |
17227 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17228 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17229 | ac_status=$? | |
17230 | grep -v '^ *+' conftest.er1 >conftest.err | |
17231 | rm -f conftest.er1 | |
17232 | cat conftest.err >&5 | |
17233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17234 | (exit $ac_status); } >/dev/null; then | |
17235 | if test -s conftest.err; then | |
17236 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17237 | else | |
17238 | ac_cpp_err= | |
17239 | fi | |
17240 | else | |
17241 | ac_cpp_err=yes | |
247f5006 | 17242 | fi |
e6cc62c6 VS |
17243 | if test -z "$ac_cpp_err"; then |
17244 | # Broken: success on invalid input. | |
17245 | continue | |
17246 | else | |
17247 | echo "$as_me: failed program was:" >&5 | |
17248 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17249 | ||
17250 | # Passes both tests. | |
17251 | ac_preproc_ok=: | |
17252 | break | |
328a083c | 17253 | fi |
e6cc62c6 VS |
17254 | rm -f conftest.err conftest.$ac_ext |
17255 | ||
17256 | done | |
17257 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17258 | rm -f conftest.err conftest.$ac_ext | |
17259 | if $ac_preproc_ok; then | |
17260 | : | |
17261 | else | |
17262 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17263 | See \`config.log' for more details." >&5 | |
17264 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17265 | See \`config.log' for more details." >&2;} | |
17266 | { (exit 1); exit 1; }; } | |
90dd450c | 17267 | fi |
e6cc62c6 VS |
17268 | |
17269 | ac_ext=cc | |
17270 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17271 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17272 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17273 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17274 | ||
1e6feb95 | 17275 | |
1725144d | 17276 | |
21d1c967 | 17277 | if test "$cross_compiling" = "yes"; then |
e6cc62c6 | 17278 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17279 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17280 | _ACEOF |
ab9b9eab | 17281 | |
21d1c967 | 17282 | else |
e6cc62c6 VS |
17283 | |
17284 | ||
17285 | ac_ext=cc | |
5c6fa7d2 | 17286 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17287 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17288 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17289 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17290 | ||
52127426 | 17291 | |
247f5006 | 17292 | |
e6cc62c6 | 17293 | for ac_header in iostream |
21d1c967 | 17294 | do |
e6cc62c6 VS |
17295 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17296 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17297 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17298 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17299 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17301 | fi | |
17302 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17303 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17304 | else | |
17305 | # Is the header compilable? | |
17306 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17307 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17308 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 17309 | #line $LINENO "configure" |
e6cc62c6 VS |
17310 | /* confdefs.h. */ |
17311 | _ACEOF | |
17312 | cat confdefs.h >>conftest.$ac_ext | |
17313 | cat >>conftest.$ac_ext <<_ACEOF | |
17314 | /* end confdefs.h. */ | |
17315 | $ac_includes_default | |
17316 | #include <$ac_header> | |
17317 | _ACEOF | |
17318 | rm -f conftest.$ac_objext | |
17319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 17320 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
17321 | ac_status=$? |
17322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17323 | (exit $ac_status); } && | |
09d3439c | 17324 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
17325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17326 | (eval $ac_try) 2>&5 | |
17327 | ac_status=$? | |
17328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17329 | (exit $ac_status); }; }; then | |
17330 | ac_header_compiler=yes | |
17331 | else | |
17332 | echo "$as_me: failed program was:" >&5 | |
17333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17334 | ||
17335 | ac_header_compiler=no | |
17336 | fi | |
09d3439c | 17337 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
17338 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17339 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17340 | ||
17341 | # Is the header present? | |
17342 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17343 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17344 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 17345 | #line $LINENO "configure" |
e6cc62c6 VS |
17346 | /* confdefs.h. */ |
17347 | _ACEOF | |
17348 | cat confdefs.h >>conftest.$ac_ext | |
17349 | cat >>conftest.$ac_ext <<_ACEOF | |
17350 | /* end confdefs.h. */ | |
17351 | #include <$ac_header> | |
17352 | _ACEOF | |
17353 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17354 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17355 | ac_status=$? | |
17356 | grep -v '^ *+' conftest.er1 >conftest.err | |
17357 | rm -f conftest.er1 | |
17358 | cat conftest.err >&5 | |
17359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17360 | (exit $ac_status); } >/dev/null; then | |
17361 | if test -s conftest.err; then | |
17362 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
17363 | else | |
17364 | ac_cpp_err= | |
17365 | fi | |
17366 | else | |
17367 | ac_cpp_err=yes | |
17368 | fi | |
17369 | if test -z "$ac_cpp_err"; then | |
17370 | ac_header_preproc=yes | |
17371 | else | |
17372 | echo "$as_me: failed program was:" >&5 | |
17373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17374 | ||
17375 | ac_header_preproc=no | |
17376 | fi | |
17377 | rm -f conftest.err conftest.$ac_ext | |
17378 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17379 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17380 | ||
17381 | # So? What about this header? | |
09d3439c VZ |
17382 | case $ac_header_compiler:$ac_header_preproc in |
17383 | yes:no ) | |
e6cc62c6 VS |
17384 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17385 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
17386 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17387 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17388 | ( | |
17389 | cat <<\_ASBOX | |
17390 | ## ------------------------------------ ## | |
17391 | ## Report this to bug-autoconf@gnu.org. ## | |
17392 | ## ------------------------------------ ## | |
17393 | _ASBOX | |
17394 | ) | | |
17395 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 17396 | ;; |
09d3439c | 17397 | no:yes ) |
e6cc62c6 VS |
17398 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17399 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
17400 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17401 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
17402 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17403 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17404 | ( | |
17405 | cat <<\_ASBOX | |
09d3439c VZ |
17406 | ## ------------------------------------ ## |
17407 | ## Report this to bug-autoconf@gnu.org. ## | |
17408 | ## ------------------------------------ ## | |
e6cc62c6 VS |
17409 | _ASBOX |
17410 | ) | | |
17411 | sed "s/^/$as_me: WARNING: /" >&2 | |
17412 | ;; | |
17413 | esac | |
17414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17418 | else | |
09d3439c | 17419 | eval "$as_ac_Header=$ac_header_preproc" |
ab9b9eab | 17420 | fi |
e6cc62c6 VS |
17421 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
17422 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17423 | ||
90dd450c | 17424 | fi |
e6cc62c6 VS |
17425 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17426 | cat >>confdefs.h <<_ACEOF | |
17427 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17428 | _ACEOF | |
17429 | ||
90dd450c | 17430 | fi |
e6cc62c6 | 17431 | |
21d1c967 | 17432 | done |
10f2d63a | 17433 | |
8284b0c5 | 17434 | |
21d1c967 GD |
17435 | if test "$ac_cv_header_iostream" = "yes" ; then |
17436 | : | |
17437 | else | |
e6cc62c6 | 17438 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17439 | #define wxUSE_IOSTREAMH 1 |
e6cc62c6 | 17440 | _ACEOF |
788deba1 | 17441 | |
90dd450c | 17442 | fi |
ab9b9eab | 17443 | |
21d1c967 | 17444 | ac_ext=c |
21d1c967 | 17445 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17446 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17447 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17448 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ab9b9eab | 17449 | |
21d1c967 | 17450 | fi |
ab9b9eab | 17451 | |
52127426 | 17452 | |
8284b0c5 | 17453 | |
e6cc62c6 VS |
17454 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 |
17455 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
17456 | if test "${wx_cv_cpp_bool+set}" = set; then | |
17457 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17458 | else |
e6cc62c6 VS |
17459 | |
17460 | ||
17461 | ||
17462 | ac_ext=cc | |
5c6fa7d2 | 17463 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17464 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17465 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17466 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
21d1c967 | 17467 | |
8284b0c5 | 17468 | |
e6cc62c6 | 17469 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 17470 | #line $LINENO "configure" |
e6cc62c6 VS |
17471 | /* confdefs.h. */ |
17472 | _ACEOF | |
17473 | cat confdefs.h >>conftest.$ac_ext | |
17474 | cat >>conftest.$ac_ext <<_ACEOF | |
17475 | /* end confdefs.h. */ | |
21d1c967 | 17476 | |
e6cc62c6 VS |
17477 | |
17478 | int | |
17479 | main () | |
17480 | { | |
21d1c967 GD |
17481 | |
17482 | bool b = true; | |
17483 | ||
17484 | return 0; | |
e6cc62c6 VS |
17485 | |
17486 | ; | |
17487 | return 0; | |
17488 | } | |
17489 | _ACEOF | |
17490 | rm -f conftest.$ac_objext | |
17491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 17492 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
17493 | ac_status=$? |
17494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17495 | (exit $ac_status); } && | |
09d3439c | 17496 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
17497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17498 | (eval $ac_try) 2>&5 | |
17499 | ac_status=$? | |
17500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17501 | (exit $ac_status); }; }; then | |
17502 | ||
21d1c967 | 17503 | wx_cv_cpp_bool=yes |
e6cc62c6 | 17504 | |
698dcdb6 | 17505 | else |
e6cc62c6 VS |
17506 | echo "$as_me: failed program was:" >&5 |
17507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17508 | ||
17509 | ||
21d1c967 | 17510 | wx_cv_cpp_bool=no |
e6cc62c6 VS |
17511 | |
17512 | ||
698dcdb6 | 17513 | fi |
09d3439c | 17514 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 GD |
17515 | |
17516 | ac_ext=c | |
21d1c967 | 17517 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17518 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17519 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17520 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17521 | |
a0b9e27f | 17522 | |
e6cc62c6 VS |
17523 | fi |
17524 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
17525 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
21d1c967 GD |
17526 | |
17527 | if test "$wx_cv_cpp_bool" = "yes"; then | |
e6cc62c6 | 17528 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 17529 | #define HAVE_BOOL 1 |
e6cc62c6 | 17530 | _ACEOF |
ab9b9eab | 17531 | |
21d1c967 GD |
17532 | fi |
17533 | ||
52127426 | 17534 | |
8284b0c5 | 17535 | |
e6cc62c6 VS |
17536 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 |
17537 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
17538 | if test "${wx_cv_explicit+set}" = set; then | |
17539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 17540 | else |
e6cc62c6 VS |
17541 | |
17542 | ||
17543 | ||
17544 | ac_ext=cc | |
5c6fa7d2 | 17545 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
17546 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17547 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17548 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
986ecc86 | 17549 | |
8284b0c5 | 17550 | |
e6cc62c6 | 17551 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 17552 | #line $LINENO "configure" |
e6cc62c6 VS |
17553 | /* confdefs.h. */ |
17554 | _ACEOF | |
17555 | cat confdefs.h >>conftest.$ac_ext | |
17556 | cat >>conftest.$ac_ext <<_ACEOF | |
17557 | /* end confdefs.h. */ | |
986ecc86 VZ |
17558 | |
17559 | class Foo { public: explicit Foo(int) {} }; | |
e6cc62c6 VS |
17560 | |
17561 | int | |
17562 | main () | |
17563 | { | |
986ecc86 VZ |
17564 | |
17565 | return 0; | |
e6cc62c6 VS |
17566 | |
17567 | ; | |
17568 | return 0; | |
17569 | } | |
17570 | _ACEOF | |
17571 | rm -f conftest.$ac_objext | |
17572 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 17573 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
17574 | ac_status=$? |
17575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17576 | (exit $ac_status); } && | |
09d3439c | 17577 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
17578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17579 | (eval $ac_try) 2>&5 | |
17580 | ac_status=$? | |
17581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17582 | (exit $ac_status); }; }; then | |
17583 | ||
17584 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 17585 | #line $LINENO "configure" |
e6cc62c6 VS |
17586 | /* confdefs.h. */ |
17587 | _ACEOF | |
17588 | cat confdefs.h >>conftest.$ac_ext | |
17589 | cat >>conftest.$ac_ext <<_ACEOF | |
17590 | /* end confdefs.h. */ | |
986ecc86 VZ |
17591 | |
17592 | class Foo { public: explicit Foo(int) {} }; | |
17593 | static void TakeFoo(const Foo& foo) { } | |
e6cc62c6 VS |
17594 | |
17595 | int | |
17596 | main () | |
17597 | { | |
986ecc86 VZ |
17598 | |
17599 | TakeFoo(17); | |
17600 | return 0; | |
e6cc62c6 VS |
17601 | |
17602 | ; | |
17603 | return 0; | |
17604 | } | |
17605 | _ACEOF | |
17606 | rm -f conftest.$ac_objext | |
17607 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 17608 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
17609 | ac_status=$? |
17610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17611 | (exit $ac_status); } && | |
09d3439c | 17612 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
17613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17614 | (eval $ac_try) 2>&5 | |
17615 | ac_status=$? | |
17616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17617 | (exit $ac_status); }; }; then | |
986ecc86 VZ |
17618 | wx_cv_explicit=no |
17619 | else | |
e6cc62c6 VS |
17620 | echo "$as_me: failed program was:" >&5 |
17621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17622 | ||
17623 | wx_cv_explicit=yes | |
17624 | ||
986ecc86 | 17625 | fi |
09d3439c | 17626 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 17627 | |
986ecc86 | 17628 | else |
e6cc62c6 VS |
17629 | echo "$as_me: failed program was:" >&5 |
17630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17631 | ||
17632 | wx_cv_explicit=no | |
17633 | ||
986ecc86 | 17634 | fi |
09d3439c | 17635 | rm -f conftest.$ac_objext conftest.$ac_ext |
986ecc86 VZ |
17636 | |
17637 | ac_ext=c | |
986ecc86 | 17638 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17639 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17640 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17641 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 17642 | |
a0b9e27f | 17643 | |
e6cc62c6 VS |
17644 | fi |
17645 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
17646 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
986ecc86 VZ |
17647 | |
17648 | if test "$wx_cv_explicit" = "yes"; then | |
e6cc62c6 | 17649 | cat >>confdefs.h <<\_ACEOF |
986ecc86 | 17650 | #define HAVE_EXPLICIT 1 |
e6cc62c6 | 17651 | _ACEOF |
986ecc86 VZ |
17652 | |
17653 | fi | |
17654 | ||
8284b0c5 | 17655 | |
e6cc62c6 VS |
17656 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 |
17657 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
17658 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
17659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
521196a2 | 17660 | else |
521196a2 | 17661 | |
521196a2 | 17662 | |
e6cc62c6 VS |
17663 | ac_ext=cc |
17664 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17665 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17666 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17667 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17668 | ||
17669 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 17670 | #line $LINENO "configure" |
e6cc62c6 VS |
17671 | /* confdefs.h. */ |
17672 | _ACEOF | |
17673 | cat confdefs.h >>conftest.$ac_ext | |
17674 | cat >>conftest.$ac_ext <<_ACEOF | |
17675 | /* end confdefs.h. */ | |
17676 | ||
17677 | int | |
17678 | main () | |
17679 | { | |
521196a2 | 17680 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; |
e6cc62c6 VS |
17681 | ; |
17682 | return 0; | |
17683 | } | |
17684 | _ACEOF | |
17685 | rm -f conftest.$ac_objext | |
17686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 17687 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
17688 | ac_status=$? |
17689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17690 | (exit $ac_status); } && | |
09d3439c | 17691 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
17692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17693 | (eval $ac_try) 2>&5 | |
17694 | ac_status=$? | |
17695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17696 | (exit $ac_status); }; }; then | |
521196a2 MB |
17697 | ac_cv_cxx_const_cast=yes |
17698 | else | |
e6cc62c6 VS |
17699 | echo "$as_me: failed program was:" >&5 |
17700 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17701 | ||
17702 | ac_cv_cxx_const_cast=no | |
521196a2 | 17703 | fi |
09d3439c | 17704 | rm -f conftest.$ac_objext conftest.$ac_ext |
521196a2 | 17705 | ac_ext=c |
521196a2 | 17706 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
17707 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17708 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17709 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
521196a2 MB |
17710 | |
17711 | ||
17712 | fi | |
e6cc62c6 VS |
17713 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 |
17714 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
521196a2 | 17715 | if test "$ac_cv_cxx_const_cast" = yes; then |
e6cc62c6 VS |
17716 | |
17717 | cat >>confdefs.h <<\_ACEOF | |
17718 | #define HAVE_CONST_CAST | |
17719 | _ACEOF | |
521196a2 MB |
17720 | |
17721 | fi | |
17722 | ||
17723 | ||
e87b7833 MB |
17724 | if test "$wxUSE_STL" = "yes"; then |
17725 | ac_ext=cc | |
17726 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17727 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17728 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17729 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17730 | ||
17731 | ||
17732 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
17733 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
17734 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 17735 | #line $LINENO "configure" |
e87b7833 MB |
17736 | /* confdefs.h. */ |
17737 | _ACEOF | |
17738 | cat confdefs.h >>conftest.$ac_ext | |
17739 | cat >>conftest.$ac_ext <<_ACEOF | |
17740 | /* end confdefs.h. */ | |
17741 | #include <string> | |
17742 | #include <functional> | |
17743 | #include <algorithm> | |
17744 | #include <vector> | |
17745 | #include <list> | |
17746 | int | |
17747 | main () | |
17748 | { | |
17749 | std::vector<int> moo; | |
17750 | std::list<int> foo; | |
17751 | std::vector<int>::iterator it = | |
17752 | std::find_if(moo.begin(), moo.end(), | |
17753 | std::bind2nd(std::less<int>(), 3)); | |
17754 | ; | |
17755 | return 0; | |
17756 | } | |
17757 | _ACEOF | |
17758 | rm -f conftest.$ac_objext | |
17759 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 17760 | (eval $ac_compile) 2>&5 |
e87b7833 MB |
17761 | ac_status=$? |
17762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17763 | (exit $ac_status); } && | |
09d3439c | 17764 | { ac_try='test -s conftest.$ac_objext' |
e87b7833 MB |
17765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17766 | (eval $ac_try) 2>&5 | |
17767 | ac_status=$? | |
17768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17769 | (exit $ac_status); }; }; then | |
17770 | echo "$as_me:$LINENO: result: yes" >&5 | |
17771 | echo "${ECHO_T}yes" >&6 | |
17772 | else | |
17773 | echo "$as_me: failed program was:" >&5 | |
17774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17775 | ||
17776 | echo "$as_me:$LINENO: result: no" >&5 | |
17777 | echo "${ECHO_T}no" >&6 | |
17778 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
17779 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
17780 | { (exit 1); exit 1; }; } | |
17781 | fi | |
09d3439c | 17782 | rm -f conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
17783 | |
17784 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
17785 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
17786 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 17787 | #line $LINENO "configure" |
e87b7833 MB |
17788 | /* confdefs.h. */ |
17789 | _ACEOF | |
17790 | cat confdefs.h >>conftest.$ac_ext | |
17791 | cat >>conftest.$ac_ext <<_ACEOF | |
17792 | /* end confdefs.h. */ | |
17793 | #include <string> | |
17794 | int | |
17795 | main () | |
17796 | { | |
17797 | std::wstring foo; | |
17798 | ; | |
17799 | return 0; | |
17800 | } | |
17801 | _ACEOF | |
17802 | rm -f conftest.$ac_objext | |
17803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 17804 | (eval $ac_compile) 2>&5 |
e87b7833 MB |
17805 | ac_status=$? |
17806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17807 | (exit $ac_status); } && | |
09d3439c | 17808 | { ac_try='test -s conftest.$ac_objext' |
e87b7833 MB |
17809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17810 | (eval $ac_try) 2>&5 | |
17811 | ac_status=$? | |
17812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17813 | (exit $ac_status); }; }; then | |
17814 | echo "$as_me:$LINENO: result: yes" >&5 | |
17815 | echo "${ECHO_T}yes" >&6 | |
17816 | cat >>confdefs.h <<\_ACEOF | |
17817 | #define HAVE_STD_WSTRING 1 | |
17818 | _ACEOF | |
17819 | ||
17820 | else | |
17821 | echo "$as_me: failed program was:" >&5 | |
17822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17823 | ||
17824 | echo "$as_me:$LINENO: result: no" >&5 | |
17825 | echo "${ECHO_T}no" >&6 | |
17826 | fi | |
09d3439c | 17827 | rm -f conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
17828 | |
17829 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
17830 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
17831 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 17832 | #line $LINENO "configure" |
e87b7833 MB |
17833 | /* confdefs.h. */ |
17834 | _ACEOF | |
17835 | cat confdefs.h >>conftest.$ac_ext | |
17836 | cat >>conftest.$ac_ext <<_ACEOF | |
17837 | /* end confdefs.h. */ | |
17838 | #include <string> | |
17839 | int | |
17840 | main () | |
17841 | { | |
17842 | std::string foo, bar; | |
17843 | foo.compare(bar); | |
17844 | foo.compare(1, 1, bar); | |
17845 | foo.compare(1, 1, bar, 1, 1); | |
17846 | foo.compare(""); | |
17847 | foo.compare(1, 1, ""); | |
17848 | foo.compare(1, 1, "", 2); | |
17849 | ; | |
17850 | return 0; | |
17851 | } | |
17852 | _ACEOF | |
17853 | rm -f conftest.$ac_objext | |
17854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 17855 | (eval $ac_compile) 2>&5 |
e87b7833 MB |
17856 | ac_status=$? |
17857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17858 | (exit $ac_status); } && | |
09d3439c | 17859 | { ac_try='test -s conftest.$ac_objext' |
e87b7833 MB |
17860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17861 | (eval $ac_try) 2>&5 | |
17862 | ac_status=$? | |
17863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17864 | (exit $ac_status); }; }; then | |
17865 | echo "$as_me:$LINENO: result: yes" >&5 | |
17866 | echo "${ECHO_T}yes" >&6 | |
17867 | cat >>confdefs.h <<\_ACEOF | |
17868 | #define HAVE_STD_STRING_COMPARE 1 | |
17869 | _ACEOF | |
17870 | ||
17871 | else | |
17872 | echo "$as_me: failed program was:" >&5 | |
17873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17874 | ||
17875 | echo "$as_me:$LINENO: result: no" >&5 | |
17876 | echo "${ECHO_T}no" >&6 | |
17877 | fi | |
09d3439c | 17878 | rm -f conftest.$ac_objext conftest.$ac_ext |
e87b7833 MB |
17879 | |
17880 | ac_ext=c | |
17881 | ac_cpp='$CPP $CPPFLAGS' | |
17882 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17883 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17884 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
17885 | ||
17886 | fi | |
17887 | ||
8284b0c5 | 17888 | |
21d1c967 GD |
17889 | SEARCH_INCLUDE="\ |
17890 | /usr/local/include \ | |
17891 | \ | |
17892 | /usr/Motif-1.2/include \ | |
17893 | /usr/Motif-2.1/include \ | |
17894 | \ | |
17895 | /usr/include/Motif1.2 \ | |
17896 | /opt/xpm/include/X11 \ | |
17897 | /opt/GBxpm/include/ \ | |
17898 | /opt/GBxpm/X11/include/ \ | |
17899 | \ | |
17900 | /usr/Motif1.2/include \ | |
17901 | /usr/dt/include \ | |
17902 | /usr/openwin/include \ | |
17903 | \ | |
17904 | /usr/include/Xm \ | |
17905 | \ | |
17906 | /usr/X11R6/include \ | |
17907 | /usr/X11R6.4/include \ | |
17908 | /usr/X11R5/include \ | |
17909 | /usr/X11R4/include \ | |
17910 | \ | |
17911 | /usr/include/X11R6 \ | |
17912 | /usr/include/X11R5 \ | |
17913 | /usr/include/X11R4 \ | |
17914 | \ | |
17915 | /usr/local/X11R6/include \ | |
17916 | /usr/local/X11R5/include \ | |
17917 | /usr/local/X11R4/include \ | |
17918 | \ | |
17919 | /usr/local/include/X11R6 \ | |
17920 | /usr/local/include/X11R5 \ | |
17921 | /usr/local/include/X11R4 \ | |
17922 | \ | |
17923 | /usr/X11/include \ | |
17924 | /usr/include/X11 \ | |
17925 | /usr/local/X11/include \ | |
17926 | /usr/local/include/X11 \ | |
17927 | \ | |
17928 | /usr/X386/include \ | |
17929 | /usr/x386/include \ | |
17930 | /usr/XFree86/include/X11 \ | |
17931 | \ | |
17932 | X:/XFree86/include \ | |
17933 | X:/XFree86/include/X11 \ | |
17934 | \ | |
17935 | /usr/include/gtk \ | |
17936 | /usr/local/include/gtk \ | |
17937 | /usr/include/glib \ | |
17938 | /usr/local/include/glib \ | |
17939 | \ | |
17940 | /usr/include/qt \ | |
17941 | /usr/local/include/qt \ | |
17942 | \ | |
17943 | /usr/include/windows \ | |
17944 | /usr/include/wine \ | |
17945 | /usr/local/include/wine \ | |
17946 | \ | |
17947 | /usr/unsupported/include \ | |
17948 | /usr/athena/include \ | |
17949 | /usr/local/x11r5/include \ | |
17950 | /usr/lpp/Xamples/include \ | |
17951 | \ | |
2b5f62a0 | 17952 | /usr/openwin/share/include" |
21d1c967 GD |
17953 | |
17954 | SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` " | |
17955 | ||
8284b0c5 | 17956 | |
e6cc62c6 | 17957 | cat >confcache <<\_ACEOF |
21d1c967 GD |
17958 | # This file is a shell script that caches the results of configure |
17959 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
17960 | # scripts and configure runs, see configure's option --config-cache. |
17961 | # It is not useful on other systems. If it contains results you don't | |
17962 | # want to keep, you may remove or edit it. | |
21d1c967 | 17963 | # |
e6cc62c6 VS |
17964 | # config.status only pays attention to the cache file if you give it |
17965 | # the --recheck option to rerun configure. | |
21d1c967 | 17966 | # |
e6cc62c6 VS |
17967 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
17968 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
17969 | # following values. | |
17970 | ||
17971 | _ACEOF | |
17972 | ||
21d1c967 GD |
17973 | # The following way of writing the cache mishandles newlines in values, |
17974 | # but we know of no workaround that is simple, portable, and efficient. | |
17975 | # So, don't put newlines in cache variables' values. | |
17976 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
17977 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
17978 | { |
17979 | (set) 2>&1 | | |
17980 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
17981 | *ac_space=\ *) | |
17982 | # `set' does not quote correctly, so add quotes (double-quote | |
17983 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
17984 | sed -n \ | |
09d3439c VZ |
17985 | "s/'/'\\\\''/g; |
17986 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
17987 | ;; |
17988 | *) | |
17989 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
17990 | sed -n \ | |
09d3439c | 17991 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
17992 | ;; |
17993 | esac; | |
17994 | } | | |
17995 | sed ' | |
17996 | t clear | |
17997 | : clear | |
17998 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
17999 | t end | |
18000 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18001 | : end' >>confcache | |
18002 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
21d1c967 | 18003 | if test -w $cache_file; then |
e6cc62c6 VS |
18004 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
18005 | cat confcache >$cache_file | |
21d1c967 GD |
18006 | else |
18007 | echo "not updating unwritable cache $cache_file" | |
18008 | fi | |
ab9b9eab | 18009 | fi |
21d1c967 | 18010 | rm -f confcache |
ab9b9eab | 18011 | |
fe0895cf | 18012 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then |
e6cc62c6 VS |
18013 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 |
18014 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
18015 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
18016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18017 | else | |
18018 | ||
18019 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 18020 | #line $LINENO "configure" |
e6cc62c6 VS |
18021 | /* confdefs.h. */ |
18022 | _ACEOF | |
18023 | cat confdefs.h >>conftest.$ac_ext | |
18024 | cat >>conftest.$ac_ext <<_ACEOF | |
18025 | /* end confdefs.h. */ | |
21d1c967 | 18026 | #include <features.h> |
e6cc62c6 VS |
18027 | int |
18028 | main () | |
18029 | { | |
ab9b9eab | 18030 | |
21d1c967 GD |
18031 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) |
18032 | #error not glibc2.1 | |
18033 | #endif | |
e6cc62c6 VS |
18034 | |
18035 | ; | |
18036 | return 0; | |
18037 | } | |
18038 | _ACEOF | |
18039 | rm -f conftest.$ac_objext | |
18040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 18041 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
18042 | ac_status=$? |
18043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18044 | (exit $ac_status); } && | |
09d3439c | 18045 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
18046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18047 | (eval $ac_try) 2>&5 | |
18048 | ac_status=$? | |
18049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18050 | (exit $ac_status); }; }; then | |
18051 | ||
21d1c967 | 18052 | wx_cv_lib_glibc21=yes |
e6cc62c6 | 18053 | |
698dcdb6 | 18054 | else |
e6cc62c6 VS |
18055 | echo "$as_me: failed program was:" >&5 |
18056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18057 | ||
18058 | ||
21d1c967 | 18059 | wx_cv_lib_glibc21=no |
e6cc62c6 VS |
18060 | |
18061 | ||
247f5006 | 18062 | fi |
09d3439c | 18063 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 18064 | |
e6cc62c6 VS |
18065 | fi |
18066 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
18067 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
21d1c967 | 18068 | if test "$wx_cv_lib_glibc21" = "yes"; then |
e6cc62c6 | 18069 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18070 | #define wxHAVE_GLIBC2 1 |
e6cc62c6 | 18071 | _ACEOF |
1e487827 | 18072 | |
90dd450c | 18073 | fi |
ab9b9eab VZ |
18074 | fi |
18075 | ||
5c0a20c3 VZ |
18076 | if test "x$wx_cv_lib_glibc21" = "xyes"; then |
18077 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 18078 | cat >>confdefs.h <<\_ACEOF |
5c0a20c3 | 18079 | #define _GNU_SOURCE 1 |
e6cc62c6 | 18080 | _ACEOF |
5c0a20c3 VZ |
18081 | |
18082 | fi | |
18083 | fi | |
18084 | ||
8284b0c5 MB |
18085 | |
18086 | ||
21d1c967 | 18087 | if test "$wxUSE_REGEX" != "no"; then |
e6cc62c6 | 18088 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18089 | #define wxUSE_REGEX 1 |
e6cc62c6 | 18090 | _ACEOF |
698dcdb6 | 18091 | |
8284b0c5 | 18092 | |
30f2fa6c VS |
18093 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then |
18094 | { echo "$as_me:$LINENO: WARNING: Unicode build requires built-in regex library, will use it instead" >&5 | |
18095 | echo "$as_me: WARNING: Unicode build requires built-in regex library, will use it instead" >&2;} | |
18096 | wxUSE_REGEX=builtin | |
18097 | fi | |
18098 | ||
21d1c967 | 18099 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then |
e6cc62c6 VS |
18100 | if test "${ac_cv_header_regex_h+set}" = set; then |
18101 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18102 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18103 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18105 | fi | |
18106 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
18107 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18108 | else | |
18109 | # Is the header compilable? | |
18110 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
18111 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
18112 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 18113 | #line $LINENO "configure" |
e6cc62c6 VS |
18114 | /* confdefs.h. */ |
18115 | _ACEOF | |
18116 | cat confdefs.h >>conftest.$ac_ext | |
18117 | cat >>conftest.$ac_ext <<_ACEOF | |
18118 | /* end confdefs.h. */ | |
18119 | $ac_includes_default | |
247f5006 | 18120 | #include <regex.h> |
e6cc62c6 VS |
18121 | _ACEOF |
18122 | rm -f conftest.$ac_objext | |
18123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 18124 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
18125 | ac_status=$? |
18126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18127 | (exit $ac_status); } && | |
09d3439c | 18128 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
18129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18130 | (eval $ac_try) 2>&5 | |
18131 | ac_status=$? | |
18132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18133 | (exit $ac_status); }; }; then | |
18134 | ac_header_compiler=yes | |
18135 | else | |
18136 | echo "$as_me: failed program was:" >&5 | |
18137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18138 | ||
18139 | ac_header_compiler=no | |
18140 | fi | |
09d3439c | 18141 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
18142 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18143 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18144 | ||
18145 | # Is the header present? | |
18146 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
18147 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
18148 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 18149 | #line $LINENO "configure" |
e6cc62c6 VS |
18150 | /* confdefs.h. */ |
18151 | _ACEOF | |
18152 | cat confdefs.h >>conftest.$ac_ext | |
18153 | cat >>conftest.$ac_ext <<_ACEOF | |
18154 | /* end confdefs.h. */ | |
18155 | #include <regex.h> | |
18156 | _ACEOF | |
18157 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18158 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18159 | ac_status=$? | |
18160 | grep -v '^ *+' conftest.er1 >conftest.err | |
18161 | rm -f conftest.er1 | |
18162 | cat conftest.err >&5 | |
18163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18164 | (exit $ac_status); } >/dev/null; then | |
18165 | if test -s conftest.err; then | |
18166 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18167 | else | |
18168 | ac_cpp_err= | |
18169 | fi | |
18170 | else | |
18171 | ac_cpp_err=yes | |
18172 | fi | |
18173 | if test -z "$ac_cpp_err"; then | |
18174 | ac_header_preproc=yes | |
18175 | else | |
18176 | echo "$as_me: failed program was:" >&5 | |
18177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18178 | ||
18179 | ac_header_preproc=no | |
18180 | fi | |
18181 | rm -f conftest.err conftest.$ac_ext | |
18182 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18183 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18184 | ||
18185 | # So? What about this header? | |
09d3439c VZ |
18186 | case $ac_header_compiler:$ac_header_preproc in |
18187 | yes:no ) | |
e6cc62c6 VS |
18188 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
18189 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
18190 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
18191 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
18192 | ( | |
18193 | cat <<\_ASBOX | |
18194 | ## ------------------------------------ ## | |
18195 | ## Report this to bug-autoconf@gnu.org. ## | |
18196 | ## ------------------------------------ ## | |
18197 | _ASBOX | |
18198 | ) | | |
18199 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 18200 | ;; |
09d3439c | 18201 | no:yes ) |
e6cc62c6 VS |
18202 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
18203 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
09d3439c VZ |
18204 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
18205 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
18206 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
18207 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
18208 | ( | |
18209 | cat <<\_ASBOX | |
09d3439c VZ |
18210 | ## ------------------------------------ ## |
18211 | ## Report this to bug-autoconf@gnu.org. ## | |
18212 | ## ------------------------------------ ## | |
e6cc62c6 VS |
18213 | _ASBOX |
18214 | ) | | |
18215 | sed "s/^/$as_me: WARNING: /" >&2 | |
18216 | ;; | |
18217 | esac | |
18218 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18219 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18220 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18222 | else | |
18223 | ac_cv_header_regex_h=$ac_header_preproc | |
21d1c967 | 18224 | fi |
e6cc62c6 VS |
18225 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 |
18226 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18227 | ||
698dcdb6 | 18228 | fi |
e6cc62c6 VS |
18229 | if test $ac_cv_header_regex_h = yes; then |
18230 | ||
18231 | for ac_func in regcomp | |
21d1c967 | 18232 | do |
e6cc62c6 VS |
18233 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
18234 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18235 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18236 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
18237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18238 | else | |
18239 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 18240 | #line $LINENO "configure" |
e6cc62c6 VS |
18241 | /* confdefs.h. */ |
18242 | _ACEOF | |
18243 | cat confdefs.h >>conftest.$ac_ext | |
18244 | cat >>conftest.$ac_ext <<_ACEOF | |
18245 | /* end confdefs.h. */ | |
a0b9e27f | 18246 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
18247 | which can conflict with char $ac_func (); below. |
18248 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18249 | <limits.h> exists even on freestanding compilers. */ | |
18250 | #ifdef __STDC__ | |
18251 | # include <limits.h> | |
18252 | #else | |
18253 | # include <assert.h> | |
18254 | #endif | |
21d1c967 | 18255 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18256 | #ifdef __cplusplus |
18257 | extern "C" | |
18258 | { | |
18259 | #endif | |
21d1c967 | 18260 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18261 | builtin and then its argument prototype would still apply. */ |
18262 | char $ac_func (); | |
21d1c967 GD |
18263 | /* The GNU C library defines this for functions which it implements |
18264 | to always fail with ENOSYS. Some functions are actually named | |
18265 | something starting with __ and the normal name is an alias. */ | |
18266 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18267 | choke me | |
18268 | #else | |
e6cc62c6 VS |
18269 | char (*f) () = $ac_func; |
18270 | #endif | |
18271 | #ifdef __cplusplus | |
18272 | } | |
21d1c967 | 18273 | #endif |
90dd450c | 18274 | |
e6cc62c6 VS |
18275 | int |
18276 | main () | |
18277 | { | |
18278 | return f != $ac_func; | |
18279 | ; | |
18280 | return 0; | |
18281 | } | |
18282 | _ACEOF | |
18283 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 18285 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
18286 | ac_status=$? |
18287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18288 | (exit $ac_status); } && | |
09d3439c | 18289 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
18290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18291 | (eval $ac_try) 2>&5 | |
18292 | ac_status=$? | |
18293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18294 | (exit $ac_status); }; }; then | |
18295 | eval "$as_ac_var=yes" | |
18296 | else | |
18297 | echo "$as_me: failed program was:" >&5 | |
18298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18299 | ||
18300 | eval "$as_ac_var=no" | |
18301 | fi | |
09d3439c | 18302 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
18303 | fi |
18304 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18305 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18306 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18307 | cat >>confdefs.h <<_ACEOF | |
18308 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18309 | _ACEOF | |
5c6fa7d2 | 18310 | |
698dcdb6 | 18311 | fi |
21d1c967 GD |
18312 | done |
18313 | ||
ab9b9eab VZ |
18314 | fi |
18315 | ||
8284b0c5 | 18316 | |
e6cc62c6 | 18317 | |
21d1c967 GD |
18318 | if test "x$ac_cv_func_regcomp" != "xyes"; then |
18319 | if test "$wxUSE_REGEX" = "sys" ; then | |
e6cc62c6 VS |
18320 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 |
18321 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
18322 | { (exit 1); exit 1; }; } | |
21d1c967 | 18323 | else |
e6cc62c6 VS |
18324 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 |
18325 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
18326 | wxUSE_REGEX=builtin |
18327 | fi | |
18328 | else | |
18329 | wxUSE_REGEX=sys | |
18330 | fi | |
ab9b9eab | 18331 | fi |
21d1c967 | 18332 | fi |
90dd450c | 18333 | |
8284b0c5 | 18334 | |
21d1c967 GD |
18335 | ZLIB_LINK= |
18336 | if test "$wxUSE_ZLIB" != "no" ; then | |
e6cc62c6 | 18337 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18338 | #define wxUSE_ZLIB 1 |
e6cc62c6 | 18339 | _ACEOF |
21d1c967 | 18340 | |
8284b0c5 | 18341 | |
21d1c967 | 18342 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then |
d775acfa VZ |
18343 | if test "$USE_DARWIN" = 1; then |
18344 | system_zlib_h_ok="yes" | |
18345 | else | |
e6cc62c6 VS |
18346 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 |
18347 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
18348 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d643b80e VZ |
18350 | else |
18351 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18352 | unset ac_cv_header_zlib_h |
e6cc62c6 | 18353 | |
d643b80e | 18354 | else |
e6cc62c6 | 18355 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 18356 | #line $LINENO "configure" |
e6cc62c6 VS |
18357 | /* confdefs.h. */ |
18358 | _ACEOF | |
18359 | cat confdefs.h >>conftest.$ac_ext | |
18360 | cat >>conftest.$ac_ext <<_ACEOF | |
18361 | /* end confdefs.h. */ | |
18362 | ||
ef33c576 | 18363 | #include <zlib.h> |
d775acfa | 18364 | #include <stdio.h> |
d643b80e | 18365 | |
d775acfa VZ |
18366 | int main() |
18367 | { | |
18368 | FILE *f=fopen("conftestval", "w"); | |
18369 | if (!f) exit(1); | |
18370 | fprintf(f, "%s", | |
18371 | ZLIB_VERSION[0] == '1' && | |
18372 | (ZLIB_VERSION[2] > '1' || | |
18373 | (ZLIB_VERSION[2] == '1' && | |
18374 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
18375 | exit(0); | |
18376 | } | |
e6cc62c6 VS |
18377 | |
18378 | _ACEOF | |
18379 | rm -f conftest$ac_exeext | |
18380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18381 | (eval $ac_link) 2>&5 | |
18382 | ac_status=$? | |
18383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18384 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18386 | (eval $ac_try) 2>&5 | |
18387 | ac_status=$? | |
18388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18389 | (exit $ac_status); }; }; then | |
d643b80e VZ |
18390 | ac_cv_header_zlib_h=`cat conftestval` |
18391 | else | |
e6cc62c6 VS |
18392 | echo "$as_me: program exited with status $ac_status" >&5 |
18393 | echo "$as_me: failed program was:" >&5 | |
18394 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18395 | ||
18396 | ( exit $ac_status ) | |
18397 | ac_cv_header_zlib_h=no | |
d643b80e | 18398 | fi |
09d3439c | 18399 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d643b80e VZ |
18400 | fi |
18401 | ||
d643b80e | 18402 | fi |
e6cc62c6 VS |
18403 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 |
18404 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18405 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18406 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18407 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18408 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18410 | fi | |
18411 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18412 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
89e6bf6d | 18413 | else |
e6cc62c6 VS |
18414 | # Is the header compilable? |
18415 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
18416 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
18417 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 18418 | #line $LINENO "configure" |
e6cc62c6 VS |
18419 | /* confdefs.h. */ |
18420 | _ACEOF | |
18421 | cat confdefs.h >>conftest.$ac_ext | |
18422 | cat >>conftest.$ac_ext <<_ACEOF | |
18423 | /* end confdefs.h. */ | |
18424 | $ac_includes_default | |
89e6bf6d | 18425 | #include <zlib.h> |
e6cc62c6 VS |
18426 | _ACEOF |
18427 | rm -f conftest.$ac_objext | |
18428 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 18429 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
18430 | ac_status=$? |
18431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18432 | (exit $ac_status); } && | |
09d3439c | 18433 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
18434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18435 | (eval $ac_try) 2>&5 | |
18436 | ac_status=$? | |
18437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18438 | (exit $ac_status); }; }; then | |
18439 | ac_header_compiler=yes | |
18440 | else | |
18441 | echo "$as_me: failed program was:" >&5 | |
18442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18443 | ||
18444 | ac_header_compiler=no | |
18445 | fi | |
09d3439c | 18446 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
18447 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18448 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18449 | ||
18450 | # Is the header present? | |
18451 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
18452 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
18453 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 18454 | #line $LINENO "configure" |
e6cc62c6 VS |
18455 | /* confdefs.h. */ |
18456 | _ACEOF | |
18457 | cat confdefs.h >>conftest.$ac_ext | |
18458 | cat >>conftest.$ac_ext <<_ACEOF | |
18459 | /* end confdefs.h. */ | |
18460 | #include <zlib.h> | |
18461 | _ACEOF | |
18462 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18463 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18464 | ac_status=$? | |
18465 | grep -v '^ *+' conftest.er1 >conftest.err | |
18466 | rm -f conftest.er1 | |
18467 | cat conftest.err >&5 | |
18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18469 | (exit $ac_status); } >/dev/null; then | |
18470 | if test -s conftest.err; then | |
18471 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18472 | else | |
18473 | ac_cpp_err= | |
18474 | fi | |
18475 | else | |
18476 | ac_cpp_err=yes | |
18477 | fi | |
18478 | if test -z "$ac_cpp_err"; then | |
18479 | ac_header_preproc=yes | |
18480 | else | |
18481 | echo "$as_me: failed program was:" >&5 | |
18482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18483 | ||
18484 | ac_header_preproc=no | |
18485 | fi | |
18486 | rm -f conftest.err conftest.$ac_ext | |
18487 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18488 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18489 | ||
18490 | # So? What about this header? | |
09d3439c VZ |
18491 | case $ac_header_compiler:$ac_header_preproc in |
18492 | yes:no ) | |
e6cc62c6 VS |
18493 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
18494 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
18495 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
18496 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18497 | ( | |
18498 | cat <<\_ASBOX | |
18499 | ## ------------------------------------ ## | |
18500 | ## Report this to bug-autoconf@gnu.org. ## | |
18501 | ## ------------------------------------ ## | |
18502 | _ASBOX | |
18503 | ) | | |
18504 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 18505 | ;; |
09d3439c | 18506 | no:yes ) |
e6cc62c6 VS |
18507 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
18508 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
09d3439c VZ |
18509 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
18510 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
18511 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
18512 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
18513 | ( | |
18514 | cat <<\_ASBOX | |
09d3439c VZ |
18515 | ## ------------------------------------ ## |
18516 | ## Report this to bug-autoconf@gnu.org. ## | |
18517 | ## ------------------------------------ ## | |
e6cc62c6 VS |
18518 | _ASBOX |
18519 | ) | | |
18520 | sed "s/^/$as_me: WARNING: /" >&2 | |
18521 | ;; | |
18522 | esac | |
18523 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
18524 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
18525 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18527 | else |
e6cc62c6 VS |
18528 | ac_cv_header_zlib_h=$ac_header_preproc |
18529 | fi | |
18530 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
18531 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
18532 | ||
89e6bf6d VZ |
18533 | fi |
18534 | ||
d643b80e | 18535 | |
e6cc62c6 | 18536 | |
d775acfa VZ |
18537 | system_zlib_h_ok=$ac_cv_header_zlib_h |
18538 | fi | |
18539 | ||
18540 | if test "$system_zlib_h_ok" = "yes"; then | |
e6cc62c6 VS |
18541 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 |
18542 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
18543 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
18544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18545 | else |
e6cc62c6 | 18546 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18547 | LIBS="-lz $LIBS" |
e6cc62c6 | 18548 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 18549 | #line $LINENO "configure" |
e6cc62c6 VS |
18550 | /* confdefs.h. */ |
18551 | _ACEOF | |
18552 | cat confdefs.h >>conftest.$ac_ext | |
18553 | cat >>conftest.$ac_ext <<_ACEOF | |
18554 | /* end confdefs.h. */ | |
18555 | ||
21d1c967 | 18556 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18557 | #ifdef __cplusplus |
18558 | extern "C" | |
18559 | #endif | |
21d1c967 | 18560 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18561 | builtin and then its argument prototype would still apply. */ |
18562 | char deflate (); | |
18563 | int | |
18564 | main () | |
18565 | { | |
18566 | deflate (); | |
18567 | ; | |
18568 | return 0; | |
18569 | } | |
18570 | _ACEOF | |
18571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 18573 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
18574 | ac_status=$? |
18575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18576 | (exit $ac_status); } && | |
09d3439c | 18577 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
18578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18579 | (eval $ac_try) 2>&5 | |
18580 | ac_status=$? | |
18581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18582 | (exit $ac_status); }; }; then | |
18583 | ac_cv_lib_z_deflate=yes | |
18584 | else | |
18585 | echo "$as_me: failed program was:" >&5 | |
18586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18587 | ||
18588 | ac_cv_lib_z_deflate=no | |
18589 | fi | |
09d3439c | 18590 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
18591 | LIBS=$ac_check_lib_save_LIBS |
18592 | fi | |
18593 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
18594 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
18595 | if test $ac_cv_lib_z_deflate = yes; then | |
a0b9e27f | 18596 | ZLIB_LINK=" -lz" |
a0b9e27f | 18597 | fi |
698dcdb6 | 18598 | |
d643b80e | 18599 | fi |
247f5006 | 18600 | |
21d1c967 GD |
18601 | if test "x$ZLIB_LINK" = "x" ; then |
18602 | if test "$wxUSE_ZLIB" = "sys" ; then | |
e6cc62c6 VS |
18603 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 |
18604 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
18605 | { (exit 1); exit 1; }; } | |
21d1c967 | 18606 | else |
e6cc62c6 VS |
18607 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 |
18608 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18609 | wxUSE_ZLIB=builtin |
18610 | fi | |
18611 | else | |
18612 | wxUSE_ZLIB=sys | |
18613 | fi | |
18614 | fi | |
ab9b9eab VZ |
18615 | fi |
18616 | ||
8284b0c5 | 18617 | |
21d1c967 GD |
18618 | PNG_LINK= |
18619 | if test "$wxUSE_LIBPNG" != "no" ; then | |
e6cc62c6 | 18620 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18621 | #define wxUSE_LIBPNG 1 |
e6cc62c6 | 18622 | _ACEOF |
90dd450c | 18623 | |
8284b0c5 | 18624 | |
21d1c967 | 18625 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then |
e6cc62c6 VS |
18626 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 |
18627 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18628 | wxUSE_LIBPNG=sys |
18629 | fi | |
90dd450c | 18630 | |
21d1c967 | 18631 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then |
e6cc62c6 VS |
18632 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 |
18633 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
21d1c967 GD |
18634 | wxUSE_LIBPNG=builtin |
18635 | fi | |
18636 | ||
18637 | if test "$wxUSE_MGL" != 1 ; then | |
18638 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
e6cc62c6 VS |
18639 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 |
18640 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
18641 | if test "${ac_cv_header_png_h+set}" = set; then | |
18642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5d3f766d VZ |
18643 | else |
18644 | if test "$cross_compiling" = yes; then | |
89e6bf6d | 18645 | unset ac_cv_header_png_h |
e6cc62c6 | 18646 | |
5d3f766d | 18647 | else |
e6cc62c6 | 18648 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 18649 | #line $LINENO "configure" |
e6cc62c6 VS |
18650 | /* confdefs.h. */ |
18651 | _ACEOF | |
18652 | cat confdefs.h >>conftest.$ac_ext | |
18653 | cat >>conftest.$ac_ext <<_ACEOF | |
18654 | /* end confdefs.h. */ | |
18655 | ||
ef33c576 | 18656 | #include <png.h> |
5d3f766d VZ |
18657 | #include <stdio.h> |
18658 | ||
18659 | int main() | |
18660 | { | |
18661 | FILE *f=fopen("conftestval", "w"); | |
18662 | if (!f) exit(1); | |
18663 | fprintf(f, "%s", | |
18664 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
18665 | exit(0); | |
18666 | } | |
e6cc62c6 VS |
18667 | |
18668 | _ACEOF | |
18669 | rm -f conftest$ac_exeext | |
18670 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18671 | (eval $ac_link) 2>&5 | |
18672 | ac_status=$? | |
18673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18674 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
18675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18676 | (eval $ac_try) 2>&5 | |
18677 | ac_status=$? | |
18678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18679 | (exit $ac_status); }; }; then | |
5d3f766d VZ |
18680 | ac_cv_header_png_h=`cat conftestval` |
18681 | else | |
e6cc62c6 VS |
18682 | echo "$as_me: program exited with status $ac_status" >&5 |
18683 | echo "$as_me: failed program was:" >&5 | |
18684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18685 | ||
18686 | ( exit $ac_status ) | |
18687 | ac_cv_header_png_h=no | |
5d3f766d | 18688 | fi |
09d3439c | 18689 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5d3f766d VZ |
18690 | fi |
18691 | ||
5d3f766d | 18692 | fi |
e6cc62c6 VS |
18693 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 |
18694 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18695 | if test "${ac_cv_header_png_h+set}" = set; then | |
18696 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18697 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18698 | if test "${ac_cv_header_png_h+set}" = set; then | |
18699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18700 | fi | |
18701 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18702 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
89e6bf6d | 18703 | else |
e6cc62c6 VS |
18704 | # Is the header compilable? |
18705 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
18706 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
18707 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 18708 | #line $LINENO "configure" |
e6cc62c6 VS |
18709 | /* confdefs.h. */ |
18710 | _ACEOF | |
18711 | cat confdefs.h >>conftest.$ac_ext | |
18712 | cat >>conftest.$ac_ext <<_ACEOF | |
18713 | /* end confdefs.h. */ | |
18714 | $ac_includes_default | |
89e6bf6d | 18715 | #include <png.h> |
e6cc62c6 VS |
18716 | _ACEOF |
18717 | rm -f conftest.$ac_objext | |
18718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 18719 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
18720 | ac_status=$? |
18721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18722 | (exit $ac_status); } && | |
09d3439c | 18723 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
18724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18725 | (eval $ac_try) 2>&5 | |
18726 | ac_status=$? | |
18727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18728 | (exit $ac_status); }; }; then | |
18729 | ac_header_compiler=yes | |
18730 | else | |
18731 | echo "$as_me: failed program was:" >&5 | |
18732 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18733 | ||
18734 | ac_header_compiler=no | |
18735 | fi | |
09d3439c | 18736 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
18737 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18738 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18739 | ||
18740 | # Is the header present? | |
18741 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
18742 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
18743 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 18744 | #line $LINENO "configure" |
e6cc62c6 VS |
18745 | /* confdefs.h. */ |
18746 | _ACEOF | |
18747 | cat confdefs.h >>conftest.$ac_ext | |
18748 | cat >>conftest.$ac_ext <<_ACEOF | |
18749 | /* end confdefs.h. */ | |
18750 | #include <png.h> | |
18751 | _ACEOF | |
18752 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18753 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18754 | ac_status=$? | |
18755 | grep -v '^ *+' conftest.er1 >conftest.err | |
18756 | rm -f conftest.er1 | |
18757 | cat conftest.err >&5 | |
18758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18759 | (exit $ac_status); } >/dev/null; then | |
18760 | if test -s conftest.err; then | |
18761 | ac_cpp_err=$ac_c_preproc_warn_flag | |
18762 | else | |
18763 | ac_cpp_err= | |
18764 | fi | |
18765 | else | |
18766 | ac_cpp_err=yes | |
18767 | fi | |
18768 | if test -z "$ac_cpp_err"; then | |
18769 | ac_header_preproc=yes | |
18770 | else | |
18771 | echo "$as_me: failed program was:" >&5 | |
18772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18773 | ||
18774 | ac_header_preproc=no | |
18775 | fi | |
18776 | rm -f conftest.err conftest.$ac_ext | |
18777 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18778 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18779 | ||
18780 | # So? What about this header? | |
09d3439c VZ |
18781 | case $ac_header_compiler:$ac_header_preproc in |
18782 | yes:no ) | |
e6cc62c6 VS |
18783 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
18784 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
18785 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
18786 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18787 | ( | |
18788 | cat <<\_ASBOX | |
18789 | ## ------------------------------------ ## | |
18790 | ## Report this to bug-autoconf@gnu.org. ## | |
18791 | ## ------------------------------------ ## | |
18792 | _ASBOX | |
18793 | ) | | |
18794 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 18795 | ;; |
09d3439c | 18796 | no:yes ) |
e6cc62c6 VS |
18797 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
18798 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
09d3439c VZ |
18799 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
18800 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
18801 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
18802 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
18803 | ( | |
18804 | cat <<\_ASBOX | |
09d3439c VZ |
18805 | ## ------------------------------------ ## |
18806 | ## Report this to bug-autoconf@gnu.org. ## | |
18807 | ## ------------------------------------ ## | |
e6cc62c6 VS |
18808 | _ASBOX |
18809 | ) | | |
18810 | sed "s/^/$as_me: WARNING: /" >&2 | |
18811 | ;; | |
18812 | esac | |
18813 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
18814 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
18815 | if test "${ac_cv_header_png_h+set}" = set; then | |
18816 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
89e6bf6d | 18817 | else |
e6cc62c6 VS |
18818 | ac_cv_header_png_h=$ac_header_preproc |
18819 | fi | |
18820 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
18821 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
18822 | ||
89e6bf6d VZ |
18823 | fi |
18824 | ||
5d3f766d | 18825 | |
e6cc62c6 | 18826 | |
5d3f766d | 18827 | if test "$ac_cv_header_png_h" = "yes"; then |
e6cc62c6 VS |
18828 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 |
18829 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
18830 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
18831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18832 | else |
e6cc62c6 | 18833 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18834 | LIBS="-lpng -lz -lm $LIBS" |
e6cc62c6 | 18835 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 18836 | #line $LINENO "configure" |
e6cc62c6 VS |
18837 | /* confdefs.h. */ |
18838 | _ACEOF | |
18839 | cat confdefs.h >>conftest.$ac_ext | |
18840 | cat >>conftest.$ac_ext <<_ACEOF | |
18841 | /* end confdefs.h. */ | |
18842 | ||
21d1c967 | 18843 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18844 | #ifdef __cplusplus |
18845 | extern "C" | |
18846 | #endif | |
21d1c967 | 18847 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18848 | builtin and then its argument prototype would still apply. */ |
18849 | char png_check_sig (); | |
18850 | int | |
18851 | main () | |
18852 | { | |
18853 | png_check_sig (); | |
18854 | ; | |
18855 | return 0; | |
18856 | } | |
18857 | _ACEOF | |
18858 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18859 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 18860 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
18861 | ac_status=$? |
18862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18863 | (exit $ac_status); } && | |
09d3439c | 18864 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
18865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18866 | (eval $ac_try) 2>&5 | |
18867 | ac_status=$? | |
18868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18869 | (exit $ac_status); }; }; then | |
18870 | ac_cv_lib_png_png_check_sig=yes | |
18871 | else | |
18872 | echo "$as_me: failed program was:" >&5 | |
18873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18874 | ||
18875 | ac_cv_lib_png_png_check_sig=no | |
18876 | fi | |
09d3439c | 18877 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
18878 | LIBS=$ac_check_lib_save_LIBS |
18879 | fi | |
18880 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
18881 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
18882 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
a0b9e27f | 18883 | PNG_LINK=" -lpng" |
a0b9e27f | 18884 | fi |
90dd450c | 18885 | |
5d3f766d | 18886 | fi |
247f5006 | 18887 | |
21d1c967 GD |
18888 | if test "x$PNG_LINK" = "x" ; then |
18889 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
e6cc62c6 VS |
18890 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 |
18891 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
18892 | { (exit 1); exit 1; }; } | |
21d1c967 | 18893 | else |
e6cc62c6 VS |
18894 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 |
18895 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
21d1c967 GD |
18896 | wxUSE_LIBPNG=builtin |
18897 | fi | |
18898 | else | |
2b5f62a0 | 18899 | wxUSE_LIBPNG=sys |
21d1c967 GD |
18900 | fi |
18901 | fi | |
18902 | fi | |
90dd450c | 18903 | |
21d1c967 | 18904 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" |
90dd450c VZ |
18905 | fi |
18906 | ||
8284b0c5 | 18907 | |
21d1c967 GD |
18908 | JPEG_LINK= |
18909 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
e6cc62c6 | 18910 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 18911 | #define wxUSE_LIBJPEG 1 |
e6cc62c6 | 18912 | _ACEOF |
90dd450c | 18913 | |
8284b0c5 | 18914 | |
21d1c967 | 18915 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then |
e6cc62c6 VS |
18916 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 |
18917 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
21d1c967 GD |
18918 | wxUSE_LIBJPEG=sys |
18919 | fi | |
90dd450c | 18920 | |
21d1c967 GD |
18921 | if test "$wxUSE_MGL" != 1 ; then |
18922 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
e6cc62c6 VS |
18923 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 |
18924 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
18925 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
18926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18927 | else | |
18928 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 18929 | #line $LINENO "configure" |
e6cc62c6 VS |
18930 | /* confdefs.h. */ |
18931 | _ACEOF | |
18932 | cat confdefs.h >>conftest.$ac_ext | |
18933 | cat >>conftest.$ac_ext <<_ACEOF | |
18934 | /* end confdefs.h. */ | |
90dd450c | 18935 | |
21d1c967 GD |
18936 | #undef HAVE_STDLIB_H |
18937 | #include <stdio.h> | |
18938 | #include <jpeglib.h> | |
90dd450c | 18939 | |
e6cc62c6 VS |
18940 | int |
18941 | main () | |
18942 | { | |
18943 | ||
18944 | ||
18945 | ; | |
18946 | return 0; | |
18947 | } | |
18948 | _ACEOF | |
18949 | rm -f conftest.$ac_objext | |
18950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 18951 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
18952 | ac_status=$? |
18953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18954 | (exit $ac_status); } && | |
09d3439c | 18955 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
18956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18957 | (eval $ac_try) 2>&5 | |
18958 | ac_status=$? | |
18959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18960 | (exit $ac_status); }; }; then | |
21d1c967 | 18961 | ac_cv_header_jpeglib_h=yes |
90dd450c | 18962 | else |
e6cc62c6 VS |
18963 | echo "$as_me: failed program was:" >&5 |
18964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18965 | ||
18966 | ac_cv_header_jpeglib_h=no | |
18967 | ||
90dd450c | 18968 | fi |
09d3439c | 18969 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 18970 | |
90dd450c VZ |
18971 | fi |
18972 | ||
e6cc62c6 VS |
18973 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 |
18974 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
90dd450c | 18975 | |
21d1c967 | 18976 | if test "$ac_cv_header_jpeglib_h" = "yes"; then |
e6cc62c6 VS |
18977 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 |
18978 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
18979 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
18980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 18981 | else |
e6cc62c6 | 18982 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 18983 | LIBS="-ljpeg $LIBS" |
e6cc62c6 | 18984 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 18985 | #line $LINENO "configure" |
e6cc62c6 VS |
18986 | /* confdefs.h. */ |
18987 | _ACEOF | |
18988 | cat confdefs.h >>conftest.$ac_ext | |
18989 | cat >>conftest.$ac_ext <<_ACEOF | |
18990 | /* end confdefs.h. */ | |
18991 | ||
21d1c967 | 18992 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
18993 | #ifdef __cplusplus |
18994 | extern "C" | |
18995 | #endif | |
21d1c967 | 18996 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
18997 | builtin and then its argument prototype would still apply. */ |
18998 | char jpeg_read_header (); | |
18999 | int | |
19000 | main () | |
19001 | { | |
19002 | jpeg_read_header (); | |
19003 | ; | |
19004 | return 0; | |
19005 | } | |
19006 | _ACEOF | |
19007 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19008 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 19009 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
19010 | ac_status=$? |
19011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19012 | (exit $ac_status); } && | |
09d3439c | 19013 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
19014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19015 | (eval $ac_try) 2>&5 | |
19016 | ac_status=$? | |
19017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19018 | (exit $ac_status); }; }; then | |
19019 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
19020 | else | |
19021 | echo "$as_me: failed program was:" >&5 | |
19022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19023 | ||
19024 | ac_cv_lib_jpeg_jpeg_read_header=no | |
19025 | fi | |
09d3439c | 19026 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
19027 | LIBS=$ac_check_lib_save_LIBS |
19028 | fi | |
19029 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
19030 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
19031 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
21d1c967 | 19032 | JPEG_LINK=" -ljpeg" |
90dd450c VZ |
19033 | fi |
19034 | ||
21d1c967 | 19035 | fi |
90dd450c | 19036 | |
21d1c967 GD |
19037 | if test "x$JPEG_LINK" = "x" ; then |
19038 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
e6cc62c6 VS |
19039 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 |
19040 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
19041 | { (exit 1); exit 1; }; } | |
21d1c967 | 19042 | else |
e6cc62c6 VS |
19043 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 |
19044 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
21d1c967 GD |
19045 | wxUSE_LIBJPEG=builtin |
19046 | fi | |
19047 | else | |
19048 | wxUSE_LIBJPEG=sys | |
19049 | fi | |
19050 | fi | |
19051 | fi | |
21d1c967 | 19052 | fi |
90dd450c | 19053 | |
8284b0c5 | 19054 | |
21d1c967 | 19055 | TIFF_LINK= |
2b5f62a0 | 19056 | TIFF_PREREQ_LINKS=-lm |
21d1c967 | 19057 | if test "$wxUSE_LIBTIFF" != "no" ; then |
e6cc62c6 | 19058 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 19059 | #define wxUSE_LIBTIFF 1 |
e6cc62c6 | 19060 | _ACEOF |
21d1c967 | 19061 | |
8284b0c5 | 19062 | |
21d1c967 | 19063 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then |
2b5f62a0 VZ |
19064 | if test "$wxUSE_LIBJPEG" = "sys"; then |
19065 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
19066 | fi | |
19067 | if test "$wxUSE_ZLIB" = "sys"; then | |
19068 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
19069 | fi | |
e6cc62c6 VS |
19070 | if test "${ac_cv_header_tiffio_h+set}" = set; then |
19071 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19072 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19073 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19075 | fi | |
19076 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
19077 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19078 | else | |
19079 | # Is the header compilable? | |
19080 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
19081 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
19082 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19083 | #line $LINENO "configure" |
e6cc62c6 VS |
19084 | /* confdefs.h. */ |
19085 | _ACEOF | |
19086 | cat confdefs.h >>conftest.$ac_ext | |
19087 | cat >>conftest.$ac_ext <<_ACEOF | |
19088 | /* end confdefs.h. */ | |
19089 | $ac_includes_default | |
247f5006 | 19090 | #include <tiffio.h> |
e6cc62c6 VS |
19091 | _ACEOF |
19092 | rm -f conftest.$ac_objext | |
19093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 19094 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
19095 | ac_status=$? |
19096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19097 | (exit $ac_status); } && | |
09d3439c | 19098 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
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_header_compiler=yes | |
19105 | else | |
19106 | echo "$as_me: failed program was:" >&5 | |
19107 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19108 | ||
19109 | ac_header_compiler=no | |
19110 | fi | |
09d3439c | 19111 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19112 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19113 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19114 | ||
19115 | # Is the header present? | |
19116 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
19117 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
19118 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19119 | #line $LINENO "configure" |
e6cc62c6 VS |
19120 | /* confdefs.h. */ |
19121 | _ACEOF | |
19122 | cat confdefs.h >>conftest.$ac_ext | |
19123 | cat >>conftest.$ac_ext <<_ACEOF | |
19124 | /* end confdefs.h. */ | |
19125 | #include <tiffio.h> | |
19126 | _ACEOF | |
19127 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19128 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19129 | ac_status=$? | |
19130 | grep -v '^ *+' conftest.er1 >conftest.err | |
19131 | rm -f conftest.er1 | |
19132 | cat conftest.err >&5 | |
19133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19134 | (exit $ac_status); } >/dev/null; then | |
19135 | if test -s conftest.err; then | |
19136 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19137 | else | |
19138 | ac_cpp_err= | |
19139 | fi | |
19140 | else | |
19141 | ac_cpp_err=yes | |
19142 | fi | |
19143 | if test -z "$ac_cpp_err"; then | |
19144 | ac_header_preproc=yes | |
19145 | else | |
19146 | echo "$as_me: failed program was:" >&5 | |
19147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19148 | ||
19149 | ac_header_preproc=no | |
19150 | fi | |
19151 | rm -f conftest.err conftest.$ac_ext | |
19152 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19153 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19154 | ||
19155 | # So? What about this header? | |
09d3439c VZ |
19156 | case $ac_header_compiler:$ac_header_preproc in |
19157 | yes:no ) | |
e6cc62c6 VS |
19158 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19159 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
19160 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19161 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
19162 | ( | |
19163 | cat <<\_ASBOX | |
19164 | ## ------------------------------------ ## | |
19165 | ## Report this to bug-autoconf@gnu.org. ## | |
19166 | ## ------------------------------------ ## | |
19167 | _ASBOX | |
19168 | ) | | |
19169 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 19170 | ;; |
09d3439c | 19171 | no:yes ) |
e6cc62c6 VS |
19172 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
19173 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
09d3439c VZ |
19174 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
19175 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
19176 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19177 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
19178 | ( | |
19179 | cat <<\_ASBOX | |
09d3439c VZ |
19180 | ## ------------------------------------ ## |
19181 | ## Report this to bug-autoconf@gnu.org. ## | |
19182 | ## ------------------------------------ ## | |
e6cc62c6 VS |
19183 | _ASBOX |
19184 | ) | | |
19185 | sed "s/^/$as_me: WARNING: /" >&2 | |
19186 | ;; | |
19187 | esac | |
19188 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19189 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19190 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19192 | else | |
19193 | ac_cv_header_tiffio_h=$ac_header_preproc | |
21d1c967 | 19194 | fi |
e6cc62c6 VS |
19195 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 |
19196 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19197 | ||
21d1c967 | 19198 | fi |
e6cc62c6 | 19199 | if test $ac_cv_header_tiffio_h = yes; then |
0e012a93 VZ |
19200 | |
19201 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
e6cc62c6 VS |
19202 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 |
19203 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
19204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 19205 | else |
e6cc62c6 | 19206 | ac_check_lib_save_LIBS=$LIBS |
2b5f62a0 | 19207 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" |
e6cc62c6 | 19208 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 19209 | #line $LINENO "configure" |
e6cc62c6 VS |
19210 | /* confdefs.h. */ |
19211 | _ACEOF | |
19212 | cat confdefs.h >>conftest.$ac_ext | |
19213 | cat >>conftest.$ac_ext <<_ACEOF | |
19214 | /* end confdefs.h. */ | |
19215 | ||
ab9b9eab | 19216 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
19217 | #ifdef __cplusplus |
19218 | extern "C" | |
19219 | #endif | |
ab9b9eab | 19220 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
19221 | builtin and then its argument prototype would still apply. */ |
19222 | char TIFFError (); | |
19223 | int | |
19224 | main () | |
19225 | { | |
19226 | TIFFError (); | |
19227 | ; | |
19228 | return 0; | |
19229 | } | |
19230 | _ACEOF | |
19231 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19232 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 19233 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
19234 | ac_status=$? |
19235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19236 | (exit $ac_status); } && | |
09d3439c | 19237 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
19238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19239 | (eval $ac_try) 2>&5 | |
19240 | ac_status=$? | |
19241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19242 | (exit $ac_status); }; }; then | |
19243 | ac_cv_lib_tiff_TIFFError=yes | |
19244 | else | |
19245 | echo "$as_me: failed program was:" >&5 | |
19246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19247 | ||
19248 | ac_cv_lib_tiff_TIFFError=no | |
19249 | fi | |
09d3439c | 19250 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
19251 | LIBS=$ac_check_lib_save_LIBS |
19252 | fi | |
19253 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
19254 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
19255 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
a0b9e27f | 19256 | TIFF_LINK=" -ltiff" |
a0b9e27f | 19257 | fi |
cd6d6d5b | 19258 | |
e6cc62c6 | 19259 | |
0e012a93 | 19260 | |
a0b9e27f | 19261 | fi |
8284b0c5 | 19262 | |
247f5006 | 19263 | |
e6cc62c6 | 19264 | |
21d1c967 GD |
19265 | if test "x$TIFF_LINK" = "x" ; then |
19266 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
e6cc62c6 VS |
19267 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 |
19268 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
19269 | { (exit 1); exit 1; }; } | |
90dd450c | 19270 | else |
e6cc62c6 VS |
19271 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 |
19272 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
21d1c967 | 19273 | wxUSE_LIBTIFF=builtin |
d8356fa3 | 19274 | fi |
d8356fa3 | 19275 | else |
21d1c967 | 19276 | wxUSE_LIBTIFF=sys |
d8356fa3 | 19277 | fi |
21d1c967 | 19278 | fi |
21d1c967 | 19279 | fi |
10f2d63a | 19280 | |
8284b0c5 | 19281 | |
672abd7a | 19282 | if test "$wxUSE_EXPAT" != "no"; then |
e06468e8 | 19283 | wxUSE_XML=yes |
672abd7a VS |
19284 | cat >>confdefs.h <<\_ACEOF |
19285 | #define wxUSE_EXPAT 1 | |
19286 | _ACEOF | |
19287 | ||
19288 | cat >>confdefs.h <<\_ACEOF | |
19289 | #define wxUSE_XML 1 | |
19290 | _ACEOF | |
19291 | ||
19292 | ||
19293 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
19294 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19295 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19296 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19297 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19299 | fi | |
19300 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19301 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19302 | else | |
19303 | # Is the header compilable? | |
19304 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
19305 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
19306 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19307 | #line $LINENO "configure" |
672abd7a VS |
19308 | /* confdefs.h. */ |
19309 | _ACEOF | |
19310 | cat confdefs.h >>conftest.$ac_ext | |
19311 | cat >>conftest.$ac_ext <<_ACEOF | |
19312 | /* end confdefs.h. */ | |
19313 | $ac_includes_default | |
19314 | #include <expat.h> | |
19315 | _ACEOF | |
19316 | rm -f conftest.$ac_objext | |
19317 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 19318 | (eval $ac_compile) 2>&5 |
672abd7a VS |
19319 | ac_status=$? |
19320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19321 | (exit $ac_status); } && | |
09d3439c | 19322 | { ac_try='test -s conftest.$ac_objext' |
672abd7a VS |
19323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19324 | (eval $ac_try) 2>&5 | |
19325 | ac_status=$? | |
19326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19327 | (exit $ac_status); }; }; then | |
19328 | ac_header_compiler=yes | |
19329 | else | |
19330 | echo "$as_me: failed program was:" >&5 | |
19331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19332 | ||
19333 | ac_header_compiler=no | |
19334 | fi | |
09d3439c | 19335 | rm -f conftest.$ac_objext conftest.$ac_ext |
672abd7a VS |
19336 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19337 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19338 | ||
19339 | # Is the header present? | |
19340 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
19341 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
19342 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19343 | #line $LINENO "configure" |
672abd7a VS |
19344 | /* confdefs.h. */ |
19345 | _ACEOF | |
19346 | cat confdefs.h >>conftest.$ac_ext | |
19347 | cat >>conftest.$ac_ext <<_ACEOF | |
19348 | /* end confdefs.h. */ | |
19349 | #include <expat.h> | |
19350 | _ACEOF | |
19351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19353 | ac_status=$? | |
19354 | grep -v '^ *+' conftest.er1 >conftest.err | |
19355 | rm -f conftest.er1 | |
19356 | cat conftest.err >&5 | |
19357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19358 | (exit $ac_status); } >/dev/null; then | |
19359 | if test -s conftest.err; then | |
19360 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19361 | else | |
19362 | ac_cpp_err= | |
19363 | fi | |
19364 | else | |
19365 | ac_cpp_err=yes | |
19366 | fi | |
19367 | if test -z "$ac_cpp_err"; then | |
19368 | ac_header_preproc=yes | |
19369 | else | |
19370 | echo "$as_me: failed program was:" >&5 | |
19371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19372 | ||
19373 | ac_header_preproc=no | |
19374 | fi | |
19375 | rm -f conftest.err conftest.$ac_ext | |
19376 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19377 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19378 | ||
19379 | # So? What about this header? | |
09d3439c VZ |
19380 | case $ac_header_compiler:$ac_header_preproc in |
19381 | yes:no ) | |
672abd7a VS |
19382 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19383 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
19384 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
19385 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19386 | ( | |
19387 | cat <<\_ASBOX | |
19388 | ## ------------------------------------ ## | |
19389 | ## Report this to bug-autoconf@gnu.org. ## | |
19390 | ## ------------------------------------ ## | |
19391 | _ASBOX | |
19392 | ) | | |
19393 | sed "s/^/$as_me: WARNING: /" >&2 | |
672abd7a | 19394 | ;; |
09d3439c | 19395 | no:yes ) |
672abd7a VS |
19396 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
19397 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
09d3439c VZ |
19398 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
19399 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
672abd7a VS |
19400 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
19401 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
19402 | ( | |
19403 | cat <<\_ASBOX | |
09d3439c VZ |
19404 | ## ------------------------------------ ## |
19405 | ## Report this to bug-autoconf@gnu.org. ## | |
19406 | ## ------------------------------------ ## | |
672abd7a VS |
19407 | _ASBOX |
19408 | ) | | |
19409 | sed "s/^/$as_me: WARNING: /" >&2 | |
19410 | ;; | |
19411 | esac | |
19412 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19413 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19414 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19416 | else | |
19417 | ac_cv_header_expat_h=$ac_header_preproc | |
19418 | fi | |
19419 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19420 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19421 | ||
19422 | fi | |
5f0b6dff VS |
19423 | if test $ac_cv_header_expat_h = yes; then |
19424 | found_expat_h=1 | |
19425 | fi | |
19426 | ||
19427 | ||
19428 | if test "x$found_expat_h" = "x1"; then | |
19429 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
19430 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
19431 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
19432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19433 | else | |
19434 | ||
19435 | ||
672abd7a | 19436 | |
5f0b6dff VS |
19437 | ac_ext=cc |
19438 | ac_cpp='$CXXCPP $CPPFLAGS' | |
19439 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19440 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19441 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
19442 | ||
19443 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19444 | #line $LINENO "configure" |
5f0b6dff VS |
19445 | /* confdefs.h. */ |
19446 | _ACEOF | |
19447 | cat confdefs.h >>conftest.$ac_ext | |
19448 | cat >>conftest.$ac_ext <<_ACEOF | |
19449 | /* end confdefs.h. */ | |
19450 | #include <expat.h> | |
19451 | int | |
19452 | main () | |
19453 | { | |
672abd7a | 19454 | |
5f0b6dff VS |
19455 | ; |
19456 | return 0; | |
19457 | } | |
19458 | _ACEOF | |
19459 | rm -f conftest.$ac_objext | |
19460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 19461 | (eval $ac_compile) 2>&5 |
5f0b6dff VS |
19462 | ac_status=$? |
19463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19464 | (exit $ac_status); } && | |
09d3439c | 19465 | { ac_try='test -s conftest.$ac_objext' |
5f0b6dff VS |
19466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19467 | (eval $ac_try) 2>&5 | |
19468 | ac_status=$? | |
19469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19470 | (exit $ac_status); }; }; then | |
19471 | wx_cv_expat_is_not_broken=yes | |
19472 | else | |
19473 | echo "$as_me: failed program was:" >&5 | |
19474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19475 | ||
19476 | wx_cv_expat_is_not_broken=no | |
19477 | ||
19478 | fi | |
09d3439c | 19479 | rm -f conftest.$ac_objext conftest.$ac_ext |
5f0b6dff VS |
19480 | ac_ext=c |
19481 | ac_cpp='$CPP $CPPFLAGS' | |
19482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
19483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
19484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
19485 | ||
19486 | ||
19487 | ||
19488 | fi | |
19489 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
19490 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
19491 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
19492 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
672abd7a VS |
19493 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 |
19494 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
19495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19496 | else | |
19497 | ac_check_lib_save_LIBS=$LIBS | |
19498 | LIBS="-lexpat $LIBS" | |
19499 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19500 | #line $LINENO "configure" |
672abd7a VS |
19501 | /* confdefs.h. */ |
19502 | _ACEOF | |
19503 | cat confdefs.h >>conftest.$ac_ext | |
19504 | cat >>conftest.$ac_ext <<_ACEOF | |
19505 | /* end confdefs.h. */ | |
19506 | ||
19507 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19508 | #ifdef __cplusplus | |
19509 | extern "C" | |
19510 | #endif | |
19511 | /* We use char because int might match the return type of a gcc2 | |
19512 | builtin and then its argument prototype would still apply. */ | |
19513 | char XML_ParserCreate (); | |
19514 | int | |
19515 | main () | |
19516 | { | |
19517 | XML_ParserCreate (); | |
19518 | ; | |
19519 | return 0; | |
19520 | } | |
19521 | _ACEOF | |
19522 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19523 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 19524 | (eval $ac_link) 2>&5 |
672abd7a VS |
19525 | ac_status=$? |
19526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19527 | (exit $ac_status); } && | |
09d3439c | 19528 | { ac_try='test -s conftest$ac_exeext' |
672abd7a VS |
19529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19530 | (eval $ac_try) 2>&5 | |
19531 | ac_status=$? | |
19532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19533 | (exit $ac_status); }; }; then | |
19534 | ac_cv_lib_expat_XML_ParserCreate=yes | |
19535 | else | |
19536 | echo "$as_me: failed program was:" >&5 | |
19537 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19538 | ||
19539 | ac_cv_lib_expat_XML_ParserCreate=no | |
19540 | fi | |
09d3439c | 19541 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
672abd7a VS |
19542 | LIBS=$ac_check_lib_save_LIBS |
19543 | fi | |
19544 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
19545 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
19546 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
19547 | EXPAT_LINK=" -lexpat" | |
19548 | fi | |
19549 | ||
5f0b6dff | 19550 | fi |
672abd7a VS |
19551 | fi |
19552 | if test "x$EXPAT_LINK" = "x" ; then | |
19553 | if test "$wxUSE_EXPAT" = "sys" ; then | |
19554 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
19555 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
19556 | { (exit 1); exit 1; }; } | |
19557 | else | |
19558 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
19559 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
19560 | wxUSE_EXPAT=builtin | |
19561 | fi | |
19562 | else | |
19563 | wxUSE_EXPAT=sys | |
19564 | fi | |
19565 | fi | |
19566 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
19567 | ||
19568 | ||
19569 | subdirs="$subdirs src/expat" | |
19570 | ||
19571 | fi | |
19572 | fi | |
19573 | ||
19574 | ||
19575 | ||
3527f29c VS |
19576 | if test "$wxUSE_LIBMSPACK" != "no"; then |
19577 | ||
19578 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
19579 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
19580 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
19581 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
19582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19583 | fi | |
19584 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
19585 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
19586 | else | |
19587 | # Is the header compilable? | |
19588 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
19589 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
19590 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19591 | #line $LINENO "configure" |
3527f29c VS |
19592 | /* confdefs.h. */ |
19593 | _ACEOF | |
19594 | cat confdefs.h >>conftest.$ac_ext | |
19595 | cat >>conftest.$ac_ext <<_ACEOF | |
19596 | /* end confdefs.h. */ | |
19597 | $ac_includes_default | |
19598 | #include <mspack.h> | |
19599 | _ACEOF | |
19600 | rm -f conftest.$ac_objext | |
19601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 19602 | (eval $ac_compile) 2>&5 |
3527f29c VS |
19603 | ac_status=$? |
19604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19605 | (exit $ac_status); } && | |
09d3439c | 19606 | { ac_try='test -s conftest.$ac_objext' |
3527f29c VS |
19607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19608 | (eval $ac_try) 2>&5 | |
19609 | ac_status=$? | |
19610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19611 | (exit $ac_status); }; }; then | |
19612 | ac_header_compiler=yes | |
19613 | else | |
19614 | echo "$as_me: failed program was:" >&5 | |
19615 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19616 | ||
19617 | ac_header_compiler=no | |
19618 | fi | |
09d3439c | 19619 | rm -f conftest.$ac_objext conftest.$ac_ext |
3527f29c VS |
19620 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19621 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19622 | ||
19623 | # Is the header present? | |
19624 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
19625 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
19626 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19627 | #line $LINENO "configure" |
3527f29c VS |
19628 | /* confdefs.h. */ |
19629 | _ACEOF | |
19630 | cat confdefs.h >>conftest.$ac_ext | |
19631 | cat >>conftest.$ac_ext <<_ACEOF | |
19632 | /* end confdefs.h. */ | |
19633 | #include <mspack.h> | |
19634 | _ACEOF | |
19635 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19636 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19637 | ac_status=$? | |
19638 | grep -v '^ *+' conftest.er1 >conftest.err | |
19639 | rm -f conftest.er1 | |
19640 | cat conftest.err >&5 | |
19641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19642 | (exit $ac_status); } >/dev/null; then | |
19643 | if test -s conftest.err; then | |
19644 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19645 | else | |
19646 | ac_cpp_err= | |
19647 | fi | |
19648 | else | |
19649 | ac_cpp_err=yes | |
19650 | fi | |
19651 | if test -z "$ac_cpp_err"; then | |
19652 | ac_header_preproc=yes | |
19653 | else | |
19654 | echo "$as_me: failed program was:" >&5 | |
19655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19656 | ||
19657 | ac_header_preproc=no | |
19658 | fi | |
19659 | rm -f conftest.err conftest.$ac_ext | |
19660 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19661 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19662 | ||
19663 | # So? What about this header? | |
09d3439c VZ |
19664 | case $ac_header_compiler:$ac_header_preproc in |
19665 | yes:no ) | |
3527f29c VS |
19666 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19667 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
19668 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
19669 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
19670 | ( | |
19671 | cat <<\_ASBOX | |
19672 | ## ------------------------------------ ## | |
19673 | ## Report this to bug-autoconf@gnu.org. ## | |
19674 | ## ------------------------------------ ## | |
19675 | _ASBOX | |
19676 | ) | | |
19677 | sed "s/^/$as_me: WARNING: /" >&2 | |
3527f29c | 19678 | ;; |
09d3439c | 19679 | no:yes ) |
3527f29c VS |
19680 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
19681 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
09d3439c VZ |
19682 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
19683 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
3527f29c VS |
19684 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
19685 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
19686 | ( | |
19687 | cat <<\_ASBOX | |
09d3439c VZ |
19688 | ## ------------------------------------ ## |
19689 | ## Report this to bug-autoconf@gnu.org. ## | |
19690 | ## ------------------------------------ ## | |
3527f29c VS |
19691 | _ASBOX |
19692 | ) | | |
19693 | sed "s/^/$as_me: WARNING: /" >&2 | |
19694 | ;; | |
19695 | esac | |
19696 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
19697 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
19698 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
19699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19700 | else | |
19701 | ac_cv_header_mspack_h=$ac_header_preproc | |
19702 | fi | |
19703 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
19704 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
19705 | ||
19706 | fi | |
19707 | if test $ac_cv_header_mspack_h = yes; then | |
19708 | found_mspack_h=1 | |
19709 | fi | |
19710 | ||
19711 | ||
19712 | if test "x$found_mspack_h" = "x1"; then | |
19713 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
19714 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
19715 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
19716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19717 | else | |
19718 | ac_check_lib_save_LIBS=$LIBS | |
19719 | LIBS="-lmspack $LIBS" | |
19720 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19721 | #line $LINENO "configure" |
3527f29c VS |
19722 | /* confdefs.h. */ |
19723 | _ACEOF | |
19724 | cat confdefs.h >>conftest.$ac_ext | |
19725 | cat >>conftest.$ac_ext <<_ACEOF | |
19726 | /* end confdefs.h. */ | |
19727 | ||
19728 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19729 | #ifdef __cplusplus | |
19730 | extern "C" | |
19731 | #endif | |
19732 | /* We use char because int might match the return type of a gcc2 | |
19733 | builtin and then its argument prototype would still apply. */ | |
19734 | char mspack_create_chm_decompressor (); | |
19735 | int | |
19736 | main () | |
19737 | { | |
19738 | mspack_create_chm_decompressor (); | |
19739 | ; | |
19740 | return 0; | |
19741 | } | |
19742 | _ACEOF | |
19743 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19744 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 19745 | (eval $ac_link) 2>&5 |
3527f29c VS |
19746 | ac_status=$? |
19747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19748 | (exit $ac_status); } && | |
09d3439c | 19749 | { ac_try='test -s conftest$ac_exeext' |
3527f29c VS |
19750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19751 | (eval $ac_try) 2>&5 | |
19752 | ac_status=$? | |
19753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19754 | (exit $ac_status); }; }; then | |
19755 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
19756 | else | |
19757 | echo "$as_me: failed program was:" >&5 | |
19758 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19759 | ||
19760 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
19761 | fi | |
09d3439c | 19762 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
3527f29c VS |
19763 | LIBS=$ac_check_lib_save_LIBS |
19764 | fi | |
19765 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
19766 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
19767 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
19768 | MSPACK_LINK=" -lmspack" | |
19769 | fi | |
19770 | ||
19771 | fi | |
19772 | if test "x$MSPACK_LINK" = "x" ; then | |
19773 | wxUSE_LIBMSPACK=no | |
19774 | else | |
19775 | cat >>confdefs.h <<\_ACEOF | |
19776 | #define wxUSE_LIBMSPACK 1 | |
19777 | _ACEOF | |
19778 | ||
19779 | fi | |
19780 | fi | |
19781 | ||
19782 | ||
19783 | ||
21d1c967 | 19784 | AFMINSTALL= |
2b5f62a0 | 19785 | WIN32INSTALL= |
90dd450c | 19786 | |
21d1c967 GD |
19787 | TOOLKIT= |
19788 | TOOLKIT_INCLUDE= | |
19789 | WIDGET_SET= | |
19790 | ||
19791 | if test "$USE_WIN32" = 1 ; then | |
e6cc62c6 VS |
19792 | |
19793 | for ac_header in w32api.h | |
21d1c967 | 19794 | do |
e6cc62c6 VS |
19795 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19796 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19797 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19798 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19799 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19800 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19801 | fi | |
19802 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19803 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19804 | else | |
19805 | # Is the header compilable? | |
19806 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19807 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19808 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19809 | #line $LINENO "configure" |
e6cc62c6 VS |
19810 | /* confdefs.h. */ |
19811 | _ACEOF | |
19812 | cat confdefs.h >>conftest.$ac_ext | |
19813 | cat >>conftest.$ac_ext <<_ACEOF | |
19814 | /* end confdefs.h. */ | |
19815 | $ac_includes_default | |
19816 | #include <$ac_header> | |
19817 | _ACEOF | |
19818 | rm -f conftest.$ac_objext | |
19819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 19820 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
19821 | ac_status=$? |
19822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19823 | (exit $ac_status); } && | |
09d3439c | 19824 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
19825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19826 | (eval $ac_try) 2>&5 | |
19827 | ac_status=$? | |
19828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19829 | (exit $ac_status); }; }; then | |
19830 | ac_header_compiler=yes | |
19831 | else | |
19832 | echo "$as_me: failed program was:" >&5 | |
19833 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19834 | ||
19835 | ac_header_compiler=no | |
19836 | fi | |
09d3439c | 19837 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19838 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19839 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19840 | ||
19841 | # Is the header present? | |
19842 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19843 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19844 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19845 | #line $LINENO "configure" |
e6cc62c6 VS |
19846 | /* confdefs.h. */ |
19847 | _ACEOF | |
19848 | cat confdefs.h >>conftest.$ac_ext | |
19849 | cat >>conftest.$ac_ext <<_ACEOF | |
19850 | /* end confdefs.h. */ | |
19851 | #include <$ac_header> | |
19852 | _ACEOF | |
19853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19854 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19855 | ac_status=$? | |
19856 | grep -v '^ *+' conftest.er1 >conftest.err | |
19857 | rm -f conftest.er1 | |
19858 | cat conftest.err >&5 | |
19859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19860 | (exit $ac_status); } >/dev/null; then | |
19861 | if test -s conftest.err; then | |
19862 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19863 | else | |
19864 | ac_cpp_err= | |
19865 | fi | |
19866 | else | |
19867 | ac_cpp_err=yes | |
19868 | fi | |
19869 | if test -z "$ac_cpp_err"; then | |
19870 | ac_header_preproc=yes | |
19871 | else | |
19872 | echo "$as_me: failed program was:" >&5 | |
19873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19874 | ||
19875 | ac_header_preproc=no | |
19876 | fi | |
19877 | rm -f conftest.err conftest.$ac_ext | |
19878 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19879 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19880 | ||
19881 | # So? What about this header? | |
09d3439c VZ |
19882 | case $ac_header_compiler:$ac_header_preproc in |
19883 | yes:no ) | |
e6cc62c6 VS |
19884 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19885 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
19886 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19887 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19888 | ( | |
19889 | cat <<\_ASBOX | |
19890 | ## ------------------------------------ ## | |
19891 | ## Report this to bug-autoconf@gnu.org. ## | |
19892 | ## ------------------------------------ ## | |
19893 | _ASBOX | |
19894 | ) | | |
19895 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 19896 | ;; |
09d3439c | 19897 | no:yes ) |
e6cc62c6 VS |
19898 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19899 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
19900 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19901 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
19902 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19903 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19904 | ( | |
19905 | cat <<\_ASBOX | |
09d3439c VZ |
19906 | ## ------------------------------------ ## |
19907 | ## Report this to bug-autoconf@gnu.org. ## | |
19908 | ## ------------------------------------ ## | |
e6cc62c6 VS |
19909 | _ASBOX |
19910 | ) | | |
19911 | sed "s/^/$as_me: WARNING: /" >&2 | |
19912 | ;; | |
19913 | esac | |
19914 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19915 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19916 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19918 | else | |
09d3439c | 19919 | eval "$as_ac_Header=$ac_header_preproc" |
f79bd02d | 19920 | fi |
e6cc62c6 VS |
19921 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
19922 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19923 | ||
21d1c967 | 19924 | fi |
e6cc62c6 VS |
19925 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19926 | cat >>confdefs.h <<_ACEOF | |
19927 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19928 | _ACEOF | |
19929 | ||
21d1c967 | 19930 | fi |
e6cc62c6 | 19931 | |
21d1c967 | 19932 | done |
f79bd02d | 19933 | |
e6cc62c6 VS |
19934 | if test "${ac_cv_header_windows_h+set}" = set; then |
19935 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
19936 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
19937 | if test "${ac_cv_header_windows_h+set}" = set; then | |
19938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19939 | fi | |
19940 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
19941 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
19942 | else | |
19943 | # Is the header compilable? | |
19944 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
19945 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
19946 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19947 | #line $LINENO "configure" |
e6cc62c6 VS |
19948 | /* confdefs.h. */ |
19949 | _ACEOF | |
19950 | cat confdefs.h >>conftest.$ac_ext | |
19951 | cat >>conftest.$ac_ext <<_ACEOF | |
19952 | /* end confdefs.h. */ | |
19953 | $ac_includes_default | |
247f5006 | 19954 | #include <windows.h> |
e6cc62c6 VS |
19955 | _ACEOF |
19956 | rm -f conftest.$ac_objext | |
19957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 19958 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
19959 | ac_status=$? |
19960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19961 | (exit $ac_status); } && | |
09d3439c | 19962 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
19963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19964 | (eval $ac_try) 2>&5 | |
19965 | ac_status=$? | |
19966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19967 | (exit $ac_status); }; }; then | |
19968 | ac_header_compiler=yes | |
19969 | else | |
19970 | echo "$as_me: failed program was:" >&5 | |
19971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19972 | ||
19973 | ac_header_compiler=no | |
19974 | fi | |
09d3439c | 19975 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
19976 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19977 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19978 | ||
19979 | # Is the header present? | |
19980 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
19981 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
19982 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 19983 | #line $LINENO "configure" |
e6cc62c6 VS |
19984 | /* confdefs.h. */ |
19985 | _ACEOF | |
19986 | cat confdefs.h >>conftest.$ac_ext | |
19987 | cat >>conftest.$ac_ext <<_ACEOF | |
19988 | /* end confdefs.h. */ | |
19989 | #include <windows.h> | |
19990 | _ACEOF | |
19991 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19992 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19993 | ac_status=$? | |
19994 | grep -v '^ *+' conftest.er1 >conftest.err | |
19995 | rm -f conftest.er1 | |
19996 | cat conftest.err >&5 | |
19997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19998 | (exit $ac_status); } >/dev/null; then | |
19999 | if test -s conftest.err; then | |
20000 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20001 | else | |
20002 | ac_cpp_err= | |
20003 | fi | |
20004 | else | |
20005 | ac_cpp_err=yes | |
20006 | fi | |
20007 | if test -z "$ac_cpp_err"; then | |
20008 | ac_header_preproc=yes | |
20009 | else | |
20010 | echo "$as_me: failed program was:" >&5 | |
20011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20012 | ||
20013 | ac_header_preproc=no | |
20014 | fi | |
20015 | rm -f conftest.err conftest.$ac_ext | |
20016 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20017 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20018 | ||
20019 | # So? What about this header? | |
09d3439c VZ |
20020 | case $ac_header_compiler:$ac_header_preproc in |
20021 | yes:no ) | |
e6cc62c6 VS |
20022 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20023 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
20024 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
20025 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
20026 | ( | |
20027 | cat <<\_ASBOX | |
20028 | ## ------------------------------------ ## | |
20029 | ## Report this to bug-autoconf@gnu.org. ## | |
20030 | ## ------------------------------------ ## | |
20031 | _ASBOX | |
20032 | ) | | |
20033 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 20034 | ;; |
09d3439c | 20035 | no:yes ) |
e6cc62c6 VS |
20036 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
20037 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
09d3439c VZ |
20038 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
20039 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
20040 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
20041 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
20042 | ( | |
20043 | cat <<\_ASBOX | |
09d3439c VZ |
20044 | ## ------------------------------------ ## |
20045 | ## Report this to bug-autoconf@gnu.org. ## | |
20046 | ## ------------------------------------ ## | |
e6cc62c6 VS |
20047 | _ASBOX |
20048 | ) | | |
20049 | sed "s/^/$as_me: WARNING: /" >&2 | |
20050 | ;; | |
20051 | esac | |
20052 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
20053 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
20054 | if test "${ac_cv_header_windows_h+set}" = set; then | |
20055 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20056 | else | |
20057 | ac_cv_header_windows_h=$ac_header_preproc | |
90dd450c | 20058 | fi |
e6cc62c6 VS |
20059 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 |
20060 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
20061 | ||
90dd450c | 20062 | fi |
e6cc62c6 | 20063 | if test $ac_cv_header_windows_h = yes; then |
21d1c967 | 20064 | : |
90dd450c | 20065 | else |
21d1c967 | 20066 | |
e6cc62c6 VS |
20067 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 |
20068 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
20069 | { (exit 1); exit 1; }; } | |
20070 | ||
5c6fa7d2 | 20071 | fi |
7b4a847f | 20072 | |
5c6fa7d2 | 20073 | |
e6cc62c6 | 20074 | |
b3dfbbc9 | 20075 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" |
21d1c967 | 20076 | |
7bb2947d MB |
20077 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then |
20078 | LIBS="$LIBS -loleacc" | |
20079 | fi | |
20080 | ||
21d1c967 GD |
20081 | case "${host}" in |
20082 | *-*-cygwin* ) | |
b3dfbbc9 | 20083 | LIBS="$LIBS -lkernel32 -luser32" |
21d1c967 | 20084 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" |
f79bd02d | 20085 | esac |
f79bd02d | 20086 | |
8647bec6 RG |
20087 | if test "$wxUSE_ODBC" = "sys" ; then |
20088 | wxUSE_ODBC = "yes" | |
21d1c967 | 20089 | fi |
8647bec6 RG |
20090 | if test "$wxUSE_ODBC" = "yes" ; then |
20091 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
e6cc62c6 | 20092 | cat >>confdefs.h <<\_ACEOF |
8647bec6 | 20093 | #define wxUSE_ODBC 1 |
e6cc62c6 | 20094 | _ACEOF |
f79bd02d | 20095 | |
8647bec6 | 20096 | fi |
e6cc62c6 | 20097 | |
21d1c967 GD |
20098 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" |
20099 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
2b5f62a0 VZ |
20100 | |
20101 | WIN32INSTALL=win32install | |
f79bd02d | 20102 | fi |
f79bd02d | 20103 | |
21d1c967 GD |
20104 | if test "$wxUSE_GUI" = "yes"; then |
20105 | USE_GUI=1 | |
f79bd02d | 20106 | |
21d1c967 | 20107 | GUI_TK_LIBRARY= |
f79bd02d | 20108 | |
21d1c967 GD |
20109 | WXGTK12= |
20110 | WXGTK127= | |
20111 | WXGTK20= | |
f79bd02d | 20112 | |
21d1c967 GD |
20113 | if test "$wxUSE_MSW" = 1 ; then |
20114 | TOOLKIT=MSW | |
20115 | GUIDIST=MSW_DIST | |
ffef10f6 VS |
20116 | |
20117 | case "${host}" in | |
20118 | *-*-mingw32* ) | |
20119 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
20120 | esac | |
f79bd02d JS |
20121 | fi |
20122 | ||
21d1c967 | 20123 | if test "$wxUSE_GTK" = 1; then |
e6cc62c6 VS |
20124 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 |
20125 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
21d1c967 GD |
20126 | |
20127 | gtk_version_cached=1 | |
e6cc62c6 VS |
20128 | if test "${wx_cv_lib_gtk+set}" = set; then |
20129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f79bd02d | 20130 | else |
e6cc62c6 | 20131 | |
21d1c967 | 20132 | gtk_version_cached=0 |
e6cc62c6 VS |
20133 | echo "$as_me:$LINENO: result: " >&5 |
20134 | echo "${ECHO_T}" >&6 | |
f79bd02d | 20135 | |
21d1c967 GD |
20136 | GTK_MODULES= |
20137 | if test "$wxUSE_THREADS" = "yes"; then | |
20138 | GTK_MODULES=gthread | |
20139 | fi | |
f79bd02d | 20140 | |
2b5f62a0 | 20141 | wx_cv_lib_gtk= |
21d1c967 GD |
20142 | if test "x$wxUSE_GTK2" = "xyes"; then |
20143 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
20144 | if test "${enable_gtktest+set}" = set; then | |
20145 | enableval="$enable_gtktest" | |
e6cc62c6 | 20146 | |
f79bd02d | 20147 | else |
21d1c967 | 20148 | enable_gtktest=yes |
e6cc62c6 | 20149 | fi; |
f79bd02d | 20150 | |
21d1c967 GD |
20151 | pkg_config_args=gtk+-2.0 |
20152 | for module in . $GTK_MODULES | |
20153 | do | |
20154 | case "$module" in | |
e6cc62c6 | 20155 | gthread) |
21d1c967 GD |
20156 | pkg_config_args="$pkg_config_args gthread-2.0" |
20157 | ;; | |
20158 | esac | |
20159 | done | |
20160 | ||
20161 | no_gtk="" | |
f79bd02d | 20162 | |
21d1c967 GD |
20163 | # Extract the first word of "pkg-config", so it can be a program name with args. |
20164 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
20165 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20166 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20167 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
20168 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20169 | else |
e6cc62c6 VS |
20170 | case $PKG_CONFIG in |
20171 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20172 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20173 | ;; | |
21d1c967 | 20174 | *) |
e6cc62c6 VS |
20175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20176 | for as_dir in $PATH | |
20177 | do | |
20178 | IFS=$as_save_IFS | |
20179 | test -z "$as_dir" && as_dir=. | |
20180 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20181 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20182 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20183 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20184 | break 2 | |
20185 | fi | |
20186 | done | |
20187 | done | |
20188 | ||
21d1c967 GD |
20189 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20190 | ;; | |
20191 | esac | |
f79bd02d | 20192 | fi |
e6cc62c6 VS |
20193 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20194 | ||
21d1c967 | 20195 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
20196 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20197 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f79bd02d | 20198 | else |
e6cc62c6 VS |
20199 | echo "$as_me:$LINENO: result: no" >&5 |
20200 | echo "${ECHO_T}no" >&6 | |
f79bd02d JS |
20201 | fi |
20202 | ||
8284b0c5 | 20203 | |
21d1c967 GD |
20204 | if test x$PKG_CONFIG != xno ; then |
20205 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
20206 | : | |
20207 | else | |
20208 | echo *** pkg-config too old; version 0.7 or better required. | |
20209 | no_gtk=yes | |
20210 | PKG_CONFIG=no | |
20211 | fi | |
20212 | else | |
20213 | no_gtk=yes | |
20214 | fi | |
f79bd02d | 20215 | |
21d1c967 | 20216 | min_gtk_version=2.0.0 |
e6cc62c6 VS |
20217 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
20218 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
f79bd02d | 20219 | |
21d1c967 GD |
20220 | if test x$PKG_CONFIG != xno ; then |
20221 | ## don't try to run the test against uninstalled libtool libs | |
20222 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
20223 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
20224 | enable_gtktest=no | |
20225 | fi | |
f79bd02d | 20226 | |
21d1c967 GD |
20227 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
20228 | : | |
20229 | else | |
20230 | no_gtk=yes | |
20231 | fi | |
20232 | fi | |
f79bd02d | 20233 | |
21d1c967 GD |
20234 | if test x"$no_gtk" = x ; then |
20235 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
20236 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
20237 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20238 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20239 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20240 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20241 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20242 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20243 | if test "x$enable_gtktest" = "xyes" ; then | |
20244 | ac_save_CFLAGS="$CFLAGS" | |
20245 | ac_save_LIBS="$LIBS" | |
20246 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20247 | LIBS="$GTK_LIBS $LIBS" | |
20248 | rm -f conf.gtktest | |
20249 | if test "$cross_compiling" = yes; then | |
20250 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 20251 | else |
e6cc62c6 | 20252 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 20253 | #line $LINENO "configure" |
e6cc62c6 VS |
20254 | /* confdefs.h. */ |
20255 | _ACEOF | |
20256 | cat confdefs.h >>conftest.$ac_ext | |
20257 | cat >>conftest.$ac_ext <<_ACEOF | |
20258 | /* end confdefs.h. */ | |
f79bd02d | 20259 | |
21d1c967 GD |
20260 | #include <gtk/gtk.h> |
20261 | #include <stdio.h> | |
20262 | #include <stdlib.h> | |
f79bd02d | 20263 | |
e6cc62c6 | 20264 | int |
21d1c967 GD |
20265 | main () |
20266 | { | |
20267 | int major, minor, micro; | |
20268 | char *tmp_version; | |
f79bd02d | 20269 | |
21d1c967 | 20270 | system ("touch conf.gtktest"); |
f79bd02d | 20271 | |
21d1c967 GD |
20272 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
20273 | tmp_version = g_strdup("$min_gtk_version"); | |
20274 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20275 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20276 | exit(1); | |
20277 | } | |
f79bd02d | 20278 | |
21d1c967 GD |
20279 | if ((gtk_major_version != $gtk_config_major_version) || |
20280 | (gtk_minor_version != $gtk_config_minor_version) || | |
20281 | (gtk_micro_version != $gtk_config_micro_version)) | |
20282 | { | |
e6cc62c6 | 20283 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20284 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20285 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20286 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
20287 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20288 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20289 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20290 | printf("*** required on your system.\n"); | |
20291 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
20292 | printf("*** to point to the correct configuration files\n"); | |
e6cc62c6 | 20293 | } |
21d1c967 GD |
20294 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
20295 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20296 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20297 | { | |
20298 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20299 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20300 | printf("*** library (version %d.%d.%d)\n", | |
20301 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20302 | } | |
20303 | else | |
20304 | { | |
20305 | if ((gtk_major_version > major) || | |
20306 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20307 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20308 | { | |
20309 | return 0; | |
20310 | } | |
20311 | else | |
20312 | { | |
20313 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20314 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20315 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20316 | major, minor, micro); | |
20317 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20318 | printf("***\n"); | |
20319 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20320 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
20321 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20322 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
20323 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
20324 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20325 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20326 | } | |
20327 | } | |
20328 | return 1; | |
20329 | } | |
f79bd02d | 20330 | |
e6cc62c6 VS |
20331 | _ACEOF |
20332 | rm -f conftest$ac_exeext | |
20333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20334 | (eval $ac_link) 2>&5 | |
20335 | ac_status=$? | |
20336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20337 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20339 | (eval $ac_try) 2>&5 | |
20340 | ac_status=$? | |
20341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20342 | (exit $ac_status); }; }; then | |
21d1c967 | 20343 | : |
f79bd02d | 20344 | else |
e6cc62c6 VS |
20345 | echo "$as_me: program exited with status $ac_status" >&5 |
20346 | echo "$as_me: failed program was:" >&5 | |
20347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20348 | ||
20349 | ( exit $ac_status ) | |
20350 | no_gtk=yes | |
f79bd02d | 20351 | fi |
09d3439c | 20352 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
f79bd02d | 20353 | fi |
21d1c967 GD |
20354 | CFLAGS="$ac_save_CFLAGS" |
20355 | LIBS="$ac_save_LIBS" | |
20356 | fi | |
20357 | fi | |
20358 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20359 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
20360 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
20361 | wx_cv_lib_gtk=2.0 | |
21d1c967 | 20362 | else |
e6cc62c6 VS |
20363 | echo "$as_me:$LINENO: result: no" >&5 |
20364 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20365 | if test "$PKG_CONFIG" = "no" ; then |
20366 | echo "*** A new enough version of pkg-config was not found." | |
20367 | echo "*** See http://pkgconfig.sourceforge.net" | |
20368 | else | |
20369 | if test -f conf.gtktest ; then | |
20370 | : | |
20371 | else | |
20372 | echo "*** Could not run GTK+ test program, checking why..." | |
579d8138 VS |
20373 | ac_save_CFLAGS="$CFLAGS" |
20374 | ac_save_LIBS="$LIBS" | |
21d1c967 GD |
20375 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
20376 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 20377 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 20378 | #line $LINENO "configure" |
e6cc62c6 VS |
20379 | /* confdefs.h. */ |
20380 | _ACEOF | |
20381 | cat confdefs.h >>conftest.$ac_ext | |
20382 | cat >>conftest.$ac_ext <<_ACEOF | |
20383 | /* end confdefs.h. */ | |
21d1c967 GD |
20384 | |
20385 | #include <gtk/gtk.h> | |
20386 | #include <stdio.h> | |
f79bd02d | 20387 | |
e6cc62c6 VS |
20388 | int |
20389 | main () | |
20390 | { | |
20391 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20392 | ; | |
20393 | return 0; | |
20394 | } | |
20395 | _ACEOF | |
20396 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 20398 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
20399 | ac_status=$? |
20400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20401 | (exit $ac_status); } && | |
09d3439c | 20402 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
20403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20404 | (eval $ac_try) 2>&5 | |
20405 | ac_status=$? | |
20406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20407 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20408 | echo "*** The test program compiled, but did not run. This usually means" |
20409 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
20410 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
20411 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20412 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20413 | echo "*** is required on your system" | |
20414 | echo "***" | |
20415 | echo "*** If you have an old version installed, it is best to remove it, although" | |
e6cc62c6 | 20416 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
f79bd02d | 20417 | else |
e6cc62c6 VS |
20418 | echo "$as_me: failed program was:" >&5 |
20419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20420 | ||
20421 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
579d8138 | 20422 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
f79bd02d | 20423 | fi |
09d3439c | 20424 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20425 | CFLAGS="$ac_save_CFLAGS" |
20426 | LIBS="$ac_save_LIBS" | |
20427 | fi | |
20428 | fi | |
20429 | GTK_CFLAGS="" | |
20430 | GTK_LIBS="" | |
20431 | : | |
20432 | fi | |
e6cc62c6 VS |
20433 | |
20434 | ||
21d1c967 | 20435 | rm -f conf.gtktest |
f79bd02d | 20436 | |
2b5f62a0 | 20437 | else |
e6cc62c6 VS |
20438 | |
20439 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20440 | if test "${with_gtk_prefix+set}" = set; then |
20441 | withval="$with_gtk_prefix" | |
20442 | gtk_config_prefix="$withval" | |
20443 | else | |
20444 | gtk_config_prefix="" | |
e6cc62c6 | 20445 | fi; |
f79bd02d | 20446 | |
21d1c967 GD |
20447 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20448 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20449 | withval="$with_gtk_exec_prefix" | |
20450 | gtk_config_exec_prefix="$withval" | |
20451 | else | |
20452 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20453 | fi; |
21d1c967 GD |
20454 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20455 | if test "${enable_gtktest+set}" = set; then | |
20456 | enableval="$enable_gtktest" | |
e6cc62c6 | 20457 | |
21d1c967 GD |
20458 | else |
20459 | enable_gtktest=yes | |
e6cc62c6 | 20460 | fi; |
21d1c967 GD |
20461 | |
20462 | for module in . $GTK_MODULES | |
20463 | do | |
20464 | case "$module" in | |
e6cc62c6 | 20465 | gthread) |
21d1c967 GD |
20466 | gtk_config_args="$gtk_config_args gthread" |
20467 | ;; | |
20468 | esac | |
20469 | done | |
20470 | ||
20471 | if test x$gtk_config_exec_prefix != x ; then | |
20472 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20473 | if test x${GTK_CONFIG+set} != xset ; then | |
20474 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20475 | fi | |
20476 | fi | |
20477 | if test x$gtk_config_prefix != x ; then | |
20478 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20479 | if test x${GTK_CONFIG+set} != xset ; then | |
20480 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20481 | fi | |
20482 | fi | |
20483 | ||
20484 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20485 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20486 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20487 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20488 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 20490 | else |
e6cc62c6 VS |
20491 | case $GTK_CONFIG in |
20492 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20493 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20494 | ;; | |
21d1c967 | 20495 | *) |
e6cc62c6 VS |
20496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20497 | for as_dir in $PATH | |
20498 | do | |
20499 | IFS=$as_save_IFS | |
20500 | test -z "$as_dir" && as_dir=. | |
20501 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20502 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20503 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20504 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20505 | break 2 | |
20506 | fi | |
20507 | done | |
20508 | done | |
20509 | ||
21d1c967 GD |
20510 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20511 | ;; | |
20512 | esac | |
20513 | fi | |
e6cc62c6 VS |
20514 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20515 | ||
21d1c967 | 20516 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20517 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20518 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20519 | else |
e6cc62c6 VS |
20520 | echo "$as_me:$LINENO: result: no" >&5 |
20521 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20522 | fi |
20523 | ||
20524 | min_gtk_version=1.2.7 | |
e6cc62c6 VS |
20525 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20526 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20527 | no_gtk="" |
20528 | if test "$GTK_CONFIG" = "no" ; then | |
20529 | no_gtk=yes | |
20530 | else | |
20531 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20532 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20533 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20534 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20535 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20536 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20537 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20538 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20539 | if test "x$enable_gtktest" = "xyes" ; then | |
20540 | ac_save_CFLAGS="$CFLAGS" | |
20541 | ac_save_LIBS="$LIBS" | |
20542 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20543 | LIBS="$GTK_LIBS $LIBS" | |
20544 | rm -f conf.gtktest | |
20545 | if test "$cross_compiling" = yes; then | |
20546 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
f79bd02d | 20547 | else |
e6cc62c6 | 20548 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 20549 | #line $LINENO "configure" |
e6cc62c6 VS |
20550 | /* confdefs.h. */ |
20551 | _ACEOF | |
20552 | cat confdefs.h >>conftest.$ac_ext | |
20553 | cat >>conftest.$ac_ext <<_ACEOF | |
20554 | /* end confdefs.h. */ | |
f79bd02d | 20555 | |
21d1c967 GD |
20556 | #include <gtk/gtk.h> |
20557 | #include <stdio.h> | |
20558 | #include <stdlib.h> | |
f79bd02d | 20559 | |
e6cc62c6 | 20560 | int |
21d1c967 GD |
20561 | main () |
20562 | { | |
20563 | int major, minor, micro; | |
20564 | char *tmp_version; | |
20565 | ||
20566 | system ("touch conf.gtktest"); | |
20567 | ||
20568 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20569 | tmp_version = g_strdup("$min_gtk_version"); | |
20570 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20571 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20572 | exit(1); | |
20573 | } | |
90dd450c | 20574 | |
21d1c967 GD |
20575 | if ((gtk_major_version != $gtk_config_major_version) || |
20576 | (gtk_minor_version != $gtk_config_minor_version) || | |
20577 | (gtk_micro_version != $gtk_config_micro_version)) | |
20578 | { | |
e6cc62c6 | 20579 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20580 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20581 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20582 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20583 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20584 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20585 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20586 | printf("*** required on your system.\n"); | |
20587 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20588 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20589 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20590 | } |
21d1c967 GD |
20591 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20592 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20593 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20594 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20595 | { | |
20596 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20597 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20598 | printf("*** library (version %d.%d.%d)\n", | |
20599 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20600 | } | |
20601 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20602 | else | |
20603 | { | |
20604 | if ((gtk_major_version > major) || | |
20605 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20606 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20607 | { | |
20608 | return 0; | |
20609 | } | |
20610 | else | |
20611 | { | |
20612 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20613 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20614 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20615 | major, minor, micro); | |
20616 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20617 | printf("***\n"); | |
20618 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20619 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20620 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20621 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20622 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20623 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20624 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20625 | } | |
20626 | } | |
20627 | return 1; | |
20628 | } | |
20629 | ||
e6cc62c6 VS |
20630 | _ACEOF |
20631 | rm -f conftest$ac_exeext | |
20632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20633 | (eval $ac_link) 2>&5 | |
20634 | ac_status=$? | |
20635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20636 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20638 | (eval $ac_try) 2>&5 | |
20639 | ac_status=$? | |
20640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20641 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20642 | : |
20643 | else | |
e6cc62c6 VS |
20644 | echo "$as_me: program exited with status $ac_status" >&5 |
20645 | echo "$as_me: failed program was:" >&5 | |
20646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20647 | ||
20648 | ( exit $ac_status ) | |
20649 | no_gtk=yes | |
21d1c967 | 20650 | fi |
09d3439c | 20651 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20652 | fi |
21d1c967 GD |
20653 | CFLAGS="$ac_save_CFLAGS" |
20654 | LIBS="$ac_save_LIBS" | |
20655 | fi | |
20656 | fi | |
20657 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20658 | echo "$as_me:$LINENO: result: yes" >&5 |
20659 | echo "${ECHO_T}yes" >&6 | |
20660 | wx_cv_lib_gtk=1.2.7 | |
21d1c967 | 20661 | else |
e6cc62c6 VS |
20662 | echo "$as_me:$LINENO: result: no" >&5 |
20663 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20664 | if test "$GTK_CONFIG" = "no" ; then |
20665 | echo "*** The gtk-config script installed by GTK could not be found" | |
20666 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20667 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20668 | echo "*** full path to gtk-config." | |
20669 | else | |
20670 | if test -f conf.gtktest ; then | |
20671 | : | |
20672 | else | |
20673 | echo "*** Could not run GTK test program, checking why..." | |
20674 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20675 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 20676 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 20677 | #line $LINENO "configure" |
e6cc62c6 VS |
20678 | /* confdefs.h. */ |
20679 | _ACEOF | |
20680 | cat confdefs.h >>conftest.$ac_ext | |
20681 | cat >>conftest.$ac_ext <<_ACEOF | |
20682 | /* end confdefs.h. */ | |
21d1c967 GD |
20683 | |
20684 | #include <gtk/gtk.h> | |
20685 | #include <stdio.h> | |
20686 | ||
e6cc62c6 VS |
20687 | int |
20688 | main () | |
20689 | { | |
20690 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20691 | ; | |
20692 | return 0; | |
20693 | } | |
20694 | _ACEOF | |
20695 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20696 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 20697 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
20698 | ac_status=$? |
20699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20700 | (exit $ac_status); } && | |
09d3439c | 20701 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
20702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20703 | (eval $ac_try) 2>&5 | |
20704 | ac_status=$? | |
20705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20706 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20707 | echo "*** The test program compiled, but did not run. This usually means" |
20708 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
20709 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
20710 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
20711 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
20712 | echo "*** is required on your system" | |
20713 | echo "***" | |
20714 | echo "*** If you have an old version installed, it is best to remove it, although" | |
20715 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
20716 | echo "***" | |
20717 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
20718 | echo "*** came with the system with the command" | |
20719 | echo "***" | |
e6cc62c6 | 20720 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 20721 | else |
e6cc62c6 VS |
20722 | echo "$as_me: failed program was:" >&5 |
20723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20724 | ||
20725 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
20726 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
20727 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 20728 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 20729 | fi |
09d3439c | 20730 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
20731 | CFLAGS="$ac_save_CFLAGS" |
20732 | LIBS="$ac_save_LIBS" | |
20733 | fi | |
20734 | fi | |
20735 | GTK_CFLAGS="" | |
20736 | GTK_LIBS="" | |
20737 | : | |
20738 | fi | |
e6cc62c6 VS |
20739 | |
20740 | ||
21d1c967 GD |
20741 | rm -f conf.gtktest |
20742 | ||
21d1c967 | 20743 | |
2b5f62a0 | 20744 | if test -z "$wx_cv_lib_gtk"; then |
e6cc62c6 VS |
20745 | |
20746 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21d1c967 GD |
20747 | if test "${with_gtk_prefix+set}" = set; then |
20748 | withval="$with_gtk_prefix" | |
20749 | gtk_config_prefix="$withval" | |
20750 | else | |
20751 | gtk_config_prefix="" | |
e6cc62c6 | 20752 | fi; |
f79bd02d | 20753 | |
21d1c967 GD |
20754 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. |
20755 | if test "${with_gtk_exec_prefix+set}" = set; then | |
20756 | withval="$with_gtk_exec_prefix" | |
20757 | gtk_config_exec_prefix="$withval" | |
20758 | else | |
20759 | gtk_config_exec_prefix="" | |
e6cc62c6 | 20760 | fi; |
21d1c967 GD |
20761 | # Check whether --enable-gtktest or --disable-gtktest was given. |
20762 | if test "${enable_gtktest+set}" = set; then | |
20763 | enableval="$enable_gtktest" | |
e6cc62c6 | 20764 | |
90dd450c | 20765 | else |
21d1c967 | 20766 | enable_gtktest=yes |
e6cc62c6 | 20767 | fi; |
21d1c967 GD |
20768 | |
20769 | for module in . $GTK_MODULES | |
20770 | do | |
20771 | case "$module" in | |
e6cc62c6 | 20772 | gthread) |
21d1c967 GD |
20773 | gtk_config_args="$gtk_config_args gthread" |
20774 | ;; | |
20775 | esac | |
20776 | done | |
20777 | ||
20778 | if test x$gtk_config_exec_prefix != x ; then | |
20779 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
20780 | if test x${GTK_CONFIG+set} != xset ; then | |
20781 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
20782 | fi | |
20783 | fi | |
20784 | if test x$gtk_config_prefix != x ; then | |
20785 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
20786 | if test x${GTK_CONFIG+set} != xset ; then | |
20787 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
20788 | fi | |
20789 | fi | |
20790 | ||
20791 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
20792 | set dummy gtk-config; ac_word=$2 | |
e6cc62c6 VS |
20793 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20794 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20795 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
20796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 20797 | else |
e6cc62c6 VS |
20798 | case $GTK_CONFIG in |
20799 | [\\/]* | ?:[\\/]*) | |
21d1c967 GD |
20800 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. |
20801 | ;; | |
21d1c967 | 20802 | *) |
e6cc62c6 VS |
20803 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20804 | for as_dir in $PATH | |
20805 | do | |
20806 | IFS=$as_save_IFS | |
20807 | test -z "$as_dir" && as_dir=. | |
20808 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20809 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20810 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20811 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20812 | break 2 | |
20813 | fi | |
20814 | done | |
20815 | done | |
20816 | ||
21d1c967 GD |
20817 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" |
20818 | ;; | |
20819 | esac | |
20820 | fi | |
e6cc62c6 VS |
20821 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG |
20822 | ||
21d1c967 | 20823 | if test -n "$GTK_CONFIG"; then |
e6cc62c6 VS |
20824 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 |
20825 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21d1c967 | 20826 | else |
e6cc62c6 VS |
20827 | echo "$as_me:$LINENO: result: no" >&5 |
20828 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20829 | fi |
20830 | ||
20831 | min_gtk_version=1.2.3 | |
e6cc62c6 VS |
20832 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 |
20833 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21d1c967 GD |
20834 | no_gtk="" |
20835 | if test "$GTK_CONFIG" = "no" ; then | |
20836 | no_gtk=yes | |
20837 | else | |
20838 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
20839 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
20840 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20841 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20842 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20843 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20844 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
20845 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20846 | if test "x$enable_gtktest" = "xyes" ; then | |
20847 | ac_save_CFLAGS="$CFLAGS" | |
20848 | ac_save_LIBS="$LIBS" | |
20849 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20850 | LIBS="$GTK_LIBS $LIBS" | |
20851 | rm -f conf.gtktest | |
20852 | if test "$cross_compiling" = yes; then | |
20853 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
20854 | else | |
e6cc62c6 | 20855 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 20856 | #line $LINENO "configure" |
e6cc62c6 VS |
20857 | /* confdefs.h. */ |
20858 | _ACEOF | |
20859 | cat confdefs.h >>conftest.$ac_ext | |
20860 | cat >>conftest.$ac_ext <<_ACEOF | |
20861 | /* end confdefs.h. */ | |
21d1c967 GD |
20862 | |
20863 | #include <gtk/gtk.h> | |
20864 | #include <stdio.h> | |
20865 | #include <stdlib.h> | |
20866 | ||
e6cc62c6 | 20867 | int |
21d1c967 GD |
20868 | main () |
20869 | { | |
20870 | int major, minor, micro; | |
20871 | char *tmp_version; | |
20872 | ||
20873 | system ("touch conf.gtktest"); | |
20874 | ||
20875 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20876 | tmp_version = g_strdup("$min_gtk_version"); | |
20877 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20878 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20879 | exit(1); | |
20880 | } | |
20881 | ||
20882 | if ((gtk_major_version != $gtk_config_major_version) || | |
20883 | (gtk_minor_version != $gtk_config_minor_version) || | |
20884 | (gtk_micro_version != $gtk_config_micro_version)) | |
20885 | { | |
e6cc62c6 | 20886 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
21d1c967 GD |
20887 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20888 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20889 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
20890 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20891 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20892 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20893 | printf("*** required on your system.\n"); | |
20894 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
20895 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
20896 | printf("*** before re-running configure\n"); | |
e6cc62c6 | 20897 | } |
21d1c967 GD |
20898 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) |
20899 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20900 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20901 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20902 | { | |
20903 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20904 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20905 | printf("*** library (version %d.%d.%d)\n", | |
20906 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20907 | } | |
20908 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
20909 | else | |
20910 | { | |
20911 | if ((gtk_major_version > major) || | |
20912 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20913 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20914 | { | |
20915 | return 0; | |
20916 | } | |
20917 | else | |
20918 | { | |
20919 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20920 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20921 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20922 | major, minor, micro); | |
20923 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20924 | printf("***\n"); | |
20925 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20926 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
20927 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20928 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
20929 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
20930 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20931 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20932 | } | |
20933 | } | |
20934 | return 1; | |
20935 | } | |
20936 | ||
e6cc62c6 VS |
20937 | _ACEOF |
20938 | rm -f conftest$ac_exeext | |
20939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20940 | (eval $ac_link) 2>&5 | |
20941 | ac_status=$? | |
20942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20943 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20945 | (eval $ac_try) 2>&5 | |
20946 | ac_status=$? | |
20947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20948 | (exit $ac_status); }; }; then | |
21d1c967 GD |
20949 | : |
20950 | else | |
e6cc62c6 VS |
20951 | echo "$as_me: program exited with status $ac_status" >&5 |
20952 | echo "$as_me: failed program was:" >&5 | |
20953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20954 | ||
20955 | ( exit $ac_status ) | |
20956 | no_gtk=yes | |
21d1c967 | 20957 | fi |
09d3439c | 20958 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 20959 | fi |
21d1c967 GD |
20960 | CFLAGS="$ac_save_CFLAGS" |
20961 | LIBS="$ac_save_LIBS" | |
20962 | fi | |
20963 | fi | |
20964 | if test "x$no_gtk" = x ; then | |
e6cc62c6 VS |
20965 | echo "$as_me:$LINENO: result: yes" >&5 |
20966 | echo "${ECHO_T}yes" >&6 | |
20967 | wx_cv_lib_gtk=1.2.3 | |
21d1c967 | 20968 | else |
e6cc62c6 VS |
20969 | echo "$as_me:$LINENO: result: no" >&5 |
20970 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
20971 | if test "$GTK_CONFIG" = "no" ; then |
20972 | echo "*** The gtk-config script installed by GTK could not be found" | |
20973 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
20974 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
20975 | echo "*** full path to gtk-config." | |
20976 | else | |
20977 | if test -f conf.gtktest ; then | |
20978 | : | |
20979 | else | |
20980 | echo "*** Could not run GTK test program, checking why..." | |
20981 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20982 | LIBS="$LIBS $GTK_LIBS" | |
e6cc62c6 | 20983 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 20984 | #line $LINENO "configure" |
e6cc62c6 VS |
20985 | /* confdefs.h. */ |
20986 | _ACEOF | |
20987 | cat confdefs.h >>conftest.$ac_ext | |
20988 | cat >>conftest.$ac_ext <<_ACEOF | |
20989 | /* end confdefs.h. */ | |
21d1c967 GD |
20990 | |
20991 | #include <gtk/gtk.h> | |
20992 | #include <stdio.h> | |
f79bd02d | 20993 | |
e6cc62c6 VS |
20994 | int |
20995 | main () | |
20996 | { | |
20997 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
20998 | ; | |
20999 | return 0; | |
21000 | } | |
21001 | _ACEOF | |
21002 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21003 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 21004 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21005 | ac_status=$? |
21006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21007 | (exit $ac_status); } && | |
09d3439c | 21008 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21010 | (eval $ac_try) 2>&5 | |
21011 | ac_status=$? | |
21012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21013 | (exit $ac_status); }; }; then | |
21d1c967 GD |
21014 | echo "*** The test program compiled, but did not run. This usually means" |
21015 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
21016 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
21017 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
21018 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
21019 | echo "*** is required on your system" | |
21020 | echo "***" | |
21021 | echo "*** If you have an old version installed, it is best to remove it, although" | |
21022 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
21023 | echo "***" | |
21024 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
21025 | echo "*** came with the system with the command" | |
21026 | echo "***" | |
e6cc62c6 | 21027 | echo "*** rpm --erase --nodeps gtk gtk-devel" |
f79bd02d | 21028 | else |
e6cc62c6 VS |
21029 | echo "$as_me: failed program was:" >&5 |
21030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21031 | ||
21032 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21d1c967 GD |
21033 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" |
21034 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
e6cc62c6 | 21035 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" |
f79bd02d | 21036 | fi |
09d3439c | 21037 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 GD |
21038 | CFLAGS="$ac_save_CFLAGS" |
21039 | LIBS="$ac_save_LIBS" | |
21040 | fi | |
21041 | fi | |
21042 | GTK_CFLAGS="" | |
21043 | GTK_LIBS="" | |
21044 | : | |
21045 | fi | |
e6cc62c6 VS |
21046 | |
21047 | ||
21d1c967 | 21048 | rm -f conf.gtktest |
f79bd02d | 21049 | |
2b5f62a0 | 21050 | fi |
21d1c967 GD |
21051 | fi |
21052 | ||
21053 | if test -z "$wx_cv_lib_gtk"; then | |
21054 | wx_cv_lib_gtk=none | |
21055 | else | |
21056 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
21057 | wx_cv_libs_gtk=$GTK_LIBS | |
21058 | fi | |
e6cc62c6 VS |
21059 | |
21060 | ||
5c6fa7d2 | 21061 | fi |
52127426 | 21062 | |
8284b0c5 | 21063 | |
21d1c967 | 21064 | if test "$gtk_version_cached" = 1; then |
e6cc62c6 VS |
21065 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 |
21066 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21d1c967 GD |
21067 | fi |
21068 | ||
21069 | case "$wx_cv_lib_gtk" in | |
21070 | 2.0) WXGTK20=1 | |
2b5f62a0 | 21071 | TOOLKIT_VERSION=2 |
21d1c967 GD |
21072 | ;; |
21073 | 1.2.7) WXGTK127=1 | |
21074 | WXGTK12=1 | |
21075 | ;; | |
21076 | 1.2.3) WXGTK12=1 | |
21077 | ;; | |
e6cc62c6 VS |
21078 | *) { { echo "$as_me:$LINENO: error: |
21079 | Please check that gtk-config is in path, the directory | |
21080 | where GTK+ libraries are installed (returned by | |
21081 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
21082 | equivalent variable and GTK+ is version 1.2.3 or above. | |
21083 | " >&5 | |
21084 | echo "$as_me: error: | |
247f5006 VZ |
21085 | Please check that gtk-config is in path, the directory |
21086 | where GTK+ libraries are installed (returned by | |
21087 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
21088 | equivalent variable and GTK+ is version 1.2.3 or above. | |
e6cc62c6 VS |
21089 | " >&2;} |
21090 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
21091 | ;; |
21092 | esac | |
21093 | ||
b13cd66e VZ |
21094 | if test "$WXGTK20" = 1; then |
21095 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 21096 | |
f09359cf VS |
21097 | succeeded=no |
21098 | ||
21099 | if test -z "$PKG_CONFIG"; then | |
21100 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
21101 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
21102 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21103 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21104 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
21105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f09359cf | 21106 | else |
e6cc62c6 VS |
21107 | case $PKG_CONFIG in |
21108 | [\\/]* | ?:[\\/]*) | |
f09359cf VS |
21109 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
21110 | ;; | |
f09359cf | 21111 | *) |
e6cc62c6 VS |
21112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21113 | for as_dir in $PATH | |
21114 | do | |
21115 | IFS=$as_save_IFS | |
21116 | test -z "$as_dir" && as_dir=. | |
21117 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21118 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21119 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21120 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21121 | break 2 | |
21122 | fi | |
21123 | done | |
21124 | done | |
21125 | ||
f09359cf VS |
21126 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
21127 | ;; | |
21128 | esac | |
21129 | fi | |
e6cc62c6 VS |
21130 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
21131 | ||
f09359cf | 21132 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
21133 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
21134 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
f09359cf | 21135 | else |
e6cc62c6 VS |
21136 | echo "$as_me:$LINENO: result: no" >&5 |
21137 | echo "${ECHO_T}no" >&6 | |
f09359cf VS |
21138 | fi |
21139 | ||
21140 | fi | |
21141 | ||
21142 | if test "$PKG_CONFIG" = "no" ; then | |
21143 | echo "*** The pkg-config script could not be found. Make sure it is" | |
21144 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
21145 | echo "*** to the full path to pkg-config." | |
21146 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
21147 | else | |
21148 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
21149 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
21150 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
21151 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
f09359cf VS |
21152 | |
21153 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
21154 | echo "$as_me:$LINENO: result: yes" >&5 |
21155 | echo "${ECHO_T}yes" >&6 | |
f09359cf VS |
21156 | succeeded=yes |
21157 | ||
e6cc62c6 VS |
21158 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
21159 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
f09359cf | 21160 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
21161 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
21162 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
f09359cf | 21163 | |
e6cc62c6 VS |
21164 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
21165 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
f09359cf | 21166 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
21167 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
21168 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
f09359cf VS |
21169 | else |
21170 | PANGOFT2_CFLAGS="" | |
21171 | PANGOFT2_LIBS="" | |
e6cc62c6 | 21172 | ## If we have a custom action on failure, don't print errors, but |
f09359cf VS |
21173 | ## do set a variable so people can do so. |
21174 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 21175 | |
f09359cf VS |
21176 | fi |
21177 | ||
e6cc62c6 VS |
21178 | |
21179 | ||
f09359cf VS |
21180 | else |
21181 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
21182 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
21183 | fi | |
21184 | fi | |
21185 | ||
21186 | if test $succeeded = yes; then | |
e6cc62c6 | 21187 | |
b13cd66e | 21188 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 21189 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 21190 | |
f09359cf | 21191 | else |
e6cc62c6 VS |
21192 | |
21193 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
21194 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
b13cd66e | 21195 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
21196 | |
21197 | ||
f09359cf VS |
21198 | fi |
21199 | ||
b13cd66e | 21200 | fi |
2b5f62a0 VZ |
21201 | else |
21202 | if test "$wxUSE_UNICODE" = "yes"; then | |
e6cc62c6 VS |
21203 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 |
21204 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
2b5f62a0 VZ |
21205 | wxUSE_UNICODE=no |
21206 | fi | |
21207 | fi | |
21208 | ||
21209 | if test "$USE_DARWIN" != 1; then | |
e6cc62c6 VS |
21210 | |
21211 | for ac_func in poll | |
2b5f62a0 | 21212 | do |
e6cc62c6 VS |
21213 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
21214 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
21215 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21216 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21218 | else | |
21219 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 21220 | #line $LINENO "configure" |
e6cc62c6 VS |
21221 | /* confdefs.h. */ |
21222 | _ACEOF | |
21223 | cat confdefs.h >>conftest.$ac_ext | |
21224 | cat >>conftest.$ac_ext <<_ACEOF | |
21225 | /* end confdefs.h. */ | |
2b5f62a0 | 21226 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
21227 | which can conflict with char $ac_func (); below. |
21228 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21229 | <limits.h> exists even on freestanding compilers. */ | |
21230 | #ifdef __STDC__ | |
21231 | # include <limits.h> | |
21232 | #else | |
21233 | # include <assert.h> | |
21234 | #endif | |
2b5f62a0 | 21235 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21236 | #ifdef __cplusplus |
21237 | extern "C" | |
21238 | { | |
21239 | #endif | |
2b5f62a0 | 21240 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21241 | builtin and then its argument prototype would still apply. */ |
21242 | char $ac_func (); | |
2b5f62a0 VZ |
21243 | /* The GNU C library defines this for functions which it implements |
21244 | to always fail with ENOSYS. Some functions are actually named | |
21245 | something starting with __ and the normal name is an alias. */ | |
21246 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21247 | choke me | |
21248 | #else | |
e6cc62c6 VS |
21249 | char (*f) () = $ac_func; |
21250 | #endif | |
21251 | #ifdef __cplusplus | |
21252 | } | |
2b5f62a0 VZ |
21253 | #endif |
21254 | ||
e6cc62c6 VS |
21255 | int |
21256 | main () | |
21257 | { | |
21258 | return f != $ac_func; | |
21259 | ; | |
21260 | return 0; | |
21261 | } | |
21262 | _ACEOF | |
21263 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 21265 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21266 | ac_status=$? |
21267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21268 | (exit $ac_status); } && | |
09d3439c | 21269 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21271 | (eval $ac_try) 2>&5 | |
21272 | ac_status=$? | |
21273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21274 | (exit $ac_status); }; }; then | |
21275 | eval "$as_ac_var=yes" | |
21276 | else | |
21277 | echo "$as_me: failed program was:" >&5 | |
21278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21279 | ||
21280 | eval "$as_ac_var=no" | |
21281 | fi | |
09d3439c | 21282 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
21283 | fi |
21284 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21285 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21286 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21287 | cat >>confdefs.h <<_ACEOF | |
21288 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21289 | _ACEOF | |
2b5f62a0 | 21290 | |
2b5f62a0 VZ |
21291 | fi |
21292 | done | |
21293 | ||
f09359cf VS |
21294 | fi |
21295 | ||
21d1c967 | 21296 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" |
c74dc163 | 21297 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" |
21d1c967 GD |
21298 | |
21299 | AFMINSTALL=afminstall | |
21300 | TOOLKIT=GTK | |
21301 | GUIDIST=GTK_DIST | |
21302 | ||
e6cc62c6 VS |
21303 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 |
21304 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
21305 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
21306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21307 | else |
e6cc62c6 | 21308 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 21309 | LIBS="-lgdk $LIBS" |
e6cc62c6 | 21310 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 21311 | #line $LINENO "configure" |
e6cc62c6 VS |
21312 | /* confdefs.h. */ |
21313 | _ACEOF | |
21314 | cat confdefs.h >>conftest.$ac_ext | |
21315 | cat >>conftest.$ac_ext <<_ACEOF | |
21316 | /* end confdefs.h. */ | |
21317 | ||
5c6fa7d2 | 21318 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21319 | #ifdef __cplusplus |
21320 | extern "C" | |
21321 | #endif | |
5c6fa7d2 | 21322 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21323 | builtin and then its argument prototype would still apply. */ |
21324 | char gdk_im_open (); | |
21325 | int | |
21326 | main () | |
21327 | { | |
21328 | gdk_im_open (); | |
21329 | ; | |
21330 | return 0; | |
21331 | } | |
21332 | _ACEOF | |
21333 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21334 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 21335 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21336 | ac_status=$? |
21337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21338 | (exit $ac_status); } && | |
09d3439c | 21339 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21341 | (eval $ac_try) 2>&5 | |
21342 | ac_status=$? | |
21343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21344 | (exit $ac_status); }; }; then | |
21345 | ac_cv_lib_gdk_gdk_im_open=yes | |
21346 | else | |
21347 | echo "$as_me: failed program was:" >&5 | |
21348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21349 | ||
21350 | ac_cv_lib_gdk_gdk_im_open=no | |
21351 | fi | |
09d3439c | 21352 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
21353 | LIBS=$ac_check_lib_save_LIBS |
21354 | fi | |
21355 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
21356 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
21357 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
21358 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 21359 | #define HAVE_XIM 1 |
e6cc62c6 | 21360 | _ACEOF |
21d1c967 | 21361 | |
90dd450c | 21362 | fi |
1e6feb95 | 21363 | |
21d1c967 | 21364 | fi |
1e6feb95 | 21365 | |
21d1c967 | 21366 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
21367 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 |
21368 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
21d1c967 | 21369 | if test "x$MGL_ROOT" = x ; then |
e6cc62c6 VS |
21370 | echo "$as_me:$LINENO: result: not found" >&5 |
21371 | echo "${ECHO_T}not found" >&6 | |
21372 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
21373 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
21374 | { (exit 1); exit 1; }; } | |
21d1c967 | 21375 | else |
e6cc62c6 VS |
21376 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 |
21377 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
21d1c967 GD |
21378 | fi |
21379 | ||
e6cc62c6 VS |
21380 | echo "$as_me:$LINENO: checking for libmgl location" >&5 |
21381 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
e46d2a18 | 21382 | case "${host}" in |
21d1c967 | 21383 | *-*-linux* ) |
e46d2a18 VS |
21384 | if test "x$wxUSE_SHARED" = xyes ; then |
21385 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
63a76696 | 21386 | else |
e46d2a18 | 21387 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" |
63a76696 | 21388 | fi |
21d1c967 GD |
21389 | ;; |
21390 | *-pc-msdosdjgpp ) | |
63a76696 | 21391 | mgl_os_candidates="dos32/dj2" |
21d1c967 GD |
21392 | ;; |
21393 | *) | |
e6cc62c6 VS |
21394 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 |
21395 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
21396 | { (exit 1); exit 1; }; } | |
21d1c967 | 21397 | esac |
1e6feb95 | 21398 | |
21d1c967 | 21399 | mgl_lib_type="" |
63a76696 VS |
21400 | mgl_os="" |
21401 | ||
21402 | for mgl_os_i in $mgl_os_candidates ; do | |
21403 | if test "x$mgl_os" = x ; then | |
21404 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
21405 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
21406 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
21407 | mgl_lib_type=debug | |
21408 | mgl_os=$mgl_os_i | |
21409 | fi | |
21410 | fi | |
21411 | if test "x$mgl_lib_type" = x ; then | |
21412 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
21413 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
21414 | mgl_lib_type=release | |
21415 | mgl_os=$mgl_os_i | |
21416 | fi | |
21417 | fi | |
21d1c967 | 21418 | fi |
63a76696 | 21419 | done |
2224580a | 21420 | |
63a76696 | 21421 | if test "x$mgl_os" = x ; then |
e6cc62c6 VS |
21422 | echo "$as_me:$LINENO: result: not found" >&5 |
21423 | echo "${ECHO_T}not found" >&6 | |
21424 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
21425 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
21426 | { (exit 1); exit 1; }; } | |
63a76696 | 21427 | fi |
e6cc62c6 VS |
21428 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 |
21429 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
1542ea39 | 21430 | |
1d1b75ac VZ |
21431 | wxUSE_UNIVERSAL="yes" |
21432 | ||
21d1c967 GD |
21433 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" |
21434 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
21435 | ||
90dd450c | 21436 | AFMINSTALL=afminstall |
21d1c967 GD |
21437 | TOOLKIT=MGL |
21438 | GUIDIST=MGL_DIST | |
21439 | fi | |
dad6c0ea | 21440 | |
21d1c967 | 21441 | if test "$wxUSE_MICROWIN" = 1; then |
e6cc62c6 VS |
21442 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 |
21443 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
21d1c967 | 21444 | if test "x$MICROWINDOWS" = x ; then |
e6cc62c6 VS |
21445 | echo "$as_me:$LINENO: result: not found" >&5 |
21446 | echo "${ECHO_T}not found" >&6 | |
21447 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
21448 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
21449 | { (exit 1); exit 1; }; } | |
21d1c967 | 21450 | else |
e6cc62c6 VS |
21451 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 |
21452 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
21d1c967 | 21453 | fi |
f6bcfd97 | 21454 | |
21d1c967 | 21455 | if test -f $MICROWINDOWS/lib/libmwin.a; then |
e6cc62c6 VS |
21456 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 |
21457 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
21d1c967 | 21458 | else |
e6cc62c6 VS |
21459 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 |
21460 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
21461 | { (exit 1); exit 1; }; } | |
90dd450c | 21462 | fi |
0b2effe9 | 21463 | |
21d1c967 GD |
21464 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" |
21465 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
21466 | ||
1d1b75ac VZ |
21467 | wxUSE_UNIVERSAL="yes" |
21468 | ||
21d1c967 GD |
21469 | AFMINSTALL=afminstall |
21470 | TOOLKIT=MICROWIN | |
21471 | GUIDIST=MICROWIN_DIST | |
1d1b75ac VZ |
21472 | |
21473 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
21d1c967 | 21474 | fi |
f6bcfd97 | 21475 | |
21d1c967 | 21476 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
21477 | echo "$as_me:$LINENO: checking for X" >&5 |
21478 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
21479 | ||
d8356fa3 | 21480 | |
21d1c967 GD |
21481 | # Check whether --with-x or --without-x was given. |
21482 | if test "${with_x+set}" = set; then | |
21483 | withval="$with_x" | |
2224580a | 21484 | |
e6cc62c6 | 21485 | fi; |
21d1c967 GD |
21486 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
21487 | if test "x$with_x" = xno; then | |
21488 | # The user explicitly disabled X. | |
21489 | have_x=disabled | |
21490 | else | |
21491 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
21492 | # Both variables are already set. | |
21493 | have_x=yes | |
21494 | else | |
e6cc62c6 VS |
21495 | if test "${ac_cv_have_x+set}" = set; then |
21496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 GD |
21497 | else |
21498 | # One or both of the vars are not set, and there is no cached value. | |
e6cc62c6 VS |
21499 | ac_x_includes=no ac_x_libraries=no |
21500 | rm -fr conftest.dir | |
21501 | if mkdir conftest.dir; then | |
21502 | cd conftest.dir | |
21d1c967 | 21503 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. |
e6cc62c6 | 21504 | cat >Imakefile <<'_ACEOF' |
21d1c967 GD |
21505 | acfindx: |
21506 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
e6cc62c6 | 21507 | _ACEOF |
21d1c967 GD |
21508 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then |
21509 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
21510 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
21511 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
21512 | for ac_extension in a so sl; do | |
21513 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
09d3439c VZ |
21514 | test -f $ac_im_libdir/libX11.$ac_extension; then |
21515 | ac_im_usrlibdir=$ac_im_libdir; break | |
21d1c967 GD |
21516 | fi |
21517 | done | |
21518 | # Screen out bogus values from the imake configuration. They are | |
21519 | # bogus both because they are the default anyway, and because | |
21520 | # using them would break gcc on systems where it needs fixed includes. | |
e6cc62c6 | 21521 | case $ac_im_incroot in |
21d1c967 | 21522 | /usr/include) ;; |
e6cc62c6 | 21523 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
21d1c967 | 21524 | esac |
e6cc62c6 | 21525 | case $ac_im_usrlibdir in |
21d1c967 | 21526 | /usr/lib | /lib) ;; |
e6cc62c6 | 21527 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
21d1c967 GD |
21528 | esac |
21529 | fi | |
21530 | cd .. | |
e6cc62c6 | 21531 | rm -fr conftest.dir |
21d1c967 | 21532 | fi |
10f2d63a | 21533 | |
e6cc62c6 VS |
21534 | # Standard set of common directories for X headers. |
21535 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
21536 | ac_x_header_dirs=' | |
21537 | /usr/X11/include | |
21538 | /usr/X11R6/include | |
21539 | /usr/X11R5/include | |
21540 | /usr/X11R4/include | |
21541 | ||
21542 | /usr/include/X11 | |
21543 | /usr/include/X11R6 | |
21544 | /usr/include/X11R5 | |
21545 | /usr/include/X11R4 | |
21546 | ||
21547 | /usr/local/X11/include | |
21548 | /usr/local/X11R6/include | |
21549 | /usr/local/X11R5/include | |
21550 | /usr/local/X11R4/include | |
21551 | ||
21552 | /usr/local/include/X11 | |
21553 | /usr/local/include/X11R6 | |
21554 | /usr/local/include/X11R5 | |
21555 | /usr/local/include/X11R4 | |
21556 | ||
21557 | /usr/X386/include | |
21558 | /usr/x386/include | |
21559 | /usr/XFree86/include/X11 | |
21560 | ||
21561 | /usr/include | |
21562 | /usr/local/include | |
21563 | /usr/unsupported/include | |
21564 | /usr/athena/include | |
21565 | /usr/local/x11r5/include | |
21566 | /usr/lpp/Xamples/include | |
21567 | ||
21568 | /usr/openwin/include | |
21569 | /usr/openwin/share/include' | |
21570 | ||
21571 | if test "$ac_x_includes" = no; then | |
21572 | # Guess where to find include files, by looking for Intrinsic.h. | |
21d1c967 | 21573 | # First, try using that file with no special directory specified. |
e6cc62c6 | 21574 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 21575 | #line $LINENO "configure" |
e6cc62c6 VS |
21576 | /* confdefs.h. */ |
21577 | _ACEOF | |
21578 | cat confdefs.h >>conftest.$ac_ext | |
21579 | cat >>conftest.$ac_ext <<_ACEOF | |
21580 | /* end confdefs.h. */ | |
21581 | #include <X11/Intrinsic.h> | |
21582 | _ACEOF | |
21583 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21584 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21585 | ac_status=$? | |
21586 | grep -v '^ *+' conftest.er1 >conftest.err | |
21587 | rm -f conftest.er1 | |
21588 | cat conftest.err >&5 | |
21589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21590 | (exit $ac_status); } >/dev/null; then | |
21591 | if test -s conftest.err; then | |
21592 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21593 | else | |
21594 | ac_cpp_err= | |
21595 | fi | |
21596 | else | |
21597 | ac_cpp_err=yes | |
21598 | fi | |
21599 | if test -z "$ac_cpp_err"; then | |
21d1c967 GD |
21600 | # We can compile using X headers with no special include directory. |
21601 | ac_x_includes= | |
90dd450c | 21602 | else |
e6cc62c6 VS |
21603 | echo "$as_me: failed program was:" >&5 |
21604 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21605 | ||
21606 | for ac_dir in $ac_x_header_dirs; do | |
21607 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
21608 | ac_x_includes=$ac_dir | |
21609 | break | |
21610 | fi | |
21611 | done | |
3a922bb4 | 21612 | fi |
e6cc62c6 VS |
21613 | rm -f conftest.err conftest.$ac_ext |
21614 | fi # $ac_x_includes = no | |
10f2d63a | 21615 | |
e6cc62c6 | 21616 | if test "$ac_x_libraries" = no; then |
21d1c967 | 21617 | # Check for the libraries. |
21d1c967 GD |
21618 | # See if we find them without any special options. |
21619 | # Don't add to $LIBS permanently. | |
e6cc62c6 VS |
21620 | ac_save_LIBS=$LIBS |
21621 | LIBS="-lXt $LIBS" | |
21622 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 21623 | #line $LINENO "configure" |
e6cc62c6 VS |
21624 | /* confdefs.h. */ |
21625 | _ACEOF | |
21626 | cat confdefs.h >>conftest.$ac_ext | |
21627 | cat >>conftest.$ac_ext <<_ACEOF | |
21628 | /* end confdefs.h. */ | |
21629 | #include <X11/Intrinsic.h> | |
21630 | int | |
21631 | main () | |
21632 | { | |
21633 | XtMalloc (0) | |
21634 | ; | |
21635 | return 0; | |
21636 | } | |
21637 | _ACEOF | |
21638 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21639 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 21640 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21641 | ac_status=$? |
21642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21643 | (exit $ac_status); } && | |
09d3439c | 21644 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21646 | (eval $ac_try) 2>&5 | |
21647 | ac_status=$? | |
21648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21649 | (exit $ac_status); }; }; then | |
21650 | LIBS=$ac_save_LIBS | |
21d1c967 GD |
21651 | # We can link X programs with no special library path. |
21652 | ac_x_libraries= | |
3a922bb4 | 21653 | else |
e6cc62c6 VS |
21654 | echo "$as_me: failed program was:" >&5 |
21655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21656 | ||
21657 | LIBS=$ac_save_LIBS | |
21658 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
21d1c967 | 21659 | do |
e6cc62c6 | 21660 | # Don't even attempt the hair of trying to link an X program! |
21d1c967 | 21661 | for ac_extension in a so sl; do |
e6cc62c6 | 21662 | if test -r $ac_dir/libXt.$ac_extension; then |
21d1c967 GD |
21663 | ac_x_libraries=$ac_dir |
21664 | break 2 | |
21665 | fi | |
21666 | done | |
21667 | done | |
3a922bb4 | 21668 | fi |
09d3439c | 21669 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 | 21670 | fi # $ac_x_libraries = no |
90dd450c | 21671 | |
e6cc62c6 | 21672 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then |
21d1c967 GD |
21673 | # Didn't find X anywhere. Cache the known absence of X. |
21674 | ac_cv_have_x="have_x=no" | |
21675 | else | |
21676 | # Record where we found X for the cache. | |
21677 | ac_cv_have_x="have_x=yes \ | |
09d3439c | 21678 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
90dd450c | 21679 | fi |
21d1c967 | 21680 | fi |
e6cc62c6 | 21681 | |
21d1c967 GD |
21682 | fi |
21683 | eval "$ac_cv_have_x" | |
21684 | fi # $with_x != no | |
90dd450c | 21685 | |
21d1c967 | 21686 | if test "$have_x" != yes; then |
e6cc62c6 VS |
21687 | echo "$as_me:$LINENO: result: $have_x" >&5 |
21688 | echo "${ECHO_T}$have_x" >&6 | |
21d1c967 GD |
21689 | no_x=yes |
21690 | else | |
21691 | # If each of the values was on the command line, it overrides each guess. | |
21692 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
21693 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
21694 | # Update the cache value to reflect the command line values. | |
21695 | ac_cv_have_x="have_x=yes \ | |
21696 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
e6cc62c6 VS |
21697 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
21698 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
21d1c967 | 21699 | fi |
90dd450c | 21700 | |
21d1c967 | 21701 | if test "$no_x" = yes; then |
90dd450c | 21702 | # Not all programs may use this symbol, but it does not hurt to define it. |
e6cc62c6 VS |
21703 | |
21704 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 21705 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 21706 | _ACEOF |
90dd450c VZ |
21707 | |
21708 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
21709 | else | |
21710 | if test -n "$x_includes"; then | |
21711 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
62d0491b | 21712 | fi |
3a922bb4 | 21713 | |
90dd450c VZ |
21714 | # It would also be nice to do this for all -L options, not just this one. |
21715 | if test -n "$x_libraries"; then | |
21716 | X_LIBS="$X_LIBS -L$x_libraries" | |
21717 | # For Solaris; some versions of Sun CC require a space after -R and | |
21718 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 21719 | case `(uname -sr) 2>/dev/null` in |
90dd450c | 21720 | "SunOS 5"*) |
e6cc62c6 VS |
21721 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
21722 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
21723 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
21724 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 21725 | #line $LINENO "configure" |
e6cc62c6 VS |
21726 | /* confdefs.h. */ |
21727 | _ACEOF | |
21728 | cat confdefs.h >>conftest.$ac_ext | |
21729 | cat >>conftest.$ac_ext <<_ACEOF | |
21730 | /* end confdefs.h. */ | |
21731 | ||
21732 | int | |
21733 | main () | |
21734 | { | |
90dd450c | 21735 | |
e6cc62c6 VS |
21736 | ; |
21737 | return 0; | |
21738 | } | |
21739 | _ACEOF | |
21740 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 21742 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21743 | ac_status=$? |
21744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21745 | (exit $ac_status); } && | |
09d3439c | 21746 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21748 | (eval $ac_try) 2>&5 | |
21749 | ac_status=$? | |
21750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21751 | (exit $ac_status); }; }; then | |
90dd450c | 21752 | ac_R_nospace=yes |
3a922bb4 | 21753 | else |
e6cc62c6 VS |
21754 | echo "$as_me: failed program was:" >&5 |
21755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21756 | ||
21757 | ac_R_nospace=no | |
3a922bb4 | 21758 | fi |
09d3439c | 21759 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21760 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
21761 | echo "$as_me:$LINENO: result: no" >&5 |
21762 | echo "${ECHO_T}no" >&6 | |
90dd450c VZ |
21763 | X_LIBS="$X_LIBS -R$x_libraries" |
21764 | else | |
21765 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 21766 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 21767 | #line $LINENO "configure" |
e6cc62c6 VS |
21768 | /* confdefs.h. */ |
21769 | _ACEOF | |
21770 | cat confdefs.h >>conftest.$ac_ext | |
21771 | cat >>conftest.$ac_ext <<_ACEOF | |
21772 | /* end confdefs.h. */ | |
21773 | ||
21774 | int | |
21775 | main () | |
21776 | { | |
6f754473 | 21777 | |
e6cc62c6 VS |
21778 | ; |
21779 | return 0; | |
21780 | } | |
21781 | _ACEOF | |
21782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 21784 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21785 | ac_status=$? |
21786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21787 | (exit $ac_status); } && | |
09d3439c | 21788 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21790 | (eval $ac_try) 2>&5 | |
21791 | ac_status=$? | |
21792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21793 | (exit $ac_status); }; }; then | |
90dd450c VZ |
21794 | ac_R_space=yes |
21795 | else | |
e6cc62c6 VS |
21796 | echo "$as_me: failed program was:" >&5 |
21797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21798 | ||
21799 | ac_R_space=no | |
90dd450c | 21800 | fi |
09d3439c | 21801 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
90dd450c | 21802 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
21803 | echo "$as_me:$LINENO: result: yes" >&5 |
21804 | echo "${ECHO_T}yes" >&6 | |
90dd450c VZ |
21805 | X_LIBS="$X_LIBS -R $x_libraries" |
21806 | else | |
e6cc62c6 VS |
21807 | echo "$as_me:$LINENO: result: neither works" >&5 |
21808 | echo "${ECHO_T}neither works" >&6 | |
90dd450c VZ |
21809 | fi |
21810 | fi | |
e6cc62c6 | 21811 | LIBS=$ac_xsave_LIBS |
90dd450c VZ |
21812 | esac |
21813 | fi | |
21814 | ||
21815 | # Check for system-dependent libraries X programs must link with. | |
21816 | # Do this before checking for the system-independent R6 libraries | |
21817 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
6f754473 | 21818 | |
90dd450c VZ |
21819 | if test "$ISC" = yes; then |
21820 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
21821 | else | |
e6cc62c6 VS |
21822 | # Martyn Johnson says this is needed for Ultrix, if the X |
21823 | # libraries were built with DECnet support. And Karl Berry says | |
90dd450c | 21824 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
21825 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
21826 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 21827 | #line $LINENO "configure" |
e6cc62c6 VS |
21828 | /* confdefs.h. */ |
21829 | _ACEOF | |
21830 | cat confdefs.h >>conftest.$ac_ext | |
21831 | cat >>conftest.$ac_ext <<_ACEOF | |
21832 | /* end confdefs.h. */ | |
21833 | ||
247f5006 | 21834 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21835 | #ifdef __cplusplus |
21836 | extern "C" | |
21837 | #endif | |
247f5006 | 21838 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21839 | builtin and then its argument prototype would still apply. */ |
21840 | char XOpenDisplay (); | |
21841 | int | |
21842 | main () | |
21843 | { | |
21844 | XOpenDisplay (); | |
21845 | ; | |
21846 | return 0; | |
21847 | } | |
21848 | _ACEOF | |
21849 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 21851 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21852 | ac_status=$? |
21853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21854 | (exit $ac_status); } && | |
09d3439c | 21855 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21857 | (eval $ac_try) 2>&5 | |
21858 | ac_status=$? | |
21859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21860 | (exit $ac_status); }; }; then | |
21861 | : | |
21862 | else | |
21863 | echo "$as_me: failed program was:" >&5 | |
21864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 21865 | |
e6cc62c6 VS |
21866 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
21867 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
21868 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
21869 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 21870 | else |
e6cc62c6 VS |
21871 | ac_check_lib_save_LIBS=$LIBS |
21872 | LIBS="-ldnet $LIBS" | |
21873 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 21874 | #line $LINENO "configure" |
e6cc62c6 VS |
21875 | /* confdefs.h. */ |
21876 | _ACEOF | |
21877 | cat confdefs.h >>conftest.$ac_ext | |
21878 | cat >>conftest.$ac_ext <<_ACEOF | |
21879 | /* end confdefs.h. */ | |
a0b9e27f | 21880 | |
e6cc62c6 VS |
21881 | /* Override any gcc2 internal prototype to avoid an error. */ |
21882 | #ifdef __cplusplus | |
21883 | extern "C" | |
21884 | #endif | |
21885 | /* We use char because int might match the return type of a gcc2 | |
21886 | builtin and then its argument prototype would still apply. */ | |
21887 | char dnet_ntoa (); | |
21888 | int | |
21889 | main () | |
21890 | { | |
21891 | dnet_ntoa (); | |
21892 | ; | |
21893 | return 0; | |
21894 | } | |
21895 | _ACEOF | |
21896 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 21898 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21899 | ac_status=$? |
21900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21901 | (exit $ac_status); } && | |
09d3439c | 21902 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21904 | (eval $ac_try) 2>&5 | |
21905 | ac_status=$? | |
21906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21907 | (exit $ac_status); }; }; then | |
21908 | ac_cv_lib_dnet_dnet_ntoa=yes | |
21909 | else | |
21910 | echo "$as_me: failed program was:" >&5 | |
21911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21912 | ||
21913 | ac_cv_lib_dnet_dnet_ntoa=no | |
21914 | fi | |
09d3439c | 21915 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
21916 | LIBS=$ac_check_lib_save_LIBS |
21917 | fi | |
21918 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
21919 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
21920 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
90dd450c | 21921 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
3a922bb4 RL |
21922 | fi |
21923 | ||
90dd450c | 21924 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
21925 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
21926 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
21927 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
21928 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 21929 | else |
e6cc62c6 | 21930 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 21931 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 21932 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 21933 | #line $LINENO "configure" |
e6cc62c6 VS |
21934 | /* confdefs.h. */ |
21935 | _ACEOF | |
21936 | cat confdefs.h >>conftest.$ac_ext | |
21937 | cat >>conftest.$ac_ext <<_ACEOF | |
21938 | /* end confdefs.h. */ | |
21939 | ||
90dd450c | 21940 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
21941 | #ifdef __cplusplus |
21942 | extern "C" | |
21943 | #endif | |
90dd450c | 21944 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
21945 | builtin and then its argument prototype would still apply. */ |
21946 | char dnet_ntoa (); | |
21947 | int | |
21948 | main () | |
21949 | { | |
21950 | dnet_ntoa (); | |
21951 | ; | |
21952 | return 0; | |
21953 | } | |
21954 | _ACEOF | |
21955 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21956 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 21957 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
21958 | ac_status=$? |
21959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21960 | (exit $ac_status); } && | |
09d3439c | 21961 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
21962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21963 | (eval $ac_try) 2>&5 | |
21964 | ac_status=$? | |
21965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21966 | (exit $ac_status); }; }; then | |
21967 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
21968 | else | |
21969 | echo "$as_me: failed program was:" >&5 | |
21970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21971 | ||
21972 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
21973 | fi | |
09d3439c | 21974 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
21975 | LIBS=$ac_check_lib_save_LIBS |
21976 | fi | |
21977 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
21978 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
21979 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
90dd450c | 21980 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
3a922bb4 RL |
21981 | fi |
21982 | ||
90dd450c | 21983 | fi |
e6cc62c6 | 21984 | fi |
09d3439c | 21985 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 | 21986 | LIBS="$ac_xsave_LIBS" |
978f1259 | 21987 | |
90dd450c VZ |
21988 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
21989 | # to get the SysV transport functions. | |
e6cc62c6 | 21990 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
90dd450c VZ |
21991 | # needs -lnsl. |
21992 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
21993 | # on Irix 5.2, according to T.E. Dickey. |
21994 | # The functions gethostbyname, getservbyname, and inet_addr are | |
21995 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
21996 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
21997 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
21998 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
21999 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22000 | else | |
22001 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 22002 | #line $LINENO "configure" |
e6cc62c6 VS |
22003 | /* confdefs.h. */ |
22004 | _ACEOF | |
22005 | cat confdefs.h >>conftest.$ac_ext | |
22006 | cat >>conftest.$ac_ext <<_ACEOF | |
22007 | /* end confdefs.h. */ | |
90dd450c | 22008 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22009 | which can conflict with char gethostbyname (); below. |
22010 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22011 | <limits.h> exists even on freestanding compilers. */ | |
22012 | #ifdef __STDC__ | |
22013 | # include <limits.h> | |
22014 | #else | |
22015 | # include <assert.h> | |
22016 | #endif | |
90dd450c | 22017 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22018 | #ifdef __cplusplus |
22019 | extern "C" | |
22020 | { | |
22021 | #endif | |
90dd450c | 22022 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22023 | builtin and then its argument prototype would still apply. */ |
22024 | char gethostbyname (); | |
90dd450c VZ |
22025 | /* The GNU C library defines this for functions which it implements |
22026 | to always fail with ENOSYS. Some functions are actually named | |
22027 | something starting with __ and the normal name is an alias. */ | |
22028 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
22029 | choke me | |
22030 | #else | |
e6cc62c6 VS |
22031 | char (*f) () = gethostbyname; |
22032 | #endif | |
22033 | #ifdef __cplusplus | |
22034 | } | |
90dd450c | 22035 | #endif |
978f1259 | 22036 | |
e6cc62c6 VS |
22037 | int |
22038 | main () | |
22039 | { | |
22040 | return f != gethostbyname; | |
22041 | ; | |
22042 | return 0; | |
22043 | } | |
22044 | _ACEOF | |
22045 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 22047 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22048 | ac_status=$? |
22049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22050 | (exit $ac_status); } && | |
09d3439c | 22051 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22053 | (eval $ac_try) 2>&5 | |
22054 | ac_status=$? | |
22055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22056 | (exit $ac_status); }; }; then | |
22057 | ac_cv_func_gethostbyname=yes | |
22058 | else | |
22059 | echo "$as_me: failed program was:" >&5 | |
22060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22061 | ||
22062 | ac_cv_func_gethostbyname=no | |
22063 | fi | |
09d3439c | 22064 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22065 | fi |
22066 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
22067 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
698dcdb6 | 22068 | |
90dd450c | 22069 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
22070 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
22071 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
22072 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
22073 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22074 | else |
e6cc62c6 | 22075 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22076 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 22077 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 22078 | #line $LINENO "configure" |
e6cc62c6 VS |
22079 | /* confdefs.h. */ |
22080 | _ACEOF | |
22081 | cat confdefs.h >>conftest.$ac_ext | |
22082 | cat >>conftest.$ac_ext <<_ACEOF | |
22083 | /* end confdefs.h. */ | |
22084 | ||
90dd450c | 22085 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22086 | #ifdef __cplusplus |
22087 | extern "C" | |
22088 | #endif | |
90dd450c | 22089 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22090 | builtin and then its argument prototype would still apply. */ |
22091 | char gethostbyname (); | |
22092 | int | |
22093 | main () | |
22094 | { | |
22095 | gethostbyname (); | |
22096 | ; | |
22097 | return 0; | |
22098 | } | |
22099 | _ACEOF | |
22100 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 22102 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22103 | ac_status=$? |
22104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22105 | (exit $ac_status); } && | |
09d3439c | 22106 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22108 | (eval $ac_try) 2>&5 | |
22109 | ac_status=$? | |
22110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22111 | (exit $ac_status); }; }; then | |
22112 | ac_cv_lib_nsl_gethostbyname=yes | |
22113 | else | |
22114 | echo "$as_me: failed program was:" >&5 | |
22115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22116 | ||
22117 | ac_cv_lib_nsl_gethostbyname=no | |
22118 | fi | |
09d3439c | 22119 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22120 | LIBS=$ac_check_lib_save_LIBS |
22121 | fi | |
22122 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
22123 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
22124 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
22125 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 22126 | fi |
247f5006 | 22127 | |
e6cc62c6 | 22128 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
09d3439c | 22129 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
22130 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
22131 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
22132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22133 | else |
e6cc62c6 VS |
22134 | ac_check_lib_save_LIBS=$LIBS |
22135 | LIBS="-lbsd $LIBS" | |
22136 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 22137 | #line $LINENO "configure" |
e6cc62c6 VS |
22138 | /* confdefs.h. */ |
22139 | _ACEOF | |
22140 | cat confdefs.h >>conftest.$ac_ext | |
22141 | cat >>conftest.$ac_ext <<_ACEOF | |
22142 | /* end confdefs.h. */ | |
22143 | ||
22144 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22145 | #ifdef __cplusplus | |
22146 | extern "C" | |
22147 | #endif | |
22148 | /* We use char because int might match the return type of a gcc2 | |
22149 | builtin and then its argument prototype would still apply. */ | |
22150 | char gethostbyname (); | |
22151 | int | |
22152 | main () | |
22153 | { | |
22154 | gethostbyname (); | |
22155 | ; | |
22156 | return 0; | |
22157 | } | |
22158 | _ACEOF | |
22159 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22160 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 22161 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22162 | ac_status=$? |
22163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22164 | (exit $ac_status); } && | |
09d3439c | 22165 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22167 | (eval $ac_try) 2>&5 | |
22168 | ac_status=$? | |
22169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22170 | (exit $ac_status); }; }; then | |
22171 | ac_cv_lib_bsd_gethostbyname=yes | |
22172 | else | |
22173 | echo "$as_me: failed program was:" >&5 | |
22174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22175 | ||
22176 | ac_cv_lib_bsd_gethostbyname=no | |
22177 | fi | |
09d3439c | 22178 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22179 | LIBS=$ac_check_lib_save_LIBS |
22180 | fi | |
22181 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
22182 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
22183 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
22184 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
90dd450c | 22185 | fi |
b12915c1 | 22186 | |
e6cc62c6 | 22187 | fi |
90dd450c VZ |
22188 | fi |
22189 | ||
22190 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
22191 | # socket/setsockopt and other routines are undefined under SCO ODT | |
22192 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
22193 | # on later versions), says Simon Leinen: it contains gethostby* |
22194 | # variants that don't use the name server (or something). -lsocket | |
22195 | # must be given before -lnsl if both are needed. We assume that | |
22196 | # if connect needs -lnsl, so does gethostbyname. | |
22197 | echo "$as_me:$LINENO: checking for connect" >&5 | |
22198 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
22199 | if test "${ac_cv_func_connect+set}" = set; then | |
22200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22201 | else | |
22202 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 22203 | #line $LINENO "configure" |
e6cc62c6 VS |
22204 | /* confdefs.h. */ |
22205 | _ACEOF | |
22206 | cat confdefs.h >>conftest.$ac_ext | |
22207 | cat >>conftest.$ac_ext <<_ACEOF | |
22208 | /* end confdefs.h. */ | |
90dd450c | 22209 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22210 | which can conflict with char connect (); below. |
22211 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22212 | <limits.h> exists even on freestanding compilers. */ | |
22213 | #ifdef __STDC__ | |
22214 | # include <limits.h> | |
22215 | #else | |
22216 | # include <assert.h> | |
22217 | #endif | |
90dd450c | 22218 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22219 | #ifdef __cplusplus |
22220 | extern "C" | |
22221 | { | |
22222 | #endif | |
90dd450c | 22223 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22224 | builtin and then its argument prototype would still apply. */ |
22225 | char connect (); | |
90dd450c VZ |
22226 | /* The GNU C library defines this for functions which it implements |
22227 | to always fail with ENOSYS. Some functions are actually named | |
22228 | something starting with __ and the normal name is an alias. */ | |
22229 | #if defined (__stub_connect) || defined (__stub___connect) | |
22230 | choke me | |
22231 | #else | |
e6cc62c6 VS |
22232 | char (*f) () = connect; |
22233 | #endif | |
22234 | #ifdef __cplusplus | |
22235 | } | |
90dd450c VZ |
22236 | #endif |
22237 | ||
e6cc62c6 VS |
22238 | int |
22239 | main () | |
22240 | { | |
22241 | return f != connect; | |
22242 | ; | |
22243 | return 0; | |
22244 | } | |
22245 | _ACEOF | |
22246 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22247 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 22248 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22249 | ac_status=$? |
22250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22251 | (exit $ac_status); } && | |
09d3439c | 22252 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22254 | (eval $ac_try) 2>&5 | |
22255 | ac_status=$? | |
22256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22257 | (exit $ac_status); }; }; then | |
22258 | ac_cv_func_connect=yes | |
22259 | else | |
22260 | echo "$as_me: failed program was:" >&5 | |
22261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22262 | ||
22263 | ac_cv_func_connect=no | |
22264 | fi | |
09d3439c | 22265 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22266 | fi |
22267 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
22268 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
55e80573 | 22269 | |
90dd450c | 22270 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
22271 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
22272 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
22273 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
22274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22275 | else |
e6cc62c6 | 22276 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22277 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 22278 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 22279 | #line $LINENO "configure" |
e6cc62c6 VS |
22280 | /* confdefs.h. */ |
22281 | _ACEOF | |
22282 | cat confdefs.h >>conftest.$ac_ext | |
22283 | cat >>conftest.$ac_ext <<_ACEOF | |
22284 | /* end confdefs.h. */ | |
22285 | ||
90dd450c | 22286 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22287 | #ifdef __cplusplus |
22288 | extern "C" | |
22289 | #endif | |
90dd450c | 22290 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22291 | builtin and then its argument prototype would still apply. */ |
22292 | char connect (); | |
22293 | int | |
22294 | main () | |
22295 | { | |
22296 | connect (); | |
22297 | ; | |
22298 | return 0; | |
22299 | } | |
22300 | _ACEOF | |
22301 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 22303 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22304 | ac_status=$? |
22305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22306 | (exit $ac_status); } && | |
09d3439c | 22307 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22308 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22309 | (eval $ac_try) 2>&5 | |
22310 | ac_status=$? | |
22311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22312 | (exit $ac_status); }; }; then | |
22313 | ac_cv_lib_socket_connect=yes | |
22314 | else | |
22315 | echo "$as_me: failed program was:" >&5 | |
22316 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22317 | ||
22318 | ac_cv_lib_socket_connect=no | |
22319 | fi | |
09d3439c | 22320 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22321 | LIBS=$ac_check_lib_save_LIBS |
22322 | fi | |
22323 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
22324 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
22325 | if test $ac_cv_lib_socket_connect = yes; then | |
90dd450c | 22326 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
90dd450c | 22327 | fi |
77e13408 | 22328 | |
90dd450c | 22329 | fi |
25d0687a | 22330 | |
e6cc62c6 VS |
22331 | # Guillermo Gomez says -lposix is necessary on A/UX. |
22332 | echo "$as_me:$LINENO: checking for remove" >&5 | |
22333 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
22334 | if test "${ac_cv_func_remove+set}" = set; then | |
22335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22336 | else | |
22337 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 22338 | #line $LINENO "configure" |
e6cc62c6 VS |
22339 | /* confdefs.h. */ |
22340 | _ACEOF | |
22341 | cat confdefs.h >>conftest.$ac_ext | |
22342 | cat >>conftest.$ac_ext <<_ACEOF | |
22343 | /* end confdefs.h. */ | |
90dd450c | 22344 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22345 | which can conflict with char remove (); below. |
22346 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22347 | <limits.h> exists even on freestanding compilers. */ | |
22348 | #ifdef __STDC__ | |
22349 | # include <limits.h> | |
22350 | #else | |
22351 | # include <assert.h> | |
22352 | #endif | |
90dd450c | 22353 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22354 | #ifdef __cplusplus |
22355 | extern "C" | |
22356 | { | |
22357 | #endif | |
90dd450c | 22358 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22359 | builtin and then its argument prototype would still apply. */ |
22360 | char remove (); | |
90dd450c VZ |
22361 | /* The GNU C library defines this for functions which it implements |
22362 | to always fail with ENOSYS. Some functions are actually named | |
22363 | something starting with __ and the normal name is an alias. */ | |
22364 | #if defined (__stub_remove) || defined (__stub___remove) | |
22365 | choke me | |
22366 | #else | |
e6cc62c6 VS |
22367 | char (*f) () = remove; |
22368 | #endif | |
22369 | #ifdef __cplusplus | |
22370 | } | |
90dd450c | 22371 | #endif |
55e80573 | 22372 | |
e6cc62c6 VS |
22373 | int |
22374 | main () | |
22375 | { | |
22376 | return f != remove; | |
22377 | ; | |
22378 | return 0; | |
22379 | } | |
22380 | _ACEOF | |
22381 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22382 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 22383 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22384 | ac_status=$? |
22385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22386 | (exit $ac_status); } && | |
09d3439c | 22387 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22389 | (eval $ac_try) 2>&5 | |
22390 | ac_status=$? | |
22391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22392 | (exit $ac_status); }; }; then | |
22393 | ac_cv_func_remove=yes | |
22394 | else | |
22395 | echo "$as_me: failed program was:" >&5 | |
22396 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22397 | ||
22398 | ac_cv_func_remove=no | |
22399 | fi | |
09d3439c | 22400 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22401 | fi |
22402 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
22403 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
10f2d63a | 22404 | |
90dd450c | 22405 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
22406 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
22407 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
22408 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
22409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
90dd450c | 22410 | else |
e6cc62c6 | 22411 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22412 | LIBS="-lposix $LIBS" |
e6cc62c6 | 22413 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 22414 | #line $LINENO "configure" |
e6cc62c6 VS |
22415 | /* confdefs.h. */ |
22416 | _ACEOF | |
22417 | cat confdefs.h >>conftest.$ac_ext | |
22418 | cat >>conftest.$ac_ext <<_ACEOF | |
22419 | /* end confdefs.h. */ | |
22420 | ||
90dd450c | 22421 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22422 | #ifdef __cplusplus |
22423 | extern "C" | |
22424 | #endif | |
90dd450c | 22425 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22426 | builtin and then its argument prototype would still apply. */ |
22427 | char remove (); | |
22428 | int | |
22429 | main () | |
22430 | { | |
22431 | remove (); | |
22432 | ; | |
22433 | return 0; | |
22434 | } | |
22435 | _ACEOF | |
22436 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22437 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 22438 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22439 | ac_status=$? |
22440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22441 | (exit $ac_status); } && | |
09d3439c | 22442 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22444 | (eval $ac_try) 2>&5 | |
22445 | ac_status=$? | |
22446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22447 | (exit $ac_status); }; }; then | |
22448 | ac_cv_lib_posix_remove=yes | |
22449 | else | |
22450 | echo "$as_me: failed program was:" >&5 | |
22451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22452 | ||
22453 | ac_cv_lib_posix_remove=no | |
22454 | fi | |
09d3439c | 22455 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22456 | LIBS=$ac_check_lib_save_LIBS |
22457 | fi | |
22458 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
22459 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
22460 | if test $ac_cv_lib_posix_remove = yes; then | |
90dd450c | 22461 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
90dd450c | 22462 | fi |
f6bcfd97 | 22463 | |
6fa882bd RR |
22464 | fi |
22465 | ||
90dd450c | 22466 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
22467 | echo "$as_me:$LINENO: checking for shmat" >&5 |
22468 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
22469 | if test "${ac_cv_func_shmat+set}" = set; then | |
22470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22471 | else | |
22472 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 22473 | #line $LINENO "configure" |
e6cc62c6 VS |
22474 | /* confdefs.h. */ |
22475 | _ACEOF | |
22476 | cat confdefs.h >>conftest.$ac_ext | |
22477 | cat >>conftest.$ac_ext <<_ACEOF | |
22478 | /* end confdefs.h. */ | |
90dd450c | 22479 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
22480 | which can conflict with char shmat (); below. |
22481 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22482 | <limits.h> exists even on freestanding compilers. */ | |
22483 | #ifdef __STDC__ | |
22484 | # include <limits.h> | |
22485 | #else | |
22486 | # include <assert.h> | |
22487 | #endif | |
90dd450c | 22488 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22489 | #ifdef __cplusplus |
22490 | extern "C" | |
22491 | { | |
22492 | #endif | |
90dd450c | 22493 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22494 | builtin and then its argument prototype would still apply. */ |
22495 | char shmat (); | |
90dd450c VZ |
22496 | /* The GNU C library defines this for functions which it implements |
22497 | to always fail with ENOSYS. Some functions are actually named | |
22498 | something starting with __ and the normal name is an alias. */ | |
22499 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
22500 | choke me | |
22501 | #else | |
e6cc62c6 VS |
22502 | char (*f) () = shmat; |
22503 | #endif | |
22504 | #ifdef __cplusplus | |
22505 | } | |
90dd450c | 22506 | #endif |
10f2d63a | 22507 | |
e6cc62c6 VS |
22508 | int |
22509 | main () | |
22510 | { | |
22511 | return f != shmat; | |
22512 | ; | |
22513 | return 0; | |
22514 | } | |
22515 | _ACEOF | |
22516 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22517 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 22518 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22519 | ac_status=$? |
22520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22521 | (exit $ac_status); } && | |
09d3439c | 22522 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22524 | (eval $ac_try) 2>&5 | |
22525 | ac_status=$? | |
22526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22527 | (exit $ac_status); }; }; then | |
22528 | ac_cv_func_shmat=yes | |
22529 | else | |
22530 | echo "$as_me: failed program was:" >&5 | |
22531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22532 | ||
22533 | ac_cv_func_shmat=no | |
22534 | fi | |
09d3439c | 22535 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22536 | fi |
22537 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
22538 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
d08b457b | 22539 | |
90dd450c | 22540 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
22541 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
22542 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
22543 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
22544 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d08b457b | 22545 | else |
e6cc62c6 | 22546 | ac_check_lib_save_LIBS=$LIBS |
90dd450c | 22547 | LIBS="-lipc $LIBS" |
e6cc62c6 | 22548 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 22549 | #line $LINENO "configure" |
e6cc62c6 VS |
22550 | /* confdefs.h. */ |
22551 | _ACEOF | |
22552 | cat confdefs.h >>conftest.$ac_ext | |
22553 | cat >>conftest.$ac_ext <<_ACEOF | |
22554 | /* end confdefs.h. */ | |
22555 | ||
8284b0c5 | 22556 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22557 | #ifdef __cplusplus |
22558 | extern "C" | |
22559 | #endif | |
90dd450c | 22560 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22561 | builtin and then its argument prototype would still apply. */ |
22562 | char shmat (); | |
22563 | int | |
22564 | main () | |
22565 | { | |
22566 | shmat (); | |
22567 | ; | |
22568 | return 0; | |
22569 | } | |
22570 | _ACEOF | |
22571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 22573 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22574 | ac_status=$? |
22575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22576 | (exit $ac_status); } && | |
09d3439c | 22577 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22579 | (eval $ac_try) 2>&5 | |
22580 | ac_status=$? | |
22581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22582 | (exit $ac_status); }; }; then | |
22583 | ac_cv_lib_ipc_shmat=yes | |
22584 | else | |
22585 | echo "$as_me: failed program was:" >&5 | |
22586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22587 | ||
22588 | ac_cv_lib_ipc_shmat=no | |
22589 | fi | |
09d3439c | 22590 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22591 | LIBS=$ac_check_lib_save_LIBS |
22592 | fi | |
22593 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
22594 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
22595 | if test $ac_cv_lib_ipc_shmat = yes; then | |
90dd450c | 22596 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
d08b457b GD |
22597 | fi |
22598 | ||
d558c907 | 22599 | fi |
90dd450c | 22600 | fi |
3a922bb4 | 22601 | |
90dd450c | 22602 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 22603 | ac_save_LDFLAGS=$LDFLAGS |
90dd450c VZ |
22604 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
22605 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
22606 | # check for ICE first), but we must link in the order -lSM -lICE or | |
22607 | # we get undefined symbols. So assume we have SM if we have ICE. | |
22608 | # These have to be linked with before -lX11, unlike the other | |
22609 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
22610 | # John Interrante, Karl Berry |
22611 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
22612 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
22613 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
22614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22615 | else | |
22616 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 22617 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 22618 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 22619 | #line $LINENO "configure" |
e6cc62c6 VS |
22620 | /* confdefs.h. */ |
22621 | _ACEOF | |
22622 | cat confdefs.h >>conftest.$ac_ext | |
22623 | cat >>conftest.$ac_ext <<_ACEOF | |
22624 | /* end confdefs.h. */ | |
22625 | ||
90dd450c | 22626 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
22627 | #ifdef __cplusplus |
22628 | extern "C" | |
22629 | #endif | |
90dd450c | 22630 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
22631 | builtin and then its argument prototype would still apply. */ |
22632 | char IceConnectionNumber (); | |
22633 | int | |
22634 | main () | |
22635 | { | |
22636 | IceConnectionNumber (); | |
22637 | ; | |
22638 | return 0; | |
22639 | } | |
22640 | _ACEOF | |
22641 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22642 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 22643 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
22644 | ac_status=$? |
22645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22646 | (exit $ac_status); } && | |
09d3439c | 22647 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
22648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22649 | (eval $ac_try) 2>&5 | |
22650 | ac_status=$? | |
22651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22652 | (exit $ac_status); }; }; then | |
22653 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
22654 | else | |
22655 | echo "$as_me: failed program was:" >&5 | |
22656 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22657 | ||
22658 | ac_cv_lib_ICE_IceConnectionNumber=no | |
22659 | fi | |
09d3439c | 22660 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
22661 | LIBS=$ac_check_lib_save_LIBS |
22662 | fi | |
22663 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
22664 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
22665 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
90dd450c | 22666 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
9cfadba2 | 22667 | fi |
10f2d63a | 22668 | |
e6cc62c6 | 22669 | LDFLAGS=$ac_save_LDFLAGS |
90dd450c VZ |
22670 | |
22671 | fi | |
22672 | ||
8284b0c5 | 22673 | |
90dd450c | 22674 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
22675 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
22676 | echo "$as_me: error: X11 not found" >&2;} | |
22677 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
90dd450c VZ |
22678 | fi |
22679 | ||
22680 | GUI_TK_LIBRARY="$X_LIBS" | |
22681 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
22682 | AFMINSTALL=afminstall | |
22683 | COMPILED_X_PROGRAM=0 | |
22684 | ||
21d1c967 | 22685 | if test "$wxUSE_NANOX" = "yes"; then |
e6cc62c6 VS |
22686 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 |
22687 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
21d1c967 | 22688 | if test "x$MICROWIN" = x ; then |
e6cc62c6 VS |
22689 | echo "$as_me:$LINENO: result: not found" >&5 |
22690 | echo "${ECHO_T}not found" >&6 | |
22691 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
22692 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
22693 | { (exit 1); exit 1; }; } | |
90dd450c | 22694 | else |
e6cc62c6 VS |
22695 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 |
22696 | echo "${ECHO_T}$MICROWIN" >&6 | |
22697 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 22698 | #define wxUSE_NANOX 1 |
e6cc62c6 | 22699 | _ACEOF |
21d1c967 | 22700 | |
90dd450c VZ |
22701 | fi |
22702 | fi | |
22703 | ||
2b5f62a0 | 22704 | if test "$wxUSE_UNICODE" = "yes"; then |
e6cc62c6 | 22705 | |
2b5f62a0 | 22706 | succeeded=no |
90dd450c | 22707 | |
2b5f62a0 VZ |
22708 | if test -z "$PKG_CONFIG"; then |
22709 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22710 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22711 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22712 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22713 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22714 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 22715 | else |
e6cc62c6 VS |
22716 | case $PKG_CONFIG in |
22717 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22718 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22719 | ;; | |
2b5f62a0 | 22720 | *) |
e6cc62c6 VS |
22721 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22722 | for as_dir in $PATH | |
22723 | do | |
22724 | IFS=$as_save_IFS | |
22725 | test -z "$as_dir" && as_dir=. | |
22726 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22727 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22728 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22729 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22730 | break 2 | |
22731 | fi | |
22732 | done | |
22733 | done | |
22734 | ||
2b5f62a0 VZ |
22735 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22736 | ;; | |
22737 | esac | |
22738 | fi | |
e6cc62c6 VS |
22739 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22740 | ||
2b5f62a0 | 22741 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22742 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22743 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22744 | else |
e6cc62c6 VS |
22745 | echo "$as_me:$LINENO: result: no" >&5 |
22746 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22747 | fi |
22748 | ||
22749 | fi | |
22750 | ||
22751 | if test "$PKG_CONFIG" = "no" ; then | |
22752 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22753 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22754 | echo "*** to the full path to pkg-config." | |
22755 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22756 | else | |
22757 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22758 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22759 | echo "$as_me:$LINENO: checking for pangox" >&5 |
22760 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22761 | |
22762 | if $PKG_CONFIG --exists "pangox" ; then | |
e6cc62c6 VS |
22763 | echo "$as_me:$LINENO: result: yes" >&5 |
22764 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22765 | succeeded=yes |
22766 | ||
e6cc62c6 VS |
22767 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 |
22768 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22769 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` |
e6cc62c6 VS |
22770 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 |
22771 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
2b5f62a0 | 22772 | |
e6cc62c6 VS |
22773 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 |
22774 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22775 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` |
e6cc62c6 VS |
22776 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 |
22777 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
2b5f62a0 VZ |
22778 | else |
22779 | PANGOX_CFLAGS="" | |
22780 | PANGOX_LIBS="" | |
e6cc62c6 | 22781 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22782 | ## do set a variable so people can do so. |
22783 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
e6cc62c6 | 22784 | |
2b5f62a0 VZ |
22785 | fi |
22786 | ||
e6cc62c6 VS |
22787 | |
22788 | ||
2b5f62a0 VZ |
22789 | else |
22790 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22791 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22792 | fi | |
22793 | fi | |
22794 | ||
22795 | if test $succeeded = yes; then | |
e6cc62c6 | 22796 | |
2b5f62a0 | 22797 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" |
c74dc163 | 22798 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" |
e6cc62c6 | 22799 | |
2b5f62a0 | 22800 | else |
e6cc62c6 VS |
22801 | |
22802 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
22803 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
22804 | { (exit 1); exit 1; }; } | |
22805 | ||
22806 | ||
2b5f62a0 VZ |
22807 | fi |
22808 | ||
e6cc62c6 | 22809 | |
2b5f62a0 VZ |
22810 | succeeded=no |
22811 | ||
22812 | if test -z "$PKG_CONFIG"; then | |
22813 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22814 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22815 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22817 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22819 | else |
e6cc62c6 VS |
22820 | case $PKG_CONFIG in |
22821 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22822 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22823 | ;; | |
2b5f62a0 | 22824 | *) |
e6cc62c6 VS |
22825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22826 | for as_dir in $PATH | |
22827 | do | |
22828 | IFS=$as_save_IFS | |
22829 | test -z "$as_dir" && as_dir=. | |
22830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22831 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22832 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22834 | break 2 | |
22835 | fi | |
22836 | done | |
22837 | done | |
22838 | ||
2b5f62a0 VZ |
22839 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22840 | ;; | |
22841 | esac | |
22842 | fi | |
e6cc62c6 VS |
22843 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22844 | ||
2b5f62a0 | 22845 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22846 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22847 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22848 | else |
e6cc62c6 VS |
22849 | echo "$as_me:$LINENO: result: no" >&5 |
22850 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22851 | fi |
22852 | ||
22853 | fi | |
22854 | ||
22855 | if test "$PKG_CONFIG" = "no" ; then | |
22856 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22857 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22858 | echo "*** to the full path to pkg-config." | |
22859 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22860 | else | |
22861 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22862 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22863 | echo "$as_me:$LINENO: checking for pangoft2" >&5 |
22864 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22865 | |
22866 | if $PKG_CONFIG --exists "pangoft2" ; then | |
e6cc62c6 VS |
22867 | echo "$as_me:$LINENO: result: yes" >&5 |
22868 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22869 | succeeded=yes |
22870 | ||
e6cc62c6 VS |
22871 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 |
22872 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22873 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` |
e6cc62c6 VS |
22874 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 |
22875 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
2b5f62a0 | 22876 | |
e6cc62c6 VS |
22877 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 |
22878 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22879 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` |
e6cc62c6 VS |
22880 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 |
22881 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
2b5f62a0 VZ |
22882 | else |
22883 | PANGOFT2_CFLAGS="" | |
22884 | PANGOFT2_LIBS="" | |
e6cc62c6 | 22885 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22886 | ## do set a variable so people can do so. |
22887 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
e6cc62c6 | 22888 | |
2b5f62a0 VZ |
22889 | fi |
22890 | ||
e6cc62c6 VS |
22891 | |
22892 | ||
2b5f62a0 VZ |
22893 | else |
22894 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22895 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
22896 | fi | |
22897 | fi | |
22898 | ||
22899 | if test $succeeded = yes; then | |
e6cc62c6 | 22900 | |
2b5f62a0 | 22901 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" |
c74dc163 | 22902 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" |
e6cc62c6 | 22903 | |
2b5f62a0 | 22904 | else |
e6cc62c6 VS |
22905 | |
22906 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
22907 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
2b5f62a0 | 22908 | wxUSE_PRINTING_ARCHITECTURE="no" |
e6cc62c6 VS |
22909 | |
22910 | ||
2b5f62a0 VZ |
22911 | fi |
22912 | ||
e6cc62c6 | 22913 | |
2b5f62a0 VZ |
22914 | succeeded=no |
22915 | ||
22916 | if test -z "$PKG_CONFIG"; then | |
22917 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
22918 | set dummy pkg-config; ac_word=$2 | |
e6cc62c6 VS |
22919 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22920 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
22921 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
22922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 22923 | else |
e6cc62c6 VS |
22924 | case $PKG_CONFIG in |
22925 | [\\/]* | ?:[\\/]*) | |
2b5f62a0 VZ |
22926 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
22927 | ;; | |
2b5f62a0 | 22928 | *) |
e6cc62c6 VS |
22929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22930 | for as_dir in $PATH | |
22931 | do | |
22932 | IFS=$as_save_IFS | |
22933 | test -z "$as_dir" && as_dir=. | |
22934 | for ac_exec_ext in '' $ac_executable_extensions; do | |
22935 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
22936 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
22937 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
22938 | break 2 | |
22939 | fi | |
22940 | done | |
22941 | done | |
22942 | ||
2b5f62a0 VZ |
22943 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
22944 | ;; | |
22945 | esac | |
22946 | fi | |
e6cc62c6 VS |
22947 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
22948 | ||
2b5f62a0 | 22949 | if test -n "$PKG_CONFIG"; then |
e6cc62c6 VS |
22950 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
22951 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
2b5f62a0 | 22952 | else |
e6cc62c6 VS |
22953 | echo "$as_me:$LINENO: result: no" >&5 |
22954 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
22955 | fi |
22956 | ||
22957 | fi | |
22958 | ||
22959 | if test "$PKG_CONFIG" = "no" ; then | |
22960 | echo "*** The pkg-config script could not be found. Make sure it is" | |
22961 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
22962 | echo "*** to the full path to pkg-config." | |
22963 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
22964 | else | |
22965 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
22966 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
e6cc62c6 VS |
22967 | echo "$as_me:$LINENO: checking for pangoxft" >&5 |
22968 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
2b5f62a0 VZ |
22969 | |
22970 | if $PKG_CONFIG --exists "pangoxft" ; then | |
e6cc62c6 VS |
22971 | echo "$as_me:$LINENO: result: yes" >&5 |
22972 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 VZ |
22973 | succeeded=yes |
22974 | ||
e6cc62c6 VS |
22975 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 |
22976 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
2b5f62a0 | 22977 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` |
e6cc62c6 VS |
22978 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 |
22979 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
2b5f62a0 | 22980 | |
e6cc62c6 VS |
22981 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 |
22982 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
2b5f62a0 | 22983 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` |
e6cc62c6 VS |
22984 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 |
22985 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
2b5f62a0 VZ |
22986 | else |
22987 | PANGOXFT_CFLAGS="" | |
22988 | PANGOXFT_LIBS="" | |
e6cc62c6 | 22989 | ## If we have a custom action on failure, don't print errors, but |
2b5f62a0 VZ |
22990 | ## do set a variable so people can do so. |
22991 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
e6cc62c6 | 22992 | |
2b5f62a0 VZ |
22993 | fi |
22994 | ||
e6cc62c6 VS |
22995 | |
22996 | ||
2b5f62a0 VZ |
22997 | else |
22998 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
22999 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23000 | fi | |
23001 | fi | |
23002 | ||
23003 | if test $succeeded = yes; then | |
e6cc62c6 | 23004 | |
2b5f62a0 | 23005 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" |
c74dc163 | 23006 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" |
e6cc62c6 | 23007 | |
2b5f62a0 | 23008 | else |
e6cc62c6 VS |
23009 | |
23010 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
23011 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
23012 | ||
23013 | ||
2b5f62a0 VZ |
23014 | fi |
23015 | ||
23016 | fi | |
23017 | ||
23018 | wxUSE_UNIVERSAL="yes" | |
23019 | ||
23020 | if test "$wxUSE_NANOX" = "yes"; then | |
23021 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
fe0895cf | 23022 | 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 |
23023 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" |
23024 | else | |
93a543aa | 23025 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" |
2b5f62a0 VZ |
23026 | fi |
23027 | ||
23028 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
23029 | TOOLKIT=X11 | |
23030 | GUIDIST=X11_DIST | |
23031 | fi | |
23032 | ||
21d1c967 GD |
23033 | if test "$wxUSE_MOTIF" = 1; then |
23034 | if test "$no_x" = yes; then | |
23035 | # Not all programs may use this symbol, but it does not hurt to define it. | |
e6cc62c6 VS |
23036 | |
23037 | cat >>confdefs.h <<\_ACEOF | |
21d1c967 | 23038 | #define X_DISPLAY_MISSING 1 |
e6cc62c6 | 23039 | _ACEOF |
21d1c967 GD |
23040 | |
23041 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
23042 | else | |
23043 | if test -n "$x_includes"; then | |
23044 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
90dd450c VZ |
23045 | fi |
23046 | ||
21d1c967 GD |
23047 | # It would also be nice to do this for all -L options, not just this one. |
23048 | if test -n "$x_libraries"; then | |
23049 | X_LIBS="$X_LIBS -L$x_libraries" | |
23050 | # For Solaris; some versions of Sun CC require a space after -R and | |
23051 | # others require no space. Words are not sufficient . . . . | |
e6cc62c6 | 23052 | case `(uname -sr) 2>/dev/null` in |
21d1c967 | 23053 | "SunOS 5"*) |
e6cc62c6 VS |
23054 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
23055 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
23056 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
23057 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 23058 | #line $LINENO "configure" |
e6cc62c6 VS |
23059 | /* confdefs.h. */ |
23060 | _ACEOF | |
23061 | cat confdefs.h >>conftest.$ac_ext | |
23062 | cat >>conftest.$ac_ext <<_ACEOF | |
23063 | /* end confdefs.h. */ | |
23064 | ||
23065 | int | |
23066 | main () | |
23067 | { | |
21d1c967 | 23068 | |
e6cc62c6 VS |
23069 | ; |
23070 | return 0; | |
23071 | } | |
23072 | _ACEOF | |
23073 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23075 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23076 | ac_status=$? |
23077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23078 | (exit $ac_status); } && | |
09d3439c | 23079 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23081 | (eval $ac_try) 2>&5 | |
23082 | ac_status=$? | |
23083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23084 | (exit $ac_status); }; }; then | |
21d1c967 | 23085 | ac_R_nospace=yes |
698dcdb6 | 23086 | else |
e6cc62c6 VS |
23087 | echo "$as_me: failed program was:" >&5 |
23088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23089 | ||
23090 | ac_R_nospace=no | |
10f2d63a | 23091 | fi |
09d3439c | 23092 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 23093 | if test $ac_R_nospace = yes; then |
e6cc62c6 VS |
23094 | echo "$as_me:$LINENO: result: no" >&5 |
23095 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
23096 | X_LIBS="$X_LIBS -R$x_libraries" |
23097 | else | |
23098 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
e6cc62c6 | 23099 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 23100 | #line $LINENO "configure" |
e6cc62c6 VS |
23101 | /* confdefs.h. */ |
23102 | _ACEOF | |
23103 | cat confdefs.h >>conftest.$ac_ext | |
23104 | cat >>conftest.$ac_ext <<_ACEOF | |
23105 | /* end confdefs.h. */ | |
23106 | ||
23107 | int | |
23108 | main () | |
23109 | { | |
f0c87536 | 23110 | |
e6cc62c6 VS |
23111 | ; |
23112 | return 0; | |
23113 | } | |
23114 | _ACEOF | |
23115 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23116 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23117 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23118 | ac_status=$? |
23119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23120 | (exit $ac_status); } && | |
09d3439c | 23121 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23123 | (eval $ac_try) 2>&5 | |
23124 | ac_status=$? | |
23125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23126 | (exit $ac_status); }; }; then | |
21d1c967 GD |
23127 | ac_R_space=yes |
23128 | else | |
e6cc62c6 VS |
23129 | echo "$as_me: failed program was:" >&5 |
23130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23131 | ||
23132 | ac_R_space=no | |
21d1c967 | 23133 | fi |
09d3439c | 23134 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
21d1c967 | 23135 | if test $ac_R_space = yes; then |
e6cc62c6 VS |
23136 | echo "$as_me:$LINENO: result: yes" >&5 |
23137 | echo "${ECHO_T}yes" >&6 | |
21d1c967 GD |
23138 | X_LIBS="$X_LIBS -R $x_libraries" |
23139 | else | |
e6cc62c6 VS |
23140 | echo "$as_me:$LINENO: result: neither works" >&5 |
23141 | echo "${ECHO_T}neither works" >&6 | |
21d1c967 GD |
23142 | fi |
23143 | fi | |
e6cc62c6 | 23144 | LIBS=$ac_xsave_LIBS |
21d1c967 GD |
23145 | esac |
23146 | fi | |
90dd450c | 23147 | |
21d1c967 GD |
23148 | # Check for system-dependent libraries X programs must link with. |
23149 | # Do this before checking for the system-independent R6 libraries | |
23150 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
23151 | ||
23152 | if test "$ISC" = yes; then | |
23153 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
23154 | else | |
e6cc62c6 VS |
23155 | # Martyn Johnson says this is needed for Ultrix, if the X |
23156 | # libraries were built with DECnet support. And Karl Berry says | |
21d1c967 | 23157 | # the Alpha needs dnet_stub (dnet does not exist). |
e6cc62c6 VS |
23158 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
23159 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 23160 | #line $LINENO "configure" |
e6cc62c6 VS |
23161 | /* confdefs.h. */ |
23162 | _ACEOF | |
23163 | cat confdefs.h >>conftest.$ac_ext | |
23164 | cat >>conftest.$ac_ext <<_ACEOF | |
23165 | /* end confdefs.h. */ | |
23166 | ||
247f5006 | 23167 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23168 | #ifdef __cplusplus |
23169 | extern "C" | |
23170 | #endif | |
247f5006 | 23171 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23172 | builtin and then its argument prototype would still apply. */ |
23173 | char XOpenDisplay (); | |
23174 | int | |
23175 | main () | |
23176 | { | |
23177 | XOpenDisplay (); | |
23178 | ; | |
23179 | return 0; | |
23180 | } | |
23181 | _ACEOF | |
23182 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23183 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23184 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23185 | ac_status=$? |
23186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23187 | (exit $ac_status); } && | |
09d3439c | 23188 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23190 | (eval $ac_try) 2>&5 | |
23191 | ac_status=$? | |
23192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23193 | (exit $ac_status); }; }; then | |
23194 | : | |
23195 | else | |
23196 | echo "$as_me: failed program was:" >&5 | |
23197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 23198 | |
e6cc62c6 VS |
23199 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
23200 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
23201 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
23202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23203 | else |
e6cc62c6 VS |
23204 | ac_check_lib_save_LIBS=$LIBS |
23205 | LIBS="-ldnet $LIBS" | |
23206 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 23207 | #line $LINENO "configure" |
e6cc62c6 VS |
23208 | /* confdefs.h. */ |
23209 | _ACEOF | |
23210 | cat confdefs.h >>conftest.$ac_ext | |
23211 | cat >>conftest.$ac_ext <<_ACEOF | |
23212 | /* end confdefs.h. */ | |
a0b9e27f | 23213 | |
e6cc62c6 VS |
23214 | /* Override any gcc2 internal prototype to avoid an error. */ |
23215 | #ifdef __cplusplus | |
23216 | extern "C" | |
23217 | #endif | |
23218 | /* We use char because int might match the return type of a gcc2 | |
23219 | builtin and then its argument prototype would still apply. */ | |
23220 | char dnet_ntoa (); | |
23221 | int | |
23222 | main () | |
23223 | { | |
23224 | dnet_ntoa (); | |
23225 | ; | |
23226 | return 0; | |
23227 | } | |
23228 | _ACEOF | |
23229 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23230 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23231 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23232 | ac_status=$? |
23233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23234 | (exit $ac_status); } && | |
09d3439c | 23235 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23237 | (eval $ac_try) 2>&5 | |
23238 | ac_status=$? | |
23239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23240 | (exit $ac_status); }; }; then | |
23241 | ac_cv_lib_dnet_dnet_ntoa=yes | |
23242 | else | |
23243 | echo "$as_me: failed program was:" >&5 | |
23244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23245 | ||
23246 | ac_cv_lib_dnet_dnet_ntoa=no | |
23247 | fi | |
09d3439c | 23248 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23249 | LIBS=$ac_check_lib_save_LIBS |
23250 | fi | |
23251 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
23252 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
23253 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
21d1c967 | 23254 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
0fb0dd83 | 23255 | fi |
0fb0dd83 | 23256 | |
21d1c967 | 23257 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
e6cc62c6 VS |
23258 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
23259 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
23260 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
23261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23262 | else |
e6cc62c6 | 23263 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23264 | LIBS="-ldnet_stub $LIBS" |
e6cc62c6 | 23265 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 23266 | #line $LINENO "configure" |
e6cc62c6 VS |
23267 | /* confdefs.h. */ |
23268 | _ACEOF | |
23269 | cat confdefs.h >>conftest.$ac_ext | |
23270 | cat >>conftest.$ac_ext <<_ACEOF | |
23271 | /* end confdefs.h. */ | |
23272 | ||
21d1c967 | 23273 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23274 | #ifdef __cplusplus |
23275 | extern "C" | |
23276 | #endif | |
21d1c967 | 23277 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23278 | builtin and then its argument prototype would still apply. */ |
23279 | char dnet_ntoa (); | |
23280 | int | |
23281 | main () | |
23282 | { | |
23283 | dnet_ntoa (); | |
23284 | ; | |
23285 | return 0; | |
23286 | } | |
23287 | _ACEOF | |
23288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23290 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23291 | ac_status=$? |
23292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23293 | (exit $ac_status); } && | |
09d3439c | 23294 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23295 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23296 | (eval $ac_try) 2>&5 | |
23297 | ac_status=$? | |
23298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23299 | (exit $ac_status); }; }; then | |
23300 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
23301 | else | |
23302 | echo "$as_me: failed program was:" >&5 | |
23303 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23304 | ||
23305 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
23306 | fi | |
09d3439c | 23307 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23308 | LIBS=$ac_check_lib_save_LIBS |
23309 | fi | |
23310 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
23311 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
23312 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
21d1c967 | 23313 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
90dd450c VZ |
23314 | fi |
23315 | ||
21d1c967 | 23316 | fi |
e6cc62c6 | 23317 | fi |
09d3439c | 23318 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 | 23319 | LIBS="$ac_xsave_LIBS" |
90dd450c | 23320 | |
21d1c967 GD |
23321 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
23322 | # to get the SysV transport functions. | |
e6cc62c6 | 23323 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
21d1c967 GD |
23324 | # needs -lnsl. |
23325 | # The nsl library prevents programs from opening the X display | |
e6cc62c6 VS |
23326 | # on Irix 5.2, according to T.E. Dickey. |
23327 | # The functions gethostbyname, getservbyname, and inet_addr are | |
23328 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
23329 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
23330 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
23331 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
23332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23333 | else | |
23334 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 23335 | #line $LINENO "configure" |
e6cc62c6 VS |
23336 | /* confdefs.h. */ |
23337 | _ACEOF | |
23338 | cat confdefs.h >>conftest.$ac_ext | |
23339 | cat >>conftest.$ac_ext <<_ACEOF | |
23340 | /* end confdefs.h. */ | |
21d1c967 | 23341 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23342 | which can conflict with char gethostbyname (); below. |
23343 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23344 | <limits.h> exists even on freestanding compilers. */ | |
23345 | #ifdef __STDC__ | |
23346 | # include <limits.h> | |
23347 | #else | |
23348 | # include <assert.h> | |
23349 | #endif | |
21d1c967 | 23350 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23351 | #ifdef __cplusplus |
23352 | extern "C" | |
23353 | { | |
23354 | #endif | |
21d1c967 | 23355 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23356 | builtin and then its argument prototype would still apply. */ |
23357 | char gethostbyname (); | |
21d1c967 GD |
23358 | /* The GNU C library defines this for functions which it implements |
23359 | to always fail with ENOSYS. Some functions are actually named | |
23360 | something starting with __ and the normal name is an alias. */ | |
23361 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
23362 | choke me | |
23363 | #else | |
e6cc62c6 VS |
23364 | char (*f) () = gethostbyname; |
23365 | #endif | |
23366 | #ifdef __cplusplus | |
23367 | } | |
21d1c967 | 23368 | #endif |
90dd450c | 23369 | |
e6cc62c6 VS |
23370 | int |
23371 | main () | |
23372 | { | |
23373 | return f != gethostbyname; | |
23374 | ; | |
23375 | return 0; | |
23376 | } | |
23377 | _ACEOF | |
23378 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23379 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23380 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23381 | ac_status=$? |
23382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23383 | (exit $ac_status); } && | |
09d3439c | 23384 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23386 | (eval $ac_try) 2>&5 | |
23387 | ac_status=$? | |
23388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23389 | (exit $ac_status); }; }; then | |
23390 | ac_cv_func_gethostbyname=yes | |
23391 | else | |
23392 | echo "$as_me: failed program was:" >&5 | |
23393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23394 | ||
23395 | ac_cv_func_gethostbyname=no | |
23396 | fi | |
09d3439c | 23397 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23398 | fi |
23399 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
23400 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
90dd450c | 23401 | |
21d1c967 | 23402 | if test $ac_cv_func_gethostbyname = no; then |
e6cc62c6 VS |
23403 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
23404 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
23405 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
23406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23407 | else |
e6cc62c6 | 23408 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23409 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 23410 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 23411 | #line $LINENO "configure" |
e6cc62c6 VS |
23412 | /* confdefs.h. */ |
23413 | _ACEOF | |
23414 | cat confdefs.h >>conftest.$ac_ext | |
23415 | cat >>conftest.$ac_ext <<_ACEOF | |
23416 | /* end confdefs.h. */ | |
23417 | ||
21d1c967 | 23418 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23419 | #ifdef __cplusplus |
23420 | extern "C" | |
23421 | #endif | |
21d1c967 | 23422 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23423 | builtin and then its argument prototype would still apply. */ |
23424 | char gethostbyname (); | |
23425 | int | |
23426 | main () | |
23427 | { | |
23428 | gethostbyname (); | |
23429 | ; | |
23430 | return 0; | |
23431 | } | |
23432 | _ACEOF | |
23433 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23434 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23435 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23436 | ac_status=$? |
23437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23438 | (exit $ac_status); } && | |
09d3439c | 23439 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23441 | (eval $ac_try) 2>&5 | |
23442 | ac_status=$? | |
23443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23444 | (exit $ac_status); }; }; then | |
23445 | ac_cv_lib_nsl_gethostbyname=yes | |
23446 | else | |
23447 | echo "$as_me: failed program was:" >&5 | |
23448 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23449 | ||
23450 | ac_cv_lib_nsl_gethostbyname=no | |
23451 | fi | |
09d3439c | 23452 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23453 | LIBS=$ac_check_lib_save_LIBS |
23454 | fi | |
23455 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
23456 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
23457 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
23458 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
a0b9e27f | 23459 | fi |
247f5006 | 23460 | |
e6cc62c6 | 23461 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
09d3439c | 23462 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
e6cc62c6 VS |
23463 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
23464 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
23465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 23466 | else |
e6cc62c6 VS |
23467 | ac_check_lib_save_LIBS=$LIBS |
23468 | LIBS="-lbsd $LIBS" | |
23469 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 23470 | #line $LINENO "configure" |
e6cc62c6 VS |
23471 | /* confdefs.h. */ |
23472 | _ACEOF | |
23473 | cat confdefs.h >>conftest.$ac_ext | |
23474 | cat >>conftest.$ac_ext <<_ACEOF | |
23475 | /* end confdefs.h. */ | |
23476 | ||
23477 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23478 | #ifdef __cplusplus | |
23479 | extern "C" | |
23480 | #endif | |
23481 | /* We use char because int might match the return type of a gcc2 | |
23482 | builtin and then its argument prototype would still apply. */ | |
23483 | char gethostbyname (); | |
23484 | int | |
23485 | main () | |
23486 | { | |
23487 | gethostbyname (); | |
23488 | ; | |
23489 | return 0; | |
23490 | } | |
23491 | _ACEOF | |
23492 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23494 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23495 | ac_status=$? |
23496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23497 | (exit $ac_status); } && | |
09d3439c | 23498 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23500 | (eval $ac_try) 2>&5 | |
23501 | ac_status=$? | |
23502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23503 | (exit $ac_status); }; }; then | |
23504 | ac_cv_lib_bsd_gethostbyname=yes | |
23505 | else | |
23506 | echo "$as_me: failed program was:" >&5 | |
23507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23508 | ||
23509 | ac_cv_lib_bsd_gethostbyname=no | |
23510 | fi | |
09d3439c | 23511 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23512 | LIBS=$ac_check_lib_save_LIBS |
23513 | fi | |
23514 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
23515 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
23516 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
23517 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
21d1c967 | 23518 | fi |
90dd450c | 23519 | |
e6cc62c6 | 23520 | fi |
90dd450c VZ |
23521 | fi |
23522 | ||
21d1c967 GD |
23523 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
23524 | # socket/setsockopt and other routines are undefined under SCO ODT | |
23525 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
e6cc62c6 VS |
23526 | # on later versions), says Simon Leinen: it contains gethostby* |
23527 | # variants that don't use the name server (or something). -lsocket | |
23528 | # must be given before -lnsl if both are needed. We assume that | |
23529 | # if connect needs -lnsl, so does gethostbyname. | |
23530 | echo "$as_me:$LINENO: checking for connect" >&5 | |
23531 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
23532 | if test "${ac_cv_func_connect+set}" = set; then | |
23533 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23534 | else | |
23535 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 23536 | #line $LINENO "configure" |
e6cc62c6 VS |
23537 | /* confdefs.h. */ |
23538 | _ACEOF | |
23539 | cat confdefs.h >>conftest.$ac_ext | |
23540 | cat >>conftest.$ac_ext <<_ACEOF | |
23541 | /* end confdefs.h. */ | |
21d1c967 | 23542 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23543 | which can conflict with char connect (); below. |
23544 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23545 | <limits.h> exists even on freestanding compilers. */ | |
23546 | #ifdef __STDC__ | |
23547 | # include <limits.h> | |
23548 | #else | |
23549 | # include <assert.h> | |
23550 | #endif | |
21d1c967 | 23551 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23552 | #ifdef __cplusplus |
23553 | extern "C" | |
23554 | { | |
23555 | #endif | |
21d1c967 | 23556 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23557 | builtin and then its argument prototype would still apply. */ |
23558 | char connect (); | |
21d1c967 GD |
23559 | /* The GNU C library defines this for functions which it implements |
23560 | to always fail with ENOSYS. Some functions are actually named | |
23561 | something starting with __ and the normal name is an alias. */ | |
23562 | #if defined (__stub_connect) || defined (__stub___connect) | |
23563 | choke me | |
23564 | #else | |
e6cc62c6 VS |
23565 | char (*f) () = connect; |
23566 | #endif | |
23567 | #ifdef __cplusplus | |
23568 | } | |
21d1c967 | 23569 | #endif |
90dd450c | 23570 | |
e6cc62c6 VS |
23571 | int |
23572 | main () | |
23573 | { | |
23574 | return f != connect; | |
23575 | ; | |
23576 | return 0; | |
23577 | } | |
23578 | _ACEOF | |
23579 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23580 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23581 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23582 | ac_status=$? |
23583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23584 | (exit $ac_status); } && | |
09d3439c | 23585 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23586 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23587 | (eval $ac_try) 2>&5 | |
23588 | ac_status=$? | |
23589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23590 | (exit $ac_status); }; }; then | |
23591 | ac_cv_func_connect=yes | |
23592 | else | |
23593 | echo "$as_me: failed program was:" >&5 | |
23594 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23595 | ||
23596 | ac_cv_func_connect=no | |
23597 | fi | |
09d3439c | 23598 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23599 | fi |
23600 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
23601 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
1f8ae82f | 23602 | |
21d1c967 | 23603 | if test $ac_cv_func_connect = no; then |
e6cc62c6 VS |
23604 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
23605 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
23606 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
23607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
0fbb762e | 23608 | else |
e6cc62c6 | 23609 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23610 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 23611 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 23612 | #line $LINENO "configure" |
e6cc62c6 VS |
23613 | /* confdefs.h. */ |
23614 | _ACEOF | |
23615 | cat confdefs.h >>conftest.$ac_ext | |
23616 | cat >>conftest.$ac_ext <<_ACEOF | |
23617 | /* end confdefs.h. */ | |
23618 | ||
21d1c967 | 23619 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23620 | #ifdef __cplusplus |
23621 | extern "C" | |
23622 | #endif | |
21d1c967 | 23623 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23624 | builtin and then its argument prototype would still apply. */ |
23625 | char connect (); | |
23626 | int | |
23627 | main () | |
23628 | { | |
23629 | connect (); | |
23630 | ; | |
23631 | return 0; | |
23632 | } | |
23633 | _ACEOF | |
23634 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23636 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23637 | ac_status=$? |
23638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23639 | (exit $ac_status); } && | |
09d3439c | 23640 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23642 | (eval $ac_try) 2>&5 | |
23643 | ac_status=$? | |
23644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23645 | (exit $ac_status); }; }; then | |
23646 | ac_cv_lib_socket_connect=yes | |
23647 | else | |
23648 | echo "$as_me: failed program was:" >&5 | |
23649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23650 | ||
23651 | ac_cv_lib_socket_connect=no | |
23652 | fi | |
09d3439c | 23653 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23654 | LIBS=$ac_check_lib_save_LIBS |
23655 | fi | |
23656 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23657 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23658 | if test $ac_cv_lib_socket_connect = yes; then | |
21d1c967 | 23659 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
21d1c967 | 23660 | fi |
90dd450c | 23661 | |
21d1c967 | 23662 | fi |
90dd450c | 23663 | |
e6cc62c6 VS |
23664 | # Guillermo Gomez says -lposix is necessary on A/UX. |
23665 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23666 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23667 | if test "${ac_cv_func_remove+set}" = set; then | |
23668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23669 | else | |
23670 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 23671 | #line $LINENO "configure" |
e6cc62c6 VS |
23672 | /* confdefs.h. */ |
23673 | _ACEOF | |
23674 | cat confdefs.h >>conftest.$ac_ext | |
23675 | cat >>conftest.$ac_ext <<_ACEOF | |
23676 | /* end confdefs.h. */ | |
21d1c967 | 23677 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23678 | which can conflict with char remove (); below. |
23679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23680 | <limits.h> exists even on freestanding compilers. */ | |
23681 | #ifdef __STDC__ | |
23682 | # include <limits.h> | |
23683 | #else | |
23684 | # include <assert.h> | |
23685 | #endif | |
21d1c967 | 23686 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23687 | #ifdef __cplusplus |
23688 | extern "C" | |
23689 | { | |
23690 | #endif | |
21d1c967 | 23691 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23692 | builtin and then its argument prototype would still apply. */ |
23693 | char remove (); | |
21d1c967 GD |
23694 | /* The GNU C library defines this for functions which it implements |
23695 | to always fail with ENOSYS. Some functions are actually named | |
23696 | something starting with __ and the normal name is an alias. */ | |
23697 | #if defined (__stub_remove) || defined (__stub___remove) | |
23698 | choke me | |
23699 | #else | |
e6cc62c6 VS |
23700 | char (*f) () = remove; |
23701 | #endif | |
23702 | #ifdef __cplusplus | |
23703 | } | |
21d1c967 | 23704 | #endif |
90dd450c | 23705 | |
e6cc62c6 VS |
23706 | int |
23707 | main () | |
23708 | { | |
23709 | return f != remove; | |
23710 | ; | |
23711 | return 0; | |
23712 | } | |
23713 | _ACEOF | |
23714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23716 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23717 | ac_status=$? |
23718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23719 | (exit $ac_status); } && | |
09d3439c | 23720 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23722 | (eval $ac_try) 2>&5 | |
23723 | ac_status=$? | |
23724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23725 | (exit $ac_status); }; }; then | |
23726 | ac_cv_func_remove=yes | |
23727 | else | |
23728 | echo "$as_me: failed program was:" >&5 | |
23729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23730 | ||
23731 | ac_cv_func_remove=no | |
23732 | fi | |
09d3439c | 23733 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23734 | fi |
23735 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23736 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
90dd450c | 23737 | |
21d1c967 | 23738 | if test $ac_cv_func_remove = no; then |
e6cc62c6 VS |
23739 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
23740 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23741 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21d1c967 | 23743 | else |
e6cc62c6 | 23744 | ac_check_lib_save_LIBS=$LIBS |
21d1c967 | 23745 | LIBS="-lposix $LIBS" |
e6cc62c6 | 23746 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 23747 | #line $LINENO "configure" |
e6cc62c6 VS |
23748 | /* confdefs.h. */ |
23749 | _ACEOF | |
23750 | cat confdefs.h >>conftest.$ac_ext | |
23751 | cat >>conftest.$ac_ext <<_ACEOF | |
23752 | /* end confdefs.h. */ | |
23753 | ||
21d1c967 | 23754 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23755 | #ifdef __cplusplus |
23756 | extern "C" | |
23757 | #endif | |
21d1c967 | 23758 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23759 | builtin and then its argument prototype would still apply. */ |
23760 | char remove (); | |
23761 | int | |
23762 | main () | |
23763 | { | |
23764 | remove (); | |
23765 | ; | |
23766 | return 0; | |
23767 | } | |
23768 | _ACEOF | |
23769 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23770 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23771 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23772 | ac_status=$? |
23773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23774 | (exit $ac_status); } && | |
09d3439c | 23775 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23777 | (eval $ac_try) 2>&5 | |
23778 | ac_status=$? | |
23779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23780 | (exit $ac_status); }; }; then | |
23781 | ac_cv_lib_posix_remove=yes | |
23782 | else | |
23783 | echo "$as_me: failed program was:" >&5 | |
23784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23785 | ||
23786 | ac_cv_lib_posix_remove=no | |
23787 | fi | |
09d3439c | 23788 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23789 | LIBS=$ac_check_lib_save_LIBS |
23790 | fi | |
23791 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23792 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23793 | if test $ac_cv_lib_posix_remove = yes; then | |
21d1c967 | 23794 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
21d1c967 | 23795 | fi |
19bc6aad | 23796 | |
90dd450c | 23797 | fi |
19bc6aad | 23798 | |
21d1c967 | 23799 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
e6cc62c6 VS |
23800 | echo "$as_me:$LINENO: checking for shmat" >&5 |
23801 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23802 | if test "${ac_cv_func_shmat+set}" = set; then | |
23803 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23804 | else | |
23805 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 23806 | #line $LINENO "configure" |
e6cc62c6 VS |
23807 | /* confdefs.h. */ |
23808 | _ACEOF | |
23809 | cat confdefs.h >>conftest.$ac_ext | |
23810 | cat >>conftest.$ac_ext <<_ACEOF | |
23811 | /* end confdefs.h. */ | |
21d1c967 | 23812 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
23813 | which can conflict with char shmat (); below. |
23814 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23815 | <limits.h> exists even on freestanding compilers. */ | |
23816 | #ifdef __STDC__ | |
23817 | # include <limits.h> | |
23818 | #else | |
23819 | # include <assert.h> | |
23820 | #endif | |
21d1c967 | 23821 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23822 | #ifdef __cplusplus |
23823 | extern "C" | |
23824 | { | |
23825 | #endif | |
21d1c967 | 23826 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23827 | builtin and then its argument prototype would still apply. */ |
23828 | char shmat (); | |
21d1c967 GD |
23829 | /* The GNU C library defines this for functions which it implements |
23830 | to always fail with ENOSYS. Some functions are actually named | |
23831 | something starting with __ and the normal name is an alias. */ | |
23832 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23833 | choke me | |
23834 | #else | |
e6cc62c6 VS |
23835 | char (*f) () = shmat; |
23836 | #endif | |
23837 | #ifdef __cplusplus | |
23838 | } | |
21d1c967 | 23839 | #endif |
90dd450c | 23840 | |
e6cc62c6 VS |
23841 | int |
23842 | main () | |
23843 | { | |
23844 | return f != shmat; | |
23845 | ; | |
23846 | return 0; | |
23847 | } | |
23848 | _ACEOF | |
23849 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23850 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23851 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23852 | ac_status=$? |
23853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23854 | (exit $ac_status); } && | |
09d3439c | 23855 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23857 | (eval $ac_try) 2>&5 | |
23858 | ac_status=$? | |
23859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23860 | (exit $ac_status); }; }; then | |
23861 | ac_cv_func_shmat=yes | |
23862 | else | |
23863 | echo "$as_me: failed program was:" >&5 | |
23864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23865 | ||
23866 | ac_cv_func_shmat=no | |
23867 | fi | |
09d3439c | 23868 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23869 | fi |
23870 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23871 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
19bc6aad | 23872 | |
21d1c967 | 23873 | if test $ac_cv_func_shmat = no; then |
e6cc62c6 VS |
23874 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23875 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23876 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5c6fa7d2 | 23878 | else |
e6cc62c6 | 23879 | ac_check_lib_save_LIBS=$LIBS |
5c6fa7d2 | 23880 | LIBS="-lipc $LIBS" |
e6cc62c6 | 23881 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 23882 | #line $LINENO "configure" |
e6cc62c6 VS |
23883 | /* confdefs.h. */ |
23884 | _ACEOF | |
23885 | cat confdefs.h >>conftest.$ac_ext | |
23886 | cat >>conftest.$ac_ext <<_ACEOF | |
23887 | /* end confdefs.h. */ | |
23888 | ||
5c6fa7d2 | 23889 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23890 | #ifdef __cplusplus |
23891 | extern "C" | |
23892 | #endif | |
5c6fa7d2 | 23893 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23894 | builtin and then its argument prototype would still apply. */ |
23895 | char shmat (); | |
23896 | int | |
23897 | main () | |
23898 | { | |
23899 | shmat (); | |
23900 | ; | |
23901 | return 0; | |
23902 | } | |
23903 | _ACEOF | |
23904 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23906 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23907 | ac_status=$? |
23908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23909 | (exit $ac_status); } && | |
09d3439c | 23910 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23912 | (eval $ac_try) 2>&5 | |
23913 | ac_status=$? | |
23914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23915 | (exit $ac_status); }; }; then | |
23916 | ac_cv_lib_ipc_shmat=yes | |
23917 | else | |
23918 | echo "$as_me: failed program was:" >&5 | |
23919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23920 | ||
23921 | ac_cv_lib_ipc_shmat=no | |
23922 | fi | |
09d3439c | 23923 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23924 | LIBS=$ac_check_lib_save_LIBS |
23925 | fi | |
23926 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23927 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23928 | if test $ac_cv_lib_ipc_shmat = yes; then | |
21d1c967 | 23929 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
9f8148b1 | 23930 | fi |
90dd450c | 23931 | |
90dd450c | 23932 | fi |
21d1c967 | 23933 | fi |
10f2d63a | 23934 | |
21d1c967 | 23935 | # Check for libraries that X11R6 Xt/Xaw programs need. |
e6cc62c6 | 23936 | ac_save_LDFLAGS=$LDFLAGS |
21d1c967 GD |
23937 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23938 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23939 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23940 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23941 | # These have to be linked with before -lX11, unlike the other | |
23942 | # libraries we check for below, so use a different variable. | |
e6cc62c6 VS |
23943 | # John Interrante, Karl Berry |
23944 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23945 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23946 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23948 | else | |
23949 | ac_check_lib_save_LIBS=$LIBS | |
f09359cf | 23950 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
e6cc62c6 | 23951 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 23952 | #line $LINENO "configure" |
e6cc62c6 VS |
23953 | /* confdefs.h. */ |
23954 | _ACEOF | |
23955 | cat confdefs.h >>conftest.$ac_ext | |
23956 | cat >>conftest.$ac_ext <<_ACEOF | |
23957 | /* end confdefs.h. */ | |
23958 | ||
21d1c967 | 23959 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
23960 | #ifdef __cplusplus |
23961 | extern "C" | |
23962 | #endif | |
21d1c967 | 23963 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
23964 | builtin and then its argument prototype would still apply. */ |
23965 | char IceConnectionNumber (); | |
23966 | int | |
23967 | main () | |
23968 | { | |
23969 | IceConnectionNumber (); | |
23970 | ; | |
23971 | return 0; | |
23972 | } | |
23973 | _ACEOF | |
23974 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23975 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 23976 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
23977 | ac_status=$? |
23978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23979 | (exit $ac_status); } && | |
09d3439c | 23980 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
23981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23982 | (eval $ac_try) 2>&5 | |
23983 | ac_status=$? | |
23984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23985 | (exit $ac_status); }; }; then | |
23986 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23987 | else | |
23988 | echo "$as_me: failed program was:" >&5 | |
23989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23990 | ||
23991 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23992 | fi | |
09d3439c | 23993 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
23994 | LIBS=$ac_check_lib_save_LIBS |
23995 | fi | |
23996 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23997 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23998 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
21d1c967 | 23999 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
29fd3c0c | 24000 | fi |
21d1c967 | 24001 | |
e6cc62c6 | 24002 | LDFLAGS=$ac_save_LDFLAGS |
29fd3c0c | 24003 | |
10f2d63a VZ |
24004 | fi |
24005 | ||
8284b0c5 | 24006 | |
21d1c967 | 24007 | if test "$no_x" = "yes"; then |
e6cc62c6 VS |
24008 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 |
24009 | echo "$as_me: error: X11 not found" >&2;} | |
24010 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
21d1c967 GD |
24011 | fi |
24012 | ||
2b5f62a0 VZ |
24013 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` |
24014 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
21d1c967 GD |
24015 | AFMINSTALL=afminstall |
24016 | COMPILED_X_PROGRAM=0 | |
24017 | ||
e6cc62c6 VS |
24018 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 |
24019 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
24020 | ||
21d1c967 | 24021 | ac_find_includes= |
2b5f62a0 | 24022 | for ac_dir in $SEARCH_INCLUDE /usr/include; |
21d1c967 GD |
24023 | do |
24024 | if test -f "$ac_dir/Xm/Xm.h"; then | |
24025 | ac_find_includes=$ac_dir | |
24026 | break | |
24027 | fi | |
24028 | done | |
24029 | ||
24030 | if test "$ac_find_includes" != "" ; then | |
e6cc62c6 VS |
24031 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 |
24032 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
24033 | ||
2b5f62a0 | 24034 | if test "x$ac_find_includes" = "x/usr/include"; then |
dd0e4a90 VZ |
24035 | ac_path_to_include="" |
24036 | else | |
2b5f62a0 VZ |
24037 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null |
24038 | result=$? | |
24039 | if test $result = 0; then | |
24040 | ac_path_to_include="" | |
24041 | else | |
24042 | ac_path_to_include=" -I$ac_find_includes" | |
24043 | fi | |
dd0e4a90 VZ |
24044 | fi |
24045 | ||
24046 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
21d1c967 | 24047 | else |
e6cc62c6 | 24048 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 24049 | #line $LINENO "configure" |
e6cc62c6 VS |
24050 | /* confdefs.h. */ |
24051 | _ACEOF | |
24052 | cat confdefs.h >>conftest.$ac_ext | |
24053 | cat >>conftest.$ac_ext <<_ACEOF | |
24054 | /* end confdefs.h. */ | |
21d1c967 GD |
24055 | |
24056 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24057 | |
24058 | int | |
24059 | main () | |
24060 | { | |
21d1c967 GD |
24061 | |
24062 | int version; | |
24063 | version = xmUseVersion; | |
e6cc62c6 VS |
24064 | |
24065 | ; | |
24066 | return 0; | |
24067 | } | |
24068 | _ACEOF | |
24069 | rm -f conftest.$ac_objext | |
24070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 24071 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
24072 | ac_status=$? |
24073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24074 | (exit $ac_status); } && | |
09d3439c | 24075 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
24076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24077 | (eval $ac_try) 2>&5 | |
24078 | ac_status=$? | |
24079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24080 | (exit $ac_status); }; }; then | |
24081 | ||
24082 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
24083 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 24084 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 24085 | |
10f2d63a | 24086 | else |
e6cc62c6 VS |
24087 | echo "$as_me: failed program was:" >&5 |
24088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24089 | ||
24090 | ||
24091 | echo "$as_me:$LINENO: result: no" >&5 | |
24092 | echo "${ECHO_T}no" >&6 | |
24093 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
24094 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
24095 | { (exit 1); exit 1; }; } | |
24096 | ||
24097 | ||
10f2d63a | 24098 | fi |
09d3439c | 24099 | rm -f conftest.$ac_objext conftest.$ac_ext |
21d1c967 | 24100 | fi |
10f2d63a | 24101 | |
21d1c967 | 24102 | if test "$COMPILED_X_PROGRAM" = 0; then |
e6cc62c6 VS |
24103 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 |
24104 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
24105 | ||
21d1c967 | 24106 | ac_find_libraries= |
2b5f62a0 | 24107 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
24108 | do |
24109 | for ac_extension in a so sl dylib; do | |
24110 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
24111 | ac_find_libraries=$ac_dir | |
24112 | break 2 | |
24113 | fi | |
24114 | done | |
24115 | done | |
24116 | ||
24117 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 VS |
24118 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 |
24119 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24120 | ||
21d1c967 | 24121 | |
21d1c967 GD |
24122 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null |
24123 | result=$? | |
24124 | if test $result = 0; then | |
24125 | ac_path_to_link="" | |
24126 | else | |
24127 | ac_path_to_link=" -L$ac_find_libraries" | |
24128 | fi | |
24129 | ||
21d1c967 | 24130 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" |
21d1c967 | 24131 | else |
dd0e4a90 VZ |
24132 | save_CFLAGS=$CFLAGS |
24133 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24134 | ||
e6cc62c6 | 24135 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 24136 | #line $LINENO "configure" |
e6cc62c6 VS |
24137 | /* confdefs.h. */ |
24138 | _ACEOF | |
24139 | cat confdefs.h >>conftest.$ac_ext | |
24140 | cat >>conftest.$ac_ext <<_ACEOF | |
24141 | /* end confdefs.h. */ | |
21d1c967 GD |
24142 | |
24143 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24144 | |
24145 | int | |
24146 | main () | |
24147 | { | |
21d1c967 GD |
24148 | |
24149 | int version; | |
24150 | version = xmUseVersion; | |
e6cc62c6 VS |
24151 | |
24152 | ; | |
24153 | return 0; | |
24154 | } | |
24155 | _ACEOF | |
24156 | rm -f conftest.$ac_objext | |
24157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 24158 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
24159 | ac_status=$? |
24160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24161 | (exit $ac_status); } && | |
09d3439c | 24162 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
24163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24164 | (eval $ac_try) 2>&5 | |
24165 | ac_status=$? | |
24166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24167 | (exit $ac_status); }; }; then | |
24168 | ||
24169 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
24170 | echo "${ECHO_T}found in default search path" >&6 | |
21d1c967 | 24171 | COMPILED_X_PROGRAM=1 |
e6cc62c6 | 24172 | |
d836ee96 | 24173 | else |
e6cc62c6 VS |
24174 | echo "$as_me: failed program was:" >&5 |
24175 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24176 | ||
24177 | ||
24178 | echo "$as_me:$LINENO: result: no" >&5 | |
24179 | echo "${ECHO_T}no" >&6 | |
24180 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
24181 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
24182 | { (exit 1); exit 1; }; } | |
24183 | ||
24184 | ||
d836ee96 | 24185 | fi |
09d3439c | 24186 | rm -f conftest.$ac_objext conftest.$ac_ext |
dd0e4a90 VZ |
24187 | |
24188 | CFLAGS=$save_CFLAGS | |
21d1c967 GD |
24189 | fi |
24190 | fi | |
24191 | ||
e6cc62c6 VS |
24192 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 |
24193 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
6a30f1c8 MB |
24194 | libp_link="" |
24195 | libsm_ice_link="" | |
24196 | libs_found=0 | |
24197 | for libp in "" " -lXp"; do | |
24198 | if test "$libs_found" = "0"; then | |
7015ef3a | 24199 | for libsm_ice in "" " -lSM -lICE"; do |
e26c13cf | 24200 | if test "$libs_found" = "0"; then |
6a30f1c8 | 24201 | save_LIBS="$LIBS" |
93a543aa | 24202 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" |
dd0e4a90 VZ |
24203 | save_CFLAGS=$CFLAGS |
24204 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24205 | ||
e6cc62c6 | 24206 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 24207 | #line $LINENO "configure" |
e6cc62c6 VS |
24208 | /* confdefs.h. */ |
24209 | _ACEOF | |
24210 | cat confdefs.h >>conftest.$ac_ext | |
24211 | cat >>conftest.$ac_ext <<_ACEOF | |
24212 | /* end confdefs.h. */ | |
17234b26 | 24213 | |
6a30f1c8 MB |
24214 | #include <Xm/Xm.h> |
24215 | #include <Xm/List.h> | |
e6cc62c6 VS |
24216 | |
24217 | int | |
24218 | main () | |
24219 | { | |
6a30f1c8 MB |
24220 | |
24221 | XmString string = NULL; | |
24222 | Widget w = NULL; | |
24223 | int position = 0; | |
24224 | XmListAddItem(w, string, position); | |
e6cc62c6 VS |
24225 | |
24226 | ; | |
24227 | return 0; | |
24228 | } | |
24229 | _ACEOF | |
24230 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24231 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 24232 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
24233 | ac_status=$? |
24234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24235 | (exit $ac_status); } && | |
09d3439c | 24236 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
24237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24238 | (eval $ac_try) 2>&5 | |
24239 | ac_status=$? | |
24240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24241 | (exit $ac_status); }; }; then | |
24242 | ||
6a30f1c8 MB |
24243 | libp_link="$libp" |
24244 | libsm_ice_link="$libsm_ice" | |
e6cc62c6 VS |
24245 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 |
24246 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
6a30f1c8 | 24247 | libs_found=1 |
e6cc62c6 | 24248 | |
6a30f1c8 | 24249 | else |
e6cc62c6 VS |
24250 | echo "$as_me: failed program was:" >&5 |
24251 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24252 | ||
24253 | ||
24254 | ||
6a30f1c8 | 24255 | fi |
09d3439c | 24256 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
dd0e4a90 | 24257 | |
6a30f1c8 | 24258 | LIBS="$save_LIBS" |
dd0e4a90 | 24259 | CFLAGS=$save_CFLAGS |
6a30f1c8 MB |
24260 | fi |
24261 | done | |
24262 | fi | |
24263 | done | |
24264 | ||
24265 | if test "$libs_found" = "0"; then | |
e6cc62c6 VS |
24266 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 |
24267 | echo "${ECHO_T}can't find the right libraries" >&6 | |
24268 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
24269 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
24270 | { (exit 1); exit 1; }; } | |
6a30f1c8 MB |
24271 | fi |
24272 | ||
da494b40 MB |
24273 | save_CFLAGS=$CFLAGS |
24274 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
e6cc62c6 VS |
24275 | echo "$as_me:$LINENO: checking for Motif 2" >&5 |
24276 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
24277 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 24278 | #line $LINENO "configure" |
e6cc62c6 VS |
24279 | /* confdefs.h. */ |
24280 | _ACEOF | |
24281 | cat confdefs.h >>conftest.$ac_ext | |
24282 | cat >>conftest.$ac_ext <<_ACEOF | |
24283 | /* end confdefs.h. */ | |
da494b40 MB |
24284 | |
24285 | #include <Xm/Xm.h> | |
e6cc62c6 VS |
24286 | |
24287 | int | |
24288 | main () | |
24289 | { | |
da494b40 MB |
24290 | |
24291 | #if XmVersion < 2000 | |
24292 | #error "Not Motif 2" | |
24293 | #endif | |
e6cc62c6 VS |
24294 | |
24295 | ; | |
24296 | return 0; | |
24297 | } | |
24298 | _ACEOF | |
24299 | rm -f conftest.$ac_objext | |
24300 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 24301 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
24302 | ac_status=$? |
24303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24304 | (exit $ac_status); } && | |
09d3439c | 24305 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
24306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24307 | (eval $ac_try) 2>&5 | |
24308 | ac_status=$? | |
24309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24310 | (exit $ac_status); }; }; then | |
24311 | ||
24312 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24313 | #define __WXMOTIF20__ 1 |
e6cc62c6 VS |
24314 | _ACEOF |
24315 | ||
24316 | echo "$as_me:$LINENO: result: found" >&5 | |
24317 | echo "${ECHO_T}found" >&6 | |
da494b40 | 24318 | |
da494b40 | 24319 | else |
e6cc62c6 VS |
24320 | echo "$as_me: failed program was:" >&5 |
24321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24322 | ||
24323 | ||
24324 | cat >>confdefs.h <<\_ACEOF | |
da494b40 | 24325 | #define __WXMOTIF20__ 0 |
e6cc62c6 VS |
24326 | _ACEOF |
24327 | ||
24328 | echo "$as_me:$LINENO: result: not found" >&5 | |
24329 | echo "${ECHO_T}not found" >&6 | |
da494b40 | 24330 | |
da494b40 | 24331 | fi |
09d3439c | 24332 | rm -f conftest.$ac_objext conftest.$ac_ext |
da494b40 MB |
24333 | CFLAGS=$save_CFLAGS |
24334 | ||
93a543aa | 24335 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" |
69c44812 | 24336 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" |
21d1c967 GD |
24337 | TOOLKIT=MOTIF |
24338 | GUIDIST=MOTIF_DIST | |
f7f78039 MB |
24339 | fi |
24340 | ||
89fe663f VZ |
24341 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
24342 | if test "$wxUSE_LIBXPM" = "sys"; then | |
24343 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
24344 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
24345 | ||
24346 | ac_find_libraries= | |
24347 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24348 | do | |
24349 | for ac_extension in a so sl dylib; do | |
24350 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
24351 | ac_find_libraries=$ac_dir | |
24352 | break 2 | |
24353 | fi | |
24354 | done | |
24355 | done | |
24356 | ||
24357 | if test "$ac_find_libraries" != "" ; then | |
24358 | ||
24359 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
24360 | result=$? | |
24361 | if test $result = 0; then | |
24362 | ac_path_to_link="" | |
24363 | else | |
24364 | ac_path_to_link=" -L$ac_find_libraries" | |
24365 | fi | |
24366 | ||
24367 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
24368 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
24369 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24370 | ||
24371 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
24372 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
24373 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
24374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24375 | else | |
24376 | ||
24377 | save_CFLAGS=$CFLAGS | |
24378 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24379 | ||
24380 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 24381 | #line $LINENO "configure" |
89fe663f VZ |
24382 | /* confdefs.h. */ |
24383 | _ACEOF | |
24384 | cat confdefs.h >>conftest.$ac_ext | |
24385 | cat >>conftest.$ac_ext <<_ACEOF | |
24386 | /* end confdefs.h. */ | |
24387 | ||
24388 | #include <X11/xpm.h> | |
24389 | ||
24390 | int | |
24391 | main () | |
24392 | { | |
24393 | ||
24394 | int version; | |
24395 | version = XpmLibraryVersion(); | |
24396 | ||
24397 | ; | |
24398 | return 0; | |
24399 | } | |
24400 | _ACEOF | |
24401 | rm -f conftest.$ac_objext | |
24402 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 24403 | (eval $ac_compile) 2>&5 |
89fe663f VZ |
24404 | ac_status=$? |
24405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24406 | (exit $ac_status); } && | |
09d3439c | 24407 | { ac_try='test -s conftest.$ac_objext' |
89fe663f VZ |
24408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24409 | (eval $ac_try) 2>&5 | |
24410 | ac_status=$? | |
24411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24412 | (exit $ac_status); }; }; then | |
24413 | wx_cv_x11_xpm_h=yes | |
24414 | else | |
24415 | echo "$as_me: failed program was:" >&5 | |
24416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24417 | ||
24418 | wx_cv_x11_xpm_h=no | |
24419 | ||
24420 | fi | |
09d3439c | 24421 | rm -f conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
24422 | |
24423 | CFLAGS=$save_CFLAGS | |
24424 | ||
24425 | ||
24426 | fi | |
24427 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
24428 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
24429 | ||
24430 | if test $wx_cv_x11_xpm_h = "yes"; then | |
93a543aa | 24431 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" |
89fe663f VZ |
24432 | cat >>confdefs.h <<\_ACEOF |
24433 | #define wxHAVE_LIB_XPM 1 | |
24434 | _ACEOF | |
24435 | ||
24436 | else | |
24437 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
24438 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
24439 | fi | |
24440 | fi | |
24441 | ||
24442 | fi | |
f7f78039 | 24443 | |
89fe663f VZ |
24444 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 |
24445 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
24446 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
24447 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24448 | else | |
24449 | ac_check_lib_save_LIBS=$LIBS | |
24450 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
24451 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 24452 | #line $LINENO "configure" |
89fe663f VZ |
24453 | /* confdefs.h. */ |
24454 | _ACEOF | |
24455 | cat confdefs.h >>conftest.$ac_ext | |
24456 | cat >>conftest.$ac_ext <<_ACEOF | |
24457 | /* end confdefs.h. */ | |
24458 | ||
24459 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24460 | #ifdef __cplusplus | |
24461 | extern "C" | |
24462 | #endif | |
24463 | /* We use char because int might match the return type of a gcc2 | |
24464 | builtin and then its argument prototype would still apply. */ | |
24465 | char XShapeQueryExtension (); | |
24466 | int | |
24467 | main () | |
24468 | { | |
24469 | XShapeQueryExtension (); | |
24470 | ; | |
24471 | return 0; | |
24472 | } | |
24473 | _ACEOF | |
24474 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 24476 | (eval $ac_link) 2>&5 |
89fe663f VZ |
24477 | ac_status=$? |
24478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24479 | (exit $ac_status); } && | |
09d3439c | 24480 | { ac_try='test -s conftest$ac_exeext' |
89fe663f VZ |
24481 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24482 | (eval $ac_try) 2>&5 | |
24483 | ac_status=$? | |
24484 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24485 | (exit $ac_status); }; }; then | |
24486 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
24487 | else | |
24488 | echo "$as_me: failed program was:" >&5 | |
24489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24490 | ||
24491 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
24492 | fi | |
09d3439c | 24493 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
89fe663f VZ |
24494 | LIBS=$ac_check_lib_save_LIBS |
24495 | fi | |
24496 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
24497 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
24498 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
24499 | ||
24500 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
24501 | wxHAVE_XEXT_LIB=1 | |
24502 | ||
24503 | fi | |
24504 | ||
24505 | ||
24506 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
24507 | save_CFLAGS="$CFLAGS" | |
24508 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24509 | ||
24510 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
e6cc62c6 | 24511 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 |
89fe663f | 24512 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 24513 | #line $LINENO "configure" |
e6cc62c6 VS |
24514 | /* confdefs.h. */ |
24515 | _ACEOF | |
24516 | cat confdefs.h >>conftest.$ac_ext | |
24517 | cat >>conftest.$ac_ext <<_ACEOF | |
24518 | /* end confdefs.h. */ | |
24519 | ||
89fe663f VZ |
24520 | #include <X11/Xlib.h> |
24521 | #include <X11/extensions/shape.h> | |
e6cc62c6 VS |
24522 | |
24523 | int | |
24524 | main () | |
24525 | { | |
f7f78039 | 24526 | |
89fe663f VZ |
24527 | int dummy1, dummy2; |
24528 | XShapeQueryExtension((Display*)NULL, | |
24529 | (int*)NULL, (int*)NULL); | |
e6cc62c6 VS |
24530 | |
24531 | ; | |
24532 | return 0; | |
24533 | } | |
24534 | _ACEOF | |
24535 | rm -f conftest.$ac_objext | |
24536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 24537 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
24538 | ac_status=$? |
24539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24540 | (exit $ac_status); } && | |
09d3439c | 24541 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
24542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24543 | (eval $ac_try) 2>&5 | |
24544 | ac_status=$? | |
24545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24546 | (exit $ac_status); }; }; then | |
24547 | ||
89fe663f | 24548 | cat >>confdefs.h <<\_ACEOF |
f7f78039 | 24549 | #define HAVE_XSHAPE 1 |
e6cc62c6 VS |
24550 | _ACEOF |
24551 | ||
89fe663f | 24552 | echo "$as_me:$LINENO: result: found" >&5 |
e6cc62c6 | 24553 | echo "${ECHO_T}found" >&6 |
f7f78039 | 24554 | |
f7f78039 | 24555 | else |
e6cc62c6 VS |
24556 | echo "$as_me: failed program was:" >&5 |
24557 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24558 | ||
24559 | ||
89fe663f | 24560 | echo "$as_me:$LINENO: result: not found" >&5 |
e6cc62c6 VS |
24561 | echo "${ECHO_T}not found" >&6 |
24562 | ||
f7f78039 | 24563 | fi |
09d3439c | 24564 | rm -f conftest.$ac_objext conftest.$ac_ext |
89fe663f VZ |
24565 | CFLAGS="$save_CFLAGS" |
24566 | ||
24567 | fi | |
21d1c967 GD |
24568 | fi |
24569 | ||
24570 | if test "$wxUSE_MAC" = 1; then | |
8e91c6f3 VZ |
24571 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 |
24572 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
24573 | if test "$GCC" = yes; then | |
24574 | echo "$as_me:$LINENO: result: gcc" >&5 | |
24575 | echo "${ECHO_T}gcc" >&6 | |
24576 | CPPFLAGS_PASCAL="-fpascal-strings" | |
24577 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
24578 | echo "$as_me:$LINENO: result: xlc" >&5 | |
24579 | echo "${ECHO_T}xlc" >&6 | |
24580 | CPPFLAGS_PASCAL="-qmacpstr" | |
24581 | else | |
24582 | echo "$as_me:$LINENO: result: none" >&5 | |
24583 | echo "${ECHO_T}none" >&6 | |
24584 | fi | |
24585 | ||
24586 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/morefilex -I/Developer/Headers/FlatCarbon" | |
21d1c967 | 24587 | |
0c98a14e | 24588 | TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefilex" |
21d1c967 GD |
24589 | TOOLKIT=MAC |
24590 | GUIDIST=MACX_DIST | |
cf615ebb | 24591 | WXBASEPORT="_carbon" |
21d1c967 GD |
24592 | fi |
24593 | ||
ac0c4cc3 DE |
24594 | if test "$wxUSE_COCOA" = 1; then |
24595 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
24596 | TOOLKIT=COCOA | |
24597 | GUIDIST=COCOA_DIST | |
24598 | fi | |
24599 | ||
21d1c967 GD |
24600 | if test "$wxUSE_PM" = 1; then |
24601 | TOOLKIT=PM | |
24602 | GUIDIST=GTK_DIST | |
24603 | fi | |
24604 | ||
24605 | if test "$TOOLKIT" = "PM" ; then | |
24606 | TOOLKIT_DIR="os2" | |
24607 | else | |
24608 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
24609 | fi | |
24610 | ||
24611 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
24612 | ||
24613 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
24614 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
24615 | ||
24616 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
24617 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
24618 | ||
24619 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
24620 | if test "$wxUSE_X11" = 1; then | |
24621 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
24622 | else | |
24623 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
24624 | fi | |
24625 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
24626 | WIDGET_SET=univ | |
24627 | else | |
24628 | ALL_OBJECTS="\$(GUIOBJS)" | |
24629 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24630 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24631 | fi | |
24632 | ||
24633 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
24634 | ||
24635 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
24636 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
24637 | fi | |
24638 | ||
24639 | if test "$wxUSE_HTML" = "yes"; then | |
24640 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
24641 | fi | |
24642 | ||
24643 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
24644 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
24645 | fi | |
24646 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
24647 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
24648 | fi | |
24649 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
24650 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
24651 | fi | |
24652 | ||
24653 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
24654 | DISTDIR="wx\$(TOOLKIT)" | |
90dd450c | 24655 | else |
21d1c967 GD |
24656 | USE_GUI=0 |
24657 | ||
24658 | TOOLKIT_DIR="base" | |
24659 | ||
24660 | if test "$USE_WIN32" = 1 ; then | |
24661 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
24662 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
24663 | ||
24664 | TOOLKIT="MSW" | |
24665 | else | |
24666 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
24667 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
24668 | fi | |
24669 | ||
24670 | ALL_SOURCES="\$(ALL_SOURCES)" | |
24671 | ALL_HEADERS="\$(ALL_HEADERS)" | |
24672 | ||
24673 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
24674 | ||
24675 | GUIDIST="BASE_DIST" | |
24676 | DISTDIR="wxBase" | |
d836ee96 VZ |
24677 | fi |
24678 | ||
8284b0c5 | 24679 | |
8647bec6 RG |
24680 | |
24681 | ||
24682 | IODBC_C_SRC="" | |
24683 | ||
24684 | ||
24685 | if test "$TOOLKIT" != "MSW" ; then | |
24686 | ||
bb41dcbe | 24687 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then |
8647bec6 | 24688 | |
bb41dcbe | 24689 | if test "${ac_cv_header_sql_h+set}" = set; then |
e6cc62c6 VS |
24690 | echo "$as_me:$LINENO: checking for sql.h" >&5 |
24691 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24692 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24694 | fi | |
24695 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24696 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24697 | else | |
24698 | # Is the header compilable? | |
24699 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
24700 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
24701 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 24702 | #line $LINENO "configure" |
e6cc62c6 VS |
24703 | /* confdefs.h. */ |
24704 | _ACEOF | |
24705 | cat confdefs.h >>conftest.$ac_ext | |
24706 | cat >>conftest.$ac_ext <<_ACEOF | |
24707 | /* end confdefs.h. */ | |
24708 | $ac_includes_default | |
8647bec6 | 24709 | #include <sql.h> |
e6cc62c6 VS |
24710 | _ACEOF |
24711 | rm -f conftest.$ac_objext | |
24712 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 24713 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
24714 | ac_status=$? |
24715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24716 | (exit $ac_status); } && | |
09d3439c | 24717 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
24718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24719 | (eval $ac_try) 2>&5 | |
24720 | ac_status=$? | |
24721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24722 | (exit $ac_status); }; }; then | |
24723 | ac_header_compiler=yes | |
24724 | else | |
24725 | echo "$as_me: failed program was:" >&5 | |
24726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24727 | ||
24728 | ac_header_compiler=no | |
24729 | fi | |
09d3439c | 24730 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
24731 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24732 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
24733 | ||
24734 | # Is the header present? | |
24735 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
24736 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
24737 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 24738 | #line $LINENO "configure" |
e6cc62c6 VS |
24739 | /* confdefs.h. */ |
24740 | _ACEOF | |
24741 | cat confdefs.h >>conftest.$ac_ext | |
24742 | cat >>conftest.$ac_ext <<_ACEOF | |
24743 | /* end confdefs.h. */ | |
24744 | #include <sql.h> | |
24745 | _ACEOF | |
24746 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
24747 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
24748 | ac_status=$? | |
24749 | grep -v '^ *+' conftest.er1 >conftest.err | |
24750 | rm -f conftest.er1 | |
24751 | cat conftest.err >&5 | |
24752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24753 | (exit $ac_status); } >/dev/null; then | |
24754 | if test -s conftest.err; then | |
24755 | ac_cpp_err=$ac_c_preproc_warn_flag | |
24756 | else | |
24757 | ac_cpp_err= | |
24758 | fi | |
24759 | else | |
24760 | ac_cpp_err=yes | |
24761 | fi | |
24762 | if test -z "$ac_cpp_err"; then | |
24763 | ac_header_preproc=yes | |
24764 | else | |
24765 | echo "$as_me: failed program was:" >&5 | |
24766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24767 | ||
24768 | ac_header_preproc=no | |
24769 | fi | |
24770 | rm -f conftest.err conftest.$ac_ext | |
24771 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
24772 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
24773 | ||
24774 | # So? What about this header? | |
09d3439c VZ |
24775 | case $ac_header_compiler:$ac_header_preproc in |
24776 | yes:no ) | |
e6cc62c6 VS |
24777 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
24778 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
24779 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
24780 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24781 | ( | |
24782 | cat <<\_ASBOX | |
24783 | ## ------------------------------------ ## | |
24784 | ## Report this to bug-autoconf@gnu.org. ## | |
24785 | ## ------------------------------------ ## | |
24786 | _ASBOX | |
24787 | ) | | |
24788 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 24789 | ;; |
09d3439c | 24790 | no:yes ) |
e6cc62c6 VS |
24791 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
24792 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
09d3439c VZ |
24793 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
24794 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
24795 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
24796 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
24797 | ( | |
24798 | cat <<\_ASBOX | |
09d3439c VZ |
24799 | ## ------------------------------------ ## |
24800 | ## Report this to bug-autoconf@gnu.org. ## | |
24801 | ## ------------------------------------ ## | |
e6cc62c6 VS |
24802 | _ASBOX |
24803 | ) | | |
24804 | sed "s/^/$as_me: WARNING: /" >&2 | |
24805 | ;; | |
24806 | esac | |
24807 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
24808 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
24809 | if test "${ac_cv_header_sql_h+set}" = set; then | |
24810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8647bec6 | 24811 | else |
e6cc62c6 VS |
24812 | ac_cv_header_sql_h=$ac_header_preproc |
24813 | fi | |
24814 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
24815 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
24816 | ||
bb41dcbe VS |
24817 | fi |
24818 | if test $ac_cv_header_sql_h = yes; then | |
24819 | found_sql_h=1 | |
8647bec6 RG |
24820 | fi |
24821 | ||
e6cc62c6 | 24822 | |
bb41dcbe | 24823 | if test "x$found_sql_h" = "x1" ; then |
e46d2a18 VS |
24824 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 |
24825 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
24826 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
e6cc62c6 | 24827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8647bec6 | 24828 | else |
bb41dcbe | 24829 | ac_check_lib_save_LIBS=$LIBS |
e46d2a18 | 24830 | LIBS="-liodbc $LIBS" |
e6cc62c6 | 24831 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 24832 | #line $LINENO "configure" |
e6cc62c6 VS |
24833 | /* confdefs.h. */ |
24834 | _ACEOF | |
24835 | cat confdefs.h >>conftest.$ac_ext | |
24836 | cat >>conftest.$ac_ext <<_ACEOF | |
24837 | /* end confdefs.h. */ | |
24838 | ||
8647bec6 | 24839 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24840 | #ifdef __cplusplus |
24841 | extern "C" | |
24842 | #endif | |
8647bec6 | 24843 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 24844 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 24845 | char SQLAllocEnv (); |
e6cc62c6 VS |
24846 | int |
24847 | main () | |
24848 | { | |
e46d2a18 | 24849 | SQLAllocEnv (); |
e6cc62c6 VS |
24850 | ; |
24851 | return 0; | |
24852 | } | |
24853 | _ACEOF | |
24854 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24855 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 24856 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
24857 | ac_status=$? |
24858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24859 | (exit $ac_status); } && | |
09d3439c | 24860 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
24861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24862 | (eval $ac_try) 2>&5 | |
24863 | ac_status=$? | |
24864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24865 | (exit $ac_status); }; }; then | |
e46d2a18 | 24866 | ac_cv_lib_iodbc_SQLAllocEnv=yes |
8647bec6 | 24867 | else |
e6cc62c6 VS |
24868 | echo "$as_me: failed program was:" >&5 |
24869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24870 | ||
e46d2a18 | 24871 | ac_cv_lib_iodbc_SQLAllocEnv=no |
8647bec6 | 24872 | fi |
09d3439c | 24873 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe VS |
24874 | LIBS=$ac_check_lib_save_LIBS |
24875 | fi | |
e46d2a18 VS |
24876 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 |
24877 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
24878 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
24879 | ODBC_LINK=" -liodbc" |
24880 | else | |
24881 | ||
e46d2a18 VS |
24882 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 |
24883 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
24884 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
24885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24886 | else | |
24887 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 24888 | LIBS="-lunixodbc $LIBS" |
bb41dcbe | 24889 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 24890 | #line $LINENO "configure" |
e6cc62c6 VS |
24891 | /* confdefs.h. */ |
24892 | _ACEOF | |
24893 | cat confdefs.h >>conftest.$ac_ext | |
24894 | cat >>conftest.$ac_ext <<_ACEOF | |
24895 | /* end confdefs.h. */ | |
24896 | ||
8647bec6 | 24897 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
24898 | #ifdef __cplusplus |
24899 | extern "C" | |
24900 | #endif | |
8647bec6 | 24901 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 | 24902 | builtin and then its argument prototype would still apply. */ |
e46d2a18 | 24903 | char SQLAllocEnv (); |
e6cc62c6 VS |
24904 | int |
24905 | main () | |
24906 | { | |
e46d2a18 | 24907 | SQLAllocEnv (); |
e6cc62c6 VS |
24908 | ; |
24909 | return 0; | |
24910 | } | |
24911 | _ACEOF | |
24912 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24913 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 24914 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
24915 | ac_status=$? |
24916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24917 | (exit $ac_status); } && | |
09d3439c | 24918 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
24919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24920 | (eval $ac_try) 2>&5 | |
24921 | ac_status=$? | |
24922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24923 | (exit $ac_status); }; }; then | |
e46d2a18 | 24924 | ac_cv_lib_unixodbc_SQLAllocEnv=yes |
8647bec6 | 24925 | else |
e6cc62c6 VS |
24926 | echo "$as_me: failed program was:" >&5 |
24927 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24928 | ||
e46d2a18 | 24929 | ac_cv_lib_unixodbc_SQLAllocEnv=no |
8647bec6 | 24930 | fi |
09d3439c | 24931 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe | 24932 | LIBS=$ac_check_lib_save_LIBS |
e6cc62c6 | 24933 | fi |
e46d2a18 VS |
24934 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 |
24935 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
24936 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
24937 | ODBC_LINK=" -lunixodbc" |
24938 | else | |
24939 | ||
e46d2a18 VS |
24940 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 |
24941 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
24942 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
bb41dcbe VS |
24943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24944 | else | |
24945 | ac_check_lib_save_LIBS=$LIBS | |
e46d2a18 | 24946 | LIBS="-lodbc $LIBS" |
bb41dcbe | 24947 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 24948 | #line $LINENO "configure" |
bb41dcbe VS |
24949 | /* confdefs.h. */ |
24950 | _ACEOF | |
24951 | cat confdefs.h >>conftest.$ac_ext | |
24952 | cat >>conftest.$ac_ext <<_ACEOF | |
24953 | /* end confdefs.h. */ | |
e6cc62c6 | 24954 | |
bb41dcbe VS |
24955 | /* Override any gcc2 internal prototype to avoid an error. */ |
24956 | #ifdef __cplusplus | |
24957 | extern "C" | |
24958 | #endif | |
24959 | /* We use char because int might match the return type of a gcc2 | |
24960 | builtin and then its argument prototype would still apply. */ | |
e46d2a18 | 24961 | char SQLAllocEnv (); |
bb41dcbe VS |
24962 | int |
24963 | main () | |
24964 | { | |
e46d2a18 | 24965 | SQLAllocEnv (); |
bb41dcbe VS |
24966 | ; |
24967 | return 0; | |
24968 | } | |
24969 | _ACEOF | |
24970 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 24972 | (eval $ac_link) 2>&5 |
bb41dcbe VS |
24973 | ac_status=$? |
24974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24975 | (exit $ac_status); } && | |
09d3439c | 24976 | { ac_try='test -s conftest$ac_exeext' |
bb41dcbe VS |
24977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24978 | (eval $ac_try) 2>&5 | |
24979 | ac_status=$? | |
24980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24981 | (exit $ac_status); }; }; then | |
e46d2a18 | 24982 | ac_cv_lib_odbc_SQLAllocEnv=yes |
e6cc62c6 | 24983 | else |
bb41dcbe VS |
24984 | echo "$as_me: failed program was:" >&5 |
24985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24986 | ||
e46d2a18 | 24987 | ac_cv_lib_odbc_SQLAllocEnv=no |
bb41dcbe | 24988 | fi |
09d3439c | 24989 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
bb41dcbe VS |
24990 | LIBS=$ac_check_lib_save_LIBS |
24991 | fi | |
e46d2a18 VS |
24992 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 |
24993 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
24994 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
bb41dcbe VS |
24995 | ODBC_LINK=" -lodbc" |
24996 | fi | |
24997 | ||
24998 | ||
24999 | fi | |
e6cc62c6 | 25000 | |
e6cc62c6 | 25001 | |
8647bec6 | 25002 | fi |
e6cc62c6 | 25003 | |
fd3d7534 | 25004 | fi |
bb41dcbe VS |
25005 | if test "x$ODBC_LINK" = "x" ; then |
25006 | if test "$wxUSE_ODBC" = "sys" ; then | |
25007 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
25008 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
25009 | { (exit 1); exit 1; }; } | |
25010 | else | |
25011 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
25012 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
25013 | wxUSE_ODBC=builtin | |
25014 | fi | |
25015 | else | |
25016 | wxUSE_ODBC=sys | |
8647bec6 | 25017 | fi |
8647bec6 | 25018 | fi |
bb41dcbe VS |
25019 | if test "$wxUSE_ODBC" != "no" ; then |
25020 | cat >>confdefs.h <<\_ACEOF | |
25021 | #define wxUSE_ODBC 1 | |
25022 | _ACEOF | |
e6cc62c6 | 25023 | |
0bdb08e7 VS |
25024 | if test "$wxUSE_ODBC" = "builtin" ; then |
25025 | cat >>confdefs.h <<\_ACEOF | |
25026 | #define wxUSE_BUILTIN_IODBC 1 | |
25027 | _ACEOF | |
25028 | ||
25029 | fi | |
bb41dcbe VS |
25030 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" |
25031 | ||
25032 | WXODBCFLAG="-D_IODBC_" | |
25033 | fi | |
6232543b | 25034 | fi |
21d1c967 GD |
25035 | |
25036 | if test "$wxUSE_REGEX" = "builtin" ; then | |
25037 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
1e487827 | 25038 | fi |
21d1c967 GD |
25039 | if test "$wxUSE_ZLIB" = "builtin" ; then |
25040 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
bd3277fe VZ |
25041 | fi |
25042 | ||
74500461 VS |
25043 | if test "$wxUSE_DISPLAY" = "yes"; then |
25044 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then | |
25045 | echo "$as_me:$LINENO: checking for Xinerama" >&5 | |
25046 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
25047 | ||
25048 | ac_find_libraries= | |
25049 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25050 | do | |
25051 | for ac_extension in a so sl dylib; do | |
25052 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
25053 | ac_find_libraries=$ac_dir | |
25054 | break 2 | |
25055 | fi | |
25056 | done | |
25057 | done | |
25058 | ||
25059 | if test "$ac_find_libraries" != "" ; then | |
25060 | ||
25061 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
25062 | result=$? | |
25063 | if test $result = 0; then | |
25064 | ac_path_to_link="" | |
25065 | else | |
25066 | ac_path_to_link=" -L$ac_find_libraries" | |
25067 | fi | |
25068 | ||
25069 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
25070 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
25071 | fi | |
25072 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
25073 | echo "$as_me:$LINENO: result: yes" >&5 | |
25074 | echo "${ECHO_T}yes" >&6 | |
505c8ccd VS |
25075 | |
25076 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
25077 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
25078 | ||
25079 | ac_find_libraries= | |
25080 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25081 | do | |
25082 | for ac_extension in a so sl dylib; do | |
25083 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
25084 | ac_find_libraries=$ac_dir | |
25085 | break 2 | |
25086 | fi | |
25087 | done | |
25088 | done | |
25089 | ||
25090 | if test "$ac_find_libraries" != "" ; then | |
25091 | echo "$as_me:$LINENO: result: yes" >&5 | |
25092 | echo "${ECHO_T}yes" >&6 | |
25093 | ||
25094 | for ac_header in X11/extensions/xf86vmode.h | |
25095 | do | |
25096 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25097 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25098 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25099 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25101 | else | |
25102 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 25103 | #line $LINENO "configure" |
505c8ccd VS |
25104 | /* confdefs.h. */ |
25105 | _ACEOF | |
25106 | cat confdefs.h >>conftest.$ac_ext | |
25107 | cat >>conftest.$ac_ext <<_ACEOF | |
25108 | /* end confdefs.h. */ | |
25109 | ||
25110 | #if HAVE_X11_XLIB_H | |
25111 | #include <X11/Xlib.h> | |
25112 | #endif | |
25113 | ||
25114 | ||
25115 | #include <$ac_header> | |
25116 | _ACEOF | |
25117 | rm -f conftest.$ac_objext | |
25118 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 25119 | (eval $ac_compile) 2>&5 |
505c8ccd | 25120 | ac_status=$? |
505c8ccd VS |
25121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25122 | (exit $ac_status); } && | |
09d3439c | 25123 | { ac_try='test -s conftest.$ac_objext' |
505c8ccd VS |
25124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25125 | (eval $ac_try) 2>&5 | |
25126 | ac_status=$? | |
25127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25128 | (exit $ac_status); }; }; then | |
25129 | eval "$as_ac_Header=yes" | |
25130 | else | |
25131 | echo "$as_me: failed program was:" >&5 | |
25132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25133 | ||
25134 | eval "$as_ac_Header=no" | |
25135 | fi | |
09d3439c | 25136 | rm -f conftest.$ac_objext conftest.$ac_ext |
505c8ccd VS |
25137 | fi |
25138 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25139 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25140 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25141 | cat >>confdefs.h <<_ACEOF | |
25142 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25143 | _ACEOF | |
25144 | ||
25145 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
25146 | ||
25147 | fi | |
25148 | ||
25149 | done | |
25150 | ||
25151 | else | |
25152 | echo "$as_me:$LINENO: result: no" >&5 | |
25153 | echo "${ECHO_T}no" >&6 | |
25154 | fi | |
25155 | ||
74500461 VS |
25156 | else |
25157 | echo "$as_me:$LINENO: result: no" >&5 | |
25158 | echo "${ECHO_T}no" >&6 | |
25159 | { echo "$as_me:$LINENO: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&5 | |
25160 | echo "$as_me: WARNING: \"*** Xinerama not found; disabling wxDisplay\"" >&2;} | |
25161 | wxUSE_DISPLAY="no" | |
25162 | fi | |
25163 | fi | |
25164 | fi | |
25165 | ||
8284b0c5 | 25166 | |
4d264332 | 25167 | USE_OPENGL=0 |
21d1c967 | 25168 | if test "$wxUSE_OPENGL" = "yes"; then |
ac0c4cc3 | 25169 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
21d1c967 GD |
25170 | OPENGL_LIBS="-framework OpenGL -framework AGL" |
25171 | elif test "$wxUSE_MSW" = 1; then | |
25172 | OPENGL_LIBS="-lopengl32 -lglu32" | |
25173 | else | |
01aa5863 VS |
25174 | |
25175 | ||
25176 | ac_find_includes= | |
25177 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
25178 | do | |
25179 | if test -f "$ac_dir/GL/gl.h"; then | |
25180 | ac_find_includes=$ac_dir | |
25181 | break | |
25182 | fi | |
25183 | done | |
25184 | ||
25185 | if test "$ac_find_includes" != "" ; then | |
25186 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
25187 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
01aa5863 VS |
25188 | |
25189 | if test "x$ac_find_includes" = "x/usr/include"; then | |
25190 | ac_path_to_include="" | |
25191 | else | |
25192 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
25193 | result=$? | |
25194 | if test $result = 0; then | |
25195 | ac_path_to_include="" | |
25196 | else | |
25197 | ac_path_to_include=" -I$ac_find_includes" | |
25198 | fi | |
25199 | fi | |
25200 | ||
25201 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
01aa5863 VS |
25202 | fi |
25203 | ||
e6cc62c6 VS |
25204 | if test "${ac_cv_header_GL_gl_h+set}" = set; then |
25205 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
25206 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
25207 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
25208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25209 | fi | |
25210 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
25211 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
25212 | else | |
25213 | # Is the header compilable? | |
25214 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
25215 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
25216 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 25217 | #line $LINENO "configure" |
e6cc62c6 VS |
25218 | /* confdefs.h. */ |
25219 | _ACEOF | |
25220 | cat confdefs.h >>conftest.$ac_ext | |
25221 | cat >>conftest.$ac_ext <<_ACEOF | |
25222 | /* end confdefs.h. */ | |
25223 | $ac_includes_default | |
21d1c967 | 25224 | #include <GL/gl.h> |
e6cc62c6 VS |
25225 | _ACEOF |
25226 | rm -f conftest.$ac_objext | |
25227 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 25228 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
25229 | ac_status=$? |
25230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25231 | (exit $ac_status); } && | |
09d3439c | 25232 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
25233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25234 | (eval $ac_try) 2>&5 | |
25235 | ac_status=$? | |
25236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25237 | (exit $ac_status); }; }; then | |
25238 | ac_header_compiler=yes | |
25239 | else | |
25240 | echo "$as_me: failed program was:" >&5 | |
25241 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25242 | ||
25243 | ac_header_compiler=no | |
25244 | fi | |
09d3439c | 25245 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
25246 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25247 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25248 | ||
25249 | # Is the header present? | |
25250 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
25251 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
25252 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 25253 | #line $LINENO "configure" |
e6cc62c6 VS |
25254 | /* confdefs.h. */ |
25255 | _ACEOF | |
25256 | cat confdefs.h >>conftest.$ac_ext | |
25257 | cat >>conftest.$ac_ext <<_ACEOF | |
25258 | /* end confdefs.h. */ | |
25259 | #include <GL/gl.h> | |
25260 | _ACEOF | |
25261 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25262 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25263 | ac_status=$? | |
25264 | grep -v '^ *+' conftest.er1 >conftest.err | |
25265 | rm -f conftest.er1 | |
25266 | cat conftest.err >&5 | |
25267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25268 | (exit $ac_status); } >/dev/null; then | |
25269 | if test -s conftest.err; then | |
25270 | ac_cpp_err=$ac_c_preproc_warn_flag | |
25271 | else | |
25272 | ac_cpp_err= | |
25273 | fi | |
25274 | else | |
25275 | ac_cpp_err=yes | |
25276 | fi | |
25277 | if test -z "$ac_cpp_err"; then | |
25278 | ac_header_preproc=yes | |
25279 | else | |
25280 | echo "$as_me: failed program was:" >&5 | |
25281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25282 | ||
25283 | ac_header_preproc=no | |
25284 | fi | |
25285 | rm -f conftest.err conftest.$ac_ext | |
25286 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25287 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25288 | ||
25289 | # So? What about this header? | |
09d3439c VZ |
25290 | case $ac_header_compiler:$ac_header_preproc in |
25291 | yes:no ) | |
e6cc62c6 VS |
25292 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25293 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
25294 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
25295 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
25296 | ( | |
25297 | cat <<\_ASBOX | |
25298 | ## ------------------------------------ ## | |
25299 | ## Report this to bug-autoconf@gnu.org. ## | |
25300 | ## ------------------------------------ ## | |
25301 | _ASBOX | |
25302 | ) | | |
25303 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 25304 | ;; |
09d3439c | 25305 | no:yes ) |
e6cc62c6 VS |
25306 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
25307 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
09d3439c VZ |
25308 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
25309 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
25310 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
25311 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
25312 | ( | |
25313 | cat <<\_ASBOX | |
09d3439c VZ |
25314 | ## ------------------------------------ ## |
25315 | ## Report this to bug-autoconf@gnu.org. ## | |
25316 | ## ------------------------------------ ## | |
e6cc62c6 VS |
25317 | _ASBOX |
25318 | ) | | |
25319 | sed "s/^/$as_me: WARNING: /" >&2 | |
25320 | ;; | |
25321 | esac | |
25322 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
25323 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
25324 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
25325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25326 | else | |
25327 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
703e0a69 | 25328 | fi |
e6cc62c6 VS |
25329 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 |
25330 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
25331 | ||
698dcdb6 | 25332 | fi |
e6cc62c6 VS |
25333 | if test $ac_cv_header_GL_gl_h = yes; then |
25334 | ||
89e3b3e4 VZ |
25335 | found_gl=0 |
25336 | ||
e6cc62c6 VS |
25337 | echo "$as_me:$LINENO: checking for -lGL" >&5 |
25338 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
25339 | ||
21d1c967 | 25340 | ac_find_libraries= |
2b5f62a0 | 25341 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
25342 | do |
25343 | for ac_extension in a so sl dylib; do | |
25344 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
25345 | ac_find_libraries=$ac_dir | |
25346 | break 2 | |
25347 | fi | |
25348 | done | |
25349 | done | |
25350 | ||
25351 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25352 | |
21d1c967 GD |
25353 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25354 | result=$? | |
25355 | if test $result = 0; then | |
25356 | ac_path_to_link="" | |
25357 | else | |
25358 | ac_path_to_link=" -L$ac_find_libraries" | |
25359 | fi | |
25360 | ||
89e3b3e4 VZ |
25361 | if test "$ac_path_to_link" != " -L/usr/lib" ; then |
25362 | LDFLAGS_GL="$ac_path_to_link" | |
21d1c967 | 25363 | fi |
89e3b3e4 | 25364 | |
e6cc62c6 | 25365 | |
89e3b3e4 VZ |
25366 | ac_find_libraries= |
25367 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25368 | do | |
25369 | for ac_extension in a so sl dylib; do | |
25370 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
25371 | ac_find_libraries=$ac_dir | |
25372 | break 2 | |
25373 | fi | |
25374 | done | |
25375 | done | |
25376 | ||
25377 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25378 | |
89e3b3e4 VZ |
25379 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25380 | result=$? | |
25381 | if test $result = 0; then | |
25382 | ac_path_to_link="" | |
25383 | else | |
25384 | ac_path_to_link=" -L$ac_find_libraries" | |
25385 | fi | |
25386 | ||
25387 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
25388 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
25389 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
25390 | fi | |
25391 | ||
25392 | found_gl=1 | |
25393 | OPENGL_LIBS="-lGL -lGLU" | |
e6cc62c6 VS |
25394 | echo "$as_me:$LINENO: result: yes" >&5 |
25395 | echo "${ECHO_T}yes" >&6 | |
89e3b3e4 VZ |
25396 | fi |
25397 | fi | |
25398 | ||
bb41dcbe | 25399 | if test "$found_gl" != 1; then |
e6cc62c6 VS |
25400 | echo "$as_me:$LINENO: result: no" >&5 |
25401 | echo "${ECHO_T}no" >&6 | |
25402 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
25403 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
25404 | ||
21d1c967 | 25405 | ac_find_libraries= |
2b5f62a0 | 25406 | for ac_dir in $SEARCH_LIB /usr/lib; |
21d1c967 GD |
25407 | do |
25408 | for ac_extension in a so sl dylib; do | |
25409 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
25410 | ac_find_libraries=$ac_dir | |
25411 | break 2 | |
25412 | fi | |
25413 | done | |
25414 | done | |
25415 | ||
25416 | if test "$ac_find_libraries" != "" ; then | |
e6cc62c6 | 25417 | |
21d1c967 GD |
25418 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null |
25419 | result=$? | |
25420 | if test $result = 0; then | |
25421 | ac_path_to_link="" | |
25422 | else | |
25423 | ac_path_to_link=" -L$ac_find_libraries" | |
25424 | fi | |
25425 | ||
25426 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
25427 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
e6cc62c6 VS |
25428 | echo "$as_me:$LINENO: result: yes" >&5 |
25429 | echo "${ECHO_T}yes" >&6 | |
21d1c967 | 25430 | else |
e6cc62c6 VS |
25431 | echo "$as_me:$LINENO: result: no" >&5 |
25432 | echo "${ECHO_T}no" >&6 | |
21d1c967 GD |
25433 | fi |
25434 | fi | |
e6cc62c6 | 25435 | |
5c6fa7d2 | 25436 | fi |
52127426 | 25437 | |
8284b0c5 | 25438 | |
e6cc62c6 | 25439 | |
21d1c967 | 25440 | if test "x$OPENGL_LIBS" = "x"; then |
e6cc62c6 VS |
25441 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 |
25442 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
25443 | { (exit 1); exit 1; }; } | |
21d1c967 GD |
25444 | fi |
25445 | fi | |
90dd450c | 25446 | |
21d1c967 | 25447 | if test "$wxUSE_OPENGL" = "yes"; then |
4d264332 | 25448 | USE_OPENGL=1 |
e6cc62c6 | 25449 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 25450 | #define wxUSE_OPENGL 1 |
e6cc62c6 | 25451 | _ACEOF |
21d1c967 | 25452 | |
e6cc62c6 | 25453 | cat >>confdefs.h <<\_ACEOF |
21d1c967 | 25454 | #define wxUSE_GLCANVAS 1 |
e6cc62c6 | 25455 | _ACEOF |
21d1c967 | 25456 | |
520755bb | 25457 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" |
21d1c967 | 25458 | fi |
10f2d63a | 25459 | fi |
21d1c967 GD |
25460 | |
25461 | if test -z "$TOOLKIT_VPATH" ; then | |
25462 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
10f2d63a | 25463 | fi |
21d1c967 GD |
25464 | |
25465 | if test -n "$TOOLKIT" ; then | |
25466 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
25467 | fi | |
25468 | ||
fe0895cf | 25469 | UNICODE=0 |
21d1c967 GD |
25470 | lib_unicode_suffix= |
25471 | if test "$wxUSE_UNICODE" = "yes"; then | |
25472 | lib_unicode_suffix=u | |
fe0895cf | 25473 | UNICODE=1 |
90dd450c | 25474 | fi |
698dcdb6 | 25475 | |
21d1c967 | 25476 | lib_debug_suffix= |
6c67131a | 25477 | DEBUG_FLAG=0 |
21d1c967 GD |
25478 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then |
25479 | lib_debug_suffix=d | |
6c67131a VS |
25480 | DEBUG_FLAG=1 |
25481 | fi | |
25482 | ||
25483 | DEBUG_INFO=0 | |
25484 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
25485 | DEBUG_INFO=1 | |
21d1c967 | 25486 | fi |
698dcdb6 | 25487 | |
1cbb95a2 | 25488 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` |
2b5f62a0 VZ |
25489 | |
25490 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
25491 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
21d1c967 GD |
25492 | |
25493 | if test "$cross_compiling" = "yes"; then | |
25494 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
25495 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
ea66c762 | 25496 | HOST_SUFFIX="-${host_alias}" |
21d1c967 GD |
25497 | fi |
25498 | ||
25499 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
25500 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
cf615ebb VS |
25501 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" |
25502 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
21d1c967 GD |
25503 | |
25504 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
25505 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
25506 | ||
25507 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
25508 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
25509 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
25510 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
25511 | ||
25512 | case "${host}" in | |
25513 | *-*-cygwin* | *-*-mingw32* ) | |
ec67c474 VS |
25514 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" |
25515 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
21d1c967 GD |
25516 | ;; |
25517 | ||
25518 | *-*-darwin* ) | |
e6cc62c6 | 25519 | |
05159a27 GD |
25520 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" |
25521 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
25522 | ||
25523 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
25524 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
25525 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
25526 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
25527 | ||
09d3439c VZ |
25528 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then |
25529 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
f346733b | 25530 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" |
21d1c967 GD |
25531 | fi |
25532 | ;; | |
25533 | esac | |
25534 | ||
25535 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
25536 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
25537 | ||
25538 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
25539 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
25540 | ||
25541 | if test "$wxUSE_OPENGL" = "yes"; then | |
25542 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
25543 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
25544 | fi | |
25545 | ||
8284b0c5 MB |
25546 | |
25547 | ||
21d1c967 GD |
25548 | if test "$wxUSE_SHARED" = "yes"; then |
25549 | case "${host}" in | |
25550 | *-pc-os2_emx | *-pc-os2-emx | \ | |
25551 | *-pc-msdosdjgpp ) | |
25552 | wxUSE_SHARED=no | |
e6cc62c6 VS |
25553 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 |
25554 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
21d1c967 GD |
25555 | ;; |
25556 | esac | |
25557 | fi | |
25558 | ||
fe0895cf | 25559 | SHARED=0 |
2b5f62a0 | 25560 | if test "$wxUSE_SHARED" = "yes"; then |
fe0895cf | 25561 | SHARED=1 |
2b5f62a0 | 25562 | |
e6cc62c6 | 25563 | |
2b5f62a0 VZ |
25564 | found_versioning=no |
25565 | ||
e6cc62c6 | 25566 | |
2b5f62a0 | 25567 | if test $found_versioning = no ; then |
e6cc62c6 VS |
25568 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 |
25569 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
25570 | if test "${wx_cv_version_script+set}" = set; then | |
25571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2b5f62a0 | 25572 | else |
e6cc62c6 | 25573 | |
2b5f62a0 VZ |
25574 | echo "VER_1 { *; };" >conftest.sym |
25575 | echo "int main() { return 0; }" >conftest.cpp | |
e6cc62c6 | 25576 | |
2b5f62a0 VZ |
25577 | if { ac_try=' |
25578 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
e6cc62c6 VS |
25579 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' |
25580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
25581 | (eval $ac_try) 2>&5 | |
25582 | ac_status=$? | |
25583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25584 | (exit $ac_status); }; } ; then | |
2b5f62a0 VZ |
25585 | if test -s conftest.stderr ; then |
25586 | wx_cv_version_script=no | |
25587 | else | |
25588 | wx_cv_version_script=yes | |
25589 | fi | |
25590 | else | |
25591 | wx_cv_version_script=no | |
25592 | fi | |
25593 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
2b5f62a0 | 25594 | |
e6cc62c6 VS |
25595 | fi |
25596 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
25597 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
2b5f62a0 | 25598 | if test $wx_cv_version_script = yes ; then |
e6cc62c6 | 25599 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" |
2b5f62a0 VZ |
25600 | fi |
25601 | fi | |
21d1c967 | 25602 | |
21d1c967 | 25603 | |
21d1c967 | 25604 | case "${host}" in |
fe0895cf | 25605 | *-*-linux* | *-*-gnu* ) |
e6cc62c6 | 25606 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" |
345b8952 | 25607 | ;; |
21d1c967 GD |
25608 | |
25609 | *-*-solaris2* ) | |
25610 | if test "$GCC" = yes ; then | |
25611 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
fe0895cf VS |
25612 | |
25613 | saveLdflags="$LDFLAGS" | |
25614 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
e6cc62c6 VS |
25615 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 |
25616 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
25617 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 25618 | #line $LINENO "configure" |
e6cc62c6 VS |
25619 | /* confdefs.h. */ |
25620 | _ACEOF | |
25621 | cat confdefs.h >>conftest.$ac_ext | |
25622 | cat >>conftest.$ac_ext <<_ACEOF | |
25623 | /* end confdefs.h. */ | |
25624 | ||
25625 | int | |
25626 | main () | |
25627 | { | |
fe0895cf | 25628 | |
e6cc62c6 VS |
25629 | ; |
25630 | return 0; | |
25631 | } | |
25632 | _ACEOF | |
25633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 25635 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
25636 | ac_status=$? |
25637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25638 | (exit $ac_status); } && | |
09d3439c | 25639 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
25640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25641 | (eval $ac_try) 2>&5 | |
25642 | ac_status=$? | |
25643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25644 | (exit $ac_status); }; }; then | |
25645 | ||
25646 | echo "$as_me:$LINENO: result: yes" >&5 | |
25647 | echo "${ECHO_T}yes" >&6 | |
25648 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
25649 | ||
25650 | else | |
25651 | echo "$as_me: failed program was:" >&5 | |
25652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25653 | ||
25654 | ||
25655 | echo "$as_me:$LINENO: result: no" >&5 | |
25656 | echo "${ECHO_T}no" >&6 | |
25657 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
25658 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
fe0895cf | 25659 | LDFLAGS="$saveLdflags -Wl,-R,/" |
e6cc62c6 | 25660 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 25661 | #line $LINENO "configure" |
e6cc62c6 VS |
25662 | /* confdefs.h. */ |
25663 | _ACEOF | |
25664 | cat confdefs.h >>conftest.$ac_ext | |
25665 | cat >>conftest.$ac_ext <<_ACEOF | |
25666 | /* end confdefs.h. */ | |
25667 | ||
25668 | int | |
25669 | main () | |
25670 | { | |
25671 | ||
25672 | ; | |
25673 | return 0; | |
25674 | } | |
25675 | _ACEOF | |
25676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 25678 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
25679 | ac_status=$? |
25680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25681 | (exit $ac_status); } && | |
09d3439c | 25682 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
25683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25684 | (eval $ac_try) 2>&5 | |
25685 | ac_status=$? | |
25686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25687 | (exit $ac_status); }; }; then | |
25688 | ||
25689 | echo "$as_me:$LINENO: result: yes" >&5 | |
25690 | echo "${ECHO_T}yes" >&6 | |
25691 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
25692 | else | |
25693 | echo "$as_me: failed program was:" >&5 | |
25694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
fe0895cf | 25695 | |
fe0895cf | 25696 | |
e6cc62c6 VS |
25697 | echo "$as_me:$LINENO: result: no" >&5 |
25698 | echo "${ECHO_T}no" >&6 | |
25699 | ||
fe0895cf | 25700 | fi |
09d3439c | 25701 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
25702 | |
25703 | fi | |
09d3439c | 25704 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
fe0895cf | 25705 | LDFLAGS="$saveLdflags" |
21d1c967 GD |
25706 | else |
25707 | SHARED_LD="${CXX} -G -o" | |
25708 | PIC_FLAG="-KPIC" | |
e6cc62c6 | 25709 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" |
21d1c967 GD |
25710 | fi |
25711 | ;; | |
0f1bc9c2 VS |
25712 | |
25713 | powerpc-*-darwin* ) | |
ef0add05 VS |
25714 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" |
25715 | cat <<EOF >change-install-names | |
25716 | #!/bin/sh | |
25717 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
25718 | inst_cmd="install_name_tool " | |
25719 | for i in \${libnames} ; do | |
25720 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
25721 | done | |
25722 | \${inst_cmd} \${3} | |
25723 | EOF | |
25724 | chmod +x change-install-names | |
0f1bc9c2 VS |
25725 | ;; |
25726 | ||
21d1c967 GD |
25727 | esac |
25728 | ||
25729 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
25730 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
25731 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
25732 | fi | |
25733 | ||
25734 | WX_TARGET_LIBRARY_TYPE="so" | |
25735 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
90dd450c | 25736 | fi |
10f2d63a | 25737 | |
21d1c967 GD |
25738 | if test "$wxUSE_SHARED" = "no"; then |
25739 | ||
25740 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
25741 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
25742 | fi | |
25743 | ||
ac0c4cc3 | 25744 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
21d1c967 GD |
25745 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" |
25746 | fi | |
25747 | ||
25748 | if test "$wxUSE_OPENGL" = "yes"; then | |
25749 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
25750 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
25751 | else | |
25752 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
25753 | fi | |
25754 | ||
25755 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
25756 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
25757 | ||
25758 | WX_TARGET_LIBRARY_TYPE="a" | |
25759 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
2bffed64 VZ |
25760 | |
25761 | STATIC_FLAG="yes" | |
25762 | else | |
25763 | STATIC_FLAG="no" | |
90dd450c | 25764 | fi |
1e487827 | 25765 | |
09d3439c | 25766 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then |
e6cc62c6 | 25767 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" |
21d1c967 GD |
25768 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" |
25769 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
09d3439c | 25770 | |
21d1c967 GD |
25771 | # Extract the first word of "Rez", so it can be a program name with args. |
25772 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
25773 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25774 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25775 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
25776 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b93d0d08 | 25777 | else |
21d1c967 GD |
25778 | if test -n "$RESCOMP"; then |
25779 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
b93d0d08 | 25780 | else |
e6cc62c6 VS |
25781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25782 | for as_dir in $PATH | |
25783 | do | |
25784 | IFS=$as_save_IFS | |
25785 | test -z "$as_dir" && as_dir=. | |
25786 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25787 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25788 | ac_cv_prog_RESCOMP="Rez" | |
25789 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25790 | break 2 | |
25791 | fi | |
25792 | done | |
25793 | done | |
25794 | ||
21d1c967 | 25795 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
b93d0d08 | 25796 | fi |
b93d0d08 | 25797 | fi |
e6cc62c6 | 25798 | RESCOMP=$ac_cv_prog_RESCOMP |
21d1c967 | 25799 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
25800 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
25801 | echo "${ECHO_T}$RESCOMP" >&6 | |
90dd450c | 25802 | else |
e6cc62c6 VS |
25803 | echo "$as_me:$LINENO: result: no" >&5 |
25804 | echo "${ECHO_T}no" >&6 | |
90dd450c | 25805 | fi |
b93d0d08 | 25806 | |
21d1c967 GD |
25807 | # Extract the first word of "DeRez", so it can be a program name with args. |
25808 | set dummy DeRez; ac_word=$2 | |
e6cc62c6 VS |
25809 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25810 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25811 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
25812 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3a922bb4 | 25813 | else |
21d1c967 GD |
25814 | if test -n "$DEREZ"; then |
25815 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
4f14bcd8 | 25816 | else |
e6cc62c6 VS |
25817 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25818 | for as_dir in $PATH | |
25819 | do | |
25820 | IFS=$as_save_IFS | |
25821 | test -z "$as_dir" && as_dir=. | |
25822 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25823 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25824 | ac_cv_prog_DEREZ="DeRez" | |
25825 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25826 | break 2 | |
25827 | fi | |
25828 | done | |
25829 | done | |
25830 | ||
21d1c967 | 25831 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" |
3a922bb4 | 25832 | fi |
90dd450c | 25833 | fi |
e6cc62c6 | 25834 | DEREZ=$ac_cv_prog_DEREZ |
21d1c967 | 25835 | if test -n "$DEREZ"; then |
e6cc62c6 VS |
25836 | echo "$as_me:$LINENO: result: $DEREZ" >&5 |
25837 | echo "${ECHO_T}$DEREZ" >&6 | |
90dd450c | 25838 | else |
e6cc62c6 VS |
25839 | echo "$as_me:$LINENO: result: no" >&5 |
25840 | echo "${ECHO_T}no" >&6 | |
3a922bb4 | 25841 | fi |
698dcdb6 | 25842 | |
36825681 GD |
25843 | # Extract the first word of "SetFile", so it can be a program name with args. |
25844 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
25845 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25846 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
25847 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
25848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36825681 GD |
25849 | else |
25850 | if test -n "$SETFILE"; then | |
25851 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
25852 | else | |
e6cc62c6 VS |
25853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25854 | for as_dir in $PATH | |
25855 | do | |
25856 | IFS=$as_save_IFS | |
25857 | test -z "$as_dir" && as_dir=. | |
25858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
25859 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
25860 | ac_cv_prog_SETFILE="SetFile" | |
25861 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
25862 | break 2 | |
25863 | fi | |
25864 | done | |
25865 | done | |
25866 | ||
36825681 GD |
25867 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
25868 | fi | |
25869 | fi | |
e6cc62c6 | 25870 | SETFILE=$ac_cv_prog_SETFILE |
36825681 | 25871 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
25872 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
25873 | echo "${ECHO_T}$SETFILE" >&6 | |
36825681 | 25874 | else |
e6cc62c6 VS |
25875 | echo "$as_me:$LINENO: result: no" >&5 |
25876 | echo "${ECHO_T}no" >&6 | |
36825681 GD |
25877 | fi |
25878 | ||
e6cc62c6 | 25879 | |
09d3439c | 25880 | MACSETFILE="\$(SETFILE)" |
64440d77 | 25881 | |
09d3439c VZ |
25882 | if test "$wxUSE_MAC" = 1; then |
25883 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
e6cc62c6 | 25884 | |
09d3439c VZ |
25885 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" |
25886 | else | |
25887 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
25888 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
25889 | fi | |
64440d77 | 25890 | else |
09d3439c VZ |
25891 | MACSETFILE="@#" |
25892 | MACRESWXCONFIG="#" | |
64440d77 | 25893 | |
09d3439c | 25894 | if test "$wxUSE_PM" = 1; then |
36825681 | 25895 | MACRESCOMP="emxbind -ep" |
09d3439c VZ |
25896 | else |
25897 | MACRESCOMP="@#" | |
90dd450c | 25898 | fi |
4f14bcd8 | 25899 | fi |
10f2d63a | 25900 | |
8284b0c5 | 25901 | |
e6cc62c6 VS |
25902 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
25903 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
25904 | if test "${ac_cv_type_mode_t+set}" = set; then | |
25905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
52127426 | 25906 | else |
e6cc62c6 | 25907 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 25908 | #line $LINENO "configure" |
e6cc62c6 VS |
25909 | /* confdefs.h. */ |
25910 | _ACEOF | |
25911 | cat confdefs.h >>conftest.$ac_ext | |
25912 | cat >>conftest.$ac_ext <<_ACEOF | |
25913 | /* end confdefs.h. */ | |
25914 | $ac_includes_default | |
25915 | int | |
25916 | main () | |
25917 | { | |
25918 | if ((mode_t *) 0) | |
25919 | return 0; | |
25920 | if (sizeof (mode_t)) | |
25921 | return 0; | |
25922 | ; | |
25923 | return 0; | |
25924 | } | |
25925 | _ACEOF | |
25926 | rm -f conftest.$ac_objext | |
25927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 25928 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
25929 | ac_status=$? |
25930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25931 | (exit $ac_status); } && | |
09d3439c | 25932 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
25933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25934 | (eval $ac_try) 2>&5 | |
25935 | ac_status=$? | |
25936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25937 | (exit $ac_status); }; }; then | |
25938 | ac_cv_type_mode_t=yes | |
a0b9e27f | 25939 | else |
e6cc62c6 VS |
25940 | echo "$as_me: failed program was:" >&5 |
25941 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25942 | |
e6cc62c6 | 25943 | ac_cv_type_mode_t=no |
a0b9e27f | 25944 | fi |
09d3439c | 25945 | rm -f conftest.$ac_objext conftest.$ac_ext |
52127426 | 25946 | fi |
e6cc62c6 VS |
25947 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
25948 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
25949 | if test $ac_cv_type_mode_t = yes; then | |
247f5006 VZ |
25950 | : |
25951 | else | |
a0b9e27f | 25952 | |
e6cc62c6 VS |
25953 | cat >>confdefs.h <<_ACEOF |
25954 | #define mode_t int | |
25955 | _ACEOF | |
8284b0c5 MB |
25956 | |
25957 | fi | |
25958 | ||
e6cc62c6 VS |
25959 | echo "$as_me:$LINENO: checking for off_t" >&5 |
25960 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
25961 | if test "${ac_cv_type_off_t+set}" = set; then | |
25962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 25963 | else |
e6cc62c6 | 25964 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 25965 | #line $LINENO "configure" |
e6cc62c6 VS |
25966 | /* confdefs.h. */ |
25967 | _ACEOF | |
25968 | cat confdefs.h >>conftest.$ac_ext | |
25969 | cat >>conftest.$ac_ext <<_ACEOF | |
25970 | /* end confdefs.h. */ | |
25971 | $ac_includes_default | |
25972 | int | |
25973 | main () | |
25974 | { | |
25975 | if ((off_t *) 0) | |
25976 | return 0; | |
25977 | if (sizeof (off_t)) | |
25978 | return 0; | |
25979 | ; | |
25980 | return 0; | |
25981 | } | |
25982 | _ACEOF | |
25983 | rm -f conftest.$ac_objext | |
25984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 25985 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
25986 | ac_status=$? |
25987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25988 | (exit $ac_status); } && | |
09d3439c | 25989 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
25990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25991 | (eval $ac_try) 2>&5 | |
25992 | ac_status=$? | |
25993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25994 | (exit $ac_status); }; }; then | |
25995 | ac_cv_type_off_t=yes | |
5c6fa7d2 | 25996 | else |
e6cc62c6 VS |
25997 | echo "$as_me: failed program was:" >&5 |
25998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
a0b9e27f | 25999 | |
e6cc62c6 | 26000 | ac_cv_type_off_t=no |
8284b0c5 | 26001 | fi |
09d3439c | 26002 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 26003 | fi |
e6cc62c6 VS |
26004 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
26005 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
26006 | if test $ac_cv_type_off_t = yes; then | |
26007 | : | |
247f5006 VZ |
26008 | else |
26009 | ||
e6cc62c6 | 26010 | cat >>confdefs.h <<_ACEOF |
90dd450c | 26011 | #define off_t long |
e6cc62c6 | 26012 | _ACEOF |
10f2d63a | 26013 | |
90dd450c | 26014 | fi |
10f2d63a | 26015 | |
e6cc62c6 VS |
26016 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
26017 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
26018 | if test "${ac_cv_type_pid_t+set}" = set; then | |
26019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 26020 | else |
e6cc62c6 | 26021 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 26022 | #line $LINENO "configure" |
e6cc62c6 VS |
26023 | /* confdefs.h. */ |
26024 | _ACEOF | |
26025 | cat confdefs.h >>conftest.$ac_ext | |
26026 | cat >>conftest.$ac_ext <<_ACEOF | |
26027 | /* end confdefs.h. */ | |
26028 | $ac_includes_default | |
26029 | int | |
26030 | main () | |
26031 | { | |
26032 | if ((pid_t *) 0) | |
26033 | return 0; | |
26034 | if (sizeof (pid_t)) | |
26035 | return 0; | |
26036 | ; | |
26037 | return 0; | |
26038 | } | |
26039 | _ACEOF | |
26040 | rm -f conftest.$ac_objext | |
26041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 26042 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26043 | ac_status=$? |
26044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26045 | (exit $ac_status); } && | |
09d3439c | 26046 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26048 | (eval $ac_try) 2>&5 | |
26049 | ac_status=$? | |
26050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26051 | (exit $ac_status); }; }; then | |
90dd450c | 26052 | ac_cv_type_pid_t=yes |
698dcdb6 | 26053 | else |
e6cc62c6 VS |
26054 | echo "$as_me: failed program was:" >&5 |
26055 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 26056 | |
e6cc62c6 VS |
26057 | ac_cv_type_pid_t=no |
26058 | fi | |
09d3439c | 26059 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26060 | fi |
e6cc62c6 VS |
26061 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
26062 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
26063 | if test $ac_cv_type_pid_t = yes; then | |
26064 | : | |
26065 | else | |
26066 | ||
26067 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 26068 | #define pid_t int |
e6cc62c6 | 26069 | _ACEOF |
10f2d63a | 26070 | |
7b4a847f RR |
26071 | fi |
26072 | ||
e6cc62c6 VS |
26073 | echo "$as_me:$LINENO: checking for size_t" >&5 |
26074 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
26075 | if test "${ac_cv_type_size_t+set}" = set; then | |
26076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7b4a847f | 26077 | else |
e6cc62c6 | 26078 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 26079 | #line $LINENO "configure" |
e6cc62c6 VS |
26080 | /* confdefs.h. */ |
26081 | _ACEOF | |
26082 | cat confdefs.h >>conftest.$ac_ext | |
26083 | cat >>conftest.$ac_ext <<_ACEOF | |
26084 | /* end confdefs.h. */ | |
26085 | $ac_includes_default | |
26086 | int | |
26087 | main () | |
26088 | { | |
26089 | if ((size_t *) 0) | |
26090 | return 0; | |
26091 | if (sizeof (size_t)) | |
26092 | return 0; | |
26093 | ; | |
26094 | return 0; | |
26095 | } | |
26096 | _ACEOF | |
26097 | rm -f conftest.$ac_objext | |
26098 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 26099 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26100 | ac_status=$? |
26101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26102 | (exit $ac_status); } && | |
09d3439c | 26103 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26105 | (eval $ac_try) 2>&5 | |
26106 | ac_status=$? | |
26107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26108 | (exit $ac_status); }; }; then | |
90dd450c | 26109 | ac_cv_type_size_t=yes |
18dbb1f6 | 26110 | else |
e6cc62c6 VS |
26111 | echo "$as_me: failed program was:" >&5 |
26112 | sed 's/^/| /' conftest.$ac_ext >&5 | |
247f5006 | 26113 | |
e6cc62c6 | 26114 | ac_cv_type_size_t=no |
a0b9e27f | 26115 | fi |
09d3439c | 26116 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
26117 | fi |
26118 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
26119 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
26120 | if test $ac_cv_type_size_t = yes; then | |
26121 | : | |
26122 | else | |
26123 | ||
26124 | cat >>confdefs.h <<_ACEOF | |
90dd450c | 26125 | #define size_t unsigned |
e6cc62c6 | 26126 | _ACEOF |
90dd450c VZ |
26127 | |
26128 | fi | |
26129 | ||
e6cc62c6 VS |
26130 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
26131 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
26132 | if test "${ac_cv_type_uid_t+set}" = set; then | |
26133 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3e8d00a | 26134 | else |
e6cc62c6 | 26135 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 26136 | #line $LINENO "configure" |
e6cc62c6 VS |
26137 | /* confdefs.h. */ |
26138 | _ACEOF | |
26139 | cat confdefs.h >>conftest.$ac_ext | |
26140 | cat >>conftest.$ac_ext <<_ACEOF | |
26141 | /* end confdefs.h. */ | |
90dd450c | 26142 | #include <sys/types.h> |
e6cc62c6 VS |
26143 | |
26144 | _ACEOF | |
90dd450c | 26145 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
e6cc62c6 | 26146 | $EGREP "uid_t" >/dev/null 2>&1; then |
90dd450c | 26147 | ac_cv_type_uid_t=yes |
b3e8d00a | 26148 | else |
90dd450c | 26149 | ac_cv_type_uid_t=no |
b3e8d00a | 26150 | fi |
90dd450c | 26151 | rm -f conftest* |
b3e8d00a | 26152 | |
4f14bcd8 | 26153 | fi |
e6cc62c6 VS |
26154 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
26155 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
a0b9e27f | 26156 | if test $ac_cv_type_uid_t = no; then |
e6cc62c6 VS |
26157 | |
26158 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 26159 | #define uid_t int |
e6cc62c6 | 26160 | _ACEOF |
247f5006 | 26161 | |
e6cc62c6 VS |
26162 | |
26163 | cat >>confdefs.h <<\_ACEOF | |
90dd450c | 26164 | #define gid_t int |
e6cc62c6 | 26165 | _ACEOF |
4f14bcd8 | 26166 | |
b3e8d00a | 26167 | fi |
b3e8d00a | 26168 | |
8284b0c5 MB |
26169 | |
26170 | ||
e6cc62c6 VS |
26171 | |
26172 | ac_ext=cc | |
4f14bcd8 | 26173 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26174 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26175 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26176 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26177 | ||
26178 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
26179 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
26180 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
26181 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26182 | else | |
26183 | ||
26184 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 26185 | #line $LINENO "configure" |
e6cc62c6 VS |
26186 | /* confdefs.h. */ |
26187 | _ACEOF | |
26188 | cat confdefs.h >>conftest.$ac_ext | |
26189 | cat >>conftest.$ac_ext <<_ACEOF | |
26190 | /* end confdefs.h. */ | |
90dd450c | 26191 | #include <stddef.h> |
e6cc62c6 VS |
26192 | int |
26193 | main () | |
26194 | { | |
90dd450c VZ |
26195 | |
26196 | return 0; } | |
26197 | ||
26198 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
26199 | ||
26200 | int bar() { | |
e6cc62c6 VS |
26201 | |
26202 | ; | |
26203 | return 0; | |
26204 | } | |
26205 | _ACEOF | |
26206 | rm -f conftest.$ac_objext | |
26207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 26208 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26209 | ac_status=$? |
26210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26211 | (exit $ac_status); } && | |
09d3439c | 26212 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
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 | |
90dd450c | 26218 | wx_cv_size_t_is_uint=no |
698dcdb6 | 26219 | else |
e6cc62c6 VS |
26220 | echo "$as_me: failed program was:" >&5 |
26221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26222 | ||
26223 | wx_cv_size_t_is_uint=yes | |
8284b0c5 | 26224 | |
247f5006 | 26225 | fi |
09d3439c | 26226 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 26227 | |
a0b9e27f | 26228 | |
e6cc62c6 VS |
26229 | fi |
26230 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
26231 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
4f14bcd8 | 26232 | |
90dd450c | 26233 | if test "$wx_cv_size_t_is_uint" = "yes"; then |
e6cc62c6 | 26234 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26235 | #define wxSIZE_T_IS_UINT 1 |
e6cc62c6 | 26236 | _ACEOF |
698dcdb6 | 26237 | |
90dd450c | 26238 | else |
e6cc62c6 VS |
26239 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 |
26240 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
26241 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
26242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 26243 | else |
e6cc62c6 | 26244 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 26245 | #line $LINENO "configure" |
e6cc62c6 VS |
26246 | /* confdefs.h. */ |
26247 | _ACEOF | |
26248 | cat confdefs.h >>conftest.$ac_ext | |
26249 | cat >>conftest.$ac_ext <<_ACEOF | |
26250 | /* end confdefs.h. */ | |
90dd450c | 26251 | #include <stddef.h> |
e6cc62c6 VS |
26252 | int |
26253 | main () | |
26254 | { | |
90dd450c VZ |
26255 | |
26256 | return 0; } | |
26257 | ||
26258 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
26259 | ||
26260 | int bar() { | |
e6cc62c6 VS |
26261 | |
26262 | ; | |
26263 | return 0; | |
26264 | } | |
26265 | _ACEOF | |
26266 | rm -f conftest.$ac_objext | |
26267 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 26268 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26269 | ac_status=$? |
26270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26271 | (exit $ac_status); } && | |
09d3439c | 26272 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26274 | (eval $ac_try) 2>&5 | |
26275 | ac_status=$? | |
26276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26277 | (exit $ac_status); }; }; then | |
90dd450c | 26278 | wx_cv_size_t_is_ulong=no |
698dcdb6 | 26279 | else |
e6cc62c6 VS |
26280 | echo "$as_me: failed program was:" >&5 |
26281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26282 | ||
26283 | wx_cv_size_t_is_ulong=yes | |
26284 | ||
247f5006 | 26285 | fi |
09d3439c | 26286 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26287 | |
e6cc62c6 VS |
26288 | fi |
26289 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
26290 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
10f2d63a | 26291 | |
90dd450c | 26292 | if test "$wx_cv_size_t_is_ulong" = "yes"; then |
e6cc62c6 | 26293 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26294 | #define wxSIZE_T_IS_ULONG 1 |
e6cc62c6 | 26295 | _ACEOF |
4f14bcd8 GD |
26296 | |
26297 | fi | |
90dd450c | 26298 | fi |
1e487827 | 26299 | |
90dd450c | 26300 | ac_ext=c |
4f14bcd8 | 26301 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
26302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
698dcdb6 | 26305 | |
5c6fa7d2 | 26306 | |
8284b0c5 | 26307 | |
e6cc62c6 VS |
26308 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 |
26309 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
26310 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
26311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 26312 | else |
e6cc62c6 VS |
26313 | |
26314 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 26315 | #line $LINENO "configure" |
e6cc62c6 VS |
26316 | /* confdefs.h. */ |
26317 | _ACEOF | |
26318 | cat confdefs.h >>conftest.$ac_ext | |
26319 | cat >>conftest.$ac_ext <<_ACEOF | |
26320 | /* end confdefs.h. */ | |
90dd450c | 26321 | #include <pwd.h> |
e6cc62c6 VS |
26322 | int |
26323 | main () | |
26324 | { | |
f6bcfd97 | 26325 | |
90dd450c VZ |
26326 | char *p; |
26327 | struct passwd *pw; | |
26328 | p = pw->pw_gecos; | |
e6cc62c6 VS |
26329 | |
26330 | ; | |
26331 | return 0; | |
26332 | } | |
26333 | _ACEOF | |
26334 | rm -f conftest.$ac_objext | |
26335 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 26336 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26337 | ac_status=$? |
26338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26339 | (exit $ac_status); } && | |
09d3439c | 26340 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26341 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26342 | (eval $ac_try) 2>&5 | |
26343 | ac_status=$? | |
26344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26345 | (exit $ac_status); }; }; then | |
26346 | ||
90dd450c | 26347 | wx_cv_struct_pw_gecos=yes |
e6cc62c6 | 26348 | |
10f2d63a | 26349 | else |
e6cc62c6 VS |
26350 | echo "$as_me: failed program was:" >&5 |
26351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26352 | ||
26353 | ||
90dd450c | 26354 | wx_cv_struct_pw_gecos=no |
e6cc62c6 | 26355 | |
247f5006 VZ |
26356 | |
26357 | fi | |
09d3439c | 26358 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 26359 | |
e6cc62c6 VS |
26360 | |
26361 | fi | |
26362 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
26363 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
c521c494 | 26364 | |
90dd450c | 26365 | if test "$wx_cv_struct_pw_gecos" = "yes"; then |
e6cc62c6 | 26366 | cat >>confdefs.h <<\_ACEOF |
90dd450c | 26367 | #define HAVE_PW_GECOS 1 |
e6cc62c6 | 26368 | _ACEOF |
c521c494 | 26369 | |
90dd450c | 26370 | fi |
4f14bcd8 | 26371 | |
8284b0c5 | 26372 | |
d29b553b | 26373 | if test "$wx_cv_sizeof_wchar_t" != "0"; then |
e6cc62c6 | 26374 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 26375 | #define wxUSE_WCHAR_T 1 |
e6cc62c6 | 26376 | _ACEOF |
d74f4b5a | 26377 | |
8284b0c5 | 26378 | |
d74f4b5a VZ |
26379 | WCSLEN_FOUND=0 |
26380 | WCHAR_LINK= | |
e6cc62c6 VS |
26381 | |
26382 | for ac_func in wcslen | |
7a30264c | 26383 | do |
e6cc62c6 VS |
26384 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26385 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26386 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26387 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26388 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26389 | else | |
26390 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 26391 | #line $LINENO "configure" |
e6cc62c6 VS |
26392 | /* confdefs.h. */ |
26393 | _ACEOF | |
26394 | cat confdefs.h >>conftest.$ac_ext | |
26395 | cat >>conftest.$ac_ext <<_ACEOF | |
26396 | /* end confdefs.h. */ | |
7a30264c | 26397 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26398 | which can conflict with char $ac_func (); below. |
26399 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26400 | <limits.h> exists even on freestanding compilers. */ | |
26401 | #ifdef __STDC__ | |
26402 | # include <limits.h> | |
26403 | #else | |
26404 | # include <assert.h> | |
26405 | #endif | |
4f14bcd8 | 26406 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26407 | #ifdef __cplusplus |
26408 | extern "C" | |
26409 | { | |
26410 | #endif | |
4f14bcd8 | 26411 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26412 | builtin and then its argument prototype would still apply. */ |
26413 | char $ac_func (); | |
7a30264c VZ |
26414 | /* The GNU C library defines this for functions which it implements |
26415 | to always fail with ENOSYS. Some functions are actually named | |
26416 | something starting with __ and the normal name is an alias. */ | |
26417 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26418 | choke me | |
26419 | #else | |
e6cc62c6 VS |
26420 | char (*f) () = $ac_func; |
26421 | #endif | |
26422 | #ifdef __cplusplus | |
26423 | } | |
7a30264c VZ |
26424 | #endif |
26425 | ||
e6cc62c6 VS |
26426 | int |
26427 | main () | |
26428 | { | |
26429 | return f != $ac_func; | |
26430 | ; | |
26431 | return 0; | |
26432 | } | |
26433 | _ACEOF | |
26434 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 26436 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
26437 | ac_status=$? |
26438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26439 | (exit $ac_status); } && | |
09d3439c | 26440 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
26441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26442 | (eval $ac_try) 2>&5 | |
26443 | ac_status=$? | |
26444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26445 | (exit $ac_status); }; }; then | |
26446 | eval "$as_ac_var=yes" | |
26447 | else | |
26448 | echo "$as_me: failed program was:" >&5 | |
26449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26450 | ||
26451 | eval "$as_ac_var=no" | |
26452 | fi | |
09d3439c | 26453 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
26454 | fi |
26455 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26456 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26457 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26458 | cat >>confdefs.h <<_ACEOF | |
26459 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26460 | _ACEOF | |
d74f4b5a | 26461 | WCSLEN_FOUND=1 |
7a30264c VZ |
26462 | fi |
26463 | done | |
9d8deca0 | 26464 | |
8284b0c5 | 26465 | |
d74f4b5a | 26466 | if test "$WCSLEN_FOUND" = 0; then |
7a30264c | 26467 | if test "$TOOLKIT" = "MSW"; then |
e6cc62c6 VS |
26468 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 |
26469 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
26470 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
26471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 26472 | else |
e6cc62c6 | 26473 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26474 | LIBS="-lmsvcrt $LIBS" |
e6cc62c6 | 26475 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 26476 | #line $LINENO "configure" |
e6cc62c6 VS |
26477 | /* confdefs.h. */ |
26478 | _ACEOF | |
26479 | cat confdefs.h >>conftest.$ac_ext | |
26480 | cat >>conftest.$ac_ext <<_ACEOF | |
26481 | /* end confdefs.h. */ | |
26482 | ||
4f14bcd8 | 26483 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26484 | #ifdef __cplusplus |
26485 | extern "C" | |
26486 | #endif | |
4f14bcd8 | 26487 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26488 | builtin and then its argument prototype would still apply. */ |
26489 | char wcslen (); | |
26490 | int | |
26491 | main () | |
26492 | { | |
26493 | wcslen (); | |
26494 | ; | |
26495 | return 0; | |
26496 | } | |
26497 | _ACEOF | |
26498 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 26500 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
26501 | ac_status=$? |
26502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26503 | (exit $ac_status); } && | |
09d3439c | 26504 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
26505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26506 | (eval $ac_try) 2>&5 | |
26507 | ac_status=$? | |
26508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26509 | (exit $ac_status); }; }; then | |
26510 | ac_cv_lib_msvcrt_wcslen=yes | |
26511 | else | |
26512 | echo "$as_me: failed program was:" >&5 | |
26513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26514 | ||
26515 | ac_cv_lib_msvcrt_wcslen=no | |
26516 | fi | |
09d3439c | 26517 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
26518 | LIBS=$ac_check_lib_save_LIBS |
26519 | fi | |
26520 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
26521 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
26522 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
d74f4b5a | 26523 | WCHAR_OK=1 |
d29b553b | 26524 | fi |
698dcdb6 | 26525 | |
7a30264c | 26526 | else |
e6cc62c6 VS |
26527 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 |
26528 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
26529 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
26530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 26531 | else |
e6cc62c6 | 26532 | ac_check_lib_save_LIBS=$LIBS |
7a30264c | 26533 | LIBS="-lw $LIBS" |
e6cc62c6 | 26534 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 26535 | #line $LINENO "configure" |
e6cc62c6 VS |
26536 | /* confdefs.h. */ |
26537 | _ACEOF | |
26538 | cat confdefs.h >>conftest.$ac_ext | |
26539 | cat >>conftest.$ac_ext <<_ACEOF | |
26540 | /* end confdefs.h. */ | |
26541 | ||
4f14bcd8 | 26542 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26543 | #ifdef __cplusplus |
26544 | extern "C" | |
26545 | #endif | |
4f14bcd8 | 26546 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26547 | builtin and then its argument prototype would still apply. */ |
26548 | char wcslen (); | |
26549 | int | |
26550 | main () | |
26551 | { | |
26552 | wcslen (); | |
26553 | ; | |
26554 | return 0; | |
26555 | } | |
26556 | _ACEOF | |
26557 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 26559 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
26560 | ac_status=$? |
26561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26562 | (exit $ac_status); } && | |
09d3439c | 26563 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
26564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26565 | (eval $ac_try) 2>&5 | |
26566 | ac_status=$? | |
26567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26568 | (exit $ac_status); }; }; then | |
26569 | ac_cv_lib_w_wcslen=yes | |
26570 | else | |
26571 | echo "$as_me: failed program was:" >&5 | |
26572 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26573 | ||
26574 | ac_cv_lib_w_wcslen=no | |
26575 | fi | |
09d3439c | 26576 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
26577 | LIBS=$ac_check_lib_save_LIBS |
26578 | fi | |
26579 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
26580 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
26581 | if test $ac_cv_lib_w_wcslen = yes; then | |
a0b9e27f | 26582 | |
7a30264c | 26583 | WCHAR_LINK=" -lw" |
d74f4b5a | 26584 | WCSLEN_FOUND=1 |
e6cc62c6 | 26585 | |
4f14bcd8 | 26586 | fi |
10f2d63a | 26587 | |
7a30264c | 26588 | fi |
d29b553b | 26589 | fi |
95c8801c | 26590 | |
d74f4b5a | 26591 | if test "$WCSLEN_FOUND" = 1; then |
e6cc62c6 | 26592 | cat >>confdefs.h <<\_ACEOF |
d74f4b5a | 26593 | #define HAVE_WCSLEN 1 |
e6cc62c6 | 26594 | _ACEOF |
10f2d63a | 26595 | |
d74f4b5a | 26596 | fi |
52127426 | 26597 | |
e6cc62c6 VS |
26598 | |
26599 | for ac_func in wcsrtombs | |
eb4efbdc | 26600 | do |
e6cc62c6 VS |
26601 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26602 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26603 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26604 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26606 | else | |
26607 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 26608 | #line $LINENO "configure" |
e6cc62c6 VS |
26609 | /* confdefs.h. */ |
26610 | _ACEOF | |
26611 | cat confdefs.h >>conftest.$ac_ext | |
26612 | cat >>conftest.$ac_ext <<_ACEOF | |
26613 | /* end confdefs.h. */ | |
eb4efbdc | 26614 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26615 | which can conflict with char $ac_func (); below. |
26616 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26617 | <limits.h> exists even on freestanding compilers. */ | |
26618 | #ifdef __STDC__ | |
26619 | # include <limits.h> | |
26620 | #else | |
26621 | # include <assert.h> | |
26622 | #endif | |
eb4efbdc | 26623 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
26624 | #ifdef __cplusplus |
26625 | extern "C" | |
26626 | { | |
26627 | #endif | |
4f14bcd8 | 26628 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26629 | builtin and then its argument prototype would still apply. */ |
26630 | char $ac_func (); | |
10f2d63a VZ |
26631 | /* The GNU C library defines this for functions which it implements |
26632 | to always fail with ENOSYS. Some functions are actually named | |
26633 | something starting with __ and the normal name is an alias. */ | |
247f5006 | 26634 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
10f2d63a VZ |
26635 | choke me |
26636 | #else | |
e6cc62c6 VS |
26637 | char (*f) () = $ac_func; |
26638 | #endif | |
26639 | #ifdef __cplusplus | |
26640 | } | |
10f2d63a VZ |
26641 | #endif |
26642 | ||
e6cc62c6 VS |
26643 | int |
26644 | main () | |
26645 | { | |
26646 | return f != $ac_func; | |
26647 | ; | |
26648 | return 0; | |
26649 | } | |
26650 | _ACEOF | |
26651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 26653 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
26654 | ac_status=$? |
26655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26656 | (exit $ac_status); } && | |
09d3439c | 26657 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
26658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26659 | (eval $ac_try) 2>&5 | |
26660 | ac_status=$? | |
26661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26662 | (exit $ac_status); }; }; then | |
26663 | eval "$as_ac_var=yes" | |
26664 | else | |
26665 | echo "$as_me: failed program was:" >&5 | |
26666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26667 | ||
26668 | eval "$as_ac_var=no" | |
26669 | fi | |
09d3439c | 26670 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
26671 | fi |
26672 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26673 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26674 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26675 | cat >>confdefs.h <<_ACEOF | |
26676 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26677 | _ACEOF | |
270a909e | 26678 | |
4f14bcd8 | 26679 | fi |
247f5006 | 26680 | done |
1e487827 | 26681 | |
af15babd | 26682 | else |
e6cc62c6 VS |
26683 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 |
26684 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
7b4a847f | 26685 | fi |
52127426 | 26686 | |
8284b0c5 | 26687 | |
e6cc62c6 VS |
26688 | |
26689 | ac_ext=cc | |
247f5006 | 26690 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26691 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26692 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26693 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
26694 | ||
af15babd | 26695 | |
247f5006 VZ |
26696 | |
26697 | for ac_func in vsnprintf | |
26698 | do | |
e6cc62c6 VS |
26699 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26700 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26701 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26702 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26704 | else | |
26705 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 26706 | #line $LINENO "configure" |
e6cc62c6 VS |
26707 | /* confdefs.h. */ |
26708 | _ACEOF | |
26709 | cat confdefs.h >>conftest.$ac_ext | |
26710 | cat >>conftest.$ac_ext <<_ACEOF | |
26711 | /* end confdefs.h. */ | |
247f5006 | 26712 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26713 | which can conflict with char $ac_func (); below. |
26714 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26715 | <limits.h> exists even on freestanding compilers. */ | |
26716 | #ifdef __STDC__ | |
26717 | # include <limits.h> | |
26718 | #else | |
26719 | # include <assert.h> | |
26720 | #endif | |
247f5006 VZ |
26721 | /* Override any gcc2 internal prototype to avoid an error. */ |
26722 | #ifdef __cplusplus | |
26723 | extern "C" | |
e6cc62c6 | 26724 | { |
247f5006 VZ |
26725 | #endif |
26726 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
26727 | builtin and then its argument prototype would still apply. */ |
26728 | char $ac_func (); | |
247f5006 VZ |
26729 | /* The GNU C library defines this for functions which it implements |
26730 | to always fail with ENOSYS. Some functions are actually named | |
26731 | something starting with __ and the normal name is an alias. */ | |
26732 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26733 | choke me | |
26734 | #else | |
e6cc62c6 VS |
26735 | char (*f) () = $ac_func; |
26736 | #endif | |
26737 | #ifdef __cplusplus | |
26738 | } | |
247f5006 | 26739 | #endif |
af15babd | 26740 | |
e6cc62c6 VS |
26741 | int |
26742 | main () | |
26743 | { | |
26744 | return f != $ac_func; | |
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 | |
09d3439c | 26751 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
26752 | ac_status=$? |
26753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26754 | (exit $ac_status); } && | |
09d3439c | 26755 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
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 | |
26761 | eval "$as_ac_var=yes" | |
26762 | else | |
26763 | echo "$as_me: failed program was:" >&5 | |
26764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26765 | ||
26766 | eval "$as_ac_var=no" | |
26767 | fi | |
09d3439c | 26768 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
26769 | fi |
26770 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26771 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26772 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26773 | cat >>confdefs.h <<_ACEOF | |
26774 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26775 | _ACEOF | |
52127426 | 26776 | |
5c6fa7d2 | 26777 | fi |
247f5006 | 26778 | done |
8284b0c5 | 26779 | |
4f14bcd8 | 26780 | |
8d90d2f2 | 26781 | if test "$ac_cv_func_vsnprintf" = "yes"; then |
e6cc62c6 VS |
26782 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 |
26783 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
26784 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
26785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8d90d2f2 | 26786 | else |
e6cc62c6 VS |
26787 | |
26788 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 26789 | #line $LINENO "configure" |
e6cc62c6 VS |
26790 | /* confdefs.h. */ |
26791 | _ACEOF | |
26792 | cat confdefs.h >>conftest.$ac_ext | |
26793 | cat >>conftest.$ac_ext <<_ACEOF | |
26794 | /* end confdefs.h. */ | |
8d90d2f2 VZ |
26795 | |
26796 | #include <stdio.h> | |
26797 | #include <stdarg.h> | |
e6cc62c6 VS |
26798 | |
26799 | int | |
26800 | main () | |
26801 | { | |
8d90d2f2 VZ |
26802 | |
26803 | char *buf; | |
26804 | va_list ap; | |
26805 | vsnprintf(buf, 10u, "%s", ap); | |
e6cc62c6 VS |
26806 | |
26807 | ; | |
26808 | return 0; | |
26809 | } | |
26810 | _ACEOF | |
26811 | rm -f conftest.$ac_objext | |
26812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 26813 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26814 | ac_status=$? |
26815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26816 | (exit $ac_status); } && | |
09d3439c | 26817 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26819 | (eval $ac_try) 2>&5 | |
26820 | ac_status=$? | |
26821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26822 | (exit $ac_status); }; }; then | |
8d90d2f2 VZ |
26823 | wx_cv_func_vsnprintf_decl=yes |
26824 | else | |
e6cc62c6 VS |
26825 | echo "$as_me: failed program was:" >&5 |
26826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26827 | ||
26828 | wx_cv_func_vsnprintf_decl=no | |
26829 | ||
8d90d2f2 | 26830 | fi |
09d3439c | 26831 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 26832 | |
8d90d2f2 | 26833 | |
e6cc62c6 VS |
26834 | fi |
26835 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
26836 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
8d90d2f2 VZ |
26837 | |
26838 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
e6cc62c6 | 26839 | cat >>confdefs.h <<\_ACEOF |
8d90d2f2 | 26840 | #define HAVE_VSNPRINTF_DECL 1 |
e6cc62c6 | 26841 | _ACEOF |
8d90d2f2 VZ |
26842 | |
26843 | fi | |
26844 | fi | |
26845 | ||
247f5006 | 26846 | if test "$wxUSE_UNICODE" = yes; then |
e6cc62c6 VS |
26847 | |
26848 | ||
26849 | ||
26850 | for ac_func in fputwc wprintf vswprintf | |
d74f4b5a | 26851 | do |
e6cc62c6 VS |
26852 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
26853 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
26854 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
26855 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
26856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26857 | else | |
26858 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 26859 | #line $LINENO "configure" |
e6cc62c6 VS |
26860 | /* confdefs.h. */ |
26861 | _ACEOF | |
26862 | cat confdefs.h >>conftest.$ac_ext | |
26863 | cat >>conftest.$ac_ext <<_ACEOF | |
26864 | /* end confdefs.h. */ | |
d74f4b5a | 26865 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
26866 | which can conflict with char $ac_func (); below. |
26867 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
26868 | <limits.h> exists even on freestanding compilers. */ | |
26869 | #ifdef __STDC__ | |
26870 | # include <limits.h> | |
26871 | #else | |
26872 | # include <assert.h> | |
26873 | #endif | |
d74f4b5a | 26874 | /* Override any gcc2 internal prototype to avoid an error. */ |
247f5006 VZ |
26875 | #ifdef __cplusplus |
26876 | extern "C" | |
e6cc62c6 | 26877 | { |
247f5006 | 26878 | #endif |
d74f4b5a | 26879 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
26880 | builtin and then its argument prototype would still apply. */ |
26881 | char $ac_func (); | |
d74f4b5a VZ |
26882 | /* The GNU C library defines this for functions which it implements |
26883 | to always fail with ENOSYS. Some functions are actually named | |
26884 | something starting with __ and the normal name is an alias. */ | |
26885 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
26886 | choke me | |
26887 | #else | |
e6cc62c6 VS |
26888 | char (*f) () = $ac_func; |
26889 | #endif | |
26890 | #ifdef __cplusplus | |
26891 | } | |
d74f4b5a VZ |
26892 | #endif |
26893 | ||
e6cc62c6 VS |
26894 | int |
26895 | main () | |
26896 | { | |
26897 | return f != $ac_func; | |
26898 | ; | |
26899 | return 0; | |
26900 | } | |
26901 | _ACEOF | |
26902 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26903 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 26904 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
26905 | ac_status=$? |
26906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26907 | (exit $ac_status); } && | |
09d3439c | 26908 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
26909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26910 | (eval $ac_try) 2>&5 | |
26911 | ac_status=$? | |
26912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26913 | (exit $ac_status); }; }; then | |
26914 | eval "$as_ac_var=yes" | |
26915 | else | |
26916 | echo "$as_me: failed program was:" >&5 | |
26917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26918 | ||
26919 | eval "$as_ac_var=no" | |
26920 | fi | |
09d3439c | 26921 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
26922 | fi |
26923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
26924 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
26925 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
26926 | cat >>confdefs.h <<_ACEOF | |
26927 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
26928 | _ACEOF | |
d74f4b5a | 26929 | |
d74f4b5a VZ |
26930 | fi |
26931 | done | |
26932 | ||
8d90d2f2 | 26933 | |
e6cc62c6 VS |
26934 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 |
26935 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
26936 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 26937 | #line $LINENO "configure" |
e6cc62c6 VS |
26938 | /* confdefs.h. */ |
26939 | _ACEOF | |
26940 | cat confdefs.h >>conftest.$ac_ext | |
26941 | cat >>conftest.$ac_ext <<_ACEOF | |
26942 | /* end confdefs.h. */ | |
79668cae | 26943 | #include <wchar.h> |
e6cc62c6 VS |
26944 | int |
26945 | main () | |
26946 | { | |
79668cae | 26947 | &_vsnwprintf; |
e6cc62c6 VS |
26948 | ; |
26949 | return 0; | |
26950 | } | |
26951 | _ACEOF | |
26952 | rm -f conftest.$ac_objext | |
26953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 26954 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
26955 | ac_status=$? |
26956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26957 | (exit $ac_status); } && | |
09d3439c | 26958 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
26959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26960 | (eval $ac_try) 2>&5 | |
26961 | ac_status=$? | |
26962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26963 | (exit $ac_status); }; }; then | |
26964 | echo "$as_me:$LINENO: result: yes" >&5 | |
26965 | echo "${ECHO_T}yes" >&6 | |
26966 | cat >>confdefs.h <<\_ACEOF | |
79668cae | 26967 | #define HAVE__VSNWPRINTF 1 |
e6cc62c6 | 26968 | _ACEOF |
79668cae MB |
26969 | |
26970 | else | |
e6cc62c6 VS |
26971 | echo "$as_me: failed program was:" >&5 |
26972 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26973 | ||
26974 | echo "$as_me:$LINENO: result: no" >&5 | |
26975 | echo "${ECHO_T}no" >&6 | |
79668cae | 26976 | fi |
09d3439c | 26977 | rm -f conftest.$ac_objext conftest.$ac_ext; |
d74f4b5a VZ |
26978 | fi |
26979 | ||
247f5006 VZ |
26980 | ac_ext=c |
26981 | ac_cpp='$CPP $CPPFLAGS' | |
e6cc62c6 VS |
26982 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26983 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26984 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
247f5006 VZ |
26985 | |
26986 | ||
26987 | ||
26988 | ||
4f14bcd8 | 26989 | if test "$TOOLKIT" != "MSW"; then |
af15babd | 26990 | |
8284b0c5 MB |
26991 | |
26992 | ||
e6cc62c6 VS |
26993 | |
26994 | ac_ext=cc | |
4f14bcd8 | 26995 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
26996 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
26997 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
26998 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
8284b0c5 | 26999 | |
52127426 | 27000 | |
e6cc62c6 VS |
27001 | |
27002 | ||
27003 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
b040e242 VS |
27004 | if test "${with_libiconv_prefix+set}" = set; then |
27005 | withval="$with_libiconv_prefix" | |
e6cc62c6 | 27006 | |
b040e242 VS |
27007 | for dir in `echo "$withval" | tr : ' '`; do |
27008 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
27009 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
27010 | done | |
b040e242 | 27011 | |
e6cc62c6 | 27012 | fi; |
b040e242 | 27013 | |
e6cc62c6 VS |
27014 | echo "$as_me:$LINENO: checking for iconv" >&5 |
27015 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
27016 | if test "${am_cv_func_iconv+set}" = set; then | |
27017 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 27018 | else |
e6cc62c6 | 27019 | |
b040e242 VS |
27020 | am_cv_func_iconv="no, consider installing GNU libiconv" |
27021 | am_cv_lib_iconv=no | |
e6cc62c6 | 27022 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 27023 | #line $LINENO "configure" |
e6cc62c6 VS |
27024 | /* confdefs.h. */ |
27025 | _ACEOF | |
27026 | cat confdefs.h >>conftest.$ac_ext | |
27027 | cat >>conftest.$ac_ext <<_ACEOF | |
27028 | /* end confdefs.h. */ | |
b040e242 | 27029 | #include <stdlib.h> |
4f14bcd8 | 27030 | #include <iconv.h> |
e6cc62c6 VS |
27031 | int |
27032 | main () | |
27033 | { | |
b040e242 VS |
27034 | iconv_t cd = iconv_open("",""); |
27035 | iconv(cd,NULL,NULL,NULL,NULL); | |
27036 | iconv_close(cd); | |
e6cc62c6 VS |
27037 | ; |
27038 | return 0; | |
27039 | } | |
27040 | _ACEOF | |
27041 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27042 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 27043 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27044 | ac_status=$? |
27045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27046 | (exit $ac_status); } && | |
09d3439c | 27047 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27049 | (eval $ac_try) 2>&5 | |
27050 | ac_status=$? | |
27051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27052 | (exit $ac_status); }; }; then | |
b040e242 | 27053 | am_cv_func_iconv=yes |
af15babd | 27054 | else |
e6cc62c6 VS |
27055 | echo "$as_me: failed program was:" >&5 |
27056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27057 | ||
b040e242 | 27058 | fi |
09d3439c | 27059 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
27060 | if test "$am_cv_func_iconv" != yes; then |
27061 | am_save_LIBS="$LIBS" | |
27062 | LIBS="$LIBS -liconv" | |
e6cc62c6 | 27063 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 27064 | #line $LINENO "configure" |
e6cc62c6 VS |
27065 | /* confdefs.h. */ |
27066 | _ACEOF | |
27067 | cat confdefs.h >>conftest.$ac_ext | |
27068 | cat >>conftest.$ac_ext <<_ACEOF | |
27069 | /* end confdefs.h. */ | |
b040e242 VS |
27070 | #include <stdlib.h> |
27071 | #include <iconv.h> | |
e6cc62c6 VS |
27072 | int |
27073 | main () | |
27074 | { | |
b040e242 VS |
27075 | iconv_t cd = iconv_open("",""); |
27076 | iconv(cd,NULL,NULL,NULL,NULL); | |
27077 | iconv_close(cd); | |
e6cc62c6 VS |
27078 | ; |
27079 | return 0; | |
27080 | } | |
27081 | _ACEOF | |
27082 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27083 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 27084 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27085 | ac_status=$? |
27086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27087 | (exit $ac_status); } && | |
09d3439c | 27088 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27090 | (eval $ac_try) 2>&5 | |
27091 | ac_status=$? | |
27092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27093 | (exit $ac_status); }; }; then | |
b040e242 VS |
27094 | am_cv_lib_iconv=yes |
27095 | am_cv_func_iconv=yes | |
27096 | else | |
e6cc62c6 VS |
27097 | echo "$as_me: failed program was:" >&5 |
27098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27099 | ||
af15babd | 27100 | fi |
09d3439c | 27101 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
b040e242 VS |
27102 | LIBS="$am_save_LIBS" |
27103 | fi | |
247f5006 | 27104 | |
e6cc62c6 VS |
27105 | fi |
27106 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
27107 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
a0b9e27f | 27108 | if test "$am_cv_func_iconv" = yes; then |
e6cc62c6 VS |
27109 | |
27110 | cat >>confdefs.h <<\_ACEOF | |
b040e242 | 27111 | #define HAVE_ICONV 1 |
e6cc62c6 | 27112 | _ACEOF |
b040e242 | 27113 | |
e6cc62c6 VS |
27114 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 |
27115 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
27116 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
27117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b040e242 | 27118 | else |
e6cc62c6 | 27119 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 27120 | #line $LINENO "configure" |
e6cc62c6 VS |
27121 | /* confdefs.h. */ |
27122 | _ACEOF | |
27123 | cat confdefs.h >>conftest.$ac_ext | |
27124 | cat >>conftest.$ac_ext <<_ACEOF | |
27125 | /* end confdefs.h. */ | |
b040e242 VS |
27126 | |
27127 | #include <stdlib.h> | |
27128 | #include <iconv.h> | |
27129 | extern | |
27130 | #ifdef __cplusplus | |
27131 | "C" | |
27132 | #endif | |
27133 | #if defined(__STDC__) || defined(__cplusplus) | |
27134 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
27135 | #else | |
27136 | size_t iconv(); | |
27137 | #endif | |
af15babd | 27138 | |
e6cc62c6 VS |
27139 | int |
27140 | main () | |
27141 | { | |
27142 | ||
27143 | ; | |
27144 | return 0; | |
27145 | } | |
27146 | _ACEOF | |
27147 | rm -f conftest.$ac_objext | |
27148 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 27149 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
27150 | ac_status=$? |
27151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27152 | (exit $ac_status); } && | |
09d3439c | 27153 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
27154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27155 | (eval $ac_try) 2>&5 | |
27156 | ac_status=$? | |
27157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27158 | (exit $ac_status); }; }; then | |
b7043674 | 27159 | wx_cv_func_iconv_const="no" |
b040e242 | 27160 | else |
e6cc62c6 VS |
27161 | echo "$as_me: failed program was:" >&5 |
27162 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27163 | ||
27164 | wx_cv_func_iconv_const="yes" | |
27165 | ||
247f5006 | 27166 | fi |
09d3439c | 27167 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27168 | |
e6cc62c6 VS |
27169 | fi |
27170 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
27171 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
b7043674 VZ |
27172 | |
27173 | iconv_const= | |
1c405bb5 | 27174 | if test "x$wx_cv_func_iconv_const" = "xyes"; then |
b7043674 VZ |
27175 | iconv_const="const" |
27176 | fi | |
27177 | ||
e6cc62c6 VS |
27178 | |
27179 | cat >>confdefs.h <<_ACEOF | |
f09359cf | 27180 | #define ICONV_CONST $iconv_const |
e6cc62c6 | 27181 | _ACEOF |
b040e242 VS |
27182 | |
27183 | fi | |
27184 | LIBICONV= | |
27185 | if test "$am_cv_lib_iconv" = yes; then | |
27186 | LIBICONV="-liconv" | |
27187 | fi | |
e6cc62c6 | 27188 | |
b040e242 VS |
27189 | |
27190 | LIBS="$LIBICONV $LIBS" | |
4f14bcd8 | 27191 | ac_ext=c |
4f14bcd8 | 27192 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 27196 | |
5c6fa7d2 | 27197 | |
8284b0c5 | 27198 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 VS |
27199 | |
27200 | for ac_func in sigaction | |
af15babd | 27201 | do |
e6cc62c6 VS |
27202 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27203 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27204 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27205 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27207 | else | |
27208 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 27209 | #line $LINENO "configure" |
e6cc62c6 VS |
27210 | /* confdefs.h. */ |
27211 | _ACEOF | |
27212 | cat confdefs.h >>conftest.$ac_ext | |
27213 | cat >>conftest.$ac_ext <<_ACEOF | |
27214 | /* end confdefs.h. */ | |
af15babd | 27215 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27216 | which can conflict with char $ac_func (); below. |
27217 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27218 | <limits.h> exists even on freestanding compilers. */ | |
27219 | #ifdef __STDC__ | |
27220 | # include <limits.h> | |
27221 | #else | |
27222 | # include <assert.h> | |
27223 | #endif | |
af15babd | 27224 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27225 | #ifdef __cplusplus |
27226 | extern "C" | |
27227 | { | |
27228 | #endif | |
af15babd | 27229 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27230 | builtin and then its argument prototype would still apply. */ |
27231 | char $ac_func (); | |
af15babd VZ |
27232 | /* The GNU C library defines this for functions which it implements |
27233 | to always fail with ENOSYS. Some functions are actually named | |
27234 | something starting with __ and the normal name is an alias. */ | |
27235 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27236 | choke me | |
27237 | #else | |
e6cc62c6 VS |
27238 | char (*f) () = $ac_func; |
27239 | #endif | |
27240 | #ifdef __cplusplus | |
27241 | } | |
af15babd VZ |
27242 | #endif |
27243 | ||
e6cc62c6 VS |
27244 | int |
27245 | main () | |
27246 | { | |
27247 | return f != $ac_func; | |
27248 | ; | |
27249 | return 0; | |
27250 | } | |
27251 | _ACEOF | |
27252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 27254 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27255 | ac_status=$? |
27256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27257 | (exit $ac_status); } && | |
09d3439c | 27258 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27260 | (eval $ac_try) 2>&5 | |
27261 | ac_status=$? | |
27262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27263 | (exit $ac_status); }; }; then | |
27264 | eval "$as_ac_var=yes" | |
27265 | else | |
27266 | echo "$as_me: failed program was:" >&5 | |
27267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27268 | ||
27269 | eval "$as_ac_var=no" | |
27270 | fi | |
09d3439c | 27271 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
27272 | fi |
27273 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27274 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27275 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27276 | cat >>confdefs.h <<_ACEOF | |
27277 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27278 | _ACEOF | |
7b4a847f | 27279 | |
4f14bcd8 GD |
27280 | fi |
27281 | done | |
27282 | ||
8284b0c5 | 27283 | |
4f14bcd8 | 27284 | if test "$ac_cv_func_sigaction" = "no"; then |
e6cc62c6 VS |
27285 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 |
27286 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
4f14bcd8 GD |
27287 | wxUSE_ON_FATAL_EXCEPTION=no |
27288 | fi | |
27289 | ||
27290 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
e6cc62c6 VS |
27291 | |
27292 | ||
27293 | ac_ext=cc | |
5c6fa7d2 | 27294 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27295 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27296 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27297 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7b4a847f | 27298 | |
5c6fa7d2 | 27299 | |
e6cc62c6 VS |
27300 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 |
27301 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
27302 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
27303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 27304 | else |
e6cc62c6 VS |
27305 | |
27306 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 27307 | #line $LINENO "configure" |
e6cc62c6 VS |
27308 | /* confdefs.h. */ |
27309 | _ACEOF | |
27310 | cat confdefs.h >>conftest.$ac_ext | |
27311 | cat >>conftest.$ac_ext <<_ACEOF | |
27312 | /* end confdefs.h. */ | |
4f14bcd8 | 27313 | #include <signal.h> |
e6cc62c6 VS |
27314 | int |
27315 | main () | |
27316 | { | |
4f14bcd8 GD |
27317 | |
27318 | extern void testSigHandler(int); | |
27319 | ||
27320 | struct sigaction sa; | |
27321 | sa.sa_handler = testSigHandler; | |
e6cc62c6 VS |
27322 | |
27323 | ; | |
27324 | return 0; | |
27325 | } | |
27326 | _ACEOF | |
27327 | rm -f conftest.$ac_objext | |
27328 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 27329 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
27330 | ac_status=$? |
27331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27332 | (exit $ac_status); } && | |
09d3439c | 27333 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
27334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27335 | (eval $ac_try) 2>&5 | |
27336 | ac_status=$? | |
27337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27338 | (exit $ac_status); }; }; then | |
27339 | ||
4f14bcd8 | 27340 | wx_cv_type_sa_handler=int |
e6cc62c6 | 27341 | |
af15babd | 27342 | else |
e6cc62c6 VS |
27343 | echo "$as_me: failed program was:" >&5 |
27344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27345 | ||
27346 | ||
4f14bcd8 | 27347 | wx_cv_type_sa_handler=void |
e6cc62c6 | 27348 | |
247f5006 | 27349 | fi |
09d3439c | 27350 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27351 | |
e6cc62c6 VS |
27352 | fi |
27353 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
27354 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
4f14bcd8 GD |
27355 | |
27356 | ac_ext=c | |
4f14bcd8 | 27357 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27358 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27359 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27360 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
579d8138 | 27361 | |
8284b0c5 | 27362 | |
e6cc62c6 | 27363 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 27364 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler |
e6cc62c6 | 27365 | _ACEOF |
af15babd | 27366 | |
4f14bcd8 GD |
27367 | fi |
27368 | fi | |
af15babd | 27369 | |
e6cc62c6 VS |
27370 | |
27371 | ||
a1d22ad7 | 27372 | for ac_func in mkstemp mktemp |
af15babd | 27373 | do |
e6cc62c6 VS |
27374 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27375 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27376 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27377 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27378 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27379 | else | |
27380 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 27381 | #line $LINENO "configure" |
e6cc62c6 VS |
27382 | /* confdefs.h. */ |
27383 | _ACEOF | |
27384 | cat confdefs.h >>conftest.$ac_ext | |
27385 | cat >>conftest.$ac_ext <<_ACEOF | |
27386 | /* end confdefs.h. */ | |
af15babd | 27387 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27388 | which can conflict with char $ac_func (); below. |
27389 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27390 | <limits.h> exists even on freestanding compilers. */ | |
27391 | #ifdef __STDC__ | |
27392 | # include <limits.h> | |
27393 | #else | |
27394 | # include <assert.h> | |
27395 | #endif | |
af15babd | 27396 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27397 | #ifdef __cplusplus |
27398 | extern "C" | |
27399 | { | |
27400 | #endif | |
af15babd | 27401 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27402 | builtin and then its argument prototype would still apply. */ |
27403 | char $ac_func (); | |
af15babd VZ |
27404 | /* The GNU C library defines this for functions which it implements |
27405 | to always fail with ENOSYS. Some functions are actually named | |
27406 | something starting with __ and the normal name is an alias. */ | |
27407 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27408 | choke me | |
27409 | #else | |
e6cc62c6 VS |
27410 | char (*f) () = $ac_func; |
27411 | #endif | |
27412 | #ifdef __cplusplus | |
27413 | } | |
af15babd VZ |
27414 | #endif |
27415 | ||
e6cc62c6 VS |
27416 | int |
27417 | main () | |
27418 | { | |
27419 | return f != $ac_func; | |
27420 | ; | |
27421 | return 0; | |
27422 | } | |
27423 | _ACEOF | |
27424 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27425 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 27426 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27427 | ac_status=$? |
27428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27429 | (exit $ac_status); } && | |
09d3439c | 27430 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27431 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27432 | (eval $ac_try) 2>&5 | |
27433 | ac_status=$? | |
27434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27435 | (exit $ac_status); }; }; then | |
27436 | eval "$as_ac_var=yes" | |
27437 | else | |
27438 | echo "$as_me: failed program was:" >&5 | |
27439 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27440 | ||
27441 | eval "$as_ac_var=no" | |
27442 | fi | |
09d3439c | 27443 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
27444 | fi |
27445 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27446 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27447 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27448 | cat >>confdefs.h <<_ACEOF | |
27449 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27450 | _ACEOF | |
ade35f11 | 27451 | break |
ade35f11 VZ |
27452 | fi |
27453 | done | |
27454 | ||
8284b0c5 | 27455 | |
e6cc62c6 VS |
27456 | echo "$as_me:$LINENO: checking for statfs" >&5 |
27457 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
27458 | if test "${wx_cv_func_statfs+set}" = set; then | |
27459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 27460 | else |
e6cc62c6 | 27461 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 27462 | #line $LINENO "configure" |
e6cc62c6 VS |
27463 | /* confdefs.h. */ |
27464 | _ACEOF | |
27465 | cat confdefs.h >>conftest.$ac_ext | |
27466 | cat >>conftest.$ac_ext <<_ACEOF | |
27467 | /* end confdefs.h. */ | |
4f14bcd8 GD |
27468 | |
27469 | #if defined(__BSD__) | |
27470 | #include <sys/param.h> | |
27471 | #include <sys/mount.h> | |
27472 | #else | |
27473 | #include <sys/vfs.h> | |
27474 | #endif | |
e6cc62c6 VS |
27475 | |
27476 | int | |
27477 | main () | |
27478 | { | |
4f14bcd8 GD |
27479 | |
27480 | long l; | |
27481 | struct statfs fs; | |
27482 | statfs("/", &fs); | |
27483 | l = fs.f_bsize; | |
27484 | l += fs.f_blocks; | |
27485 | l += fs.f_bavail; | |
e6cc62c6 VS |
27486 | |
27487 | ; | |
27488 | return 0; | |
27489 | } | |
27490 | _ACEOF | |
27491 | rm -f conftest.$ac_objext | |
27492 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 27493 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
27494 | ac_status=$? |
27495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27496 | (exit $ac_status); } && | |
09d3439c | 27497 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
27498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27499 | (eval $ac_try) 2>&5 | |
27500 | ac_status=$? | |
27501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27502 | (exit $ac_status); }; }; then | |
27503 | ||
4f14bcd8 | 27504 | wx_cv_func_statfs=yes |
e6cc62c6 | 27505 | |
4f14bcd8 | 27506 | else |
e6cc62c6 VS |
27507 | echo "$as_me: failed program was:" >&5 |
27508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27509 | ||
27510 | ||
4f14bcd8 | 27511 | wx_cv_func_statfs=no |
e6cc62c6 | 27512 | |
8284b0c5 | 27513 | |
247f5006 | 27514 | fi |
09d3439c | 27515 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27516 | |
e6cc62c6 VS |
27517 | fi |
27518 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
27519 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
4f14bcd8 GD |
27520 | |
27521 | if test "$wx_cv_func_statfs" = "yes"; then | |
54ab82b3 | 27522 | wx_cv_type_statvfs_t="struct statfs" |
e6cc62c6 | 27523 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27524 | #define HAVE_STATFS 1 |
e6cc62c6 | 27525 | _ACEOF |
4f14bcd8 GD |
27526 | |
27527 | else | |
e6cc62c6 VS |
27528 | echo "$as_me:$LINENO: checking for statvfs" >&5 |
27529 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
27530 | if test "${wx_cv_func_statvfs+set}" = set; then | |
27531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
af15babd | 27532 | else |
e6cc62c6 | 27533 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 27534 | #line $LINENO "configure" |
e6cc62c6 VS |
27535 | /* confdefs.h. */ |
27536 | _ACEOF | |
27537 | cat confdefs.h >>conftest.$ac_ext | |
27538 | cat >>conftest.$ac_ext <<_ACEOF | |
27539 | /* end confdefs.h. */ | |
af15babd | 27540 | |
54ab82b3 VZ |
27541 | #include <stddef.h> |
27542 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27543 | |
27544 | int | |
27545 | main () | |
27546 | { | |
af15babd | 27547 | |
54ab82b3 | 27548 | statvfs("/", NULL); |
e6cc62c6 VS |
27549 | |
27550 | ; | |
27551 | return 0; | |
27552 | } | |
27553 | _ACEOF | |
27554 | rm -f conftest.$ac_objext | |
27555 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 27556 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
27557 | ac_status=$? |
27558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27559 | (exit $ac_status); } && | |
09d3439c | 27560 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
27561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27562 | (eval $ac_try) 2>&5 | |
27563 | ac_status=$? | |
27564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27565 | (exit $ac_status); }; }; then | |
54ab82b3 | 27566 | wx_cv_func_statvfs=yes |
af15babd | 27567 | else |
e6cc62c6 VS |
27568 | echo "$as_me: failed program was:" >&5 |
27569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27570 | ||
27571 | wx_cv_func_statvfs=no | |
27572 | ||
247f5006 | 27573 | fi |
09d3439c | 27574 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 27575 | |
e6cc62c6 VS |
27576 | fi |
27577 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
27578 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
af15babd | 27579 | |
4f14bcd8 | 27580 | if test "$wx_cv_func_statvfs" = "yes"; then |
e6cc62c6 VS |
27581 | |
27582 | ||
27583 | ac_ext=cc | |
54ab82b3 | 27584 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
27585 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27586 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27587 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
54ab82b3 VZ |
27588 | |
27589 | ||
e6cc62c6 VS |
27590 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 |
27591 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
27592 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
27593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
54ab82b3 | 27594 | else |
e6cc62c6 | 27595 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 27596 | #line $LINENO "configure" |
e6cc62c6 VS |
27597 | /* confdefs.h. */ |
27598 | _ACEOF | |
27599 | cat confdefs.h >>conftest.$ac_ext | |
27600 | cat >>conftest.$ac_ext <<_ACEOF | |
27601 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27602 | |
27603 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27604 | |
27605 | int | |
27606 | main () | |
27607 | { | |
54ab82b3 VZ |
27608 | |
27609 | long l; | |
27610 | statvfs_t fs; | |
27611 | statvfs("/", &fs); | |
27612 | l = fs.f_bsize; | |
27613 | l += fs.f_blocks; | |
27614 | l += fs.f_bavail; | |
e6cc62c6 VS |
27615 | |
27616 | ; | |
27617 | return 0; | |
27618 | } | |
27619 | _ACEOF | |
27620 | rm -f conftest.$ac_objext | |
27621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 27622 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
27623 | ac_status=$? |
27624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27625 | (exit $ac_status); } && | |
09d3439c | 27626 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
27627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27628 | (eval $ac_try) 2>&5 | |
27629 | ac_status=$? | |
27630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27631 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27632 | wx_cv_type_statvfs_t=statvfs_t |
27633 | else | |
e6cc62c6 VS |
27634 | echo "$as_me: failed program was:" >&5 |
27635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27636 | ||
27637 | ||
27638 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 27639 | #line $LINENO "configure" |
e6cc62c6 VS |
27640 | /* confdefs.h. */ |
27641 | _ACEOF | |
27642 | cat confdefs.h >>conftest.$ac_ext | |
27643 | cat >>conftest.$ac_ext <<_ACEOF | |
27644 | /* end confdefs.h. */ | |
54ab82b3 VZ |
27645 | |
27646 | #include <sys/statvfs.h> | |
e6cc62c6 VS |
27647 | |
27648 | int | |
27649 | main () | |
27650 | { | |
54ab82b3 VZ |
27651 | |
27652 | long l; | |
65d8ef1e | 27653 | struct statvfs fs; |
54ab82b3 VZ |
27654 | statvfs("/", &fs); |
27655 | l = fs.f_bsize; | |
27656 | l += fs.f_blocks; | |
27657 | l += fs.f_bavail; | |
e6cc62c6 VS |
27658 | |
27659 | ; | |
27660 | return 0; | |
27661 | } | |
27662 | _ACEOF | |
27663 | rm -f conftest.$ac_objext | |
27664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 27665 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
27666 | ac_status=$? |
27667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27668 | (exit $ac_status); } && | |
09d3439c | 27669 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
27670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27671 | (eval $ac_try) 2>&5 | |
27672 | ac_status=$? | |
27673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27674 | (exit $ac_status); }; }; then | |
54ab82b3 VZ |
27675 | wx_cv_type_statvfs_t="struct statvfs" |
27676 | else | |
e6cc62c6 VS |
27677 | echo "$as_me: failed program was:" >&5 |
27678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27679 | ||
27680 | wx_cv_type_statvfs_t="unknown" | |
27681 | ||
54ab82b3 | 27682 | fi |
09d3439c | 27683 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
27684 | |
27685 | ||
54ab82b3 | 27686 | fi |
09d3439c | 27687 | rm -f conftest.$ac_objext conftest.$ac_ext |
54ab82b3 | 27688 | |
e6cc62c6 VS |
27689 | fi |
27690 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
27691 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
54ab82b3 VZ |
27692 | |
27693 | ac_ext=c | |
54ab82b3 | 27694 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
27695 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
27696 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27697 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
54ab82b3 VZ |
27698 | |
27699 | ||
27700 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
e6cc62c6 | 27701 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27702 | #define HAVE_STATVFS 1 |
e6cc62c6 | 27703 | _ACEOF |
af15babd | 27704 | |
54ab82b3 | 27705 | fi |
4f14bcd8 | 27706 | else |
54ab82b3 | 27707 | wx_cv_type_statvfs_t="unknown" |
4f14bcd8 GD |
27708 | fi |
27709 | fi | |
af15babd | 27710 | |
54ab82b3 | 27711 | if test "$wx_cv_type_statvfs_t" != "unknown"; then |
e6cc62c6 | 27712 | cat >>confdefs.h <<_ACEOF |
54ab82b3 | 27713 | #define WX_STATFS_T $wx_cv_type_statvfs_t |
e6cc62c6 | 27714 | _ACEOF |
54ab82b3 VZ |
27715 | |
27716 | else | |
e6cc62c6 VS |
27717 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 |
27718 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
54ab82b3 VZ |
27719 | fi |
27720 | ||
4f14bcd8 | 27721 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 VS |
27722 | |
27723 | ||
27724 | for ac_func in fcntl flock | |
af15babd | 27725 | do |
e6cc62c6 VS |
27726 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27727 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27728 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27729 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27731 | else | |
27732 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 27733 | #line $LINENO "configure" |
e6cc62c6 VS |
27734 | /* confdefs.h. */ |
27735 | _ACEOF | |
27736 | cat confdefs.h >>conftest.$ac_ext | |
27737 | cat >>conftest.$ac_ext <<_ACEOF | |
27738 | /* end confdefs.h. */ | |
af15babd | 27739 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27740 | which can conflict with char $ac_func (); below. |
27741 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27742 | <limits.h> exists even on freestanding compilers. */ | |
27743 | #ifdef __STDC__ | |
27744 | # include <limits.h> | |
27745 | #else | |
27746 | # include <assert.h> | |
27747 | #endif | |
af15babd | 27748 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27749 | #ifdef __cplusplus |
27750 | extern "C" | |
27751 | { | |
27752 | #endif | |
af15babd | 27753 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27754 | builtin and then its argument prototype would still apply. */ |
27755 | char $ac_func (); | |
af15babd VZ |
27756 | /* The GNU C library defines this for functions which it implements |
27757 | to always fail with ENOSYS. Some functions are actually named | |
27758 | something starting with __ and the normal name is an alias. */ | |
27759 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27760 | choke me | |
27761 | #else | |
e6cc62c6 VS |
27762 | char (*f) () = $ac_func; |
27763 | #endif | |
27764 | #ifdef __cplusplus | |
27765 | } | |
af15babd VZ |
27766 | #endif |
27767 | ||
e6cc62c6 VS |
27768 | int |
27769 | main () | |
27770 | { | |
27771 | return f != $ac_func; | |
27772 | ; | |
27773 | return 0; | |
27774 | } | |
27775 | _ACEOF | |
27776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 27778 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27779 | ac_status=$? |
27780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27781 | (exit $ac_status); } && | |
09d3439c | 27782 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27784 | (eval $ac_try) 2>&5 | |
27785 | ac_status=$? | |
27786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27787 | (exit $ac_status); }; }; then | |
27788 | eval "$as_ac_var=yes" | |
27789 | else | |
27790 | echo "$as_me: failed program was:" >&5 | |
27791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27792 | ||
27793 | eval "$as_ac_var=no" | |
27794 | fi | |
09d3439c | 27795 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
27796 | fi |
27797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27798 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27799 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27800 | cat >>confdefs.h <<_ACEOF | |
27801 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27802 | _ACEOF | |
4f14bcd8 | 27803 | break |
af15babd VZ |
27804 | fi |
27805 | done | |
27806 | ||
8284b0c5 | 27807 | |
4f14bcd8 | 27808 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then |
e6cc62c6 VS |
27809 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 |
27810 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
4f14bcd8 GD |
27811 | wxUSE_SNGLINST_CHECKER=no |
27812 | fi | |
27813 | fi | |
af15babd | 27814 | |
e6cc62c6 | 27815 | |
4f14bcd8 | 27816 | for ac_func in timegm |
af15babd | 27817 | do |
e6cc62c6 VS |
27818 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27819 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27820 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27821 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27822 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27823 | else | |
27824 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 27825 | #line $LINENO "configure" |
e6cc62c6 VS |
27826 | /* confdefs.h. */ |
27827 | _ACEOF | |
27828 | cat confdefs.h >>conftest.$ac_ext | |
27829 | cat >>conftest.$ac_ext <<_ACEOF | |
27830 | /* end confdefs.h. */ | |
af15babd | 27831 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27832 | which can conflict with char $ac_func (); below. |
27833 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27834 | <limits.h> exists even on freestanding compilers. */ | |
27835 | #ifdef __STDC__ | |
27836 | # include <limits.h> | |
27837 | #else | |
27838 | # include <assert.h> | |
27839 | #endif | |
af15babd | 27840 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27841 | #ifdef __cplusplus |
27842 | extern "C" | |
27843 | { | |
27844 | #endif | |
af15babd | 27845 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27846 | builtin and then its argument prototype would still apply. */ |
27847 | char $ac_func (); | |
af15babd VZ |
27848 | /* The GNU C library defines this for functions which it implements |
27849 | to always fail with ENOSYS. Some functions are actually named | |
27850 | something starting with __ and the normal name is an alias. */ | |
247f5006 VZ |
27851 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) |
27852 | choke me | |
27853 | #else | |
e6cc62c6 VS |
27854 | char (*f) () = $ac_func; |
27855 | #endif | |
27856 | #ifdef __cplusplus | |
27857 | } | |
247f5006 VZ |
27858 | #endif |
27859 | ||
e6cc62c6 VS |
27860 | int |
27861 | main () | |
27862 | { | |
27863 | return f != $ac_func; | |
27864 | ; | |
27865 | return 0; | |
27866 | } | |
27867 | _ACEOF | |
27868 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27869 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 27870 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27871 | ac_status=$? |
27872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27873 | (exit $ac_status); } && | |
09d3439c | 27874 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27876 | (eval $ac_try) 2>&5 | |
27877 | ac_status=$? | |
27878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27879 | (exit $ac_status); }; }; then | |
27880 | eval "$as_ac_var=yes" | |
27881 | else | |
27882 | echo "$as_me: failed program was:" >&5 | |
27883 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27884 | ||
27885 | eval "$as_ac_var=no" | |
27886 | fi | |
09d3439c | 27887 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
27888 | fi |
27889 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27890 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27891 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27892 | cat >>confdefs.h <<_ACEOF | |
27893 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27894 | _ACEOF | |
703e0a69 | 27895 | |
af15babd VZ |
27896 | fi |
27897 | done | |
27898 | ||
8284b0c5 | 27899 | |
e6cc62c6 VS |
27900 | |
27901 | ||
4f14bcd8 | 27902 | for ac_func in putenv setenv |
10f2d63a | 27903 | do |
e6cc62c6 VS |
27904 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
27905 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27906 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27907 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27909 | else | |
27910 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 27911 | #line $LINENO "configure" |
e6cc62c6 VS |
27912 | /* confdefs.h. */ |
27913 | _ACEOF | |
27914 | cat confdefs.h >>conftest.$ac_ext | |
27915 | cat >>conftest.$ac_ext <<_ACEOF | |
27916 | /* end confdefs.h. */ | |
af15babd | 27917 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
27918 | which can conflict with char $ac_func (); below. |
27919 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27920 | <limits.h> exists even on freestanding compilers. */ | |
27921 | #ifdef __STDC__ | |
27922 | # include <limits.h> | |
27923 | #else | |
27924 | # include <assert.h> | |
27925 | #endif | |
af15babd | 27926 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
27927 | #ifdef __cplusplus |
27928 | extern "C" | |
27929 | { | |
27930 | #endif | |
af15babd | 27931 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
27932 | builtin and then its argument prototype would still apply. */ |
27933 | char $ac_func (); | |
af15babd VZ |
27934 | /* The GNU C library defines this for functions which it implements |
27935 | to always fail with ENOSYS. Some functions are actually named | |
27936 | something starting with __ and the normal name is an alias. */ | |
27937 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27938 | choke me | |
27939 | #else | |
e6cc62c6 VS |
27940 | char (*f) () = $ac_func; |
27941 | #endif | |
27942 | #ifdef __cplusplus | |
27943 | } | |
af15babd VZ |
27944 | #endif |
27945 | ||
e6cc62c6 VS |
27946 | int |
27947 | main () | |
27948 | { | |
27949 | return f != $ac_func; | |
27950 | ; | |
27951 | return 0; | |
27952 | } | |
27953 | _ACEOF | |
27954 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27955 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 27956 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
27957 | ac_status=$? |
27958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27959 | (exit $ac_status); } && | |
09d3439c | 27960 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
27961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27962 | (eval $ac_try) 2>&5 | |
27963 | ac_status=$? | |
27964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27965 | (exit $ac_status); }; }; then | |
27966 | eval "$as_ac_var=yes" | |
27967 | else | |
27968 | echo "$as_me: failed program was:" >&5 | |
27969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27970 | ||
27971 | eval "$as_ac_var=no" | |
27972 | fi | |
09d3439c | 27973 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
27974 | fi |
27975 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27976 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27977 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27978 | cat >>confdefs.h <<_ACEOF | |
27979 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27980 | _ACEOF | |
4f14bcd8 | 27981 | break |
af15babd | 27982 | fi |
af15babd VZ |
27983 | done |
27984 | ||
8284b0c5 | 27985 | |
4f14bcd8 GD |
27986 | HAVE_SOME_SLEEP_FUNC=0 |
27987 | if test "$USE_BEOS" = 1; then | |
e6cc62c6 | 27988 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27989 | #define HAVE_SLEEP 1 |
e6cc62c6 | 27990 | _ACEOF |
af15babd | 27991 | |
4f14bcd8 | 27992 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
27993 | fi |
27994 | ||
4f14bcd8 | 27995 | if test "$USE_DARWIN" = 1; then |
e6cc62c6 | 27996 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 27997 | #define HAVE_USLEEP 1 |
e6cc62c6 | 27998 | _ACEOF |
10f2d63a | 27999 | |
4f14bcd8 | 28000 | HAVE_SOME_SLEEP_FUNC=1 |
10f2d63a VZ |
28001 | fi |
28002 | ||
4f14bcd8 GD |
28003 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then |
28004 | POSIX4_LINK= | |
e6cc62c6 VS |
28005 | |
28006 | for ac_func in nanosleep | |
4f14bcd8 | 28007 | do |
e6cc62c6 VS |
28008 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28009 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28010 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28011 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28013 | else | |
28014 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 28015 | #line $LINENO "configure" |
e6cc62c6 VS |
28016 | /* confdefs.h. */ |
28017 | _ACEOF | |
28018 | cat confdefs.h >>conftest.$ac_ext | |
28019 | cat >>conftest.$ac_ext <<_ACEOF | |
28020 | /* end confdefs.h. */ | |
4f14bcd8 | 28021 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28022 | which can conflict with char $ac_func (); below. |
28023 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28024 | <limits.h> exists even on freestanding compilers. */ | |
28025 | #ifdef __STDC__ | |
28026 | # include <limits.h> | |
28027 | #else | |
28028 | # include <assert.h> | |
28029 | #endif | |
10f2d63a | 28030 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28031 | #ifdef __cplusplus |
28032 | extern "C" | |
28033 | { | |
28034 | #endif | |
10f2d63a | 28035 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28036 | builtin and then its argument prototype would still apply. */ |
28037 | char $ac_func (); | |
4f14bcd8 GD |
28038 | /* The GNU C library defines this for functions which it implements |
28039 | to always fail with ENOSYS. Some functions are actually named | |
28040 | something starting with __ and the normal name is an alias. */ | |
28041 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28042 | choke me | |
28043 | #else | |
e6cc62c6 VS |
28044 | char (*f) () = $ac_func; |
28045 | #endif | |
28046 | #ifdef __cplusplus | |
28047 | } | |
4f14bcd8 GD |
28048 | #endif |
28049 | ||
e6cc62c6 VS |
28050 | int |
28051 | main () | |
28052 | { | |
28053 | return f != $ac_func; | |
28054 | ; | |
28055 | return 0; | |
28056 | } | |
28057 | _ACEOF | |
28058 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28059 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 28060 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28061 | ac_status=$? |
28062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28063 | (exit $ac_status); } && | |
09d3439c | 28064 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28066 | (eval $ac_try) 2>&5 | |
28067 | ac_status=$? | |
28068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28069 | (exit $ac_status); }; }; then | |
28070 | eval "$as_ac_var=yes" | |
28071 | else | |
28072 | echo "$as_me: failed program was:" >&5 | |
28073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28074 | ||
28075 | eval "$as_ac_var=no" | |
28076 | fi | |
09d3439c | 28077 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28078 | fi |
28079 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28080 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28081 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28082 | cat >>confdefs.h <<_ACEOF | |
28083 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28084 | _ACEOF | |
28085 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28086 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 28087 | _ACEOF |
4f14bcd8 | 28088 | |
10f2d63a | 28089 | else |
e6cc62c6 VS |
28090 | |
28091 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
28092 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
28093 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
28094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28095 | else |
e6cc62c6 | 28096 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28097 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 28098 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 28099 | #line $LINENO "configure" |
e6cc62c6 VS |
28100 | /* confdefs.h. */ |
28101 | _ACEOF | |
28102 | cat confdefs.h >>conftest.$ac_ext | |
28103 | cat >>conftest.$ac_ext <<_ACEOF | |
28104 | /* end confdefs.h. */ | |
28105 | ||
10f2d63a | 28106 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28107 | #ifdef __cplusplus |
28108 | extern "C" | |
28109 | #endif | |
10f2d63a | 28110 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28111 | builtin and then its argument prototype would still apply. */ |
28112 | char nanosleep (); | |
28113 | int | |
28114 | main () | |
28115 | { | |
28116 | nanosleep (); | |
28117 | ; | |
28118 | return 0; | |
28119 | } | |
28120 | _ACEOF | |
28121 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28122 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 28123 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28124 | ac_status=$? |
28125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28126 | (exit $ac_status); } && | |
09d3439c | 28127 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28129 | (eval $ac_try) 2>&5 | |
28130 | ac_status=$? | |
28131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28132 | (exit $ac_status); }; }; then | |
28133 | ac_cv_lib_posix4_nanosleep=yes | |
28134 | else | |
28135 | echo "$as_me: failed program was:" >&5 | |
28136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28137 | ||
28138 | ac_cv_lib_posix4_nanosleep=no | |
28139 | fi | |
09d3439c | 28140 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28141 | LIBS=$ac_check_lib_save_LIBS |
28142 | fi | |
28143 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
28144 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
28145 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
28146 | ||
28147 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28148 | #define HAVE_NANOSLEEP 1 |
e6cc62c6 | 28149 | _ACEOF |
4f14bcd8 | 28150 | |
3d63bc3a | 28151 | POSIX4_LINK=" -lposix4" |
e6cc62c6 | 28152 | |
10f2d63a | 28153 | else |
10f2d63a | 28154 | |
e6cc62c6 VS |
28155 | |
28156 | for ac_func in usleep | |
4f14bcd8 | 28157 | do |
e6cc62c6 VS |
28158 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28159 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28160 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28161 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28163 | else | |
28164 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 28165 | #line $LINENO "configure" |
e6cc62c6 VS |
28166 | /* confdefs.h. */ |
28167 | _ACEOF | |
28168 | cat confdefs.h >>conftest.$ac_ext | |
28169 | cat >>conftest.$ac_ext <<_ACEOF | |
28170 | /* end confdefs.h. */ | |
4f14bcd8 | 28171 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28172 | which can conflict with char $ac_func (); below. |
28173 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28174 | <limits.h> exists even on freestanding compilers. */ | |
28175 | #ifdef __STDC__ | |
28176 | # include <limits.h> | |
28177 | #else | |
28178 | # include <assert.h> | |
28179 | #endif | |
4f14bcd8 | 28180 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28181 | #ifdef __cplusplus |
28182 | extern "C" | |
28183 | { | |
28184 | #endif | |
4f14bcd8 | 28185 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28186 | builtin and then its argument prototype would still apply. */ |
28187 | char $ac_func (); | |
4f14bcd8 GD |
28188 | /* The GNU C library defines this for functions which it implements |
28189 | to always fail with ENOSYS. Some functions are actually named | |
28190 | something starting with __ and the normal name is an alias. */ | |
28191 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28192 | choke me | |
28193 | #else | |
e6cc62c6 VS |
28194 | char (*f) () = $ac_func; |
28195 | #endif | |
28196 | #ifdef __cplusplus | |
28197 | } | |
4f14bcd8 GD |
28198 | #endif |
28199 | ||
e6cc62c6 VS |
28200 | int |
28201 | main () | |
28202 | { | |
28203 | return f != $ac_func; | |
28204 | ; | |
28205 | return 0; | |
28206 | } | |
28207 | _ACEOF | |
28208 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28209 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 28210 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28211 | ac_status=$? |
28212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28213 | (exit $ac_status); } && | |
09d3439c | 28214 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28215 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28216 | (eval $ac_try) 2>&5 | |
28217 | ac_status=$? | |
28218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28219 | (exit $ac_status); }; }; then | |
28220 | eval "$as_ac_var=yes" | |
28221 | else | |
28222 | echo "$as_me: failed program was:" >&5 | |
28223 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28224 | ||
28225 | eval "$as_ac_var=no" | |
28226 | fi | |
09d3439c | 28227 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28228 | fi |
28229 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28230 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28231 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28232 | cat >>confdefs.h <<_ACEOF | |
28233 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28234 | _ACEOF | |
28235 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28236 | #define HAVE_USLEEP 1 |
e6cc62c6 | 28237 | _ACEOF |
4f14bcd8 | 28238 | |
698dcdb6 | 28239 | else |
e6cc62c6 VS |
28240 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 |
28241 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
28242 | ||
10f2d63a | 28243 | fi |
4f14bcd8 | 28244 | done |
10f2d63a | 28245 | |
e6cc62c6 VS |
28246 | |
28247 | ||
6232543b | 28248 | fi |
10f2d63a | 28249 | |
e6cc62c6 VS |
28250 | |
28251 | ||
1e487827 | 28252 | fi |
4f14bcd8 | 28253 | done |
703e0a69 | 28254 | |
10f2d63a VZ |
28255 | fi |
28256 | ||
e6cc62c6 VS |
28257 | |
28258 | ||
4f14bcd8 | 28259 | for ac_func in uname gethostname |
70846f0a | 28260 | do |
e6cc62c6 VS |
28261 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28262 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28263 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28264 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28266 | else | |
28267 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 28268 | #line $LINENO "configure" |
e6cc62c6 VS |
28269 | /* confdefs.h. */ |
28270 | _ACEOF | |
28271 | cat confdefs.h >>conftest.$ac_ext | |
28272 | cat >>conftest.$ac_ext <<_ACEOF | |
28273 | /* end confdefs.h. */ | |
70846f0a | 28274 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28275 | which can conflict with char $ac_func (); below. |
28276 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28277 | <limits.h> exists even on freestanding compilers. */ | |
28278 | #ifdef __STDC__ | |
28279 | # include <limits.h> | |
28280 | #else | |
28281 | # include <assert.h> | |
28282 | #endif | |
70846f0a | 28283 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28284 | #ifdef __cplusplus |
28285 | extern "C" | |
28286 | { | |
28287 | #endif | |
70846f0a | 28288 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28289 | builtin and then its argument prototype would still apply. */ |
28290 | char $ac_func (); | |
70846f0a VZ |
28291 | /* The GNU C library defines this for functions which it implements |
28292 | to always fail with ENOSYS. Some functions are actually named | |
28293 | something starting with __ and the normal name is an alias. */ | |
28294 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28295 | choke me | |
28296 | #else | |
e6cc62c6 VS |
28297 | char (*f) () = $ac_func; |
28298 | #endif | |
28299 | #ifdef __cplusplus | |
28300 | } | |
70846f0a VZ |
28301 | #endif |
28302 | ||
e6cc62c6 VS |
28303 | int |
28304 | main () | |
28305 | { | |
28306 | return f != $ac_func; | |
28307 | ; | |
28308 | return 0; | |
28309 | } | |
28310 | _ACEOF | |
28311 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28312 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 28313 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28314 | ac_status=$? |
28315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28316 | (exit $ac_status); } && | |
09d3439c | 28317 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28319 | (eval $ac_try) 2>&5 | |
28320 | ac_status=$? | |
28321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28322 | (exit $ac_status); }; }; then | |
28323 | eval "$as_ac_var=yes" | |
28324 | else | |
28325 | echo "$as_me: failed program was:" >&5 | |
28326 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28327 | ||
28328 | eval "$as_ac_var=no" | |
28329 | fi | |
09d3439c | 28330 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28331 | fi |
28332 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28333 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28334 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28335 | cat >>confdefs.h <<_ACEOF | |
28336 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28337 | _ACEOF | |
4f14bcd8 | 28338 | break |
70846f0a VZ |
28339 | fi |
28340 | done | |
28341 | ||
8284b0c5 MB |
28342 | |
28343 | ||
e6cc62c6 VS |
28344 | |
28345 | ac_ext=cc | |
4f14bcd8 | 28346 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
28347 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28348 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28349 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28350 | ||
8284b0c5 | 28351 | |
4f14bcd8 GD |
28352 | |
28353 | for ac_func in strtok_r | |
10f2d63a | 28354 | do |
e6cc62c6 VS |
28355 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28356 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28357 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28358 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28359 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28360 | else | |
28361 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 28362 | #line $LINENO "configure" |
e6cc62c6 VS |
28363 | /* confdefs.h. */ |
28364 | _ACEOF | |
28365 | cat confdefs.h >>conftest.$ac_ext | |
28366 | cat >>conftest.$ac_ext <<_ACEOF | |
28367 | /* end confdefs.h. */ | |
4f14bcd8 | 28368 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28369 | which can conflict with char $ac_func (); below. |
28370 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28371 | <limits.h> exists even on freestanding compilers. */ | |
28372 | #ifdef __STDC__ | |
28373 | # include <limits.h> | |
28374 | #else | |
28375 | # include <assert.h> | |
28376 | #endif | |
4f14bcd8 GD |
28377 | /* Override any gcc2 internal prototype to avoid an error. */ |
28378 | #ifdef __cplusplus | |
28379 | extern "C" | |
e6cc62c6 | 28380 | { |
4f14bcd8 GD |
28381 | #endif |
28382 | /* We use char because int might match the return type of a gcc2 | |
e6cc62c6 VS |
28383 | builtin and then its argument prototype would still apply. */ |
28384 | char $ac_func (); | |
4f14bcd8 GD |
28385 | /* The GNU C library defines this for functions which it implements |
28386 | to always fail with ENOSYS. Some functions are actually named | |
28387 | something starting with __ and the normal name is an alias. */ | |
28388 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28389 | choke me | |
28390 | #else | |
e6cc62c6 VS |
28391 | char (*f) () = $ac_func; |
28392 | #endif | |
28393 | #ifdef __cplusplus | |
28394 | } | |
4f14bcd8 GD |
28395 | #endif |
28396 | ||
e6cc62c6 VS |
28397 | int |
28398 | main () | |
28399 | { | |
28400 | return f != $ac_func; | |
28401 | ; | |
28402 | return 0; | |
28403 | } | |
28404 | _ACEOF | |
28405 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28406 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 28407 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28408 | ac_status=$? |
28409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28410 | (exit $ac_status); } && | |
09d3439c | 28411 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28413 | (eval $ac_try) 2>&5 | |
28414 | ac_status=$? | |
28415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28416 | (exit $ac_status); }; }; then | |
28417 | eval "$as_ac_var=yes" | |
28418 | else | |
28419 | echo "$as_me: failed program was:" >&5 | |
28420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28421 | ||
28422 | eval "$as_ac_var=no" | |
28423 | fi | |
09d3439c | 28424 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28425 | fi |
28426 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28427 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28428 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28429 | cat >>confdefs.h <<_ACEOF | |
28430 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28431 | _ACEOF | |
4f14bcd8 | 28432 | |
10f2d63a VZ |
28433 | fi |
28434 | done | |
28435 | ||
8284b0c5 | 28436 | |
4f14bcd8 | 28437 | ac_ext=c |
4f14bcd8 | 28438 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
28439 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
28440 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28441 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7b4a847f | 28442 | |
5c6fa7d2 | 28443 | |
8284b0c5 | 28444 | INET_LINK= |
e6cc62c6 | 28445 | |
4f14bcd8 GD |
28446 | for ac_func in inet_addr |
28447 | do | |
e6cc62c6 VS |
28448 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
28449 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28450 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28451 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28453 | else | |
28454 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 28455 | #line $LINENO "configure" |
e6cc62c6 VS |
28456 | /* confdefs.h. */ |
28457 | _ACEOF | |
28458 | cat confdefs.h >>conftest.$ac_ext | |
28459 | cat >>conftest.$ac_ext <<_ACEOF | |
28460 | /* end confdefs.h. */ | |
4f14bcd8 | 28461 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
28462 | which can conflict with char $ac_func (); below. |
28463 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28464 | <limits.h> exists even on freestanding compilers. */ | |
28465 | #ifdef __STDC__ | |
28466 | # include <limits.h> | |
28467 | #else | |
28468 | # include <assert.h> | |
28469 | #endif | |
10f2d63a | 28470 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28471 | #ifdef __cplusplus |
28472 | extern "C" | |
28473 | { | |
28474 | #endif | |
10f2d63a | 28475 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28476 | builtin and then its argument prototype would still apply. */ |
28477 | char $ac_func (); | |
4f14bcd8 GD |
28478 | /* The GNU C library defines this for functions which it implements |
28479 | to always fail with ENOSYS. Some functions are actually named | |
28480 | something starting with __ and the normal name is an alias. */ | |
28481 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28482 | choke me | |
28483 | #else | |
e6cc62c6 VS |
28484 | char (*f) () = $ac_func; |
28485 | #endif | |
28486 | #ifdef __cplusplus | |
28487 | } | |
4f14bcd8 GD |
28488 | #endif |
28489 | ||
e6cc62c6 VS |
28490 | int |
28491 | main () | |
28492 | { | |
28493 | return f != $ac_func; | |
28494 | ; | |
28495 | return 0; | |
28496 | } | |
28497 | _ACEOF | |
28498 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 28500 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28501 | ac_status=$? |
28502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28503 | (exit $ac_status); } && | |
09d3439c | 28504 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28506 | (eval $ac_try) 2>&5 | |
28507 | ac_status=$? | |
28508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28509 | (exit $ac_status); }; }; then | |
28510 | eval "$as_ac_var=yes" | |
28511 | else | |
28512 | echo "$as_me: failed program was:" >&5 | |
28513 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28514 | ||
28515 | eval "$as_ac_var=no" | |
28516 | fi | |
09d3439c | 28517 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28518 | fi |
28519 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28520 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28521 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28522 | cat >>confdefs.h <<_ACEOF | |
28523 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28524 | _ACEOF | |
28525 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 28526 | #define HAVE_INET_ADDR 1 |
e6cc62c6 | 28527 | _ACEOF |
10f2d63a VZ |
28528 | |
28529 | else | |
e6cc62c6 VS |
28530 | |
28531 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
28532 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
28533 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
28534 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28535 | else |
e6cc62c6 | 28536 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28537 | LIBS="-lnsl $LIBS" |
e6cc62c6 | 28538 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 28539 | #line $LINENO "configure" |
e6cc62c6 VS |
28540 | /* confdefs.h. */ |
28541 | _ACEOF | |
28542 | cat confdefs.h >>conftest.$ac_ext | |
28543 | cat >>conftest.$ac_ext <<_ACEOF | |
28544 | /* end confdefs.h. */ | |
28545 | ||
10f2d63a | 28546 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28547 | #ifdef __cplusplus |
28548 | extern "C" | |
28549 | #endif | |
10f2d63a | 28550 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28551 | builtin and then its argument prototype would still apply. */ |
28552 | char inet_addr (); | |
28553 | int | |
28554 | main () | |
28555 | { | |
28556 | inet_addr (); | |
28557 | ; | |
28558 | return 0; | |
28559 | } | |
28560 | _ACEOF | |
28561 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28562 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 28563 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28564 | ac_status=$? |
28565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28566 | (exit $ac_status); } && | |
09d3439c | 28567 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28569 | (eval $ac_try) 2>&5 | |
28570 | ac_status=$? | |
28571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28572 | (exit $ac_status); }; }; then | |
28573 | ac_cv_lib_nsl_inet_addr=yes | |
28574 | else | |
28575 | echo "$as_me: failed program was:" >&5 | |
28576 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28577 | ||
28578 | ac_cv_lib_nsl_inet_addr=no | |
28579 | fi | |
09d3439c | 28580 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28581 | LIBS=$ac_check_lib_save_LIBS |
28582 | fi | |
28583 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
28584 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
28585 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
4f14bcd8 | 28586 | INET_LINK="nsl" |
10f2d63a | 28587 | else |
0e012a93 VZ |
28588 | |
28589 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
e6cc62c6 VS |
28590 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 |
28591 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
28592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 28593 | else |
e6cc62c6 | 28594 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 28595 | LIBS="-lresolv $LIBS" |
e6cc62c6 | 28596 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 28597 | #line $LINENO "configure" |
e6cc62c6 VS |
28598 | /* confdefs.h. */ |
28599 | _ACEOF | |
28600 | cat confdefs.h >>conftest.$ac_ext | |
28601 | cat >>conftest.$ac_ext <<_ACEOF | |
28602 | /* end confdefs.h. */ | |
28603 | ||
5c6fa7d2 | 28604 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28605 | #ifdef __cplusplus |
28606 | extern "C" | |
28607 | #endif | |
5c6fa7d2 | 28608 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28609 | builtin and then its argument prototype would still apply. */ |
28610 | char inet_addr (); | |
28611 | int | |
28612 | main () | |
28613 | { | |
28614 | inet_addr (); | |
28615 | ; | |
28616 | return 0; | |
28617 | } | |
28618 | _ACEOF | |
28619 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 28621 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28622 | ac_status=$? |
28623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28624 | (exit $ac_status); } && | |
09d3439c | 28625 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28627 | (eval $ac_try) 2>&5 | |
28628 | ac_status=$? | |
28629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28630 | (exit $ac_status); }; }; then | |
28631 | ac_cv_lib_resolv_inet_addr=yes | |
28632 | else | |
28633 | echo "$as_me: failed program was:" >&5 | |
28634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28635 | ||
28636 | ac_cv_lib_resolv_inet_addr=no | |
28637 | fi | |
09d3439c | 28638 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28639 | LIBS=$ac_check_lib_save_LIBS |
28640 | fi | |
28641 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
28642 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
28643 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
4f14bcd8 | 28644 | INET_LINK="resolv" |
698dcdb6 | 28645 | else |
0e012a93 VZ |
28646 | |
28647 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
e6cc62c6 VS |
28648 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 |
28649 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
28650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3c011993 | 28651 | else |
e6cc62c6 | 28652 | ac_check_lib_save_LIBS=$LIBS |
3c011993 | 28653 | LIBS="-lsocket $LIBS" |
e6cc62c6 | 28654 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 28655 | #line $LINENO "configure" |
e6cc62c6 VS |
28656 | /* confdefs.h. */ |
28657 | _ACEOF | |
28658 | cat confdefs.h >>conftest.$ac_ext | |
28659 | cat >>conftest.$ac_ext <<_ACEOF | |
28660 | /* end confdefs.h. */ | |
28661 | ||
3c011993 | 28662 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
28663 | #ifdef __cplusplus |
28664 | extern "C" | |
28665 | #endif | |
3c011993 | 28666 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
28667 | builtin and then its argument prototype would still apply. */ |
28668 | char inet_addr (); | |
28669 | int | |
28670 | main () | |
28671 | { | |
28672 | inet_addr (); | |
28673 | ; | |
28674 | return 0; | |
28675 | } | |
28676 | _ACEOF | |
28677 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28678 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 28679 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28680 | ac_status=$? |
28681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28682 | (exit $ac_status); } && | |
09d3439c | 28683 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28684 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28685 | (eval $ac_try) 2>&5 | |
28686 | ac_status=$? | |
28687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28688 | (exit $ac_status); }; }; then | |
28689 | ac_cv_lib_socket_inet_addr=yes | |
28690 | else | |
28691 | echo "$as_me: failed program was:" >&5 | |
28692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28693 | ||
28694 | ac_cv_lib_socket_inet_addr=no | |
28695 | fi | |
09d3439c | 28696 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28697 | LIBS=$ac_check_lib_save_LIBS |
28698 | fi | |
28699 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
28700 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
28701 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
28702 | INET_LINK="socket" | |
4f14bcd8 | 28703 | |
8284b0c5 | 28704 | fi |
e6cc62c6 | 28705 | |
698dcdb6 | 28706 | |
0e012a93 | 28707 | |
7b4a847f | 28708 | fi |
e6cc62c6 VS |
28709 | |
28710 | ||
0e012a93 | 28711 | |
a0b9e27f | 28712 | fi |
579d8138 | 28713 | |
e6cc62c6 VS |
28714 | |
28715 | ||
5c6fa7d2 | 28716 | fi |
e6cc62c6 VS |
28717 | done |
28718 | ||
28719 | ||
28720 | ||
28721 | for ac_func in inet_aton | |
28722 | do | |
28723 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28724 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28725 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28726 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28728 | else | |
28729 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 28730 | #line $LINENO "configure" |
e6cc62c6 VS |
28731 | /* confdefs.h. */ |
28732 | _ACEOF | |
28733 | cat confdefs.h >>conftest.$ac_ext | |
28734 | cat >>conftest.$ac_ext <<_ACEOF | |
28735 | /* end confdefs.h. */ | |
28736 | /* System header to define __stub macros and hopefully few prototypes, | |
28737 | which can conflict with char $ac_func (); below. | |
28738 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28739 | <limits.h> exists even on freestanding compilers. */ | |
28740 | #ifdef __STDC__ | |
28741 | # include <limits.h> | |
28742 | #else | |
28743 | # include <assert.h> | |
28744 | #endif | |
28745 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28746 | #ifdef __cplusplus | |
28747 | extern "C" | |
28748 | { | |
28749 | #endif | |
28750 | /* We use char because int might match the return type of a gcc2 | |
28751 | builtin and then its argument prototype would still apply. */ | |
28752 | char $ac_func (); | |
28753 | /* The GNU C library defines this for functions which it implements | |
28754 | to always fail with ENOSYS. Some functions are actually named | |
28755 | something starting with __ and the normal name is an alias. */ | |
28756 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28757 | choke me | |
28758 | #else | |
28759 | char (*f) () = $ac_func; | |
28760 | #endif | |
28761 | #ifdef __cplusplus | |
28762 | } | |
28763 | #endif | |
28764 | ||
28765 | int | |
28766 | main () | |
28767 | { | |
28768 | return f != $ac_func; | |
28769 | ; | |
28770 | return 0; | |
28771 | } | |
28772 | _ACEOF | |
28773 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28774 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 28775 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28776 | ac_status=$? |
28777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28778 | (exit $ac_status); } && | |
09d3439c | 28779 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28781 | (eval $ac_try) 2>&5 | |
28782 | ac_status=$? | |
28783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28784 | (exit $ac_status); }; }; then | |
28785 | eval "$as_ac_var=yes" | |
28786 | else | |
28787 | echo "$as_me: failed program was:" >&5 | |
28788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28789 | ||
28790 | eval "$as_ac_var=no" | |
28791 | fi | |
09d3439c | 28792 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28793 | fi |
28794 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28795 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28796 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28797 | cat >>confdefs.h <<_ACEOF | |
28798 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28799 | _ACEOF | |
28800 | cat >>confdefs.h <<\_ACEOF | |
28801 | #define HAVE_INET_ATON 1 | |
28802 | _ACEOF | |
28803 | ||
28804 | else | |
28805 | ||
28806 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
28807 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
28808 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
28809 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
28810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28811 | else | |
28812 | ac_check_lib_save_LIBS=$LIBS | |
28813 | LIBS="-l$INET_LINK $LIBS" | |
28814 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 28815 | #line $LINENO "configure" |
e6cc62c6 VS |
28816 | /* confdefs.h. */ |
28817 | _ACEOF | |
28818 | cat confdefs.h >>conftest.$ac_ext | |
28819 | cat >>conftest.$ac_ext <<_ACEOF | |
28820 | /* end confdefs.h. */ | |
28821 | ||
28822 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28823 | #ifdef __cplusplus | |
28824 | extern "C" | |
28825 | #endif | |
28826 | /* We use char because int might match the return type of a gcc2 | |
28827 | builtin and then its argument prototype would still apply. */ | |
28828 | char inet_aton (); | |
28829 | int | |
28830 | main () | |
28831 | { | |
28832 | inet_aton (); | |
28833 | ; | |
28834 | return 0; | |
28835 | } | |
28836 | _ACEOF | |
28837 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 28839 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
28840 | ac_status=$? |
28841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28842 | (exit $ac_status); } && | |
09d3439c | 28843 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
28844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28845 | (eval $ac_try) 2>&5 | |
28846 | ac_status=$? | |
28847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28848 | (exit $ac_status); }; }; then | |
28849 | eval "$as_ac_Lib=yes" | |
28850 | else | |
28851 | echo "$as_me: failed program was:" >&5 | |
28852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28853 | ||
28854 | eval "$as_ac_Lib=no" | |
28855 | fi | |
09d3439c | 28856 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
28857 | LIBS=$ac_check_lib_save_LIBS |
28858 | fi | |
28859 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
28860 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
28861 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
28862 | cat >>confdefs.h <<\_ACEOF | |
28863 | #define HAVE_INET_ATON 1 | |
28864 | _ACEOF | |
52127426 | 28865 | |
a0b9e27f | 28866 | fi |
247f5006 | 28867 | |
8284b0c5 | 28868 | |
698dcdb6 | 28869 | fi |
4f14bcd8 GD |
28870 | done |
28871 | ||
8284b0c5 | 28872 | |
e6cc62c6 VS |
28873 | if test "x$INET_LINK" != "x"; then |
28874 | cat >>confdefs.h <<\_ACEOF | |
28875 | #define HAVE_INET_ADDR 1 | |
28876 | _ACEOF | |
28877 | ||
28878 | INET_LINK=" -l$INET_LINK" | |
28879 | fi | |
28880 | ||
28881 | fi | |
a0b9e27f | 28882 | |
a0b9e27f | 28883 | |
4f14bcd8 | 28884 | |
edd891e2 VS |
28885 | EXTRALIBS_ESD= |
28886 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
28887 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
28888 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
28889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28890 | else | |
28891 | ac_check_lib_save_LIBS=$LIBS | |
28892 | LIBS="-lesd $LIBS" | |
28893 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 28894 | #line $LINENO "configure" |
edd891e2 VS |
28895 | /* confdefs.h. */ |
28896 | _ACEOF | |
28897 | cat confdefs.h >>conftest.$ac_ext | |
28898 | cat >>conftest.$ac_ext <<_ACEOF | |
28899 | /* end confdefs.h. */ | |
28900 | ||
28901 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28902 | #ifdef __cplusplus | |
28903 | extern "C" | |
28904 | #endif | |
28905 | /* We use char because int might match the return type of a gcc2 | |
28906 | builtin and then its argument prototype would still apply. */ | |
28907 | char esd_close (); | |
28908 | int | |
28909 | main () | |
28910 | { | |
28911 | esd_close (); | |
28912 | ; | |
28913 | return 0; | |
28914 | } | |
28915 | _ACEOF | |
28916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 28918 | (eval $ac_link) 2>&5 |
edd891e2 VS |
28919 | ac_status=$? |
28920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28921 | (exit $ac_status); } && | |
09d3439c | 28922 | { ac_try='test -s conftest$ac_exeext' |
edd891e2 VS |
28923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28924 | (eval $ac_try) 2>&5 | |
28925 | ac_status=$? | |
28926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28927 | (exit $ac_status); }; }; then | |
28928 | ac_cv_lib_esd_esd_close=yes | |
28929 | else | |
28930 | echo "$as_me: failed program was:" >&5 | |
28931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28932 | ||
28933 | ac_cv_lib_esd_esd_close=no | |
28934 | fi | |
09d3439c | 28935 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
edd891e2 VS |
28936 | LIBS=$ac_check_lib_save_LIBS |
28937 | fi | |
28938 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
28939 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
28940 | if test $ac_cv_lib_esd_esd_close = yes; then | |
28941 | ||
28942 | ||
28943 | for ac_header in esd.h | |
28944 | do | |
28945 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
28946 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
28947 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
28948 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
28949 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
28950 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
28951 | fi | |
edd891e2 VS |
28952 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
28953 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
e6cc62c6 VS |
28954 | else |
28955 | # Is the header compilable? | |
edd891e2 VS |
28956 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
28957 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
e6cc62c6 | 28958 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 28959 | #line $LINENO "configure" |
e6cc62c6 VS |
28960 | /* confdefs.h. */ |
28961 | _ACEOF | |
28962 | cat confdefs.h >>conftest.$ac_ext | |
28963 | cat >>conftest.$ac_ext <<_ACEOF | |
28964 | /* end confdefs.h. */ | |
28965 | $ac_includes_default | |
edd891e2 | 28966 | #include <$ac_header> |
e6cc62c6 VS |
28967 | _ACEOF |
28968 | rm -f conftest.$ac_objext | |
28969 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 28970 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
28971 | ac_status=$? |
28972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28973 | (exit $ac_status); } && | |
09d3439c | 28974 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
28975 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28976 | (eval $ac_try) 2>&5 | |
28977 | ac_status=$? | |
28978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28979 | (exit $ac_status); }; }; then | |
28980 | ac_header_compiler=yes | |
28981 | else | |
28982 | echo "$as_me: failed program was:" >&5 | |
28983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28984 | ||
28985 | ac_header_compiler=no | |
28986 | fi | |
09d3439c | 28987 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
28988 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
28989 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
28990 | ||
28991 | # Is the header present? | |
edd891e2 VS |
28992 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
28993 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
e6cc62c6 | 28994 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 28995 | #line $LINENO "configure" |
e6cc62c6 VS |
28996 | /* confdefs.h. */ |
28997 | _ACEOF | |
28998 | cat confdefs.h >>conftest.$ac_ext | |
28999 | cat >>conftest.$ac_ext <<_ACEOF | |
29000 | /* end confdefs.h. */ | |
edd891e2 | 29001 | #include <$ac_header> |
e6cc62c6 VS |
29002 | _ACEOF |
29003 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29004 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29005 | ac_status=$? | |
29006 | grep -v '^ *+' conftest.er1 >conftest.err | |
29007 | rm -f conftest.er1 | |
29008 | cat conftest.err >&5 | |
29009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29010 | (exit $ac_status); } >/dev/null; then | |
29011 | if test -s conftest.err; then | |
29012 | ac_cpp_err=$ac_c_preproc_warn_flag | |
29013 | else | |
29014 | ac_cpp_err= | |
29015 | fi | |
a0b9e27f | 29016 | else |
e6cc62c6 VS |
29017 | ac_cpp_err=yes |
29018 | fi | |
29019 | if test -z "$ac_cpp_err"; then | |
29020 | ac_header_preproc=yes | |
29021 | else | |
29022 | echo "$as_me: failed program was:" >&5 | |
29023 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29024 | ||
29025 | ac_header_preproc=no | |
29026 | fi | |
29027 | rm -f conftest.err conftest.$ac_ext | |
29028 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29029 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29030 | ||
29031 | # So? What about this header? | |
09d3439c VZ |
29032 | case $ac_header_compiler:$ac_header_preproc in |
29033 | yes:no ) | |
edd891e2 VS |
29034 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
29035 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
29036 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
29037 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29038 | ( | |
29039 | cat <<\_ASBOX | |
29040 | ## ------------------------------------ ## | |
29041 | ## Report this to bug-autoconf@gnu.org. ## | |
29042 | ## ------------------------------------ ## | |
29043 | _ASBOX | |
29044 | ) | | |
29045 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 29046 | ;; |
09d3439c | 29047 | no:yes ) |
edd891e2 VS |
29048 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
29049 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
29050 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
29051 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
edd891e2 VS |
29052 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
29053 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
e6cc62c6 VS |
29054 | ( |
29055 | cat <<\_ASBOX | |
09d3439c VZ |
29056 | ## ------------------------------------ ## |
29057 | ## Report this to bug-autoconf@gnu.org. ## | |
29058 | ## ------------------------------------ ## | |
e6cc62c6 VS |
29059 | _ASBOX |
29060 | ) | | |
29061 | sed "s/^/$as_me: WARNING: /" >&2 | |
29062 | ;; | |
29063 | esac | |
edd891e2 VS |
29064 | echo "$as_me:$LINENO: checking for $ac_header" >&5 |
29065 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29066 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
e6cc62c6 VS |
29067 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
29068 | else | |
09d3439c | 29069 | eval "$as_ac_Header=$ac_header_preproc" |
a0b9e27f | 29070 | fi |
edd891e2 VS |
29071 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
29072 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
a0b9e27f | 29073 | |
e6cc62c6 | 29074 | fi |
edd891e2 VS |
29075 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
29076 | cat >>confdefs.h <<_ACEOF | |
29077 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
e6cc62c6 | 29078 | _ACEOF |
e6cc62c6 | 29079 | |
edd891e2 | 29080 | EXTRALIBS_ESD="-lesd" |
4f14bcd8 | 29081 | |
a0b9e27f | 29082 | fi |
247f5006 | 29083 | |
edd891e2 | 29084 | done |
8284b0c5 | 29085 | |
4f14bcd8 | 29086 | |
6232543b | 29087 | fi |
10f2d63a | 29088 | |
703e0a69 | 29089 | |
8284b0c5 | 29090 | |
d19d1899 MB |
29091 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 |
29092 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
29093 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 29094 | #line $LINENO "configure" |
d19d1899 MB |
29095 | /* confdefs.h. */ |
29096 | _ACEOF | |
29097 | cat confdefs.h >>conftest.$ac_ext | |
29098 | cat >>conftest.$ac_ext <<_ACEOF | |
29099 | /* end confdefs.h. */ | |
29100 | #ifdef __linux__ | |
29101 | #include <linux/cdrom.h> | |
29102 | #else | |
29103 | /* For Solaris */ | |
29104 | #include <sys/cdio.h> | |
29105 | #endif | |
29106 | ||
29107 | int | |
29108 | main () | |
29109 | { | |
29110 | struct cdrom_tocentry entry, old_entry; | |
29111 | ; | |
29112 | return 0; | |
29113 | } | |
29114 | _ACEOF | |
29115 | rm -f conftest.$ac_objext | |
29116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 29117 | (eval $ac_compile) 2>&5 |
d19d1899 MB |
29118 | ac_status=$? |
29119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29120 | (exit $ac_status); } && | |
09d3439c | 29121 | { ac_try='test -s conftest.$ac_objext' |
d19d1899 MB |
29122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29123 | (eval $ac_try) 2>&5 | |
29124 | ac_status=$? | |
29125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29126 | (exit $ac_status); }; }; then | |
29127 | echo "$as_me:$LINENO: result: yes" >&5 | |
29128 | echo "${ECHO_T}yes" >&6 | |
29129 | cat >>confdefs.h <<\_ACEOF | |
29130 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
29131 | _ACEOF | |
29132 | ||
29133 | else | |
29134 | echo "$as_me: failed program was:" >&5 | |
29135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29136 | ||
29137 | echo "$as_me:$LINENO: result: no" >&5 | |
29138 | echo "${ECHO_T}no" >&6 | |
29139 | fi | |
09d3439c | 29140 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
29141 | |
29142 | ||
29143 | cat >confcache <<\_ACEOF | |
4f14bcd8 GD |
29144 | # This file is a shell script that caches the results of configure |
29145 | # tests run on this system so they can be shared between configure | |
e6cc62c6 VS |
29146 | # scripts and configure runs, see configure's option --config-cache. |
29147 | # It is not useful on other systems. If it contains results you don't | |
29148 | # want to keep, you may remove or edit it. | |
4f14bcd8 | 29149 | # |
e6cc62c6 VS |
29150 | # config.status only pays attention to the cache file if you give it |
29151 | # the --recheck option to rerun configure. | |
4f14bcd8 | 29152 | # |
e6cc62c6 VS |
29153 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
29154 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
29155 | # following values. | |
29156 | ||
29157 | _ACEOF | |
29158 | ||
4f14bcd8 GD |
29159 | # The following way of writing the cache mishandles newlines in values, |
29160 | # but we know of no workaround that is simple, portable, and efficient. | |
29161 | # So, don't put newlines in cache variables' values. | |
29162 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
29163 | # and sets the high bit in the cache file unless we assign to the vars. | |
e6cc62c6 VS |
29164 | { |
29165 | (set) 2>&1 | | |
29166 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
29167 | *ac_space=\ *) | |
29168 | # `set' does not quote correctly, so add quotes (double-quote | |
29169 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
29170 | sed -n \ | |
09d3439c VZ |
29171 | "s/'/'\\\\''/g; |
29172 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
29173 | ;; |
29174 | *) | |
29175 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
29176 | sed -n \ | |
09d3439c | 29177 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
29178 | ;; |
29179 | esac; | |
29180 | } | | |
29181 | sed ' | |
29182 | t clear | |
29183 | : clear | |
29184 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
29185 | t end | |
29186 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
29187 | : end' >>confcache | |
29188 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
4f14bcd8 | 29189 | if test -w $cache_file; then |
e6cc62c6 VS |
29190 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
29191 | cat confcache >$cache_file | |
f6bcfd97 | 29192 | else |
4f14bcd8 | 29193 | echo "not updating unwritable cache $cache_file" |
f6bcfd97 | 29194 | fi |
4f14bcd8 GD |
29195 | fi |
29196 | rm -f confcache | |
f6bcfd97 | 29197 | |
8284b0c5 | 29198 | |
009fead0 | 29199 | CPP_MT_FLAG= |
73d617c9 | 29200 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
4f14bcd8 | 29201 | |
e6cc62c6 | 29202 | |
7274f1c7 | 29203 | THREADS_LINK= |
009fead0 | 29204 | THREADS_CFLAGS= |
7274f1c7 RL |
29205 | |
29206 | if test "$wxUSE_THREADS" = "yes" ; then | |
89e6bf6d | 29207 | if test "$USE_BEOS" = 1; then |
e6cc62c6 VS |
29208 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 |
29209 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
7274f1c7 RL |
29210 | wxUSE_THREADS="no" |
29211 | fi | |
4f14bcd8 | 29212 | fi |
4f14bcd8 | 29213 | |
7274f1c7 | 29214 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
29215 | |
29216 | ||
009fead0 VZ |
29217 | THREAD_OPTS="-pthread" |
29218 | case "${host}" in | |
29219 | *-*-solaris2* | *-*-sunos4* ) | |
29220 | if test "x$GCC" = "xyes"; then | |
126be6b4 | 29221 | THREAD_OPTS="-pthreads $THREAD_OPTS" |
009fead0 VZ |
29222 | else |
29223 | THREAD_OPTS="-mt $THREAD_OPTS" | |
29224 | fi | |
29225 | ;; | |
29226 | *-*-freebsd*) | |
29227 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
29228 | ;; | |
17234b26 MB |
29229 | *-*-darwin* | *-*-cygwin* ) |
29230 | THREAD_OPTS="" | |
4101db81 | 29231 | ;; |
8f4a9a10 | 29232 | *-*-aix*) |
009fead0 VZ |
29233 | THREAD_OPTS="pthreads" |
29234 | ;; | |
4f5a7f74 VZ |
29235 | *-hp-hpux* ) |
29236 | if test "x$GCC" != "xyes"; then | |
29237 | THREAD_OPTS="" | |
29238 | fi | |
89e3b3e4 VZ |
29239 | ;; |
29240 | ||
29241 | *-*-irix* ) | |
29242 | if test "x$GCC" = "xyes"; then | |
29243 | THREAD_OPTS="" | |
29244 | fi | |
29245 | ;; | |
29246 | ||
29247 | *-*-*UnixWare*) | |
29248 | if test "x$GCC" != "xyes"; then | |
29249 | THREAD_OPTS="-Ethread" | |
29250 | fi | |
29251 | ;; | |
009fead0 | 29252 | esac |
4f14bcd8 | 29253 | |
02a1dfba | 29254 | THREAD_OPTS="$THREAD_OPTS pthread none" |
595e0e44 | 29255 | |
009fead0 VZ |
29256 | THREADS_OK=no |
29257 | for flag in $THREAD_OPTS; do | |
29258 | case $flag in | |
29259 | none) | |
e6cc62c6 VS |
29260 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 |
29261 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
009fead0 | 29262 | ;; |
698dcdb6 | 29263 | |
009fead0 | 29264 | -*) |
e6cc62c6 VS |
29265 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 |
29266 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
009fead0 VZ |
29267 | THREADS_CFLAGS="$flag" |
29268 | ;; | |
698dcdb6 | 29269 | |
009fead0 | 29270 | *) |
e6cc62c6 VS |
29271 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 |
29272 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
009fead0 VZ |
29273 | THREADS_LINK="-l$flag" |
29274 | ;; | |
29275 | esac | |
10f2d63a | 29276 | |
009fead0 VZ |
29277 | save_LIBS="$LIBS" |
29278 | save_CFLAGS="$CFLAGS" | |
29279 | LIBS="$THREADS_LINK $LIBS" | |
04727afd | 29280 | CFLAGS="$THREADS_CFLAGS $CFLAGS" |
10f2d63a | 29281 | |
e6cc62c6 | 29282 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 29283 | #line $LINENO "configure" |
e6cc62c6 VS |
29284 | /* confdefs.h. */ |
29285 | _ACEOF | |
29286 | cat confdefs.h >>conftest.$ac_ext | |
29287 | cat >>conftest.$ac_ext <<_ACEOF | |
29288 | /* end confdefs.h. */ | |
009fead0 | 29289 | #include <pthread.h> |
e6cc62c6 VS |
29290 | int |
29291 | main () | |
29292 | { | |
009fead0 | 29293 | pthread_create(0,0,0,0); |
e6cc62c6 VS |
29294 | ; |
29295 | return 0; | |
29296 | } | |
29297 | _ACEOF | |
29298 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29299 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 29300 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29301 | ac_status=$? |
29302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29303 | (exit $ac_status); } && | |
09d3439c | 29304 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29306 | (eval $ac_try) 2>&5 | |
29307 | ac_status=$? | |
29308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29309 | (exit $ac_status); }; }; then | |
009fead0 | 29310 | THREADS_OK=yes |
10f2d63a | 29311 | else |
e6cc62c6 VS |
29312 | echo "$as_me: failed program was:" >&5 |
29313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29314 | ||
6232543b | 29315 | fi |
09d3439c | 29316 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
698dcdb6 | 29317 | |
009fead0 VZ |
29318 | LIBS="$save_LIBS" |
29319 | CFLAGS="$save_CFLAGS" | |
d9b9876f | 29320 | |
e6cc62c6 VS |
29321 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 |
29322 | echo "${ECHO_T}$THREADS_OK" >&6 | |
009fead0 VZ |
29323 | if test "x$THREADS_OK" = "xyes"; then |
29324 | break; | |
29325 | fi | |
d9b9876f | 29326 | |
009fead0 VZ |
29327 | THREADS_LINK="" |
29328 | THREADS_CFLAGS="" | |
29329 | done | |
4f14bcd8 | 29330 | |
009fead0 VZ |
29331 | if test "x$THREADS_OK" != "xyes"; then |
29332 | wxUSE_THREADS=no | |
e6cc62c6 VS |
29333 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 |
29334 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
009fead0 | 29335 | else |
db82f09e VZ |
29336 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" |
29337 | LIBS="$THREADS_LINK $LIBS" | |
fe5a9cab | 29338 | |
e6cc62c6 VS |
29339 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 |
29340 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
009fead0 VZ |
29341 | flag=no |
29342 | case "${host}" in | |
2b5f62a0 VZ |
29343 | *-aix*) |
29344 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
29345 | flag="-D_THREAD_SAFE" | |
29346 | ;; | |
29347 | *-freebsd*) | |
009fead0 VZ |
29348 | flag="-D_THREAD_SAFE" |
29349 | ;; | |
06313569 GD |
29350 | *-hp-hpux* ) |
29351 | flag="-D_REENTRANT" | |
4f5a7f74 VZ |
29352 | if test "x$GCC" != "xyes"; then |
29353 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
29354 | fi | |
06313569 | 29355 | ;; |
009fead0 VZ |
29356 | *solaris* | alpha*-osf*) |
29357 | flag="-D_REENTRANT" | |
29358 | ;; | |
29359 | esac | |
e6cc62c6 VS |
29360 | echo "$as_me:$LINENO: result: ${flag}" >&5 |
29361 | echo "${ECHO_T}${flag}" >&6 | |
009fead0 | 29362 | if test "x$flag" != xno; then |
04727afd | 29363 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" |
009fead0 VZ |
29364 | fi |
29365 | ||
009fead0 | 29366 | if test "x$THREADS_CFLAGS" != "x"; then |
04727afd | 29367 | CFLAGS="$CFLAGS $THREADS_CFLAGS" |
009fead0 VZ |
29368 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" |
29369 | fi | |
29370 | fi | |
4f14bcd8 | 29371 | fi |
4f14bcd8 | 29372 | |
7274f1c7 | 29373 | if test "$wxUSE_THREADS" = "yes" ; then |
e6cc62c6 VS |
29374 | |
29375 | for ac_func in thr_setconcurrency | |
4f14bcd8 | 29376 | do |
e6cc62c6 VS |
29377 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
29378 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29379 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29380 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29382 | else | |
29383 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 29384 | #line $LINENO "configure" |
e6cc62c6 VS |
29385 | /* confdefs.h. */ |
29386 | _ACEOF | |
29387 | cat confdefs.h >>conftest.$ac_ext | |
29388 | cat >>conftest.$ac_ext <<_ACEOF | |
29389 | /* end confdefs.h. */ | |
4f14bcd8 | 29390 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29391 | which can conflict with char $ac_func (); below. |
29392 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29393 | <limits.h> exists even on freestanding compilers. */ | |
29394 | #ifdef __STDC__ | |
29395 | # include <limits.h> | |
29396 | #else | |
29397 | # include <assert.h> | |
29398 | #endif | |
4f14bcd8 | 29399 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29400 | #ifdef __cplusplus |
29401 | extern "C" | |
29402 | { | |
29403 | #endif | |
4f14bcd8 | 29404 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29405 | builtin and then its argument prototype would still apply. */ |
29406 | char $ac_func (); | |
4f14bcd8 GD |
29407 | /* The GNU C library defines this for functions which it implements |
29408 | to always fail with ENOSYS. Some functions are actually named | |
29409 | something starting with __ and the normal name is an alias. */ | |
29410 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29411 | choke me | |
29412 | #else | |
e6cc62c6 VS |
29413 | char (*f) () = $ac_func; |
29414 | #endif | |
29415 | #ifdef __cplusplus | |
29416 | } | |
4f14bcd8 GD |
29417 | #endif |
29418 | ||
e6cc62c6 VS |
29419 | int |
29420 | main () | |
29421 | { | |
29422 | return f != $ac_func; | |
29423 | ; | |
29424 | return 0; | |
29425 | } | |
29426 | _ACEOF | |
29427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 29429 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29430 | ac_status=$? |
29431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29432 | (exit $ac_status); } && | |
09d3439c | 29433 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29435 | (eval $ac_try) 2>&5 | |
29436 | ac_status=$? | |
29437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29438 | (exit $ac_status); }; }; then | |
29439 | eval "$as_ac_var=yes" | |
29440 | else | |
29441 | echo "$as_me: failed program was:" >&5 | |
29442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29443 | ||
29444 | eval "$as_ac_var=no" | |
29445 | fi | |
09d3439c | 29446 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29447 | fi |
29448 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29449 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29450 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29451 | cat >>confdefs.h <<_ACEOF | |
29452 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29453 | _ACEOF | |
698dcdb6 | 29454 | |
10f2d63a | 29455 | fi |
4f14bcd8 | 29456 | done |
10f2d63a | 29457 | |
8284b0c5 | 29458 | |
e6cc62c6 VS |
29459 | |
29460 | for ac_header in sched.h | |
4f14bcd8 | 29461 | do |
e6cc62c6 VS |
29462 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
29463 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29464 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29465 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29466 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29467 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29468 | fi | |
29469 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29470 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29471 | else | |
29472 | # Is the header compilable? | |
29473 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
29474 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
29475 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 29476 | #line $LINENO "configure" |
e6cc62c6 VS |
29477 | /* confdefs.h. */ |
29478 | _ACEOF | |
29479 | cat confdefs.h >>conftest.$ac_ext | |
29480 | cat >>conftest.$ac_ext <<_ACEOF | |
29481 | /* end confdefs.h. */ | |
29482 | $ac_includes_default | |
29483 | #include <$ac_header> | |
29484 | _ACEOF | |
29485 | rm -f conftest.$ac_objext | |
29486 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 29487 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
29488 | ac_status=$? |
29489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29490 | (exit $ac_status); } && | |
09d3439c | 29491 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
29492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29493 | (eval $ac_try) 2>&5 | |
29494 | ac_status=$? | |
29495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29496 | (exit $ac_status); }; }; then | |
29497 | ac_header_compiler=yes | |
29498 | else | |
29499 | echo "$as_me: failed program was:" >&5 | |
29500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29501 | ||
29502 | ac_header_compiler=no | |
29503 | fi | |
09d3439c | 29504 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
29505 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29506 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29507 | ||
29508 | # Is the header present? | |
29509 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
29510 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
29511 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 29512 | #line $LINENO "configure" |
e6cc62c6 VS |
29513 | /* confdefs.h. */ |
29514 | _ACEOF | |
29515 | cat confdefs.h >>conftest.$ac_ext | |
29516 | cat >>conftest.$ac_ext <<_ACEOF | |
29517 | /* end confdefs.h. */ | |
29518 | #include <$ac_header> | |
29519 | _ACEOF | |
29520 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29521 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29522 | ac_status=$? | |
29523 | grep -v '^ *+' conftest.er1 >conftest.err | |
29524 | rm -f conftest.er1 | |
29525 | cat conftest.err >&5 | |
29526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29527 | (exit $ac_status); } >/dev/null; then | |
29528 | if test -s conftest.err; then | |
29529 | ac_cpp_err=$ac_c_preproc_warn_flag | |
29530 | else | |
29531 | ac_cpp_err= | |
29532 | fi | |
29533 | else | |
29534 | ac_cpp_err=yes | |
29535 | fi | |
29536 | if test -z "$ac_cpp_err"; then | |
29537 | ac_header_preproc=yes | |
29538 | else | |
29539 | echo "$as_me: failed program was:" >&5 | |
29540 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29541 | ||
29542 | ac_header_preproc=no | |
29543 | fi | |
29544 | rm -f conftest.err conftest.$ac_ext | |
29545 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29546 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29547 | ||
29548 | # So? What about this header? | |
09d3439c VZ |
29549 | case $ac_header_compiler:$ac_header_preproc in |
29550 | yes:no ) | |
e6cc62c6 VS |
29551 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
29552 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
29553 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
29554 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29555 | ( | |
29556 | cat <<\_ASBOX | |
29557 | ## ------------------------------------ ## | |
29558 | ## Report this to bug-autoconf@gnu.org. ## | |
29559 | ## ------------------------------------ ## | |
29560 | _ASBOX | |
29561 | ) | | |
29562 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 29563 | ;; |
09d3439c | 29564 | no:yes ) |
e6cc62c6 VS |
29565 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
29566 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
29567 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
29568 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
29569 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
29570 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29571 | ( | |
29572 | cat <<\_ASBOX | |
09d3439c VZ |
29573 | ## ------------------------------------ ## |
29574 | ## Report this to bug-autoconf@gnu.org. ## | |
29575 | ## ------------------------------------ ## | |
e6cc62c6 VS |
29576 | _ASBOX |
29577 | ) | | |
29578 | sed "s/^/$as_me: WARNING: /" >&2 | |
29579 | ;; | |
29580 | esac | |
29581 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29582 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29583 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29585 | else | |
09d3439c | 29586 | eval "$as_ac_Header=$ac_header_preproc" |
13111b2a | 29587 | fi |
e6cc62c6 VS |
29588 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
29589 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29590 | ||
10f2d63a | 29591 | fi |
e6cc62c6 VS |
29592 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
29593 | cat >>confdefs.h <<_ACEOF | |
29594 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29595 | _ACEOF | |
29596 | ||
f6bcfd97 | 29597 | fi |
e6cc62c6 | 29598 | |
4f14bcd8 | 29599 | done |
f6bcfd97 | 29600 | |
009fead0 | 29601 | if test "$ac_cv_header_sched_h" = "yes"; then |
e6cc62c6 VS |
29602 | echo "$as_me:$LINENO: checking for sched_yield" >&5 |
29603 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
29604 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
29605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29606 | else | |
29607 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 29608 | #line $LINENO "configure" |
e6cc62c6 VS |
29609 | /* confdefs.h. */ |
29610 | _ACEOF | |
29611 | cat confdefs.h >>conftest.$ac_ext | |
29612 | cat >>conftest.$ac_ext <<_ACEOF | |
29613 | /* end confdefs.h. */ | |
009fead0 | 29614 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29615 | which can conflict with char sched_yield (); below. |
29616 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29617 | <limits.h> exists even on freestanding compilers. */ | |
29618 | #ifdef __STDC__ | |
29619 | # include <limits.h> | |
29620 | #else | |
29621 | # include <assert.h> | |
29622 | #endif | |
4f14bcd8 | 29623 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29624 | #ifdef __cplusplus |
29625 | extern "C" | |
29626 | { | |
29627 | #endif | |
4f14bcd8 | 29628 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29629 | builtin and then its argument prototype would still apply. */ |
29630 | char sched_yield (); | |
009fead0 VZ |
29631 | /* The GNU C library defines this for functions which it implements |
29632 | to always fail with ENOSYS. Some functions are actually named | |
29633 | something starting with __ and the normal name is an alias. */ | |
29634 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
29635 | choke me | |
29636 | #else | |
e6cc62c6 VS |
29637 | char (*f) () = sched_yield; |
29638 | #endif | |
29639 | #ifdef __cplusplus | |
29640 | } | |
009fead0 VZ |
29641 | #endif |
29642 | ||
e6cc62c6 VS |
29643 | int |
29644 | main () | |
29645 | { | |
29646 | return f != sched_yield; | |
29647 | ; | |
29648 | return 0; | |
29649 | } | |
29650 | _ACEOF | |
29651 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 29653 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29654 | ac_status=$? |
29655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29656 | (exit $ac_status); } && | |
09d3439c | 29657 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29659 | (eval $ac_try) 2>&5 | |
29660 | ac_status=$? | |
29661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29662 | (exit $ac_status); }; }; then | |
29663 | ac_cv_func_sched_yield=yes | |
29664 | else | |
29665 | echo "$as_me: failed program was:" >&5 | |
29666 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29667 | ||
29668 | ac_cv_func_sched_yield=no | |
29669 | fi | |
09d3439c | 29670 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29671 | fi |
29672 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
29673 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
29674 | if test $ac_cv_func_sched_yield = yes; then | |
29675 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29676 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29677 | _ACEOF |
10f2d63a | 29678 | |
4f14bcd8 | 29679 | else |
009fead0 | 29680 | |
e6cc62c6 VS |
29681 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 |
29682 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
29683 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
29684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4f14bcd8 | 29685 | else |
e6cc62c6 | 29686 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29687 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 29688 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 29689 | #line $LINENO "configure" |
e6cc62c6 VS |
29690 | /* confdefs.h. */ |
29691 | _ACEOF | |
29692 | cat confdefs.h >>conftest.$ac_ext | |
29693 | cat >>conftest.$ac_ext <<_ACEOF | |
29694 | /* end confdefs.h. */ | |
29695 | ||
4f14bcd8 | 29696 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29697 | #ifdef __cplusplus |
29698 | extern "C" | |
29699 | #endif | |
4f14bcd8 | 29700 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29701 | builtin and then its argument prototype would still apply. */ |
29702 | char sched_yield (); | |
29703 | int | |
29704 | main () | |
29705 | { | |
29706 | sched_yield (); | |
29707 | ; | |
29708 | return 0; | |
29709 | } | |
29710 | _ACEOF | |
29711 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29712 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 29713 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29714 | ac_status=$? |
29715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29716 | (exit $ac_status); } && | |
09d3439c | 29717 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29718 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29719 | (eval $ac_try) 2>&5 | |
29720 | ac_status=$? | |
29721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29722 | (exit $ac_status); }; }; then | |
29723 | ac_cv_lib_posix4_sched_yield=yes | |
29724 | else | |
29725 | echo "$as_me: failed program was:" >&5 | |
29726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29727 | ||
29728 | ac_cv_lib_posix4_sched_yield=no | |
29729 | fi | |
09d3439c | 29730 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29731 | LIBS=$ac_check_lib_save_LIBS |
29732 | fi | |
29733 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
29734 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
29735 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
29736 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 29737 | #define HAVE_SCHED_YIELD 1 |
e6cc62c6 | 29738 | _ACEOF |
3d63bc3a | 29739 | POSIX4_LINK=" -lposix4" |
4f14bcd8 | 29740 | else |
e6cc62c6 VS |
29741 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 |
29742 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
29743 | ||
54276ccf VZ |
29744 | fi |
29745 | ||
e6cc62c6 VS |
29746 | |
29747 | ||
4f14bcd8 | 29748 | fi |
698dcdb6 | 29749 | |
009fead0 | 29750 | fi |
10f2d63a | 29751 | |
7274f1c7 | 29752 | HAVE_PRIOR_FUNCS=0 |
e6cc62c6 VS |
29753 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 |
29754 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
29755 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
29756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29757 | else | |
29758 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 29759 | #line $LINENO "configure" |
e6cc62c6 VS |
29760 | /* confdefs.h. */ |
29761 | _ACEOF | |
29762 | cat confdefs.h >>conftest.$ac_ext | |
29763 | cat >>conftest.$ac_ext <<_ACEOF | |
29764 | /* end confdefs.h. */ | |
009fead0 | 29765 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29766 | which can conflict with char pthread_attr_getschedpolicy (); below. |
29767 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29768 | <limits.h> exists even on freestanding compilers. */ | |
29769 | #ifdef __STDC__ | |
29770 | # include <limits.h> | |
29771 | #else | |
29772 | # include <assert.h> | |
29773 | #endif | |
4f14bcd8 | 29774 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29775 | #ifdef __cplusplus |
29776 | extern "C" | |
29777 | { | |
29778 | #endif | |
4f14bcd8 | 29779 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29780 | builtin and then its argument prototype would still apply. */ |
29781 | char pthread_attr_getschedpolicy (); | |
009fead0 VZ |
29782 | /* The GNU C library defines this for functions which it implements |
29783 | to always fail with ENOSYS. Some functions are actually named | |
29784 | something starting with __ and the normal name is an alias. */ | |
29785 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
29786 | choke me | |
29787 | #else | |
e6cc62c6 VS |
29788 | char (*f) () = pthread_attr_getschedpolicy; |
29789 | #endif | |
29790 | #ifdef __cplusplus | |
29791 | } | |
009fead0 VZ |
29792 | #endif |
29793 | ||
e6cc62c6 VS |
29794 | int |
29795 | main () | |
29796 | { | |
29797 | return f != pthread_attr_getschedpolicy; | |
29798 | ; | |
29799 | return 0; | |
29800 | } | |
29801 | _ACEOF | |
29802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 29804 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29805 | ac_status=$? |
29806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29807 | (exit $ac_status); } && | |
09d3439c | 29808 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29810 | (eval $ac_try) 2>&5 | |
29811 | ac_status=$? | |
29812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29813 | (exit $ac_status); }; }; then | |
29814 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
29815 | else | |
29816 | echo "$as_me: failed program was:" >&5 | |
29817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29818 | ||
29819 | ac_cv_func_pthread_attr_getschedpolicy=no | |
29820 | fi | |
09d3439c | 29821 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29822 | fi |
29823 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
29824 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
29825 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
29826 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
29827 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
29828 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
29829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29830 | else | |
29831 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 29832 | #line $LINENO "configure" |
e6cc62c6 VS |
29833 | /* confdefs.h. */ |
29834 | _ACEOF | |
29835 | cat confdefs.h >>conftest.$ac_ext | |
29836 | cat >>conftest.$ac_ext <<_ACEOF | |
29837 | /* end confdefs.h. */ | |
a0b9e27f | 29838 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29839 | which can conflict with char pthread_attr_setschedparam (); below. |
29840 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29841 | <limits.h> exists even on freestanding compilers. */ | |
29842 | #ifdef __STDC__ | |
29843 | # include <limits.h> | |
29844 | #else | |
29845 | # include <assert.h> | |
29846 | #endif | |
422107f9 | 29847 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29848 | #ifdef __cplusplus |
29849 | extern "C" | |
29850 | { | |
29851 | #endif | |
422107f9 | 29852 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29853 | builtin and then its argument prototype would still apply. */ |
29854 | char pthread_attr_setschedparam (); | |
009fead0 VZ |
29855 | /* The GNU C library defines this for functions which it implements |
29856 | to always fail with ENOSYS. Some functions are actually named | |
29857 | something starting with __ and the normal name is an alias. */ | |
29858 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
29859 | choke me | |
29860 | #else | |
e6cc62c6 VS |
29861 | char (*f) () = pthread_attr_setschedparam; |
29862 | #endif | |
29863 | #ifdef __cplusplus | |
29864 | } | |
009fead0 VZ |
29865 | #endif |
29866 | ||
e6cc62c6 VS |
29867 | int |
29868 | main () | |
29869 | { | |
29870 | return f != pthread_attr_setschedparam; | |
29871 | ; | |
29872 | return 0; | |
29873 | } | |
29874 | _ACEOF | |
29875 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29876 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 29877 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29878 | ac_status=$? |
29879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29880 | (exit $ac_status); } && | |
09d3439c | 29881 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29883 | (eval $ac_try) 2>&5 | |
29884 | ac_status=$? | |
29885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29886 | (exit $ac_status); }; }; then | |
29887 | ac_cv_func_pthread_attr_setschedparam=yes | |
29888 | else | |
29889 | echo "$as_me: failed program was:" >&5 | |
29890 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29891 | ||
29892 | ac_cv_func_pthread_attr_setschedparam=no | |
29893 | fi | |
09d3439c | 29894 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29895 | fi |
29896 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
29897 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
29898 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
29899 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
29900 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
29901 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
29902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29903 | else | |
29904 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 29905 | #line $LINENO "configure" |
e6cc62c6 VS |
29906 | /* confdefs.h. */ |
29907 | _ACEOF | |
29908 | cat confdefs.h >>conftest.$ac_ext | |
29909 | cat >>conftest.$ac_ext <<_ACEOF | |
29910 | /* end confdefs.h. */ | |
ef33c576 | 29911 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
29912 | which can conflict with char sched_get_priority_max (); below. |
29913 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29914 | <limits.h> exists even on freestanding compilers. */ | |
29915 | #ifdef __STDC__ | |
29916 | # include <limits.h> | |
29917 | #else | |
29918 | # include <assert.h> | |
29919 | #endif | |
4f14bcd8 | 29920 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29921 | #ifdef __cplusplus |
29922 | extern "C" | |
29923 | { | |
29924 | #endif | |
4f14bcd8 | 29925 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29926 | builtin and then its argument prototype would still apply. */ |
29927 | char sched_get_priority_max (); | |
009fead0 VZ |
29928 | /* The GNU C library defines this for functions which it implements |
29929 | to always fail with ENOSYS. Some functions are actually named | |
29930 | something starting with __ and the normal name is an alias. */ | |
29931 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
29932 | choke me | |
29933 | #else | |
e6cc62c6 VS |
29934 | char (*f) () = sched_get_priority_max; |
29935 | #endif | |
29936 | #ifdef __cplusplus | |
29937 | } | |
009fead0 VZ |
29938 | #endif |
29939 | ||
e6cc62c6 VS |
29940 | int |
29941 | main () | |
29942 | { | |
29943 | return f != sched_get_priority_max; | |
29944 | ; | |
29945 | return 0; | |
29946 | } | |
29947 | _ACEOF | |
29948 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29949 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 29950 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
29951 | ac_status=$? |
29952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29953 | (exit $ac_status); } && | |
09d3439c | 29954 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
29955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29956 | (eval $ac_try) 2>&5 | |
29957 | ac_status=$? | |
29958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29959 | (exit $ac_status); }; }; then | |
29960 | ac_cv_func_sched_get_priority_max=yes | |
29961 | else | |
29962 | echo "$as_me: failed program was:" >&5 | |
29963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29964 | ||
29965 | ac_cv_func_sched_get_priority_max=no | |
29966 | fi | |
09d3439c | 29967 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
29968 | fi |
29969 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
29970 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
29971 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
4f14bcd8 GD |
29972 | HAVE_PRIOR_FUNCS=1 |
29973 | else | |
e6cc62c6 VS |
29974 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 |
29975 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
29976 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
29977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
422107f9 | 29978 | else |
e6cc62c6 | 29979 | ac_check_lib_save_LIBS=$LIBS |
4f14bcd8 | 29980 | LIBS="-lposix4 $LIBS" |
e6cc62c6 | 29981 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 29982 | #line $LINENO "configure" |
e6cc62c6 VS |
29983 | /* confdefs.h. */ |
29984 | _ACEOF | |
29985 | cat confdefs.h >>conftest.$ac_ext | |
29986 | cat >>conftest.$ac_ext <<_ACEOF | |
29987 | /* end confdefs.h. */ | |
29988 | ||
422107f9 | 29989 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
29990 | #ifdef __cplusplus |
29991 | extern "C" | |
29992 | #endif | |
422107f9 | 29993 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
29994 | builtin and then its argument prototype would still apply. */ |
29995 | char sched_get_priority_max (); | |
29996 | int | |
29997 | main () | |
29998 | { | |
29999 | sched_get_priority_max (); | |
30000 | ; | |
30001 | return 0; | |
30002 | } | |
30003 | _ACEOF | |
30004 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 30006 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
30007 | ac_status=$? |
30008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30009 | (exit $ac_status); } && | |
09d3439c | 30010 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
30011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30012 | (eval $ac_try) 2>&5 | |
30013 | ac_status=$? | |
30014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30015 | (exit $ac_status); }; }; then | |
30016 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
30017 | else | |
30018 | echo "$as_me: failed program was:" >&5 | |
30019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30020 | ||
30021 | ac_cv_lib_posix4_sched_get_priority_max=no | |
30022 | fi | |
09d3439c | 30023 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
30024 | LIBS=$ac_check_lib_save_LIBS |
30025 | fi | |
30026 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
30027 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
30028 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
698dcdb6 | 30029 | |
7274f1c7 RL |
30030 | HAVE_PRIOR_FUNCS=1 |
30031 | POSIX4_LINK=" -lposix4" | |
e6cc62c6 | 30032 | |
4f14bcd8 | 30033 | fi |
463abc64 | 30034 | |
e6cc62c6 | 30035 | |
328a083c | 30036 | fi |
463abc64 | 30037 | |
e6cc62c6 | 30038 | |
7b4a847f | 30039 | fi |
579d8138 | 30040 | |
e6cc62c6 | 30041 | |
5c6fa7d2 | 30042 | fi |
52127426 | 30043 | |
8284b0c5 | 30044 | |
7274f1c7 | 30045 | if test "$HAVE_PRIOR_FUNCS" = 1; then |
e6cc62c6 | 30046 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30047 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 |
e6cc62c6 | 30048 | _ACEOF |
463abc64 | 30049 | |
7274f1c7 | 30050 | else |
e6cc62c6 VS |
30051 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 |
30052 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
7274f1c7 | 30053 | fi |
463abc64 | 30054 | |
e6cc62c6 VS |
30055 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 |
30056 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
30057 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
30058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30059 | else | |
30060 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 30061 | #line $LINENO "configure" |
e6cc62c6 VS |
30062 | /* confdefs.h. */ |
30063 | _ACEOF | |
30064 | cat confdefs.h >>conftest.$ac_ext | |
30065 | cat >>conftest.$ac_ext <<_ACEOF | |
30066 | /* end confdefs.h. */ | |
009fead0 | 30067 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30068 | which can conflict with char pthread_cancel (); below. |
30069 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30070 | <limits.h> exists even on freestanding compilers. */ | |
30071 | #ifdef __STDC__ | |
30072 | # include <limits.h> | |
30073 | #else | |
30074 | # include <assert.h> | |
30075 | #endif | |
422107f9 | 30076 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30077 | #ifdef __cplusplus |
30078 | extern "C" | |
30079 | { | |
30080 | #endif | |
422107f9 | 30081 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30082 | builtin and then its argument prototype would still apply. */ |
30083 | char pthread_cancel (); | |
009fead0 VZ |
30084 | /* The GNU C library defines this for functions which it implements |
30085 | to always fail with ENOSYS. Some functions are actually named | |
30086 | something starting with __ and the normal name is an alias. */ | |
30087 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
30088 | choke me | |
30089 | #else | |
e6cc62c6 VS |
30090 | char (*f) () = pthread_cancel; |
30091 | #endif | |
30092 | #ifdef __cplusplus | |
30093 | } | |
009fead0 VZ |
30094 | #endif |
30095 | ||
e6cc62c6 VS |
30096 | int |
30097 | main () | |
30098 | { | |
30099 | return f != pthread_cancel; | |
30100 | ; | |
30101 | return 0; | |
30102 | } | |
30103 | _ACEOF | |
30104 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30105 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 30106 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
30107 | ac_status=$? |
30108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30109 | (exit $ac_status); } && | |
09d3439c | 30110 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
30111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30112 | (eval $ac_try) 2>&5 | |
30113 | ac_status=$? | |
30114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30115 | (exit $ac_status); }; }; then | |
30116 | ac_cv_func_pthread_cancel=yes | |
30117 | else | |
30118 | echo "$as_me: failed program was:" >&5 | |
30119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30120 | ||
30121 | ac_cv_func_pthread_cancel=no | |
30122 | fi | |
09d3439c | 30123 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
30124 | fi |
30125 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
30126 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
30127 | if test $ac_cv_func_pthread_cancel = yes; then | |
30128 | cat >>confdefs.h <<\_ACEOF | |
4f14bcd8 | 30129 | #define HAVE_PTHREAD_CANCEL 1 |
e6cc62c6 | 30130 | _ACEOF |
4f14bcd8 | 30131 | |
698dcdb6 | 30132 | else |
e6cc62c6 VS |
30133 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 |
30134 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
422107f9 VZ |
30135 | fi |
30136 | ||
5c6fa7d2 | 30137 | |
4f14bcd8 | 30138 | |
e6cc62c6 VS |
30139 | |
30140 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
30141 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
30142 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
30143 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
698dcdb6 | 30144 | else |
e6cc62c6 VS |
30145 | |
30146 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 30147 | #line $LINENO "configure" |
e6cc62c6 VS |
30148 | /* confdefs.h. */ |
30149 | _ACEOF | |
30150 | cat confdefs.h >>conftest.$ac_ext | |
30151 | cat >>conftest.$ac_ext <<_ACEOF | |
30152 | /* end confdefs.h. */ | |
4f14bcd8 | 30153 | #include <pthread.h> |
e6cc62c6 VS |
30154 | int |
30155 | main () | |
30156 | { | |
4f14bcd8 | 30157 | |
7274f1c7 RL |
30158 | pthread_mutexattr_t attr; |
30159 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
e6cc62c6 VS |
30160 | |
30161 | ; | |
30162 | return 0; | |
30163 | } | |
30164 | _ACEOF | |
30165 | rm -f conftest.$ac_objext | |
30166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 30167 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
30168 | ac_status=$? |
30169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30170 | (exit $ac_status); } && | |
09d3439c | 30171 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
30172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30173 | (eval $ac_try) 2>&5 | |
30174 | ac_status=$? | |
30175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30176 | (exit $ac_status); }; }; then | |
30177 | ||
7274f1c7 | 30178 | wx_cv_type_pthread_mutexattr_t=yes |
e6cc62c6 | 30179 | |
3fed1840 | 30180 | else |
e6cc62c6 VS |
30181 | echo "$as_me: failed program was:" >&5 |
30182 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30183 | ||
30184 | ||
7274f1c7 | 30185 | wx_cv_type_pthread_mutexattr_t=no |
e6cc62c6 VS |
30186 | |
30187 | ||
247f5006 | 30188 | fi |
09d3439c | 30189 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30190 | |
e6cc62c6 VS |
30191 | fi |
30192 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
30193 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
4f14bcd8 | 30194 | |
7274f1c7 | 30195 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then |
e6cc62c6 | 30196 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30197 | #define HAVE_PTHREAD_MUTEXATTR_T 1 |
e6cc62c6 | 30198 | _ACEOF |
4f14bcd8 | 30199 | |
7274f1c7 | 30200 | else |
e6cc62c6 VS |
30201 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 |
30202 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
30203 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
30204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30205 | else | |
30206 | ||
30207 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 30208 | #line $LINENO "configure" |
e6cc62c6 VS |
30209 | /* confdefs.h. */ |
30210 | _ACEOF | |
30211 | cat confdefs.h >>conftest.$ac_ext | |
30212 | cat >>conftest.$ac_ext <<_ACEOF | |
30213 | /* end confdefs.h. */ | |
4f14bcd8 | 30214 | #include <pthread.h> |
e6cc62c6 VS |
30215 | int |
30216 | main () | |
30217 | { | |
4f14bcd8 | 30218 | |
7274f1c7 | 30219 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; |
e6cc62c6 VS |
30220 | |
30221 | ; | |
30222 | return 0; | |
30223 | } | |
30224 | _ACEOF | |
30225 | rm -f conftest.$ac_objext | |
30226 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 30227 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
30228 | ac_status=$? |
30229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30230 | (exit $ac_status); } && | |
09d3439c | 30231 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
30232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30233 | (eval $ac_try) 2>&5 | |
30234 | ac_status=$? | |
30235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30236 | (exit $ac_status); }; }; then | |
30237 | ||
7274f1c7 | 30238 | wx_cv_type_pthread_rec_mutex_init=yes |
e6cc62c6 | 30239 | |
698dcdb6 | 30240 | else |
e6cc62c6 VS |
30241 | echo "$as_me: failed program was:" >&5 |
30242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30243 | ||
30244 | ||
7274f1c7 | 30245 | wx_cv_type_pthread_rec_mutex_init=no |
e6cc62c6 VS |
30246 | |
30247 | ||
247f5006 | 30248 | fi |
09d3439c | 30249 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30250 | |
e6cc62c6 VS |
30251 | fi |
30252 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
30253 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
7274f1c7 | 30254 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then |
e6cc62c6 | 30255 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30256 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 |
e6cc62c6 | 30257 | _ACEOF |
3fed1840 | 30258 | |
7274f1c7 | 30259 | else |
e6cc62c6 VS |
30260 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 |
30261 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
7274f1c7 RL |
30262 | fi |
30263 | fi | |
7274f1c7 | 30264 | fi |
3fed1840 | 30265 | |
a0b9e27f MB |
30266 | else |
30267 | if test "$wxUSE_THREADS" = "yes" ; then | |
30268 | case "${host}" in | |
30269 | *-*-mingw32* ) | |
e6cc62c6 VS |
30270 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 |
30271 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
30272 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
30273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ca8e52b3 | 30274 | else |
e6cc62c6 | 30275 | |
ca8e52b3 VZ |
30276 | CFLAGS_OLD="$CFLAGS" |
30277 | CFLAGS="$CFLAGS -mthreads" | |
e6cc62c6 | 30278 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 30279 | #line $LINENO "configure" |
e6cc62c6 VS |
30280 | /* confdefs.h. */ |
30281 | _ACEOF | |
30282 | cat confdefs.h >>conftest.$ac_ext | |
30283 | cat >>conftest.$ac_ext <<_ACEOF | |
30284 | /* end confdefs.h. */ | |
30285 | ||
30286 | int | |
30287 | main () | |
30288 | { | |
ca8e52b3 | 30289 | |
e6cc62c6 VS |
30290 | ; |
30291 | return 0; | |
30292 | } | |
30293 | _ACEOF | |
30294 | rm -f conftest.$ac_objext | |
30295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 30296 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
30297 | ac_status=$? |
30298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30299 | (exit $ac_status); } && | |
09d3439c | 30300 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
30301 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30302 | (eval $ac_try) 2>&5 | |
30303 | ac_status=$? | |
30304 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30305 | (exit $ac_status); }; }; then | |
ca8e52b3 VZ |
30306 | wx_cv_cflags_mthread=yes |
30307 | else | |
e6cc62c6 VS |
30308 | echo "$as_me: failed program was:" >&5 |
30309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30310 | ||
30311 | wx_cv_cflags_mthread=no | |
30312 | ||
ca8e52b3 | 30313 | fi |
09d3439c | 30314 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 30315 | |
ca8e52b3 | 30316 | |
e6cc62c6 VS |
30317 | fi |
30318 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
30319 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
ca8e52b3 VZ |
30320 | |
30321 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
30322 | CXXFLAGS="$CXXFLAGS -mthreads" | |
30323 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
30324 | LDFLAGS="$LDFLAGS -mthreads" | |
30325 | else | |
30326 | CFLAGS="$CFLAGS_OLD" | |
30327 | fi | |
a0b9e27f | 30328 | ;; |
73d617c9 MB |
30329 | *-pc-os2*emx ) |
30330 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
30331 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
30332 | LDFLAGS="$LDFLAGS -Zmt" | |
30333 | ;; | |
a0b9e27f MB |
30334 | esac |
30335 | fi | |
4f14bcd8 GD |
30336 | fi |
30337 | ||
30338 | if test "$wxUSE_THREADS" = "yes"; then | |
e6cc62c6 | 30339 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30340 | #define wxUSE_THREADS 1 |
e6cc62c6 | 30341 | _ACEOF |
7b6058cd | 30342 | |
8284b0c5 | 30343 | |
4f14bcd8 | 30344 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" |
698dcdb6 | 30345 | else |
4f14bcd8 | 30346 | if test "$ac_cv_func_strtok_r" = "yes"; then |
e6cc62c6 VS |
30347 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 |
30348 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
4f14bcd8 GD |
30349 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then |
30350 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
e6cc62c6 VS |
30351 | echo "$as_me:$LINENO: result: yes" >&5 |
30352 | echo "${ECHO_T}yes" >&6 | |
4f14bcd8 | 30353 | else |
e6cc62c6 VS |
30354 | echo "$as_me:$LINENO: result: no" >&5 |
30355 | echo "${ECHO_T}no" >&6 | |
4f14bcd8 GD |
30356 | fi |
30357 | fi | |
30358 | fi | |
30359 | ||
30360 | if test "$WXGTK20" = 1 ; then | |
e6cc62c6 | 30361 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30362 | #define __WXGTK20__ $WXGTK20 |
e6cc62c6 | 30363 | _ACEOF |
4f14bcd8 GD |
30364 | |
30365 | WXGTK12=1 | |
10f2d63a | 30366 | fi |
4f14bcd8 GD |
30367 | |
30368 | if test "$WXGTK12" = 1 ; then | |
e6cc62c6 | 30369 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30370 | #define __WXGTK12__ $WXGTK12 |
e6cc62c6 | 30371 | _ACEOF |
4f14bcd8 | 30372 | |
10f2d63a | 30373 | fi |
698dcdb6 | 30374 | |
4f14bcd8 | 30375 | if test "$WXGTK127" = 1 ; then |
e6cc62c6 | 30376 | cat >>confdefs.h <<_ACEOF |
4f14bcd8 | 30377 | #define __WXGTK127__ $WXGTK127 |
e6cc62c6 | 30378 | _ACEOF |
4f14bcd8 | 30379 | |
698dcdb6 | 30380 | fi |
10f2d63a | 30381 | |
4f14bcd8 GD |
30382 | WXDEBUG= |
30383 | ||
30384 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
30385 | WXDEBUG="-g" | |
30386 | wxUSE_OPTIMISE=no | |
698dcdb6 | 30387 | fi |
4f14bcd8 GD |
30388 | |
30389 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
30390 | wxUSE_DEBUG_INFO=yes | |
30391 | WXDEBUG="-ggdb" | |
10f2d63a VZ |
30392 | fi |
30393 | ||
4f14bcd8 | 30394 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then |
e6cc62c6 | 30395 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30396 | #define WXDEBUG 1 |
e6cc62c6 | 30397 | _ACEOF |
4f14bcd8 GD |
30398 | |
30399 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
10f2d63a | 30400 | else |
4f14bcd8 GD |
30401 | if test "$wxUSE_GTK" = 1 ; then |
30402 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
30403 | fi | |
30404 | fi | |
30405 | ||
30406 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
e6cc62c6 | 30407 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30408 | #define wxUSE_MEMORY_TRACING 1 |
e6cc62c6 | 30409 | _ACEOF |
4f14bcd8 | 30410 | |
e6cc62c6 | 30411 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30412 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 |
e6cc62c6 | 30413 | _ACEOF |
4f14bcd8 | 30414 | |
e6cc62c6 | 30415 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30416 | #define wxUSE_DEBUG_NEW_ALWAYS 1 |
e6cc62c6 | 30417 | _ACEOF |
4f14bcd8 GD |
30418 | |
30419 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
30420 | fi | |
30421 | ||
30422 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
3d63bc3a | 30423 | DMALLOC_LIBS="-ldmalloc" |
4f14bcd8 GD |
30424 | fi |
30425 | ||
30426 | PROFILE= | |
30427 | if test "$wxUSE_PROFILE" = "yes" ; then | |
3d63bc3a | 30428 | PROFILE=" -pg" |
10f2d63a VZ |
30429 | fi |
30430 | ||
009fead0 VZ |
30431 | CODE_GEN_FLAGS= |
30432 | CODE_GEN_FLAGS_CXX= | |
88e30f2b | 30433 | if test "$GCC" = "yes" ; then |
4f14bcd8 GD |
30434 | if test "$wxUSE_NO_RTTI" = "yes" ; then |
30435 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
3a922bb4 | 30436 | fi |
4f14bcd8 GD |
30437 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then |
30438 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
30439 | fi | |
30440 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
30441 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
30442 | fi | |
1d1b75ac | 30443 | |
2b5f62a0 | 30444 | case "${host}" in |
1d1b75ac VZ |
30445 | powerpc*-*-aix* ) |
30446 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
30447 | ;; | |
2b5f62a0 VZ |
30448 | *-hppa* ) |
30449 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
30450 | ;; | |
1d1b75ac | 30451 | esac |
4f14bcd8 GD |
30452 | fi |
30453 | ||
af7b5345 | 30454 | OPTIMISE= |
4f14bcd8 | 30455 | if test "$wxUSE_OPTIMISE" = "no" ; then |
af7b5345 VZ |
30456 | if test "$GCC" = yes ; then |
30457 | OPTIMISE="-O0" | |
30458 | fi | |
4f14bcd8 GD |
30459 | else |
30460 | if test "$GCC" = yes ; then | |
30461 | OPTIMISE="-O2" | |
af7b5345 VZ |
30462 | |
30463 | case "${host}" in | |
4f14bcd8 GD |
30464 | i586-*-*|i686-*-* ) |
30465 | OPTIMISE="${OPTIMISE} " | |
30466 | ;; | |
30467 | esac | |
30468 | else | |
30469 | OPTIMISE="-O" | |
30470 | fi | |
30471 | fi | |
30472 | ||
8d90d2f2 | 30473 | |
65d8ef1e | 30474 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then |
e6cc62c6 | 30475 | cat >>confdefs.h <<\_ACEOF |
4f14bcd8 | 30476 | #define WXWIN_COMPATIBILITY_2_2 1 |
e6cc62c6 | 30477 | _ACEOF |
4f14bcd8 | 30478 | |
8d90d2f2 VZ |
30479 | |
30480 | WXWIN_COMPATIBILITY_2_4="yes" | |
10f2d63a VZ |
30481 | fi |
30482 | ||
65d8ef1e | 30483 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then |
e6cc62c6 | 30484 | cat >>confdefs.h <<\_ACEOF |
65d8ef1e | 30485 | #define WXWIN_COMPATIBILITY_2_4 1 |
e6cc62c6 | 30486 | _ACEOF |
65d8ef1e VS |
30487 | |
30488 | fi | |
30489 | ||
8284b0c5 | 30490 | |
10f2d63a | 30491 | if test "$wxUSE_GUI" = "yes"; then |
e6cc62c6 | 30492 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30493 | #define wxUSE_GUI 1 |
e6cc62c6 | 30494 | _ACEOF |
10f2d63a | 30495 | |
8284b0c5 | 30496 | |
10f2d63a | 30497 | else |
e6cc62c6 | 30498 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30499 | #define wxUSE_NOGUI 1 |
e6cc62c6 | 30500 | _ACEOF |
10f2d63a VZ |
30501 | |
30502 | fi | |
30503 | ||
8284b0c5 | 30504 | |
10f2d63a | 30505 | if test "$wxUSE_UNIX" = "yes"; then |
e6cc62c6 | 30506 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30507 | #define wxUSE_UNIX 1 |
e6cc62c6 | 30508 | _ACEOF |
10f2d63a VZ |
30509 | |
30510 | fi | |
30511 | ||
8284b0c5 | 30512 | |
df5168c4 MB |
30513 | if test "$wxUSE_STL" = "yes"; then |
30514 | cat >>confdefs.h <<\_ACEOF | |
30515 | #define wxUSE_STL 1 | |
30516 | _ACEOF | |
30517 | ||
30518 | fi | |
30519 | ||
10f2d63a | 30520 | if test "$wxUSE_APPLE_IEEE" = "yes"; then |
e6cc62c6 | 30521 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30522 | #define wxUSE_APPLE_IEEE 1 |
e6cc62c6 | 30523 | _ACEOF |
10f2d63a VZ |
30524 | |
30525 | fi | |
30526 | ||
1e6feb95 | 30527 | if test "$wxUSE_TIMER" = "yes"; then |
e6cc62c6 | 30528 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30529 | #define wxUSE_TIMER 1 |
e6cc62c6 | 30530 | _ACEOF |
1e6feb95 VZ |
30531 | |
30532 | fi | |
30533 | ||
10f2d63a | 30534 | if test "$wxUSE_WAVE" = "yes"; then |
e6cc62c6 | 30535 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30536 | #define wxUSE_WAVE 1 |
e6cc62c6 | 30537 | _ACEOF |
10f2d63a VZ |
30538 | |
30539 | fi | |
30540 | ||
1e6feb95 | 30541 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then |
e6cc62c6 | 30542 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30543 | #define wxUSE_CMDLINE_PARSER 1 |
e6cc62c6 | 30544 | _ACEOF |
1e6feb95 VZ |
30545 | |
30546 | fi | |
30547 | ||
30548 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
e6cc62c6 | 30549 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30550 | #define wxUSE_STOPWATCH 1 |
e6cc62c6 | 30551 | _ACEOF |
1e6feb95 VZ |
30552 | |
30553 | fi | |
30554 | ||
30555 | if test "$wxUSE_DATETIME" = "yes"; then | |
e6cc62c6 | 30556 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30557 | #define wxUSE_DATETIME 1 |
e6cc62c6 | 30558 | _ACEOF |
1e6feb95 VZ |
30559 | |
30560 | fi | |
30561 | ||
10f2d63a | 30562 | if test "$wxUSE_FILE" = "yes"; then |
e6cc62c6 | 30563 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30564 | #define wxUSE_FILE 1 |
e6cc62c6 | 30565 | _ACEOF |
10f2d63a VZ |
30566 | |
30567 | fi | |
30568 | ||
1e6feb95 | 30569 | if test "$wxUSE_FFILE" = "yes"; then |
e6cc62c6 | 30570 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 30571 | #define wxUSE_FFILE 1 |
e6cc62c6 | 30572 | _ACEOF |
1e6feb95 VZ |
30573 | |
30574 | fi | |
30575 | ||
24528b0c | 30576 | if test "$wxUSE_FILESYSTEM" = "yes"; then |
e6cc62c6 | 30577 | cat >>confdefs.h <<\_ACEOF |
24528b0c | 30578 | #define wxUSE_FILESYSTEM 1 |
e6cc62c6 | 30579 | _ACEOF |
24528b0c VS |
30580 | |
30581 | fi | |
30582 | ||
10f2d63a | 30583 | if test "$wxUSE_FS_ZIP" = "yes"; then |
e6cc62c6 | 30584 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30585 | #define wxUSE_FS_ZIP 1 |
e6cc62c6 | 30586 | _ACEOF |
10f2d63a VZ |
30587 | |
30588 | fi | |
30589 | ||
30590 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
e6cc62c6 | 30591 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30592 | #define wxUSE_ZIPSTREAM 1 |
e6cc62c6 | 30593 | _ACEOF |
10f2d63a VZ |
30594 | |
30595 | fi | |
30596 | ||
7015ef3a VZ |
30597 | if test "$wxUSE_GZSTREAM" = "yes"; then |
30598 | cat >>confdefs.h <<\_ACEOF | |
30599 | #define wxUSE_GZSTREAM 1 | |
30600 | _ACEOF | |
30601 | ||
30602 | fi | |
30603 | ||
eb4efbdc | 30604 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
e6cc62c6 | 30605 | cat >>confdefs.h <<\_ACEOF |
eb4efbdc | 30606 | #define wxUSE_ON_FATAL_EXCEPTION 1 |
e6cc62c6 | 30607 | _ACEOF |
eb4efbdc VZ |
30608 | |
30609 | fi | |
30610 | ||
4f3c5f06 | 30611 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then |
e6cc62c6 | 30612 | cat >>confdefs.h <<\_ACEOF |
4f3c5f06 | 30613 | #define wxUSE_SNGLINST_CHECKER 1 |
e6cc62c6 | 30614 | _ACEOF |
4f3c5f06 VZ |
30615 | |
30616 | fi | |
30617 | ||
10f2d63a | 30618 | if test "$wxUSE_BUSYINFO" = "yes"; then |
e6cc62c6 | 30619 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30620 | #define wxUSE_BUSYINFO 1 |
e6cc62c6 | 30621 | _ACEOF |
10f2d63a VZ |
30622 | |
30623 | fi | |
30624 | ||
30625 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
e6cc62c6 | 30626 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30627 | #define wxUSE_STD_IOSTREAM 1 |
e6cc62c6 | 30628 | _ACEOF |
10f2d63a VZ |
30629 | |
30630 | fi | |
30631 | ||
a3a584a7 | 30632 | if test "$wxUSE_TEXTBUFFER" = "yes"; then |
e6cc62c6 | 30633 | cat >>confdefs.h <<\_ACEOF |
a3a584a7 | 30634 | #define wxUSE_TEXTBUFFER 1 |
e6cc62c6 | 30635 | _ACEOF |
a3a584a7 VZ |
30636 | |
30637 | fi | |
30638 | ||
10f2d63a | 30639 | if test "$wxUSE_TEXTFILE" = "yes"; then |
a3a584a7 | 30640 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then |
e6cc62c6 VS |
30641 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 |
30642 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
10f2d63a | 30643 | else |
e6cc62c6 | 30644 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30645 | #define wxUSE_TEXTFILE 1 |
e6cc62c6 | 30646 | _ACEOF |
10f2d63a VZ |
30647 | |
30648 | fi | |
30649 | fi | |
30650 | ||
30651 | if test "$wxUSE_CONFIG" = "yes" ; then | |
30652 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
e6cc62c6 VS |
30653 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 |
30654 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
10f2d63a | 30655 | else |
e6cc62c6 | 30656 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30657 | #define wxUSE_CONFIG 1 |
e6cc62c6 | 30658 | _ACEOF |
10f2d63a VZ |
30659 | |
30660 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
30661 | fi | |
30662 | fi | |
30663 | ||
30664 | if test "$wxUSE_INTL" = "yes" ; then | |
30665 | if test "$wxUSE_FILE" != "yes"; then | |
e6cc62c6 VS |
30666 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 |
30667 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
10f2d63a | 30668 | else |
e6cc62c6 | 30669 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30670 | #define wxUSE_INTL 1 |
e6cc62c6 | 30671 | _ACEOF |
10f2d63a VZ |
30672 | |
30673 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
f6bcfd97 | 30674 | GUIDIST="$GUIDIST INTL_DIST" |
10f2d63a VZ |
30675 | fi |
30676 | fi | |
30677 | ||
30678 | if test "$wxUSE_LOG" = "yes"; then | |
e6cc62c6 | 30679 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30680 | #define wxUSE_LOG 1 |
e6cc62c6 | 30681 | _ACEOF |
10f2d63a | 30682 | |
8284b0c5 | 30683 | |
d73be714 | 30684 | if test "$wxUSE_LOGGUI" = "yes"; then |
e6cc62c6 | 30685 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30686 | #define wxUSE_LOGGUI 1 |
e6cc62c6 | 30687 | _ACEOF |
d73be714 VZ |
30688 | |
30689 | fi | |
30690 | ||
30691 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
e6cc62c6 | 30692 | cat >>confdefs.h <<\_ACEOF |
d73be714 | 30693 | #define wxUSE_LOGWINDOW 1 |
e6cc62c6 | 30694 | _ACEOF |
69d27ff7 MB |
30695 | |
30696 | fi | |
30697 | ||
30698 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
e6cc62c6 | 30699 | cat >>confdefs.h <<\_ACEOF |
69d27ff7 | 30700 | #define wxUSE_LOG_DIALOG 1 |
e6cc62c6 | 30701 | _ACEOF |
d73be714 VZ |
30702 | |
30703 | fi | |
10f2d63a VZ |
30704 | fi |
30705 | ||
30706 | if test "$wxUSE_LONGLONG" = "yes"; then | |
e6cc62c6 | 30707 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30708 | #define wxUSE_LONGLONG 1 |
e6cc62c6 | 30709 | _ACEOF |
10f2d63a VZ |
30710 | |
30711 | fi | |
30712 | ||
e8f65ba6 | 30713 | if test "$wxUSE_GEOMETRY" = "yes"; then |
e6cc62c6 | 30714 | cat >>confdefs.h <<\_ACEOF |
e8f65ba6 | 30715 | #define wxUSE_GEOMETRY 1 |
e6cc62c6 | 30716 | _ACEOF |
e8f65ba6 RR |
30717 | |
30718 | fi | |
30719 | ||
10f2d63a | 30720 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then |
e6cc62c6 | 30721 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30722 | #define wxUSE_DIALUP_MANAGER 1 |
e6cc62c6 | 30723 | _ACEOF |
10f2d63a | 30724 | |
70f7a477 | 30725 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" |
10f2d63a VZ |
30726 | fi |
30727 | ||
30728 | if test "$wxUSE_STREAMS" = "yes" ; then | |
e6cc62c6 | 30729 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 30730 | #define wxUSE_STREAMS 1 |
e6cc62c6 | 30731 | _ACEOF |
10f2d63a VZ |
30732 | |
30733 | fi | |
30734 | ||
5c6fa7d2 | 30735 | |
8284b0c5 | 30736 | if test "$wxUSE_DATETIME" = "yes"; then |
e6cc62c6 VS |
30737 | |
30738 | for ac_func in strptime | |
83307f33 | 30739 | do |
e6cc62c6 VS |
30740 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30741 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30742 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30743 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30744 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30745 | else | |
30746 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 30747 | #line $LINENO "configure" |
e6cc62c6 VS |
30748 | /* confdefs.h. */ |
30749 | _ACEOF | |
30750 | cat confdefs.h >>conftest.$ac_ext | |
30751 | cat >>conftest.$ac_ext <<_ACEOF | |
30752 | /* end confdefs.h. */ | |
83307f33 | 30753 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30754 | which can conflict with char $ac_func (); below. |
30755 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30756 | <limits.h> exists even on freestanding compilers. */ | |
30757 | #ifdef __STDC__ | |
30758 | # include <limits.h> | |
30759 | #else | |
30760 | # include <assert.h> | |
30761 | #endif | |
83307f33 | 30762 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
30763 | #ifdef __cplusplus |
30764 | extern "C" | |
30765 | { | |
30766 | #endif | |
83307f33 | 30767 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
30768 | builtin and then its argument prototype would still apply. */ |
30769 | char $ac_func (); | |
83307f33 VZ |
30770 | /* The GNU C library defines this for functions which it implements |
30771 | to always fail with ENOSYS. Some functions are actually named | |
30772 | something starting with __ and the normal name is an alias. */ | |
30773 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30774 | choke me | |
30775 | #else | |
e6cc62c6 VS |
30776 | char (*f) () = $ac_func; |
30777 | #endif | |
30778 | #ifdef __cplusplus | |
30779 | } | |
83307f33 VZ |
30780 | #endif |
30781 | ||
e6cc62c6 VS |
30782 | int |
30783 | main () | |
30784 | { | |
30785 | return f != $ac_func; | |
30786 | ; | |
30787 | return 0; | |
30788 | } | |
30789 | _ACEOF | |
30790 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 30792 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
30793 | ac_status=$? |
30794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30795 | (exit $ac_status); } && | |
09d3439c | 30796 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
30797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30798 | (eval $ac_try) 2>&5 | |
30799 | ac_status=$? | |
30800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30801 | (exit $ac_status); }; }; then | |
30802 | eval "$as_ac_var=yes" | |
30803 | else | |
30804 | echo "$as_me: failed program was:" >&5 | |
30805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30806 | ||
30807 | eval "$as_ac_var=no" | |
30808 | fi | |
09d3439c | 30809 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
30810 | fi |
30811 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30812 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30813 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30814 | cat >>confdefs.h <<_ACEOF | |
30815 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30816 | _ACEOF | |
83307f33 | 30817 | |
83307f33 VZ |
30818 | fi |
30819 | done | |
30820 | ||
5c6fa7d2 | 30821 | |
e6cc62c6 VS |
30822 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 |
30823 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
30824 | if test "${wx_cv_var_timezone+set}" = set; then | |
30825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8284b0c5 | 30826 | else |
e6cc62c6 VS |
30827 | |
30828 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 30829 | #line $LINENO "configure" |
e6cc62c6 VS |
30830 | /* confdefs.h. */ |
30831 | _ACEOF | |
30832 | cat confdefs.h >>conftest.$ac_ext | |
30833 | cat >>conftest.$ac_ext <<_ACEOF | |
30834 | /* end confdefs.h. */ | |
360d6699 | 30835 | |
b4085ce6 | 30836 | #include <time.h> |
e6cc62c6 VS |
30837 | |
30838 | int | |
30839 | main () | |
30840 | { | |
360d6699 VZ |
30841 | |
30842 | int tz; | |
4f11a343 | 30843 | tz = timezone; |
e6cc62c6 VS |
30844 | |
30845 | ; | |
30846 | return 0; | |
30847 | } | |
30848 | _ACEOF | |
30849 | rm -f conftest.$ac_objext | |
30850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 30851 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
30852 | ac_status=$? |
30853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30854 | (exit $ac_status); } && | |
09d3439c | 30855 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
30856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30857 | (eval $ac_try) 2>&5 | |
30858 | ac_status=$? | |
30859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30860 | (exit $ac_status); }; }; then | |
30861 | ||
4f11a343 | 30862 | wx_cv_var_timezone=timezone |
e6cc62c6 | 30863 | |
360d6699 | 30864 | else |
e6cc62c6 VS |
30865 | echo "$as_me: failed program was:" >&5 |
30866 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30867 | ||
30868 | ||
30869 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 30870 | #line $LINENO "configure" |
e6cc62c6 VS |
30871 | /* confdefs.h. */ |
30872 | _ACEOF | |
30873 | cat confdefs.h >>conftest.$ac_ext | |
30874 | cat >>conftest.$ac_ext <<_ACEOF | |
30875 | /* end confdefs.h. */ | |
360d6699 | 30876 | |
b4085ce6 | 30877 | #include <time.h> |
e6cc62c6 VS |
30878 | |
30879 | int | |
30880 | main () | |
30881 | { | |
360d6699 VZ |
30882 | |
30883 | int tz; | |
30884 | tz = _timezone; | |
e6cc62c6 VS |
30885 | |
30886 | ; | |
30887 | return 0; | |
30888 | } | |
30889 | _ACEOF | |
30890 | rm -f conftest.$ac_objext | |
30891 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 30892 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
30893 | ac_status=$? |
30894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30895 | (exit $ac_status); } && | |
09d3439c | 30896 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
30897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30898 | (eval $ac_try) 2>&5 | |
30899 | ac_status=$? | |
30900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30901 | (exit $ac_status); }; }; then | |
30902 | ||
360d6699 | 30903 | wx_cv_var_timezone=_timezone |
e6cc62c6 | 30904 | |
5357c8e8 | 30905 | else |
e6cc62c6 VS |
30906 | echo "$as_me: failed program was:" >&5 |
30907 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30908 | ||
30909 | ||
30910 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 30911 | #line $LINENO "configure" |
e6cc62c6 VS |
30912 | /* confdefs.h. */ |
30913 | _ACEOF | |
30914 | cat confdefs.h >>conftest.$ac_ext | |
30915 | cat >>conftest.$ac_ext <<_ACEOF | |
30916 | /* end confdefs.h. */ | |
5357c8e8 | 30917 | |
b4085ce6 | 30918 | #include <time.h> |
e6cc62c6 VS |
30919 | |
30920 | int | |
30921 | main () | |
30922 | { | |
5357c8e8 VZ |
30923 | |
30924 | int tz; | |
4f11a343 | 30925 | tz = __timezone; |
e6cc62c6 VS |
30926 | |
30927 | ; | |
30928 | return 0; | |
30929 | } | |
30930 | _ACEOF | |
30931 | rm -f conftest.$ac_objext | |
30932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 30933 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
30934 | ac_status=$? |
30935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30936 | (exit $ac_status); } && | |
09d3439c | 30937 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
30938 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30939 | (eval $ac_try) 2>&5 | |
30940 | ac_status=$? | |
30941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30942 | (exit $ac_status); }; }; then | |
30943 | ||
4f11a343 | 30944 | wx_cv_var_timezone=__timezone |
e6cc62c6 | 30945 | |
360d6699 | 30946 | else |
e6cc62c6 VS |
30947 | echo "$as_me: failed program was:" >&5 |
30948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30949 | ||
30950 | ||
f9bc1684 | 30951 | if test "$USE_DOS" = 0 ; then |
e6cc62c6 VS |
30952 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 |
30953 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
f9bc1684 | 30954 | fi |
e6cc62c6 VS |
30955 | |
30956 | ||
7b4a847f | 30957 | fi |
09d3439c | 30958 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
30959 | |
30960 | ||
5c6fa7d2 | 30961 | fi |
09d3439c | 30962 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
30963 | |
30964 | ||
247f5006 | 30965 | fi |
09d3439c | 30966 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 30967 | |
e6cc62c6 VS |
30968 | |
30969 | fi | |
30970 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
30971 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
698dcdb6 | 30972 | |
f9bc1684 | 30973 | if test "x$wx_cv_var_timezone" != x ; then |
e6cc62c6 | 30974 | cat >>confdefs.h <<_ACEOF |
360d6699 | 30975 | #define WX_TIMEZONE $wx_cv_var_timezone |
e6cc62c6 | 30976 | _ACEOF |
360d6699 | 30977 | |
f9bc1684 | 30978 | fi |
698dcdb6 | 30979 | |
e6cc62c6 VS |
30980 | |
30981 | for ac_func in localtime | |
afc31813 | 30982 | do |
e6cc62c6 VS |
30983 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
30984 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30985 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30986 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30988 | else | |
30989 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 30990 | #line $LINENO "configure" |
e6cc62c6 VS |
30991 | /* confdefs.h. */ |
30992 | _ACEOF | |
30993 | cat confdefs.h >>conftest.$ac_ext | |
30994 | cat >>conftest.$ac_ext <<_ACEOF | |
30995 | /* end confdefs.h. */ | |
afc31813 | 30996 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
30997 | which can conflict with char $ac_func (); below. |
30998 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30999 | <limits.h> exists even on freestanding compilers. */ | |
31000 | #ifdef __STDC__ | |
31001 | # include <limits.h> | |
31002 | #else | |
31003 | # include <assert.h> | |
31004 | #endif | |
afc31813 | 31005 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31006 | #ifdef __cplusplus |
31007 | extern "C" | |
31008 | { | |
31009 | #endif | |
afc31813 | 31010 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31011 | builtin and then its argument prototype would still apply. */ |
31012 | char $ac_func (); | |
afc31813 VZ |
31013 | /* The GNU C library defines this for functions which it implements |
31014 | to always fail with ENOSYS. Some functions are actually named | |
31015 | something starting with __ and the normal name is an alias. */ | |
31016 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31017 | choke me | |
31018 | #else | |
e6cc62c6 VS |
31019 | char (*f) () = $ac_func; |
31020 | #endif | |
31021 | #ifdef __cplusplus | |
31022 | } | |
afc31813 VZ |
31023 | #endif |
31024 | ||
e6cc62c6 VS |
31025 | int |
31026 | main () | |
31027 | { | |
31028 | return f != $ac_func; | |
31029 | ; | |
31030 | return 0; | |
31031 | } | |
31032 | _ACEOF | |
31033 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31034 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 31035 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
31036 | ac_status=$? |
31037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31038 | (exit $ac_status); } && | |
09d3439c | 31039 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
31040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31041 | (eval $ac_try) 2>&5 | |
31042 | ac_status=$? | |
31043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31044 | (exit $ac_status); }; }; then | |
31045 | eval "$as_ac_var=yes" | |
31046 | else | |
31047 | echo "$as_me: failed program was:" >&5 | |
31048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31049 | ||
31050 | eval "$as_ac_var=no" | |
31051 | fi | |
09d3439c | 31052 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
31053 | fi |
31054 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31055 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31056 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31057 | cat >>confdefs.h <<_ACEOF | |
31058 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31059 | _ACEOF | |
afc31813 | 31060 | |
afc31813 VZ |
31061 | fi |
31062 | done | |
31063 | ||
5c6fa7d2 | 31064 | |
8284b0c5 | 31065 | if test "$ac_cv_func_localtime" = "yes"; then |
e6cc62c6 VS |
31066 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 |
31067 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
31068 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
31069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 31070 | else |
e6cc62c6 VS |
31071 | |
31072 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 31073 | #line $LINENO "configure" |
e6cc62c6 VS |
31074 | /* confdefs.h. */ |
31075 | _ACEOF | |
31076 | cat confdefs.h >>conftest.$ac_ext | |
31077 | cat >>conftest.$ac_ext <<_ACEOF | |
31078 | /* end confdefs.h. */ | |
0470b1e6 | 31079 | |
b4085ce6 | 31080 | #include <time.h> |
e6cc62c6 VS |
31081 | |
31082 | int | |
31083 | main () | |
31084 | { | |
0470b1e6 VZ |
31085 | |
31086 | struct tm tm; | |
31087 | tm.tm_gmtoff++; | |
e6cc62c6 VS |
31088 | |
31089 | ; | |
31090 | return 0; | |
31091 | } | |
31092 | _ACEOF | |
31093 | rm -f conftest.$ac_objext | |
31094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 31095 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
31096 | ac_status=$? |
31097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31098 | (exit $ac_status); } && | |
09d3439c | 31099 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
31100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31101 | (eval $ac_try) 2>&5 | |
31102 | ac_status=$? | |
31103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31104 | (exit $ac_status); }; }; then | |
31105 | ||
f03a98d8 | 31106 | wx_cv_struct_tm_has_gmtoff=yes |
e6cc62c6 | 31107 | |
0470b1e6 | 31108 | else |
e6cc62c6 VS |
31109 | echo "$as_me: failed program was:" >&5 |
31110 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31111 | ||
31112 | wx_cv_struct_tm_has_gmtoff=no | |
31113 | ||
247f5006 | 31114 | fi |
09d3439c | 31115 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 31116 | |
e6cc62c6 VS |
31117 | fi |
31118 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
31119 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
6232543b VS |
31120 | fi |
31121 | ||
31122 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
e6cc62c6 | 31123 | cat >>confdefs.h <<\_ACEOF |
6232543b | 31124 | #define WX_GMTOFF_IN_TM 1 |
e6cc62c6 | 31125 | _ACEOF |
0470b1e6 | 31126 | |
3fcdd07b VZ |
31127 | fi |
31128 | ||
e6cc62c6 VS |
31129 | |
31130 | ||
31131 | for ac_func in gettimeofday ftime | |
3fcdd07b | 31132 | do |
e6cc62c6 VS |
31133 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31134 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31135 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31136 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31138 | else | |
31139 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 31140 | #line $LINENO "configure" |
e6cc62c6 VS |
31141 | /* confdefs.h. */ |
31142 | _ACEOF | |
31143 | cat confdefs.h >>conftest.$ac_ext | |
31144 | cat >>conftest.$ac_ext <<_ACEOF | |
31145 | /* end confdefs.h. */ | |
3fcdd07b | 31146 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31147 | which can conflict with char $ac_func (); below. |
31148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31149 | <limits.h> exists even on freestanding compilers. */ | |
31150 | #ifdef __STDC__ | |
31151 | # include <limits.h> | |
31152 | #else | |
31153 | # include <assert.h> | |
31154 | #endif | |
3fcdd07b | 31155 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31156 | #ifdef __cplusplus |
31157 | extern "C" | |
31158 | { | |
31159 | #endif | |
3fcdd07b | 31160 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31161 | builtin and then its argument prototype would still apply. */ |
31162 | char $ac_func (); | |
3fcdd07b VZ |
31163 | /* The GNU C library defines this for functions which it implements |
31164 | to always fail with ENOSYS. Some functions are actually named | |
31165 | something starting with __ and the normal name is an alias. */ | |
31166 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31167 | choke me | |
31168 | #else | |
e6cc62c6 VS |
31169 | char (*f) () = $ac_func; |
31170 | #endif | |
31171 | #ifdef __cplusplus | |
31172 | } | |
3fcdd07b VZ |
31173 | #endif |
31174 | ||
e6cc62c6 VS |
31175 | int |
31176 | main () | |
31177 | { | |
31178 | return f != $ac_func; | |
31179 | ; | |
31180 | return 0; | |
31181 | } | |
31182 | _ACEOF | |
31183 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31184 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 31185 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
31186 | ac_status=$? |
31187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31188 | (exit $ac_status); } && | |
09d3439c | 31189 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
31190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31191 | (eval $ac_try) 2>&5 | |
31192 | ac_status=$? | |
31193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31194 | (exit $ac_status); }; }; then | |
31195 | eval "$as_ac_var=yes" | |
31196 | else | |
31197 | echo "$as_me: failed program was:" >&5 | |
31198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31199 | ||
31200 | eval "$as_ac_var=no" | |
31201 | fi | |
09d3439c | 31202 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
31203 | fi |
31204 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31205 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31206 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31207 | cat >>confdefs.h <<_ACEOF | |
31208 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31209 | _ACEOF | |
3fcdd07b | 31210 | break |
3fcdd07b VZ |
31211 | fi |
31212 | done | |
31213 | ||
698dcdb6 | 31214 | |
8284b0c5 | 31215 | if test "$ac_cv_func_gettimeofday" = "yes"; then |
e6cc62c6 VS |
31216 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 |
31217 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
31218 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
31219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31220 | else | |
31221 | ||
31222 | ||
31223 | ||
31224 | ac_ext=cc | |
5c6fa7d2 | 31225 | ac_cpp='$CXXCPP $CPPFLAGS' |
e6cc62c6 VS |
31226 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
31227 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31228 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
52127426 | 31229 | |
8284b0c5 | 31230 | |
e6cc62c6 | 31231 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 31232 | #line $LINENO "configure" |
e6cc62c6 VS |
31233 | /* confdefs.h. */ |
31234 | _ACEOF | |
31235 | cat confdefs.h >>conftest.$ac_ext | |
31236 | cat >>conftest.$ac_ext <<_ACEOF | |
31237 | /* end confdefs.h. */ | |
afc31813 VZ |
31238 | |
31239 | #include <sys/time.h> | |
31240 | #include <unistd.h> | |
e6cc62c6 VS |
31241 | |
31242 | int | |
31243 | main () | |
31244 | { | |
afc31813 VZ |
31245 | |
31246 | struct timeval tv; | |
776862b4 | 31247 | gettimeofday(&tv, NULL); |
e6cc62c6 VS |
31248 | |
31249 | ; | |
31250 | return 0; | |
31251 | } | |
31252 | _ACEOF | |
31253 | rm -f conftest.$ac_objext | |
31254 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 31255 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
31256 | ac_status=$? |
31257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31258 | (exit $ac_status); } && | |
09d3439c | 31259 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
31260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31261 | (eval $ac_try) 2>&5 | |
31262 | ac_status=$? | |
31263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31264 | (exit $ac_status); }; }; then | |
afc31813 | 31265 | wx_cv_func_gettimeofday_has_2_args=yes |
10f2d63a | 31266 | else |
e6cc62c6 VS |
31267 | echo "$as_me: failed program was:" >&5 |
31268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31269 | ||
31270 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 31271 | #line $LINENO "configure" |
e6cc62c6 VS |
31272 | /* confdefs.h. */ |
31273 | _ACEOF | |
31274 | cat confdefs.h >>conftest.$ac_ext | |
31275 | cat >>conftest.$ac_ext <<_ACEOF | |
31276 | /* end confdefs.h. */ | |
afc31813 VZ |
31277 | |
31278 | #include <sys/time.h> | |
31279 | #include <unistd.h> | |
e6cc62c6 VS |
31280 | |
31281 | int | |
31282 | main () | |
31283 | { | |
afc31813 VZ |
31284 | |
31285 | struct timeval tv; | |
31286 | gettimeofday(&tv); | |
e6cc62c6 VS |
31287 | |
31288 | ; | |
31289 | return 0; | |
31290 | } | |
31291 | _ACEOF | |
31292 | rm -f conftest.$ac_objext | |
31293 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 31294 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
31295 | ac_status=$? |
31296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31297 | (exit $ac_status); } && | |
09d3439c | 31298 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
31299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31300 | (eval $ac_try) 2>&5 | |
31301 | ac_status=$? | |
31302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31303 | (exit $ac_status); }; }; then | |
afc31813 | 31304 | wx_cv_func_gettimeofday_has_2_args=no |
10f2d63a | 31305 | else |
e6cc62c6 VS |
31306 | echo "$as_me: failed program was:" >&5 |
31307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31308 | ||
31309 | ||
31310 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
31311 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
776862b4 | 31312 | wx_cv_func_gettimeofday_has_2_args=unknown |
e6cc62c6 VS |
31313 | |
31314 | ||
10f2d63a | 31315 | fi |
09d3439c | 31316 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 31317 | |
10f2d63a | 31318 | fi |
09d3439c | 31319 | rm -f conftest.$ac_objext conftest.$ac_ext |
afc31813 | 31320 | ac_ext=c |
10f2d63a | 31321 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
31322 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
31323 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
31324 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 31325 | |
a0b9e27f | 31326 | |
e6cc62c6 VS |
31327 | fi |
31328 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
31329 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
c63c7106 | 31330 | |
afc31813 | 31331 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then |
e6cc62c6 | 31332 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 31333 | #define WX_GETTIMEOFDAY_NO_TZ 1 |
e6cc62c6 | 31334 | _ACEOF |
afc31813 VZ |
31335 | |
31336 | fi | |
31337 | fi | |
31338 | ||
afc31813 VZ |
31339 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" |
31340 | fi | |
31341 | ||
8284b0c5 | 31342 | |
52127426 | 31343 | if test "$wxUSE_SOCKETS" = "yes"; then |
6c657b52 | 31344 | if test "$wxUSE_MGL" = "1"; then |
e6cc62c6 VS |
31345 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 |
31346 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
31347 | wxUSE_SOCKETS="no" |
31348 | fi | |
0feee163 | 31349 | fi |
b089607b | 31350 | |
0feee163 VZ |
31351 | if test "$wxUSE_SOCKETS" = "yes"; then |
31352 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
31353 | echo "$as_me:$LINENO: checking for socket" >&5 |
31354 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
31355 | if test "${ac_cv_func_socket+set}" = set; then | |
31356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31357 | else | |
31358 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 31359 | #line $LINENO "configure" |
e6cc62c6 VS |
31360 | /* confdefs.h. */ |
31361 | _ACEOF | |
31362 | cat confdefs.h >>conftest.$ac_ext | |
31363 | cat >>conftest.$ac_ext <<_ACEOF | |
31364 | /* end confdefs.h. */ | |
c63c7106 | 31365 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31366 | which can conflict with char socket (); below. |
31367 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31368 | <limits.h> exists even on freestanding compilers. */ | |
31369 | #ifdef __STDC__ | |
31370 | # include <limits.h> | |
31371 | #else | |
31372 | # include <assert.h> | |
31373 | #endif | |
c63c7106 | 31374 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31375 | #ifdef __cplusplus |
31376 | extern "C" | |
31377 | { | |
31378 | #endif | |
c63c7106 | 31379 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31380 | builtin and then its argument prototype would still apply. */ |
31381 | char socket (); | |
c63c7106 VZ |
31382 | /* The GNU C library defines this for functions which it implements |
31383 | to always fail with ENOSYS. Some functions are actually named | |
31384 | something starting with __ and the normal name is an alias. */ | |
31385 | #if defined (__stub_socket) || defined (__stub___socket) | |
31386 | choke me | |
31387 | #else | |
e6cc62c6 VS |
31388 | char (*f) () = socket; |
31389 | #endif | |
31390 | #ifdef __cplusplus | |
31391 | } | |
c63c7106 VZ |
31392 | #endif |
31393 | ||
e6cc62c6 VS |
31394 | int |
31395 | main () | |
31396 | { | |
31397 | return f != socket; | |
31398 | ; | |
31399 | return 0; | |
31400 | } | |
31401 | _ACEOF | |
31402 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31403 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 31404 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
31405 | ac_status=$? |
31406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31407 | (exit $ac_status); } && | |
09d3439c | 31408 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
31409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31410 | (eval $ac_try) 2>&5 | |
31411 | ac_status=$? | |
31412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31413 | (exit $ac_status); }; }; then | |
31414 | ac_cv_func_socket=yes | |
31415 | else | |
31416 | echo "$as_me: failed program was:" >&5 | |
31417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31418 | ||
31419 | ac_cv_func_socket=no | |
31420 | fi | |
09d3439c | 31421 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
31422 | fi |
31423 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
31424 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
31425 | if test $ac_cv_func_socket = yes; then | |
c63c7106 VZ |
31426 | : |
31427 | else | |
0e012a93 VZ |
31428 | |
31429 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
e6cc62c6 VS |
31430 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 |
31431 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
31432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c63c7106 | 31433 | else |
e6cc62c6 | 31434 | ac_check_lib_save_LIBS=$LIBS |
c63c7106 | 31435 | LIBS="-lsocket $LIBS" |
e6cc62c6 | 31436 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 31437 | #line $LINENO "configure" |
e6cc62c6 VS |
31438 | /* confdefs.h. */ |
31439 | _ACEOF | |
31440 | cat confdefs.h >>conftest.$ac_ext | |
31441 | cat >>conftest.$ac_ext <<_ACEOF | |
31442 | /* end confdefs.h. */ | |
31443 | ||
c63c7106 | 31444 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31445 | #ifdef __cplusplus |
31446 | extern "C" | |
31447 | #endif | |
c63c7106 | 31448 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31449 | builtin and then its argument prototype would still apply. */ |
31450 | char socket (); | |
31451 | int | |
31452 | main () | |
31453 | { | |
31454 | socket (); | |
31455 | ; | |
31456 | return 0; | |
31457 | } | |
31458 | _ACEOF | |
31459 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31460 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 31461 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
31462 | ac_status=$? |
31463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31464 | (exit $ac_status); } && | |
09d3439c | 31465 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
31466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31467 | (eval $ac_try) 2>&5 | |
31468 | ac_status=$? | |
31469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31470 | (exit $ac_status); }; }; then | |
31471 | ac_cv_lib_socket_socket=yes | |
31472 | else | |
31473 | echo "$as_me: failed program was:" >&5 | |
31474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31475 | ||
31476 | ac_cv_lib_socket_socket=no | |
31477 | fi | |
09d3439c | 31478 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
31479 | LIBS=$ac_check_lib_save_LIBS |
31480 | fi | |
31481 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
31482 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
31483 | if test $ac_cv_lib_socket_socket = yes; then | |
d558c907 | 31484 | if test "$INET_LINK" != " -lsocket"; then |
0e012a93 VZ |
31485 | INET_LINK="$INET_LINK -lsocket" |
31486 | fi | |
c63c7106 | 31487 | else |
afc31813 | 31488 | |
0e012a93 | 31489 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 |
e6cc62c6 | 31490 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} |
0e012a93 | 31491 | wxUSE_SOCKETS=no |
e6cc62c6 VS |
31492 | |
31493 | ||
6232543b | 31494 | fi |
b089607b | 31495 | |
e6cc62c6 | 31496 | |
0e012a93 | 31497 | |
1e487827 | 31498 | fi |
afc31813 | 31499 | |
3a922bb4 | 31500 | fi |
0feee163 | 31501 | fi |
51a9faba | 31502 | |
0feee163 VZ |
31503 | if test "$wxUSE_SOCKETS" = "yes" ; then |
31504 | if test "$TOOLKIT" != "MSW"; then | |
e6cc62c6 VS |
31505 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 |
31506 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
31507 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
31508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a0b9e27f | 31509 | else |
e6cc62c6 VS |
31510 | |
31511 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 31512 | #line $LINENO "configure" |
e6cc62c6 VS |
31513 | /* confdefs.h. */ |
31514 | _ACEOF | |
31515 | cat confdefs.h >>conftest.$ac_ext | |
31516 | cat >>conftest.$ac_ext <<_ACEOF | |
31517 | /* end confdefs.h. */ | |
51a9faba | 31518 | |
3a922bb4 RL |
31519 | #include <sys/types.h> |
31520 | #include <sys/socket.h> | |
e6cc62c6 VS |
31521 | |
31522 | int | |
31523 | main () | |
31524 | { | |
51a9faba | 31525 | |
3a922bb4 RL |
31526 | socklen_t len; |
31527 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31528 | |
31529 | ; | |
31530 | return 0; | |
31531 | } | |
31532 | _ACEOF | |
31533 | rm -f conftest.$ac_objext | |
31534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 31535 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
31536 | ac_status=$? |
31537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31538 | (exit $ac_status); } && | |
09d3439c | 31539 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
31540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31541 | (eval $ac_try) 2>&5 | |
31542 | ac_status=$? | |
31543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31544 | (exit $ac_status); }; }; then | |
51a9faba | 31545 | wx_cv_type_getsockname3=socklen_t |
afc31813 | 31546 | else |
e6cc62c6 VS |
31547 | echo "$as_me: failed program was:" >&5 |
31548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31549 | ||
31550 | ||
9711d31e GD |
31551 | CFLAGS_OLD="$CFLAGS" |
31552 | if test "$GCC" = yes ; then | |
31553 | CFLAGS="$CFLAGS -Werror" | |
31554 | fi | |
31555 | ||
e6cc62c6 | 31556 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 31557 | #line $LINENO "configure" |
e6cc62c6 VS |
31558 | /* confdefs.h. */ |
31559 | _ACEOF | |
31560 | cat confdefs.h >>conftest.$ac_ext | |
31561 | cat >>conftest.$ac_ext <<_ACEOF | |
31562 | /* end confdefs.h. */ | |
51a9faba | 31563 | |
9711d31e GD |
31564 | #include <sys/types.h> |
31565 | #include <sys/socket.h> | |
e6cc62c6 VS |
31566 | |
31567 | int | |
31568 | main () | |
31569 | { | |
51a9faba | 31570 | |
9711d31e GD |
31571 | size_t len; |
31572 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31573 | |
31574 | ; | |
31575 | return 0; | |
31576 | } | |
31577 | _ACEOF | |
31578 | rm -f conftest.$ac_objext | |
31579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 31580 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
31581 | ac_status=$? |
31582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31583 | (exit $ac_status); } && | |
09d3439c | 31584 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
31585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31586 | (eval $ac_try) 2>&5 | |
31587 | ac_status=$? | |
31588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31589 | (exit $ac_status); }; }; then | |
51a9faba | 31590 | wx_cv_type_getsockname3=size_t |
afc31813 | 31591 | else |
e6cc62c6 VS |
31592 | echo "$as_me: failed program was:" >&5 |
31593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31594 | ||
31595 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 31596 | #line $LINENO "configure" |
e6cc62c6 VS |
31597 | /* confdefs.h. */ |
31598 | _ACEOF | |
31599 | cat confdefs.h >>conftest.$ac_ext | |
31600 | cat >>conftest.$ac_ext <<_ACEOF | |
31601 | /* end confdefs.h. */ | |
51a9faba | 31602 | |
9711d31e GD |
31603 | #include <sys/types.h> |
31604 | #include <sys/socket.h> | |
e6cc62c6 VS |
31605 | |
31606 | int | |
31607 | main () | |
31608 | { | |
51a9faba | 31609 | |
9711d31e GD |
31610 | int len; |
31611 | getsockname(0, 0, &len); | |
e6cc62c6 VS |
31612 | |
31613 | ; | |
31614 | return 0; | |
31615 | } | |
31616 | _ACEOF | |
31617 | rm -f conftest.$ac_objext | |
31618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 31619 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
31620 | ac_status=$? |
31621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31622 | (exit $ac_status); } && | |
09d3439c | 31623 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
31624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31625 | (eval $ac_try) 2>&5 | |
31626 | ac_status=$? | |
31627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31628 | (exit $ac_status); }; }; then | |
51a9faba | 31629 | wx_cv_type_getsockname3=int |
afc31813 | 31630 | else |
e6cc62c6 VS |
31631 | echo "$as_me: failed program was:" >&5 |
31632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31633 | ||
31634 | wx_cv_type_getsockname3=unknown | |
31635 | ||
afc31813 | 31636 | fi |
09d3439c | 31637 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 | 31638 | |
afc31813 | 31639 | fi |
09d3439c | 31640 | rm -f conftest.$ac_objext conftest.$ac_ext |
9711d31e GD |
31641 | |
31642 | CFLAGS="$CFLAGS_OLD" | |
e6cc62c6 VS |
31643 | |
31644 | ||
247f5006 | 31645 | fi |
09d3439c | 31646 | rm -f conftest.$ac_objext conftest.$ac_ext |
a0b9e27f | 31647 | |
e6cc62c6 VS |
31648 | fi |
31649 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
31650 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
51a9faba | 31651 | |
3a922bb4 RL |
31652 | if test "$wx_cv_type_getsockname3" = "unknown"; then |
31653 | wxUSE_SOCKETS=no | |
e6cc62c6 VS |
31654 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 |
31655 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
3a922bb4 | 31656 | else |
e6cc62c6 | 31657 | cat >>confdefs.h <<_ACEOF |
51a9faba | 31658 | #define SOCKLEN_T $wx_cv_type_getsockname3 |
e6cc62c6 | 31659 | _ACEOF |
51a9faba | 31660 | |
3a922bb4 | 31661 | fi |
51a9faba VZ |
31662 | fi |
31663 | fi | |
afc31813 | 31664 | |
51a9faba | 31665 | if test "$wxUSE_SOCKETS" = "yes" ; then |
e6cc62c6 | 31666 | cat >>confdefs.h <<\_ACEOF |
afc31813 | 31667 | #define wxUSE_SOCKETS 1 |
e6cc62c6 | 31668 | _ACEOF |
afc31813 | 31669 | |
70f7a477 | 31670 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" |
afc31813 VZ |
31671 | fi |
31672 | ||
3879ecda VZ |
31673 | if test "$wxUSE_PROTOCOL" = "yes"; then |
31674 | if test "$wxUSE_SOCKETS" != "yes"; then | |
31675 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
31676 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
31677 | wxUSE_PROTOCOL=no | |
31678 | fi | |
31679 | fi | |
31680 | ||
31681 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
31682 | cat >>confdefs.h <<\_ACEOF | |
31683 | #define wxUSE_PROTOCOL 1 | |
31684 | _ACEOF | |
31685 | ||
31686 | ||
31687 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
31688 | cat >>confdefs.h <<\_ACEOF | |
31689 | #define wxUSE_PROTOCOL_HTTP 1 | |
31690 | _ACEOF | |
31691 | ||
31692 | fi | |
31693 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
31694 | cat >>confdefs.h <<\_ACEOF | |
31695 | #define wxUSE_PROTOCOL_FTP 1 | |
31696 | _ACEOF | |
31697 | ||
31698 | fi | |
31699 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
31700 | cat >>confdefs.h <<\_ACEOF | |
31701 | #define wxUSE_PROTOCOL_FILE 1 | |
31702 | _ACEOF | |
31703 | ||
31704 | fi | |
31705 | else | |
31706 | if test "$wxUSE_FS_INET" = "yes"; then | |
31707 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
31708 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
31709 | wxUSE_FS_INET="no" | |
31710 | fi | |
31711 | fi | |
31712 | ||
31713 | if test "$wxUSE_URL" = "yes"; then | |
31714 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
31715 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
31716 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
31717 | wxUSE_URL=no | |
31718 | fi | |
31719 | if test "$wxUSE_URL" = "yes"; then | |
31720 | cat >>confdefs.h <<\_ACEOF | |
31721 | #define wxUSE_URL 1 | |
31722 | _ACEOF | |
31723 | ||
31724 | fi | |
31725 | fi | |
31726 | ||
31727 | if test "$wxUSE_FS_INET" = "yes"; then | |
31728 | cat >>confdefs.h <<\_ACEOF | |
31729 | #define wxUSE_FS_INET 1 | |
31730 | _ACEOF | |
31731 | ||
31732 | fi | |
31733 | ||
8284b0c5 | 31734 | |
dc3d889d VZ |
31735 | if test "$wxUSE_GUI" = "yes"; then |
31736 | ||
ac0c4cc3 | 31737 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then |
e6cc62c6 VS |
31738 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 |
31739 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 | 31740 | wxUSE_JOYSTICK=no |
156b2523 GD |
31741 | fi |
31742 | ||
131f235d | 31743 | if test "$TOOLKIT" != "MSW"; then |
3a922bb4 | 31744 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 VS |
31745 | |
31746 | for ac_header in linux/joystick.h | |
10f2d63a | 31747 | do |
e6cc62c6 VS |
31748 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
31749 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31750 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31751 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31752 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31754 | fi | |
31755 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31756 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31757 | else | |
31758 | # Is the header compilable? | |
31759 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31760 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31761 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 31762 | #line $LINENO "configure" |
e6cc62c6 VS |
31763 | /* confdefs.h. */ |
31764 | _ACEOF | |
31765 | cat confdefs.h >>conftest.$ac_ext | |
31766 | cat >>conftest.$ac_ext <<_ACEOF | |
31767 | /* end confdefs.h. */ | |
31768 | $ac_includes_default | |
31769 | #include <$ac_header> | |
31770 | _ACEOF | |
31771 | rm -f conftest.$ac_objext | |
31772 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 31773 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
31774 | ac_status=$? |
31775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31776 | (exit $ac_status); } && | |
09d3439c | 31777 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
31778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31779 | (eval $ac_try) 2>&5 | |
31780 | ac_status=$? | |
31781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31782 | (exit $ac_status); }; }; then | |
31783 | ac_header_compiler=yes | |
31784 | else | |
31785 | echo "$as_me: failed program was:" >&5 | |
31786 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31787 | ||
31788 | ac_header_compiler=no | |
31789 | fi | |
09d3439c | 31790 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
31791 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31792 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31793 | ||
31794 | # Is the header present? | |
31795 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31796 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31797 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 31798 | #line $LINENO "configure" |
e6cc62c6 VS |
31799 | /* confdefs.h. */ |
31800 | _ACEOF | |
31801 | cat confdefs.h >>conftest.$ac_ext | |
31802 | cat >>conftest.$ac_ext <<_ACEOF | |
31803 | /* end confdefs.h. */ | |
31804 | #include <$ac_header> | |
31805 | _ACEOF | |
31806 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31807 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31808 | ac_status=$? | |
31809 | grep -v '^ *+' conftest.er1 >conftest.err | |
31810 | rm -f conftest.er1 | |
31811 | cat conftest.err >&5 | |
31812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31813 | (exit $ac_status); } >/dev/null; then | |
31814 | if test -s conftest.err; then | |
31815 | ac_cpp_err=$ac_c_preproc_warn_flag | |
31816 | else | |
31817 | ac_cpp_err= | |
31818 | fi | |
31819 | else | |
31820 | ac_cpp_err=yes | |
31821 | fi | |
31822 | if test -z "$ac_cpp_err"; then | |
31823 | ac_header_preproc=yes | |
31824 | else | |
31825 | echo "$as_me: failed program was:" >&5 | |
31826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31827 | ||
31828 | ac_header_preproc=no | |
31829 | fi | |
31830 | rm -f conftest.err conftest.$ac_ext | |
31831 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
31832 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
31833 | ||
31834 | # So? What about this header? | |
09d3439c VZ |
31835 | case $ac_header_compiler:$ac_header_preproc in |
31836 | yes:no ) | |
e6cc62c6 VS |
31837 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
31838 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
31839 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31840 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31841 | ( | |
31842 | cat <<\_ASBOX | |
31843 | ## ------------------------------------ ## | |
31844 | ## Report this to bug-autoconf@gnu.org. ## | |
31845 | ## ------------------------------------ ## | |
31846 | _ASBOX | |
31847 | ) | | |
31848 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 31849 | ;; |
09d3439c | 31850 | no:yes ) |
e6cc62c6 VS |
31851 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
31852 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
31853 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
31854 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
31855 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
31856 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
31857 | ( | |
31858 | cat <<\_ASBOX | |
09d3439c VZ |
31859 | ## ------------------------------------ ## |
31860 | ## Report this to bug-autoconf@gnu.org. ## | |
31861 | ## ------------------------------------ ## | |
e6cc62c6 VS |
31862 | _ASBOX |
31863 | ) | | |
31864 | sed "s/^/$as_me: WARNING: /" >&2 | |
31865 | ;; | |
31866 | esac | |
31867 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31868 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31869 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31871 | else | |
09d3439c | 31872 | eval "$as_ac_Header=$ac_header_preproc" |
247f5006 | 31873 | fi |
e6cc62c6 VS |
31874 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
31875 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31876 | ||
10f2d63a | 31877 | fi |
e6cc62c6 VS |
31878 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
31879 | cat >>confdefs.h <<_ACEOF | |
31880 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
31881 | _ACEOF | |
31882 | ||
247f5006 | 31883 | fi |
e6cc62c6 | 31884 | |
10f2d63a VZ |
31885 | done |
31886 | ||
3a922bb4 RL |
31887 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then |
31888 | wxUSE_JOYSTICK=no | |
e6cc62c6 VS |
31889 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 |
31890 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
3a922bb4 RL |
31891 | fi |
31892 | fi | |
31893 | fi | |
b089607b | 31894 | |
3a922bb4 | 31895 | if test "$wxUSE_JOYSTICK" = "yes"; then |
e6cc62c6 | 31896 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 31897 | #define wxUSE_JOYSTICK 1 |
e6cc62c6 | 31898 | _ACEOF |
10f2d63a | 31899 | |
3a922bb4 RL |
31900 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" |
31901 | fi | |
dc3d889d VZ |
31902 | fi |
31903 | ||
8284b0c5 | 31904 | |
73d617c9 | 31905 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then |
b089607b | 31906 | |
3a922bb4 RL |
31907 | HAVE_DL_FUNCS=0 |
31908 | HAVE_SHL_FUNCS=0 | |
0b9ab0bd | 31909 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then |
3a922bb4 RL |
31910 | if test "$USE_DARWIN" = 1; then |
31911 | HAVE_DL_FUNCS=1 | |
31912 | else | |
e6cc62c6 VS |
31913 | |
31914 | for ac_func in dlopen | |
10f2d63a | 31915 | do |
e6cc62c6 VS |
31916 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
31917 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31918 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31919 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31921 | else | |
31922 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 31923 | #line $LINENO "configure" |
e6cc62c6 VS |
31924 | /* confdefs.h. */ |
31925 | _ACEOF | |
31926 | cat confdefs.h >>conftest.$ac_ext | |
31927 | cat >>conftest.$ac_ext <<_ACEOF | |
31928 | /* end confdefs.h. */ | |
10f2d63a | 31929 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
31930 | which can conflict with char $ac_func (); below. |
31931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31932 | <limits.h> exists even on freestanding compilers. */ | |
31933 | #ifdef __STDC__ | |
31934 | # include <limits.h> | |
31935 | #else | |
31936 | # include <assert.h> | |
31937 | #endif | |
10f2d63a | 31938 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
31939 | #ifdef __cplusplus |
31940 | extern "C" | |
31941 | { | |
31942 | #endif | |
10f2d63a | 31943 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
31944 | builtin and then its argument prototype would still apply. */ |
31945 | char $ac_func (); | |
10f2d63a VZ |
31946 | /* The GNU C library defines this for functions which it implements |
31947 | to always fail with ENOSYS. Some functions are actually named | |
31948 | something starting with __ and the normal name is an alias. */ | |
31949 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31950 | choke me | |
31951 | #else | |
e6cc62c6 VS |
31952 | char (*f) () = $ac_func; |
31953 | #endif | |
31954 | #ifdef __cplusplus | |
31955 | } | |
10f2d63a VZ |
31956 | #endif |
31957 | ||
e6cc62c6 VS |
31958 | int |
31959 | main () | |
31960 | { | |
31961 | return f != $ac_func; | |
31962 | ; | |
31963 | return 0; | |
31964 | } | |
31965 | _ACEOF | |
31966 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 31968 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
31969 | ac_status=$? |
31970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31971 | (exit $ac_status); } && | |
09d3439c | 31972 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
31973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31974 | (eval $ac_try) 2>&5 | |
31975 | ac_status=$? | |
31976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31977 | (exit $ac_status); }; }; then | |
31978 | eval "$as_ac_var=yes" | |
31979 | else | |
31980 | echo "$as_me: failed program was:" >&5 | |
31981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31982 | ||
31983 | eval "$as_ac_var=no" | |
31984 | fi | |
09d3439c | 31985 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
31986 | fi |
31987 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31988 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31989 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31990 | cat >>confdefs.h <<_ACEOF | |
31991 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31992 | _ACEOF | |
31993 | ||
31994 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 31995 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 31996 | _ACEOF |
10f2d63a | 31997 | |
3a922bb4 | 31998 | HAVE_DL_FUNCS=1 |
e6cc62c6 | 31999 | |
10f2d63a | 32000 | else |
e6cc62c6 VS |
32001 | |
32002 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
32003 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
32004 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
32005 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 32006 | else |
e6cc62c6 | 32007 | ac_check_lib_save_LIBS=$LIBS |
10f2d63a | 32008 | LIBS="-ldl $LIBS" |
e6cc62c6 | 32009 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 32010 | #line $LINENO "configure" |
e6cc62c6 VS |
32011 | /* confdefs.h. */ |
32012 | _ACEOF | |
32013 | cat confdefs.h >>conftest.$ac_ext | |
32014 | cat >>conftest.$ac_ext <<_ACEOF | |
32015 | /* end confdefs.h. */ | |
32016 | ||
10f2d63a | 32017 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32018 | #ifdef __cplusplus |
32019 | extern "C" | |
32020 | #endif | |
10f2d63a | 32021 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32022 | builtin and then its argument prototype would still apply. */ |
32023 | char dlopen (); | |
32024 | int | |
32025 | main () | |
32026 | { | |
32027 | dlopen (); | |
32028 | ; | |
32029 | return 0; | |
32030 | } | |
32031 | _ACEOF | |
32032 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32033 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 32034 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
32035 | ac_status=$? |
32036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32037 | (exit $ac_status); } && | |
09d3439c | 32038 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
32039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32040 | (eval $ac_try) 2>&5 | |
32041 | ac_status=$? | |
32042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32043 | (exit $ac_status); }; }; then | |
32044 | ac_cv_lib_dl_dlopen=yes | |
32045 | else | |
32046 | echo "$as_me: failed program was:" >&5 | |
32047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32048 | ||
32049 | ac_cv_lib_dl_dlopen=no | |
32050 | fi | |
09d3439c | 32051 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
32052 | LIBS=$ac_check_lib_save_LIBS |
32053 | fi | |
32054 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
32055 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
32056 | if test $ac_cv_lib_dl_dlopen = yes; then | |
32057 | ||
32058 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 32059 | #define HAVE_DLOPEN 1 |
e6cc62c6 | 32060 | _ACEOF |
10f2d63a | 32061 | |
3a922bb4 | 32062 | HAVE_DL_FUNCS=1 |
3d63bc3a | 32063 | DL_LINK=" -ldl$DL_LINK" |
e6cc62c6 | 32064 | |
10f2d63a | 32065 | else |
10f2d63a | 32066 | |
e6cc62c6 VS |
32067 | |
32068 | for ac_func in shl_load | |
10f2d63a | 32069 | do |
e6cc62c6 VS |
32070 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32071 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32072 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32073 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32074 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32075 | else | |
32076 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 32077 | #line $LINENO "configure" |
e6cc62c6 VS |
32078 | /* confdefs.h. */ |
32079 | _ACEOF | |
32080 | cat confdefs.h >>conftest.$ac_ext | |
32081 | cat >>conftest.$ac_ext <<_ACEOF | |
32082 | /* end confdefs.h. */ | |
10f2d63a | 32083 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32084 | which can conflict with char $ac_func (); below. |
32085 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32086 | <limits.h> exists even on freestanding compilers. */ | |
32087 | #ifdef __STDC__ | |
32088 | # include <limits.h> | |
32089 | #else | |
32090 | # include <assert.h> | |
32091 | #endif | |
10f2d63a | 32092 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32093 | #ifdef __cplusplus |
32094 | extern "C" | |
32095 | { | |
32096 | #endif | |
10f2d63a | 32097 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32098 | builtin and then its argument prototype would still apply. */ |
32099 | char $ac_func (); | |
10f2d63a VZ |
32100 | /* The GNU C library defines this for functions which it implements |
32101 | to always fail with ENOSYS. Some functions are actually named | |
32102 | something starting with __ and the normal name is an alias. */ | |
32103 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32104 | choke me | |
32105 | #else | |
e6cc62c6 VS |
32106 | char (*f) () = $ac_func; |
32107 | #endif | |
32108 | #ifdef __cplusplus | |
32109 | } | |
10f2d63a VZ |
32110 | #endif |
32111 | ||
e6cc62c6 VS |
32112 | int |
32113 | main () | |
32114 | { | |
32115 | return f != $ac_func; | |
32116 | ; | |
32117 | return 0; | |
32118 | } | |
32119 | _ACEOF | |
32120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 32122 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
32123 | ac_status=$? |
32124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32125 | (exit $ac_status); } && | |
09d3439c | 32126 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
32127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32128 | (eval $ac_try) 2>&5 | |
32129 | ac_status=$? | |
32130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32131 | (exit $ac_status); }; }; then | |
32132 | eval "$as_ac_var=yes" | |
32133 | else | |
32134 | echo "$as_me: failed program was:" >&5 | |
32135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32136 | ||
32137 | eval "$as_ac_var=no" | |
32138 | fi | |
09d3439c | 32139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
32140 | fi |
32141 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32142 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32143 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32144 | cat >>confdefs.h <<_ACEOF | |
32145 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32146 | _ACEOF | |
32147 | ||
32148 | cat >>confdefs.h <<\_ACEOF | |
10f2d63a | 32149 | #define HAVE_SHL_LOAD 1 |
e6cc62c6 | 32150 | _ACEOF |
10f2d63a | 32151 | |
3a922bb4 | 32152 | HAVE_SHL_FUNCS=1 |
e6cc62c6 | 32153 | |
10f2d63a | 32154 | else |
e6cc62c6 VS |
32155 | |
32156 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
32157 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
32158 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
32159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 32160 | else |
e6cc62c6 | 32161 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 32162 | LIBS="-lshl_load $LIBS" |
e6cc62c6 | 32163 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 32164 | #line $LINENO "configure" |
e6cc62c6 VS |
32165 | /* confdefs.h. */ |
32166 | _ACEOF | |
32167 | cat confdefs.h >>conftest.$ac_ext | |
32168 | cat >>conftest.$ac_ext <<_ACEOF | |
32169 | /* end confdefs.h. */ | |
32170 | ||
8284b0c5 | 32171 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32172 | #ifdef __cplusplus |
32173 | extern "C" | |
32174 | #endif | |
f6bcfd97 | 32175 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32176 | builtin and then its argument prototype would still apply. */ |
32177 | char dld (); | |
32178 | int | |
32179 | main () | |
32180 | { | |
32181 | dld (); | |
32182 | ; | |
32183 | return 0; | |
32184 | } | |
32185 | _ACEOF | |
32186 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32187 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 32188 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
32189 | ac_status=$? |
32190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32191 | (exit $ac_status); } && | |
09d3439c | 32192 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
32193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32194 | (eval $ac_try) 2>&5 | |
32195 | ac_status=$? | |
32196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32197 | (exit $ac_status); }; }; then | |
32198 | ac_cv_lib_shl_load_dld=yes | |
32199 | else | |
32200 | echo "$as_me: failed program was:" >&5 | |
32201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32202 | ||
32203 | ac_cv_lib_shl_load_dld=no | |
32204 | fi | |
09d3439c | 32205 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
32206 | LIBS=$ac_check_lib_save_LIBS |
32207 | fi | |
32208 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
32209 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
32210 | if test $ac_cv_lib_shl_load_dld = yes; then | |
f6bcfd97 | 32211 | |
3a922bb4 | 32212 | HAVE_SHL_FUNCS=1 |
3d63bc3a | 32213 | DL_LINK=" -ldld$DL_LINK" |
e6cc62c6 | 32214 | |
f6bcfd97 BP |
32215 | fi |
32216 | ||
e6cc62c6 | 32217 | |
10f2d63a VZ |
32218 | fi |
32219 | done | |
32220 | ||
e6cc62c6 | 32221 | |
10f2d63a VZ |
32222 | fi |
32223 | ||
e6cc62c6 | 32224 | |
10f2d63a VZ |
32225 | fi |
32226 | done | |
32227 | ||
5c6fa7d2 | 32228 | |
8284b0c5 | 32229 | if test "$HAVE_DL_FUNCS" = 1; then |
e6cc62c6 VS |
32230 | |
32231 | for ac_func in dlerror | |
f6bcfd97 | 32232 | do |
e6cc62c6 VS |
32233 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
32234 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32235 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32236 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32238 | else | |
32239 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 32240 | #line $LINENO "configure" |
e6cc62c6 VS |
32241 | /* confdefs.h. */ |
32242 | _ACEOF | |
32243 | cat confdefs.h >>conftest.$ac_ext | |
32244 | cat >>conftest.$ac_ext <<_ACEOF | |
32245 | /* end confdefs.h. */ | |
f6bcfd97 | 32246 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
32247 | which can conflict with char $ac_func (); below. |
32248 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32249 | <limits.h> exists even on freestanding compilers. */ | |
32250 | #ifdef __STDC__ | |
32251 | # include <limits.h> | |
32252 | #else | |
32253 | # include <assert.h> | |
32254 | #endif | |
f6bcfd97 | 32255 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32256 | #ifdef __cplusplus |
32257 | extern "C" | |
32258 | { | |
32259 | #endif | |
f6bcfd97 | 32260 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32261 | builtin and then its argument prototype would still apply. */ |
32262 | char $ac_func (); | |
f6bcfd97 BP |
32263 | /* The GNU C library defines this for functions which it implements |
32264 | to always fail with ENOSYS. Some functions are actually named | |
32265 | something starting with __ and the normal name is an alias. */ | |
32266 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32267 | choke me | |
32268 | #else | |
e6cc62c6 VS |
32269 | char (*f) () = $ac_func; |
32270 | #endif | |
32271 | #ifdef __cplusplus | |
32272 | } | |
f6bcfd97 BP |
32273 | #endif |
32274 | ||
e6cc62c6 VS |
32275 | int |
32276 | main () | |
32277 | { | |
32278 | return f != $ac_func; | |
32279 | ; | |
32280 | return 0; | |
32281 | } | |
32282 | _ACEOF | |
32283 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32284 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 32285 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
32286 | ac_status=$? |
32287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32288 | (exit $ac_status); } && | |
09d3439c | 32289 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
32290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32291 | (eval $ac_try) 2>&5 | |
32292 | ac_status=$? | |
32293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32294 | (exit $ac_status); }; }; then | |
32295 | eval "$as_ac_var=yes" | |
32296 | else | |
32297 | echo "$as_me: failed program was:" >&5 | |
32298 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32299 | ||
32300 | eval "$as_ac_var=no" | |
32301 | fi | |
09d3439c | 32302 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
32303 | fi |
32304 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32305 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32306 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32307 | cat >>confdefs.h <<_ACEOF | |
32308 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32309 | _ACEOF | |
32310 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 32311 | #define HAVE_DLERROR 1 |
e6cc62c6 | 32312 | _ACEOF |
f6bcfd97 BP |
32313 | |
32314 | else | |
0e012a93 VZ |
32315 | |
32316 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
e6cc62c6 VS |
32317 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 |
32318 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
32319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f6bcfd97 | 32320 | else |
e6cc62c6 | 32321 | ac_check_lib_save_LIBS=$LIBS |
f6bcfd97 | 32322 | LIBS="-ldl $LIBS" |
e6cc62c6 | 32323 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 32324 | #line $LINENO "configure" |
e6cc62c6 VS |
32325 | /* confdefs.h. */ |
32326 | _ACEOF | |
32327 | cat confdefs.h >>conftest.$ac_ext | |
32328 | cat >>conftest.$ac_ext <<_ACEOF | |
32329 | /* end confdefs.h. */ | |
32330 | ||
f6bcfd97 | 32331 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
32332 | #ifdef __cplusplus |
32333 | extern "C" | |
32334 | #endif | |
f6bcfd97 | 32335 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
32336 | builtin and then its argument prototype would still apply. */ |
32337 | char dlerror (); | |
32338 | int | |
32339 | main () | |
32340 | { | |
32341 | dlerror (); | |
32342 | ; | |
32343 | return 0; | |
32344 | } | |
32345 | _ACEOF | |
32346 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32347 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 32348 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
32349 | ac_status=$? |
32350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32351 | (exit $ac_status); } && | |
09d3439c | 32352 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
32353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32354 | (eval $ac_try) 2>&5 | |
32355 | ac_status=$? | |
32356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32357 | (exit $ac_status); }; }; then | |
32358 | ac_cv_lib_dl_dlerror=yes | |
32359 | else | |
32360 | echo "$as_me: failed program was:" >&5 | |
32361 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32362 | ||
32363 | ac_cv_lib_dl_dlerror=no | |
32364 | fi | |
09d3439c | 32365 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
32366 | LIBS=$ac_check_lib_save_LIBS |
32367 | fi | |
32368 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
32369 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
32370 | if test $ac_cv_lib_dl_dlerror = yes; then | |
32371 | cat >>confdefs.h <<\_ACEOF | |
f6bcfd97 | 32372 | #define HAVE_DLERROR 1 |
e6cc62c6 | 32373 | _ACEOF |
f6bcfd97 | 32374 | |
f6bcfd97 BP |
32375 | fi |
32376 | ||
0e012a93 VZ |
32377 | |
32378 | ||
f6bcfd97 BP |
32379 | fi |
32380 | done | |
32381 | ||
3a922bb4 RL |
32382 | fi |
32383 | fi | |
f6bcfd97 | 32384 | |
3a922bb4 RL |
32385 | if test "$HAVE_DL_FUNCS" = 0; then |
32386 | if test "$HAVE_SHL_FUNCS" = 0; then | |
32387 | if test "$USE_UNIX" = 1; then | |
e6cc62c6 VS |
32388 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 |
32389 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
0b9ab0bd | 32390 | wxUSE_DYNAMIC_LOADER=no |
3a922bb4 RL |
32391 | wxUSE_DYNLIB_CLASS=no |
32392 | else | |
e6cc62c6 VS |
32393 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 |
32394 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
3a922bb4 RL |
32395 | fi |
32396 | fi | |
10f2d63a VZ |
32397 | fi |
32398 | fi | |
32399 | fi | |
32400 | ||
0b9ab0bd | 32401 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then |
e6cc62c6 | 32402 | cat >>confdefs.h <<\_ACEOF |
0b9ab0bd | 32403 | #define wxUSE_DYNAMIC_LOADER 1 |
e6cc62c6 | 32404 | _ACEOF |
0b9ab0bd | 32405 | |
1948bb32 VS |
32406 | fi |
32407 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
e6cc62c6 | 32408 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32409 | #define wxUSE_DYNLIB_CLASS 1 |
e6cc62c6 | 32410 | _ACEOF |
10f2d63a VZ |
32411 | |
32412 | fi | |
32413 | ||
8284b0c5 | 32414 | |
1e6feb95 | 32415 | if test "$wxUSE_FONTMAP" = "yes" ; then |
e6cc62c6 | 32416 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32417 | #define wxUSE_FONTMAP 1 |
e6cc62c6 | 32418 | _ACEOF |
1e6feb95 VZ |
32419 | |
32420 | fi | |
32421 | ||
10f2d63a | 32422 | if test "$wxUSE_UNICODE" = "yes" ; then |
e6cc62c6 | 32423 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32424 | #define wxUSE_UNICODE 1 |
e6cc62c6 | 32425 | _ACEOF |
10f2d63a | 32426 | |
8284b0c5 | 32427 | |
eb854003 | 32428 | if test "$USE_WIN32" != 1; then |
bbc3925a VS |
32429 | wxUSE_UNICODE_MSLU=no |
32430 | fi | |
a72a4bfa | 32431 | |
eb854003 | 32432 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then |
e6cc62c6 VS |
32433 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 |
32434 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
32435 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
32436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
a72a4bfa | 32437 | else |
e6cc62c6 | 32438 | ac_check_lib_save_LIBS=$LIBS |
a72a4bfa | 32439 | LIBS="-lunicows $LIBS" |
e6cc62c6 | 32440 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 32441 | #line $LINENO "configure" |
e6cc62c6 VS |
32442 | /* confdefs.h. */ |
32443 | _ACEOF | |
32444 | cat confdefs.h >>conftest.$ac_ext | |
32445 | cat >>conftest.$ac_ext <<_ACEOF | |
32446 | /* end confdefs.h. */ | |
a72a4bfa | 32447 | |
8284b0c5 | 32448 | |
e6cc62c6 VS |
32449 | int |
32450 | main () | |
32451 | { | |
32452 | main (); | |
32453 | ; | |
32454 | return 0; | |
32455 | } | |
32456 | _ACEOF | |
32457 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32458 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 32459 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
32460 | ac_status=$? |
32461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32462 | (exit $ac_status); } && | |
09d3439c | 32463 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
32464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32465 | (eval $ac_try) 2>&5 | |
32466 | ac_status=$? | |
32467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32468 | (exit $ac_status); }; }; then | |
32469 | ac_cv_lib_unicows_main=yes | |
32470 | else | |
32471 | echo "$as_me: failed program was:" >&5 | |
32472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32473 | ||
32474 | ac_cv_lib_unicows_main=no | |
32475 | fi | |
09d3439c | 32476 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
32477 | LIBS=$ac_check_lib_save_LIBS |
32478 | fi | |
32479 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
32480 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
32481 | if test $ac_cv_lib_unicows_main = yes; then | |
32482 | ||
32483 | cat >>confdefs.h <<\_ACEOF | |
a72a4bfa | 32484 | #define wxUSE_UNICODE_MSLU 1 |
e6cc62c6 VS |
32485 | _ACEOF |
32486 | ||
a72a4bfa | 32487 | |
a72a4bfa | 32488 | else |
a72a4bfa | 32489 | |
e6cc62c6 VS |
32490 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. |
32491 | Applications will only run on Windows NT/2000/XP!" >&5 | |
32492 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
32493 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
a72a4bfa | 32494 | wxUSE_UNICODE_MSLU=no |
e6cc62c6 | 32495 | |
a72a4bfa VS |
32496 | fi |
32497 | ||
32498 | fi | |
10f2d63a VZ |
32499 | fi |
32500 | ||
10f2d63a | 32501 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then |
e6cc62c6 | 32502 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32503 | #define wxUSE_EXPERIMENTAL_PRINTF 1 |
e6cc62c6 | 32504 | _ACEOF |
10f2d63a VZ |
32505 | |
32506 | fi | |
32507 | ||
8284b0c5 | 32508 | |
10f2d63a | 32509 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then |
e6cc62c6 | 32510 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32511 | #define wxUSE_POSTSCRIPT 1 |
e6cc62c6 | 32512 | _ACEOF |
10f2d63a VZ |
32513 | |
32514 | fi | |
32515 | ||
e6cc62c6 | 32516 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32517 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 |
e6cc62c6 | 32518 | _ACEOF |
10f2d63a | 32519 | |
8284b0c5 | 32520 | |
e6cc62c6 | 32521 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32522 | #define wxUSE_NORMALIZED_PS_FONTS 1 |
e6cc62c6 | 32523 | _ACEOF |
10f2d63a | 32524 | |
8284b0c5 MB |
32525 | |
32526 | ||
10f2d63a | 32527 | if test "$wxUSE_CONSTRAINTS" = "yes"; then |
e6cc62c6 | 32528 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32529 | #define wxUSE_CONSTRAINTS 1 |
e6cc62c6 | 32530 | _ACEOF |
10f2d63a VZ |
32531 | |
32532 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
32533 | fi | |
32534 | ||
3879ecda | 32535 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then |
1772d20c | 32536 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32537 | #define wxUSE_MDI_ARCHITECTURE 1 |
e6cc62c6 | 32538 | _ACEOF |
10f2d63a | 32539 | |
1772d20c | 32540 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
10f2d63a VZ |
32541 | fi |
32542 | ||
32543 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
e6cc62c6 | 32544 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32545 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 |
e6cc62c6 | 32546 | _ACEOF |
10f2d63a VZ |
32547 | |
32548 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
32549 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
32550 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
32551 | fi | |
32552 | fi | |
32553 | ||
32554 | if test "$wxUSE_HELP" = "yes"; then | |
e6cc62c6 | 32555 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32556 | #define wxUSE_HELP 1 |
e6cc62c6 | 32557 | _ACEOF |
10f2d63a VZ |
32558 | |
32559 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
3379ed37 | 32560 | |
77e13408 | 32561 | if test "$wxUSE_MSW" = 1; then |
031d8228 | 32562 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then |
e6cc62c6 | 32563 | cat >>confdefs.h <<\_ACEOF |
29fd3c0c | 32564 | #define wxUSE_MS_HTML_HELP 1 |
e6cc62c6 | 32565 | _ACEOF |
29fd3c0c | 32566 | |
3e44f09d | 32567 | fi |
3379ed37 | 32568 | fi |
031d8228 VS |
32569 | |
32570 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
32571 | if test "$wxUSE_HTML" = "yes"; then | |
e6cc62c6 | 32572 | cat >>confdefs.h <<\_ACEOF |
031d8228 | 32573 | #define wxUSE_WXHTML_HELP 1 |
e6cc62c6 | 32574 | _ACEOF |
031d8228 VS |
32575 | |
32576 | else | |
e6cc62c6 VS |
32577 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 |
32578 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
031d8228 VS |
32579 | wxUSE_WXHTML_HELP=no |
32580 | fi | |
32581 | fi | |
10f2d63a VZ |
32582 | fi |
32583 | ||
32584 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
32585 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
32586 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 |
32587 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
10f2d63a | 32588 | else |
e6cc62c6 | 32589 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32590 | #define wxUSE_PRINTING_ARCHITECTURE 1 |
e6cc62c6 | 32591 | _ACEOF |
10f2d63a VZ |
32592 | |
32593 | fi | |
32594 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
32595 | fi | |
32596 | ||
e6cc62c6 VS |
32597 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then |
32598 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
32599 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
32600 | { (exit 1); exit 1; }; } | |
32601 | fi | |
32602 | ||
32603 | ||
32604 | if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
32605 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
32606 | -o "$wxUSE_OLE" = "yes" \ | |
32607 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
32608 | ||
32609 | for ac_header in ole2.h | |
32610 | do | |
32611 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
32612 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32613 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32614 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32615 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32617 | fi | |
32618 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32619 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32620 | else | |
32621 | # Is the header compilable? | |
32622 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
32623 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
32624 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 32625 | #line $LINENO "configure" |
e6cc62c6 VS |
32626 | /* confdefs.h. */ |
32627 | _ACEOF | |
32628 | cat confdefs.h >>conftest.$ac_ext | |
32629 | cat >>conftest.$ac_ext <<_ACEOF | |
32630 | /* end confdefs.h. */ | |
32631 | $ac_includes_default | |
32632 | #include <$ac_header> | |
32633 | _ACEOF | |
32634 | rm -f conftest.$ac_objext | |
32635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 32636 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
32637 | ac_status=$? |
32638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32639 | (exit $ac_status); } && | |
09d3439c | 32640 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
32641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32642 | (eval $ac_try) 2>&5 | |
32643 | ac_status=$? | |
32644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32645 | (exit $ac_status); }; }; then | |
32646 | ac_header_compiler=yes | |
32647 | else | |
32648 | echo "$as_me: failed program was:" >&5 | |
32649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32650 | ||
32651 | ac_header_compiler=no | |
32652 | fi | |
09d3439c | 32653 | rm -f conftest.$ac_objext conftest.$ac_ext |
e6cc62c6 VS |
32654 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
32655 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
32656 | ||
32657 | # Is the header present? | |
32658 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
32659 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
32660 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 32661 | #line $LINENO "configure" |
e6cc62c6 VS |
32662 | /* confdefs.h. */ |
32663 | _ACEOF | |
32664 | cat confdefs.h >>conftest.$ac_ext | |
32665 | cat >>conftest.$ac_ext <<_ACEOF | |
32666 | /* end confdefs.h. */ | |
32667 | #include <$ac_header> | |
32668 | _ACEOF | |
32669 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
32670 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
32671 | ac_status=$? | |
32672 | grep -v '^ *+' conftest.er1 >conftest.err | |
32673 | rm -f conftest.er1 | |
32674 | cat conftest.err >&5 | |
32675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32676 | (exit $ac_status); } >/dev/null; then | |
32677 | if test -s conftest.err; then | |
32678 | ac_cpp_err=$ac_c_preproc_warn_flag | |
32679 | else | |
32680 | ac_cpp_err= | |
32681 | fi | |
32682 | else | |
32683 | ac_cpp_err=yes | |
32684 | fi | |
32685 | if test -z "$ac_cpp_err"; then | |
32686 | ac_header_preproc=yes | |
32687 | else | |
32688 | echo "$as_me: failed program was:" >&5 | |
32689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32690 | ||
32691 | ac_header_preproc=no | |
32692 | fi | |
32693 | rm -f conftest.err conftest.$ac_ext | |
32694 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32695 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32696 | ||
32697 | # So? What about this header? | |
09d3439c VZ |
32698 | case $ac_header_compiler:$ac_header_preproc in |
32699 | yes:no ) | |
e6cc62c6 VS |
32700 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32701 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
09d3439c VZ |
32702 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32703 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32704 | ( | |
32705 | cat <<\_ASBOX | |
32706 | ## ------------------------------------ ## | |
32707 | ## Report this to bug-autoconf@gnu.org. ## | |
32708 | ## ------------------------------------ ## | |
32709 | _ASBOX | |
32710 | ) | | |
32711 | sed "s/^/$as_me: WARNING: /" >&2 | |
e6cc62c6 | 32712 | ;; |
09d3439c | 32713 | no:yes ) |
e6cc62c6 VS |
32714 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32715 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
09d3439c VZ |
32716 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32717 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
e6cc62c6 VS |
32718 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32719 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32720 | ( | |
32721 | cat <<\_ASBOX | |
09d3439c VZ |
32722 | ## ------------------------------------ ## |
32723 | ## Report this to bug-autoconf@gnu.org. ## | |
32724 | ## ------------------------------------ ## | |
e6cc62c6 VS |
32725 | _ASBOX |
32726 | ) | | |
32727 | sed "s/^/$as_me: WARNING: /" >&2 | |
32728 | ;; | |
32729 | esac | |
32730 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32731 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32732 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32733 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32734 | else | |
09d3439c | 32735 | eval "$as_ac_Header=$ac_header_preproc" |
e6cc62c6 VS |
32736 | fi |
32737 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32738 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32739 | ||
10f2d63a | 32740 | fi |
e6cc62c6 VS |
32741 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
32742 | cat >>confdefs.h <<_ACEOF | |
32743 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32744 | _ACEOF | |
10f2d63a | 32745 | |
10f2d63a | 32746 | fi |
e6cc62c6 | 32747 | |
10f2d63a VZ |
32748 | done |
32749 | ||
8284b0c5 | 32750 | |
2b9bdf71 VZ |
32751 | if test "$ac_cv_header_ole2_h" = "yes" ; then |
32752 | if test "$GCC" = yes ; then | |
8284b0c5 MB |
32753 | |
32754 | ||
e6cc62c6 VS |
32755 | ac_ext=cc |
32756 | ac_cpp='$CXXCPP $CPPFLAGS' | |
32757 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
32758 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32759 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
32760 | ||
32761 | ||
32762 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
32763 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
32764 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 32765 | #line $LINENO "configure" |
e6cc62c6 VS |
32766 | /* confdefs.h. */ |
32767 | _ACEOF | |
32768 | cat confdefs.h >>conftest.$ac_ext | |
32769 | cat >>conftest.$ac_ext <<_ACEOF | |
32770 | /* end confdefs.h. */ | |
8284b0c5 MB |
32771 | #include <windows.h> |
32772 | #include <ole2.h> | |
e6cc62c6 VS |
32773 | int |
32774 | main () | |
32775 | { | |
8284b0c5 | 32776 | |
e6cc62c6 VS |
32777 | ; |
32778 | return 0; | |
32779 | } | |
32780 | _ACEOF | |
32781 | rm -f conftest.$ac_objext | |
32782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 32783 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
32784 | ac_status=$? |
32785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32786 | (exit $ac_status); } && | |
09d3439c | 32787 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
32788 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32789 | (eval $ac_try) 2>&5 | |
32790 | ac_status=$? | |
32791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32792 | (exit $ac_status); }; }; then | |
32793 | echo "$as_me:$LINENO: result: no" >&5 | |
32794 | echo "${ECHO_T}no" >&6 | |
32795 | else | |
32796 | echo "$as_me: failed program was:" >&5 | |
32797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32798 | ||
32799 | echo "$as_me:$LINENO: result: yes" >&5 | |
32800 | echo "${ECHO_T}yes" >&6 | |
8284b0c5 MB |
32801 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" |
32802 | fi | |
09d3439c | 32803 | rm -f conftest.$ac_objext conftest.$ac_ext |
8284b0c5 | 32804 | ac_ext=c |
8284b0c5 | 32805 | ac_cpp='$CPP $CPPFLAGS' |
e6cc62c6 VS |
32806 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
32807 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
32808 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8284b0c5 | 32809 | |
2b9bdf71 | 32810 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" |
3d63bc3a | 32811 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" |
e6cc62c6 | 32812 | cat >>confdefs.h <<\_ACEOF |
4f11a343 | 32813 | #define wxUSE_OLE 1 |
e6cc62c6 | 32814 | _ACEOF |
4f11a343 | 32815 | |
8284b0c5 | 32816 | |
2b9bdf71 VZ |
32817 | fi |
32818 | ||
e6cc62c6 | 32819 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32820 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32821 | _ACEOF |
2b9bdf71 VZ |
32822 | |
32823 | else | |
e6cc62c6 VS |
32824 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 |
32825 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
2b9bdf71 VZ |
32826 | |
32827 | wxUSE_CLIPBOARD=no | |
32828 | wxUSE_DRAG_AND_DROP=no | |
32829 | wxUSE_DATAOBJ=no | |
3bce6687 JS |
32830 | wxUSE_OLE=no |
32831 | fi | |
32832 | ||
32833 | if test "$wxUSE_METAFILE" = "yes"; then | |
e6cc62c6 | 32834 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32835 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 32836 | _ACEOF |
3bce6687 JS |
32837 | |
32838 | ||
e6cc62c6 | 32839 | cat >>confdefs.h <<\_ACEOF |
3bce6687 | 32840 | #define wxUSE_ENH_METAFILE 1 |
e6cc62c6 | 32841 | _ACEOF |
3bce6687 JS |
32842 | |
32843 | fi | |
32844 | fi | |
32845 | ||
2b9bdf71 VZ |
32846 | if test "$wxUSE_IPC" = "yes"; then |
32847 | if test "$wxUSE_SOCKETS" != "yes"; then | |
e6cc62c6 VS |
32848 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 |
32849 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
2b9bdf71 VZ |
32850 | fi |
32851 | ||
e6cc62c6 | 32852 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32853 | #define wxUSE_IPC 1 |
e6cc62c6 | 32854 | _ACEOF |
2b9bdf71 VZ |
32855 | |
32856 | fi | |
32857 | ||
32858 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
6c657b52 | 32859 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32860 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 |
32861 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32862 | wxUSE_CLIPBOARD=no |
32863 | fi | |
32864 | ||
32865 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
e6cc62c6 | 32866 | cat >>confdefs.h <<\_ACEOF |
2b9bdf71 | 32867 | #define wxUSE_CLIPBOARD 1 |
e6cc62c6 | 32868 | _ACEOF |
2b9bdf71 | 32869 | |
8284b0c5 | 32870 | |
e6cc62c6 | 32871 | cat >>confdefs.h <<\_ACEOF |
673f4220 | 32872 | #define wxUSE_DATAOBJ 1 |
e6cc62c6 | 32873 | _ACEOF |
673f4220 | 32874 | |
6c657b52 | 32875 | fi |
2b9bdf71 VZ |
32876 | fi |
32877 | ||
32878 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
32879 | if test "$wxUSE_GTK" = 1; then | |
32880 | if test "$WXGTK12" != 1; then | |
e6cc62c6 VS |
32881 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 |
32882 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
10f2d63a VZ |
32883 | wxUSE_DRAG_AND_DROP=no |
32884 | fi | |
32885 | fi | |
32886 | ||
2b9bdf71 | 32887 | if test "$wxUSE_MOTIF" = 1; then |
e6cc62c6 VS |
32888 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 |
32889 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
2b9bdf71 VZ |
32890 | wxUSE_DRAG_AND_DROP=no |
32891 | fi | |
32892 | ||
f79bd02d | 32893 | if test "$wxUSE_X11" = 1; then |
e6cc62c6 VS |
32894 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 |
32895 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
f79bd02d JS |
32896 | wxUSE_DRAG_AND_DROP=no |
32897 | fi | |
32898 | ||
6c657b52 | 32899 | if test "$wxUSE_MGL" = 1; then |
e6cc62c6 VS |
32900 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 |
32901 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
6c657b52 VS |
32902 | wxUSE_DRAG_AND_DROP=no |
32903 | fi | |
32904 | ||
10f2d63a | 32905 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then |
e6cc62c6 | 32906 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32907 | #define wxUSE_DRAG_AND_DROP 1 |
e6cc62c6 | 32908 | _ACEOF |
10f2d63a VZ |
32909 | |
32910 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
32911 | fi | |
32912 | ||
32913 | fi | |
32914 | ||
32915 | if test "$wxUSE_SPLINES" = "yes" ; then | |
e6cc62c6 | 32916 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32917 | #define wxUSE_SPLINES 1 |
e6cc62c6 | 32918 | _ACEOF |
10f2d63a VZ |
32919 | |
32920 | fi | |
32921 | ||
8284b0c5 | 32922 | |
1e6feb95 VZ |
32923 | USES_CONTROLS=0 |
32924 | if test "$wxUSE_CONTROLS" = "yes"; then | |
32925 | USES_CONTROLS=1 | |
32926 | fi | |
32927 | ||
10f2d63a | 32928 | if test "$wxUSE_ACCEL" = "yes"; then |
e6cc62c6 | 32929 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32930 | #define wxUSE_ACCEL 1 |
e6cc62c6 | 32931 | _ACEOF |
10f2d63a | 32932 | |
1e6feb95 VZ |
32933 | USES_CONTROLS=1 |
32934 | fi | |
32935 | ||
32936 | if test "$wxUSE_BUTTON" = "yes"; then | |
e6cc62c6 | 32937 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32938 | #define wxUSE_BUTTON 1 |
e6cc62c6 | 32939 | _ACEOF |
1e6feb95 VZ |
32940 | |
32941 | USES_CONTROLS=1 | |
32942 | fi | |
32943 | ||
32944 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
e6cc62c6 | 32945 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32946 | #define wxUSE_BMPBUTTON 1 |
e6cc62c6 | 32947 | _ACEOF |
1e6feb95 VZ |
32948 | |
32949 | USES_CONTROLS=1 | |
32950 | fi | |
32951 | ||
32952 | if test "$wxUSE_CALCTRL" = "yes"; then | |
e6cc62c6 | 32953 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 32954 | #define wxUSE_CALENDARCTRL 1 |
e6cc62c6 | 32955 | _ACEOF |
1e6feb95 VZ |
32956 | |
32957 | USES_CONTROLS=1 | |
32958 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
10f2d63a VZ |
32959 | fi |
32960 | ||
32961 | if test "$wxUSE_CARET" = "yes"; then | |
e6cc62c6 | 32962 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32963 | #define wxUSE_CARET 1 |
e6cc62c6 | 32964 | _ACEOF |
10f2d63a | 32965 | |
1e6feb95 | 32966 | USES_CONTROLS=1 |
10f2d63a VZ |
32967 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" |
32968 | fi | |
32969 | ||
32970 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
e6cc62c6 | 32971 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32972 | #define wxUSE_COMBOBOX 1 |
e6cc62c6 | 32973 | _ACEOF |
10f2d63a | 32974 | |
1e6feb95 | 32975 | USES_CONTROLS=1 |
10f2d63a VZ |
32976 | fi |
32977 | ||
32978 | if test "$wxUSE_CHOICE" = "yes"; then | |
e6cc62c6 | 32979 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32980 | #define wxUSE_CHOICE 1 |
e6cc62c6 | 32981 | _ACEOF |
10f2d63a | 32982 | |
1e6feb95 | 32983 | USES_CONTROLS=1 |
10f2d63a VZ |
32984 | fi |
32985 | ||
32986 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
e6cc62c6 | 32987 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32988 | #define wxUSE_CHECKBOX 1 |
e6cc62c6 | 32989 | _ACEOF |
10f2d63a | 32990 | |
1e6feb95 | 32991 | USES_CONTROLS=1 |
10f2d63a VZ |
32992 | fi |
32993 | ||
32994 | if test "$wxUSE_CHECKLST" = "yes"; then | |
e6cc62c6 | 32995 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 32996 | #define wxUSE_CHECKLISTBOX 1 |
e6cc62c6 | 32997 | _ACEOF |
10f2d63a | 32998 | |
1e6feb95 | 32999 | USES_CONTROLS=1 |
10f2d63a VZ |
33000 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" |
33001 | fi | |
33002 | ||
da494b40 | 33003 | if test "$wxUSE_DISPLAY" = "yes"; then |
e6cc62c6 | 33004 | cat >>confdefs.h <<\_ACEOF |
da494b40 | 33005 | #define wxUSE_DISPLAY 1 |
e6cc62c6 | 33006 | _ACEOF |
da494b40 MB |
33007 | |
33008 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
33009 | fi | |
33010 | ||
10f2d63a | 33011 | if test "$wxUSE_GAUGE" = "yes"; then |
e6cc62c6 | 33012 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33013 | #define wxUSE_GAUGE 1 |
e6cc62c6 | 33014 | _ACEOF |
10f2d63a | 33015 | |
1e6feb95 | 33016 | USES_CONTROLS=1 |
10f2d63a VZ |
33017 | fi |
33018 | ||
d6a55c4b | 33019 | if test "$wxUSE_GRID" = "yes"; then |
e6cc62c6 | 33020 | cat >>confdefs.h <<\_ACEOF |
d6a55c4b | 33021 | #define wxUSE_GRID 1 |
e6cc62c6 | 33022 | _ACEOF |
10f2d63a | 33023 | |
1e6feb95 | 33024 | USES_CONTROLS=1 |
d6a55c4b | 33025 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" |
10f2d63a VZ |
33026 | fi |
33027 | ||
33028 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 33029 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33030 | #define wxUSE_IMAGLIST 1 |
e6cc62c6 | 33031 | _ACEOF |
10f2d63a VZ |
33032 | |
33033 | fi | |
33034 | ||
0e012a93 VZ |
33035 | if test "$wxUSE_LISTBOOK" = "yes"; then |
33036 | cat >>confdefs.h <<\_ACEOF | |
33037 | #define wxUSE_LISTBOOK 1 | |
33038 | _ACEOF | |
33039 | ||
33040 | USES_CONTROLS=1 | |
33041 | fi | |
33042 | ||
10f2d63a | 33043 | if test "$wxUSE_LISTBOX" = "yes"; then |
e6cc62c6 | 33044 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33045 | #define wxUSE_LISTBOX 1 |
e6cc62c6 | 33046 | _ACEOF |
10f2d63a | 33047 | |
1e6feb95 | 33048 | USES_CONTROLS=1 |
10f2d63a VZ |
33049 | fi |
33050 | ||
33051 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
33052 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 33053 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33054 | #define wxUSE_LISTCTRL 1 |
e6cc62c6 | 33055 | _ACEOF |
10f2d63a | 33056 | |
1e6feb95 | 33057 | USES_CONTROLS=1 |
10f2d63a VZ |
33058 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" |
33059 | else | |
e6cc62c6 VS |
33060 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 |
33061 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
33062 | fi |
33063 | fi | |
33064 | ||
33065 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
e6cc62c6 | 33066 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33067 | #define wxUSE_NOTEBOOK 1 |
e6cc62c6 | 33068 | _ACEOF |
10f2d63a | 33069 | |
1e6feb95 | 33070 | USES_CONTROLS=1 |
10f2d63a VZ |
33071 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" |
33072 | fi | |
33073 | ||
24176f2c | 33074 | |
10f2d63a | 33075 | if test "$wxUSE_RADIOBOX" = "yes"; then |
e6cc62c6 | 33076 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33077 | #define wxUSE_RADIOBOX 1 |
e6cc62c6 | 33078 | _ACEOF |
10f2d63a | 33079 | |
1e6feb95 | 33080 | USES_CONTROLS=1 |
10f2d63a VZ |
33081 | fi |
33082 | ||
33083 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
e6cc62c6 | 33084 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33085 | #define wxUSE_RADIOBTN 1 |
e6cc62c6 | 33086 | _ACEOF |
10f2d63a | 33087 | |
1e6feb95 | 33088 | USES_CONTROLS=1 |
10f2d63a VZ |
33089 | fi |
33090 | ||
33091 | if test "$wxUSE_SASH" = "yes"; then | |
e6cc62c6 | 33092 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33093 | #define wxUSE_SASH 1 |
e6cc62c6 | 33094 | _ACEOF |
10f2d63a VZ |
33095 | |
33096 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
33097 | fi | |
33098 | ||
33099 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
e6cc62c6 | 33100 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33101 | #define wxUSE_SCROLLBAR 1 |
e6cc62c6 | 33102 | _ACEOF |
10f2d63a | 33103 | |
1e6feb95 | 33104 | USES_CONTROLS=1 |
741a9306 | 33105 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" |
10f2d63a VZ |
33106 | fi |
33107 | ||
33108 | if test "$wxUSE_SLIDER" = "yes"; then | |
e6cc62c6 | 33109 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33110 | #define wxUSE_SLIDER 1 |
e6cc62c6 | 33111 | _ACEOF |
10f2d63a | 33112 | |
1e6feb95 | 33113 | USES_CONTROLS=1 |
10f2d63a VZ |
33114 | fi |
33115 | ||
33116 | if test "$wxUSE_SPINBTN" = "yes"; then | |
e6cc62c6 | 33117 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33118 | #define wxUSE_SPINBTN 1 |
e6cc62c6 | 33119 | _ACEOF |
10f2d63a | 33120 | |
1e6feb95 | 33121 | USES_CONTROLS=1 |
10f2d63a VZ |
33122 | fi |
33123 | ||
56cfaa52 | 33124 | if test "$wxUSE_SPINCTRL" = "yes"; then |
e6cc62c6 | 33125 | cat >>confdefs.h <<\_ACEOF |
56cfaa52 | 33126 | #define wxUSE_SPINCTRL 1 |
e6cc62c6 | 33127 | _ACEOF |
56cfaa52 | 33128 | |
1e6feb95 | 33129 | USES_CONTROLS=1 |
56cfaa52 RR |
33130 | fi |
33131 | ||
10f2d63a | 33132 | if test "$wxUSE_SPLITTER" = "yes"; then |
e6cc62c6 | 33133 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33134 | #define wxUSE_SPLITTER 1 |
e6cc62c6 | 33135 | _ACEOF |
10f2d63a VZ |
33136 | |
33137 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
33138 | fi | |
33139 | ||
33140 | if test "$wxUSE_STATBMP" = "yes"; then | |
e6cc62c6 | 33141 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33142 | #define wxUSE_STATBMP 1 |
e6cc62c6 | 33143 | _ACEOF |
10f2d63a | 33144 | |
1e6feb95 | 33145 | USES_CONTROLS=1 |
10f2d63a VZ |
33146 | fi |
33147 | ||
33148 | if test "$wxUSE_STATBOX" = "yes"; then | |
e6cc62c6 | 33149 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33150 | #define wxUSE_STATBOX 1 |
e6cc62c6 | 33151 | _ACEOF |
10f2d63a | 33152 | |
1e6feb95 VZ |
33153 | USES_CONTROLS=1 |
33154 | fi | |
33155 | ||
33156 | if test "$wxUSE_STATTEXT" = "yes"; then | |
e6cc62c6 | 33157 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33158 | #define wxUSE_STATTEXT 1 |
e6cc62c6 | 33159 | _ACEOF |
1e6feb95 VZ |
33160 | |
33161 | USES_CONTROLS=1 | |
10f2d63a VZ |
33162 | fi |
33163 | ||
33164 | if test "$wxUSE_STATLINE" = "yes"; then | |
e6cc62c6 | 33165 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33166 | #define wxUSE_STATLINE 1 |
e6cc62c6 | 33167 | _ACEOF |
10f2d63a | 33168 | |
89e6bf6d | 33169 | USES_CONTROLS=1 |
10f2d63a VZ |
33170 | fi |
33171 | ||
33172 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
e6cc62c6 | 33173 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33174 | #define wxUSE_STATUSBAR 1 |
e6cc62c6 | 33175 | _ACEOF |
10f2d63a | 33176 | |
1e6feb95 | 33177 | USES_CONTROLS=1 |
698dcdb6 | 33178 | |
2286341c | 33179 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" |
10f2d63a VZ |
33180 | fi |
33181 | ||
33182 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
e6cc62c6 | 33183 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33184 | #define wxUSE_TAB_DIALOG 1 |
e6cc62c6 | 33185 | _ACEOF |
10f2d63a VZ |
33186 | |
33187 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
33188 | fi | |
33189 | ||
1e6feb95 | 33190 | if test "$wxUSE_TEXTCTRL" = "yes"; then |
e6cc62c6 | 33191 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33192 | #define wxUSE_TEXTCTRL 1 |
e6cc62c6 | 33193 | _ACEOF |
1e6feb95 VZ |
33194 | |
33195 | USES_CONTROLS=1 | |
33196 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
33197 | fi | |
33198 | ||
1db8dc4a | 33199 | if test "$wxUSE_TOGGLEBTN" = "yes"; then |
ac0c4cc3 | 33200 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
33201 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 |
33202 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
156b2523 GD |
33203 | wxUSE_TOGGLEBTN=no |
33204 | fi | |
33205 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
e6cc62c6 VS |
33206 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 |
33207 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
a45d7ab7 GD |
33208 | wxUSE_TOGGLEBTN=no |
33209 | fi | |
33210 | ||
33211 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
e6cc62c6 | 33212 | cat >>confdefs.h <<\_ACEOF |
1db8dc4a | 33213 | #define wxUSE_TOGGLEBTN 1 |
e6cc62c6 | 33214 | _ACEOF |
1db8dc4a | 33215 | |
1e6feb95 | 33216 | USES_CONTROLS=1 |
a45d7ab7 | 33217 | fi |
1db8dc4a VZ |
33218 | fi |
33219 | ||
360d6699 | 33220 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then |
e6cc62c6 | 33221 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 33222 | #define wxUSE_TOOLBAR_SIMPLE 1 |
e6cc62c6 | 33223 | _ACEOF |
360d6699 VZ |
33224 | |
33225 | wxUSE_TOOLBAR="yes" | |
1e6feb95 | 33226 | USES_CONTROLS=1 |
360d6699 VZ |
33227 | fi |
33228 | ||
10f2d63a | 33229 | if test "$wxUSE_TOOLBAR" = "yes"; then |
e6cc62c6 | 33230 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33231 | #define wxUSE_TOOLBAR 1 |
e6cc62c6 | 33232 | _ACEOF |
10f2d63a | 33233 | |
1e6feb95 | 33234 | USES_CONTROLS=1 |
698dcdb6 | 33235 | |
360d6699 VZ |
33236 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then |
33237 | wxUSE_TOOLBAR_NATIVE="yes" | |
33238 | fi | |
33239 | ||
1e6feb95 | 33240 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then |
e6cc62c6 | 33241 | cat >>confdefs.h <<\_ACEOF |
360d6699 | 33242 | #define wxUSE_TOOLBAR_NATIVE 1 |
e6cc62c6 | 33243 | _ACEOF |
360d6699 | 33244 | |
1e6feb95 VZ |
33245 | USES_CONTROLS=1 |
33246 | fi | |
33247 | ||
33248 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
360d6699 VZ |
33249 | fi |
33250 | ||
10f2d63a VZ |
33251 | if test "$wxUSE_TOOLTIPS" = "yes"; then |
33252 | if test "$wxUSE_MOTIF" = 1; then | |
e6cc62c6 VS |
33253 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 |
33254 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
10f2d63a | 33255 | else |
89e6bf6d | 33256 | if test "$wxUSE_UNIVERSAL" = "yes"; then |
e6cc62c6 VS |
33257 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 |
33258 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
10f2d63a | 33259 | else |
e6cc62c6 | 33260 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33261 | #define wxUSE_TOOLTIPS 1 |
e6cc62c6 | 33262 | _ACEOF |
10f2d63a VZ |
33263 | |
33264 | fi | |
33265 | fi | |
33266 | fi | |
33267 | ||
33268 | if test "$wxUSE_TREECTRL" = "yes"; then | |
33269 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
e6cc62c6 | 33270 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33271 | #define wxUSE_TREECTRL 1 |
e6cc62c6 | 33272 | _ACEOF |
10f2d63a | 33273 | |
1e6feb95 | 33274 | USES_CONTROLS=1 |
10f2d63a VZ |
33275 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" |
33276 | else | |
e6cc62c6 VS |
33277 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 |
33278 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
10f2d63a VZ |
33279 | fi |
33280 | fi | |
33281 | ||
9f41d601 | 33282 | if test "$wxUSE_POPUPWIN" = "yes"; then |
ac0c4cc3 | 33283 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then |
e6cc62c6 VS |
33284 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 |
33285 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
6abe4b65 | 33286 | else |
833a51f6 MB |
33287 | if test "$wxUSE_PM" = 1; then |
33288 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
e6cc62c6 | 33289 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} |
833a51f6 MB |
33290 | else |
33291 | cat >>confdefs.h <<\_ACEOF | |
9f41d601 | 33292 | #define wxUSE_POPUPWIN 1 |
e6cc62c6 | 33293 | _ACEOF |
9f41d601 | 33294 | |
8284b0c5 | 33295 | |
833a51f6 | 33296 | USES_CONTROLS=1 |
485cf710 | 33297 | fi |
6abe4b65 | 33298 | fi |
9f41d601 RR |
33299 | fi |
33300 | ||
dd964dcc | 33301 | if test "$wxUSE_TIPWINDOW" = "yes"; then |
3c011993 | 33302 | if test "$wxUSE_PM" = 1; then |
e6cc62c6 VS |
33303 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 |
33304 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
3bd8fb5f | 33305 | else |
e6cc62c6 | 33306 | cat >>confdefs.h <<\_ACEOF |
dd964dcc | 33307 | #define wxUSE_TIPWINDOW 1 |
e6cc62c6 | 33308 | _ACEOF |
dd964dcc | 33309 | |
3c011993 | 33310 | fi |
dd964dcc VZ |
33311 | fi |
33312 | ||
1e6feb95 | 33313 | if test "$USES_CONTROLS" = 1; then |
e6cc62c6 | 33314 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33315 | #define wxUSE_CONTROLS 1 |
e6cc62c6 | 33316 | _ACEOF |
10f2d63a | 33317 | |
10f2d63a VZ |
33318 | fi |
33319 | ||
8284b0c5 | 33320 | |
e46d2a18 VS |
33321 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then |
33322 | cat >>confdefs.h <<\_ACEOF | |
33323 | #define wxUSE_ACCESSIBILITY 1 | |
33324 | _ACEOF | |
33325 | ||
33326 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
33327 | fi | |
1e6feb95 | 33328 | |
24fd6d87 | 33329 | if test "$wxUSE_DRAGIMAGE" = "yes"; then |
e6cc62c6 | 33330 | cat >>confdefs.h <<\_ACEOF |
24fd6d87 | 33331 | #define wxUSE_DRAGIMAGE 1 |
e6cc62c6 | 33332 | _ACEOF |
24fd6d87 VZ |
33333 | |
33334 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
33335 | fi | |
33336 | ||
e46d2a18 | 33337 | if test "$wxUSE_EXCEPTIONS" = "yes"; then |
e6cc62c6 | 33338 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 33339 | #define wxUSE_EXCEPTIONS 1 |
e6cc62c6 | 33340 | _ACEOF |
7bb2947d | 33341 | |
e46d2a18 VS |
33342 | fi |
33343 | ||
33344 | USE_HTML=0 | |
33345 | if test "$wxUSE_HTML" = "yes"; then | |
33346 | cat >>confdefs.h <<\_ACEOF | |
33347 | #define wxUSE_HTML 1 | |
33348 | _ACEOF | |
33349 | ||
33350 | USE_HTML=1 | |
33351 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
7bb2947d MB |
33352 | fi |
33353 | ||
1e6feb95 | 33354 | if test "$wxUSE_MENUS" = "yes"; then |
e6cc62c6 | 33355 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33356 | #define wxUSE_MENUS 1 |
e6cc62c6 | 33357 | _ACEOF |
10f2d63a | 33358 | |
1e6feb95 | 33359 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" |
10f2d63a VZ |
33360 | fi |
33361 | ||
1e6feb95 | 33362 | if test "$wxUSE_METAFILE" = "yes"; then |
e6cc62c6 | 33363 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33364 | #define wxUSE_METAFILE 1 |
e6cc62c6 | 33365 | _ACEOF |
10f2d63a | 33366 | |
10f2d63a VZ |
33367 | fi |
33368 | ||
1e6feb95 | 33369 | if test "$wxUSE_MIMETYPE" = "yes"; then |
e6cc62c6 | 33370 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33371 | #define wxUSE_MIMETYPE 1 |
e6cc62c6 | 33372 | _ACEOF |
10f2d63a | 33373 | |
10f2d63a VZ |
33374 | fi |
33375 | ||
33376 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
e6cc62c6 | 33377 | cat >>confdefs.h <<\_ACEOF |
10f2d63a | 33378 | #define wxUSE_MINIFRAME 1 |
e6cc62c6 | 33379 | _ACEOF |
10f2d63a VZ |
33380 | |
33381 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
33382 | fi | |
33383 | ||
e46d2a18 | 33384 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then |
e6cc62c6 | 33385 | cat >>confdefs.h <<\_ACEOF |
e46d2a18 | 33386 | #define wxUSE_SYSTEM_OPTIONS 1 |
e6cc62c6 | 33387 | _ACEOF |
10f2d63a | 33388 | |
e46d2a18 VS |
33389 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ |
33390 | "$TOOLKIT" = "MOTIF"; then | |
33391 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
33392 | fi | |
10f2d63a VZ |
33393 | fi |
33394 | ||
e46d2a18 | 33395 | |
10f2d63a | 33396 | if test "$wxUSE_VALIDATORS" = "yes"; then |
e6cc62c6 | 33397 | cat >>confdefs.h <<\_ACEOF |
1e487827 | 33398 | #define wxUSE_VALIDATORS 1 |
e6cc62c6 | 33399 | _ACEOF |
703e0a69 | 33400 | |
698dcdb6 VZ |
33401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" |
33402 | fi | |
33403 | ||
edae8572 | 33404 | if test "$wxUSE_PALETTE" = "yes" ; then |
e6cc62c6 | 33405 | cat >>confdefs.h <<\_ACEOF |
edae8572 | 33406 | #define wxUSE_PALETTE 1 |
e6cc62c6 | 33407 | _ACEOF |
edae8572 VZ |
33408 | |
33409 | fi | |
33410 | ||
e46d2a18 VS |
33411 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then |
33412 | LIBS=" -lunicows $LIBS" | |
33413 | fi | |
33414 | ||
33415 | ||
698dcdb6 | 33416 | if test "$wxUSE_IMAGE" = "yes" ; then |
e46d2a18 | 33417 | cat >>confdefs.h <<\_ACEOF |
698dcdb6 | 33418 | #define wxUSE_IMAGE 1 |
e6cc62c6 | 33419 | _ACEOF |
698dcdb6 | 33420 | |
698dcdb6 | 33421 | |
e46d2a18 VS |
33422 | if test "$wxUSE_GIF" = "yes" ; then |
33423 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 33424 | #define wxUSE_GIF 1 |
e6cc62c6 | 33425 | _ACEOF |
698dcdb6 | 33426 | |
e46d2a18 | 33427 | fi |
698dcdb6 | 33428 | |
e46d2a18 VS |
33429 | if test "$wxUSE_PCX" = "yes" ; then |
33430 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 33431 | #define wxUSE_PCX 1 |
e6cc62c6 | 33432 | _ACEOF |
698dcdb6 | 33433 | |
e46d2a18 | 33434 | fi |
698dcdb6 | 33435 | |
e46d2a18 VS |
33436 | if test "$wxUSE_IFF" = "yes" ; then |
33437 | cat >>confdefs.h <<\_ACEOF | |
4b6b4dfc | 33438 | #define wxUSE_IFF 1 |
e6cc62c6 | 33439 | _ACEOF |
4b6b4dfc | 33440 | |
e46d2a18 | 33441 | fi |
4b6b4dfc | 33442 | |
e46d2a18 VS |
33443 | if test "$wxUSE_PNM" = "yes" ; then |
33444 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 33445 | #define wxUSE_PNM 1 |
e6cc62c6 | 33446 | _ACEOF |
698dcdb6 | 33447 | |
e46d2a18 | 33448 | fi |
698dcdb6 | 33449 | |
e46d2a18 VS |
33450 | if test "$wxUSE_XPM" = "yes" ; then |
33451 | cat >>confdefs.h <<\_ACEOF | |
698dcdb6 | 33452 | #define wxUSE_XPM 1 |
e6cc62c6 | 33453 | _ACEOF |
698dcdb6 | 33454 | |
e46d2a18 | 33455 | fi |
698dcdb6 | 33456 | |
e46d2a18 VS |
33457 | if test "$wxUSE_ICO_CUR" = "yes" ; then |
33458 | cat >>confdefs.h <<\_ACEOF | |
658974ae | 33459 | #define wxUSE_ICO_CUR 1 |
e6cc62c6 | 33460 | _ACEOF |
658974ae | 33461 | |
e46d2a18 | 33462 | fi |
a72a4bfa VS |
33463 | fi |
33464 | ||
8284b0c5 | 33465 | |
1e6feb95 | 33466 | if test "$wxUSE_CHOICEDLG" = "yes"; then |
e6cc62c6 | 33467 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33468 | #define wxUSE_CHOICEDLG 1 |
e6cc62c6 | 33469 | _ACEOF |
1e6feb95 VZ |
33470 | |
33471 | fi | |
33472 | ||
33473 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
e6cc62c6 | 33474 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33475 | #define wxUSE_COLOURDLG 1 |
e6cc62c6 | 33476 | _ACEOF |
1e6feb95 VZ |
33477 | |
33478 | fi | |
33479 | ||
33480 | if test "$wxUSE_FILEDLG" = "yes"; then | |
e6cc62c6 | 33481 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33482 | #define wxUSE_FILEDLG 1 |
e6cc62c6 | 33483 | _ACEOF |
1e6feb95 VZ |
33484 | |
33485 | fi | |
33486 | ||
8db37e06 | 33487 | if test "$wxUSE_FINDREPLDLG" = "yes"; then |
e6cc62c6 | 33488 | cat >>confdefs.h <<\_ACEOF |
8db37e06 | 33489 | #define wxUSE_FINDREPLDLG 1 |
e6cc62c6 | 33490 | _ACEOF |
8db37e06 VZ |
33491 | |
33492 | fi | |
33493 | ||
1e6feb95 | 33494 | if test "$wxUSE_FONTDLG" = "yes"; then |
e6cc62c6 | 33495 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33496 | #define wxUSE_FONTDLG 1 |
e6cc62c6 | 33497 | _ACEOF |
1e6feb95 VZ |
33498 | |
33499 | fi | |
33500 | ||
33501 | if test "$wxUSE_DIRDLG" = "yes"; then | |
ae1daed0 | 33502 | if test "$wxUSE_TREECTRL" != "yes"; then |
e6cc62c6 VS |
33503 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 |
33504 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
1e6feb95 | 33505 | else |
e6cc62c6 | 33506 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33507 | #define wxUSE_DIRDLG 1 |
e6cc62c6 | 33508 | _ACEOF |
1e6feb95 | 33509 | |
1e6feb95 VZ |
33510 | fi |
33511 | fi | |
33512 | ||
33513 | if test "$wxUSE_MSGDLG" = "yes"; then | |
e6cc62c6 | 33514 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33515 | #define wxUSE_MSGDLG 1 |
e6cc62c6 | 33516 | _ACEOF |
1e6feb95 VZ |
33517 | |
33518 | fi | |
33519 | ||
33520 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
e6cc62c6 | 33521 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33522 | #define wxUSE_NUMBERDLG 1 |
e6cc62c6 | 33523 | _ACEOF |
1e6feb95 VZ |
33524 | |
33525 | fi | |
33526 | ||
33527 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
33528 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33529 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 |
33530 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
1e6feb95 | 33531 | else |
e6cc62c6 | 33532 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33533 | #define wxUSE_PROGRESSDLG 1 |
e6cc62c6 | 33534 | _ACEOF |
1e6feb95 VZ |
33535 | |
33536 | fi | |
33537 | fi | |
33538 | ||
cbca9943 | 33539 | if test "$wxUSE_SPLASH" = "yes"; then |
e6cc62c6 | 33540 | cat >>confdefs.h <<\_ACEOF |
cbca9943 | 33541 | #define wxUSE_SPLASH 1 |
e6cc62c6 | 33542 | _ACEOF |
cbca9943 VZ |
33543 | |
33544 | fi | |
33545 | ||
1e6feb95 VZ |
33546 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then |
33547 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
e6cc62c6 VS |
33548 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 |
33549 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
1e6feb95 | 33550 | else |
e6cc62c6 | 33551 | cat >>confdefs.h <<\_ACEOF |
1e6feb95 | 33552 | #define wxUSE_STARTUP_TIPS 1 |
e6cc62c6 | 33553 | _ACEOF |
1e6feb95 | 33554 | |
7b4a847f RR |
33555 | fi |
33556 | fi | |
579d8138 | 33557 | |
8284b0c5 | 33558 | if test "$wxUSE_TEXTDLG" = "yes"; then |
e6cc62c6 | 33559 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 33560 | #define wxUSE_TEXTDLG 1 |
e6cc62c6 | 33561 | _ACEOF |
8284b0c5 MB |
33562 | |
33563 | fi | |
33564 | ||
33565 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
e6cc62c6 | 33566 | cat >>confdefs.h <<\_ACEOF |
8284b0c5 | 33567 | #define wxUSE_WIZARDDLG 1 |
e6cc62c6 | 33568 | _ACEOF |
8284b0c5 MB |
33569 | |
33570 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
33571 | fi | |
33572 | ||
33573 | ||
33574 | if test "$cross_compiling" = "yes"; then | |
33575 | OSINFO="\"$host\"" | |
33576 | else | |
33577 | OSINFO=`uname -s -r -m` | |
33578 | OSINFO="\"$OSINFO\"" | |
33579 | fi | |
33580 | ||
e6cc62c6 | 33581 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33582 | #define WXWIN_OS_DESCRIPTION $OSINFO |
e6cc62c6 | 33583 | _ACEOF |
8284b0c5 MB |
33584 | |
33585 | ||
33586 | ||
33587 | if test "x$prefix" != "xNONE"; then | |
33588 | wxPREFIX=$prefix | |
33589 | else | |
33590 | wxPREFIX=$ac_default_prefix | |
33591 | fi | |
33592 | ||
e6cc62c6 | 33593 | cat >>confdefs.h <<_ACEOF |
8284b0c5 | 33594 | #define wxINSTALL_PREFIX "$wxPREFIX" |
e6cc62c6 | 33595 | _ACEOF |
8284b0c5 MB |
33596 | |
33597 | ||
e6cc62c6 | 33598 | top_builddir_wxconfig=`pwd` |
52c71b80 | 33599 | |
8284b0c5 MB |
33600 | |
33601 | ||
edd891e2 VS |
33602 | CORE_BASE_LIBS="net base" |
33603 | CORE_GUI_LIBS="adv core" | |
33604 | ||
33605 | if test "$wxUSE_XML" = "yes" ; then | |
33606 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
33607 | fi | |
45293562 VS |
33608 | if test "$wxUSE_ODBC" != "no" ; then |
33609 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
33610 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
edd891e2 VS |
33611 | fi |
33612 | if test "$wxUSE_HTML" = "yes" ; then | |
33613 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
33614 | fi | |
33615 | ||
57e7d4ac VS |
33616 | if test "$wxUSE_GUI" != "yes"; then |
33617 | CORE_GUI_LIBS="" | |
33618 | fi | |
33619 | ||
edd891e2 VS |
33620 | |
33621 | ||
33622 | ||
33623 | ||
33624 | ||
33625 | ||
8284b0c5 MB |
33626 | |
33627 | if test "$wxUSE_MAC" = 1 ; then | |
33628 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
33629 | fi | |
ac0c4cc3 DE |
33630 | if test "$wxUSE_COCOA" = 1 ; then |
33631 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
33632 | fi | |
8284b0c5 MB |
33633 | |
33634 | ||
2b5f62a0 VZ |
33635 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" |
33636 | ||
33637 | have_cos=0 | |
33638 | have_floor=0 | |
e6cc62c6 | 33639 | |
2b5f62a0 VZ |
33640 | for ac_func in cos |
33641 | do | |
e6cc62c6 VS |
33642 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33643 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33644 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33645 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33647 | else | |
33648 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 33649 | #line $LINENO "configure" |
e6cc62c6 VS |
33650 | /* confdefs.h. */ |
33651 | _ACEOF | |
33652 | cat confdefs.h >>conftest.$ac_ext | |
33653 | cat >>conftest.$ac_ext <<_ACEOF | |
33654 | /* end confdefs.h. */ | |
2b5f62a0 | 33655 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33656 | which can conflict with char $ac_func (); below. |
33657 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33658 | <limits.h> exists even on freestanding compilers. */ | |
33659 | #ifdef __STDC__ | |
33660 | # include <limits.h> | |
33661 | #else | |
33662 | # include <assert.h> | |
33663 | #endif | |
2b5f62a0 | 33664 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33665 | #ifdef __cplusplus |
33666 | extern "C" | |
33667 | { | |
33668 | #endif | |
2b5f62a0 | 33669 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33670 | builtin and then its argument prototype would still apply. */ |
33671 | char $ac_func (); | |
2b5f62a0 VZ |
33672 | /* The GNU C library defines this for functions which it implements |
33673 | to always fail with ENOSYS. Some functions are actually named | |
33674 | something starting with __ and the normal name is an alias. */ | |
33675 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33676 | choke me | |
33677 | #else | |
e6cc62c6 VS |
33678 | char (*f) () = $ac_func; |
33679 | #endif | |
33680 | #ifdef __cplusplus | |
33681 | } | |
2b5f62a0 VZ |
33682 | #endif |
33683 | ||
e6cc62c6 VS |
33684 | int |
33685 | main () | |
33686 | { | |
33687 | return f != $ac_func; | |
33688 | ; | |
33689 | return 0; | |
33690 | } | |
33691 | _ACEOF | |
33692 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33693 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 33694 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
33695 | ac_status=$? |
33696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33697 | (exit $ac_status); } && | |
09d3439c | 33698 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
33699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33700 | (eval $ac_try) 2>&5 | |
33701 | ac_status=$? | |
33702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33703 | (exit $ac_status); }; }; then | |
33704 | eval "$as_ac_var=yes" | |
33705 | else | |
33706 | echo "$as_me: failed program was:" >&5 | |
33707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33708 | ||
33709 | eval "$as_ac_var=no" | |
33710 | fi | |
09d3439c | 33711 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
33712 | fi |
33713 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33714 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33715 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33716 | cat >>confdefs.h <<_ACEOF | |
33717 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33718 | _ACEOF | |
2b5f62a0 | 33719 | have_cos=1 |
2b5f62a0 VZ |
33720 | fi |
33721 | done | |
33722 | ||
e6cc62c6 | 33723 | |
2b5f62a0 VZ |
33724 | for ac_func in floor |
33725 | do | |
e6cc62c6 VS |
33726 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33727 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33728 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33729 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33730 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33731 | else | |
33732 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 33733 | #line $LINENO "configure" |
e6cc62c6 VS |
33734 | /* confdefs.h. */ |
33735 | _ACEOF | |
33736 | cat confdefs.h >>conftest.$ac_ext | |
33737 | cat >>conftest.$ac_ext <<_ACEOF | |
33738 | /* end confdefs.h. */ | |
2b5f62a0 | 33739 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33740 | which can conflict with char $ac_func (); below. |
33741 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33742 | <limits.h> exists even on freestanding compilers. */ | |
33743 | #ifdef __STDC__ | |
33744 | # include <limits.h> | |
33745 | #else | |
33746 | # include <assert.h> | |
33747 | #endif | |
2b5f62a0 | 33748 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33749 | #ifdef __cplusplus |
33750 | extern "C" | |
33751 | { | |
33752 | #endif | |
2b5f62a0 | 33753 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33754 | builtin and then its argument prototype would still apply. */ |
33755 | char $ac_func (); | |
2b5f62a0 VZ |
33756 | /* The GNU C library defines this for functions which it implements |
33757 | to always fail with ENOSYS. Some functions are actually named | |
33758 | something starting with __ and the normal name is an alias. */ | |
33759 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33760 | choke me | |
33761 | #else | |
e6cc62c6 VS |
33762 | char (*f) () = $ac_func; |
33763 | #endif | |
33764 | #ifdef __cplusplus | |
33765 | } | |
2b5f62a0 VZ |
33766 | #endif |
33767 | ||
e6cc62c6 VS |
33768 | int |
33769 | main () | |
33770 | { | |
33771 | return f != $ac_func; | |
33772 | ; | |
33773 | return 0; | |
33774 | } | |
33775 | _ACEOF | |
33776 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33777 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 33778 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
33779 | ac_status=$? |
33780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33781 | (exit $ac_status); } && | |
09d3439c | 33782 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
33783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33784 | (eval $ac_try) 2>&5 | |
33785 | ac_status=$? | |
33786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33787 | (exit $ac_status); }; }; then | |
33788 | eval "$as_ac_var=yes" | |
33789 | else | |
33790 | echo "$as_me: failed program was:" >&5 | |
33791 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33792 | ||
33793 | eval "$as_ac_var=no" | |
33794 | fi | |
09d3439c | 33795 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
33796 | fi |
33797 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33798 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33799 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33800 | cat >>confdefs.h <<_ACEOF | |
33801 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33802 | _ACEOF | |
2b5f62a0 | 33803 | have_floor=1 |
2b5f62a0 VZ |
33804 | fi |
33805 | done | |
33806 | ||
e6cc62c6 VS |
33807 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 |
33808 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33809 | if test "$have_cos" = 1 -a "$have_floor" = 1; then |
e6cc62c6 VS |
33810 | echo "$as_me:$LINENO: result: yes" >&5 |
33811 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33812 | else |
e6cc62c6 VS |
33813 | echo "$as_me:$LINENO: result: no" >&5 |
33814 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33815 | LIBS="$LIBS -lm" |
33816 | # use different functions to avoid configure caching | |
33817 | have_sin=0 | |
33818 | have_ceil=0 | |
e6cc62c6 VS |
33819 | |
33820 | for ac_func in sin | |
2b5f62a0 | 33821 | do |
e6cc62c6 VS |
33822 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33823 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33824 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33825 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33826 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33827 | else | |
33828 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 33829 | #line $LINENO "configure" |
e6cc62c6 VS |
33830 | /* confdefs.h. */ |
33831 | _ACEOF | |
33832 | cat confdefs.h >>conftest.$ac_ext | |
33833 | cat >>conftest.$ac_ext <<_ACEOF | |
33834 | /* end confdefs.h. */ | |
2b5f62a0 | 33835 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33836 | which can conflict with char $ac_func (); below. |
33837 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33838 | <limits.h> exists even on freestanding compilers. */ | |
33839 | #ifdef __STDC__ | |
33840 | # include <limits.h> | |
33841 | #else | |
33842 | # include <assert.h> | |
33843 | #endif | |
2b5f62a0 | 33844 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33845 | #ifdef __cplusplus |
33846 | extern "C" | |
33847 | { | |
33848 | #endif | |
2b5f62a0 | 33849 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33850 | builtin and then its argument prototype would still apply. */ |
33851 | char $ac_func (); | |
2b5f62a0 VZ |
33852 | /* The GNU C library defines this for functions which it implements |
33853 | to always fail with ENOSYS. Some functions are actually named | |
33854 | something starting with __ and the normal name is an alias. */ | |
33855 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33856 | choke me | |
33857 | #else | |
e6cc62c6 VS |
33858 | char (*f) () = $ac_func; |
33859 | #endif | |
33860 | #ifdef __cplusplus | |
33861 | } | |
2b5f62a0 VZ |
33862 | #endif |
33863 | ||
e6cc62c6 VS |
33864 | int |
33865 | main () | |
33866 | { | |
33867 | return f != $ac_func; | |
33868 | ; | |
33869 | return 0; | |
33870 | } | |
33871 | _ACEOF | |
33872 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33873 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 33874 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
33875 | ac_status=$? |
33876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33877 | (exit $ac_status); } && | |
09d3439c | 33878 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
33879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33880 | (eval $ac_try) 2>&5 | |
33881 | ac_status=$? | |
33882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33883 | (exit $ac_status); }; }; then | |
33884 | eval "$as_ac_var=yes" | |
33885 | else | |
33886 | echo "$as_me: failed program was:" >&5 | |
33887 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33888 | ||
33889 | eval "$as_ac_var=no" | |
33890 | fi | |
09d3439c | 33891 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
33892 | fi |
33893 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33894 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33895 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33896 | cat >>confdefs.h <<_ACEOF | |
33897 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33898 | _ACEOF | |
2b5f62a0 | 33899 | have_sin=1 |
2b5f62a0 VZ |
33900 | fi |
33901 | done | |
33902 | ||
e6cc62c6 VS |
33903 | |
33904 | for ac_func in ceil | |
2b5f62a0 | 33905 | do |
e6cc62c6 VS |
33906 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
33907 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
33908 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
33909 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
33910 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33911 | else | |
33912 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 33913 | #line $LINENO "configure" |
e6cc62c6 VS |
33914 | /* confdefs.h. */ |
33915 | _ACEOF | |
33916 | cat confdefs.h >>conftest.$ac_ext | |
33917 | cat >>conftest.$ac_ext <<_ACEOF | |
33918 | /* end confdefs.h. */ | |
2b5f62a0 | 33919 | /* System header to define __stub macros and hopefully few prototypes, |
e6cc62c6 VS |
33920 | which can conflict with char $ac_func (); below. |
33921 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33922 | <limits.h> exists even on freestanding compilers. */ | |
33923 | #ifdef __STDC__ | |
33924 | # include <limits.h> | |
33925 | #else | |
33926 | # include <assert.h> | |
33927 | #endif | |
2b5f62a0 | 33928 | /* Override any gcc2 internal prototype to avoid an error. */ |
e6cc62c6 VS |
33929 | #ifdef __cplusplus |
33930 | extern "C" | |
33931 | { | |
33932 | #endif | |
2b5f62a0 | 33933 | /* We use char because int might match the return type of a gcc2 |
e6cc62c6 VS |
33934 | builtin and then its argument prototype would still apply. */ |
33935 | char $ac_func (); | |
2b5f62a0 VZ |
33936 | /* The GNU C library defines this for functions which it implements |
33937 | to always fail with ENOSYS. Some functions are actually named | |
33938 | something starting with __ and the normal name is an alias. */ | |
33939 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
33940 | choke me | |
33941 | #else | |
e6cc62c6 VS |
33942 | char (*f) () = $ac_func; |
33943 | #endif | |
33944 | #ifdef __cplusplus | |
33945 | } | |
2b5f62a0 VZ |
33946 | #endif |
33947 | ||
e6cc62c6 VS |
33948 | int |
33949 | main () | |
33950 | { | |
33951 | return f != $ac_func; | |
33952 | ; | |
33953 | return 0; | |
33954 | } | |
33955 | _ACEOF | |
33956 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33957 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
09d3439c | 33958 | (eval $ac_link) 2>&5 |
e6cc62c6 VS |
33959 | ac_status=$? |
33960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33961 | (exit $ac_status); } && | |
09d3439c | 33962 | { ac_try='test -s conftest$ac_exeext' |
e6cc62c6 VS |
33963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33964 | (eval $ac_try) 2>&5 | |
33965 | ac_status=$? | |
33966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33967 | (exit $ac_status); }; }; then | |
33968 | eval "$as_ac_var=yes" | |
33969 | else | |
33970 | echo "$as_me: failed program was:" >&5 | |
33971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33972 | ||
33973 | eval "$as_ac_var=no" | |
33974 | fi | |
09d3439c | 33975 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
e6cc62c6 VS |
33976 | fi |
33977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33978 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33979 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33980 | cat >>confdefs.h <<_ACEOF | |
33981 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33982 | _ACEOF | |
2b5f62a0 | 33983 | have_ceil=1 |
2b5f62a0 VZ |
33984 | fi |
33985 | done | |
33986 | ||
e6cc62c6 VS |
33987 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 |
33988 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
2b5f62a0 | 33989 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then |
e6cc62c6 VS |
33990 | echo "$as_me:$LINENO: result: yes" >&5 |
33991 | echo "${ECHO_T}yes" >&6 | |
2b5f62a0 | 33992 | else |
e6cc62c6 VS |
33993 | echo "$as_me:$LINENO: result: no" >&5 |
33994 | echo "${ECHO_T}no" >&6 | |
2b5f62a0 VZ |
33995 | # not sure we should warn the user, crash, etc. |
33996 | fi | |
33997 | fi | |
8284b0c5 MB |
33998 | |
33999 | if test "$wxUSE_GUI" = "yes"; then | |
34000 | ||
e6cc62c6 | 34001 | |
8284b0c5 MB |
34002 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ |
34003 | drawing dynamic erase event exec font image \ | |
1dd02ac0 | 34004 | minimal propsize rotate shaped widgets render" |
b625909c VS |
34005 | |
34006 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
34007 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
34008 | fi | |
8284b0c5 MB |
34009 | else |
34010 | SAMPLES_SUBDIRS="console" | |
34011 | fi | |
34012 | ||
34013 | ||
e6cc62c6 | 34014 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ |
eea650d8 | 34015 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" |
8284b0c5 | 34016 | |
fddeb06b VS |
34017 | if test "$GXX" = yes ; then |
34018 | CXXWARNINGS="-Wall" | |
34019 | fi | |
34020 | ||
34021 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
34022 | ||
95318f7d | 34023 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` |
fddeb06b VS |
34024 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` |
34025 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
c74dc163 VS |
34026 | |
34027 | ||
fddeb06b | 34028 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` |
c74dc163 | 34029 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" |
672abd7a | 34030 | EXTRALIBS_XML="$EXPAT_LINK" |
3527f29c | 34031 | EXTRALIBS_HTML="$MSPACK_LINK" |
bb41dcbe | 34032 | EXTRALIBS_ODBC="$ODBC_LINK" |
c74dc163 VS |
34033 | if test "$wxUSE_GUI" = "yes"; then |
34034 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
34035 | fi | |
34b08d2c VS |
34036 | if test "$wxUSE_OPENGL" = "yes"; then |
34037 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
34038 | fi | |
fddeb06b VS |
34039 | |
34040 | LDFLAGS="$LDFLAGS $PROFILE" | |
34041 | ||
8284b0c5 MB |
34042 | if test "$wxUSE_GTK" = 1; then |
34043 | WXCONFIG_INCLUDE= | |
34044 | else | |
34045 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
34046 | fi | |
34047 | ||
67c13b6c VS |
34048 | WXCONFIG_EXTRALIBS="$LIBS" |
34049 | ||
34050 | if test "$wxUSE_REGEX" = "builtin" ; then | |
34051 | wxconfig_3rdparty="$wxconfig_3rdparty regex" | |
34052 | fi | |
34053 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
34054 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
34055 | fi | |
34056 | if test "$wxUSE_ODBC" = "builtin" ; then | |
34057 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
34058 | fi | |
34059 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
34060 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
34061 | fi | |
34062 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
34063 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
34064 | fi | |
34065 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
34066 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
34067 | fi | |
34068 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
34069 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
34070 | fi | |
bb41dcbe VS |
34071 | if test "$wxUSE_ODBC" = "builtin" ; then |
34072 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
34073 | fi | |
67c13b6c VS |
34074 | |
34075 | for i in $wxconfig_3rdparty ; do | |
34076 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
34077 | done | |
34078 | ||
34079 | ||
fe0895cf VS |
34080 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then |
34081 | WXUNIV=1 | |
34082 | else | |
34083 | WXUNIV=0 | |
8284b0c5 MB |
34084 | fi |
34085 | ||
8284b0c5 MB |
34086 | |
34087 | ||
34088 | ||
34089 | ||
34090 | ||
34091 | ||
34092 | ||
672abd7a | 34093 | |
9747f85d VS |
34094 | if test $wxUSE_MONOLITHIC = "yes" ; then |
34095 | MONOLITHIC=1 | |
34096 | else | |
34097 | MONOLITHIC=0 | |
34098 | fi | |
8284b0c5 | 34099 | |
bb41dcbe VS |
34100 | if test $wxUSE_ODBC != "no" ; then |
34101 | USE_ODBC=1 | |
34102 | else | |
34103 | USE_ODBC=0 | |
34104 | fi | |
34105 | ||
029b47ad VS |
34106 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then |
34107 | OFFICIAL_BUILD=1 | |
34108 | else | |
34109 | OFFICIAL_BUILD=0 | |
34110 | fi | |
34111 | ||
8ee2dd05 VS |
34112 | |
34113 | ||
34114 | ||
8284b0c5 MB |
34115 | |
34116 | ||
34117 | ||
34118 | ||
34119 | ||
34120 | ||
c74dc163 | 34121 | |
34b08d2c | 34122 | |
672abd7a | 34123 | |
cf615ebb | 34124 | |
6c67131a VS |
34125 | |
34126 | ||
bb41dcbe | 34127 | |
3527f29c | 34128 | |
89fe663f | 34129 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` |
8284b0c5 MB |
34130 | |
34131 | ||
34132 | ||
34133 | ||
34134 | ||
ea66c762 | 34135 | |
0f1bc9c2 | 34136 | |
fe0895cf | 34137 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then |
e6cc62c6 VS |
34138 | |
34139 | if test -n "$ac_tool_prefix"; then | |
34140 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
34141 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
34142 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34143 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34144 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
34145 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10f2d63a | 34146 | else |
fe0895cf VS |
34147 | if test -n "$RANLIB"; then |
34148 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
10f2d63a | 34149 | else |
e6cc62c6 VS |
34150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34151 | for as_dir in $PATH | |
34152 | do | |
34153 | IFS=$as_save_IFS | |
34154 | test -z "$as_dir" && as_dir=. | |
34155 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34156 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34157 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
34158 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34159 | break 2 | |
34160 | fi | |
34161 | done | |
34162 | done | |
34163 | ||
10f2d63a | 34164 | fi |
10f2d63a | 34165 | fi |
e6cc62c6 | 34166 | RANLIB=$ac_cv_prog_RANLIB |
fe0895cf | 34167 | if test -n "$RANLIB"; then |
e6cc62c6 VS |
34168 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
34169 | echo "${ECHO_T}$RANLIB" >&6 | |
34170 | else | |
34171 | echo "$as_me:$LINENO: result: no" >&5 | |
34172 | echo "${ECHO_T}no" >&6 | |
34173 | fi | |
34174 | ||
34175 | fi | |
34176 | if test -z "$ac_cv_prog_RANLIB"; then | |
34177 | ac_ct_RANLIB=$RANLIB | |
34178 | # Extract the first word of "ranlib", so it can be a program name with args. | |
34179 | set dummy ranlib; ac_word=$2 | |
34180 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34181 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34182 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
34183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34184 | else | |
34185 | if test -n "$ac_ct_RANLIB"; then | |
34186 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
34187 | else | |
34188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34189 | for as_dir in $PATH | |
34190 | do | |
34191 | IFS=$as_save_IFS | |
34192 | test -z "$as_dir" && as_dir=. | |
34193 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34194 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34195 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
34196 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34197 | break 2 | |
34198 | fi | |
34199 | done | |
34200 | done | |
34201 | ||
34202 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
34203 | fi | |
34204 | fi | |
34205 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
34206 | if test -n "$ac_ct_RANLIB"; then | |
34207 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
34208 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
10f2d63a | 34209 | else |
e6cc62c6 VS |
34210 | echo "$as_me:$LINENO: result: no" >&5 |
34211 | echo "${ECHO_T}no" >&6 | |
34212 | fi | |
34213 | ||
34214 | RANLIB=$ac_ct_RANLIB | |
34215 | else | |
34216 | RANLIB="$ac_cv_prog_RANLIB" | |
00cf1208 | 34217 | fi |
665bbe97 | 34218 | |
fe0895cf VS |
34219 | # Find a good install program. We prefer a C program (faster), |
34220 | # so one script is as good as another. But avoid the broken or | |
34221 | # incompatible versions: | |
34222 | # SysV /etc/install, /usr/sbin/install | |
34223 | # SunOS /usr/etc/install | |
34224 | # IRIX /sbin/install | |
34225 | # AIX /bin/install | |
e6cc62c6 | 34226 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
fe0895cf VS |
34227 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
34228 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
34229 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
34230 | # ./install, which can be erroneously created by make from ./install.sh. | |
e6cc62c6 VS |
34231 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
34232 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
fe0895cf | 34233 | if test -z "$INSTALL"; then |
e6cc62c6 VS |
34234 | if test "${ac_cv_path_install+set}" = set; then |
34235 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34236 | else | |
34237 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34238 | for as_dir in $PATH | |
34239 | do | |
34240 | IFS=$as_save_IFS | |
34241 | test -z "$as_dir" && as_dir=. | |
34242 | # Account for people who put trailing slashes in PATH elements. | |
34243 | case $as_dir/ in | |
34244 | ./ | .// | /cC/* | \ | |
34245 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
34246 | /usr/ucb/* ) ;; | |
34247 | *) | |
34248 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
34249 | # Don't use installbsd from OSF since it installs stuff as root | |
34250 | # by default. | |
34251 | for ac_prog in ginstall scoinst install; do | |
34252 | for ac_exec_ext in '' $ac_executable_extensions; do | |
09d3439c VZ |
34253 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
34254 | if test $ac_prog = install && | |
34255 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
34256 | # AIX install. It has an incompatible calling convention. | |
34257 | : | |
34258 | elif test $ac_prog = install && | |
34259 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
34260 | # program-specific install script used by HP pwplus--don't use. | |
34261 | : | |
34262 | else | |
34263 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
34264 | break 3 | |
34265 | fi | |
34266 | fi | |
fe0895cf | 34267 | done |
e6cc62c6 VS |
34268 | done |
34269 | ;; | |
34270 | esac | |
34271 | done | |
34272 | ||
fe0895cf VS |
34273 | |
34274 | fi | |
34275 | if test "${ac_cv_path_install+set}" = set; then | |
e6cc62c6 | 34276 | INSTALL=$ac_cv_path_install |
fe0895cf VS |
34277 | else |
34278 | # As a last resort, use the slow shell script. We don't cache a | |
34279 | # path for INSTALL within a source directory, because that will | |
34280 | # break other packages using the cache if that directory is | |
34281 | # removed, or if the path is relative. | |
e6cc62c6 | 34282 | INSTALL=$ac_install_sh |
fe0895cf VS |
34283 | fi |
34284 | fi | |
e6cc62c6 VS |
34285 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
34286 | echo "${ECHO_T}$INSTALL" >&6 | |
fe0895cf VS |
34287 | |
34288 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
34289 | # It thinks the first close brace ends the variable substitution. | |
34290 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
34291 | ||
e6cc62c6 | 34292 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
fe0895cf VS |
34293 | |
34294 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
34295 | ||
e6cc62c6 VS |
34296 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
34297 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
34298 | LN_S=$as_ln_s | |
34299 | if test "$LN_S" = "ln -s"; then | |
34300 | echo "$as_me:$LINENO: result: yes" >&5 | |
34301 | echo "${ECHO_T}yes" >&6 | |
fe0895cf | 34302 | else |
e6cc62c6 VS |
34303 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
34304 | echo "${ECHO_T}no, using $LN_S" >&6 | |
fe0895cf VS |
34305 | fi |
34306 | ||
34307 | ||
e6cc62c6 VS |
34308 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
34309 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
09d3439c | 34310 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
e6cc62c6 VS |
34311 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
34312 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 34313 | else |
e6cc62c6 | 34314 | cat >conftest.make <<\_ACEOF |
fe0895cf | 34315 | all: |
e6cc62c6 VS |
34316 | @echo 'ac_maketemp="$(MAKE)"' |
34317 | _ACEOF | |
fe0895cf | 34318 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
e6cc62c6 | 34319 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
fe0895cf VS |
34320 | if test -n "$ac_maketemp"; then |
34321 | eval ac_cv_prog_make_${ac_make}_set=yes | |
34322 | else | |
34323 | eval ac_cv_prog_make_${ac_make}_set=no | |
34324 | fi | |
e6cc62c6 | 34325 | rm -f conftest.make |
fe0895cf VS |
34326 | fi |
34327 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
e6cc62c6 VS |
34328 | echo "$as_me:$LINENO: result: yes" >&5 |
34329 | echo "${ECHO_T}yes" >&6 | |
fe0895cf VS |
34330 | SET_MAKE= |
34331 | else | |
e6cc62c6 VS |
34332 | echo "$as_me:$LINENO: result: no" >&5 |
34333 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34334 | SET_MAKE="MAKE=${MAKE-make}" |
34335 | fi | |
34336 | ||
e6cc62c6 VS |
34337 | |
34338 | ||
874d12cf VS |
34339 | if test -n "$ac_tool_prefix"; then |
34340 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
34341 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
e6cc62c6 VS |
34342 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34344 | if test "${ac_cv_prog_AR+set}" = set; then | |
34345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34346 | else |
34347 | if test -n "$AR"; then | |
34348 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
34349 | else | |
e6cc62c6 VS |
34350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34351 | for as_dir in $PATH | |
34352 | do | |
34353 | IFS=$as_save_IFS | |
34354 | test -z "$as_dir" && as_dir=. | |
34355 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34356 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 34357 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
e6cc62c6 VS |
34358 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
34359 | break 2 | |
34360 | fi | |
34361 | done | |
34362 | done | |
34363 | ||
fe0895cf VS |
34364 | fi |
34365 | fi | |
e6cc62c6 | 34366 | AR=$ac_cv_prog_AR |
fe0895cf | 34367 | if test -n "$AR"; then |
e6cc62c6 VS |
34368 | echo "$as_me:$LINENO: result: $AR" >&5 |
34369 | echo "${ECHO_T}$AR" >&6 | |
fe0895cf | 34370 | else |
e6cc62c6 VS |
34371 | echo "$as_me:$LINENO: result: no" >&5 |
34372 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34373 | fi |
34374 | ||
874d12cf VS |
34375 | fi |
34376 | if test -z "$ac_cv_prog_AR"; then | |
34377 | ac_ct_AR=$AR | |
34378 | # Extract the first word of "ar", so it can be a program name with args. | |
34379 | set dummy ar; ac_word=$2 | |
34380 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34382 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
34383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34384 | else | |
34385 | if test -n "$ac_ct_AR"; then | |
34386 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
34387 | else | |
34388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34389 | for as_dir in $PATH | |
34390 | do | |
34391 | IFS=$as_save_IFS | |
34392 | test -z "$as_dir" && as_dir=. | |
34393 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34395 | ac_cv_prog_ac_ct_AR="ar" | |
34396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34397 | break 2 | |
34398 | fi | |
34399 | done | |
34400 | done | |
34401 | ||
34402 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
34403 | fi | |
34404 | fi | |
34405 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
34406 | if test -n "$ac_ct_AR"; then | |
34407 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
34408 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
34409 | else | |
34410 | echo "$as_me:$LINENO: result: no" >&5 | |
34411 | echo "${ECHO_T}no" >&6 | |
34412 | fi | |
34413 | ||
34414 | AR=$ac_ct_AR | |
34415 | else | |
34416 | AR="$ac_cv_prog_AR" | |
34417 | fi | |
34418 | ||
34419 | if test -n "$ac_tool_prefix"; then | |
34420 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
34421 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
e6cc62c6 VS |
34422 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34424 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
34425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34426 | else |
34427 | if test -n "$STRIP"; then | |
34428 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
34429 | else | |
e6cc62c6 VS |
34430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34431 | for as_dir in $PATH | |
34432 | do | |
34433 | IFS=$as_save_IFS | |
34434 | test -z "$as_dir" && as_dir=. | |
34435 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34436 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
874d12cf | 34437 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
e6cc62c6 VS |
34438 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
34439 | break 2 | |
34440 | fi | |
34441 | done | |
34442 | done | |
34443 | ||
fe0895cf VS |
34444 | fi |
34445 | fi | |
e6cc62c6 | 34446 | STRIP=$ac_cv_prog_STRIP |
fe0895cf | 34447 | if test -n "$STRIP"; then |
e6cc62c6 VS |
34448 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
34449 | echo "${ECHO_T}$STRIP" >&6 | |
fe0895cf | 34450 | else |
e6cc62c6 VS |
34451 | echo "$as_me:$LINENO: result: no" >&5 |
34452 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34453 | fi |
34454 | ||
874d12cf VS |
34455 | fi |
34456 | if test -z "$ac_cv_prog_STRIP"; then | |
34457 | ac_ct_STRIP=$STRIP | |
34458 | # Extract the first word of "strip", so it can be a program name with args. | |
34459 | set dummy strip; ac_word=$2 | |
34460 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34462 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
34463 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34464 | else | |
34465 | if test -n "$ac_ct_STRIP"; then | |
34466 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
34467 | else | |
34468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34469 | for as_dir in $PATH | |
34470 | do | |
34471 | IFS=$as_save_IFS | |
34472 | test -z "$as_dir" && as_dir=. | |
34473 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34474 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34475 | ac_cv_prog_ac_ct_STRIP="strip" | |
34476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34477 | break 2 | |
34478 | fi | |
34479 | done | |
34480 | done | |
34481 | ||
34482 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
34483 | fi | |
34484 | fi | |
34485 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
34486 | if test -n "$ac_ct_STRIP"; then | |
34487 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
34488 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
34489 | else | |
34490 | echo "$as_me:$LINENO: result: no" >&5 | |
34491 | echo "${ECHO_T}no" >&6 | |
34492 | fi | |
34493 | ||
34494 | STRIP=$ac_ct_STRIP | |
34495 | else | |
34496 | STRIP="$ac_cv_prog_STRIP" | |
34497 | fi | |
34498 | ||
34499 | if test -n "$ac_tool_prefix"; then | |
34500 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
34501 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
34502 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34504 | if test "${ac_cv_prog_NM+set}" = set; then | |
34505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34506 | else | |
34507 | if test -n "$NM"; then | |
34508 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
34509 | else | |
34510 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34511 | for as_dir in $PATH | |
34512 | do | |
34513 | IFS=$as_save_IFS | |
34514 | test -z "$as_dir" && as_dir=. | |
34515 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34516 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34517 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
34518 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34519 | break 2 | |
34520 | fi | |
34521 | done | |
34522 | done | |
34523 | ||
34524 | fi | |
34525 | fi | |
34526 | NM=$ac_cv_prog_NM | |
34527 | if test -n "$NM"; then | |
34528 | echo "$as_me:$LINENO: result: $NM" >&5 | |
34529 | echo "${ECHO_T}$NM" >&6 | |
34530 | else | |
34531 | echo "$as_me:$LINENO: result: no" >&5 | |
34532 | echo "${ECHO_T}no" >&6 | |
34533 | fi | |
34534 | ||
34535 | fi | |
34536 | if test -z "$ac_cv_prog_NM"; then | |
34537 | ac_ct_NM=$NM | |
34538 | # Extract the first word of "nm", so it can be a program name with args. | |
34539 | set dummy nm; ac_word=$2 | |
34540 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
34541 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34542 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
34543 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34544 | else | |
34545 | if test -n "$ac_ct_NM"; then | |
34546 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
34547 | else | |
34548 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
34549 | for as_dir in $PATH | |
34550 | do | |
34551 | IFS=$as_save_IFS | |
34552 | test -z "$as_dir" && as_dir=. | |
34553 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34554 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34555 | ac_cv_prog_ac_ct_NM="nm" | |
34556 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34557 | break 2 | |
34558 | fi | |
34559 | done | |
34560 | done | |
34561 | ||
34562 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
34563 | fi | |
34564 | fi | |
34565 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
34566 | if test -n "$ac_ct_NM"; then | |
34567 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
34568 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
34569 | else | |
34570 | echo "$as_me:$LINENO: result: no" >&5 | |
34571 | echo "${ECHO_T}no" >&6 | |
34572 | fi | |
34573 | ||
34574 | NM=$ac_ct_NM | |
34575 | else | |
34576 | NM="$ac_cv_prog_NM" | |
34577 | fi | |
34578 | ||
fe0895cf VS |
34579 | |
34580 | case ${host} in | |
34581 | *-hp-hpux* ) | |
34582 | INSTALL_DIR="mkdir" | |
34583 | ;; | |
34584 | *) INSTALL_DIR="$INSTALL -d" | |
34585 | ;; | |
34586 | esac | |
e6cc62c6 | 34587 | |
fe0895cf | 34588 | |
6b9d41a5 VS |
34589 | LDFLAGS_GUI= |
34590 | case ${host} in | |
34591 | *-*-cygwin* | *-*-mingw32* ) | |
34592 | LDFLAGS_GUI="-Wl,--subsystem,windows -mwindows" | |
34593 | esac | |
34594 | ||
34595 | ||
fe0895cf | 34596 | fi |
e6cc62c6 VS |
34597 | |
34598 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
34599 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
49b0a3aa | 34600 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then |
e6cc62c6 | 34601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
fe0895cf | 34602 | else |
e6cc62c6 | 34603 | |
fe0895cf VS |
34604 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | |
34605 | egrep -s GNU > /dev/null); then | |
34606 | bakefile_cv_prog_makeisgnu="yes" | |
34607 | else | |
34608 | bakefile_cv_prog_makeisgnu="no" | |
34609 | fi | |
fe0895cf | 34610 | |
e6cc62c6 | 34611 | fi |
49b0a3aa VS |
34612 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 |
34613 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
fe0895cf VS |
34614 | |
34615 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
34616 | IF_GNU_MAKE="" | |
34617 | else | |
34618 | IF_GNU_MAKE="#" | |
34619 | fi | |
fe0895cf | 34620 | |
e6cc62c6 VS |
34621 | |
34622 | ||
fe0895cf VS |
34623 | PLATFORM_UNIX=0 |
34624 | PLATFORM_WIN32=0 | |
34625 | PLATFORM_MSDOS=0 | |
34626 | PLATFORM_MAC=0 | |
34627 | PLATFORM_MACOSX=0 | |
96c1699d | 34628 | PLATFORM_OS2=0 |
e6cc62c6 | 34629 | |
fe0895cf VS |
34630 | case "${host}" in |
34631 | *-*-cygwin* | *-*-mingw32* ) | |
34632 | PLATFORM_WIN32=1 | |
34633 | ;; | |
96c1699d | 34634 | *-pc-msdosdjgpp ) |
fe0895cf VS |
34635 | PLATFORM_MSDOS=1 |
34636 | ;; | |
96c1699d VS |
34637 | *-pc-os2_emx | *-pc-os2-emx ) |
34638 | PLATFORM_OS2=1 | |
34639 | ;; | |
fe0895cf VS |
34640 | powerpc-*-darwin* ) |
34641 | PLATFORM_MAC=1 | |
34642 | PLATFORM_MACOSX=1 | |
34643 | ;; | |
34644 | * ) | |
34645 | PLATFORM_UNIX=1 | |
34646 | ;; | |
34647 | esac | |
34648 | ||
fe0895cf | 34649 | |
e6cc62c6 VS |
34650 | |
34651 | ||
34652 | ||
34653 | ||
34654 | ||
34655 | ||
96c1699d | 34656 | |
fe0895cf | 34657 | SO_SUFFIX="so" |
131f235d | 34658 | SO_SUFFIX_MODULE="so" |
fe0895cf | 34659 | EXEEXT="" |
4b1f6360 | 34660 | LIBPREFIX=lib |
fe0895cf | 34661 | DLLPREFIX=lib |
131f235d | 34662 | DLLPREFIX_MODULE= |
e6cc62c6 | 34663 | |
fe0895cf VS |
34664 | case "${host}" in |
34665 | *-hp-hpux* ) | |
34666 | SO_SUFFIX="sl" | |
131f235d | 34667 | SO_SUFFIX_MODULE="sl" |
fe0895cf VS |
34668 | ;; |
34669 | *-*-aix* ) | |
34670 | SO_SUFFIX="a" | |
131f235d | 34671 | SO_SUFFIX_MODULE="a" |
fe0895cf VS |
34672 | ;; |
34673 | *-*-cygwin* | *-*-mingw32* ) | |
34674 | SO_SUFFIX="dll" | |
131f235d | 34675 | SO_SUFFIX_MODULE="dll" |
fe0895cf VS |
34676 | EXEEXT=".exe" |
34677 | DLLPREFIX="" | |
34678 | ;; | |
4b1f6360 VS |
34679 | *-pc-msdosdjgpp ) |
34680 | EXEEXT=".exe" | |
34681 | DLLPREFIX="" | |
34682 | ;; | |
34683 | *-pc-os2_emx | *-pc-os2-emx ) | |
fe0895cf VS |
34684 | EXEEXT=".exe" |
34685 | DLLPREFIX="" | |
4b1f6360 | 34686 | LIBPREFIX="" |
fe0895cf VS |
34687 | ;; |
34688 | powerpc-*-darwin* ) | |
34689 | SO_SUFFIX="dylib" | |
131f235d | 34690 | SO_SUFFIX_MODULE="bundle" |
fe0895cf VS |
34691 | ;; |
34692 | esac | |
34693 | ||
fe0895cf | 34694 | |
e6cc62c6 VS |
34695 | |
34696 | ||
34697 | ||
34698 | ||
131f235d VS |
34699 | |
34700 | ||
4b1f6360 | 34701 | |
fe0895cf VS |
34702 | SHARED_LD_CC="\$(CC) -shared -o" |
34703 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
34704 | ||
34705 | if test "x$GCC" = "xyes"; then | |
34706 | PIC_FLAG="-fPIC" | |
34707 | fi | |
34708 | ||
34709 | case "${host}" in | |
34710 | *-hp-hpux* ) | |
34711 | if test "x$GCC" = "xyes"; then | |
34712 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
34713 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
34714 | else | |
34715 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
34716 | ||
34717 | SHARED_LD_CC="${CC} -b -o" | |
34718 | SHARED_LD_CXX="${CXX} -b -o" | |
34719 | PIC_FLAG="+Z" | |
34720 | fi | |
34721 | ;; | |
34722 | ||
34723 | *-*-linux* ) | |
34724 | if test "x$GCC" != "xyes"; then | |
e6cc62c6 VS |
34725 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 |
34726 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
34727 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
34728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf | 34729 | else |
fe0895cf | 34730 | |
e6cc62c6 | 34731 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 34732 | #line $LINENO "configure" |
e6cc62c6 VS |
34733 | /* confdefs.h. */ |
34734 | _ACEOF | |
34735 | cat confdefs.h >>conftest.$ac_ext | |
34736 | cat >>conftest.$ac_ext <<_ACEOF | |
34737 | /* end confdefs.h. */ | |
34738 | ||
34739 | int | |
34740 | main () | |
34741 | { | |
fe0895cf VS |
34742 | |
34743 | #ifndef __INTEL_COMPILER | |
34744 | #error Not icc | |
34745 | #endif | |
e6cc62c6 VS |
34746 | |
34747 | ; | |
34748 | return 0; | |
34749 | } | |
34750 | _ACEOF | |
34751 | rm -f conftest.$ac_objext | |
34752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 34753 | (eval $ac_compile) 2>&5 |
e6cc62c6 VS |
34754 | ac_status=$? |
34755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34756 | (exit $ac_status); } && | |
09d3439c | 34757 | { ac_try='test -s conftest.$ac_objext' |
e6cc62c6 VS |
34758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34759 | (eval $ac_try) 2>&5 | |
34760 | ac_status=$? | |
34761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34762 | (exit $ac_status); }; }; then | |
fe0895cf VS |
34763 | bakefile_cv_prog_icc=yes |
34764 | else | |
e6cc62c6 VS |
34765 | echo "$as_me: failed program was:" >&5 |
34766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34767 | ||
34768 | bakefile_cv_prog_icc=no | |
34769 | ||
fe0895cf | 34770 | fi |
09d3439c | 34771 | rm -f conftest.$ac_objext conftest.$ac_ext |
fe0895cf | 34772 | |
e6cc62c6 VS |
34773 | fi |
34774 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
34775 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
fe0895cf VS |
34776 | if test "$bakefile_cv_prog_icc" = "yes"; then |
34777 | PIC_FLAG="-KPIC" | |
34778 | fi | |
34779 | fi | |
34780 | ;; | |
34781 | ||
34782 | *-*-solaris2* ) | |
34783 | if test "x$GCC" != xyes ; then | |
34784 | SHARED_LD_CC="${CC} -G -o" | |
34785 | SHARED_LD_CXX="${CXX} -G -o" | |
34786 | PIC_FLAG="-KPIC" | |
34787 | fi | |
34788 | ;; | |
34789 | ||
34790 | *-*-darwin* ) | |
34791 | CFLAGS="$CFLAGS -fno-common" | |
34792 | CXXFLAGS="$CXXFLAGS -fno-common" | |
e6cc62c6 VS |
34793 | |
34794 | ||
2a879853 | 34795 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 |
43948499 RD |
34796 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 |
34797 | if test "${wx_cv_gcc31+set}" = set; then | |
34798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34799 | else | |
34800 | ||
2a879853 | 34801 | cat >conftest.$ac_ext <<_ACEOF |
09d3439c | 34802 | #line $LINENO "configure" |
43948499 RD |
34803 | /* confdefs.h. */ |
34804 | _ACEOF | |
34805 | cat confdefs.h >>conftest.$ac_ext | |
34806 | cat >>conftest.$ac_ext <<_ACEOF | |
34807 | /* end confdefs.h. */ | |
34808 | ||
34809 | int | |
34810 | main () | |
34811 | { | |
34812 | ||
2a879853 VS |
34813 | #if (__GNUC__ < 3) || \ |
34814 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
34815 | #error old gcc | |
34816 | #endif | |
43948499 RD |
34817 | |
34818 | ; | |
34819 | return 0; | |
34820 | } | |
34821 | _ACEOF | |
34822 | rm -f conftest.$ac_objext | |
34823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 34824 | (eval $ac_compile) 2>&5 |
43948499 RD |
34825 | ac_status=$? |
34826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34827 | (exit $ac_status); } && | |
09d3439c | 34828 | { ac_try='test -s conftest.$ac_objext' |
43948499 RD |
34829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34830 | (eval $ac_try) 2>&5 | |
34831 | ac_status=$? | |
34832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34833 | (exit $ac_status); }; }; then | |
34834 | ||
2a879853 | 34835 | wx_cv_gcc31=yes |
43948499 RD |
34836 | |
34837 | else | |
34838 | echo "$as_me: failed program was:" >&5 | |
34839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34840 | ||
34841 | ||
2a879853 | 34842 | wx_cv_gcc31=no |
43948499 RD |
34843 | |
34844 | ||
34845 | fi | |
09d3439c | 34846 | rm -f conftest.$ac_objext conftest.$ac_ext |
43948499 RD |
34847 | |
34848 | fi | |
34849 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
34850 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
2a879853 | 34851 | if test "$wx_cv_gcc31" = "no"; then |
43948499 | 34852 | cat <<EOF >shared-ld-sh |
fe0895cf VS |
34853 | #!/bin/sh |
34854 | #----------------------------------------------------------------------------- | |
34855 | #-- Name: distrib/mac/shared-ld-sh | |
34856 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
34857 | #-- Author: Gilles Depeyrot | |
34858 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
34859 | #-- Licence: any use permitted | |
34860 | #----------------------------------------------------------------------------- | |
34861 | ||
34862 | verbose=0 | |
34863 | args="" | |
34864 | objects="" | |
131f235d | 34865 | linking_flag="-dynamiclib" |
fe0895cf VS |
34866 | |
34867 | while test \${#} -gt 0; do | |
34868 | case \${1} in | |
34869 | ||
34870 | -v) | |
34871 | verbose=1 | |
34872 | ;; | |
34873 | ||
34874 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
34875 | # collect these options and values | |
34876 | args="\${args} \${1} \${2}" | |
34877 | shift | |
34878 | ;; | |
34879 | ||
74500461 | 34880 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) |
fe0895cf VS |
34881 | # collect these options |
34882 | args="\${args} \${1}" | |
34883 | ;; | |
34884 | ||
131f235d VS |
34885 | -dynamiclib|-bundle) |
34886 | linking_flag="\${1}" | |
fe0895cf VS |
34887 | ;; |
34888 | ||
34889 | -*) | |
34890 | echo "shared-ld: unhandled option '\${1}'" | |
34891 | exit 1 | |
34892 | ;; | |
34893 | ||
4d264332 | 34894 | *.o | *.a | *.dylib) |
fe0895cf VS |
34895 | # collect object files |
34896 | objects="\${objects} \${1}" | |
34897 | ;; | |
34898 | ||
34899 | *) | |
34900 | echo "shared-ld: unhandled argument '\${1}'" | |
34901 | exit 1 | |
34902 | ;; | |
34903 | ||
34904 | esac | |
34905 | shift | |
34906 | done | |
34907 | ||
34908 | # | |
34909 | # Link one module containing all the others | |
34910 | # | |
34911 | if test \${verbose} = 1; then | |
34912 | echo "c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o" | |
34913 | fi | |
34914 | c++ -r -keep_private_externs -nostdlib \${objects} -o master.\$\$.o | |
34915 | status=\$? | |
34916 | if test \${status} != 0; then | |
34917 | exit \${status} | |
34918 | fi | |
34919 | ||
34920 | # | |
34921 | # Link the shared library from the single module created | |
34922 | # | |
34923 | if test \${verbose} = 1; then | |
2a879853 | 34924 | echo "cc \${linking_flag} master.\$\$.o \${args}" |
fe0895cf | 34925 | fi |
131f235d | 34926 | c++ \${linking_flag} master.\$\$.o \${args} |
fe0895cf VS |
34927 | status=\$? |
34928 | if test \${status} != 0; then | |
34929 | exit \${status} | |
34930 | fi | |
34931 | ||
34932 | # | |
34933 | # Remove intermediate module | |
34934 | # | |
34935 | rm -f master.\$\$.o | |
34936 | ||
34937 | exit 0 | |
34938 | EOF | |
43948499 | 34939 | chmod +x shared-ld-sh |
fe0895cf | 34940 | |
7f523214 VS |
34941 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" |
34942 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
2a879853 VS |
34943 | SHARED_LD_CXX="$SHARED_LD_CC" |
34944 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
34945 | else | |
7f523214 VS |
34946 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" |
34947 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
34948 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
34949 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
2a879853 VS |
34950 | fi |
34951 | ||
fe0895cf | 34952 | PIC_FLAG="-dynamic -fPIC" |
2a879853 | 34953 | ;; |
fe0895cf VS |
34954 | |
34955 | *-*-aix* ) | |
34956 | if test "x$GCC" != "xyes"; then | |
34957 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
34958 | set dummy makeC++SharedLib; ac_word=$2 | |
e6cc62c6 VS |
34959 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
34960 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
34961 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
34962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
34963 | else |
34964 | if test -n "$AIX_CXX_LD"; then | |
34965 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
34966 | else | |
e6cc62c6 VS |
34967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
34968 | for as_dir in $PATH | |
34969 | do | |
34970 | IFS=$as_save_IFS | |
34971 | test -z "$as_dir" && as_dir=. | |
34972 | for ac_exec_ext in '' $ac_executable_extensions; do | |
34973 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
34974 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
34975 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
34976 | break 2 | |
34977 | fi | |
34978 | done | |
34979 | done | |
34980 | ||
fe0895cf VS |
34981 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" |
34982 | fi | |
34983 | fi | |
e6cc62c6 | 34984 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD |
fe0895cf | 34985 | if test -n "$AIX_CXX_LD"; then |
e6cc62c6 VS |
34986 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 |
34987 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
fe0895cf | 34988 | else |
e6cc62c6 VS |
34989 | echo "$as_me:$LINENO: result: no" >&5 |
34990 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
34991 | fi |
34992 | ||
34993 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
34994 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
34995 | fi | |
34996 | ;; | |
34997 | ||
34998 | *-*-beos* ) | |
34999 | SHARED_LD_CC="${LD} -shared -o" | |
35000 | SHARED_LD_CXX="${LD} -shared -o" | |
35001 | ;; | |
35002 | ||
35003 | *-*-irix* ) | |
35004 | if test "x$GCC" != "xyes"; then | |
35005 | PIC_FLAG="-KPIC" | |
35006 | fi | |
35007 | ;; | |
e6cc62c6 | 35008 | |
fe0895cf VS |
35009 | *-*-cygwin* | *-*-mingw32* ) |
35010 | PIC_FLAG="" | |
35011 | ;; | |
e6cc62c6 | 35012 | |
fe0895cf VS |
35013 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ |
35014 | *-*-sunos4* | \ | |
35015 | *-*-osf* | \ | |
35016 | *-*-dgux5* | \ | |
4b1f6360 | 35017 | *-pc-os2_emx | *-pc-os2-emx | \ |
fe0895cf VS |
35018 | *-*-sysv5* ) |
35019 | ;; | |
35020 | ||
35021 | *) | |
e6cc62c6 VS |
35022 | { { echo "$as_me:$LINENO: error: unknown system type $host." >&5 |
35023 | echo "$as_me: error: unknown system type $host." >&2;} | |
35024 | { (exit 1); exit 1; }; } | |
fe0895cf VS |
35025 | esac |
35026 | ||
131f235d VS |
35027 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then |
35028 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
35029 | fi | |
35030 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
239394fb | 35031 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" |
131f235d VS |
35032 | fi |
35033 | ||
35034 | ||
35035 | ||
fe0895cf | 35036 | |
e6cc62c6 VS |
35037 | |
35038 | ||
35039 | ||
35040 | ||
fe0895cf VS |
35041 | USE_SOVERSION=0 |
35042 | USE_SOVERLINUX=0 | |
35043 | USE_SOVERSOLARIS=0 | |
35044 | USE_SOSYMLINKS=0 | |
35045 | USE_MACVERSION=0 | |
35046 | SONAME_FLAG= | |
35047 | ||
35048 | case "${host}" in | |
35049 | *-*-linux* ) | |
35050 | SONAME_FLAG="-Wl,-soname," | |
35051 | USE_SOVERSION=1 | |
35052 | USE_SOVERLINUX=1 | |
35053 | USE_SOSYMLINKS=1 | |
35054 | ;; | |
35055 | ||
35056 | *-*-solaris2* ) | |
35057 | SONAME_FLAG="-h " | |
35058 | USE_SOVERSION=1 | |
35059 | USE_SOVERSOLARIS=1 | |
35060 | USE_SOSYMLINKS=1 | |
35061 | ;; | |
35062 | ||
35063 | *-*-darwin* ) | |
35064 | USE_MACVERSION=1 | |
35065 | USE_SOVERSION=1 | |
35066 | USE_SOSYMLINKS=1 | |
e6cc62c6 | 35067 | ;; |
fe0895cf VS |
35068 | esac |
35069 | ||
fe0895cf | 35070 | |
e6cc62c6 VS |
35071 | |
35072 | ||
35073 | ||
35074 | ||
35075 | ||
35076 | ||
35077 | ||
49b0a3aa VS |
35078 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 |
35079 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
35080 | DEPS_TRACKING=0 | |
35081 | ||
fe0895cf | 35082 | if test "x$GCC" = "xyes"; then |
49b0a3aa VS |
35083 | DEPSMODE=gcc |
35084 | DEPS_TRACKING=1 | |
3e5c3c83 VS |
35085 | case "${host}" in |
35086 | powerpc-*-darwin* ) | |
35087 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
35088 | ;; | |
35089 | * ) | |
35090 | DEPSFLAG_GCC="-MMD" | |
35091 | ;; | |
35092 | esac | |
49b0a3aa VS |
35093 | echo "$as_me:$LINENO: result: gcc" >&5 |
35094 | echo "${ECHO_T}gcc" >&6 | |
35095 | else | |
35096 | echo "$as_me:$LINENO: result: none" >&5 | |
35097 | echo "${ECHO_T}none" >&6 | |
35098 | fi | |
35099 | ||
35100 | if test $DEPS_TRACKING = 1 ; then | |
35101 | cat <<EOF >bk-deps | |
35102 | #!/bin/sh | |
35103 | ||
45842500 VS |
35104 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf |
35105 | # script. It is used to track C/C++ files dependencies in portable way. | |
49b0a3aa VS |
35106 | # |
35107 | # Permission is given to use this file in any way. | |
35108 | ||
35109 | DEPSMODE=$DEPSMODE | |
35110 | DEPSDIR=.deps | |
3e5c3c83 | 35111 | DEPSFLAG_GCC="$DEPSFLAG_GCC" |
49b0a3aa VS |
35112 | |
35113 | mkdir -p \$DEPSDIR | |
35114 | ||
35115 | if test \$DEPSMODE = gcc ; then | |
3e5c3c83 | 35116 | \${*} \${DEPSFLAG_GCC} |
49b0a3aa VS |
35117 | status=\${?} |
35118 | if test \${status} != 0 ; then | |
35119 | exit \${status} | |
35120 | fi | |
35121 | # move created file to the location we want it in: | |
35122 | while test \${#} -gt 0; do | |
35123 | case "\${1}" in | |
35124 | -o ) | |
35125 | shift | |
35126 | objfile=\${1} | |
35127 | ;; | |
35128 | -* ) | |
35129 | ;; | |
35130 | * ) | |
35131 | srcfile=\${1} | |
35132 | ;; | |
35133 | esac | |
35134 | shift | |
35135 | done | |
35136 | depfile=\`basename \$srcfile | sed -e 's/\..*$/.d/g'\` | |
35137 | depobjname=\`echo \$depfile |sed -e 's/\.d/.o/g'\` | |
6b9d41a5 VS |
35138 | if test -f \$depfile ; then |
35139 | sed -e "s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d | |
35140 | rm -f \$depfile | |
35141 | else | |
35142 | depfile=\`basename \$objfile | sed -e 's/\..*$/.d/g'\` | |
35143 | if test -f \$depfile ; then | |
9d0be83a | 35144 | sed -e "/^\$objfile/!s,\$depobjname:,\$objfile:,g" \$depfile >\${DEPSDIR}/\${objfile}.d |
6b9d41a5 VS |
35145 | rm -f \$depfile |
35146 | fi | |
35147 | fi | |
49b0a3aa VS |
35148 | exit 0 |
35149 | else | |
35150 | \${*} | |
35151 | exit \${?} | |
35152 | fi | |
35153 | EOF | |
35154 | chmod +x bk-deps | |
fe0895cf | 35155 | fi |
fe0895cf | 35156 | |
e6cc62c6 VS |
35157 | |
35158 | ||
35159 | ||
fe0895cf VS |
35160 | RESCOMP= |
35161 | SETFILE= | |
35162 | ||
e6cc62c6 | 35163 | case ${host} in |
fe0895cf VS |
35164 | *-*-cygwin* | *-*-mingw32* ) |
35165 | if test "$build" != "$host" ; then | |
35166 | RESCOMP=$host_alias-windres | |
35167 | else | |
35168 | # Extract the first word of "windres", so it can be a program name with args. | |
35169 | set dummy windres; ac_word=$2 | |
e6cc62c6 VS |
35170 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
35171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35172 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
35173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
35174 | else |
35175 | if test -n "$RESCOMP"; then | |
35176 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
35177 | else | |
e6cc62c6 VS |
35178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
35179 | for as_dir in $PATH | |
35180 | do | |
35181 | IFS=$as_save_IFS | |
35182 | test -z "$as_dir" && as_dir=. | |
35183 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35184 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35185 | ac_cv_prog_RESCOMP="windres" | |
35186 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35187 | break 2 | |
35188 | fi | |
35189 | done | |
35190 | done | |
35191 | ||
fe0895cf VS |
35192 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" |
35193 | fi | |
35194 | fi | |
e6cc62c6 | 35195 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 35196 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
35197 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
35198 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 35199 | else |
e6cc62c6 VS |
35200 | echo "$as_me:$LINENO: result: no" >&5 |
35201 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
35202 | fi |
35203 | ||
35204 | fi | |
35205 | ;; | |
e6cc62c6 | 35206 | |
fe0895cf VS |
35207 | *-*-darwin* ) |
35208 | # Extract the first word of "Rez", so it can be a program name with args. | |
35209 | set dummy Rez; ac_word=$2 | |
e6cc62c6 VS |
35210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
35211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35212 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
35213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
35214 | else |
35215 | if test -n "$RESCOMP"; then | |
35216 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
35217 | else | |
e6cc62c6 VS |
35218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
35219 | for as_dir in $PATH | |
35220 | do | |
35221 | IFS=$as_save_IFS | |
35222 | test -z "$as_dir" && as_dir=. | |
35223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35224 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35225 | ac_cv_prog_RESCOMP="Rez" | |
35226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35227 | break 2 | |
35228 | fi | |
35229 | done | |
35230 | done | |
35231 | ||
fe0895cf VS |
35232 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" |
35233 | fi | |
35234 | fi | |
e6cc62c6 | 35235 | RESCOMP=$ac_cv_prog_RESCOMP |
fe0895cf | 35236 | if test -n "$RESCOMP"; then |
e6cc62c6 VS |
35237 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 |
35238 | echo "${ECHO_T}$RESCOMP" >&6 | |
fe0895cf | 35239 | else |
e6cc62c6 VS |
35240 | echo "$as_me:$LINENO: result: no" >&5 |
35241 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
35242 | fi |
35243 | ||
35244 | # Extract the first word of "SetFile", so it can be a program name with args. | |
35245 | set dummy SetFile; ac_word=$2 | |
e6cc62c6 VS |
35246 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
35247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35248 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
35249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
fe0895cf VS |
35250 | else |
35251 | if test -n "$SETFILE"; then | |
35252 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
35253 | else | |
e6cc62c6 VS |
35254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
35255 | for as_dir in $PATH | |
35256 | do | |
35257 | IFS=$as_save_IFS | |
35258 | test -z "$as_dir" && as_dir=. | |
35259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35260 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35261 | ac_cv_prog_SETFILE="SetFile" | |
35262 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35263 | break 2 | |
35264 | fi | |
35265 | done | |
35266 | done | |
35267 | ||
fe0895cf VS |
35268 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" |
35269 | fi | |
35270 | fi | |
e6cc62c6 | 35271 | SETFILE=$ac_cv_prog_SETFILE |
fe0895cf | 35272 | if test -n "$SETFILE"; then |
e6cc62c6 VS |
35273 | echo "$as_me:$LINENO: result: $SETFILE" >&5 |
35274 | echo "${ECHO_T}$SETFILE" >&6 | |
fe0895cf | 35275 | else |
e6cc62c6 VS |
35276 | echo "$as_me:$LINENO: result: no" >&5 |
35277 | echo "${ECHO_T}no" >&6 | |
fe0895cf VS |
35278 | fi |
35279 | ||
35280 | ;; | |
35281 | esac | |
35282 | ||
fe0895cf VS |
35283 | |
35284 | ||
e6cc62c6 VS |
35285 | |
35286 | ||
35287 | ||
35288 | ||
45842500 | 35289 | |
74500461 VS |
35290 | |
35291 | ||
45842500 VS |
35292 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
35293 | if test "${enable_precomp_headers+set}" = set; then | |
35294 | enableval="$enable_precomp_headers" | |
35295 | bk_use_pch="$enableval" | |
35296 | fi; | |
35297 | ||
35298 | GCC_PCH=0 | |
35299 | ||
35300 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
35301 | if test "x$GCC" = "xyes"; then | |
35302 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
35303 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
35304 | cat >conftest.$ac_ext <<_ACEOF | |
09d3439c | 35305 | #line $LINENO "configure" |
45842500 VS |
35306 | /* confdefs.h. */ |
35307 | _ACEOF | |
35308 | cat confdefs.h >>conftest.$ac_ext | |
35309 | cat >>conftest.$ac_ext <<_ACEOF | |
35310 | /* end confdefs.h. */ | |
35311 | ||
35312 | int | |
35313 | main () | |
35314 | { | |
35315 | ||
8bcf2d20 VS |
35316 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) |
35317 | #error "no pch support" | |
35318 | #endif | |
35319 | #if (__GNUC__ < 3) | |
35320 | #error "no pch support" | |
35321 | #endif | |
35322 | #if (__GNUC__ == 3) && \ | |
35323 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
35324 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
35325 | #error "no pch support" | |
45842500 VS |
35326 | #endif |
35327 | ||
35328 | ; | |
35329 | return 0; | |
35330 | } | |
35331 | _ACEOF | |
35332 | rm -f conftest.$ac_objext | |
35333 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
09d3439c | 35334 | (eval $ac_compile) 2>&5 |
45842500 VS |
35335 | ac_status=$? |
35336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35337 | (exit $ac_status); } && | |
09d3439c | 35338 | { ac_try='test -s conftest.$ac_objext' |
45842500 VS |
35339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35340 | (eval $ac_try) 2>&5 | |
35341 | ac_status=$? | |
35342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35343 | (exit $ac_status); }; }; then | |
35344 | ||
35345 | echo "$as_me:$LINENO: result: yes" >&5 | |
35346 | echo "${ECHO_T}yes" >&6 | |
35347 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
35348 | GCC_PCH=1 | |
35349 | ||
35350 | else | |
35351 | echo "$as_me: failed program was:" >&5 | |
35352 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35353 | ||
35354 | ||
35355 | echo "$as_me:$LINENO: result: no" >&5 | |
35356 | echo "${ECHO_T}no" >&6 | |
35357 | ||
35358 | fi | |
09d3439c | 35359 | rm -f conftest.$ac_objext conftest.$ac_ext |
45842500 VS |
35360 | if test $GCC_PCH = 1 ; then |
35361 | cat <<EOF >bk-make-pch | |
35362 | #!/bin/sh | |
35363 | ||
35364 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
35365 | # script. It is used to generated precompiled headers. | |
35366 | # | |
35367 | # Permission is given to use this file in any way. | |
35368 | ||
35369 | outfile="\${1}" | |
35370 | header="\${2}" | |
35371 | shift | |
35372 | shift | |
35373 | ||
35374 | compiler= | |
35375 | headerfile= | |
35376 | while test \${#} -gt 0; do | |
35377 | case "\${1}" in | |
35378 | -I* ) | |
35379 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
35380 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
35381 | headerfile="\${incdir}/\${header}" | |
35382 | fi | |
35383 | ;; | |
35384 | esac | |
35385 | compiler="\${compiler} \${1}" | |
35386 | shift | |
35387 | done | |
35388 | ||
35389 | if test "x\${headerfile}" = "x" ; then | |
35390 | echo "error: can't find header \${header} in include paths" >2 | |
35391 | else | |
35392 | if test -f \${outfile} ; then | |
35393 | rm -f \${outfile} | |
35394 | else | |
35395 | mkdir -p \`dirname \${outfile}\` | |
35396 | fi | |
35397 | depsfile=".deps/\`basename \${outfile}\`.d" | |
35398 | mkdir -p .deps | |
35399 | # can do this because gcc is >= 3.4: | |
35400 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
35401 | exit \${?} | |
35402 | fi | |
35403 | EOF | |
35404 | chmod +x bk-make-pch | |
35405 | fi | |
35406 | fi | |
35407 | fi | |
35408 | ||
35409 | ||
35410 | ||
35411 | ||
35412 | ||
d78c94f2 | 35413 | COND_BUILD_DEBUG="#" |
6f628073 | 35414 | if test "x$BUILD" = "xdebug" ; then |
d78c94f2 | 35415 | COND_BUILD_DEBUG="" |
6f628073 VS |
35416 | fi |
35417 | ||
6c67131a VS |
35418 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" |
35419 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
35420 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
35421 | fi | |
35422 | ||
35423 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
35424 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
35425 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
35426 | fi | |
35427 | ||
d78c94f2 | 35428 | COND_BUILD_RELEASE="#" |
6f628073 | 35429 | if test "x$BUILD" = "xrelease" ; then |
d78c94f2 | 35430 | COND_BUILD_RELEASE="" |
6b9d41a5 VS |
35431 | fi |
35432 | ||
6c67131a VS |
35433 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" |
35434 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
35435 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
35436 | fi | |
35437 | ||
35438 | COND_DEBUG_FLAG_1="#" | |
35439 | if test "x$DEBUG_FLAG" = "x1" ; then | |
35440 | COND_DEBUG_FLAG_1="" | |
35441 | fi | |
35442 | ||
35443 | COND_DEBUG_INFO_0="#" | |
35444 | if test "x$DEBUG_INFO" = "x0" ; then | |
35445 | COND_DEBUG_INFO_0="" | |
35446 | fi | |
35447 | ||
35448 | COND_DEBUG_INFO_1="#" | |
35449 | if test "x$DEBUG_INFO" = "x1" ; then | |
35450 | COND_DEBUG_INFO_1="" | |
35451 | fi | |
35452 | ||
f95cd8fa VS |
35453 | COND_DEPS_TRACKING_0="#" |
35454 | if test "x$DEPS_TRACKING" = "x0" ; then | |
35455 | COND_DEPS_TRACKING_0="" | |
6b9d41a5 VS |
35456 | fi |
35457 | ||
8ee2dd05 VS |
35458 | COND_DEPS_TRACKING_1="#" |
35459 | if test "x$DEPS_TRACKING" = "x1" ; then | |
35460 | COND_DEPS_TRACKING_1="" | |
35461 | fi | |
35462 | ||
45842500 VS |
35463 | COND_GCC_PCH_1="#" |
35464 | if test "x$GCC_PCH" = "x1" ; then | |
35465 | COND_GCC_PCH_1="" | |
35466 | fi | |
35467 | ||
6f628073 VS |
35468 | COND_MONOLITHIC_0="#" |
35469 | if test "x$MONOLITHIC" = "x0" ; then | |
35470 | COND_MONOLITHIC_0="" | |
6b9d41a5 VS |
35471 | fi |
35472 | ||
6f628073 VS |
35473 | COND_MONOLITHIC_0_SHARED_0="#" |
35474 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
35475 | COND_MONOLITHIC_0_SHARED_0="" | |
35476 | fi | |
35477 | ||
35478 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
35479 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
35480 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
fe0895cf | 35481 | fi |
e6cc62c6 | 35482 | |
8772a1a7 VS |
35483 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" |
35484 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
35485 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
35486 | fi | |
35487 | ||
250700e4 RD |
35488 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" |
35489 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
35490 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
35491 | fi | |
35492 | ||
eb69fda5 VS |
35493 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" |
35494 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
35495 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
35496 | fi | |
35497 | ||
8ee2dd05 VS |
35498 | COND_MONOLITHIC_0_SHARED_1="#" |
35499 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
35500 | COND_MONOLITHIC_0_SHARED_1="" | |
fe0895cf | 35501 | fi |
e6cc62c6 | 35502 | |
6f628073 VS |
35503 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" |
35504 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
35505 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
35506 | fi | |
35507 | ||
8772a1a7 VS |
35508 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" |
35509 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
35510 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
35511 | fi | |
35512 | ||
250700e4 RD |
35513 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" |
35514 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
35515 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
35516 | fi | |
35517 | ||
eb69fda5 VS |
35518 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" |
35519 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
35520 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
35521 | fi | |
35522 | ||
3af038c0 VS |
35523 | COND_MONOLITHIC_1="#" |
35524 | if test "x$MONOLITHIC" = "x1" ; then | |
35525 | COND_MONOLITHIC_1="" | |
35526 | fi | |
35527 | ||
6f628073 VS |
35528 | COND_MONOLITHIC_1_SHARED_0="#" |
35529 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
35530 | COND_MONOLITHIC_1_SHARED_0="" | |
35531 | fi | |
35532 | ||
35533 | COND_MONOLITHIC_1_SHARED_1="#" | |
35534 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
35535 | COND_MONOLITHIC_1_SHARED_1="" | |
35536 | fi | |
35537 | ||
3af038c0 VS |
35538 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" |
35539 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
35540 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
35541 | fi | |
35542 | ||
35543 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
35544 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
35545 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
35546 | fi | |
35547 | ||
6f628073 VS |
35548 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" |
35549 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
35550 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
35551 | fi | |
35552 | ||
3af038c0 VS |
35553 | COND_PLATFORM_MACOSX_1="#" |
35554 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
35555 | COND_PLATFORM_MACOSX_1="" | |
35556 | fi | |
35557 | ||
250700e4 RD |
35558 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" |
35559 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
35560 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
35561 | fi | |
35562 | ||
35563 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
35564 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
35565 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
35566 | fi | |
35567 | ||
35568 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
35569 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
35570 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
35571 | fi | |
35572 | ||
3527f29c VS |
35573 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" |
35574 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
35575 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
35576 | fi | |
35577 | ||
8ee2dd05 VS |
35578 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" |
35579 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
35580 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
35581 | fi | |
35582 | ||
45842500 VS |
35583 | COND_PLATFORM_MAC_1="#" |
35584 | if test "x$PLATFORM_MAC" = "x1" ; then | |
35585 | COND_PLATFORM_MAC_1="" | |
35586 | fi | |
35587 | ||
3d8c1de0 VS |
35588 | COND_PLATFORM_OS2_1="#" |
35589 | if test "x$PLATFORM_OS2" = "x1" ; then | |
35590 | COND_PLATFORM_OS2_1="" | |
35591 | fi | |
35592 | ||
8772a1a7 VS |
35593 | COND_PLATFORM_UNIX_0="#" |
35594 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
35595 | COND_PLATFORM_UNIX_0="" | |
35596 | fi | |
35597 | ||
3af038c0 VS |
35598 | COND_PLATFORM_UNIX_1="#" |
35599 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
35600 | COND_PLATFORM_UNIX_1="" | |
35601 | fi | |
35602 | ||
3527f29c VS |
35603 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" |
35604 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
35605 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
35606 | fi | |
35607 | ||
3af038c0 VS |
35608 | COND_PLATFORM_WIN32_0="#" |
35609 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
35610 | COND_PLATFORM_WIN32_0="" | |
35611 | fi | |
35612 | ||
35613 | COND_PLATFORM_WIN32_1="#" | |
35614 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
35615 | COND_PLATFORM_WIN32_1="" | |
35616 | fi | |
35617 | ||
45842500 VS |
35618 | COND_SHARED_0="#" |
35619 | if test "x$SHARED" = "x0" ; then | |
35620 | COND_SHARED_0="" | |
35621 | fi | |
35622 | ||
250700e4 RD |
35623 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" |
35624 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
35625 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
35626 | fi | |
35627 | ||
52a5a009 VS |
35628 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
35629 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35630 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
35631 | fi | |
35632 | ||
35633 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
35634 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35635 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
35636 | fi | |
35637 | ||
35638 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
35639 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35640 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
35641 | fi | |
35642 | ||
35643 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
35644 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
35645 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
35646 | fi | |
35647 | ||
35648 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
35649 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
35650 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
35651 | fi | |
35652 | ||
35653 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
35654 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
35655 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
35656 | fi | |
35657 | ||
35658 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
35659 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
35660 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
35661 | fi | |
35662 | ||
45842500 VS |
35663 | COND_SHARED_1="#" |
35664 | if test "x$SHARED" = "x1" ; then | |
35665 | COND_SHARED_1="" | |
35666 | fi | |
35667 | ||
250700e4 RD |
35668 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" |
35669 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
35670 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
35671 | fi | |
35672 | ||
6f628073 VS |
35673 | COND_TOOLKIT_COCOA="#" |
35674 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
35675 | COND_TOOLKIT_COCOA="" | |
8ee2dd05 VS |
35676 | fi |
35677 | ||
6f628073 VS |
35678 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" |
35679 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35680 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35681 | fi |
35682 | ||
6f628073 VS |
35683 | COND_TOOLKIT_GTK="#" |
35684 | if test "x$TOOLKIT" = "xGTK" ; then | |
35685 | COND_TOOLKIT_GTK="" | |
f95cd8fa VS |
35686 | fi |
35687 | ||
6f628073 VS |
35688 | COND_TOOLKIT_GTK_USE_GUI_1="#" |
35689 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
35690 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
f95cd8fa VS |
35691 | fi |
35692 | ||
6f628073 VS |
35693 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" |
35694 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35695 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35696 | fi |
35697 | ||
3af038c0 VS |
35698 | COND_TOOLKIT_MAC="#" |
35699 | if test "x$TOOLKIT" = "xMAC" ; then | |
35700 | COND_TOOLKIT_MAC="" | |
35701 | fi | |
35702 | ||
8772a1a7 VS |
35703 | COND_TOOLKIT_MAC_USE_GUI_1="#" |
35704 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
35705 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
35706 | fi | |
35707 | ||
6f628073 VS |
35708 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" |
35709 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35710 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35711 | fi |
35712 | ||
6f628073 VS |
35713 | COND_TOOLKIT_MGL="#" |
35714 | if test "x$TOOLKIT" = "xMGL" ; then | |
35715 | COND_TOOLKIT_MGL="" | |
8ee2dd05 VS |
35716 | fi |
35717 | ||
6f628073 VS |
35718 | COND_TOOLKIT_MGL_USE_GUI_1="#" |
35719 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
35720 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
8ee2dd05 VS |
35721 | fi |
35722 | ||
6f628073 VS |
35723 | COND_TOOLKIT_MOTIF="#" |
35724 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
35725 | COND_TOOLKIT_MOTIF="" | |
f95cd8fa VS |
35726 | fi |
35727 | ||
6f628073 VS |
35728 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" |
35729 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
35730 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
fe0895cf | 35731 | fi |
e6cc62c6 | 35732 | |
6f628073 VS |
35733 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" |
35734 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35735 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
8ee2dd05 VS |
35736 | fi |
35737 | ||
6f628073 VS |
35738 | COND_TOOLKIT_MSW="#" |
35739 | if test "x$TOOLKIT" = "xMSW" ; then | |
35740 | COND_TOOLKIT_MSW="" | |
8ee2dd05 VS |
35741 | fi |
35742 | ||
6f628073 VS |
35743 | COND_TOOLKIT_MSW_USE_GUI_1="#" |
35744 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
35745 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
fe0895cf | 35746 | fi |
e6cc62c6 | 35747 | |
6f628073 VS |
35748 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" |
35749 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35750 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 35751 | fi |
e6cc62c6 | 35752 | |
96c1699d VS |
35753 | COND_TOOLKIT_PM="#" |
35754 | if test "x$TOOLKIT" = "xPM" ; then | |
35755 | COND_TOOLKIT_PM="" | |
35756 | fi | |
35757 | ||
35758 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
35759 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
35760 | COND_TOOLKIT_PM_USE_GUI_1="" | |
35761 | fi | |
35762 | ||
35763 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
35764 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
35765 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
35766 | fi | |
35767 | ||
6f628073 VS |
35768 | COND_TOOLKIT_X11="#" |
35769 | if test "x$TOOLKIT" = "xX11" ; then | |
35770 | COND_TOOLKIT_X11="" | |
9747f85d VS |
35771 | fi |
35772 | ||
6f628073 VS |
35773 | COND_TOOLKIT_X11_USE_GUI_1="#" |
35774 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
35775 | COND_TOOLKIT_X11_USE_GUI_1="" | |
f95cd8fa VS |
35776 | fi |
35777 | ||
3af038c0 VS |
35778 | COND_UNICODE_1="#" |
35779 | if test "x$UNICODE" = "x1" ; then | |
35780 | COND_UNICODE_1="" | |
35781 | fi | |
35782 | ||
7015ef3a VZ |
35783 | COND_USE_EXCEPTIONS_0="#" |
35784 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
35785 | COND_USE_EXCEPTIONS_0="" | |
35786 | fi | |
35787 | ||
35788 | COND_USE_EXCEPTIONS_1="#" | |
35789 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
35790 | COND_USE_EXCEPTIONS_1="" | |
35791 | fi | |
35792 | ||
3af038c0 VS |
35793 | COND_USE_GUI_0="#" |
35794 | if test "x$USE_GUI" = "x0" ; then | |
35795 | COND_USE_GUI_0="" | |
35796 | fi | |
35797 | ||
35798 | COND_USE_GUI_1="#" | |
35799 | if test "x$USE_GUI" = "x1" ; then | |
35800 | COND_USE_GUI_1="" | |
35801 | fi | |
35802 | ||
e6cc62c6 | 35803 | COND_USE_GUI_1_WXUNIV_0="#" |
c7dfb5bb VS |
35804 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then |
35805 | COND_USE_GUI_1_WXUNIV_0="" | |
fe0895cf | 35806 | fi |
e6cc62c6 VS |
35807 | |
35808 | COND_USE_GUI_1_WXUNIV_1="#" | |
c7dfb5bb VS |
35809 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then |
35810 | COND_USE_GUI_1_WXUNIV_1="" | |
e6cc62c6 VS |
35811 | fi |
35812 | ||
66a96744 VS |
35813 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" |
35814 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35815 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
35816 | fi | |
35817 | ||
35818 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
35819 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35820 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
35821 | fi | |
35822 | ||
35823 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
35824 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35825 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
35826 | fi | |
35827 | ||
57e7d4ac VS |
35828 | COND_USE_ODBC_1="#" |
35829 | if test "x$USE_ODBC" = "x1" ; then | |
35830 | COND_USE_ODBC_1="" | |
35831 | fi | |
35832 | ||
6f628073 VS |
35833 | COND_USE_SOSYMLINKS_1="#" |
35834 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
35835 | COND_USE_SOSYMLINKS_1="" | |
b625909c VS |
35836 | fi |
35837 | ||
6f628073 VS |
35838 | COND_USE_SOVERLINUX_1="#" |
35839 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
35840 | COND_USE_SOVERLINUX_1="" | |
b625909c VS |
35841 | fi |
35842 | ||
6f628073 VS |
35843 | COND_USE_SOVERSION_0="#" |
35844 | if test "x$USE_SOVERSION" = "x0" ; then | |
35845 | COND_USE_SOVERSION_0="" | |
fddeb06b | 35846 | fi |
fe0895cf | 35847 | |
6f628073 VS |
35848 | COND_USE_SOVERSOLARIS_1="#" |
35849 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
35850 | COND_USE_SOVERSOLARIS_1="" | |
fddeb06b | 35851 | fi |
fe0895cf | 35852 | |
3af038c0 VS |
35853 | COND_WXUNIV_1="#" |
35854 | if test "x$WXUNIV" = "x1" ; then | |
35855 | COND_WXUNIV_1="" | |
35856 | fi | |
35857 | ||
66a96744 VS |
35858 | COND_WXUSE_EXPAT_BUILTIN="#" |
35859 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
35860 | COND_WXUSE_EXPAT_BUILTIN="" | |
35861 | fi | |
35862 | ||
02980527 VS |
35863 | COND_WXUSE_LIBJPEG_BUILTIN="#" |
35864 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
35865 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
35866 | fi | |
35867 | ||
35868 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
35869 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
35870 | COND_WXUSE_LIBPNG_BUILTIN="" | |
35871 | fi | |
35872 | ||
35873 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
35874 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
35875 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
35876 | fi | |
35877 | ||
35878 | COND_WXUSE_ODBC_BUILTIN="#" | |
35879 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
35880 | COND_WXUSE_ODBC_BUILTIN="" | |
35881 | fi | |
35882 | ||
35883 | COND_WXUSE_REGEX_BUILTIN="#" | |
35884 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
35885 | COND_WXUSE_REGEX_BUILTIN="" | |
35886 | fi | |
35887 | ||
35888 | COND_WXUSE_ZLIB_BUILTIN="#" | |
35889 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
35890 | COND_WXUSE_ZLIB_BUILTIN="" | |
35891 | fi | |
35892 | ||
1772d20c | 35893 | |
fe0895cf | 35894 | |
fe0895cf | 35895 | |
fe0895cf | 35896 | |
45842500 | 35897 | if test $GCC_PCH = 1 ; then |
130711ba | 35898 | CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
45842500 VS |
35899 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" |
35900 | else | |
35901 | case "${host}" in | |
35902 | powerpc-*-darwin* ) | |
130711ba VS |
35903 | CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS" |
35904 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
45842500 | 35905 | ;; |
45842500 VS |
35906 | esac |
35907 | fi | |
fe0895cf VS |
35908 | |
35909 | ||
fddeb06b | 35910 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" |
fe0895cf VS |
35911 | |
35912 | ||
35913 | ||
35914 | ||
35915 | ||
35916 | ||
35917 | ||
35918 | ||
35919 | ||
35920 | ||
35921 | ||
35922 | ||
35923 | ||
35924 | ||
35925 | ||
35926 | ||
35927 | ||
35928 | ||
35929 | ||
35930 | ||
35931 | ||
35932 | ||
35933 | ||
35934 | ||
35935 | ||
35936 | ||
35937 | ||
35938 | ||
35939 | ||
35940 | ||
35941 | ||
35942 | ||
35943 | ||
35944 | ||
35945 | ||
35946 | ||
35947 | ||
35948 | ||
35949 | ||
35950 | ||
35951 | ||
35952 | ||
35953 | ||
35954 | ||
35955 | ||
35956 | ||
35957 | ||
35958 | ||
35959 | ||
35960 | ||
35961 | ||
35962 | ||
35963 | ||
35964 | ||
35965 | ||
35966 | ||
35967 | ||
35968 | ||
35969 | ||
35970 | ||
35971 | ||
35972 | ||
35973 | ||
35974 | ||
35975 | ||
35976 | ||
35977 | ||
35978 | ||
35979 | ||
35980 | ||
35981 | ||
35982 | ||
35983 | ||
35984 | ||
35985 | ||
35986 | ||
35987 | ||
35988 | ||
35989 | ||
35990 | ||
35991 | ||
35992 | ||
35993 | ||
35994 | ||
35995 | ||
35996 | ||
35997 | ||
35998 | ||
35999 | ||
36000 | ||
36001 | ||
36002 | ||
36003 | ||
36004 | ||
fe0895cf | 36005 | |
f0290fca VS |
36006 | |
36007 | ||
e6cc62c6 VS |
36008 | |
36009 | ||
36010 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
36011 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
09d3439c | 36012 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
e6cc62c6 VS |
36013 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
36014 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36015 | else | |
36016 | cat >conftest.make <<\_ACEOF | |
36017 | all: | |
36018 | @echo 'ac_maketemp="$(MAKE)"' | |
36019 | _ACEOF | |
36020 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
36021 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
36022 | if test -n "$ac_maketemp"; then | |
36023 | eval ac_cv_prog_make_${ac_make}_set=yes | |
36024 | else | |
36025 | eval ac_cv_prog_make_${ac_make}_set=no | |
36026 | fi | |
36027 | rm -f conftest.make | |
36028 | fi | |
36029 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
36030 | echo "$as_me:$LINENO: result: yes" >&5 | |
36031 | echo "${ECHO_T}yes" >&6 | |
36032 | SET_MAKE= | |
36033 | else | |
36034 | echo "$as_me:$LINENO: result: no" >&5 | |
36035 | echo "${ECHO_T}no" >&6 | |
36036 | SET_MAKE="MAKE=${MAKE-make}" | |
36037 | fi | |
36038 | ||
36039 | ||
36040 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
36041 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
36042 | fi | |
36043 | ||
36044 | ac_config_headers="$ac_config_headers setup.h" | |
36045 | ||
36046 | ||
81345eef | 36047 | ac_config_files="$ac_config_files wx-config version-script Makefile" |
e6cc62c6 VS |
36048 | |
36049 | ||
36050 | ac_config_commands="$ac_config_commands default" | |
36051 | ||
36052 | ||
9de9b8f0 | 36053 | |
6c3e36af VZ |
36054 | if test "$wxUSE_GUI" = "yes"; then |
36055 | SUBDIRS="samples demos utils contrib" | |
36056 | else SUBDIRS="samples utils" | |
36057 | fi | |
e6cc62c6 | 36058 | |
166263e6 | 36059 | for subdir in `echo $SUBDIRS`; do |
9747f85d | 36060 | if test -d ${srcdir}/${subdir} ; then |
6c3e36af | 36061 | if test "$wxUSE_GUI" = "yes"; then |
166263e6 | 36062 | if test ${subdir} = "samples"; then |
8772a1a7 VS |
36063 | makefiles="samples/Makefile.in $makefiles" |
36064 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
166263e6 VZ |
36065 | if test -d $srcdir/samples/$sample; then |
36066 | makefiles="samples/$sample/Makefile.in $makefiles" | |
36067 | fi | |
36068 | done | |
36069 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
36070 | fi | |
6c3e36af | 36071 | else if test ${subdir} = "samples"; then |
8772a1a7 | 36072 | makefiles="samples/Makefile.in samples/console/Makefile.in" |
6c3e36af | 36073 | else makefiles="utils/HelpGen/Makefile.in \ |
2bf8cafb VS |
36074 | utils/HelpGen/src/Makefile.in \ |
36075 | utils/tex2rtf/Makefile.in \ | |
36076 | utils/tex2rtf/src/Makefile.in" | |
6c3e36af VZ |
36077 | fi |
36078 | fi | |
36079 | ||
9747f85d VS |
36080 | for mkin in $makefiles ; do |
36081 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
36082 | ac_config_files="$ac_config_files $mk" | |
e6cc62c6 | 36083 | |
9747f85d VS |
36084 | done |
36085 | fi | |
36086 | done | |
e6cc62c6 | 36087 | |
9de9b8f0 | 36088 | |
e6cc62c6 VS |
36089 | cat >confcache <<\_ACEOF |
36090 | # This file is a shell script that caches the results of configure | |
36091 | # tests run on this system so they can be shared between configure | |
36092 | # scripts and configure runs, see configure's option --config-cache. | |
36093 | # It is not useful on other systems. If it contains results you don't | |
36094 | # want to keep, you may remove or edit it. | |
36095 | # | |
36096 | # config.status only pays attention to the cache file if you give it | |
36097 | # the --recheck option to rerun configure. | |
36098 | # | |
36099 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
36100 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
36101 | # following values. | |
36102 | ||
36103 | _ACEOF | |
36104 | ||
36105 | # The following way of writing the cache mishandles newlines in values, | |
36106 | # but we know of no workaround that is simple, portable, and efficient. | |
36107 | # So, don't put newlines in cache variables' values. | |
36108 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
36109 | # and sets the high bit in the cache file unless we assign to the vars. | |
36110 | { | |
36111 | (set) 2>&1 | | |
36112 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
36113 | *ac_space=\ *) | |
36114 | # `set' does not quote correctly, so add quotes (double-quote | |
36115 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
36116 | sed -n \ | |
09d3439c VZ |
36117 | "s/'/'\\\\''/g; |
36118 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
e6cc62c6 VS |
36119 | ;; |
36120 | *) | |
36121 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
36122 | sed -n \ | |
09d3439c | 36123 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
e6cc62c6 VS |
36124 | ;; |
36125 | esac; | |
36126 | } | | |
36127 | sed ' | |
36128 | t clear | |
36129 | : clear | |
36130 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
36131 | t end | |
36132 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
36133 | : end' >>confcache | |
36134 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
36135 | if test -w $cache_file; then | |
36136 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
36137 | cat confcache >$cache_file | |
36138 | else | |
36139 | echo "not updating unwritable cache $cache_file" | |
36140 | fi | |
36141 | fi | |
36142 | rm -f confcache | |
36143 | ||
36144 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
36145 | # Let make expand exec_prefix. | |
36146 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
36147 | ||
36148 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
36149 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
36150 | # trailing colons and then remove the whole line if VPATH becomes empty | |
36151 | # (actually we leave an empty line to preserve line numbers). | |
36152 | if test "x$srcdir" = x.; then | |
09d3439c | 36153 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
e6cc62c6 VS |
36154 | s/:*\$(srcdir):*/:/; |
36155 | s/:*\${srcdir}:*/:/; | |
36156 | s/:*@srcdir@:*/:/; | |
09d3439c | 36157 | s/^\([^=]*=[ ]*\):*/\1/; |
e6cc62c6 | 36158 | s/:*$//; |
09d3439c | 36159 | s/^[^=]*=[ ]*$//; |
e6cc62c6 VS |
36160 | }' |
36161 | fi | |
36162 | ||
36163 | DEFS=-DHAVE_CONFIG_H | |
36164 | ||
36165 | ac_libobjs= | |
36166 | ac_ltlibobjs= | |
36167 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
36168 | # 1. Remove the extension, and $U if already installed. | |
36169 | ac_i=`echo "$ac_i" | | |
09d3439c | 36170 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
e6cc62c6 VS |
36171 | # 2. Add them. |
36172 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
36173 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
36174 | done | |
36175 | LIBOBJS=$ac_libobjs | |
36176 | ||
36177 | LTLIBOBJS=$ac_ltlibobjs | |
36178 | ||
36179 | ||
36180 | ||
36181 | : ${CONFIG_STATUS=./config.status} | |
36182 | ac_clean_files_save=$ac_clean_files | |
36183 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
36184 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
36185 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
36186 | cat >$CONFIG_STATUS <<_ACEOF | |
36187 | #! $SHELL | |
36188 | # Generated by $as_me. | |
36189 | # Run this file to recreate the current configuration. | |
36190 | # Compiler output produced by configure, useful for debugging | |
36191 | # configure, is in config.log if it exists. | |
36192 | ||
36193 | debug=false | |
36194 | ac_cs_recheck=false | |
36195 | ac_cs_silent=false | |
36196 | SHELL=\${CONFIG_SHELL-$SHELL} | |
36197 | _ACEOF | |
36198 | ||
36199 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36200 | ## --------------------- ## | |
36201 | ## M4sh Initialization. ## | |
36202 | ## --------------------- ## | |
36203 | ||
36204 | # Be Bourne compatible | |
36205 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
36206 | emulate sh | |
36207 | NULLCMD=: | |
36208 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
36209 | # is contrary to our usage. Disable this feature. | |
36210 | alias -g '${1+"$@"}'='"$@"' | |
36211 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
36212 | set -o posix | |
36213 | fi | |
36214 | ||
36215 | # Support unset when possible. | |
09d3439c | 36216 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
e6cc62c6 VS |
36217 | as_unset=unset |
36218 | else | |
36219 | as_unset=false | |
36220 | fi | |
36221 | ||
36222 | ||
36223 | # Work around bugs in pre-3.0 UWIN ksh. | |
36224 | $as_unset ENV MAIL MAILPATH | |
36225 | PS1='$ ' | |
36226 | PS2='> ' | |
36227 | PS4='+ ' | |
36228 | ||
36229 | # NLS nuisances. | |
36230 | for as_var in \ | |
36231 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
36232 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
36233 | LC_TELEPHONE LC_TIME | |
36234 | do | |
09d3439c | 36235 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
e6cc62c6 VS |
36236 | eval $as_var=C; export $as_var |
36237 | else | |
36238 | $as_unset $as_var | |
36239 | fi | |
36240 | done | |
36241 | ||
36242 | # Required to use basename. | |
36243 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
36244 | as_expr=expr | |
36245 | else | |
36246 | as_expr=false | |
36247 | fi | |
36248 | ||
36249 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
36250 | as_basename=basename | |
36251 | else | |
36252 | as_basename=false | |
36253 | fi | |
36254 | ||
36255 | ||
36256 | # Name of the executable. | |
36257 | as_me=`$as_basename "$0" || | |
36258 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
36259 | X"$0" : 'X\(//\)$' \| \ | |
36260 | X"$0" : 'X\(/\)$' \| \ | |
36261 | . : '\(.\)' 2>/dev/null || | |
36262 | echo X/"$0" | | |
36263 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
36264 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
36265 | /^X\/\(\/\).*/{ s//\1/; q; } | |
36266 | s/.*/./; q'` | |
36267 | ||
36268 | ||
36269 | # PATH needs CR, and LINENO needs CR and PATH. | |
36270 | # Avoid depending upon Character Ranges. | |
36271 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
36272 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
36273 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
36274 | as_cr_digits='0123456789' | |
36275 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
36276 | ||
36277 | # The user is always right. | |
36278 | if test "${PATH_SEPARATOR+set}" != set; then | |
36279 | echo "#! /bin/sh" >conf$$.sh | |
36280 | echo "exit 0" >>conf$$.sh | |
36281 | chmod +x conf$$.sh | |
36282 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
36283 | PATH_SEPARATOR=';' | |
36284 | else | |
36285 | PATH_SEPARATOR=: | |
36286 | fi | |
36287 | rm -f conf$$.sh | |
36288 | fi | |
36289 | ||
36290 | ||
36291 | as_lineno_1=$LINENO | |
36292 | as_lineno_2=$LINENO | |
36293 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
36294 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
36295 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
36296 | # Find who we are. Look in the path if we contain no path at all | |
36297 | # relative or not. | |
36298 | case $0 in | |
36299 | *[\\/]* ) as_myself=$0 ;; | |
36300 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36301 | for as_dir in $PATH | |
36302 | do | |
36303 | IFS=$as_save_IFS | |
36304 | test -z "$as_dir" && as_dir=. | |
36305 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
36306 | done | |
36307 | ||
36308 | ;; | |
36309 | esac | |
36310 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
36311 | # in which case we are not to be found in the path. | |
36312 | if test "x$as_myself" = x; then | |
36313 | as_myself=$0 | |
36314 | fi | |
36315 | if test ! -f "$as_myself"; then | |
36316 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
36317 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
36318 | { (exit 1); exit 1; }; } | |
36319 | fi | |
36320 | case $CONFIG_SHELL in | |
36321 | '') | |
36322 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36323 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
36324 | do | |
36325 | IFS=$as_save_IFS | |
36326 | test -z "$as_dir" && as_dir=. | |
36327 | for as_base in sh bash ksh sh5; do | |
36328 | case $as_dir in | |
36329 | /*) | |
36330 | if ("$as_dir/$as_base" -c ' | |
36331 | as_lineno_1=$LINENO | |
36332 | as_lineno_2=$LINENO | |
36333 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
36334 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
36335 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
36336 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
36337 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
36338 | CONFIG_SHELL=$as_dir/$as_base | |
36339 | export CONFIG_SHELL | |
36340 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
36341 | fi;; | |
36342 | esac | |
36343 | done | |
36344 | done | |
36345 | ;; | |
36346 | esac | |
36347 | ||
36348 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
36349 | # uniformly replaced by the line number. The first 'sed' inserts a | |
36350 | # line-number line before each line; the second 'sed' does the real | |
36351 | # work. The second script uses 'N' to pair each line-number line | |
36352 | # with the numbered line, and appends trailing '-' during | |
36353 | # substitution so that $LINENO is not a special case at line end. | |
36354 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
36355 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
36356 | sed '=' <$as_myself | | |
36357 | sed ' | |
36358 | N | |
36359 | s,$,-, | |
36360 | : loop | |
36361 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
36362 | t loop | |
36363 | s,-$,, | |
36364 | s,^['$as_cr_digits']*\n,, | |
36365 | ' >$as_me.lineno && | |
36366 | chmod +x $as_me.lineno || | |
36367 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
36368 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
36369 | { (exit 1); exit 1; }; } | |
36370 | ||
36371 | # Don't try to exec as it changes $[0], causing all sort of problems | |
36372 | # (the dirname of $[0] is not the place where we might find the | |
36373 | # original and so on. Autoconf is especially sensible to this). | |
36374 | . ./$as_me.lineno | |
36375 | # Exit status is that of the last command. | |
36376 | exit | |
36377 | } | |
36378 | ||
36379 | ||
36380 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
36381 | *c*,-n*) ECHO_N= ECHO_C=' | |
36382 | ' ECHO_T=' ' ;; | |
36383 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
36384 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
36385 | esac | |
36386 | ||
36387 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
36388 | as_expr=expr | |
36389 | else | |
36390 | as_expr=false | |
36391 | fi | |
36392 | ||
36393 | rm -f conf$$ conf$$.exe conf$$.file | |
36394 | echo >conf$$.file | |
36395 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
36396 | # We could just check for DJGPP; but this test a) works b) is more generic | |
36397 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
36398 | if test -f conf$$.exe; then | |
36399 | # Don't use ln at all; we don't have any links | |
36400 | as_ln_s='cp -p' | |
36401 | else | |
36402 | as_ln_s='ln -s' | |
36403 | fi | |
36404 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
36405 | as_ln_s=ln | |
36406 | else | |
36407 | as_ln_s='cp -p' | |
36408 | fi | |
36409 | rm -f conf$$ conf$$.exe conf$$.file | |
36410 | ||
36411 | if mkdir -p . 2>/dev/null; then | |
36412 | as_mkdir_p=: | |
36413 | else | |
36414 | as_mkdir_p=false | |
36415 | fi | |
36416 | ||
36417 | as_executable_p="test -f" | |
36418 | ||
36419 | # Sed expression to map a string onto a valid CPP name. | |
09d3439c | 36420 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
e6cc62c6 VS |
36421 | |
36422 | # Sed expression to map a string onto a valid variable name. | |
09d3439c | 36423 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
e6cc62c6 VS |
36424 | |
36425 | ||
36426 | # IFS | |
36427 | # We need space, tab and new line, in precisely that order. | |
36428 | as_nl=' | |
36429 | ' | |
36430 | IFS=" $as_nl" | |
36431 | ||
36432 | # CDPATH. | |
36433 | $as_unset CDPATH | |
36434 | ||
36435 | exec 6>&1 | |
36436 | ||
36437 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
36438 | # report actual input values of CONFIG_FILES etc. instead of their | |
36439 | # values after options handling. Logging --version etc. is OK. | |
36440 | exec 5>>config.log | |
36441 | { | |
36442 | echo | |
36443 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
36444 | ## Running $as_me. ## | |
36445 | _ASBOX | |
36446 | } >&5 | |
36447 | cat >&5 <<_CSEOF | |
36448 | ||
e46d2a18 | 36449 | This file was extended by wxWindows $as_me 2.5.1, which was |
09d3439c | 36450 | generated by GNU Autoconf 2.57. Invocation command line was |
e6cc62c6 VS |
36451 | |
36452 | CONFIG_FILES = $CONFIG_FILES | |
36453 | CONFIG_HEADERS = $CONFIG_HEADERS | |
36454 | CONFIG_LINKS = $CONFIG_LINKS | |
36455 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
36456 | $ $0 $@ | |
36457 | ||
36458 | _CSEOF | |
36459 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
36460 | echo >&5 | |
36461 | _ACEOF | |
36462 | ||
36463 | # Files that config.status was made for. | |
36464 | if test -n "$ac_config_files"; then | |
36465 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
36466 | fi | |
36467 | ||
36468 | if test -n "$ac_config_headers"; then | |
36469 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
36470 | fi | |
36471 | ||
36472 | if test -n "$ac_config_links"; then | |
36473 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
36474 | fi | |
36475 | ||
36476 | if test -n "$ac_config_commands"; then | |
36477 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
36478 | fi | |
36479 | ||
36480 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36481 | ||
36482 | ac_cs_usage="\ | |
36483 | \`$as_me' instantiates files from templates according to the | |
36484 | current configuration. | |
36485 | ||
36486 | Usage: $0 [OPTIONS] [FILE]... | |
36487 | ||
36488 | -h, --help print this help, then exit | |
36489 | -V, --version print version number, then exit | |
36490 | -q, --quiet do not print progress messages | |
36491 | -d, --debug don't remove temporary files | |
36492 | --recheck update $as_me by reconfiguring in the same conditions | |
36493 | --file=FILE[:TEMPLATE] | |
09d3439c | 36494 | instantiate the configuration file FILE |
e6cc62c6 | 36495 | --header=FILE[:TEMPLATE] |
09d3439c | 36496 | instantiate the configuration header FILE |
e6cc62c6 VS |
36497 | |
36498 | Configuration files: | |
36499 | $config_files | |
36500 | ||
36501 | Configuration headers: | |
36502 | $config_headers | |
36503 | ||
36504 | Configuration commands: | |
36505 | $config_commands | |
36506 | ||
36507 | Report bugs to <bug-autoconf@gnu.org>." | |
36508 | _ACEOF | |
36509 | ||
36510 | cat >>$CONFIG_STATUS <<_ACEOF | |
36511 | ac_cs_version="\\ | |
e46d2a18 | 36512 | wxWindows config.status 2.5.1 |
09d3439c | 36513 | configured by $0, generated by GNU Autoconf 2.57, |
e6cc62c6 VS |
36514 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
36515 | ||
09d3439c VZ |
36516 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
36517 | Free Software Foundation, Inc. | |
e6cc62c6 VS |
36518 | This config.status script is free software; the Free Software Foundation |
36519 | gives unlimited permission to copy, distribute and modify it." | |
36520 | srcdir=$srcdir | |
36521 | INSTALL="$INSTALL" | |
36522 | _ACEOF | |
36523 | ||
36524 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36525 | # If no file are specified by the user, then we need to provide default | |
36526 | # value. By we need to know if files were specified by the user. | |
36527 | ac_need_defaults=: | |
36528 | while test $# != 0 | |
36529 | do | |
36530 | case $1 in | |
36531 | --*=*) | |
36532 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
36533 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
36534 | ac_shift=: | |
36535 | ;; | |
36536 | -*) | |
36537 | ac_option=$1 | |
36538 | ac_optarg=$2 | |
36539 | ac_shift=shift | |
36540 | ;; | |
36541 | *) # This is not an option, so the user has probably given explicit | |
36542 | # arguments. | |
36543 | ac_option=$1 | |
36544 | ac_need_defaults=false;; | |
36545 | esac | |
36546 | ||
36547 | case $ac_option in | |
36548 | # Handling of the options. | |
36549 | _ACEOF | |
36550 | cat >>$CONFIG_STATUS <<\_ACEOF | |
36551 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
36552 | ac_cs_recheck=: ;; | |
36553 | --version | --vers* | -V ) | |
36554 | echo "$ac_cs_version"; exit 0 ;; | |
36555 | --he | --h) | |
36556 | # Conflict between --help and --header | |
36557 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
36558 | Try \`$0 --help' for more information." >&5 | |
36559 | echo "$as_me: error: ambiguous option: $1 | |
36560 | Try \`$0 --help' for more information." >&2;} | |
36561 | { (exit 1); exit 1; }; };; | |
36562 | --help | --hel | -h ) | |
36563 | echo "$ac_cs_usage"; exit 0 ;; | |
36564 | --debug | --d* | -d ) | |
36565 | debug=: ;; | |
36566 | --file | --fil | --fi | --f ) | |
36567 | $ac_shift | |
36568 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
36569 | ac_need_defaults=false;; | |
36570 | --header | --heade | --head | --hea ) | |
36571 | $ac_shift | |
36572 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
36573 | ac_need_defaults=false;; | |
36574 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
36575 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
36576 | ac_cs_silent=: ;; | |
36577 | ||
36578 | # This is an error. | |
36579 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
36580 | Try \`$0 --help' for more information." >&5 | |
36581 | echo "$as_me: error: unrecognized option: $1 | |
36582 | Try \`$0 --help' for more information." >&2;} | |
36583 | { (exit 1); exit 1; }; } ;; | |
36584 | ||
36585 | *) ac_config_targets="$ac_config_targets $1" ;; | |
36586 | ||
36587 | esac | |
36588 | shift | |
36589 | done | |
36590 | ||
36591 | ac_configure_extra_args= | |
36592 | ||
36593 | if $ac_cs_silent; then | |
36594 | exec 6>/dev/null | |
36595 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
fe0895cf VS |
36596 | fi |
36597 | ||
e6cc62c6 VS |
36598 | _ACEOF |
36599 | cat >>$CONFIG_STATUS <<_ACEOF | |
36600 | if \$ac_cs_recheck; then | |
36601 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
36602 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
fe0895cf VS |
36603 | fi |
36604 | ||
e6cc62c6 | 36605 | _ACEOF |
fe0895cf | 36606 | |
e6cc62c6 | 36607 | cat >>$CONFIG_STATUS <<_ACEOF |
10f2d63a | 36608 | # |
e6cc62c6 | 36609 | # INIT-COMMANDS section. |
10f2d63a | 36610 | # |
10f2d63a | 36611 | |
a0b9e27f | 36612 | |
e6cc62c6 VS |
36613 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" |
36614 | LN_S="${LN_S}" | |
10f2d63a | 36615 | |
10f2d63a | 36616 | |
10f2d63a | 36617 | |
e6cc62c6 | 36618 | _ACEOF |
8284b0c5 | 36619 | |
52127426 | 36620 | |
247f5006 | 36621 | |
e6cc62c6 VS |
36622 | cat >>$CONFIG_STATUS <<\_ACEOF |
36623 | for ac_config_target in $ac_config_targets | |
247f5006 | 36624 | do |
e6cc62c6 VS |
36625 | case "$ac_config_target" in |
36626 | # Handling of arguments. | |
81345eef VZ |
36627 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; |
36628 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
36629 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9747f85d | 36630 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; |
e6cc62c6 VS |
36631 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
36632 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
36633 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
36634 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
36635 | { (exit 1); exit 1; }; };; | |
247f5006 VZ |
36636 | esac |
36637 | done | |
36638 | ||
e6cc62c6 VS |
36639 | # If the user did not use the arguments to specify the items to instantiate, |
36640 | # then the envvar interface is used. Set only those that are not. | |
36641 | # We use the long form for the default assignment because of an extremely | |
36642 | # bizarre bug on SunOS 4.1.3. | |
36643 | if $ac_need_defaults; then | |
36644 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
36645 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
36646 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
36647 | fi | |
36648 | ||
36649 | # Have a temporary directory for convenience. Make it in the build tree | |
36650 | # simply because there is no reason to put it here, and in addition, | |
36651 | # creating and moving files from /tmp can sometimes cause problems. | |
36652 | # Create a temporary directory, and hook for its removal unless debugging. | |
36653 | $debug || | |
36654 | { | |
36655 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
36656 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
36657 | } | |
247f5006 | 36658 | |
e6cc62c6 | 36659 | # Create a (secure) tmp directory for tmp files. |
247f5006 | 36660 | |
e6cc62c6 VS |
36661 | { |
36662 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
36663 | test -n "$tmp" && test -d "$tmp" | |
36664 | } || | |
36665 | { | |
36666 | tmp=./confstat$$-$RANDOM | |
36667 | (umask 077 && mkdir $tmp) | |
36668 | } || | |
36669 | { | |
36670 | echo "$me: cannot create a temporary directory in ." >&2 | |
36671 | { (exit 1); exit 1; } | |
36672 | } | |
36673 | ||
36674 | _ACEOF | |
36675 | ||
36676 | cat >>$CONFIG_STATUS <<_ACEOF | |
36677 | ||
36678 | # | |
36679 | # CONFIG_FILES section. | |
36680 | # | |
247f5006 | 36681 | |
e6cc62c6 VS |
36682 | # No need to generate the scripts if there are no CONFIG_FILES. |
36683 | # This happens for instance when ./config.status config.h | |
36684 | if test -n "\$CONFIG_FILES"; then | |
36685 | # Protect against being on the right side of a sed subst in config.status. | |
36686 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
36687 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
36688 | s,@SHELL@,$SHELL,;t t | |
36689 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
36690 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
36691 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
36692 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
36693 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
36694 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
36695 | s,@exec_prefix@,$exec_prefix,;t t | |
36696 | s,@prefix@,$prefix,;t t | |
36697 | s,@program_transform_name@,$program_transform_name,;t t | |
36698 | s,@bindir@,$bindir,;t t | |
36699 | s,@sbindir@,$sbindir,;t t | |
36700 | s,@libexecdir@,$libexecdir,;t t | |
36701 | s,@datadir@,$datadir,;t t | |
36702 | s,@sysconfdir@,$sysconfdir,;t t | |
36703 | s,@sharedstatedir@,$sharedstatedir,;t t | |
36704 | s,@localstatedir@,$localstatedir,;t t | |
36705 | s,@libdir@,$libdir,;t t | |
36706 | s,@includedir@,$includedir,;t t | |
36707 | s,@oldincludedir@,$oldincludedir,;t t | |
36708 | s,@infodir@,$infodir,;t t | |
36709 | s,@mandir@,$mandir,;t t | |
36710 | s,@build_alias@,$build_alias,;t t | |
36711 | s,@host_alias@,$host_alias,;t t | |
36712 | s,@target_alias@,$target_alias,;t t | |
36713 | s,@DEFS@,$DEFS,;t t | |
36714 | s,@ECHO_C@,$ECHO_C,;t t | |
36715 | s,@ECHO_N@,$ECHO_N,;t t | |
36716 | s,@ECHO_T@,$ECHO_T,;t t | |
36717 | s,@LIBS@,$LIBS,;t t | |
36718 | s,@build@,$build,;t t | |
36719 | s,@build_cpu@,$build_cpu,;t t | |
36720 | s,@build_vendor@,$build_vendor,;t t | |
36721 | s,@build_os@,$build_os,;t t | |
36722 | s,@host@,$host,;t t | |
36723 | s,@host_cpu@,$host_cpu,;t t | |
36724 | s,@host_vendor@,$host_vendor,;t t | |
36725 | s,@host_os@,$host_os,;t t | |
36726 | s,@target@,$target,;t t | |
36727 | s,@target_cpu@,$target_cpu,;t t | |
36728 | s,@target_vendor@,$target_vendor,;t t | |
36729 | s,@target_os@,$target_os,;t t | |
36730 | s,@CC@,$CC,;t t | |
36731 | s,@CFLAGS@,$CFLAGS,;t t | |
36732 | s,@LDFLAGS@,$LDFLAGS,;t t | |
36733 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
36734 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
36735 | s,@EXEEXT@,$EXEEXT,;t t | |
36736 | s,@OBJEXT@,$OBJEXT,;t t | |
36737 | s,@CPP@,$CPP,;t t | |
36738 | s,@EGREP@,$EGREP,;t t | |
36739 | s,@CXX@,$CXX,;t t | |
36740 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
36741 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
36742 | s,@RANLIB@,$RANLIB,;t t | |
36743 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
36744 | s,@AR@,$AR,;t t | |
36745 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
36746 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
36747 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
36748 | s,@STRIP@,$STRIP,;t t | |
36749 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
e6cc62c6 VS |
36750 | s,@LN_S@,$LN_S,;t t |
36751 | s,@CXXCPP@,$CXXCPP,;t t | |
672abd7a | 36752 | s,@subdirs@,$subdirs,;t t |
e6cc62c6 VS |
36753 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t |
36754 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
36755 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
36756 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
36757 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
36758 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
36759 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
36760 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
36761 | s,@X_LIBS@,$X_LIBS,;t t | |
36762 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
36763 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
36764 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
36765 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
36766 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
e6cc62c6 VS |
36767 | s,@RESCOMP@,$RESCOMP,;t t |
36768 | s,@DEREZ@,$DEREZ,;t t | |
36769 | s,@SETFILE@,$SETFILE,;t t | |
36770 | s,@LIBICONV@,$LIBICONV,;t t | |
edd891e2 VS |
36771 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t |
36772 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
36773 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
e6cc62c6 VS |
36774 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t |
36775 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
672abd7a | 36776 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t |
e6cc62c6 VS |
36777 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t |
36778 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
36779 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
36780 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
8ee2dd05 VS |
36781 | s,@VENDOR@,$VENDOR,;t t |
36782 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
e6cc62c6 VS |
36783 | s,@WXUNIV@,$WXUNIV,;t t |
36784 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
36785 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
672abd7a | 36786 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t |
3527f29c | 36787 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t |
bb41dcbe | 36788 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t |
c74dc163 | 36789 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t |
34b08d2c | 36790 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t |
e6cc62c6 VS |
36791 | s,@UNICODE@,$UNICODE,;t t |
36792 | s,@BUILD@,$BUILD,;t t | |
6c67131a VS |
36793 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t |
36794 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
e6cc62c6 VS |
36795 | s,@SHARED@,$SHARED,;t t |
36796 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
36797 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
36798 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
0f1bc9c2 | 36799 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t |
ea66c762 | 36800 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t |
e6cc62c6 VS |
36801 | s,@SET_MAKE@,$SET_MAKE,;t t |
36802 | s,@MAKE_SET@,$MAKE_SET,;t t | |
874d12cf VS |
36803 | s,@ac_ct_AR@,$ac_ct_AR,;t t |
36804 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
36805 | s,@NM@,$NM,;t t | |
36806 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
e6cc62c6 | 36807 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t |
6b9d41a5 | 36808 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t |
e6cc62c6 VS |
36809 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t |
36810 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
36811 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
36812 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
36813 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
96c1699d | 36814 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t |
e6cc62c6 | 36815 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t |
131f235d | 36816 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t |
4b1f6360 | 36817 | s,@LIBPREFIX@,$LIBPREFIX,;t t |
e6cc62c6 | 36818 | s,@DLLPREFIX@,$DLLPREFIX,;t t |
131f235d | 36819 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t |
dc838d98 | 36820 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t |
e6cc62c6 VS |
36821 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t |
36822 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
131f235d VS |
36823 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t |
36824 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
e6cc62c6 VS |
36825 | s,@PIC_FLAG@,$PIC_FLAG,;t t |
36826 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
36827 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
36828 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
36829 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
36830 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
36831 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
49b0a3aa | 36832 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t |
45842500 | 36833 | s,@GCC_PCH@,$GCC_PCH,;t t |
d78c94f2 | 36834 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t |
6c67131a VS |
36835 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t |
36836 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
d78c94f2 | 36837 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t |
6c67131a VS |
36838 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t |
36839 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
36840 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
36841 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
f95cd8fa | 36842 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t |
8ee2dd05 | 36843 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t |
45842500 | 36844 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t |
6f628073 | 36845 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t |
6f628073 VS |
36846 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t |
36847 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
8772a1a7 | 36848 | 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 | 36849 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t |
eb69fda5 | 36850 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t |
8ee2dd05 | 36851 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t |
6f628073 | 36852 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t |
8772a1a7 | 36853 | 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 | 36854 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t |
eb69fda5 | 36855 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t |
3af038c0 | 36856 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t |
6f628073 VS |
36857 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t |
36858 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
3af038c0 VS |
36859 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t |
36860 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
6f628073 | 36861 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t |
3af038c0 | 36862 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t |
250700e4 RD |
36863 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t |
36864 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
36865 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
3527f29c | 36866 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t |
8ee2dd05 | 36867 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t |
45842500 | 36868 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t |
3d8c1de0 | 36869 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t |
8772a1a7 | 36870 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t |
3af038c0 | 36871 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t |
3527f29c | 36872 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t |
3af038c0 VS |
36873 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t |
36874 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
45842500 | 36875 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t |
250700e4 | 36876 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t |
52a5a009 VS |
36877 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
36878 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
36879 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
36880 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
36881 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
36882 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
36883 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
45842500 | 36884 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t |
250700e4 | 36885 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t |
6f628073 VS |
36886 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t |
36887 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
36888 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
36889 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
8ee2dd05 | 36890 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t |
3af038c0 | 36891 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t |
8772a1a7 | 36892 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t |
6f628073 VS |
36893 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t |
36894 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
36895 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
6f628073 VS |
36896 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t |
36897 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
36898 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
8ee2dd05 | 36899 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t |
6f628073 VS |
36900 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t |
36901 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
96c1699d VS |
36902 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t |
36903 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
36904 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
6f628073 VS |
36905 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
36906 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
3af038c0 | 36907 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t |
7015ef3a VZ |
36908 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t |
36909 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
3af038c0 VS |
36910 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t |
36911 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
9747f85d VS |
36912 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t |
36913 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
66a96744 VS |
36914 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t |
36915 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
36916 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
57e7d4ac | 36917 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t |
6f628073 VS |
36918 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t |
36919 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
36920 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
36921 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
3af038c0 | 36922 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t |
66a96744 | 36923 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t |
3af038c0 VS |
36924 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t |
36925 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
36926 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
36927 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
36928 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
36929 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
e6cc62c6 VS |
36930 | s,@PATH_IFS@,$PATH_IFS,;t t |
36931 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
36932 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
36933 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
36934 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
36935 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
cf615ebb VS |
36936 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t |
36937 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
e6cc62c6 VS |
36938 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t |
36939 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
36940 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
36941 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
36942 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
36943 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
36944 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
36945 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
36946 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
36947 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
36948 | s,@WX_ALL@,$WX_ALL,;t t | |
36949 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
36950 | s,@SHARED_LD@,$SHARED_LD,;t t | |
e6cc62c6 VS |
36951 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t |
36952 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
36953 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
36954 | s,@USE_GUI@,$USE_GUI,;t t | |
36955 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
36956 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
36957 | s,@TOOLKIT@,$TOOLKIT,;t t | |
36958 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
36959 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
36960 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
36961 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
36962 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
36963 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
36964 | s,@cross_compiling@,$cross_compiling,;t t | |
67c13b6c | 36965 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t |
e6cc62c6 VS |
36966 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t |
36967 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
36968 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
36969 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
36970 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
36971 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
ffef10f6 | 36972 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t |
e6cc62c6 | 36973 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t |
f0290fca VS |
36974 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t |
36975 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
e6cc62c6 VS |
36976 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t |
36977 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
36978 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
36979 | s,@GUIDIST@,$GUIDIST,;t t | |
36980 | s,@PORT_FILES@,$PORT_FILES,;t t | |
36981 | s,@DISTDIR@,$DISTDIR,;t t | |
36982 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
36983 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
36984 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
36985 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
36986 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
36987 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
36988 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
36989 | s,@RESFLAGS@,$RESFLAGS,;t t | |
36990 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
36991 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
36992 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
e6cc62c6 VS |
36993 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t |
36994 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
36995 | s,@MACSETFILE@,$MACSETFILE,;t t | |
36996 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
36997 | s,@GCC@,$GCC,;t t | |
36998 | s,@DLLTOOL@,$DLLTOOL,;t t | |
36999 | s,@AS@,$AS,;t t | |
e6cc62c6 VS |
37000 | s,@LD@,$LD,;t t |
37001 | s,@MAKEINFO@,$MAKEINFO,;t t | |
37002 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
e6cc62c6 VS |
37003 | s,@LIBOBJS@,$LIBOBJS,;t t |
37004 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
247f5006 VZ |
37005 | CEOF |
37006 | ||
e6cc62c6 VS |
37007 | _ACEOF |
37008 | ||
37009 | cat >>$CONFIG_STATUS <<\_ACEOF | |
37010 | # Split the substitutions into bite-sized pieces for seds with | |
37011 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
37012 | ac_max_sed_lines=48 | |
37013 | ac_sed_frag=1 # Number of current file. | |
37014 | ac_beg=1 # First line for current file. | |
37015 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
37016 | ac_more_lines=: | |
37017 | ac_sed_cmds= | |
37018 | while $ac_more_lines; do | |
37019 | if test $ac_beg -gt 1; then | |
37020 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
247f5006 | 37021 | else |
e6cc62c6 VS |
37022 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
37023 | fi | |
37024 | if test ! -s $tmp/subs.frag; then | |
37025 | ac_more_lines=false | |
37026 | else | |
37027 | # The purpose of the label and of the branching condition is to | |
37028 | # speed up the sed processing (if there are no `@' at all, there | |
37029 | # is no need to browse any of the substitutions). | |
37030 | # These are the two extra sed commands mentioned above. | |
37031 | (echo ':t | |
37032 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
37033 | if test -z "$ac_sed_cmds"; then | |
09d3439c | 37034 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 | 37035 | else |
09d3439c | 37036 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
e6cc62c6 VS |
37037 | fi |
37038 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
37039 | ac_beg=$ac_end | |
37040 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
247f5006 | 37041 | fi |
e6cc62c6 VS |
37042 | done |
37043 | if test -z "$ac_sed_cmds"; then | |
37044 | ac_sed_cmds=cat | |
10f2d63a | 37045 | fi |
e6cc62c6 | 37046 | fi # test -n "$CONFIG_FILES" |
10f2d63a | 37047 | |
e6cc62c6 VS |
37048 | _ACEOF |
37049 | cat >>$CONFIG_STATUS <<\_ACEOF | |
37050 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
a0b9e27f | 37051 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
37052 | case $ac_file in |
37053 | - | *:- | *:-:* ) # input from stdin | |
09d3439c VZ |
37054 | cat >$tmp/stdin |
37055 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
37056 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 37057 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
09d3439c | 37058 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 37059 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a | 37060 | esac |
247f5006 | 37061 | |
e6cc62c6 VS |
37062 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
37063 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
37064 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
09d3439c VZ |
37065 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
37066 | X"$ac_file" : 'X\(//\)$' \| \ | |
37067 | X"$ac_file" : 'X\(/\)' \| \ | |
37068 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
37069 | echo X"$ac_file" | |
37070 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
37071 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
37072 | /^X\(\/\/\)$/{ s//\1/; q; } | |
37073 | /^X\(\/\).*/{ s//\1/; q; } | |
37074 | s/.*/./; q'` | |
37075 | { if $as_mkdir_p; then | |
37076 | mkdir -p "$ac_dir" | |
a0b9e27f | 37077 | else |
e6cc62c6 VS |
37078 | as_dir="$ac_dir" |
37079 | as_dirs= | |
37080 | while test ! -d "$as_dir"; do | |
37081 | as_dirs="$as_dir $as_dirs" | |
37082 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
37083 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
09d3439c VZ |
37084 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
37085 | X"$as_dir" : 'X\(//\)$' \| \ | |
37086 | X"$as_dir" : 'X\(/\)' \| \ | |
37087 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
37088 | echo X"$as_dir" | |
37089 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
37090 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
37091 | /^X\(\/\/\)$/{ s//\1/; q; } | |
37092 | /^X\(\/\).*/{ s//\1/; q; } | |
37093 | s/.*/./; q'` | |
37094 | done | |
37095 | test ! -n "$as_dirs" || mkdir $as_dirs | |
37096 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
37097 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
37098 | { (exit 1); exit 1; }; }; } | |
37099 | ||
37100 | ac_builddir=. | |
37101 | ||
37102 | if test "$ac_dir" != .; then | |
37103 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
37104 | # A "../" for each directory in $ac_dir_suffix. | |
37105 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
37106 | else | |
37107 | ac_dir_suffix= ac_top_builddir= | |
37108 | fi | |
247f5006 | 37109 | |
e6cc62c6 VS |
37110 | case $srcdir in |
37111 | .) # No --srcdir option. We are building in place. | |
37112 | ac_srcdir=. | |
37113 | if test -z "$ac_top_builddir"; then | |
37114 | ac_top_srcdir=. | |
37115 | else | |
37116 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
37117 | fi ;; | |
37118 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
37119 | ac_srcdir=$srcdir$ac_dir_suffix; | |
37120 | ac_top_srcdir=$srcdir ;; | |
247f5006 | 37121 | *) # Relative path. |
e6cc62c6 VS |
37122 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
37123 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
37124 | esac | |
09d3439c VZ |
37125 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
37126 | # absolute. | |
37127 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
37128 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
37129 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
37130 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
10f2d63a | 37131 | |
247f5006 | 37132 | |
e6cc62c6 VS |
37133 | case $INSTALL in |
37134 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
37135 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
a0b9e27f | 37136 | esac |
247f5006 | 37137 | |
e6cc62c6 VS |
37138 | if test x"$ac_file" != x-; then |
37139 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
37140 | echo "$as_me: creating $ac_file" >&6;} | |
37141 | rm -f "$ac_file" | |
37142 | fi | |
37143 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
37144 | # use $as_me), people would be surprised to read: | |
37145 | # /* config.h. Generated by config.status. */ | |
37146 | if test x"$ac_file" = x-; then | |
37147 | configure_input= | |
37148 | else | |
37149 | configure_input="$ac_file. " | |
37150 | fi | |
37151 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
09d3439c | 37152 | sed 's,.*/,,'` by configure." |
e6cc62c6 VS |
37153 | |
37154 | # First look for the input files in the build tree, otherwise in the | |
37155 | # src tree. | |
37156 | ac_file_inputs=`IFS=: | |
37157 | for f in $ac_file_in; do | |
37158 | case $f in | |
37159 | -) echo $tmp/stdin ;; | |
37160 | [\\/$]*) | |
09d3439c VZ |
37161 | # Absolute (can't be DOS-style, as IFS=:) |
37162 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
37163 | echo "$as_me: error: cannot find input file: $f" >&2;} |
37164 | { (exit 1); exit 1; }; } | |
09d3439c | 37165 | echo $f;; |
e6cc62c6 | 37166 | *) # Relative |
09d3439c VZ |
37167 | if test -f "$f"; then |
37168 | # Build tree | |
37169 | echo $f | |
37170 | elif test -f "$srcdir/$f"; then | |
37171 | # Source tree | |
37172 | echo $srcdir/$f | |
37173 | else | |
37174 | # /dev/null tree | |
37175 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
37176 | echo "$as_me: error: cannot find input file: $f" >&2;} |
37177 | { (exit 1); exit 1; }; } | |
09d3439c | 37178 | fi;; |
e6cc62c6 VS |
37179 | esac |
37180 | done` || { (exit 1); exit 1; } | |
37181 | _ACEOF | |
37182 | cat >>$CONFIG_STATUS <<_ACEOF | |
37183 | sed "$ac_vpsub | |
37184 | $extrasub | |
37185 | _ACEOF | |
37186 | cat >>$CONFIG_STATUS <<\_ACEOF | |
37187 | :t | |
37188 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
37189 | s,@configure_input@,$configure_input,;t t | |
37190 | s,@srcdir@,$ac_srcdir,;t t | |
37191 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
37192 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
37193 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
37194 | s,@builddir@,$ac_builddir,;t t | |
37195 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
37196 | s,@top_builddir@,$ac_top_builddir,;t t | |
37197 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
37198 | s,@INSTALL@,$ac_INSTALL,;t t | |
37199 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
37200 | rm -f $tmp/stdin | |
37201 | if test x"$ac_file" != x-; then | |
37202 | mv $tmp/out $ac_file | |
37203 | else | |
37204 | cat $tmp/out | |
37205 | rm -f $tmp/out | |
37206 | fi | |
37207 | ||
37208 | done | |
37209 | _ACEOF | |
37210 | cat >>$CONFIG_STATUS <<\_ACEOF | |
37211 | ||
37212 | # | |
37213 | # CONFIG_HEADER section. | |
37214 | # | |
10f2d63a VZ |
37215 | |
37216 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
37217 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
37218 | # | |
37219 | # ac_d sets the value in "#define NAME VALUE" lines. | |
09d3439c VZ |
37220 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
37221 | ac_dB='[ ].*$,\1#\2' | |
e6cc62c6 VS |
37222 | ac_dC=' ' |
37223 | ac_dD=',;t' | |
37224 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
09d3439c | 37225 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
e6cc62c6 | 37226 | ac_uB='$,\1#\2define\3' |
10f2d63a | 37227 | ac_uC=' ' |
e6cc62c6 VS |
37228 | ac_uD=',;t' |
37229 | ||
37230 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
10f2d63a | 37231 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
e6cc62c6 VS |
37232 | case $ac_file in |
37233 | - | *:- | *:-:* ) # input from stdin | |
09d3439c VZ |
37234 | cat >$tmp/stdin |
37235 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
37236 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
e6cc62c6 | 37237 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
09d3439c | 37238 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
e6cc62c6 | 37239 | * ) ac_file_in=$ac_file.in ;; |
10f2d63a VZ |
37240 | esac |
37241 | ||
e6cc62c6 VS |
37242 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
37243 | echo "$as_me: creating $ac_file" >&6;} | |
37244 | ||
37245 | # First look for the input files in the build tree, otherwise in the | |
37246 | # src tree. | |
37247 | ac_file_inputs=`IFS=: | |
37248 | for f in $ac_file_in; do | |
37249 | case $f in | |
37250 | -) echo $tmp/stdin ;; | |
37251 | [\\/$]*) | |
09d3439c VZ |
37252 | # Absolute (can't be DOS-style, as IFS=:) |
37253 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
37254 | echo "$as_me: error: cannot find input file: $f" >&2;} |
37255 | { (exit 1); exit 1; }; } | |
09d3439c | 37256 | echo $f;; |
e6cc62c6 | 37257 | *) # Relative |
09d3439c VZ |
37258 | if test -f "$f"; then |
37259 | # Build tree | |
37260 | echo $f | |
37261 | elif test -f "$srcdir/$f"; then | |
37262 | # Source tree | |
37263 | echo $srcdir/$f | |
37264 | else | |
37265 | # /dev/null tree | |
37266 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
e6cc62c6 VS |
37267 | echo "$as_me: error: cannot find input file: $f" >&2;} |
37268 | { (exit 1); exit 1; }; } | |
09d3439c | 37269 | fi;; |
e6cc62c6 VS |
37270 | esac |
37271 | done` || { (exit 1); exit 1; } | |
37272 | # Remove the trailing spaces. | |
09d3439c | 37273 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
e6cc62c6 VS |
37274 | |
37275 | _ACEOF | |
37276 | ||
37277 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
37278 | # `conftest.undefs', that substitutes the proper values into | |
37279 | # config.h.in to produce config.h. The first handles `#define' | |
37280 | # templates, and the second `#undef' templates. | |
37281 | # And first: Protect against being on the right side of a sed subst in | |
37282 | # config.status. Protect against being in an unquoted here document | |
37283 | # in config.status. | |
37284 | rm -f conftest.defines conftest.undefs | |
37285 | # Using a here document instead of a string reduces the quoting nightmare. | |
37286 | # Putting comments in sed scripts is not portable. | |
37287 | # | |
37288 | # `end' is used to avoid that the second main sed command (meant for | |
37289 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
37290 | # See the Autoconf documentation for `clear'. | |
37291 | cat >confdef2sed.sed <<\_ACEOF | |
37292 | s/[\\&,]/\\&/g | |
37293 | s,[\\$`],\\&,g | |
37294 | t clear | |
37295 | : clear | |
09d3439c | 37296 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
e6cc62c6 | 37297 | t end |
09d3439c | 37298 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
e6cc62c6 VS |
37299 | : end |
37300 | _ACEOF | |
37301 | # If some macros were called several times there might be several times | |
37302 | # the same #defines, which is useless. Nevertheless, we may not want to | |
37303 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
37304 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
37305 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
37306 | rm -f confdef2sed.sed | |
10f2d63a VZ |
37307 | |
37308 | # This sed command replaces #undef with comments. This is necessary, for | |
37309 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
37310 | # on some systems where configure will not decide to define it. | |
e6cc62c6 | 37311 | cat >>conftest.undefs <<\_ACEOF |
09d3439c | 37312 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
e6cc62c6 VS |
37313 | _ACEOF |
37314 | ||
37315 | # Break up conftest.defines because some shells have a limit on the size | |
37316 | # of here documents, and old seds have small limits too (100 cmds). | |
37317 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
09d3439c | 37318 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
e6cc62c6 VS |
37319 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
37320 | echo ' :' >>$CONFIG_STATUS | |
37321 | rm -f conftest.tail | |
37322 | while grep . conftest.defines >/dev/null | |
37323 | do | |
37324 | # Write a limited-size here document to $tmp/defines.sed. | |
37325 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
37326 | # Speed up: don't consider the non `#define' lines. | |
09d3439c | 37327 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
37328 | # Work around the forget-to-reset-the-flag bug. |
37329 | echo 't clr' >>$CONFIG_STATUS | |
37330 | echo ': clr' >>$CONFIG_STATUS | |
37331 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
37332 | echo 'CEOF | |
37333 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
37334 | rm -f $tmp/in | |
37335 | mv $tmp/out $tmp/in | |
37336 | ' >>$CONFIG_STATUS | |
37337 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
37338 | rm -f conftest.defines | |
37339 | mv conftest.tail conftest.defines | |
37340 | done | |
37341 | rm -f conftest.defines | |
37342 | echo ' fi # grep' >>$CONFIG_STATUS | |
37343 | echo >>$CONFIG_STATUS | |
10f2d63a | 37344 | |
e6cc62c6 VS |
37345 | # Break up conftest.undefs because some shells have a limit on the size |
37346 | # of here documents, and old seds have small limits too (100 cmds). | |
37347 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
10f2d63a | 37348 | rm -f conftest.tail |
e6cc62c6 | 37349 | while grep . conftest.undefs >/dev/null |
10f2d63a | 37350 | do |
e6cc62c6 VS |
37351 | # Write a limited-size here document to $tmp/undefs.sed. |
37352 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
37353 | # Speed up: don't consider the non `#undef' | |
09d3439c | 37354 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
e6cc62c6 VS |
37355 | # Work around the forget-to-reset-the-flag bug. |
37356 | echo 't clr' >>$CONFIG_STATUS | |
37357 | echo ': clr' >>$CONFIG_STATUS | |
37358 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
10f2d63a | 37359 | echo 'CEOF |
e6cc62c6 VS |
37360 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
37361 | rm -f $tmp/in | |
37362 | mv $tmp/out $tmp/in | |
37363 | ' >>$CONFIG_STATUS | |
37364 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
37365 | rm -f conftest.undefs | |
37366 | mv conftest.tail conftest.undefs | |
10f2d63a | 37367 | done |
e6cc62c6 VS |
37368 | rm -f conftest.undefs |
37369 | ||
37370 | cat >>$CONFIG_STATUS <<\_ACEOF | |
37371 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
37372 | # use $as_me), people would be surprised to read: | |
37373 | # /* config.h. Generated by config.status. */ | |
37374 | if test x"$ac_file" = x-; then | |
37375 | echo "/* Generated by configure. */" >$tmp/config.h | |
10f2d63a | 37376 | else |
e6cc62c6 | 37377 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
247f5006 | 37378 | fi |
e6cc62c6 VS |
37379 | cat $tmp/in >>$tmp/config.h |
37380 | rm -f $tmp/in | |
37381 | if test x"$ac_file" != x-; then | |
37382 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
37383 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
37384 | echo "$as_me: $ac_file is unchanged" >&6;} | |
37385 | else | |
37386 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
37387 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
09d3439c VZ |
37388 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
37389 | X"$ac_file" : 'X\(//\)$' \| \ | |
37390 | X"$ac_file" : 'X\(/\)' \| \ | |
37391 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
37392 | echo X"$ac_file" | |
37393 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
37394 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
37395 | /^X\(\/\/\)$/{ s//\1/; q; } | |
37396 | /^X\(\/\).*/{ s//\1/; q; } | |
37397 | s/.*/./; q'` | |
37398 | { if $as_mkdir_p; then | |
37399 | mkdir -p "$ac_dir" | |
37400 | else | |
37401 | as_dir="$ac_dir" | |
37402 | as_dirs= | |
37403 | while test ! -d "$as_dir"; do | |
37404 | as_dirs="$as_dir $as_dirs" | |
37405 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
37406 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
09d3439c VZ |
37407 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
37408 | X"$as_dir" : 'X\(//\)$' \| \ | |
37409 | X"$as_dir" : 'X\(/\)' \| \ | |
37410 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
37411 | echo X"$as_dir" | |
37412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
37413 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
37414 | /^X\(\/\/\)$/{ s//\1/; q; } | |
37415 | /^X\(\/\).*/{ s//\1/; q; } | |
37416 | s/.*/./; q'` | |
37417 | done | |
37418 | test ! -n "$as_dirs" || mkdir $as_dirs | |
37419 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
37420 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
37421 | { (exit 1); exit 1; }; }; } | |
a0b9e27f | 37422 | |
e6cc62c6 VS |
37423 | rm -f $ac_file |
37424 | mv $tmp/config.h $ac_file | |
37425 | fi | |
37426 | else | |
37427 | cat $tmp/config.h | |
37428 | rm -f $tmp/config.h | |
37429 | fi | |
37430 | done | |
37431 | _ACEOF | |
37432 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10f2d63a | 37433 | |
e6cc62c6 VS |
37434 | # |
37435 | # CONFIG_COMMANDS section. | |
37436 | # | |
37437 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
37438 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
37439 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
37440 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
37441 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
09d3439c VZ |
37442 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
37443 | X"$ac_dest" : 'X\(//\)$' \| \ | |
37444 | X"$ac_dest" : 'X\(/\)' \| \ | |
37445 | . : '\(.\)' 2>/dev/null || | |
e6cc62c6 VS |
37446 | echo X"$ac_dest" | |
37447 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
37448 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
37449 | /^X\(\/\/\)$/{ s//\1/; q; } | |
37450 | /^X\(\/\).*/{ s//\1/; q; } | |
37451 | s/.*/./; q'` | |
37452 | ac_builddir=. | |
37453 | ||
37454 | if test "$ac_dir" != .; then | |
37455 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
37456 | # A "../" for each directory in $ac_dir_suffix. | |
37457 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
37458 | else | |
37459 | ac_dir_suffix= ac_top_builddir= | |
37460 | fi | |
37461 | ||
37462 | case $srcdir in | |
37463 | .) # No --srcdir option. We are building in place. | |
37464 | ac_srcdir=. | |
37465 | if test -z "$ac_top_builddir"; then | |
37466 | ac_top_srcdir=. | |
37467 | else | |
37468 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
37469 | fi ;; | |
37470 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
37471 | ac_srcdir=$srcdir$ac_dir_suffix; | |
37472 | ac_top_srcdir=$srcdir ;; | |
37473 | *) # Relative path. | |
37474 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
37475 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
37476 | esac | |
09d3439c VZ |
37477 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
37478 | # absolute. | |
37479 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
37480 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
37481 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
37482 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
e6cc62c6 VS |
37483 | |
37484 | ||
37485 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
37486 | echo "$as_me: executing $ac_dest commands" >&6;} | |
37487 | case $ac_dest in | |
37488 | default ) | |
652d930d | 37489 | if test ! -h wx-config; then |
991a5759 | 37490 | chmod +x wx-config |
3a922bb4 RL |
37491 | mv wx-config wx${TOOLCHAIN_NAME}-config |
37492 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
991a5759 | 37493 | fi |
665bbe97 | 37494 | |
00cf1208 RR |
37495 | if test ! -d lib; then |
37496 | mkdir lib | |
37497 | fi | |
37498 | if test ! -d lib/wx; then | |
37499 | mkdir lib/wx | |
37500 | fi | |
37501 | if test ! -d lib/wx/include; then | |
37502 | mkdir lib/wx/include | |
37503 | fi | |
3a922bb4 RL |
37504 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then |
37505 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
00cf1208 | 37506 | fi |
3a922bb4 RL |
37507 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then |
37508 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
00cf1208 RR |
37509 | fi |
37510 | if test -f setup.h; then | |
3a922bb4 | 37511 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h |
00cf1208 | 37512 | fi |
e6cc62c6 VS |
37513 | ;; |
37514 | esac | |
37515 | done | |
37516 | _ACEOF | |
2224580a | 37517 | |
e6cc62c6 | 37518 | cat >>$CONFIG_STATUS <<\_ACEOF |
2224580a | 37519 | |
e6cc62c6 VS |
37520 | { (exit 0); exit 0; } |
37521 | _ACEOF | |
37522 | chmod +x $CONFIG_STATUS | |
37523 | ac_clean_files=$ac_clean_files_save | |
37524 | ||
37525 | ||
37526 | # configure is writing to config.log, and then calls config.status. | |
37527 | # config.status does its own redirection, appending to config.log. | |
37528 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
37529 | # by configure, so config.status won't be able to write to it; its | |
37530 | # output is simply discarded. So we exec the FD to /dev/null, | |
37531 | # effectively closing config.log, so it can be properly (re)opened and | |
37532 | # appended to by config.status. When coming back to configure, we | |
37533 | # need to make the FD available again. | |
37534 | if test "$no_create" != yes; then | |
37535 | ac_cs_success=: | |
37536 | ac_config_status_args= | |
37537 | test "$silent" = yes && | |
37538 | ac_config_status_args="$ac_config_status_args --quiet" | |
37539 | exec 5>/dev/null | |
37540 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
37541 | exec 5>>config.log | |
37542 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
37543 | # would make configure fail if this is the last instruction. | |
37544 | $ac_cs_success || { (exit 1); exit 1; } | |
2224580a VZ |
37545 | fi |
37546 | ||
672abd7a VS |
37547 | # |
37548 | # CONFIG_SUBDIRS section. | |
37549 | # | |
37550 | if test "$no_recursion" != yes; then | |
37551 | ||
37552 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
37553 | ac_sub_configure_args= | |
37554 | ac_prev= | |
37555 | for ac_arg in $ac_configure_args; do | |
37556 | if test -n "$ac_prev"; then | |
37557 | ac_prev= | |
37558 | continue | |
37559 | fi | |
37560 | case $ac_arg in | |
37561 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
37562 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
37563 | ac_prev=cache_file ;; | |
37564 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
37565 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
37566 | | --c=*) | |
37567 | ;; | |
37568 | --config-cache | -C) | |
37569 | ;; | |
37570 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
37571 | ac_prev=srcdir ;; | |
37572 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
37573 | ;; | |
37574 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
37575 | ac_prev=prefix ;; | |
37576 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
37577 | ;; | |
37578 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
37579 | esac | |
37580 | done | |
37581 | ||
37582 | # Always prepend --prefix to ensure using the same prefix | |
37583 | # in subdir configurations. | |
37584 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
37585 | ||
37586 | ac_popdir=`pwd` | |
37587 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
37588 | ||
37589 | # Do not complain, so a configure script can configure whichever | |
37590 | # parts of a large source tree are present. | |
37591 | test -d $srcdir/$ac_dir || continue | |
37592 | ||
37593 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
37594 | echo "$as_me: configuring in $ac_dir" >&6;} | |
37595 | { if $as_mkdir_p; then | |
37596 | mkdir -p "$ac_dir" | |
37597 | else | |
37598 | as_dir="$ac_dir" | |
37599 | as_dirs= | |
37600 | while test ! -d "$as_dir"; do | |
37601 | as_dirs="$as_dir $as_dirs" | |
37602 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
37603 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
09d3439c VZ |
37604 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
37605 | X"$as_dir" : 'X\(//\)$' \| \ | |
37606 | X"$as_dir" : 'X\(/\)' \| \ | |
37607 | . : '\(.\)' 2>/dev/null || | |
672abd7a VS |
37608 | echo X"$as_dir" | |
37609 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
37610 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
37611 | /^X\(\/\/\)$/{ s//\1/; q; } | |
37612 | /^X\(\/\).*/{ s//\1/; q; } | |
37613 | s/.*/./; q'` | |
37614 | done | |
37615 | test ! -n "$as_dirs" || mkdir $as_dirs | |
37616 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
37617 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
37618 | { (exit 1); exit 1; }; }; } | |
37619 | ||
37620 | ac_builddir=. | |
37621 | ||
37622 | if test "$ac_dir" != .; then | |
37623 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
37624 | # A "../" for each directory in $ac_dir_suffix. | |
37625 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
37626 | else | |
37627 | ac_dir_suffix= ac_top_builddir= | |
37628 | fi | |
37629 | ||
37630 | case $srcdir in | |
37631 | .) # No --srcdir option. We are building in place. | |
37632 | ac_srcdir=. | |
37633 | if test -z "$ac_top_builddir"; then | |
37634 | ac_top_srcdir=. | |
37635 | else | |
37636 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
37637 | fi ;; | |
37638 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
37639 | ac_srcdir=$srcdir$ac_dir_suffix; | |
37640 | ac_top_srcdir=$srcdir ;; | |
37641 | *) # Relative path. | |
37642 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
37643 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
37644 | esac | |
09d3439c VZ |
37645 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
37646 | # absolute. | |
37647 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
37648 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
37649 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
37650 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
672abd7a VS |
37651 | |
37652 | ||
37653 | cd $ac_dir | |
37654 | ||
37655 | # Check for guested configure; otherwise get Cygnus style configure. | |
37656 | if test -f $ac_srcdir/configure.gnu; then | |
37657 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
37658 | elif test -f $ac_srcdir/configure; then | |
37659 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
37660 | elif test -f $ac_srcdir/configure.in; then | |
37661 | ac_sub_configure=$ac_configure | |
37662 | else | |
37663 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
37664 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
37665 | ac_sub_configure= | |
37666 | fi | |
37667 | ||
37668 | # The recursion is here. | |
37669 | if test -n "$ac_sub_configure"; then | |
37670 | # Make the cache file name correct relative to the subdirectory. | |
37671 | case $cache_file in | |
37672 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
37673 | *) # Relative path. | |
09d3439c | 37674 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
672abd7a VS |
37675 | esac |
37676 | ||
37677 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
37678 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
37679 | # The eval makes quoting arguments work. | |
37680 | eval $ac_sub_configure $ac_sub_configure_args \ | |
09d3439c VZ |
37681 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
37682 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
672abd7a VS |
37683 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
37684 | { (exit 1); exit 1; }; } | |
37685 | fi | |
37686 | ||
37687 | cd $ac_popdir | |
37688 | done | |
37689 | fi | |
37690 | ||
8284b0c5 | 37691 | |
2b5f62a0 VZ |
37692 | echo |
37693 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
37694 | echo "" | |
89fe663f | 37695 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}" |
9747f85d | 37696 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" |
2b5f62a0 VZ |
37697 | |
37698 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
37699 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
37700 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
37701 | ||
0c98a14e | 37702 | echo " What level of wxWindows compatibility should be enabled?" |
65d8ef1e VS |
37703 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" |
37704 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
0c98a14e | 37705 | |
2b5f62a0 VZ |
37706 | echo " Which libraries should wxWindows use?" |
37707 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
37708 | echo " png ${wxUSE_LIBPNG-none}" | |
37709 | echo " regex ${wxUSE_REGEX}" | |
37710 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
89fe663f VZ |
37711 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then |
37712 | echo " xpm ${wxUSE_LIBXPM-none}" | |
37713 | fi | |
2b5f62a0 | 37714 | echo " zlib ${wxUSE_ZLIB}" |
fd3d7534 | 37715 | echo " odbc ${wxUSE_ODBC}" |
5f0b6dff | 37716 | echo " expat ${wxUSE_EXPAT}" |
3527f29c | 37717 | echo " libmspack ${wxUSE_LIBMSPACK}" |
2b5f62a0 VZ |
37718 | |
37719 | echo "" | |
37720 |