]>
Commit | Line | Data |
---|---|---|
a848cd7e SC |
1 | #! /bin/sh |
2 | # From configure.in Id: configure.in. | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
8a7b1113 | 4 | # Generated by GNU Autoconf 2.57 for wxWindows 2.5.1. |
a848cd7e SC |
5 | # |
6 | # Report bugs to <wx-dev@lists.wxwindows.org>. | |
7 | # | |
8a7b1113 VZ |
8 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
9 | # Free Software Foundation, Inc. | |
a848cd7e SC |
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 | ## --------------------- ## | |
15 | ||
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 | |
a848cd7e SC |
26 | |
27 | # Support unset when possible. | |
8a7b1113 | 28 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
a848cd7e SC |
29 | as_unset=unset |
30 | else | |
31 | as_unset=false | |
32 | fi | |
33 | ||
34 | ||
35 | # Work around bugs in pre-3.0 UWIN ksh. | |
36 | $as_unset ENV MAIL MAILPATH | |
37 | PS1='$ ' | |
38 | PS2='> ' | |
39 | PS4='+ ' | |
40 | ||
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 | |
8a7b1113 | 47 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
48 | eval $as_var=C; export $as_var |
49 | else | |
50 | $as_unset $as_var | |
51 | fi | |
52 | done | |
53 | ||
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 | |
60 | ||
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 | |
66 | ||
67 | ||
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'` | |
79 | ||
80 | ||
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 | |
88 | ||
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 | |
101 | ||
102 | ||
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 | |
119 | ||
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 | |
158 | ||
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 | } | |
188 | ||
189 | ||
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 | |
196 | ||
197 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
198 | as_expr=expr | |
199 | else | |
200 | as_expr=false | |
201 | fi | |
202 | ||
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 | |
220 | ||
221 | if mkdir -p . 2>/dev/null; then | |
222 | as_mkdir_p=: | |
223 | else | |
a848cd7e SC |
224 | as_mkdir_p=false |
225 | fi | |
226 | ||
227 | as_executable_p="test -f" | |
228 | ||
229 | # Sed expression to map a string onto a valid CPP name. | |
8a7b1113 | 230 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
a848cd7e SC |
231 | |
232 | # Sed expression to map a string onto a valid variable name. | |
8a7b1113 | 233 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
a848cd7e SC |
234 | |
235 | ||
236 | # IFS | |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $as_nl" | |
241 | ||
242 | # CDPATH. | |
243 | $as_unset CDPATH | |
244 | ||
245 | ||
246 | # Name of the host. | |
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
248 | # so uname gets run too. | |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
250 | ||
251 | exec 6>&1 | |
252 | ||
253 | # | |
254 | # Initializations. | |
255 | # | |
256 | ac_default_prefix=/usr/local | |
257 | ac_config_libobj_dir=. | |
258 | cross_compiling=no | |
259 | subdirs= | |
260 | MFLAGS= | |
261 | MAKEFLAGS= | |
262 | SHELL=${CONFIG_SHELL-/bin/sh} | |
263 | ||
264 | # Maximum number of lines to put in a shell here document. | |
265 | # This variable seems obsolete. It should probably be removed, and | |
266 | # only ac_max_sed_lines should be used. | |
267 | : ${ac_max_here_lines=38} | |
268 | ||
269 | # Identity of this package. | |
270 | PACKAGE_NAME='wxWindows' | |
271 | PACKAGE_TARNAME='wxwindows' | |
272 | PACKAGE_VERSION='2.5.1' | |
273 | PACKAGE_STRING='wxWindows 2.5.1' | |
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 | ||
314 | ac_subdirs_all="$ac_subdirs_all src/expat" | |
3fd9c298 | 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 SDL_CONFIG SDL_CFLAGS SDL_LIBS 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 USE_PLUGINS EXTRALIBS EXTRALIBS_XML EXTRALIBS_HTML EXTRALIBS_ODBC EXTRALIBS_GUI EXTRALIBS_OPENGL EXTRALIBS_SDL WITH_PLUGIN_SDL UNICODE BUILD DEBUG_INFO DEBUG_FLAG SHARED TOOLKIT_LOWERCASE TOOLKIT_VERSION SAMPLES_RPATH_FLAG SAMPLES_RPATH_POSTLINK HOST_SUFFIX CPPUNIT_CFLAGS CPPUNIT_LIBS 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 DLLIMP_SUFFIX LIBPREFIX LIBEXT 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_DEBUG_UNICODE_0 COND_BUILD_DEBUG_UNICODE_1 COND_BUILD_RELEASE COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT COND_BUILD_RELEASE_UNICODE_0 COND_BUILD_RELEASE_UNICODE_1 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_0_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_UNIX_1_USE_PLUGINS_0 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_WINCE COND_TOOLKIT_WINCE_USE_GUI_1 COND_TOOLKIT_WINCE_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_PLUGINS_0 COND_USE_SOSYMLINKS_1 COND_USE_SOVERLINUX_1 COND_USE_SOVERSION_0 COND_USE_SOVERSOLARIS_1 COND_WITH_PLUGIN_SDL_1 COND_WITH_SDL_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 GCC_SEARCHES_USR_LOCAL_INCLUDE DLLTOOL AS LD MAKEINFO INSTALL_LIBRARY CPPUNIT_CONFIG LIBOBJS LTLIBOBJS' |
a848cd7e SC |
316 | ac_subst_files='' |
317 | ||
318 | # Initialize some variables set by options. | |
319 | ac_init_help= | |
320 | ac_init_version=false | |
321 | # The variables have the same names as the options, with | |
322 | # dashes changed to underlines. | |
323 | cache_file=/dev/null | |
324 | exec_prefix=NONE | |
325 | no_create= | |
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= | |
334 | verbose= | |
335 | x_includes=NONE | |
336 | x_libraries=NONE | |
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. | |
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 | ||
356 | ac_prev= | |
357 | for ac_option | |
358 | do | |
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 | ||
366 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
367 | ||
368 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
369 | ||
370 | case $ac_option in | |
371 | ||
372 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
373 | ac_prev=bindir ;; | |
374 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
375 | bindir=$ac_optarg ;; | |
376 | ||
377 | -build | --build | --buil | --bui | --bu) | |
378 | ac_prev=build_alias ;; | |
379 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
380 | build_alias=$ac_optarg ;; | |
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=*) | |
387 | cache_file=$ac_optarg ;; | |
388 | ||
389 | --config-cache | -C) | |
390 | cache_file=config.cache ;; | |
391 | ||
392 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
393 | ac_prev=datadir ;; | |
394 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
395 | | --da=*) | |
396 | datadir=$ac_optarg ;; | |
397 | ||
398 | -disable-* | --disable-*) | |
399 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
400 | # Reject names that are not valid shell variable names. | |
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" ;; | |
406 | ||
407 | -enable-* | --enable-*) | |
408 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
409 | # Reject names that are not valid shell variable names. | |
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"`;; | |
416 | *) ac_optarg=yes ;; | |
417 | esac | |
418 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
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=*) | |
427 | exec_prefix=$ac_optarg ;; | |
428 | ||
429 | -gas | --gas | --ga | --g) | |
430 | # Obsolete; use --with-gas. | |
431 | with_gas=yes ;; | |
432 | ||
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 ;; | |
439 | ||
440 | -host | --host | --hos | --ho) | |
441 | ac_prev=host_alias ;; | |
442 | -host=* | --host=* | --hos=* | --ho=*) | |
443 | host_alias=$ac_optarg ;; | |
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=*) | |
450 | includedir=$ac_optarg ;; | |
451 | ||
452 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
453 | ac_prev=infodir ;; | |
454 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
455 | infodir=$ac_optarg ;; | |
456 | ||
457 | -libdir | --libdir | --libdi | --libd) | |
458 | ac_prev=libdir ;; | |
459 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
460 | libdir=$ac_optarg ;; | |
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=*) | |
467 | libexecdir=$ac_optarg ;; | |
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=*) | |
476 | localstatedir=$ac_optarg ;; | |
477 | ||
478 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
479 | ac_prev=mandir ;; | |
480 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
481 | mandir=$ac_optarg ;; | |
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 \ | |
488 | | --no-cr | --no-c | -n) | |
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=*) | |
502 | oldincludedir=$ac_optarg ;; | |
503 | ||
504 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
505 | ac_prev=prefix ;; | |
506 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
507 | prefix=$ac_optarg ;; | |
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=*) | |
514 | program_prefix=$ac_optarg ;; | |
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=*) | |
521 | program_suffix=$ac_optarg ;; | |
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=*) | |
538 | program_transform_name=$ac_optarg ;; | |
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=*) | |
548 | sbindir=$ac_optarg ;; | |
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=*) | |
559 | sharedstatedir=$ac_optarg ;; | |
560 | ||
561 | -site | --site | --sit) | |
562 | ac_prev=site ;; | |
563 | -site=* | --site=* | --sit=*) | |
564 | site=$ac_optarg ;; | |
565 | ||
566 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
567 | ac_prev=srcdir ;; | |
568 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
569 | srcdir=$ac_optarg ;; | |
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=*) | |
576 | sysconfdir=$ac_optarg ;; | |
577 | ||
578 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
579 | ac_prev=target_alias ;; | |
580 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
581 | target_alias=$ac_optarg ;; | |
582 | ||
583 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
584 | verbose=yes ;; | |
585 | ||
586 | -version | --version | --versio | --versi | --vers | -V) | |
587 | ac_init_version=: ;; | |
588 | ||
589 | -with-* | --with-*) | |
590 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
591 | # Reject names that are not valid shell variable names. | |
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; }; } | |
595 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
596 | case $ac_option in | |
597 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
598 | *) ac_optarg=yes ;; | |
599 | esac | |
600 | eval "with_$ac_package='$ac_optarg'" ;; | |
601 | ||
602 | -without-* | --without-*) | |
603 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
604 | # Reject names that are not valid shell variable names. | |
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" ;; | |
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=*) | |
620 | x_includes=$ac_optarg ;; | |
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=*) | |
627 | x_libraries=$ac_optarg ;; | |
628 | ||
629 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
630 | Try \`$0 --help' for more information." >&2 | |
631 | { (exit 1); exit 1; }; } | |
632 | ;; | |
633 | ||
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 | ||
644 | *) | |
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} | |
650 | ;; | |
651 | ||
652 | esac | |
653 | done | |
654 | ||
655 | if test -n "$ac_prev"; then | |
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; }; } | |
659 | fi | |
660 | ||
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 | |
671 | ||
672 | # Be sure to have absolute paths. | |
673 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
8a7b1113 | 674 | localstatedir libdir includedir oldincludedir infodir mandir |
a848cd7e SC |
675 | do |
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; }; };; | |
681 | esac | |
682 | done | |
683 | ||
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 | |
701 | ||
702 | ac_tool_prefix= | |
703 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
704 | ||
705 | test "$silent" = yes && exec 6>/dev/null | |
706 | ||
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. | |
712 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
713 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a7b1113 VZ |
714 | X"$0" : 'X\(//\)[^/]' \| \ |
715 | X"$0" : 'X\(//\)$' \| \ | |
716 | X"$0" : 'X\(/\)' \| \ | |
717 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
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'` | |
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 | |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
734 | { (exit 1); exit 1; }; } | |
735 | else | |
736 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
737 | { (exit 1); exit 1; }; } | |
738 | fi | |
739 | fi | |
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 | |
788 | ||
789 | # | |
790 | # Report the --help message. | |
791 | # | |
792 | if test "$ac_init_help" = "long"; then | |
793 | # Omit some internal or obsolete options to make the list less imposing. | |
794 | # This message is too long to be a string in the A/UX 3.1 sh. | |
795 | cat <<_ACEOF | |
796 | \`configure' configures wxWindows 2.5.1 to adapt to many kinds of systems. | |
797 | ||
798 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
799 | ||
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. | |
802 | ||
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 | |
8a7b1113 | 821 | [$ac_default_prefix] |
a848cd7e | 822 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
8a7b1113 | 823 | [PREFIX] |
a848cd7e SC |
824 | |
825 | By default, \`make install' will install all the files in | |
826 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
827 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
828 | for instance \`--prefix=\$HOME'. | |
829 | ||
830 | For better control, use the options below. | |
831 | ||
832 | Fine tuning of the installation directories: | |
833 | --bindir=DIR user executables [EPREFIX/bin] | |
834 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
835 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
836 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
837 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
838 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
839 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
840 | --libdir=DIR object code libraries [EPREFIX/lib] | |
841 | --includedir=DIR C header files [PREFIX/include] | |
842 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
843 | --infodir=DIR info documentation [PREFIX/info] | |
844 | --mandir=DIR man documentation [PREFIX/man] | |
845 | _ACEOF | |
846 | ||
847 | cat <<\_ACEOF | |
848 | ||
849 | X features: | |
850 | --x-includes=DIR X include files are in DIR | |
851 | --x-libraries=DIR X library files are in DIR | |
852 | ||
853 | System types: | |
854 | --build=BUILD configure for building on BUILD [guessed] | |
855 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
856 | --target=TARGET configure for building compilers for TARGET [HOST] | |
857 | _ACEOF | |
858 | fi | |
859 | ||
860 | if test -n "$ac_init_help"; then | |
861 | case $ac_init_help in | |
862 | short | recursive ) echo "Configuration of wxWindows 2.5.1:";; | |
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 | |
870 | --enable-monolithic build wxWindows as single library | |
871 | --enable-plugins build parts of wxWindows as loadable components | |
872 | --enable-universal use wxWindows GUI controls instead of native ones | |
873 | --enable-nanox use NanoX | |
874 | --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL) | |
875 | --enable-gpe use GNOME PDA Environment features if possible | |
876 | --enable-shared create shared library code | |
877 | --enable-optimise create optimised code | |
878 | --enable-debug same as debug_flag and debug_info | |
879 | --enable-stl use STL for containers | |
880 | --enable-omf use OMF object format | |
881 | --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!) | |
882 | --enable-debug_info create code with debugging information | |
883 | --enable-debug_gdb create code with extra GDB debugging information | |
884 | --enable-debug_cntxt use wxDebugContext | |
885 | --enable-mem_tracing create code with memory tracing | |
886 | --enable-profile create code with profiling information | |
887 | --enable-no_rtti create code without RTTI information | |
888 | --enable-no_exceptions create code without C++ exceptions handling | |
889 | --enable-permissive compile code disregarding strict ANSI | |
890 | --enable-no_deps create code without dependency information | |
891 | --enable-compat22 enable wxWindows 2.2 compatibility | |
892 | --disable-compat24 disable wxWindows 2.4 compatibility | |
893 | --enable-rpath=DIR output the rpath flag from wx-config | |
894 | --enable-intl use internationalization system | |
895 | --enable-config use wxConfig (and derived) classes | |
896 | --enable-protocols use wxProtocol and derived classes | |
897 | --enable-ftp use wxFTP (requires wxProtocol | |
898 | --enable-http use wxHTTP (requires wxProtocol | |
899 | --enable-fileproto use wxFileProto class (requires wxProtocol | |
900 | --enable-sockets use socket/network classes | |
901 | --enable-ole use OLE classes (Win32 only) | |
902 | --enable-dataobj use data object classes | |
903 | --enable-ipc use interprocess communication (wxSocket etc.) | |
904 | --enable-apple_ieee use the Apple IEEE codec | |
905 | --enable-catch_segvs catch signals in wxApp::OnFatalException (Unix only) | |
906 | --enable-cmdline use wxCmdLineParser class | |
907 | --enable-datetime use wxDateTime class | |
908 | --enable-dialupman use dialup network classes | |
909 | --enable-dynlib use wxLibrary class for DLL loading | |
910 | --enable-dynamicloader use (new) wxDynamicLibrary class | |
911 | --enable-exceptions build exception-safe library | |
912 | --enable-ffile use wxFFile class | |
913 | --enable-file use wxFile class | |
914 | --enable-filesystem use virtual file systems classes | |
915 | --enable-fontmap use font encodings conversion classes | |
916 | --enable-fs_inet use virtual HTTP/FTP filesystems | |
917 | --enable-fs_zip use virtual ZIP filesystems | |
918 | --enable-geometry use geometry class | |
919 | --enable-log use logging system | |
920 | --enable-longlong use wxLongLong class | |
921 | --enable-mimetype use wxMimeTypesManager | |
922 | --enable-mslu use MS Layer for Unicode on Windows 9x (Win32 only) | |
923 | --enable-snglinst use wxSingleInstanceChecker class | |
924 | --enable-streams use wxStream etc classes | |
925 | --enable-std_iostreams use standard C++ stream classes | |
926 | --enable-stopwatch use wxStopWatch class | |
927 | --enable-sysoptions use wxSystemOptions | |
928 | --enable-textbuf use wxTextBuffer class | |
929 | --enable-textfile use wxTextFile class | |
930 | --enable-timer use wxTimer class | |
931 | --enable-unicode compile wxString with Unicode support | |
932 | --enable-sound use wxSound class | |
933 | --enable-wxprintfv use wxWindows implementation of vprintf() | |
934 | --enable-zipstream use wxZipInputStream | |
a848cd7e SC |
935 | --enable-url use wxURL class |
936 | --enable-protocol use wxProtocol class | |
937 | --enable-protocol-http HTTP support in wxProtocol | |
938 | --enable-protocol-ftp FTP support in wxProtocol | |
939 | --enable-protocol-file FILE support in wxProtocol | |
940 | --enable-threads use threads | |
941 | --enable-docview use document view architecture | |
942 | --enable-help use help subsystem | |
943 | --enable-mshtmlhelp use MS HTML Help (win32) | |
944 | --enable-html use wxHTML sub-library | |
945 | --enable-htmlhelp use wxHTML-based help | |
946 | --enable-constraints use layout-constraints system | |
947 | --enable-printarch use printing architecture | |
948 | --enable-mdi use multiple document interface architecture | |
8a7b1113 | 949 | --enable-mdidoc use docview architecture with MDI |
a848cd7e SC |
950 | --enable-loggui use standard GUI logger |
951 | --enable-logwin use wxLogWindow | |
952 | --enable-logdialog use wxLogDialog | |
953 | --enable-postscript use wxPostscriptDC device context (default for gtk+) | |
954 | --enable-prologio not available; see contrib | |
955 | --enable-resources not available; see contrib | |
956 | --enable-clipboard use wxClipboard class | |
957 | --enable-dnd use Drag'n'Drop classes | |
958 | --enable-metafile use win32 metafiles | |
959 | --enable-controls use all usual controls | |
960 | --enable-accel use accelerators | |
961 | --enable-button use wxButton class | |
962 | --enable-bmpbutton use wxBitmapButton class | |
963 | --enable-calendar use wxCalendarCtrl class | |
964 | --enable-caret use wxCaret class | |
965 | --enable-checkbox use wxCheckBox class | |
966 | --enable-checklst use wxCheckListBox (listbox with checkboxes) class | |
967 | --enable-choice use wxChoice class | |
968 | --enable-combobox use wxComboBox class | |
969 | --enable-display use wxDisplay class | |
970 | --enable-gauge use wxGauge class | |
971 | --enable-grid use wxGrid class | |
972 | --enable-imaglist use wxImageList class | |
973 | --enable-listbook use wxListbook class | |
974 | --enable-listbox use wxListBox class | |
975 | --enable-listctrl use wxListCtrl class | |
976 | --enable-notebook use wxNotebook class | |
977 | --enable-radiobox use wxRadioBox class | |
978 | --enable-radiobtn use wxRadioButton class | |
979 | --enable-sash use wxSashWindow class | |
980 | --enable-scrollbar use wxScrollBar class and scrollable windows | |
981 | --enable-slider use wxSlider class | |
982 | --enable-spinbtn use wxSpinButton class | |
983 | --enable-spinctrl use wxSpinCtrl class | |
984 | --enable-splitter use wxSplitterWindow class | |
985 | --enable-statbmp use wxStaticBitmap class | |
986 | --enable-statbox use wxStaticBox class | |
987 | --enable-statline use wxStaticLine class | |
988 | --enable-stattext use wxStaticText class | |
989 | --enable-statusbar use wxStatusBar class | |
990 | --enable-tabdialog use wxTabControl class | |
991 | --enable-textctrl use wxTextCtrl class | |
992 | --enable-togglebtn use wxToggleButton class | |
993 | --enable-toolbar use wxToolBar class | |
994 | --enable-tbarnative use native wxToolBar class | |
995 | --enable-tbarsmpl use wxToolBarSimple class | |
996 | --enable-treectrl use wxTreeCtrl class | |
997 | --enable-tipwindow use wxTipWindow class | |
998 | --enable-popupwin use wxPopUpWindow class | |
999 | --enable-commondlg use all common dialogs | |
1000 | --enable-choicedlg use wxChoiceDialog | |
1001 | --enable-coldlg use wxColourDialog | |
1002 | --enable-filedlg use wxFileDialog | |
1003 | --enable-finddlg use wxFindReplaceDialog | |
1004 | --enable-fontdlg use wxFontDialog | |
1005 | --enable-dirdlg use wxDirDialog | |
1006 | --enable-msgdlg use wxMessageDialog | |
1007 | --enable-numberdlg use wxNumberEntryDialog | |
1008 | --enable-splash use wxSplashScreen | |
1009 | --enable-textdlg use wxTextDialog | |
1010 | --enable-tipdlg use startup tips | |
1011 | --enable-progressdlg use wxProgressDialog | |
1012 | --enable-wizarddlg use wxWizard | |
1013 | --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes | |
1014 | --enable-miniframe use wxMiniFrame class | |
1015 | --enable-tooltips use wxToolTip class | |
1016 | --enable-splines use spline drawing code | |
1017 | --enable-validators use wxValidator and derived classes | |
1018 | --enable-busyinfo use wxBusyInfo | |
1019 | --enable-joystick use wxJoystick (Linux only) | |
1020 | --enable-metafiles use wxMetaFile (Windows only) | |
1021 | --enable-dragimage use wxDragImage | |
1022 | --enable-accessibility enable accessibility support | |
1023 | --enable-palette use wxPalette class | |
1024 | --enable-image use wxImage class | |
1025 | --enable-gif use gif images (GIF file format) | |
1026 | --enable-pcx use pcx images (PCX file format) | |
1027 | --enable-iff use iff images (IFF file format) | |
1028 | --enable-pnm use pnm images (PNM file format) | |
1029 | --enable-xpm use xpm images (XPM file format) | |
1030 | --enable-icocur use Windows ICO and CUR formats | |
1031 | --enable-official_build official build of wxWindows (win32 DLL only) | |
1032 | --enable-vendor=VENDOR vendor name (win32 DLL only) | |
1033 | --disable-largefile omit support for large files | |
1034 | --disable-gtktest do not try to compile and run a test GTK+ program | |
1035 | --disable-gtktest Do not try to compile and run a test GTK program | |
1036 | --disable-sdltest Do not try to compile and run a test SDL program | |
1037 | --enable-omf use OMF object format (OS/2) | |
1038 | --disable-precomp-headers don't use precompiled headers even if compiler can | |
1039 | ||
1040 | Optional Packages: | |
1041 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1042 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1043 | --with-gtk use GTK+ | |
1044 | --with-motif use Motif/Lesstif | |
1045 | --with-mac use Mac OS X | |
1046 | --with-cocoa use Cocoa | |
1047 | --with-wine use Wine | |
1048 | --with-msw use MS-Windows | |
1049 | --with-pm use OS/2 Presentation Manager | |
1050 | --with-mgl use SciTech MGL | |
1051 | --with-microwin use MicroWindows | |
1052 | --with-x11 use X11 | |
1053 | --with-libpng use libpng (PNG image format) | |
1054 | --with-libjpeg use libjpeg (JPEG file format) | |
1055 | --with-libtiff use libtiff (TIFF file format) | |
1056 | --with-libxpm use libxpm (XPM file format) | |
1057 | --with-libmspack use libmspack (CHM help files loading) | |
1058 | --with-sdl use SDL for audio on Unix | |
1059 | --with-opengl use OpenGL (or Mesa) | |
1060 | --with-dmalloc use dmalloc library (http://dmalloc.com/) | |
1061 | --with-regex enable support for wxRegEx class | |
1062 | --with-zlib use zlib for LZW compression | |
1063 | --with-odbc use the IODBC and wxODBC classes | |
1064 | --with-expat enable XML support using expat parser | |
1065 | --with-gtk-prefix=PFX Prefix where GTK is installed (optional) | |
1066 | --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) | |
1067 | --with-x use the X Window System | |
1068 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib | |
1069 | --with-sdl-prefix=PFX Prefix where SDL is installed (optional) | |
1070 | --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) | |
1071 | --with-cppunit-prefix=PFX Prefix where CppUnit is installed (optional) | |
1072 | --with-cppunit-exec-prefix=PFX Exec prefix where CppUnit is installed (optional) | |
1073 | ||
1074 | Some influential environment variables: | |
dcc1b6ad VS |
1075 | CC C compiler command |
1076 | CFLAGS C compiler flags | |
1077 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1078 | nonstandard directory <lib dir> | |
1079 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1080 | headers in a nonstandard directory <include dir> | |
1081 | CPP C preprocessor | |
1082 | CXX C++ compiler command | |
1083 | CXXFLAGS C++ compiler flags | |
1084 | CXXCPP C++ preprocessor | |
a848cd7e SC |
1085 | |
1086 | Use these variables to override the choices made by `configure' or to help | |
1087 | it to find libraries and programs with nonstandard names/locations. | |
1088 | ||
1089 | Report bugs to <wx-dev@lists.wxwindows.org>. | |
1090 | _ACEOF | |
1091 | fi | |
1092 | ||
1093 | if test "$ac_init_help" = "recursive"; then | |
1094 | # If there are subdirs, report their specific --help. | |
1095 | ac_popdir=`pwd` | |
1096 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1097 | test -d $ac_dir || continue | |
1098 | ac_builddir=. | |
1099 | ||
1100 | if test "$ac_dir" != .; then | |
1101 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1102 | # A "../" for each directory in $ac_dir_suffix. | |
1103 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1104 | else | |
1105 | ac_dir_suffix= ac_top_builddir= | |
1106 | fi | |
1107 | ||
1108 | case $srcdir in | |
1109 | .) # No --srcdir option. We are building in place. | |
1110 | ac_srcdir=. | |
1111 | if test -z "$ac_top_builddir"; then | |
1112 | ac_top_srcdir=. | |
1113 | else | |
1114 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1115 | fi ;; | |
1116 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1117 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1118 | ac_top_srcdir=$srcdir ;; | |
1119 | *) # Relative path. | |
1120 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1121 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
1122 | esac | |
8a7b1113 VZ |
1123 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
1124 | # absolute. | |
1125 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
1126 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
1127 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
1128 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
a848cd7e SC |
1129 | |
1130 | cd $ac_dir | |
1131 | # Check for guested configure; otherwise get Cygnus style configure. | |
1132 | if test -f $ac_srcdir/configure.gnu; then | |
1133 | echo | |
1134 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1135 | elif test -f $ac_srcdir/configure; then | |
1136 | echo | |
1137 | $SHELL $ac_srcdir/configure --help=recursive | |
1138 | elif test -f $ac_srcdir/configure.ac || | |
8a7b1113 | 1139 | test -f $ac_srcdir/configure.in; then |
a848cd7e SC |
1140 | echo |
1141 | $ac_configure --help | |
1142 | else | |
1143 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1144 | fi | |
dcc1b6ad | 1145 | cd $ac_popdir |
a848cd7e SC |
1146 | done |
1147 | fi | |
1148 | ||
1149 | test -n "$ac_init_help" && exit 0 | |
1150 | if $ac_init_version; then | |
1151 | cat <<\_ACEOF | |
1152 | wxWindows configure 2.5.1 | |
8a7b1113 | 1153 | generated by GNU Autoconf 2.57 |
a848cd7e | 1154 | |
8a7b1113 VZ |
1155 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 |
1156 | Free Software Foundation, Inc. | |
a848cd7e SC |
1157 | This configure script is free software; the Free Software Foundation |
1158 | gives unlimited permission to copy, distribute and modify it. | |
1159 | _ACEOF | |
1160 | exit 0 | |
1161 | fi | |
1162 | exec 5>config.log | |
1163 | cat >&5 <<_ACEOF | |
1164 | This file contains any messages produced by compilers while | |
1165 | running configure, to aid debugging if configure makes a mistake. | |
1166 | ||
1167 | It was created by wxWindows $as_me 2.5.1, which was | |
8a7b1113 | 1168 | generated by GNU Autoconf 2.57. Invocation command line was |
a848cd7e SC |
1169 | |
1170 | $ $0 $@ | |
1171 | ||
1172 | _ACEOF | |
1173 | { | |
1174 | cat <<_ASUNAME | |
1175 | ## --------- ## | |
1176 | ## Platform. ## | |
1177 | ## --------- ## | |
1178 | ||
1179 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1180 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1181 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1182 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1183 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1184 | ||
1185 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1186 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1187 | ||
1188 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1189 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1190 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1191 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1192 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1193 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1194 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1195 | ||
1196 | _ASUNAME | |
1197 | ||
1198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1199 | for as_dir in $PATH | |
1200 | do | |
1201 | IFS=$as_save_IFS | |
1202 | test -z "$as_dir" && as_dir=. | |
1203 | echo "PATH: $as_dir" | |
1204 | done | |
1205 | ||
1206 | } >&5 | |
1207 | ||
1208 | cat >&5 <<_ACEOF | |
1209 | ||
1210 | ||
1211 | ## ----------- ## | |
1212 | ## Core tests. ## | |
1213 | ## ----------- ## | |
1214 | ||
1215 | _ACEOF | |
1216 | ||
1217 | ||
1218 | # Keep a trace of the command line. | |
1219 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1220 | # Strip out --silent because we don't want to record it for future runs. | |
1221 | # Also quote any args containing shell meta-characters. | |
1222 | # Make two passes to allow for proper duplicate-argument suppression. | |
1223 | ac_configure_args= | |
1224 | ac_configure_args0= | |
1225 | ac_configure_args1= | |
1226 | ac_sep= | |
1227 | ac_must_keep_next=false | |
1228 | for ac_pass in 1 2 | |
1229 | do | |
1230 | for ac_arg | |
1231 | do | |
1232 | case $ac_arg in | |
1233 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1234 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1235 | | -silent | --silent | --silen | --sile | --sil) | |
1236 | continue ;; | |
1237 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1238 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1239 | esac | |
1240 | case $ac_pass in | |
1241 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1242 | 2) | |
1243 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1244 | if test $ac_must_keep_next = true; then | |
8a7b1113 | 1245 | ac_must_keep_next=false # Got value, back to normal. |
a848cd7e | 1246 | else |
8a7b1113 VZ |
1247 | case $ac_arg in |
1248 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1249 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1250 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1251 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1252 | case "$ac_configure_args0 " in | |
1253 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1254 | esac | |
1255 | ;; | |
1256 | -* ) ac_must_keep_next=true ;; | |
1257 | esac | |
a848cd7e SC |
1258 | fi |
1259 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1260 | # Get rid of the leading space. | |
1261 | ac_sep=" " | |
1262 | ;; | |
1263 | esac | |
1264 | done | |
1265 | done | |
1266 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1267 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1268 | ||
1269 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1270 | # config.log. We remove comments because anyway the quotes in there | |
1271 | # would cause problems or look ugly. | |
1272 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1273 | # such as our DU 5.0 friend, will then `close' the trap. | |
1274 | trap 'exit_status=$? | |
1275 | # Save into config.log some information that might help in debugging. | |
1276 | { | |
1277 | echo | |
1278 | ||
1279 | cat <<\_ASBOX | |
1280 | ## ---------------- ## | |
1281 | ## Cache variables. ## | |
1282 | ## ---------------- ## | |
1283 | _ASBOX | |
1284 | echo | |
1285 | # The following way of writing the cache mishandles newlines in values, | |
1286 | { | |
1287 | (set) 2>&1 | | |
1288 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1289 | *ac_space=\ *) | |
1290 | sed -n \ | |
8a7b1113 VZ |
1291 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
1292 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
a848cd7e SC |
1293 | ;; |
1294 | *) | |
1295 | sed -n \ | |
8a7b1113 | 1296 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
1297 | ;; |
1298 | esac; | |
1299 | } | |
1300 | echo | |
1301 | ||
1302 | cat <<\_ASBOX | |
1303 | ## ----------------- ## | |
1304 | ## Output variables. ## | |
1305 | ## ----------------- ## | |
1306 | _ASBOX | |
1307 | echo | |
1308 | for ac_var in $ac_subst_vars | |
1309 | do | |
1310 | eval ac_val=$`echo $ac_var` | |
1311 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1312 | done | sort | |
1313 | echo | |
1314 | ||
1315 | if test -n "$ac_subst_files"; then | |
1316 | cat <<\_ASBOX | |
1317 | ## ------------- ## | |
1318 | ## Output files. ## | |
1319 | ## ------------- ## | |
1320 | _ASBOX | |
1321 | echo | |
1322 | for ac_var in $ac_subst_files | |
1323 | do | |
1324 | eval ac_val=$`echo $ac_var` | |
8a7b1113 | 1325 | echo "$ac_var='"'"'$ac_val'"'"'" |
a848cd7e SC |
1326 | done | sort |
1327 | echo | |
1328 | fi | |
1329 | ||
1330 | if test -s confdefs.h; then | |
1331 | cat <<\_ASBOX | |
1332 | ## ----------- ## | |
1333 | ## confdefs.h. ## | |
1334 | ## ----------- ## | |
1335 | _ASBOX | |
1336 | echo | |
1337 | sed "/^$/d" confdefs.h | sort | |
1338 | echo | |
1339 | fi | |
1340 | test "$ac_signal" != 0 && | |
1341 | echo "$as_me: caught signal $ac_signal" | |
1342 | echo "$as_me: exit $exit_status" | |
1343 | } >&5 | |
8a7b1113 | 1344 | rm -f core core.* *.core && |
a848cd7e SC |
1345 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
1346 | exit $exit_status | |
1347 | ' 0 | |
1348 | for ac_signal in 1 2 13 15; do | |
1349 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1350 | done | |
1351 | ac_signal=0 | |
1352 | ||
1353 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1354 | rm -rf conftest* confdefs.h | |
1355 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1356 | echo >confdefs.h | |
1357 | ||
1358 | # Predefined preprocessor variables. | |
1359 | ||
1360 | cat >>confdefs.h <<_ACEOF | |
1361 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1362 | _ACEOF | |
1363 | ||
1364 | ||
1365 | cat >>confdefs.h <<_ACEOF | |
1366 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1367 | _ACEOF | |
1368 | ||
1369 | ||
1370 | cat >>confdefs.h <<_ACEOF | |
1371 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1372 | _ACEOF | |
1373 | ||
1374 | ||
1375 | cat >>confdefs.h <<_ACEOF | |
1376 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1377 | _ACEOF | |
1378 | ||
1379 | ||
1380 | cat >>confdefs.h <<_ACEOF | |
1381 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1382 | _ACEOF | |
1383 | ||
1384 | ||
1385 | # Let the site file select an alternate cache file if it wants to. | |
1386 | # Prefer explicitly selected file to automatically selected ones. | |
1387 | if test -z "$CONFIG_SITE"; then | |
1388 | if test "x$prefix" != xNONE; then | |
1389 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1390 | else | |
1391 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1392 | fi | |
1393 | fi | |
1394 | for ac_site_file in $CONFIG_SITE; do | |
1395 | if test -r "$ac_site_file"; then | |
1396 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1397 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1398 | sed 's/^/| /' "$ac_site_file" >&5 | |
1399 | . "$ac_site_file" | |
1400 | fi | |
1401 | done | |
1402 | ||
1403 | if test -r "$cache_file"; then | |
1404 | # Some versions of bash will fail to source /dev/null (special | |
1405 | # files actually), so we avoid doing that. | |
1406 | if test -f "$cache_file"; then | |
1407 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1408 | echo "$as_me: loading cache $cache_file" >&6;} | |
1409 | case $cache_file in | |
1410 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1411 | *) . ./$cache_file;; | |
1412 | esac | |
1413 | fi | |
1414 | else | |
1415 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1416 | echo "$as_me: creating cache $cache_file" >&6;} | |
1417 | >$cache_file | |
1418 | fi | |
1419 | ||
1420 | # Check that the precious variables saved in the cache have kept the same | |
1421 | # value. | |
1422 | ac_cache_corrupted=false | |
1423 | for ac_var in `(set) 2>&1 | | |
8a7b1113 | 1424 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
a848cd7e SC |
1425 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1426 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1427 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1428 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1429 | case $ac_old_set,$ac_new_set in | |
1430 | set,) | |
1431 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1432 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1433 | ac_cache_corrupted=: ;; | |
1434 | ,set) | |
1435 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1436 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1437 | ac_cache_corrupted=: ;; | |
1438 | ,);; | |
1439 | *) | |
1440 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
8a7b1113 | 1441 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
a848cd7e | 1442 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
8a7b1113 | 1443 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
a848cd7e | 1444 | echo "$as_me: former value: $ac_old_val" >&2;} |
8a7b1113 | 1445 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
a848cd7e | 1446 | echo "$as_me: current value: $ac_new_val" >&2;} |
8a7b1113 | 1447 | ac_cache_corrupted=: |
a848cd7e SC |
1448 | fi;; |
1449 | esac | |
1450 | # Pass precious variables to config.status. | |
1451 | if test "$ac_new_set" = set; then | |
1452 | case $ac_new_val in | |
1453 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1454 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1455 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1456 | esac | |
1457 | case " $ac_configure_args " in | |
1458 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1459 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1460 | esac | |
1461 | fi | |
1462 | done | |
1463 | if $ac_cache_corrupted; then | |
1464 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1465 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1466 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1467 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1468 | { (exit 1); exit 1; }; } | |
1469 | fi | |
1470 | ||
1471 | ac_ext=c | |
1472 | ac_cpp='$CPP $CPPFLAGS' | |
1473 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1474 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1475 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
1484 | ||
1485 | ||
1486 | ||
1487 | ||
1488 | ||
1489 | ||
1490 | ||
1491 | ||
1492 | ||
1493 | ||
1494 | ||
1495 | ||
1496 | ||
1497 | ||
1498 | ||
1499 | ||
1500 | ||
1501 | ||
1502 | ||
1503 | ||
1504 | ||
1505 | ||
1506 | ac_aux_dir= | |
1507 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1508 | if test -f $ac_dir/install-sh; then | |
1509 | ac_aux_dir=$ac_dir | |
1510 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1511 | break | |
1512 | elif test -f $ac_dir/install.sh; then | |
1513 | ac_aux_dir=$ac_dir | |
1514 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1515 | break | |
1516 | elif test -f $ac_dir/shtool; then | |
1517 | ac_aux_dir=$ac_dir | |
1518 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1519 | break | |
1520 | fi | |
1521 | done | |
1522 | if test -z "$ac_aux_dir"; then | |
1523 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1524 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1525 | { (exit 1); exit 1; }; } | |
1526 | fi | |
1527 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1528 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1529 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1530 | ||
1531 | # Make sure we can run config.sub. | |
1532 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1533 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1534 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1535 | { (exit 1); exit 1; }; } | |
1536 | ||
1537 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1538 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1539 | if test "${ac_cv_build+set}" = set; then | |
1540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1541 | else | |
1542 | ac_cv_build_alias=$build_alias | |
1543 | test -z "$ac_cv_build_alias" && | |
1544 | ac_cv_build_alias=`$ac_config_guess` | |
1545 | test -z "$ac_cv_build_alias" && | |
1546 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1547 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1548 | { (exit 1); exit 1; }; } | |
1549 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1550 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1551 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1552 | { (exit 1); exit 1; }; } | |
1553 | ||
1554 | fi | |
1555 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1556 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1557 | build=$ac_cv_build | |
1558 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1559 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1560 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1561 | ||
1562 | ||
1563 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1564 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1565 | if test "${ac_cv_host+set}" = set; then | |
1566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1567 | else | |
1568 | ac_cv_host_alias=$host_alias | |
1569 | test -z "$ac_cv_host_alias" && | |
1570 | ac_cv_host_alias=$ac_cv_build_alias | |
1571 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1572 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1573 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1574 | { (exit 1); exit 1; }; } | |
1575 | ||
1576 | fi | |
1577 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1578 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1579 | host=$ac_cv_host | |
1580 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1581 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1582 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1583 | ||
1584 | ||
1585 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1586 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1587 | if test "${ac_cv_target+set}" = set; then | |
1588 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1589 | else | |
1590 | ac_cv_target_alias=$target_alias | |
1591 | test "x$ac_cv_target_alias" = "x" && | |
1592 | ac_cv_target_alias=$ac_cv_host_alias | |
1593 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1594 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1595 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1596 | { (exit 1); exit 1; }; } | |
1597 | ||
1598 | fi | |
1599 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1600 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1601 | target=$ac_cv_target | |
1602 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1603 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1604 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1605 | ||
1606 | ||
1607 | # The aliases save the names the user supplied, while $host etc. | |
1608 | # will get canonicalized. | |
1609 | test -n "$target_alias" && | |
1610 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1611 | NONENONEs,x,x, && | |
1612 | program_prefix=${target_alias}- | |
1613 | ||
1614 | ||
1615 | ||
1616 | WX_MAJOR_VERSION_NUMBER=2 | |
1617 | WX_MINOR_VERSION_NUMBER=5 | |
1618 | WX_RELEASE_NUMBER=1 | |
1619 | ||
1620 | WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER | |
1621 | WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER | |
1622 | ||
1623 | WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER | |
1624 | ||
1625 | WX_CURRENT=1 | |
1626 | WX_REVISION=0 | |
1627 | WX_AGE=0 | |
1628 | ||
1629 | ||
1630 | ||
1631 | USE_UNIX=1 | |
1632 | USE_OS2=0 | |
1633 | USE_WIN32=0 | |
1634 | USE_DOS=0 | |
1635 | USE_BEOS=0 | |
1636 | USE_MAC=0 | |
1637 | ||
1638 | USE_AIX= | |
1639 | USE_BSD= USE_DARWIN= USE_FREEBSD= | |
1640 | USE_GNU= USE_HPUX= | |
1641 | USE_LINUX= | |
1642 | USE_NETBSD= | |
1643 | USE_OPENBSD= | |
1644 | USE_OSF= USE_SGI= | |
1645 | USE_SOLARIS= USE_SUN= USE_SUNOS= USE_SVR4= USE_SYSV= USE_VMS= | |
1646 | USE_ULTRIX= | |
1647 | USE_UNIXWARE= | |
1648 | ||
1649 | USE_ALPHA= | |
1650 | ||
1651 | NEEDS_D_REENTRANT_FOR_R_FUNCS=0 | |
1652 | ||
1653 | ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11" | |
1654 | ||
1655 | DEFAULT_wxUSE_COCOA=0 | |
1656 | DEFAULT_wxUSE_GTK=0 | |
1657 | DEFAULT_wxUSE_MAC=0 | |
1658 | DEFAULT_wxUSE_MGL=0 | |
1659 | DEFAULT_wxUSE_MICROWIN=0 | |
1660 | DEFAULT_wxUSE_MOTIF=0 | |
1661 | DEFAULT_wxUSE_MSW=0 | |
1662 | DEFAULT_wxUSE_PM=0 | |
1663 | DEFAULT_wxUSE_X11=0 | |
1664 | ||
1665 | DEFAULT_DEFAULT_wxUSE_COCOA=0 | |
1666 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
1667 | DEFAULT_DEFAULT_wxUSE_MAC=0 | |
1668 | DEFAULT_DEFAULT_wxUSE_MGL=0 | |
1669 | DEFAULT_DEFAULT_wxUSE_MICROWIN=0 | |
1670 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
1671 | DEFAULT_DEFAULT_wxUSE_MSW=0 | |
1672 | DEFAULT_DEFAULT_wxUSE_PM=0 | |
1673 | DEFAULT_DEFAULT_wxUSE_X11=0 | |
1674 | ||
1675 | PROGRAM_EXT= | |
1676 | SO_SUFFIX=so | |
1677 | SAMPLES_RPATH_FLAG= | |
1678 | SAMPLES_RPATH_POSTLINK= | |
1679 | ||
1680 | case "${host}" in | |
1681 | *-hp-hpux* ) | |
1682 | USE_HPUX=1 | |
1683 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1684 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1685 | SO_SUFFIX=sl | |
1686 | cat >>confdefs.h <<\_ACEOF | |
1687 | #define __HPUX__ 1 | |
1688 | _ACEOF | |
1689 | ||
1690 | ;; | |
1691 | *-*-linux* ) | |
1692 | USE_LINUX=1 | |
1693 | cat >>confdefs.h <<\_ACEOF | |
1694 | #define __LINUX__ 1 | |
1695 | _ACEOF | |
1696 | ||
1697 | TMP=`uname -m` | |
1698 | if test "x$TMP" = "xalpha"; then | |
1699 | USE_ALPHA=1 | |
1700 | cat >>confdefs.h <<\_ACEOF | |
1701 | #define __ALPHA__ 1 | |
1702 | _ACEOF | |
1703 | ||
1704 | fi | |
1705 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1706 | ;; | |
1707 | *-*-gnu* | *-*-k*bsd*-gnu ) | |
1708 | USE_GNU=1 | |
1709 | TMP=`uname -m` | |
1710 | if test "x$TMP" = "xalpha"; then | |
1711 | USE_ALPHA=1 | |
1712 | cat >>confdefs.h <<\_ACEOF | |
1713 | #define __ALPHA__ 1 | |
1714 | _ACEOF | |
1715 | ||
1716 | fi | |
1717 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1718 | ;; | |
1719 | *-*-irix5* | *-*-irix6* ) | |
1720 | USE_SGI=1 | |
1721 | USE_SVR4=1 | |
1722 | cat >>confdefs.h <<\_ACEOF | |
1723 | #define __SGI__ 1 | |
1724 | _ACEOF | |
1725 | ||
1726 | cat >>confdefs.h <<\_ACEOF | |
1727 | #define __SVR4__ 1 | |
1728 | _ACEOF | |
1729 | ||
1730 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1731 | ;; | |
1732 | *-*-solaris2* ) | |
1733 | USE_SUN=1 | |
1734 | USE_SOLARIS=1 | |
1735 | USE_SVR4=1 | |
1736 | cat >>confdefs.h <<\_ACEOF | |
1737 | #define __SUN__ 1 | |
1738 | _ACEOF | |
1739 | ||
1740 | cat >>confdefs.h <<\_ACEOF | |
1741 | #define __SOLARIS__ 1 | |
1742 | _ACEOF | |
1743 | ||
1744 | cat >>confdefs.h <<\_ACEOF | |
1745 | #define __SVR4__ 1 | |
1746 | _ACEOF | |
1747 | ||
1748 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1749 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1750 | ;; | |
1751 | *-*-sunos4* ) | |
1752 | USE_SUN=1 | |
1753 | USE_SUNOS=1 | |
1754 | USE_BSD=1 | |
1755 | cat >>confdefs.h <<\_ACEOF | |
1756 | #define __SUN__ 1 | |
1757 | _ACEOF | |
1758 | ||
1759 | cat >>confdefs.h <<\_ACEOF | |
1760 | #define __SUNOS__ 1 | |
1761 | _ACEOF | |
1762 | ||
1763 | cat >>confdefs.h <<\_ACEOF | |
1764 | #define __BSD__ 1 | |
1765 | _ACEOF | |
1766 | ||
1767 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1768 | ;; | |
1769 | *-*-freebsd*) | |
1770 | USE_BSD=1 | |
1771 | USE_FREEBSD=1 | |
1772 | cat >>confdefs.h <<\_ACEOF | |
1773 | #define __FREEBSD__ 1 | |
1774 | _ACEOF | |
1775 | ||
1776 | cat >>confdefs.h <<\_ACEOF | |
1777 | #define __BSD__ 1 | |
1778 | _ACEOF | |
1779 | ||
1780 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1781 | ;; | |
1782 | *-*-openbsd*) | |
1783 | USE_BSD=1 | |
1784 | USE_OPENBSD=1 | |
1785 | cat >>confdefs.h <<\_ACEOF | |
1786 | #define __OPENBSD__ 1 | |
1787 | _ACEOF | |
1788 | ||
1789 | cat >>confdefs.h <<\_ACEOF | |
1790 | #define __BSD__ 1 | |
1791 | _ACEOF | |
1792 | ||
1793 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1794 | ;; | |
1795 | *-*-netbsd*) | |
1796 | USE_BSD=1 | |
1797 | USE_NETBSD=1 | |
1798 | cat >>confdefs.h <<\_ACEOF | |
1799 | #define __NETBSD__ 1 | |
1800 | _ACEOF | |
1801 | ||
1802 | cat >>confdefs.h <<\_ACEOF | |
1803 | #define __BSD__ 1 | |
1804 | _ACEOF | |
1805 | ||
1806 | DEFAULT_DEFAULT_wxUSE_GTK=1 | |
1807 | ;; | |
1808 | *-*-osf* ) | |
1809 | USE_ALPHA=1 | |
1810 | USE_OSF=1 | |
1811 | cat >>confdefs.h <<\_ACEOF | |
1812 | #define __ALPHA__ 1 | |
1813 | _ACEOF | |
1814 | ||
1815 | cat >>confdefs.h <<\_ACEOF | |
1816 | #define __OSF__ 1 | |
1817 | _ACEOF | |
1818 | ||
1819 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1820 | NEEDS_D_REENTRANT_FOR_R_FUNCS=1 | |
1821 | ;; | |
1822 | *-*-dgux5* ) | |
1823 | USE_ALPHA=1 | |
1824 | USE_SVR4=1 | |
1825 | cat >>confdefs.h <<\_ACEOF | |
1826 | #define __ALPHA__ 1 | |
1827 | _ACEOF | |
1828 | ||
1829 | cat >>confdefs.h <<\_ACEOF | |
1830 | #define __SVR4__ 1 | |
1831 | _ACEOF | |
1832 | ||
1833 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1834 | ;; | |
1835 | *-*-sysv5* ) | |
1836 | USE_SYSV=1 | |
1837 | USE_SVR4=1 | |
1838 | cat >>confdefs.h <<\_ACEOF | |
1839 | #define __SYSV__ 1 | |
1840 | _ACEOF | |
1841 | ||
1842 | cat >>confdefs.h <<\_ACEOF | |
1843 | #define __SVR4__ 1 | |
1844 | _ACEOF | |
1845 | ||
1846 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1847 | ;; | |
1848 | *-*-aix* ) | |
1849 | USE_AIX=1 | |
1850 | USE_SYSV=1 | |
1851 | USE_SVR4=1 | |
1852 | SO_SUFFIX=a | |
1853 | cat >>confdefs.h <<\_ACEOF | |
1854 | #define __AIX__ 1 | |
1855 | _ACEOF | |
1856 | ||
1857 | cat >>confdefs.h <<\_ACEOF | |
1858 | #define __SYSV__ 1 | |
1859 | _ACEOF | |
1860 | ||
1861 | cat >>confdefs.h <<\_ACEOF | |
1862 | #define __SVR4__ 1 | |
1863 | _ACEOF | |
1864 | ||
1865 | DEFAULT_DEFAULT_wxUSE_MOTIF=1 | |
1866 | ;; | |
1867 | ||
1868 | *-*-*UnixWare*) | |
1869 | USE_SYSV=1 | |
1870 | USE_SVR4=1 | |
1871 | USE_UNIXWARE=1 | |
1872 | cat >>confdefs.h <<\_ACEOF | |
1873 | #define __UNIXWARE__ 1 | |
1874 | _ACEOF | |
1875 | ||
1876 | ;; | |
1877 | ||
1878 | *-*-cygwin* | *-*-mingw32* ) | |
1879 | SO_SUFFIX=dll | |
1880 | PROGRAM_EXT=".exe" | |
1881 | RESCOMP=windres | |
1882 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
1883 | ;; | |
1884 | ||
1885 | *-pc-msdosdjgpp ) | |
1886 | USE_UNIX=0 | |
1887 | USE_DOS=1 | |
1888 | cat >>confdefs.h <<\_ACEOF | |
1889 | #define __DOS__ 1 | |
1890 | _ACEOF | |
1891 | ||
1892 | PROGRAM_EXT=".exe" | |
1893 | DEFAULT_DEFAULT_wxUSE_MGL=1 | |
1894 | LIBS="$LIBS -lstdc++" | |
1895 | ;; | |
1896 | ||
1897 | *-pc-os2_emx | *-pc-os2-emx ) | |
1898 | cat >>confdefs.h <<\_ACEOF | |
1899 | #define __EMX__ 1 | |
1900 | _ACEOF | |
1901 | ||
1902 | USE_OS2=1 | |
1903 | cat >>confdefs.h <<\_ACEOF | |
1904 | #define __OS2__ 1 | |
1905 | _ACEOF | |
1906 | ||
1907 | PROGRAM_EXT=".exe" | |
1908 | DEFAULT_DEFAULT_wxUSE_PM=1 | |
1909 | CXX=gcc | |
1910 | LDFLAGS="$LDFLAGS -Zcrtdll" | |
1911 | ac_executable_extensions=".exe" | |
1912 | export ac_executable_extensions | |
1913 | ac_save_IFS="$IFS" | |
1914 | IFS='\\' | |
1915 | ac_TEMP_PATH= | |
1916 | for ac_dir in $PATH; do | |
1917 | IFS=$ac_save_IFS | |
1918 | if test -z "$ac_TEMP_PATH"; then | |
1919 | ac_TEMP_PATH="$ac_dir" | |
1920 | else | |
1921 | ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir" | |
1922 | fi | |
1923 | done | |
1924 | export PATH="$ac_TEMP_PATH" | |
1925 | unset ac_TEMP_PATH | |
1926 | ;; | |
1927 | ||
1928 | powerpc-*-darwin* ) | |
1929 | USE_BSD=1 | |
1930 | USE_DARWIN=1 | |
1931 | SO_SUFFIX=dylib | |
1932 | cat >>confdefs.h <<\_ACEOF | |
1933 | #define __BSD__ 1 | |
1934 | _ACEOF | |
1935 | ||
1936 | cat >>confdefs.h <<\_ACEOF | |
1937 | #define __DARWIN__ 1 | |
1938 | _ACEOF | |
1939 | ||
1940 | cat >>confdefs.h <<\_ACEOF | |
1941 | #define __POWERPC__ 1 | |
1942 | _ACEOF | |
1943 | ||
1944 | cat >>confdefs.h <<\_ACEOF | |
1945 | #define TARGET_CARBON 1 | |
1946 | _ACEOF | |
1947 | ||
1948 | DEFAULT_DEFAULT_wxUSE_MAC=1 | |
1949 | ;; | |
1950 | ||
1951 | *-*-beos* ) | |
1952 | USE_BEOS=1 | |
1953 | cat >>confdefs.h <<\_ACEOF | |
1954 | #define __BEOS__ 1 | |
1955 | _ACEOF | |
1956 | ||
1957 | ;; | |
1958 | ||
1959 | *) | |
1960 | { { echo "$as_me:$LINENO: error: unknown system type ${host}." >&5 | |
1961 | echo "$as_me: error: unknown system type ${host}." >&2;} | |
1962 | { (exit 1); exit 1; }; } | |
1963 | esac | |
1964 | ||
1965 | ||
1966 | ||
1967 | ||
1968 | wx_arg_cache_file="configarg.cache" | |
1969 | echo "loading argument cache $wx_arg_cache_file" | |
1970 | rm -f ${wx_arg_cache_file}.tmp | |
1971 | touch ${wx_arg_cache_file}.tmp | |
1972 | touch ${wx_arg_cache_file} | |
1973 | ||
1974 | ||
1975 | DEBUG_CONFIGURE=0 | |
1976 | if test $DEBUG_CONFIGURE = 1; then | |
1977 | DEFAULT_wxUSE_UNIVERSAL=no | |
1978 | DEFAULT_wxUSE_STL=no | |
1979 | ||
1980 | DEFAULT_wxUSE_NANOX=no | |
1981 | ||
1982 | DEFAULT_wxUSE_THREADS=yes | |
1983 | ||
1984 | DEFAULT_wxUSE_SHARED=yes | |
1985 | DEFAULT_wxUSE_OPTIMISE=no | |
1986 | DEFAULT_wxUSE_PROFILE=no | |
1987 | DEFAULT_wxUSE_NO_DEPS=no | |
1988 | DEFAULT_wxUSE_NO_RTTI=no | |
1989 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
1990 | DEFAULT_wxUSE_PERMISSIVE=no | |
1991 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
1992 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
1993 | DEFAULT_wxUSE_DEBUG_GDB=yes | |
1994 | DEFAULT_wxUSE_MEM_TRACING=no | |
1995 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
1996 | DEFAULT_wxUSE_DMALLOC=no | |
1997 | DEFAULT_wxUSE_APPLE_IEEE=no | |
1998 | ||
1999 | DEFAULT_wxUSE_EXCEPTIONS=no | |
2000 | DEFAULT_wxUSE_LOG=yes | |
2001 | DEFAULT_wxUSE_LOGWINDOW=no | |
2002 | DEFAULT_wxUSE_LOGGUI=no | |
2003 | DEFAULT_wxUSE_LOGDIALOG=no | |
2004 | ||
2005 | DEFAULT_wxUSE_GUI=yes | |
2006 | DEFAULT_wxUSE_CONTROLS=no | |
2007 | ||
2008 | DEFAULT_wxUSE_REGEX=no | |
2009 | DEFAULT_wxUSE_XML=no | |
2010 | DEFAULT_wxUSE_EXPAT=no | |
2011 | DEFAULT_wxUSE_ZLIB=no | |
2012 | DEFAULT_wxUSE_LIBPNG=no | |
2013 | DEFAULT_wxUSE_LIBJPEG=no | |
2014 | DEFAULT_wxUSE_LIBTIFF=no | |
2015 | DEFAULT_wxUSE_LIBXPM=no | |
2016 | DEFAULT_wxUSE_LIBMSPACK=no | |
2017 | DEFAULT_wxUSE_LIBSDL=no | |
2018 | DEFAULT_wxUSE_ODBC=no | |
2019 | DEFAULT_wxUSE_OPENGL=no | |
2020 | ||
2021 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no | |
2022 | DEFAULT_wxUSE_SNGLINST_CHECKER=no | |
2023 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2024 | DEFAULT_wxUSE_CMDLINE_PARSER=no | |
2025 | DEFAULT_wxUSE_DATETIME=no | |
2026 | DEFAULT_wxUSE_TIMER=no | |
2027 | DEFAULT_wxUSE_STOPWATCH=no | |
2028 | DEFAULT_wxUSE_FILE=no | |
2029 | DEFAULT_wxUSE_FFILE=no | |
2030 | DEFAULT_wxUSE_TEXTBUFFER=no | |
2031 | DEFAULT_wxUSE_TEXTFILE=no | |
2032 | DEFAULT_wxUSE_SOUND=no | |
2033 | DEFAULT_wxUSE_INTL=no | |
2034 | DEFAULT_wxUSE_CONFIG=no | |
2035 | DEFAULT_wxUSE_FONTMAP=no | |
2036 | DEFAULT_wxUSE_STREAMS=no | |
2037 | DEFAULT_wxUSE_SOCKETS=no | |
2038 | DEFAULT_wxUSE_OLE=no | |
2039 | DEFAULT_wxUSE_DATAOBJ=no | |
2040 | DEFAULT_wxUSE_DIALUP_MANAGER=no | |
2041 | DEFAULT_wxUSE_JOYSTICK=no | |
2042 | DEFAULT_wxUSE_DYNLIB_CLASS=no | |
2043 | DEFAULT_wxUSE_DYNAMIC_LOADER=no | |
2044 | DEFAULT_wxUSE_LONGLONG=no | |
2045 | DEFAULT_wxUSE_GEOMETRY=no | |
2046 | ||
2047 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no | |
2048 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no | |
2049 | DEFAULT_wxUSE_POSTSCRIPT=no | |
2050 | ||
2051 | DEFAULT_wxUSE_CLIPBOARD=no | |
2052 | DEFAULT_wxUSE_TOOLTIPS=no | |
2053 | DEFAULT_wxUSE_DRAG_AND_DROP=no | |
2054 | DEFAULT_wxUSE_DRAGIMAGE=no | |
2055 | DEFAULT_wxUSE_SPLINES=no | |
2056 | ||
8a7b1113 | 2057 | DEFAULT_wxUSE_MDI=no |
a848cd7e SC |
2058 | DEFAULT_wxUSE_MDI_ARCHITECTURE=no |
2059 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no | |
2060 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no | |
2061 | ||
2062 | DEFAULT_wxUSE_RESOURCES=no | |
2063 | DEFAULT_wxUSE_CONSTRAINTS=no | |
2064 | DEFAULT_wxUSE_IPC=no | |
2065 | DEFAULT_wxUSE_HELP=no | |
2066 | DEFAULT_wxUSE_MS_HTML_HELP=no | |
2067 | DEFAULT_wxUSE_WXHTML_HELP=no | |
2068 | DEFAULT_wxUSE_TREELAYOUT=no | |
2069 | DEFAULT_wxUSE_METAFILE=no | |
2070 | DEFAULT_wxUSE_MIMETYPE=no | |
2071 | DEFAULT_wxUSE_SYSTEM_OPTIONS=no | |
2072 | DEFAULT_wxUSE_PROTOCOL=no | |
2073 | DEFAULT_wxUSE_PROTOCOL_HTTP=no | |
2074 | DEFAULT_wxUSE_PROTOCOL_FTP=no | |
2075 | DEFAULT_wxUSE_PROTOCOL_FILE=no | |
2076 | DEFAULT_wxUSE_URL=no | |
2077 | ||
2078 | DEFAULT_wxUSE_COMMONDLGS=no | |
2079 | DEFAULT_wxUSE_CHOICEDLG=no | |
2080 | DEFAULT_wxUSE_COLOURDLG=no | |
2081 | DEFAULT_wxUSE_DIRDLG=no | |
2082 | DEFAULT_wxUSE_FILEDLG=no | |
2083 | DEFAULT_wxUSE_FINDREPLDLG=no | |
2084 | DEFAULT_wxUSE_FONTDLG=no | |
2085 | DEFAULT_wxUSE_MSGDLG=no | |
2086 | DEFAULT_wxUSE_NUMBERDLG=no | |
2087 | DEFAULT_wxUSE_TEXTDLG=no | |
2088 | DEFAULT_wxUSE_SPLASH=no | |
2089 | DEFAULT_wxUSE_STARTUP_TIPS=no | |
2090 | DEFAULT_wxUSE_PROGRESSDLG=no | |
2091 | DEFAULT_wxUSE_WIZARDDLG=no | |
2092 | ||
2093 | DEFAULT_wxUSE_MENUS=no | |
2094 | DEFAULT_wxUSE_MINIFRAME=no | |
2095 | DEFAULT_wxUSE_HTML=no | |
2096 | DEFAULT_wxUSE_FILESYSTEM=no | |
2097 | DEFAULT_wxUSE_FS_INET=no | |
2098 | DEFAULT_wxUSE_FS_ZIP=no | |
2099 | DEFAULT_wxUSE_BUSYINFO=no | |
2100 | DEFAULT_wxUSE_ZIPSTREAM=no | |
a848cd7e SC |
2101 | DEFAULT_wxUSE_VALIDATORS=no |
2102 | ||
2103 | DEFAULT_wxUSE_ACCEL=no | |
2104 | DEFAULT_wxUSE_BUTTON=no | |
2105 | DEFAULT_wxUSE_BMPBUTTON=no | |
2106 | DEFAULT_wxUSE_CALCTRL=no | |
2107 | DEFAULT_wxUSE_CARET=no | |
2108 | DEFAULT_wxUSE_CHECKBOX=no | |
2109 | DEFAULT_wxUSE_CHECKLST=no | |
2110 | DEFAULT_wxUSE_CHOICE=no | |
2111 | DEFAULT_wxUSE_COMBOBOX=no | |
2112 | DEFAULT_wxUSE_DISPLAY=no | |
2113 | DEFAULT_wxUSE_GAUGE=no | |
2114 | DEFAULT_wxUSE_GRID=no | |
2115 | DEFAULT_wxUSE_IMAGLIST=no | |
2116 | DEFAULT_wxUSE_LISTBOOK=no | |
2117 | DEFAULT_wxUSE_LISTBOX=no | |
2118 | DEFAULT_wxUSE_LISTCTRL=no | |
2119 | DEFAULT_wxUSE_NOTEBOOK=no | |
2120 | DEFAULT_wxUSE_RADIOBOX=no | |
2121 | DEFAULT_wxUSE_RADIOBTN=no | |
2122 | DEFAULT_wxUSE_SASH=no | |
2123 | DEFAULT_wxUSE_SCROLLBAR=no | |
2124 | DEFAULT_wxUSE_SLIDER=no | |
2125 | DEFAULT_wxUSE_SPINBTN=no | |
2126 | DEFAULT_wxUSE_SPINCTRL=no | |
2127 | DEFAULT_wxUSE_SPLITTER=no | |
2128 | DEFAULT_wxUSE_STATBMP=no | |
2129 | DEFAULT_wxUSE_STATBOX=no | |
2130 | DEFAULT_wxUSE_STATLINE=no | |
2131 | DEFAULT_wxUSE_STATTEXT=no | |
2132 | DEFAULT_wxUSE_STATUSBAR=yes | |
2133 | DEFAULT_wxUSE_TABDIALOG=no | |
2134 | DEFAULT_wxUSE_TEXTCTRL=no | |
2135 | DEFAULT_wxUSE_TOGGLEBTN=no | |
2136 | DEFAULT_wxUSE_TOOLBAR=no | |
2137 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
2138 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
2139 | DEFAULT_wxUSE_TREECTRL=no | |
2140 | DEFAULT_wxUSE_POPUPWIN=no | |
2141 | DEFAULT_wxUSE_TIPWINDOW=no | |
2142 | ||
2143 | DEFAULT_wxUSE_UNICODE=no | |
2144 | DEFAULT_wxUSE_UNICODE_MSLU=no | |
2145 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2146 | ||
2147 | DEFAULT_wxUSE_PALETTE=no | |
2148 | DEFAULT_wxUSE_IMAGE=no | |
2149 | DEFAULT_wxUSE_GIF=no | |
2150 | DEFAULT_wxUSE_PCX=no | |
2151 | DEFAULT_wxUSE_PNM=no | |
2152 | DEFAULT_wxUSE_IFF=no | |
2153 | DEFAULT_wxUSE_XPM=no | |
2154 | DEFAULT_wxUSE_ICO_CUR=no | |
2155 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2156 | ||
2157 | DEFAULT_wxUSE_MONOLITHIC=no | |
2158 | DEFAULT_wxUSE_PLUGINS=no | |
2159 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2160 | else | |
2161 | DEFAULT_wxUSE_UNIVERSAL=no | |
2162 | DEFAULT_wxUSE_STL=no | |
2163 | ||
2164 | DEFAULT_wxUSE_NANOX=no | |
2165 | ||
2166 | DEFAULT_wxUSE_THREADS=yes | |
2167 | ||
2168 | DEFAULT_wxUSE_SHARED=yes | |
2169 | DEFAULT_wxUSE_OPTIMISE=yes | |
2170 | DEFAULT_wxUSE_PROFILE=no | |
2171 | DEFAULT_wxUSE_NO_DEPS=no | |
2172 | DEFAULT_wxUSE_NO_RTTI=no | |
2173 | DEFAULT_wxUSE_NO_EXCEPTIONS=no | |
2174 | DEFAULT_wxUSE_PERMISSIVE=no | |
2175 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
2176 | DEFAULT_wxUSE_DEBUG_INFO=no | |
2177 | DEFAULT_wxUSE_DEBUG_GDB=no | |
2178 | DEFAULT_wxUSE_MEM_TRACING=no | |
2179 | DEFAULT_wxUSE_DEBUG_CONTEXT=no | |
2180 | DEFAULT_wxUSE_DMALLOC=no | |
2181 | DEFAULT_wxUSE_APPLE_IEEE=yes | |
2182 | ||
2183 | DEFAULT_wxUSE_EXCEPTIONS=yes | |
2184 | DEFAULT_wxUSE_LOG=yes | |
2185 | DEFAULT_wxUSE_LOGWINDOW=yes | |
2186 | DEFAULT_wxUSE_LOGGUI=yes | |
2187 | DEFAULT_wxUSE_LOGDIALOG=yes | |
2188 | ||
2189 | DEFAULT_wxUSE_GUI=yes | |
2190 | ||
2191 | DEFAULT_wxUSE_REGEX=yes | |
2192 | DEFAULT_wxUSE_XML=yes | |
2193 | DEFAULT_wxUSE_EXPAT=yes | |
2194 | DEFAULT_wxUSE_ZLIB=yes | |
2195 | DEFAULT_wxUSE_LIBPNG=yes | |
2196 | DEFAULT_wxUSE_LIBJPEG=yes | |
2197 | DEFAULT_wxUSE_LIBTIFF=yes | |
2198 | DEFAULT_wxUSE_LIBXPM=yes | |
2199 | DEFAULT_wxUSE_LIBMSPACK=yes | |
2200 | DEFAULT_wxUSE_LIBSDL=no | |
2201 | DEFAULT_wxUSE_ODBC=no | |
2202 | DEFAULT_wxUSE_OPENGL=no | |
2203 | ||
2204 | DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes | |
2205 | DEFAULT_wxUSE_SNGLINST_CHECKER=yes | |
2206 | DEFAULT_wxUSE_STD_IOSTREAM=no | |
2207 | DEFAULT_wxUSE_CMDLINE_PARSER=yes | |
2208 | DEFAULT_wxUSE_DATETIME=yes | |
2209 | DEFAULT_wxUSE_TIMER=yes | |
2210 | DEFAULT_wxUSE_STOPWATCH=yes | |
2211 | DEFAULT_wxUSE_FILE=yes | |
2212 | DEFAULT_wxUSE_FFILE=yes | |
2213 | DEFAULT_wxUSE_TEXTBUFFER=yes | |
2214 | DEFAULT_wxUSE_TEXTFILE=yes | |
2215 | DEFAULT_wxUSE_SOUND=yes | |
2216 | DEFAULT_wxUSE_INTL=yes | |
2217 | DEFAULT_wxUSE_CONFIG=yes | |
2218 | DEFAULT_wxUSE_FONTMAP=yes | |
2219 | DEFAULT_wxUSE_STREAMS=yes | |
2220 | DEFAULT_wxUSE_SOCKETS=yes | |
2221 | DEFAULT_wxUSE_OLE=yes | |
2222 | DEFAULT_wxUSE_DATAOBJ=yes | |
2223 | DEFAULT_wxUSE_DIALUP_MANAGER=yes | |
2224 | DEFAULT_wxUSE_JOYSTICK=yes | |
2225 | DEFAULT_wxUSE_DYNLIB_CLASS=yes | |
2226 | DEFAULT_wxUSE_DYNAMIC_LOADER=yes | |
2227 | DEFAULT_wxUSE_LONGLONG=yes | |
2228 | DEFAULT_wxUSE_GEOMETRY=yes | |
2229 | ||
2230 | DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes | |
2231 | DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes | |
2232 | DEFAULT_wxUSE_POSTSCRIPT=yes | |
2233 | ||
2234 | DEFAULT_wxUSE_CLIPBOARD=yes | |
2235 | DEFAULT_wxUSE_TOOLTIPS=yes | |
2236 | DEFAULT_wxUSE_DRAG_AND_DROP=yes | |
2237 | DEFAULT_wxUSE_DRAGIMAGE=yes | |
2238 | DEFAULT_wxUSE_SPLINES=yes | |
2239 | ||
8a7b1113 | 2240 | DEFAULT_wxUSE_MDI=yes |
a848cd7e SC |
2241 | DEFAULT_wxUSE_MDI_ARCHITECTURE=yes |
2242 | DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes | |
2243 | DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes | |
2244 | ||
2245 | DEFAULT_wxUSE_RESOURCES=no | |
2246 | DEFAULT_wxUSE_CONSTRAINTS=yes | |
2247 | DEFAULT_wxUSE_IPC=yes | |
2248 | DEFAULT_wxUSE_HELP=yes | |
2249 | DEFAULT_wxUSE_MS_HTML_HELP=yes | |
2250 | DEFAULT_wxUSE_WXHTML_HELP=yes | |
2251 | DEFAULT_wxUSE_TREELAYOUT=yes | |
2252 | DEFAULT_wxUSE_METAFILE=yes | |
2253 | DEFAULT_wxUSE_MIMETYPE=yes | |
2254 | DEFAULT_wxUSE_SYSTEM_OPTIONS=yes | |
2255 | DEFAULT_wxUSE_PROTOCOL=yes | |
2256 | DEFAULT_wxUSE_PROTOCOL_HTTP=yes | |
2257 | DEFAULT_wxUSE_PROTOCOL_FTP=yes | |
2258 | DEFAULT_wxUSE_PROTOCOL_FILE=yes | |
2259 | DEFAULT_wxUSE_URL=yes | |
2260 | ||
2261 | DEFAULT_wxUSE_COMMONDLGS=yes | |
2262 | DEFAULT_wxUSE_CHOICEDLG=yes | |
2263 | DEFAULT_wxUSE_COLOURDLG=yes | |
2264 | DEFAULT_wxUSE_DIRDLG=yes | |
2265 | DEFAULT_wxUSE_FILEDLG=yes | |
2266 | DEFAULT_wxUSE_FINDREPLDLG=yes | |
2267 | DEFAULT_wxUSE_FONTDLG=yes | |
2268 | DEFAULT_wxUSE_MSGDLG=yes | |
2269 | DEFAULT_wxUSE_NUMBERDLG=yes | |
2270 | DEFAULT_wxUSE_TEXTDLG=yes | |
2271 | DEFAULT_wxUSE_SPLASH=yes | |
2272 | DEFAULT_wxUSE_STARTUP_TIPS=yes | |
2273 | DEFAULT_wxUSE_PROGRESSDLG=yes | |
2274 | DEFAULT_wxUSE_WIZARDDLG=yes | |
2275 | ||
2276 | DEFAULT_wxUSE_MENUS=yes | |
2277 | DEFAULT_wxUSE_MINIFRAME=yes | |
2278 | DEFAULT_wxUSE_HTML=yes | |
2279 | DEFAULT_wxUSE_FILESYSTEM=yes | |
2280 | DEFAULT_wxUSE_FS_INET=yes | |
2281 | DEFAULT_wxUSE_FS_ZIP=yes | |
2282 | DEFAULT_wxUSE_BUSYINFO=yes | |
2283 | DEFAULT_wxUSE_ZIPSTREAM=yes | |
a848cd7e SC |
2284 | DEFAULT_wxUSE_VALIDATORS=yes |
2285 | ||
2286 | DEFAULT_wxUSE_ACCEL=yes | |
2287 | DEFAULT_wxUSE_BUTTON=yes | |
2288 | DEFAULT_wxUSE_BMPBUTTON=yes | |
2289 | DEFAULT_wxUSE_CALCTRL=yes | |
2290 | DEFAULT_wxUSE_CARET=yes | |
2291 | DEFAULT_wxUSE_CHECKBOX=yes | |
2292 | DEFAULT_wxUSE_CHECKLST=yes | |
2293 | DEFAULT_wxUSE_CHOICE=yes | |
2294 | DEFAULT_wxUSE_COMBOBOX=yes | |
2295 | DEFAULT_wxUSE_DISPLAY=yes | |
2296 | DEFAULT_wxUSE_GAUGE=yes | |
2297 | DEFAULT_wxUSE_GRID=yes | |
2298 | DEFAULT_wxUSE_IMAGLIST=yes | |
2299 | DEFAULT_wxUSE_LISTBOOK=yes | |
2300 | DEFAULT_wxUSE_LISTBOX=yes | |
2301 | DEFAULT_wxUSE_LISTCTRL=yes | |
2302 | DEFAULT_wxUSE_NOTEBOOK=yes | |
2303 | DEFAULT_wxUSE_RADIOBOX=yes | |
2304 | DEFAULT_wxUSE_RADIOBTN=yes | |
2305 | DEFAULT_wxUSE_SASH=yes | |
2306 | DEFAULT_wxUSE_SCROLLBAR=yes | |
2307 | DEFAULT_wxUSE_SLIDER=yes | |
2308 | DEFAULT_wxUSE_SPINBTN=yes | |
2309 | DEFAULT_wxUSE_SPINCTRL=yes | |
2310 | DEFAULT_wxUSE_SPLITTER=yes | |
2311 | DEFAULT_wxUSE_STATBMP=yes | |
2312 | DEFAULT_wxUSE_STATBOX=yes | |
2313 | DEFAULT_wxUSE_STATLINE=yes | |
2314 | DEFAULT_wxUSE_STATTEXT=yes | |
2315 | DEFAULT_wxUSE_STATUSBAR=yes | |
2316 | DEFAULT_wxUSE_TABDIALOG=no | |
2317 | DEFAULT_wxUSE_TEXTCTRL=yes | |
2318 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
2319 | DEFAULT_wxUSE_TOOLBAR=yes | |
2320 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
2321 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
2322 | DEFAULT_wxUSE_TREECTRL=yes | |
2323 | DEFAULT_wxUSE_POPUPWIN=yes | |
2324 | DEFAULT_wxUSE_TIPWINDOW=yes | |
2325 | ||
2326 | DEFAULT_wxUSE_UNICODE=no | |
2327 | DEFAULT_wxUSE_UNICODE_MSLU=yes | |
2328 | DEFAULT_wxUSE_WCSRTOMBS=no | |
2329 | ||
2330 | DEFAULT_wxUSE_PALETTE=yes | |
2331 | DEFAULT_wxUSE_IMAGE=yes | |
2332 | DEFAULT_wxUSE_GIF=yes | |
2333 | DEFAULT_wxUSE_PCX=yes | |
2334 | DEFAULT_wxUSE_IFF=no | |
2335 | DEFAULT_wxUSE_PNM=yes | |
2336 | DEFAULT_wxUSE_XPM=yes | |
2337 | DEFAULT_wxUSE_ICO_CUR=yes | |
2338 | DEFAULT_wxUSE_ACCESSIBILITY=no | |
2339 | ||
2340 | DEFAULT_wxUSE_MONOLITHIC=no | |
2341 | DEFAULT_wxUSE_PLUGINS=no | |
2342 | DEFAULT_wxUSE_OFFICIAL_BUILD=no | |
2343 | fi | |
2344 | ||
2345 | ||
2346 | ||
2347 | for toolkit in `echo $ALL_TOOLKITS`; do | |
2348 | LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}` | |
2349 | if test "x$LINE" != "x" ; then | |
2350 | has_toolkit_in_cache=1 | |
2351 | eval "DEFAULT_$LINE" | |
2352 | eval "CACHE_$toolkit=1" | |
2353 | fi | |
2354 | done | |
2355 | ||
2356 | ||
2357 | ||
2358 | enablestring= | |
2359 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5 | |
2360 | echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6 | |
2361 | no_cache=0 | |
2362 | # Check whether --enable-gui or --disable-gui was given. | |
2363 | if test "${enable_gui+set}" = set; then | |
2364 | enableval="$enable_gui" | |
2365 | ||
2366 | if test "$enableval" = yes; then | |
2367 | ac_cv_use_gui='wxUSE_GUI=yes' | |
2368 | else | |
2369 | ac_cv_use_gui='wxUSE_GUI=no' | |
2370 | fi | |
2371 | ||
2372 | else | |
2373 | ||
2374 | LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}` | |
2375 | if test "x$LINE" != x ; then | |
2376 | eval "DEFAULT_$LINE" | |
2377 | else | |
2378 | no_cache=1 | |
2379 | fi | |
2380 | ||
2381 | ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI | |
2382 | ||
2383 | fi; | |
2384 | ||
2385 | eval "$ac_cv_use_gui" | |
2386 | if test "$no_cache" != 1; then | |
2387 | echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp | |
2388 | fi | |
2389 | ||
2390 | if test "$wxUSE_GUI" = yes; then | |
2391 | echo "$as_me:$LINENO: result: yes" >&5 | |
2392 | echo "${ECHO_T}yes" >&6 | |
2393 | else | |
2394 | echo "$as_me:$LINENO: result: no" >&5 | |
2395 | echo "${ECHO_T}no" >&6 | |
2396 | fi | |
2397 | ||
2398 | ||
2399 | enablestring= | |
2400 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5 | |
2401 | echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6 | |
2402 | no_cache=0 | |
2403 | # Check whether --enable-monolithic or --disable-monolithic was given. | |
2404 | if test "${enable_monolithic+set}" = set; then | |
2405 | enableval="$enable_monolithic" | |
2406 | ||
2407 | if test "$enableval" = yes; then | |
2408 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=yes' | |
2409 | else | |
2410 | ac_cv_use_monolithic='wxUSE_MONOLITHIC=no' | |
2411 | fi | |
2412 | ||
2413 | else | |
2414 | ||
2415 | LINE=`grep "wxUSE_MONOLITHIC" ${wx_arg_cache_file}` | |
2416 | if test "x$LINE" != x ; then | |
2417 | eval "DEFAULT_$LINE" | |
2418 | else | |
2419 | no_cache=1 | |
2420 | fi | |
2421 | ||
2422 | ac_cv_use_monolithic='wxUSE_MONOLITHIC='$DEFAULT_wxUSE_MONOLITHIC | |
2423 | ||
2424 | fi; | |
2425 | ||
2426 | eval "$ac_cv_use_monolithic" | |
2427 | if test "$no_cache" != 1; then | |
2428 | echo $ac_cv_use_monolithic >> ${wx_arg_cache_file}.tmp | |
2429 | fi | |
2430 | ||
2431 | if test "$wxUSE_MONOLITHIC" = yes; then | |
2432 | echo "$as_me:$LINENO: result: yes" >&5 | |
2433 | echo "${ECHO_T}yes" >&6 | |
2434 | else | |
2435 | echo "$as_me:$LINENO: result: no" >&5 | |
2436 | echo "${ECHO_T}no" >&6 | |
2437 | fi | |
2438 | ||
2439 | ||
2440 | enablestring= | |
2441 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5 | |
2442 | echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6 | |
2443 | no_cache=0 | |
2444 | # Check whether --enable-plugins or --disable-plugins was given. | |
2445 | if test "${enable_plugins+set}" = set; then | |
2446 | enableval="$enable_plugins" | |
2447 | ||
2448 | if test "$enableval" = yes; then | |
2449 | ac_cv_use_plugins='wxUSE_PLUGINS=yes' | |
2450 | else | |
2451 | ac_cv_use_plugins='wxUSE_PLUGINS=no' | |
2452 | fi | |
2453 | ||
2454 | else | |
2455 | ||
2456 | LINE=`grep "wxUSE_PLUGINS" ${wx_arg_cache_file}` | |
2457 | if test "x$LINE" != x ; then | |
2458 | eval "DEFAULT_$LINE" | |
2459 | else | |
2460 | no_cache=1 | |
2461 | fi | |
2462 | ||
2463 | ac_cv_use_plugins='wxUSE_PLUGINS='$DEFAULT_wxUSE_PLUGINS | |
2464 | ||
2465 | fi; | |
2466 | ||
2467 | eval "$ac_cv_use_plugins" | |
2468 | if test "$no_cache" != 1; then | |
2469 | echo $ac_cv_use_plugins >> ${wx_arg_cache_file}.tmp | |
2470 | fi | |
2471 | ||
2472 | if test "$wxUSE_PLUGINS" = yes; then | |
2473 | echo "$as_me:$LINENO: result: yes" >&5 | |
2474 | echo "${ECHO_T}yes" >&6 | |
2475 | else | |
2476 | echo "$as_me:$LINENO: result: no" >&5 | |
2477 | echo "${ECHO_T}no" >&6 | |
2478 | fi | |
2479 | ||
2480 | ||
2481 | if test "$wxUSE_GUI" = "yes"; then | |
2482 | ||
2483 | ||
2484 | enablestring= | |
2485 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5 | |
2486 | echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6 | |
2487 | no_cache=0 | |
2488 | # Check whether --enable-universal or --disable-universal was given. | |
2489 | if test "${enable_universal+set}" = set; then | |
2490 | enableval="$enable_universal" | |
2491 | ||
2492 | if test "$enableval" = yes; then | |
2493 | ac_cv_use_universal='wxUSE_UNIVERSAL=yes' | |
2494 | else | |
2495 | ac_cv_use_universal='wxUSE_UNIVERSAL=no' | |
2496 | fi | |
2497 | ||
2498 | else | |
2499 | ||
2500 | LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}` | |
2501 | if test "x$LINE" != x ; then | |
2502 | eval "DEFAULT_$LINE" | |
2503 | else | |
2504 | no_cache=1 | |
2505 | fi | |
2506 | ||
2507 | ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL | |
2508 | ||
2509 | fi; | |
2510 | ||
2511 | eval "$ac_cv_use_universal" | |
2512 | if test "$no_cache" != 1; then | |
2513 | echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp | |
2514 | fi | |
2515 | ||
2516 | if test "$wxUSE_UNIVERSAL" = yes; then | |
2517 | echo "$as_me:$LINENO: result: yes" >&5 | |
2518 | echo "${ECHO_T}yes" >&6 | |
2519 | else | |
2520 | echo "$as_me:$LINENO: result: no" >&5 | |
2521 | echo "${ECHO_T}no" >&6 | |
2522 | fi | |
2523 | ||
2524 | ||
2525 | # Check whether --with-gtk or --without-gtk was given. | |
2526 | if test "${with_gtk+set}" = set; then | |
2527 | withval="$with_gtk" | |
2528 | wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1 | |
2529 | fi; | |
2530 | ||
2531 | # Check whether --with-motif or --without-motif was given. | |
2532 | if test "${with_motif+set}" = set; then | |
2533 | withval="$with_motif" | |
2534 | wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1 | |
2535 | fi; | |
2536 | ||
2537 | # Check whether --with-mac or --without-mac was given. | |
2538 | if test "${with_mac+set}" = set; then | |
2539 | withval="$with_mac" | |
2540 | wxUSE_MAC="$withval" TOOLKIT_GIVEN=1 | |
2541 | fi; | |
2542 | ||
2543 | # Check whether --with-cocoa or --without-cocoa was given. | |
2544 | if test "${with_cocoa+set}" = set; then | |
2545 | withval="$with_cocoa" | |
2546 | wxUSE_COCOA="$withval" TOOLKIT_GIVEN=1 | |
2547 | fi; | |
2548 | ||
2549 | # Check whether --with-wine or --without-wine was given. | |
2550 | if test "${with_wine+set}" = set; then | |
2551 | withval="$with_wine" | |
2552 | wxUSE_WINE="$withval" CACHE_WINE=1 | |
2553 | fi; | |
2554 | ||
2555 | # Check whether --with-msw or --without-msw was given. | |
2556 | if test "${with_msw+set}" = set; then | |
2557 | withval="$with_msw" | |
2558 | wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1 | |
2559 | fi; | |
2560 | ||
2561 | # Check whether --with-pm or --without-pm was given. | |
2562 | if test "${with_pm+set}" = set; then | |
2563 | withval="$with_pm" | |
2564 | wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1 | |
2565 | fi; | |
2566 | ||
2567 | # Check whether --with-mgl or --without-mgl was given. | |
2568 | if test "${with_mgl+set}" = set; then | |
2569 | withval="$with_mgl" | |
2570 | wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1 | |
2571 | fi; | |
2572 | ||
2573 | # Check whether --with-microwin or --without-microwin was given. | |
2574 | if test "${with_microwin+set}" = set; then | |
2575 | withval="$with_microwin" | |
2576 | wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1 | |
2577 | fi; | |
2578 | ||
2579 | # Check whether --with-x11 or --without-x11 was given. | |
2580 | if test "${with_x11+set}" = set; then | |
2581 | withval="$with_x11" | |
2582 | wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1 | |
2583 | fi; | |
2584 | ||
2585 | enablestring= | |
2586 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5 | |
2587 | echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6 | |
2588 | no_cache=0 | |
2589 | # Check whether --enable-nanox or --disable-nanox was given. | |
2590 | if test "${enable_nanox+set}" = set; then | |
2591 | enableval="$enable_nanox" | |
2592 | ||
2593 | if test "$enableval" = yes; then | |
2594 | ac_cv_use_nanox='wxUSE_NANOX=yes' | |
2595 | else | |
2596 | ac_cv_use_nanox='wxUSE_NANOX=no' | |
2597 | fi | |
2598 | ||
2599 | else | |
2600 | ||
2601 | LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}` | |
2602 | if test "x$LINE" != x ; then | |
2603 | eval "DEFAULT_$LINE" | |
2604 | else | |
2605 | no_cache=1 | |
2606 | fi | |
2607 | ||
2608 | ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX | |
2609 | ||
2610 | fi; | |
2611 | ||
2612 | eval "$ac_cv_use_nanox" | |
2613 | if test "$no_cache" != 1; then | |
2614 | echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp | |
2615 | fi | |
2616 | ||
2617 | if test "$wxUSE_NANOX" = yes; then | |
2618 | echo "$as_me:$LINENO: result: yes" >&5 | |
2619 | echo "${ECHO_T}yes" >&6 | |
2620 | else | |
2621 | echo "$as_me:$LINENO: result: no" >&5 | |
2622 | echo "${ECHO_T}no" >&6 | |
2623 | fi | |
2624 | ||
2625 | ||
2626 | ||
2627 | enablestring= | |
2628 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gtk2" >&5 | |
2629 | echo $ECHO_N "checking for --${enablestring:-enable}-gtk2... $ECHO_C" >&6 | |
2630 | no_cache=0 | |
2631 | # Check whether --enable-gtk2 or --disable-gtk2 was given. | |
2632 | if test "${enable_gtk2+set}" = set; then | |
2633 | enableval="$enable_gtk2" | |
2634 | ||
2635 | if test "$enableval" = yes; then | |
2636 | ac_cv_use_gtk2='wxUSE_GTK2=yes' | |
2637 | else | |
2638 | ac_cv_use_gtk2='wxUSE_GTK2=no' | |
2639 | fi | |
2640 | ||
2641 | else | |
2642 | ||
2643 | LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}` | |
2644 | if test "x$LINE" != x ; then | |
2645 | eval "DEFAULT_$LINE" | |
2646 | else | |
2647 | no_cache=1 | |
2648 | fi | |
2649 | ||
2650 | ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2 | |
2651 | ||
2652 | fi; | |
2653 | ||
2654 | eval "$ac_cv_use_gtk2" | |
2655 | if test "$no_cache" != 1; then | |
2656 | echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp | |
2657 | fi | |
2658 | ||
2659 | if test "$wxUSE_GTK2" = yes; then | |
2660 | echo "$as_me:$LINENO: result: yes" >&5 | |
2661 | echo "${ECHO_T}yes" >&6 | |
2662 | else | |
2663 | echo "$as_me:$LINENO: result: no" >&5 | |
2664 | echo "${ECHO_T}no" >&6 | |
2665 | fi | |
2666 | ||
2667 | ||
2668 | enablestring= | |
2669 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5 | |
2670 | echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6 | |
2671 | no_cache=0 | |
2672 | # Check whether --enable-gpe or --disable-gpe was given. | |
2673 | if test "${enable_gpe+set}" = set; then | |
2674 | enableval="$enable_gpe" | |
2675 | ||
2676 | if test "$enableval" = yes; then | |
2677 | ac_cv_use_gpe='wxUSE_GPE=yes' | |
2678 | else | |
2679 | ac_cv_use_gpe='wxUSE_GPE=no' | |
2680 | fi | |
2681 | ||
2682 | else | |
2683 | ||
2684 | LINE=`grep "wxUSE_GPE" ${wx_arg_cache_file}` | |
2685 | if test "x$LINE" != x ; then | |
2686 | eval "DEFAULT_$LINE" | |
2687 | else | |
2688 | no_cache=1 | |
2689 | fi | |
2690 | ||
2691 | ac_cv_use_gpe='wxUSE_GPE='$DEFAULT_wxUSE_GPE | |
2692 | ||
2693 | fi; | |
2694 | ||
2695 | eval "$ac_cv_use_gpe" | |
2696 | if test "$no_cache" != 1; then | |
2697 | echo $ac_cv_use_gpe >> ${wx_arg_cache_file}.tmp | |
2698 | fi | |
2699 | ||
2700 | if test "$wxUSE_GPE" = yes; then | |
2701 | echo "$as_me:$LINENO: result: yes" >&5 | |
2702 | echo "${ECHO_T}yes" >&6 | |
2703 | else | |
2704 | echo "$as_me:$LINENO: result: no" >&5 | |
2705 | echo "${ECHO_T}no" >&6 | |
2706 | fi | |
2707 | ||
2708 | ||
2709 | ||
2710 | echo "$as_me:$LINENO: checking for --with-libpng" >&5 | |
2711 | echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6 | |
2712 | no_cache=0 | |
2713 | ||
2714 | # Check whether --with-libpng or --without-libpng was given. | |
2715 | if test "${with_libpng+set}" = set; then | |
2716 | withval="$with_libpng" | |
2717 | ||
2718 | if test "$withval" = yes; then | |
2719 | ac_cv_use_libpng='wxUSE_LIBPNG=yes' | |
2720 | elif test "$withval" = no; then | |
2721 | ac_cv_use_libpng='wxUSE_LIBPNG=no' | |
2722 | elif test "$withval" = sys; then | |
2723 | ac_cv_use_libpng='wxUSE_LIBPNG=sys' | |
2724 | elif test "$withval" = builtin; then | |
2725 | ac_cv_use_libpng='wxUSE_LIBPNG=builtin' | |
2726 | else | |
2727 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2728 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2729 | { (exit 1); exit 1; }; } | |
2730 | fi | |
2731 | ||
2732 | else | |
2733 | ||
2734 | LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}` | |
2735 | if test "x$LINE" != x ; then | |
2736 | eval "DEFAULT_$LINE" | |
2737 | else | |
2738 | no_cache=1 | |
2739 | fi | |
2740 | ||
2741 | ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG | |
2742 | ||
2743 | fi; | |
2744 | ||
2745 | eval "$ac_cv_use_libpng" | |
2746 | if test "$no_cache" != 1; then | |
2747 | echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp | |
2748 | fi | |
2749 | ||
2750 | if test "$wxUSE_LIBPNG" = yes; then | |
2751 | echo "$as_me:$LINENO: result: yes" >&5 | |
2752 | echo "${ECHO_T}yes" >&6 | |
2753 | elif test "$wxUSE_LIBPNG" = no; then | |
2754 | echo "$as_me:$LINENO: result: no" >&5 | |
2755 | echo "${ECHO_T}no" >&6 | |
2756 | elif test "$wxUSE_LIBPNG" = sys; then | |
2757 | echo "$as_me:$LINENO: result: system version" >&5 | |
2758 | echo "${ECHO_T}system version" >&6 | |
2759 | elif test "$wxUSE_LIBPNG" = builtin; then | |
2760 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2761 | echo "${ECHO_T}builtin version" >&6 | |
2762 | else | |
2763 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5 | |
2764 | echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;} | |
2765 | { (exit 1); exit 1; }; } | |
2766 | fi | |
2767 | ||
2768 | ||
2769 | echo "$as_me:$LINENO: checking for --with-libjpeg" >&5 | |
2770 | echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6 | |
2771 | no_cache=0 | |
2772 | ||
2773 | # Check whether --with-libjpeg or --without-libjpeg was given. | |
2774 | if test "${with_libjpeg+set}" = set; then | |
2775 | withval="$with_libjpeg" | |
2776 | ||
2777 | if test "$withval" = yes; then | |
2778 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes' | |
2779 | elif test "$withval" = no; then | |
2780 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=no' | |
2781 | elif test "$withval" = sys; then | |
2782 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys' | |
2783 | elif test "$withval" = builtin; then | |
2784 | ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin' | |
2785 | else | |
2786 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2787 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2788 | { (exit 1); exit 1; }; } | |
2789 | fi | |
2790 | ||
2791 | else | |
2792 | ||
2793 | LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}` | |
2794 | if test "x$LINE" != x ; then | |
2795 | eval "DEFAULT_$LINE" | |
2796 | else | |
2797 | no_cache=1 | |
2798 | fi | |
2799 | ||
2800 | ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG | |
2801 | ||
2802 | fi; | |
2803 | ||
2804 | eval "$ac_cv_use_libjpeg" | |
2805 | if test "$no_cache" != 1; then | |
2806 | echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp | |
2807 | fi | |
2808 | ||
2809 | if test "$wxUSE_LIBJPEG" = yes; then | |
2810 | echo "$as_me:$LINENO: result: yes" >&5 | |
2811 | echo "${ECHO_T}yes" >&6 | |
2812 | elif test "$wxUSE_LIBJPEG" = no; then | |
2813 | echo "$as_me:$LINENO: result: no" >&5 | |
2814 | echo "${ECHO_T}no" >&6 | |
2815 | elif test "$wxUSE_LIBJPEG" = sys; then | |
2816 | echo "$as_me:$LINENO: result: system version" >&5 | |
2817 | echo "${ECHO_T}system version" >&6 | |
2818 | elif test "$wxUSE_LIBJPEG" = builtin; then | |
2819 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2820 | echo "${ECHO_T}builtin version" >&6 | |
2821 | else | |
2822 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5 | |
2823 | echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;} | |
2824 | { (exit 1); exit 1; }; } | |
2825 | fi | |
2826 | ||
2827 | ||
2828 | echo "$as_me:$LINENO: checking for --with-libtiff" >&5 | |
2829 | echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6 | |
2830 | no_cache=0 | |
2831 | ||
2832 | # Check whether --with-libtiff or --without-libtiff was given. | |
2833 | if test "${with_libtiff+set}" = set; then | |
2834 | withval="$with_libtiff" | |
2835 | ||
2836 | if test "$withval" = yes; then | |
2837 | ac_cv_use_libtiff='wxUSE_LIBTIFF=yes' | |
2838 | elif test "$withval" = no; then | |
2839 | ac_cv_use_libtiff='wxUSE_LIBTIFF=no' | |
2840 | elif test "$withval" = sys; then | |
2841 | ac_cv_use_libtiff='wxUSE_LIBTIFF=sys' | |
2842 | elif test "$withval" = builtin; then | |
2843 | ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin' | |
2844 | else | |
2845 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2846 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2847 | { (exit 1); exit 1; }; } | |
2848 | fi | |
2849 | ||
2850 | else | |
2851 | ||
2852 | LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}` | |
2853 | if test "x$LINE" != x ; then | |
2854 | eval "DEFAULT_$LINE" | |
2855 | else | |
2856 | no_cache=1 | |
2857 | fi | |
2858 | ||
2859 | ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF | |
2860 | ||
2861 | fi; | |
2862 | ||
2863 | eval "$ac_cv_use_libtiff" | |
2864 | if test "$no_cache" != 1; then | |
2865 | echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp | |
2866 | fi | |
2867 | ||
2868 | if test "$wxUSE_LIBTIFF" = yes; then | |
2869 | echo "$as_me:$LINENO: result: yes" >&5 | |
2870 | echo "${ECHO_T}yes" >&6 | |
2871 | elif test "$wxUSE_LIBTIFF" = no; then | |
2872 | echo "$as_me:$LINENO: result: no" >&5 | |
2873 | echo "${ECHO_T}no" >&6 | |
2874 | elif test "$wxUSE_LIBTIFF" = sys; then | |
2875 | echo "$as_me:$LINENO: result: system version" >&5 | |
2876 | echo "${ECHO_T}system version" >&6 | |
2877 | elif test "$wxUSE_LIBTIFF" = builtin; then | |
2878 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2879 | echo "${ECHO_T}builtin version" >&6 | |
2880 | else | |
2881 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5 | |
2882 | echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;} | |
2883 | { (exit 1); exit 1; }; } | |
2884 | fi | |
2885 | ||
2886 | ||
2887 | echo "$as_me:$LINENO: checking for --with-libxpm" >&5 | |
2888 | echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6 | |
2889 | no_cache=0 | |
2890 | ||
2891 | # Check whether --with-libxpm or --without-libxpm was given. | |
2892 | if test "${with_libxpm+set}" = set; then | |
2893 | withval="$with_libxpm" | |
2894 | ||
2895 | if test "$withval" = yes; then | |
2896 | ac_cv_use_libxpm='wxUSE_LIBXPM=yes' | |
2897 | elif test "$withval" = no; then | |
2898 | ac_cv_use_libxpm='wxUSE_LIBXPM=no' | |
2899 | elif test "$withval" = sys; then | |
2900 | ac_cv_use_libxpm='wxUSE_LIBXPM=sys' | |
2901 | elif test "$withval" = builtin; then | |
2902 | ac_cv_use_libxpm='wxUSE_LIBXPM=builtin' | |
2903 | else | |
2904 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2905 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2906 | { (exit 1); exit 1; }; } | |
2907 | fi | |
2908 | ||
2909 | else | |
2910 | ||
2911 | LINE=`grep "wxUSE_LIBXPM" ${wx_arg_cache_file}` | |
2912 | if test "x$LINE" != x ; then | |
2913 | eval "DEFAULT_$LINE" | |
2914 | else | |
2915 | no_cache=1 | |
2916 | fi | |
2917 | ||
2918 | ac_cv_use_libxpm='wxUSE_LIBXPM='$DEFAULT_wxUSE_LIBXPM | |
2919 | ||
2920 | fi; | |
2921 | ||
2922 | eval "$ac_cv_use_libxpm" | |
2923 | if test "$no_cache" != 1; then | |
2924 | echo $ac_cv_use_libxpm >> ${wx_arg_cache_file}.tmp | |
2925 | fi | |
2926 | ||
2927 | if test "$wxUSE_LIBXPM" = yes; then | |
2928 | echo "$as_me:$LINENO: result: yes" >&5 | |
2929 | echo "${ECHO_T}yes" >&6 | |
2930 | elif test "$wxUSE_LIBXPM" = no; then | |
2931 | echo "$as_me:$LINENO: result: no" >&5 | |
2932 | echo "${ECHO_T}no" >&6 | |
2933 | elif test "$wxUSE_LIBXPM" = sys; then | |
2934 | echo "$as_me:$LINENO: result: system version" >&5 | |
2935 | echo "${ECHO_T}system version" >&6 | |
2936 | elif test "$wxUSE_LIBXPM" = builtin; then | |
2937 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
2938 | echo "${ECHO_T}builtin version" >&6 | |
2939 | else | |
2940 | { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5 | |
2941 | echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;} | |
2942 | { (exit 1); exit 1; }; } | |
2943 | fi | |
2944 | ||
2945 | ||
2946 | echo "$as_me:$LINENO: checking for --with-libmspack" >&5 | |
2947 | echo $ECHO_N "checking for --with-libmspack... $ECHO_C" >&6 | |
2948 | no_cache=0 | |
2949 | ||
2950 | # Check whether --with-libmspack or --without-libmspack was given. | |
2951 | if test "${with_libmspack+set}" = set; then | |
2952 | withval="$with_libmspack" | |
2953 | ||
2954 | if test "$withval" = yes; then | |
2955 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=yes' | |
2956 | else | |
2957 | ac_cv_use_libmspack='wxUSE_LIBMSPACK=no' | |
2958 | fi | |
2959 | ||
2960 | else | |
2961 | ||
2962 | LINE=`grep "wxUSE_LIBMSPACK" ${wx_arg_cache_file}` | |
2963 | if test "x$LINE" != x ; then | |
2964 | eval "DEFAULT_$LINE" | |
2965 | else | |
2966 | no_cache=1 | |
2967 | fi | |
2968 | ||
2969 | ac_cv_use_libmspack='wxUSE_LIBMSPACK='$DEFAULT_wxUSE_LIBMSPACK | |
2970 | ||
2971 | fi; | |
2972 | ||
2973 | eval "$ac_cv_use_libmspack" | |
2974 | if test "$no_cache" != 1; then | |
2975 | echo $ac_cv_use_libmspack >> ${wx_arg_cache_file}.tmp | |
2976 | fi | |
2977 | ||
2978 | if test "$wxUSE_LIBMSPACK" = yes; then | |
2979 | echo "$as_me:$LINENO: result: yes" >&5 | |
2980 | echo "${ECHO_T}yes" >&6 | |
2981 | else | |
2982 | echo "$as_me:$LINENO: result: no" >&5 | |
2983 | echo "${ECHO_T}no" >&6 | |
2984 | fi | |
2985 | ||
2986 | ||
2987 | echo "$as_me:$LINENO: checking for --with-sdl" >&5 | |
2988 | echo $ECHO_N "checking for --with-sdl... $ECHO_C" >&6 | |
2989 | no_cache=0 | |
2990 | ||
2991 | # Check whether --with-sdl or --without-sdl was given. | |
2992 | if test "${with_sdl+set}" = set; then | |
2993 | withval="$with_sdl" | |
2994 | ||
2995 | if test "$withval" = yes; then | |
2996 | ac_cv_use_sdl='wxUSE_LIBSDL=yes' | |
2997 | else | |
2998 | ac_cv_use_sdl='wxUSE_LIBSDL=no' | |
2999 | fi | |
3000 | ||
3001 | else | |
3002 | ||
3003 | LINE=`grep "wxUSE_LIBSDL" ${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_sdl='wxUSE_LIBSDL='$DEFAULT_wxUSE_LIBSDL | |
3011 | ||
3012 | fi; | |
3013 | ||
3014 | eval "$ac_cv_use_sdl" | |
3015 | if test "$no_cache" != 1; then | |
3016 | echo $ac_cv_use_sdl >> ${wx_arg_cache_file}.tmp | |
3017 | fi | |
3018 | ||
3019 | if test "$wxUSE_LIBSDL" = yes; then | |
3020 | echo "$as_me:$LINENO: result: yes" >&5 | |
3021 | echo "${ECHO_T}yes" >&6 | |
3022 | else | |
3023 | echo "$as_me:$LINENO: result: no" >&5 | |
3024 | echo "${ECHO_T}no" >&6 | |
3025 | fi | |
3026 | ||
3027 | ||
3028 | echo "$as_me:$LINENO: checking for --with-opengl" >&5 | |
3029 | echo $ECHO_N "checking for --with-opengl... $ECHO_C" >&6 | |
3030 | no_cache=0 | |
3031 | ||
3032 | # Check whether --with-opengl or --without-opengl was given. | |
3033 | if test "${with_opengl+set}" = set; then | |
3034 | withval="$with_opengl" | |
3035 | ||
3036 | if test "$withval" = yes; then | |
3037 | ac_cv_use_opengl='wxUSE_OPENGL=yes' | |
3038 | else | |
3039 | ac_cv_use_opengl='wxUSE_OPENGL=no' | |
3040 | fi | |
3041 | ||
3042 | else | |
3043 | ||
3044 | LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}` | |
3045 | if test "x$LINE" != x ; then | |
3046 | eval "DEFAULT_$LINE" | |
3047 | else | |
3048 | no_cache=1 | |
3049 | fi | |
3050 | ||
3051 | ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL | |
3052 | ||
3053 | fi; | |
3054 | ||
3055 | eval "$ac_cv_use_opengl" | |
3056 | if test "$no_cache" != 1; then | |
3057 | echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp | |
3058 | fi | |
3059 | ||
3060 | if test "$wxUSE_OPENGL" = yes; then | |
3061 | echo "$as_me:$LINENO: result: yes" >&5 | |
3062 | echo "${ECHO_T}yes" >&6 | |
3063 | else | |
3064 | echo "$as_me:$LINENO: result: no" >&5 | |
3065 | echo "${ECHO_T}no" >&6 | |
3066 | fi | |
3067 | ||
3068 | ||
3069 | fi | |
3070 | ||
3071 | ||
3072 | echo "$as_me:$LINENO: checking for --with-dmalloc" >&5 | |
3073 | echo $ECHO_N "checking for --with-dmalloc... $ECHO_C" >&6 | |
3074 | no_cache=0 | |
3075 | ||
3076 | # Check whether --with-dmalloc or --without-dmalloc was given. | |
3077 | if test "${with_dmalloc+set}" = set; then | |
3078 | withval="$with_dmalloc" | |
3079 | ||
3080 | if test "$withval" = yes; then | |
3081 | ac_cv_use_dmalloc='wxUSE_DMALLOC=yes' | |
3082 | else | |
3083 | ac_cv_use_dmalloc='wxUSE_DMALLOC=no' | |
3084 | fi | |
3085 | ||
3086 | else | |
3087 | ||
3088 | LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}` | |
3089 | if test "x$LINE" != x ; then | |
3090 | eval "DEFAULT_$LINE" | |
3091 | else | |
3092 | no_cache=1 | |
3093 | fi | |
3094 | ||
3095 | ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC | |
3096 | ||
3097 | fi; | |
3098 | ||
3099 | eval "$ac_cv_use_dmalloc" | |
3100 | if test "$no_cache" != 1; then | |
3101 | echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp | |
3102 | fi | |
3103 | ||
3104 | if test "$wxUSE_DMALLOC" = yes; then | |
3105 | echo "$as_me:$LINENO: result: yes" >&5 | |
3106 | echo "${ECHO_T}yes" >&6 | |
3107 | else | |
3108 | echo "$as_me:$LINENO: result: no" >&5 | |
3109 | echo "${ECHO_T}no" >&6 | |
3110 | fi | |
3111 | ||
3112 | ||
3113 | echo "$as_me:$LINENO: checking for --with-regex" >&5 | |
3114 | echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6 | |
3115 | no_cache=0 | |
3116 | ||
3117 | # Check whether --with-regex or --without-regex was given. | |
3118 | if test "${with_regex+set}" = set; then | |
3119 | withval="$with_regex" | |
3120 | ||
3121 | if test "$withval" = yes; then | |
3122 | ac_cv_use_regex='wxUSE_REGEX=yes' | |
3123 | elif test "$withval" = no; then | |
3124 | ac_cv_use_regex='wxUSE_REGEX=no' | |
3125 | elif test "$withval" = sys; then | |
3126 | ac_cv_use_regex='wxUSE_REGEX=sys' | |
3127 | elif test "$withval" = builtin; then | |
3128 | ac_cv_use_regex='wxUSE_REGEX=builtin' | |
3129 | else | |
3130 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3131 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3132 | { (exit 1); exit 1; }; } | |
3133 | fi | |
3134 | ||
3135 | else | |
3136 | ||
3137 | LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}` | |
3138 | if test "x$LINE" != x ; then | |
3139 | eval "DEFAULT_$LINE" | |
3140 | else | |
3141 | no_cache=1 | |
3142 | fi | |
3143 | ||
3144 | ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX | |
3145 | ||
3146 | fi; | |
3147 | ||
3148 | eval "$ac_cv_use_regex" | |
3149 | if test "$no_cache" != 1; then | |
3150 | echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp | |
3151 | fi | |
3152 | ||
3153 | if test "$wxUSE_REGEX" = yes; then | |
3154 | echo "$as_me:$LINENO: result: yes" >&5 | |
3155 | echo "${ECHO_T}yes" >&6 | |
3156 | elif test "$wxUSE_REGEX" = no; then | |
3157 | echo "$as_me:$LINENO: result: no" >&5 | |
3158 | echo "${ECHO_T}no" >&6 | |
3159 | elif test "$wxUSE_REGEX" = sys; then | |
3160 | echo "$as_me:$LINENO: result: system version" >&5 | |
3161 | echo "${ECHO_T}system version" >&6 | |
3162 | elif test "$wxUSE_REGEX" = builtin; then | |
3163 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3164 | echo "${ECHO_T}builtin version" >&6 | |
3165 | else | |
3166 | { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5 | |
3167 | echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;} | |
3168 | { (exit 1); exit 1; }; } | |
3169 | fi | |
3170 | ||
3171 | ||
3172 | echo "$as_me:$LINENO: checking for --with-zlib" >&5 | |
3173 | echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6 | |
3174 | no_cache=0 | |
3175 | ||
3176 | # Check whether --with-zlib or --without-zlib was given. | |
3177 | if test "${with_zlib+set}" = set; then | |
3178 | withval="$with_zlib" | |
3179 | ||
3180 | if test "$withval" = yes; then | |
3181 | ac_cv_use_zlib='wxUSE_ZLIB=yes' | |
3182 | elif test "$withval" = no; then | |
3183 | ac_cv_use_zlib='wxUSE_ZLIB=no' | |
3184 | elif test "$withval" = sys; then | |
3185 | ac_cv_use_zlib='wxUSE_ZLIB=sys' | |
3186 | elif test "$withval" = builtin; then | |
3187 | ac_cv_use_zlib='wxUSE_ZLIB=builtin' | |
3188 | else | |
3189 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3190 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3191 | { (exit 1); exit 1; }; } | |
3192 | fi | |
3193 | ||
3194 | else | |
3195 | ||
3196 | LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}` | |
3197 | if test "x$LINE" != x ; then | |
3198 | eval "DEFAULT_$LINE" | |
3199 | else | |
3200 | no_cache=1 | |
3201 | fi | |
3202 | ||
3203 | ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB | |
3204 | ||
3205 | fi; | |
3206 | ||
3207 | eval "$ac_cv_use_zlib" | |
3208 | if test "$no_cache" != 1; then | |
3209 | echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp | |
3210 | fi | |
3211 | ||
3212 | if test "$wxUSE_ZLIB" = yes; then | |
3213 | echo "$as_me:$LINENO: result: yes" >&5 | |
3214 | echo "${ECHO_T}yes" >&6 | |
3215 | elif test "$wxUSE_ZLIB" = no; then | |
3216 | echo "$as_me:$LINENO: result: no" >&5 | |
3217 | echo "${ECHO_T}no" >&6 | |
3218 | elif test "$wxUSE_ZLIB" = sys; then | |
3219 | echo "$as_me:$LINENO: result: system version" >&5 | |
3220 | echo "${ECHO_T}system version" >&6 | |
3221 | elif test "$wxUSE_ZLIB" = builtin; then | |
3222 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3223 | echo "${ECHO_T}builtin version" >&6 | |
3224 | else | |
3225 | { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5 | |
3226 | echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;} | |
3227 | { (exit 1); exit 1; }; } | |
3228 | fi | |
3229 | ||
3230 | ||
3231 | echo "$as_me:$LINENO: checking for --with-odbc" >&5 | |
3232 | echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6 | |
3233 | no_cache=0 | |
3234 | ||
3235 | # Check whether --with-odbc or --without-odbc was given. | |
3236 | if test "${with_odbc+set}" = set; then | |
3237 | withval="$with_odbc" | |
3238 | ||
3239 | if test "$withval" = yes; then | |
3240 | ac_cv_use_odbc='wxUSE_ODBC=yes' | |
3241 | elif test "$withval" = no; then | |
3242 | ac_cv_use_odbc='wxUSE_ODBC=no' | |
3243 | elif test "$withval" = sys; then | |
3244 | ac_cv_use_odbc='wxUSE_ODBC=sys' | |
3245 | elif test "$withval" = builtin; then | |
3246 | ac_cv_use_odbc='wxUSE_ODBC=builtin' | |
3247 | else | |
3248 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3249 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3250 | { (exit 1); exit 1; }; } | |
3251 | fi | |
3252 | ||
3253 | else | |
3254 | ||
3255 | LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}` | |
3256 | if test "x$LINE" != x ; then | |
3257 | eval "DEFAULT_$LINE" | |
3258 | else | |
3259 | no_cache=1 | |
3260 | fi | |
3261 | ||
3262 | ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC | |
3263 | ||
3264 | fi; | |
3265 | ||
3266 | eval "$ac_cv_use_odbc" | |
3267 | if test "$no_cache" != 1; then | |
3268 | echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp | |
3269 | fi | |
3270 | ||
3271 | if test "$wxUSE_ODBC" = yes; then | |
3272 | echo "$as_me:$LINENO: result: yes" >&5 | |
3273 | echo "${ECHO_T}yes" >&6 | |
3274 | elif test "$wxUSE_ODBC" = no; then | |
3275 | echo "$as_me:$LINENO: result: no" >&5 | |
3276 | echo "${ECHO_T}no" >&6 | |
3277 | elif test "$wxUSE_ODBC" = sys; then | |
3278 | echo "$as_me:$LINENO: result: system version" >&5 | |
3279 | echo "${ECHO_T}system version" >&6 | |
3280 | elif test "$wxUSE_ODBC" = builtin; then | |
3281 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3282 | echo "${ECHO_T}builtin version" >&6 | |
3283 | else | |
3284 | { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5 | |
3285 | echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;} | |
3286 | { (exit 1); exit 1; }; } | |
3287 | fi | |
3288 | ||
3289 | ||
3290 | echo "$as_me:$LINENO: checking for --with-expat" >&5 | |
3291 | echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6 | |
3292 | no_cache=0 | |
3293 | ||
3294 | # Check whether --with-expat or --without-expat was given. | |
3295 | if test "${with_expat+set}" = set; then | |
3296 | withval="$with_expat" | |
3297 | ||
3298 | if test "$withval" = yes; then | |
3299 | ac_cv_use_expat='wxUSE_EXPAT=yes' | |
3300 | elif test "$withval" = no; then | |
3301 | ac_cv_use_expat='wxUSE_EXPAT=no' | |
3302 | elif test "$withval" = sys; then | |
3303 | ac_cv_use_expat='wxUSE_EXPAT=sys' | |
3304 | elif test "$withval" = builtin; then | |
3305 | ac_cv_use_expat='wxUSE_EXPAT=builtin' | |
3306 | else | |
3307 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3308 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3309 | { (exit 1); exit 1; }; } | |
3310 | fi | |
3311 | ||
3312 | else | |
3313 | ||
3314 | LINE=`grep "wxUSE_EXPAT" ${wx_arg_cache_file}` | |
3315 | if test "x$LINE" != x ; then | |
3316 | eval "DEFAULT_$LINE" | |
3317 | else | |
3318 | no_cache=1 | |
3319 | fi | |
3320 | ||
3321 | ac_cv_use_expat='wxUSE_EXPAT='$DEFAULT_wxUSE_EXPAT | |
3322 | ||
3323 | fi; | |
3324 | ||
3325 | eval "$ac_cv_use_expat" | |
3326 | if test "$no_cache" != 1; then | |
3327 | echo $ac_cv_use_expat >> ${wx_arg_cache_file}.tmp | |
3328 | fi | |
3329 | ||
3330 | if test "$wxUSE_EXPAT" = yes; then | |
3331 | echo "$as_me:$LINENO: result: yes" >&5 | |
3332 | echo "${ECHO_T}yes" >&6 | |
3333 | elif test "$wxUSE_EXPAT" = no; then | |
3334 | echo "$as_me:$LINENO: result: no" >&5 | |
3335 | echo "${ECHO_T}no" >&6 | |
3336 | elif test "$wxUSE_EXPAT" = sys; then | |
3337 | echo "$as_me:$LINENO: result: system version" >&5 | |
3338 | echo "${ECHO_T}system version" >&6 | |
3339 | elif test "$wxUSE_EXPAT" = builtin; then | |
3340 | echo "$as_me:$LINENO: result: builtin version" >&5 | |
3341 | echo "${ECHO_T}builtin version" >&6 | |
3342 | else | |
3343 | { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5 | |
3344 | echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;} | |
3345 | { (exit 1); exit 1; }; } | |
3346 | fi | |
3347 | ||
3348 | ||
3349 | ||
3350 | ||
3351 | enablestring= | |
3352 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5 | |
3353 | echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6 | |
3354 | no_cache=0 | |
3355 | # Check whether --enable-shared or --disable-shared was given. | |
3356 | if test "${enable_shared+set}" = set; then | |
3357 | enableval="$enable_shared" | |
3358 | ||
3359 | if test "$enableval" = yes; then | |
3360 | ac_cv_use_shared='wxUSE_SHARED=yes' | |
3361 | else | |
3362 | ac_cv_use_shared='wxUSE_SHARED=no' | |
3363 | fi | |
3364 | ||
3365 | else | |
3366 | ||
3367 | LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}` | |
3368 | if test "x$LINE" != x ; then | |
3369 | eval "DEFAULT_$LINE" | |
3370 | else | |
3371 | no_cache=1 | |
3372 | fi | |
3373 | ||
3374 | ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED | |
3375 | ||
3376 | fi; | |
3377 | ||
3378 | eval "$ac_cv_use_shared" | |
3379 | if test "$no_cache" != 1; then | |
3380 | echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp | |
3381 | fi | |
3382 | ||
3383 | if test "$wxUSE_SHARED" = yes; then | |
3384 | echo "$as_me:$LINENO: result: yes" >&5 | |
3385 | echo "${ECHO_T}yes" >&6 | |
3386 | else | |
3387 | echo "$as_me:$LINENO: result: no" >&5 | |
3388 | echo "${ECHO_T}no" >&6 | |
3389 | fi | |
3390 | ||
3391 | ||
3392 | enablestring= | |
3393 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5 | |
3394 | echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6 | |
3395 | no_cache=0 | |
3396 | # Check whether --enable-optimise or --disable-optimise was given. | |
3397 | if test "${enable_optimise+set}" = set; then | |
3398 | enableval="$enable_optimise" | |
3399 | ||
3400 | if test "$enableval" = yes; then | |
3401 | ac_cv_use_optimise='wxUSE_OPTIMISE=yes' | |
3402 | else | |
3403 | ac_cv_use_optimise='wxUSE_OPTIMISE=no' | |
3404 | fi | |
3405 | ||
3406 | else | |
3407 | ||
3408 | LINE=`grep "wxUSE_OPTIMISE" ${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_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE | |
3416 | ||
3417 | fi; | |
3418 | ||
3419 | eval "$ac_cv_use_optimise" | |
3420 | if test "$no_cache" != 1; then | |
3421 | echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp | |
3422 | fi | |
3423 | ||
3424 | if test "$wxUSE_OPTIMISE" = yes; then | |
3425 | echo "$as_me:$LINENO: result: yes" >&5 | |
3426 | echo "${ECHO_T}yes" >&6 | |
3427 | else | |
3428 | echo "$as_me:$LINENO: result: no" >&5 | |
3429 | echo "${ECHO_T}no" >&6 | |
3430 | fi | |
3431 | ||
3432 | ||
3433 | enablestring= | |
3434 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5 | |
3435 | echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6 | |
3436 | no_cache=0 | |
3437 | # Check whether --enable-debug or --disable-debug was given. | |
3438 | if test "${enable_debug+set}" = set; then | |
3439 | enableval="$enable_debug" | |
3440 | ||
3441 | if test "$enableval" = yes; then | |
3442 | ac_cv_use_debug='wxUSE_DEBUG=yes' | |
3443 | else | |
3444 | ac_cv_use_debug='wxUSE_DEBUG=no' | |
3445 | fi | |
3446 | ||
3447 | else | |
3448 | ||
3449 | LINE=`grep "wxUSE_DEBUG" ${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='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG | |
3457 | ||
3458 | fi; | |
3459 | ||
3460 | eval "$ac_cv_use_debug" | |
3461 | if test "$no_cache" != 1; then | |
3462 | echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp | |
3463 | fi | |
3464 | ||
3465 | if test "$wxUSE_DEBUG" = yes; then | |
3466 | echo "$as_me:$LINENO: result: yes" >&5 | |
3467 | echo "${ECHO_T}yes" >&6 | |
3468 | else | |
3469 | echo "$as_me:$LINENO: result: no" >&5 | |
3470 | echo "${ECHO_T}no" >&6 | |
3471 | fi | |
3472 | ||
3473 | ||
3474 | enablestring= | |
3475 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5 | |
3476 | echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6 | |
3477 | no_cache=0 | |
3478 | # Check whether --enable-stl or --disable-stl was given. | |
3479 | if test "${enable_stl+set}" = set; then | |
3480 | enableval="$enable_stl" | |
3481 | ||
3482 | if test "$enableval" = yes; then | |
3483 | ac_cv_use_stl='wxUSE_STL=yes' | |
3484 | else | |
3485 | ac_cv_use_stl='wxUSE_STL=no' | |
3486 | fi | |
3487 | ||
3488 | else | |
3489 | ||
3490 | LINE=`grep "wxUSE_STL" ${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_stl='wxUSE_STL='$DEFAULT_wxUSE_STL | |
3498 | ||
3499 | fi; | |
3500 | ||
3501 | eval "$ac_cv_use_stl" | |
3502 | if test "$no_cache" != 1; then | |
3503 | echo $ac_cv_use_stl >> ${wx_arg_cache_file}.tmp | |
3504 | fi | |
3505 | ||
3506 | if test "$wxUSE_STL" = yes; then | |
3507 | echo "$as_me:$LINENO: result: yes" >&5 | |
3508 | echo "${ECHO_T}yes" >&6 | |
3509 | else | |
3510 | echo "$as_me:$LINENO: result: no" >&5 | |
3511 | echo "${ECHO_T}no" >&6 | |
3512 | fi | |
3513 | ||
3514 | if test "$USE_OS2" = "1"; then | |
3515 | ||
3516 | enablestring= | |
3517 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5 | |
3518 | echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6 | |
3519 | no_cache=0 | |
3520 | # Check whether --enable-omf or --disable-omf was given. | |
3521 | if test "${enable_omf+set}" = set; then | |
3522 | enableval="$enable_omf" | |
3523 | ||
3524 | if test "$enableval" = yes; then | |
3525 | ac_cv_use_omf='wxUSE_OMF=yes' | |
3526 | else | |
3527 | ac_cv_use_omf='wxUSE_OMF=no' | |
3528 | fi | |
3529 | ||
3530 | else | |
3531 | ||
3532 | LINE=`grep "wxUSE_OMF" ${wx_arg_cache_file}` | |
3533 | if test "x$LINE" != x ; then | |
3534 | eval "DEFAULT_$LINE" | |
3535 | else | |
3536 | no_cache=1 | |
3537 | fi | |
3538 | ||
3539 | ac_cv_use_omf='wxUSE_OMF='$DEFAULT_wxUSE_OMF | |
3540 | ||
3541 | fi; | |
3542 | ||
3543 | eval "$ac_cv_use_omf" | |
3544 | if test "$no_cache" != 1; then | |
3545 | echo $ac_cv_use_omf >> ${wx_arg_cache_file}.tmp | |
3546 | fi | |
3547 | ||
3548 | if test "$wxUSE_OMF" = yes; then | |
3549 | echo "$as_me:$LINENO: result: yes" >&5 | |
3550 | echo "${ECHO_T}yes" >&6 | |
3551 | else | |
3552 | echo "$as_me:$LINENO: result: no" >&5 | |
3553 | echo "${ECHO_T}no" >&6 | |
3554 | fi | |
3555 | ||
3556 | fi | |
3557 | ||
3558 | if test "$wxUSE_DEBUG" = "yes"; then | |
3559 | DEFAULT_wxUSE_DEBUG_FLAG=yes | |
3560 | DEFAULT_wxUSE_DEBUG_INFO=yes | |
3561 | BUILD=debug | |
3562 | elif test "$wxUSE_DEBUG" = "no"; then | |
3563 | DEFAULT_wxUSE_DEBUG_FLAG=no | |
3564 | DEFAULT_wxUSE_DEBUG_INFO=no | |
3565 | BUILD=release | |
3566 | fi | |
3567 | ||
3568 | ||
3569 | enablestring= | |
3570 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5 | |
3571 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6 | |
3572 | no_cache=0 | |
3573 | # Check whether --enable-debug_flag or --disable-debug_flag was given. | |
3574 | if test "${enable_debug_flag+set}" = set; then | |
3575 | enableval="$enable_debug_flag" | |
3576 | ||
3577 | if test "$enableval" = yes; then | |
3578 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes' | |
3579 | else | |
3580 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no' | |
3581 | fi | |
3582 | ||
3583 | else | |
3584 | ||
3585 | LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}` | |
3586 | if test "x$LINE" != x ; then | |
3587 | eval "DEFAULT_$LINE" | |
3588 | else | |
3589 | no_cache=1 | |
3590 | fi | |
3591 | ||
3592 | ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG | |
3593 | ||
3594 | fi; | |
3595 | ||
3596 | eval "$ac_cv_use_debug_flag" | |
3597 | if test "$no_cache" != 1; then | |
3598 | echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp | |
3599 | fi | |
3600 | ||
3601 | if test "$wxUSE_DEBUG_FLAG" = yes; then | |
3602 | echo "$as_me:$LINENO: result: yes" >&5 | |
3603 | echo "${ECHO_T}yes" >&6 | |
3604 | else | |
3605 | echo "$as_me:$LINENO: result: no" >&5 | |
3606 | echo "${ECHO_T}no" >&6 | |
3607 | fi | |
3608 | ||
3609 | ||
3610 | enablestring= | |
3611 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5 | |
3612 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6 | |
3613 | no_cache=0 | |
3614 | # Check whether --enable-debug_info or --disable-debug_info was given. | |
3615 | if test "${enable_debug_info+set}" = set; then | |
3616 | enableval="$enable_debug_info" | |
3617 | ||
3618 | if test "$enableval" = yes; then | |
3619 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes' | |
3620 | else | |
3621 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no' | |
3622 | fi | |
3623 | ||
3624 | else | |
3625 | ||
3626 | LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}` | |
3627 | if test "x$LINE" != x ; then | |
3628 | eval "DEFAULT_$LINE" | |
3629 | else | |
3630 | no_cache=1 | |
3631 | fi | |
3632 | ||
3633 | ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO | |
3634 | ||
3635 | fi; | |
3636 | ||
3637 | eval "$ac_cv_use_debug_info" | |
3638 | if test "$no_cache" != 1; then | |
3639 | echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp | |
3640 | fi | |
3641 | ||
3642 | if test "$wxUSE_DEBUG_INFO" = yes; then | |
3643 | echo "$as_me:$LINENO: result: yes" >&5 | |
3644 | echo "${ECHO_T}yes" >&6 | |
3645 | else | |
3646 | echo "$as_me:$LINENO: result: no" >&5 | |
3647 | echo "${ECHO_T}no" >&6 | |
3648 | fi | |
3649 | ||
3650 | ||
3651 | enablestring= | |
3652 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5 | |
3653 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6 | |
3654 | no_cache=0 | |
3655 | # Check whether --enable-debug_gdb or --disable-debug_gdb was given. | |
3656 | if test "${enable_debug_gdb+set}" = set; then | |
3657 | enableval="$enable_debug_gdb" | |
3658 | ||
3659 | if test "$enableval" = yes; then | |
3660 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes' | |
3661 | else | |
3662 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no' | |
3663 | fi | |
3664 | ||
3665 | else | |
3666 | ||
3667 | LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}` | |
3668 | if test "x$LINE" != x ; then | |
3669 | eval "DEFAULT_$LINE" | |
3670 | else | |
3671 | no_cache=1 | |
3672 | fi | |
3673 | ||
3674 | ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB | |
3675 | ||
3676 | fi; | |
3677 | ||
3678 | eval "$ac_cv_use_debug_gdb" | |
3679 | if test "$no_cache" != 1; then | |
3680 | echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp | |
3681 | fi | |
3682 | ||
3683 | if test "$wxUSE_DEBUG_GDB" = yes; then | |
3684 | echo "$as_me:$LINENO: result: yes" >&5 | |
3685 | echo "${ECHO_T}yes" >&6 | |
3686 | else | |
3687 | echo "$as_me:$LINENO: result: no" >&5 | |
3688 | echo "${ECHO_T}no" >&6 | |
3689 | fi | |
3690 | ||
3691 | ||
3692 | enablestring= | |
3693 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5 | |
3694 | echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6 | |
3695 | no_cache=0 | |
3696 | # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given. | |
3697 | if test "${enable_debug_cntxt+set}" = set; then | |
3698 | enableval="$enable_debug_cntxt" | |
3699 | ||
3700 | if test "$enableval" = yes; then | |
3701 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes' | |
3702 | else | |
3703 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no' | |
3704 | fi | |
3705 | ||
3706 | else | |
3707 | ||
3708 | LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}` | |
3709 | if test "x$LINE" != x ; then | |
3710 | eval "DEFAULT_$LINE" | |
3711 | else | |
3712 | no_cache=1 | |
3713 | fi | |
3714 | ||
3715 | ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT | |
3716 | ||
3717 | fi; | |
3718 | ||
3719 | eval "$ac_cv_use_debug_cntxt" | |
3720 | if test "$no_cache" != 1; then | |
3721 | echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp | |
3722 | fi | |
3723 | ||
3724 | if test "$wxUSE_DEBUG_CONTEXT" = yes; then | |
3725 | echo "$as_me:$LINENO: result: yes" >&5 | |
3726 | echo "${ECHO_T}yes" >&6 | |
3727 | else | |
3728 | echo "$as_me:$LINENO: result: no" >&5 | |
3729 | echo "${ECHO_T}no" >&6 | |
3730 | fi | |
3731 | ||
3732 | ||
3733 | enablestring= | |
3734 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5 | |
3735 | echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6 | |
3736 | no_cache=0 | |
3737 | # Check whether --enable-mem_tracing or --disable-mem_tracing was given. | |
3738 | if test "${enable_mem_tracing+set}" = set; then | |
3739 | enableval="$enable_mem_tracing" | |
3740 | ||
3741 | if test "$enableval" = yes; then | |
3742 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes' | |
3743 | else | |
3744 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no' | |
3745 | fi | |
3746 | ||
3747 | else | |
3748 | ||
3749 | LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}` | |
3750 | if test "x$LINE" != x ; then | |
3751 | eval "DEFAULT_$LINE" | |
3752 | else | |
3753 | no_cache=1 | |
3754 | fi | |
3755 | ||
3756 | ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING | |
3757 | ||
3758 | fi; | |
3759 | ||
3760 | eval "$ac_cv_use_mem_tracing" | |
3761 | if test "$no_cache" != 1; then | |
3762 | echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp | |
3763 | fi | |
3764 | ||
3765 | if test "$wxUSE_MEM_TRACING" = yes; then | |
3766 | echo "$as_me:$LINENO: result: yes" >&5 | |
3767 | echo "${ECHO_T}yes" >&6 | |
3768 | else | |
3769 | echo "$as_me:$LINENO: result: no" >&5 | |
3770 | echo "${ECHO_T}no" >&6 | |
3771 | fi | |
3772 | ||
3773 | ||
3774 | enablestring= | |
3775 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5 | |
3776 | echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6 | |
3777 | no_cache=0 | |
3778 | # Check whether --enable-profile or --disable-profile was given. | |
3779 | if test "${enable_profile+set}" = set; then | |
3780 | enableval="$enable_profile" | |
3781 | ||
3782 | if test "$enableval" = yes; then | |
3783 | ac_cv_use_profile='wxUSE_PROFILE=yes' | |
3784 | else | |
3785 | ac_cv_use_profile='wxUSE_PROFILE=no' | |
3786 | fi | |
3787 | ||
3788 | else | |
3789 | ||
3790 | LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}` | |
3791 | if test "x$LINE" != x ; then | |
3792 | eval "DEFAULT_$LINE" | |
3793 | else | |
3794 | no_cache=1 | |
3795 | fi | |
3796 | ||
3797 | ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE | |
3798 | ||
3799 | fi; | |
3800 | ||
3801 | eval "$ac_cv_use_profile" | |
3802 | if test "$no_cache" != 1; then | |
3803 | echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp | |
3804 | fi | |
3805 | ||
3806 | if test "$wxUSE_PROFILE" = yes; then | |
3807 | echo "$as_me:$LINENO: result: yes" >&5 | |
3808 | echo "${ECHO_T}yes" >&6 | |
3809 | else | |
3810 | echo "$as_me:$LINENO: result: no" >&5 | |
3811 | echo "${ECHO_T}no" >&6 | |
3812 | fi | |
3813 | ||
3814 | ||
3815 | enablestring= | |
3816 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5 | |
3817 | echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6 | |
3818 | no_cache=0 | |
3819 | # Check whether --enable-no_rtti or --disable-no_rtti was given. | |
3820 | if test "${enable_no_rtti+set}" = set; then | |
3821 | enableval="$enable_no_rtti" | |
3822 | ||
3823 | if test "$enableval" = yes; then | |
3824 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes' | |
3825 | else | |
3826 | ac_cv_use_no_rtti='wxUSE_NO_RTTI=no' | |
3827 | fi | |
3828 | ||
3829 | else | |
3830 | ||
3831 | LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}` | |
3832 | if test "x$LINE" != x ; then | |
3833 | eval "DEFAULT_$LINE" | |
3834 | else | |
3835 | no_cache=1 | |
3836 | fi | |
3837 | ||
3838 | ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI | |
3839 | ||
3840 | fi; | |
3841 | ||
3842 | eval "$ac_cv_use_no_rtti" | |
3843 | if test "$no_cache" != 1; then | |
3844 | echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp | |
3845 | fi | |
3846 | ||
3847 | if test "$wxUSE_NO_RTTI" = yes; then | |
3848 | echo "$as_me:$LINENO: result: yes" >&5 | |
3849 | echo "${ECHO_T}yes" >&6 | |
3850 | else | |
3851 | echo "$as_me:$LINENO: result: no" >&5 | |
3852 | echo "${ECHO_T}no" >&6 | |
3853 | fi | |
3854 | ||
3855 | ||
3856 | enablestring= | |
3857 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5 | |
3858 | echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6 | |
3859 | no_cache=0 | |
3860 | # Check whether --enable-no_exceptions or --disable-no_exceptions was given. | |
3861 | if test "${enable_no_exceptions+set}" = set; then | |
3862 | enableval="$enable_no_exceptions" | |
3863 | ||
3864 | if test "$enableval" = yes; then | |
3865 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes' | |
3866 | else | |
3867 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no' | |
3868 | fi | |
3869 | ||
3870 | else | |
3871 | ||
3872 | LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}` | |
3873 | if test "x$LINE" != x ; then | |
3874 | eval "DEFAULT_$LINE" | |
3875 | else | |
3876 | no_cache=1 | |
3877 | fi | |
3878 | ||
3879 | ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS | |
3880 | ||
3881 | fi; | |
3882 | ||
3883 | eval "$ac_cv_use_no_exceptions" | |
3884 | if test "$no_cache" != 1; then | |
3885 | echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp | |
3886 | fi | |
3887 | ||
3888 | if test "$wxUSE_NO_EXCEPTIONS" = yes; then | |
3889 | echo "$as_me:$LINENO: result: yes" >&5 | |
3890 | echo "${ECHO_T}yes" >&6 | |
3891 | else | |
3892 | echo "$as_me:$LINENO: result: no" >&5 | |
3893 | echo "${ECHO_T}no" >&6 | |
3894 | fi | |
3895 | ||
3896 | ||
3897 | enablestring= | |
3898 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5 | |
3899 | echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6 | |
3900 | no_cache=0 | |
3901 | # Check whether --enable-permissive or --disable-permissive was given. | |
3902 | if test "${enable_permissive+set}" = set; then | |
3903 | enableval="$enable_permissive" | |
3904 | ||
3905 | if test "$enableval" = yes; then | |
3906 | ac_cv_use_permissive='wxUSE_PERMISSIVE=yes' | |
3907 | else | |
3908 | ac_cv_use_permissive='wxUSE_PERMISSIVE=no' | |
3909 | fi | |
3910 | ||
3911 | else | |
3912 | ||
3913 | LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}` | |
3914 | if test "x$LINE" != x ; then | |
3915 | eval "DEFAULT_$LINE" | |
3916 | else | |
3917 | no_cache=1 | |
3918 | fi | |
3919 | ||
3920 | ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE | |
3921 | ||
3922 | fi; | |
3923 | ||
3924 | eval "$ac_cv_use_permissive" | |
3925 | if test "$no_cache" != 1; then | |
3926 | echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp | |
3927 | fi | |
3928 | ||
3929 | if test "$wxUSE_PERMISSIVE" = yes; then | |
3930 | echo "$as_me:$LINENO: result: yes" >&5 | |
3931 | echo "${ECHO_T}yes" >&6 | |
3932 | else | |
3933 | echo "$as_me:$LINENO: result: no" >&5 | |
3934 | echo "${ECHO_T}no" >&6 | |
3935 | fi | |
3936 | ||
3937 | ||
3938 | enablestring= | |
3939 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5 | |
3940 | echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6 | |
3941 | no_cache=0 | |
3942 | # Check whether --enable-no_deps or --disable-no_deps was given. | |
3943 | if test "${enable_no_deps+set}" = set; then | |
3944 | enableval="$enable_no_deps" | |
3945 | ||
3946 | if test "$enableval" = yes; then | |
3947 | ac_cv_use_no_deps='wxUSE_NO_DEPS=yes' | |
3948 | else | |
3949 | ac_cv_use_no_deps='wxUSE_NO_DEPS=no' | |
3950 | fi | |
3951 | ||
3952 | else | |
3953 | ||
3954 | LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}` | |
3955 | if test "x$LINE" != x ; then | |
3956 | eval "DEFAULT_$LINE" | |
3957 | else | |
3958 | no_cache=1 | |
3959 | fi | |
3960 | ||
3961 | ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS | |
3962 | ||
3963 | fi; | |
3964 | ||
3965 | eval "$ac_cv_use_no_deps" | |
3966 | if test "$no_cache" != 1; then | |
3967 | echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp | |
3968 | fi | |
3969 | ||
3970 | if test "$wxUSE_NO_DEPS" = yes; then | |
3971 | echo "$as_me:$LINENO: result: yes" >&5 | |
3972 | echo "${ECHO_T}yes" >&6 | |
3973 | else | |
3974 | echo "$as_me:$LINENO: result: no" >&5 | |
3975 | echo "${ECHO_T}no" >&6 | |
3976 | fi | |
3977 | ||
3978 | ||
3979 | ||
3980 | enablestring= | |
3981 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat22" >&5 | |
3982 | echo $ECHO_N "checking for --${enablestring:-enable}-compat22... $ECHO_C" >&6 | |
3983 | no_cache=0 | |
3984 | # Check whether --enable-compat22 or --disable-compat22 was given. | |
3985 | if test "${enable_compat22+set}" = set; then | |
3986 | enableval="$enable_compat22" | |
3987 | ||
3988 | if test "$enableval" = yes; then | |
3989 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes' | |
3990 | else | |
3991 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no' | |
3992 | fi | |
3993 | ||
3994 | else | |
3995 | ||
3996 | LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}` | |
3997 | if test "x$LINE" != x ; then | |
3998 | eval "DEFAULT_$LINE" | |
3999 | else | |
4000 | no_cache=1 | |
4001 | fi | |
4002 | ||
4003 | ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2 | |
4004 | ||
4005 | fi; | |
4006 | ||
4007 | eval "$ac_cv_use_compat22" | |
4008 | if test "$no_cache" != 1; then | |
4009 | echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp | |
4010 | fi | |
4011 | ||
4012 | if test "$WXWIN_COMPATIBILITY_2_2" = yes; then | |
4013 | echo "$as_me:$LINENO: result: yes" >&5 | |
4014 | echo "${ECHO_T}yes" >&6 | |
4015 | else | |
4016 | echo "$as_me:$LINENO: result: no" >&5 | |
4017 | echo "${ECHO_T}no" >&6 | |
4018 | fi | |
4019 | ||
4020 | ||
4021 | enablestring=disable | |
4022 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat24" >&5 | |
4023 | echo $ECHO_N "checking for --${enablestring:-enable}-compat24... $ECHO_C" >&6 | |
4024 | no_cache=0 | |
4025 | # Check whether --enable-compat24 or --disable-compat24 was given. | |
4026 | if test "${enable_compat24+set}" = set; then | |
4027 | enableval="$enable_compat24" | |
4028 | ||
4029 | if test "$enableval" = yes; then | |
4030 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=yes' | |
4031 | else | |
4032 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4=no' | |
4033 | fi | |
4034 | ||
4035 | else | |
4036 | ||
4037 | LINE=`grep "WXWIN_COMPATIBILITY_2_4" ${wx_arg_cache_file}` | |
4038 | if test "x$LINE" != x ; then | |
4039 | eval "DEFAULT_$LINE" | |
4040 | else | |
4041 | no_cache=1 | |
4042 | fi | |
4043 | ||
4044 | ac_cv_use_compat24='WXWIN_COMPATIBILITY_2_4='$DEFAULT_WXWIN_COMPATIBILITY_2_4 | |
4045 | ||
4046 | fi; | |
4047 | ||
4048 | eval "$ac_cv_use_compat24" | |
4049 | if test "$no_cache" != 1; then | |
4050 | echo $ac_cv_use_compat24 >> ${wx_arg_cache_file}.tmp | |
4051 | fi | |
4052 | ||
4053 | if test "$WXWIN_COMPATIBILITY_2_4" = yes; then | |
4054 | echo "$as_me:$LINENO: result: yes" >&5 | |
4055 | echo "${ECHO_T}yes" >&6 | |
4056 | else | |
4057 | echo "$as_me:$LINENO: result: no" >&5 | |
4058 | echo "${ECHO_T}no" >&6 | |
4059 | fi | |
4060 | ||
4061 | ||
4062 | # Check whether --enable-rpath or --disable-rpath was given. | |
4063 | if test "${enable_rpath+set}" = set; then | |
4064 | enableval="$enable_rpath" | |
4065 | wxRPATH_DIR="$enableval" | |
4066 | fi; | |
4067 | ||
4068 | if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then | |
4069 | WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR" | |
4070 | fi | |
4071 | ||
4072 | ||
4073 | ||
4074 | ||
4075 | enablestring= | |
4076 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5 | |
4077 | echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6 | |
4078 | no_cache=0 | |
4079 | # Check whether --enable-intl or --disable-intl was given. | |
4080 | if test "${enable_intl+set}" = set; then | |
4081 | enableval="$enable_intl" | |
4082 | ||
4083 | if test "$enableval" = yes; then | |
4084 | ac_cv_use_intl='wxUSE_INTL=yes' | |
4085 | else | |
4086 | ac_cv_use_intl='wxUSE_INTL=no' | |
4087 | fi | |
4088 | ||
4089 | else | |
4090 | ||
4091 | LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}` | |
4092 | if test "x$LINE" != x ; then | |
4093 | eval "DEFAULT_$LINE" | |
4094 | else | |
4095 | no_cache=1 | |
4096 | fi | |
4097 | ||
4098 | ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL | |
4099 | ||
4100 | fi; | |
4101 | ||
4102 | eval "$ac_cv_use_intl" | |
4103 | if test "$no_cache" != 1; then | |
4104 | echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp | |
4105 | fi | |
4106 | ||
4107 | if test "$wxUSE_INTL" = yes; then | |
4108 | echo "$as_me:$LINENO: result: yes" >&5 | |
4109 | echo "${ECHO_T}yes" >&6 | |
4110 | else | |
4111 | echo "$as_me:$LINENO: result: no" >&5 | |
4112 | echo "${ECHO_T}no" >&6 | |
4113 | fi | |
4114 | ||
4115 | ||
4116 | enablestring= | |
4117 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5 | |
4118 | echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6 | |
4119 | no_cache=0 | |
4120 | # Check whether --enable-config or --disable-config was given. | |
4121 | if test "${enable_config+set}" = set; then | |
4122 | enableval="$enable_config" | |
4123 | ||
4124 | if test "$enableval" = yes; then | |
4125 | ac_cv_use_config='wxUSE_CONFIG=yes' | |
4126 | else | |
4127 | ac_cv_use_config='wxUSE_CONFIG=no' | |
4128 | fi | |
4129 | ||
4130 | else | |
4131 | ||
4132 | LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}` | |
4133 | if test "x$LINE" != x ; then | |
4134 | eval "DEFAULT_$LINE" | |
4135 | else | |
4136 | no_cache=1 | |
4137 | fi | |
4138 | ||
4139 | ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG | |
4140 | ||
4141 | fi; | |
4142 | ||
4143 | eval "$ac_cv_use_config" | |
4144 | if test "$no_cache" != 1; then | |
4145 | echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp | |
4146 | fi | |
4147 | ||
4148 | if test "$wxUSE_CONFIG" = yes; then | |
4149 | echo "$as_me:$LINENO: result: yes" >&5 | |
4150 | echo "${ECHO_T}yes" >&6 | |
4151 | else | |
4152 | echo "$as_me:$LINENO: result: no" >&5 | |
4153 | echo "${ECHO_T}no" >&6 | |
4154 | fi | |
4155 | ||
4156 | ||
4157 | ||
4158 | enablestring= | |
4159 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5 | |
4160 | echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6 | |
4161 | no_cache=0 | |
4162 | # Check whether --enable-protocols or --disable-protocols was given. | |
4163 | if test "${enable_protocols+set}" = set; then | |
4164 | enableval="$enable_protocols" | |
4165 | ||
4166 | if test "$enableval" = yes; then | |
4167 | ac_cv_use_protocols='wxUSE_PROTOCOL=yes' | |
4168 | else | |
4169 | ac_cv_use_protocols='wxUSE_PROTOCOL=no' | |
4170 | fi | |
4171 | ||
4172 | else | |
4173 | ||
4174 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
4175 | if test "x$LINE" != x ; then | |
4176 | eval "DEFAULT_$LINE" | |
4177 | else | |
4178 | no_cache=1 | |
4179 | fi | |
4180 | ||
4181 | ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
4182 | ||
4183 | fi; | |
4184 | ||
4185 | eval "$ac_cv_use_protocols" | |
4186 | if test "$no_cache" != 1; then | |
4187 | echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp | |
4188 | fi | |
4189 | ||
4190 | if test "$wxUSE_PROTOCOL" = yes; then | |
4191 | echo "$as_me:$LINENO: result: yes" >&5 | |
4192 | echo "${ECHO_T}yes" >&6 | |
4193 | else | |
4194 | echo "$as_me:$LINENO: result: no" >&5 | |
4195 | echo "${ECHO_T}no" >&6 | |
4196 | fi | |
4197 | ||
4198 | ||
4199 | enablestring= | |
4200 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5 | |
4201 | echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6 | |
4202 | no_cache=0 | |
4203 | # Check whether --enable-ftp or --disable-ftp was given. | |
4204 | if test "${enable_ftp+set}" = set; then | |
4205 | enableval="$enable_ftp" | |
4206 | ||
4207 | if test "$enableval" = yes; then | |
4208 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes' | |
4209 | else | |
4210 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no' | |
4211 | fi | |
4212 | ||
4213 | else | |
4214 | ||
4215 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
4216 | if test "x$LINE" != x ; then | |
4217 | eval "DEFAULT_$LINE" | |
4218 | else | |
4219 | no_cache=1 | |
4220 | fi | |
4221 | ||
4222 | ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
4223 | ||
4224 | fi; | |
4225 | ||
4226 | eval "$ac_cv_use_ftp" | |
4227 | if test "$no_cache" != 1; then | |
4228 | echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp | |
4229 | fi | |
4230 | ||
4231 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
4232 | echo "$as_me:$LINENO: result: yes" >&5 | |
4233 | echo "${ECHO_T}yes" >&6 | |
4234 | else | |
4235 | echo "$as_me:$LINENO: result: no" >&5 | |
4236 | echo "${ECHO_T}no" >&6 | |
4237 | fi | |
4238 | ||
4239 | ||
4240 | enablestring= | |
4241 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5 | |
4242 | echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6 | |
4243 | no_cache=0 | |
4244 | # Check whether --enable-http or --disable-http was given. | |
4245 | if test "${enable_http+set}" = set; then | |
4246 | enableval="$enable_http" | |
4247 | ||
4248 | if test "$enableval" = yes; then | |
4249 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes' | |
4250 | else | |
4251 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no' | |
4252 | fi | |
4253 | ||
4254 | else | |
4255 | ||
4256 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
4257 | if test "x$LINE" != x ; then | |
4258 | eval "DEFAULT_$LINE" | |
4259 | else | |
4260 | no_cache=1 | |
4261 | fi | |
4262 | ||
4263 | ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
4264 | ||
4265 | fi; | |
4266 | ||
4267 | eval "$ac_cv_use_http" | |
4268 | if test "$no_cache" != 1; then | |
4269 | echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp | |
4270 | fi | |
4271 | ||
4272 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
4273 | echo "$as_me:$LINENO: result: yes" >&5 | |
4274 | echo "${ECHO_T}yes" >&6 | |
4275 | else | |
4276 | echo "$as_me:$LINENO: result: no" >&5 | |
4277 | echo "${ECHO_T}no" >&6 | |
4278 | fi | |
4279 | ||
4280 | ||
4281 | enablestring= | |
4282 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5 | |
4283 | echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6 | |
4284 | no_cache=0 | |
4285 | # Check whether --enable-fileproto or --disable-fileproto was given. | |
4286 | if test "${enable_fileproto+set}" = set; then | |
4287 | enableval="$enable_fileproto" | |
4288 | ||
4289 | if test "$enableval" = yes; then | |
4290 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes' | |
4291 | else | |
4292 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no' | |
4293 | fi | |
4294 | ||
4295 | else | |
4296 | ||
4297 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
4298 | if test "x$LINE" != x ; then | |
4299 | eval "DEFAULT_$LINE" | |
4300 | else | |
4301 | no_cache=1 | |
4302 | fi | |
4303 | ||
4304 | ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
4305 | ||
4306 | fi; | |
4307 | ||
4308 | eval "$ac_cv_use_fileproto" | |
4309 | if test "$no_cache" != 1; then | |
4310 | echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp | |
4311 | fi | |
4312 | ||
4313 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
4314 | echo "$as_me:$LINENO: result: yes" >&5 | |
4315 | echo "${ECHO_T}yes" >&6 | |
4316 | else | |
4317 | echo "$as_me:$LINENO: result: no" >&5 | |
4318 | echo "${ECHO_T}no" >&6 | |
4319 | fi | |
4320 | ||
4321 | ||
4322 | enablestring= | |
4323 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5 | |
4324 | echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6 | |
4325 | no_cache=0 | |
4326 | # Check whether --enable-sockets or --disable-sockets was given. | |
4327 | if test "${enable_sockets+set}" = set; then | |
4328 | enableval="$enable_sockets" | |
4329 | ||
4330 | if test "$enableval" = yes; then | |
4331 | ac_cv_use_sockets='wxUSE_SOCKETS=yes' | |
4332 | else | |
4333 | ac_cv_use_sockets='wxUSE_SOCKETS=no' | |
4334 | fi | |
4335 | ||
4336 | else | |
4337 | ||
4338 | LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}` | |
4339 | if test "x$LINE" != x ; then | |
4340 | eval "DEFAULT_$LINE" | |
4341 | else | |
4342 | no_cache=1 | |
4343 | fi | |
4344 | ||
4345 | ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS | |
4346 | ||
4347 | fi; | |
4348 | ||
4349 | eval "$ac_cv_use_sockets" | |
4350 | if test "$no_cache" != 1; then | |
4351 | echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp | |
4352 | fi | |
4353 | ||
4354 | if test "$wxUSE_SOCKETS" = yes; then | |
4355 | echo "$as_me:$LINENO: result: yes" >&5 | |
4356 | echo "${ECHO_T}yes" >&6 | |
4357 | else | |
4358 | echo "$as_me:$LINENO: result: no" >&5 | |
4359 | echo "${ECHO_T}no" >&6 | |
4360 | fi | |
4361 | ||
4362 | ||
4363 | enablestring= | |
4364 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5 | |
4365 | echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6 | |
4366 | no_cache=0 | |
4367 | # Check whether --enable-ole or --disable-ole was given. | |
4368 | if test "${enable_ole+set}" = set; then | |
4369 | enableval="$enable_ole" | |
4370 | ||
4371 | if test "$enableval" = yes; then | |
4372 | ac_cv_use_ole='wxUSE_OLE=yes' | |
4373 | else | |
4374 | ac_cv_use_ole='wxUSE_OLE=no' | |
4375 | fi | |
4376 | ||
4377 | else | |
4378 | ||
4379 | LINE=`grep "wxUSE_OLE" ${wx_arg_cache_file}` | |
4380 | if test "x$LINE" != x ; then | |
4381 | eval "DEFAULT_$LINE" | |
4382 | else | |
4383 | no_cache=1 | |
4384 | fi | |
4385 | ||
4386 | ac_cv_use_ole='wxUSE_OLE='$DEFAULT_wxUSE_OLE | |
4387 | ||
4388 | fi; | |
4389 | ||
4390 | eval "$ac_cv_use_ole" | |
4391 | if test "$no_cache" != 1; then | |
4392 | echo $ac_cv_use_ole >> ${wx_arg_cache_file}.tmp | |
4393 | fi | |
4394 | ||
4395 | if test "$wxUSE_OLE" = yes; then | |
4396 | echo "$as_me:$LINENO: result: yes" >&5 | |
4397 | echo "${ECHO_T}yes" >&6 | |
4398 | else | |
4399 | echo "$as_me:$LINENO: result: no" >&5 | |
4400 | echo "${ECHO_T}no" >&6 | |
4401 | fi | |
4402 | ||
4403 | ||
4404 | enablestring= | |
4405 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5 | |
4406 | echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6 | |
4407 | no_cache=0 | |
4408 | # Check whether --enable-dataobj or --disable-dataobj was given. | |
4409 | if test "${enable_dataobj+set}" = set; then | |
4410 | enableval="$enable_dataobj" | |
4411 | ||
4412 | if test "$enableval" = yes; then | |
4413 | ac_cv_use_dataobj='wxUSE_DATAOBJ=yes' | |
4414 | else | |
4415 | ac_cv_use_dataobj='wxUSE_DATAOBJ=no' | |
4416 | fi | |
4417 | ||
4418 | else | |
4419 | ||
4420 | LINE=`grep "wxUSE_DATAOBJ" ${wx_arg_cache_file}` | |
4421 | if test "x$LINE" != x ; then | |
4422 | eval "DEFAULT_$LINE" | |
4423 | else | |
4424 | no_cache=1 | |
4425 | fi | |
4426 | ||
4427 | ac_cv_use_dataobj='wxUSE_DATAOBJ='$DEFAULT_wxUSE_DATAOBJ | |
4428 | ||
4429 | fi; | |
4430 | ||
4431 | eval "$ac_cv_use_dataobj" | |
4432 | if test "$no_cache" != 1; then | |
4433 | echo $ac_cv_use_dataobj >> ${wx_arg_cache_file}.tmp | |
4434 | fi | |
4435 | ||
4436 | if test "$wxUSE_DATAOBJ" = yes; then | |
4437 | echo "$as_me:$LINENO: result: yes" >&5 | |
4438 | echo "${ECHO_T}yes" >&6 | |
4439 | else | |
4440 | echo "$as_me:$LINENO: result: no" >&5 | |
4441 | echo "${ECHO_T}no" >&6 | |
4442 | fi | |
4443 | ||
4444 | ||
4445 | ||
4446 | enablestring= | |
4447 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5 | |
4448 | echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6 | |
4449 | no_cache=0 | |
4450 | # Check whether --enable-ipc or --disable-ipc was given. | |
4451 | if test "${enable_ipc+set}" = set; then | |
4452 | enableval="$enable_ipc" | |
4453 | ||
4454 | if test "$enableval" = yes; then | |
4455 | ac_cv_use_ipc='wxUSE_IPC=yes' | |
4456 | else | |
4457 | ac_cv_use_ipc='wxUSE_IPC=no' | |
4458 | fi | |
4459 | ||
4460 | else | |
4461 | ||
4462 | LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}` | |
4463 | if test "x$LINE" != x ; then | |
4464 | eval "DEFAULT_$LINE" | |
4465 | else | |
4466 | no_cache=1 | |
4467 | fi | |
4468 | ||
4469 | ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC | |
4470 | ||
4471 | fi; | |
4472 | ||
4473 | eval "$ac_cv_use_ipc" | |
4474 | if test "$no_cache" != 1; then | |
4475 | echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp | |
4476 | fi | |
4477 | ||
4478 | if test "$wxUSE_IPC" = yes; then | |
4479 | echo "$as_me:$LINENO: result: yes" >&5 | |
4480 | echo "${ECHO_T}yes" >&6 | |
4481 | else | |
4482 | echo "$as_me:$LINENO: result: no" >&5 | |
4483 | echo "${ECHO_T}no" >&6 | |
4484 | fi | |
4485 | ||
4486 | ||
4487 | ||
4488 | enablestring= | |
4489 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5 | |
4490 | echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6 | |
4491 | no_cache=0 | |
4492 | # Check whether --enable-apple_ieee or --disable-apple_ieee was given. | |
4493 | if test "${enable_apple_ieee+set}" = set; then | |
4494 | enableval="$enable_apple_ieee" | |
4495 | ||
4496 | if test "$enableval" = yes; then | |
4497 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes' | |
4498 | else | |
4499 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no' | |
4500 | fi | |
4501 | ||
4502 | else | |
4503 | ||
4504 | LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}` | |
4505 | if test "x$LINE" != x ; then | |
4506 | eval "DEFAULT_$LINE" | |
4507 | else | |
4508 | no_cache=1 | |
4509 | fi | |
4510 | ||
4511 | ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE | |
4512 | ||
4513 | fi; | |
4514 | ||
4515 | eval "$ac_cv_use_apple_ieee" | |
4516 | if test "$no_cache" != 1; then | |
4517 | echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp | |
4518 | fi | |
4519 | ||
4520 | if test "$wxUSE_APPLE_IEEE" = yes; then | |
4521 | echo "$as_me:$LINENO: result: yes" >&5 | |
4522 | echo "${ECHO_T}yes" >&6 | |
4523 | else | |
4524 | echo "$as_me:$LINENO: result: no" >&5 | |
4525 | echo "${ECHO_T}no" >&6 | |
4526 | fi | |
4527 | ||
4528 | ||
4529 | enablestring= | |
4530 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5 | |
4531 | echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6 | |
4532 | no_cache=0 | |
4533 | # Check whether --enable-catch_segvs or --disable-catch_segvs was given. | |
4534 | if test "${enable_catch_segvs+set}" = set; then | |
4535 | enableval="$enable_catch_segvs" | |
4536 | ||
4537 | if test "$enableval" = yes; then | |
4538 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes' | |
4539 | else | |
4540 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no' | |
4541 | fi | |
4542 | ||
4543 | else | |
4544 | ||
4545 | LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}` | |
4546 | if test "x$LINE" != x ; then | |
4547 | eval "DEFAULT_$LINE" | |
4548 | else | |
4549 | no_cache=1 | |
4550 | fi | |
4551 | ||
4552 | ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION | |
4553 | ||
4554 | fi; | |
4555 | ||
4556 | eval "$ac_cv_use_catch_segvs" | |
4557 | if test "$no_cache" != 1; then | |
4558 | echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp | |
4559 | fi | |
4560 | ||
4561 | if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then | |
4562 | echo "$as_me:$LINENO: result: yes" >&5 | |
4563 | echo "${ECHO_T}yes" >&6 | |
4564 | else | |
4565 | echo "$as_me:$LINENO: result: no" >&5 | |
4566 | echo "${ECHO_T}no" >&6 | |
4567 | fi | |
4568 | ||
4569 | ||
4570 | enablestring= | |
4571 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5 | |
4572 | echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6 | |
4573 | no_cache=0 | |
4574 | # Check whether --enable-cmdline or --disable-cmdline was given. | |
4575 | if test "${enable_cmdline+set}" = set; then | |
4576 | enableval="$enable_cmdline" | |
4577 | ||
4578 | if test "$enableval" = yes; then | |
4579 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes' | |
4580 | else | |
4581 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no' | |
4582 | fi | |
4583 | ||
4584 | else | |
4585 | ||
4586 | LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}` | |
4587 | if test "x$LINE" != x ; then | |
4588 | eval "DEFAULT_$LINE" | |
4589 | else | |
4590 | no_cache=1 | |
4591 | fi | |
4592 | ||
4593 | ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER | |
4594 | ||
4595 | fi; | |
4596 | ||
4597 | eval "$ac_cv_use_cmdline" | |
4598 | if test "$no_cache" != 1; then | |
4599 | echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp | |
4600 | fi | |
4601 | ||
4602 | if test "$wxUSE_CMDLINE_PARSER" = yes; then | |
4603 | echo "$as_me:$LINENO: result: yes" >&5 | |
4604 | echo "${ECHO_T}yes" >&6 | |
4605 | else | |
4606 | echo "$as_me:$LINENO: result: no" >&5 | |
4607 | echo "${ECHO_T}no" >&6 | |
4608 | fi | |
4609 | ||
4610 | ||
4611 | enablestring= | |
4612 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5 | |
4613 | echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6 | |
4614 | no_cache=0 | |
4615 | # Check whether --enable-datetime or --disable-datetime was given. | |
4616 | if test "${enable_datetime+set}" = set; then | |
4617 | enableval="$enable_datetime" | |
4618 | ||
4619 | if test "$enableval" = yes; then | |
4620 | ac_cv_use_datetime='wxUSE_DATETIME=yes' | |
4621 | else | |
4622 | ac_cv_use_datetime='wxUSE_DATETIME=no' | |
4623 | fi | |
4624 | ||
4625 | else | |
4626 | ||
4627 | LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}` | |
4628 | if test "x$LINE" != x ; then | |
4629 | eval "DEFAULT_$LINE" | |
4630 | else | |
4631 | no_cache=1 | |
4632 | fi | |
4633 | ||
4634 | ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME | |
4635 | ||
4636 | fi; | |
4637 | ||
4638 | eval "$ac_cv_use_datetime" | |
4639 | if test "$no_cache" != 1; then | |
4640 | echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp | |
4641 | fi | |
4642 | ||
4643 | if test "$wxUSE_DATETIME" = yes; then | |
4644 | echo "$as_me:$LINENO: result: yes" >&5 | |
4645 | echo "${ECHO_T}yes" >&6 | |
4646 | else | |
4647 | echo "$as_me:$LINENO: result: no" >&5 | |
4648 | echo "${ECHO_T}no" >&6 | |
4649 | fi | |
4650 | ||
4651 | ||
4652 | enablestring= | |
4653 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5 | |
4654 | echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6 | |
4655 | no_cache=0 | |
4656 | # Check whether --enable-dialupman or --disable-dialupman was given. | |
4657 | if test "${enable_dialupman+set}" = set; then | |
4658 | enableval="$enable_dialupman" | |
4659 | ||
4660 | if test "$enableval" = yes; then | |
4661 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes' | |
4662 | else | |
4663 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no' | |
4664 | fi | |
4665 | ||
4666 | else | |
4667 | ||
4668 | LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}` | |
4669 | if test "x$LINE" != x ; then | |
4670 | eval "DEFAULT_$LINE" | |
4671 | else | |
4672 | no_cache=1 | |
4673 | fi | |
4674 | ||
4675 | ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER | |
4676 | ||
4677 | fi; | |
4678 | ||
4679 | eval "$ac_cv_use_dialupman" | |
4680 | if test "$no_cache" != 1; then | |
4681 | echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp | |
4682 | fi | |
4683 | ||
4684 | if test "$wxUSE_DIALUP_MANAGER" = yes; then | |
4685 | echo "$as_me:$LINENO: result: yes" >&5 | |
4686 | echo "${ECHO_T}yes" >&6 | |
4687 | else | |
4688 | echo "$as_me:$LINENO: result: no" >&5 | |
4689 | echo "${ECHO_T}no" >&6 | |
4690 | fi | |
4691 | ||
4692 | ||
4693 | enablestring= | |
4694 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5 | |
4695 | echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6 | |
4696 | no_cache=0 | |
4697 | # Check whether --enable-dynlib or --disable-dynlib was given. | |
4698 | if test "${enable_dynlib+set}" = set; then | |
4699 | enableval="$enable_dynlib" | |
4700 | ||
4701 | if test "$enableval" = yes; then | |
4702 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes' | |
4703 | else | |
4704 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no' | |
4705 | fi | |
4706 | ||
4707 | else | |
4708 | ||
4709 | LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}` | |
4710 | if test "x$LINE" != x ; then | |
4711 | eval "DEFAULT_$LINE" | |
4712 | else | |
4713 | no_cache=1 | |
4714 | fi | |
4715 | ||
4716 | ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS | |
4717 | ||
4718 | fi; | |
4719 | ||
4720 | eval "$ac_cv_use_dynlib" | |
4721 | if test "$no_cache" != 1; then | |
4722 | echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp | |
4723 | fi | |
4724 | ||
4725 | if test "$wxUSE_DYNLIB_CLASS" = yes; then | |
4726 | echo "$as_me:$LINENO: result: yes" >&5 | |
4727 | echo "${ECHO_T}yes" >&6 | |
4728 | else | |
4729 | echo "$as_me:$LINENO: result: no" >&5 | |
4730 | echo "${ECHO_T}no" >&6 | |
4731 | fi | |
4732 | ||
4733 | ||
4734 | enablestring= | |
4735 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5 | |
4736 | echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6 | |
4737 | no_cache=0 | |
4738 | # Check whether --enable-dynamicloader or --disable-dynamicloader was given. | |
4739 | if test "${enable_dynamicloader+set}" = set; then | |
4740 | enableval="$enable_dynamicloader" | |
4741 | ||
4742 | if test "$enableval" = yes; then | |
4743 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes' | |
4744 | else | |
4745 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no' | |
4746 | fi | |
4747 | ||
4748 | else | |
4749 | ||
4750 | LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}` | |
4751 | if test "x$LINE" != x ; then | |
4752 | eval "DEFAULT_$LINE" | |
4753 | else | |
4754 | no_cache=1 | |
4755 | fi | |
4756 | ||
4757 | ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER | |
4758 | ||
4759 | fi; | |
4760 | ||
4761 | eval "$ac_cv_use_dynamicloader" | |
4762 | if test "$no_cache" != 1; then | |
4763 | echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp | |
4764 | fi | |
4765 | ||
4766 | if test "$wxUSE_DYNAMIC_LOADER" = yes; then | |
4767 | echo "$as_me:$LINENO: result: yes" >&5 | |
4768 | echo "${ECHO_T}yes" >&6 | |
4769 | else | |
4770 | echo "$as_me:$LINENO: result: no" >&5 | |
4771 | echo "${ECHO_T}no" >&6 | |
4772 | fi | |
4773 | ||
4774 | ||
4775 | enablestring= | |
4776 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5 | |
4777 | echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6 | |
4778 | no_cache=0 | |
4779 | # Check whether --enable-exceptions or --disable-exceptions was given. | |
4780 | if test "${enable_exceptions+set}" = set; then | |
4781 | enableval="$enable_exceptions" | |
4782 | ||
4783 | if test "$enableval" = yes; then | |
4784 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=yes' | |
4785 | else | |
4786 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS=no' | |
4787 | fi | |
4788 | ||
4789 | else | |
4790 | ||
4791 | LINE=`grep "wxUSE_EXCEPTIONS" ${wx_arg_cache_file}` | |
4792 | if test "x$LINE" != x ; then | |
4793 | eval "DEFAULT_$LINE" | |
4794 | else | |
4795 | no_cache=1 | |
4796 | fi | |
4797 | ||
4798 | ac_cv_use_exceptions='wxUSE_EXCEPTIONS='$DEFAULT_wxUSE_EXCEPTIONS | |
4799 | ||
4800 | fi; | |
4801 | ||
4802 | eval "$ac_cv_use_exceptions" | |
4803 | if test "$no_cache" != 1; then | |
4804 | echo $ac_cv_use_exceptions >> ${wx_arg_cache_file}.tmp | |
4805 | fi | |
4806 | ||
4807 | if test "$wxUSE_EXCEPTIONS" = yes; then | |
4808 | echo "$as_me:$LINENO: result: yes" >&5 | |
4809 | echo "${ECHO_T}yes" >&6 | |
4810 | else | |
4811 | echo "$as_me:$LINENO: result: no" >&5 | |
4812 | echo "${ECHO_T}no" >&6 | |
4813 | fi | |
4814 | ||
4815 | ||
4816 | enablestring= | |
4817 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5 | |
4818 | echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6 | |
4819 | no_cache=0 | |
4820 | # Check whether --enable-ffile or --disable-ffile was given. | |
4821 | if test "${enable_ffile+set}" = set; then | |
4822 | enableval="$enable_ffile" | |
4823 | ||
4824 | if test "$enableval" = yes; then | |
4825 | ac_cv_use_ffile='wxUSE_FFILE=yes' | |
4826 | else | |
4827 | ac_cv_use_ffile='wxUSE_FFILE=no' | |
4828 | fi | |
4829 | ||
4830 | else | |
4831 | ||
4832 | LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}` | |
4833 | if test "x$LINE" != x ; then | |
4834 | eval "DEFAULT_$LINE" | |
4835 | else | |
4836 | no_cache=1 | |
4837 | fi | |
4838 | ||
4839 | ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE | |
4840 | ||
4841 | fi; | |
4842 | ||
4843 | eval "$ac_cv_use_ffile" | |
4844 | if test "$no_cache" != 1; then | |
4845 | echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp | |
4846 | fi | |
4847 | ||
4848 | if test "$wxUSE_FFILE" = yes; then | |
4849 | echo "$as_me:$LINENO: result: yes" >&5 | |
4850 | echo "${ECHO_T}yes" >&6 | |
4851 | else | |
4852 | echo "$as_me:$LINENO: result: no" >&5 | |
4853 | echo "${ECHO_T}no" >&6 | |
4854 | fi | |
4855 | ||
4856 | ||
4857 | enablestring= | |
4858 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5 | |
4859 | echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6 | |
4860 | no_cache=0 | |
4861 | # Check whether --enable-file or --disable-file was given. | |
4862 | if test "${enable_file+set}" = set; then | |
4863 | enableval="$enable_file" | |
4864 | ||
4865 | if test "$enableval" = yes; then | |
4866 | ac_cv_use_file='wxUSE_FILE=yes' | |
4867 | else | |
4868 | ac_cv_use_file='wxUSE_FILE=no' | |
4869 | fi | |
4870 | ||
4871 | else | |
4872 | ||
4873 | LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}` | |
4874 | if test "x$LINE" != x ; then | |
4875 | eval "DEFAULT_$LINE" | |
4876 | else | |
4877 | no_cache=1 | |
4878 | fi | |
4879 | ||
4880 | ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE | |
4881 | ||
4882 | fi; | |
4883 | ||
4884 | eval "$ac_cv_use_file" | |
4885 | if test "$no_cache" != 1; then | |
4886 | echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp | |
4887 | fi | |
4888 | ||
4889 | if test "$wxUSE_FILE" = yes; then | |
4890 | echo "$as_me:$LINENO: result: yes" >&5 | |
4891 | echo "${ECHO_T}yes" >&6 | |
4892 | else | |
4893 | echo "$as_me:$LINENO: result: no" >&5 | |
4894 | echo "${ECHO_T}no" >&6 | |
4895 | fi | |
4896 | ||
4897 | ||
4898 | enablestring= | |
4899 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5 | |
4900 | echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6 | |
4901 | no_cache=0 | |
4902 | # Check whether --enable-filesystem or --disable-filesystem was given. | |
4903 | if test "${enable_filesystem+set}" = set; then | |
4904 | enableval="$enable_filesystem" | |
4905 | ||
4906 | if test "$enableval" = yes; then | |
4907 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes' | |
4908 | else | |
4909 | ac_cv_use_filesystem='wxUSE_FILESYSTEM=no' | |
4910 | fi | |
4911 | ||
4912 | else | |
4913 | ||
4914 | LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}` | |
4915 | if test "x$LINE" != x ; then | |
4916 | eval "DEFAULT_$LINE" | |
4917 | else | |
4918 | no_cache=1 | |
4919 | fi | |
4920 | ||
4921 | ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM | |
4922 | ||
4923 | fi; | |
4924 | ||
4925 | eval "$ac_cv_use_filesystem" | |
4926 | if test "$no_cache" != 1; then | |
4927 | echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp | |
4928 | fi | |
4929 | ||
4930 | if test "$wxUSE_FILESYSTEM" = yes; then | |
4931 | echo "$as_me:$LINENO: result: yes" >&5 | |
4932 | echo "${ECHO_T}yes" >&6 | |
4933 | else | |
4934 | echo "$as_me:$LINENO: result: no" >&5 | |
4935 | echo "${ECHO_T}no" >&6 | |
4936 | fi | |
4937 | ||
4938 | ||
4939 | enablestring= | |
4940 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5 | |
4941 | echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6 | |
4942 | no_cache=0 | |
4943 | # Check whether --enable-fontmap or --disable-fontmap was given. | |
4944 | if test "${enable_fontmap+set}" = set; then | |
4945 | enableval="$enable_fontmap" | |
4946 | ||
4947 | if test "$enableval" = yes; then | |
4948 | ac_cv_use_fontmap='wxUSE_FONTMAP=yes' | |
4949 | else | |
4950 | ac_cv_use_fontmap='wxUSE_FONTMAP=no' | |
4951 | fi | |
4952 | ||
4953 | else | |
4954 | ||
4955 | LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}` | |
4956 | if test "x$LINE" != x ; then | |
4957 | eval "DEFAULT_$LINE" | |
4958 | else | |
4959 | no_cache=1 | |
4960 | fi | |
4961 | ||
4962 | ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP | |
4963 | ||
4964 | fi; | |
4965 | ||
4966 | eval "$ac_cv_use_fontmap" | |
4967 | if test "$no_cache" != 1; then | |
4968 | echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp | |
4969 | fi | |
4970 | ||
4971 | if test "$wxUSE_FONTMAP" = yes; then | |
4972 | echo "$as_me:$LINENO: result: yes" >&5 | |
4973 | echo "${ECHO_T}yes" >&6 | |
4974 | else | |
4975 | echo "$as_me:$LINENO: result: no" >&5 | |
4976 | echo "${ECHO_T}no" >&6 | |
4977 | fi | |
4978 | ||
4979 | ||
4980 | enablestring= | |
4981 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5 | |
4982 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6 | |
4983 | no_cache=0 | |
4984 | # Check whether --enable-fs_inet or --disable-fs_inet was given. | |
4985 | if test "${enable_fs_inet+set}" = set; then | |
4986 | enableval="$enable_fs_inet" | |
4987 | ||
4988 | if test "$enableval" = yes; then | |
4989 | ac_cv_use_fs_inet='wxUSE_FS_INET=yes' | |
4990 | else | |
4991 | ac_cv_use_fs_inet='wxUSE_FS_INET=no' | |
4992 | fi | |
4993 | ||
4994 | else | |
4995 | ||
4996 | LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}` | |
4997 | if test "x$LINE" != x ; then | |
4998 | eval "DEFAULT_$LINE" | |
4999 | else | |
5000 | no_cache=1 | |
5001 | fi | |
5002 | ||
5003 | ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET | |
5004 | ||
5005 | fi; | |
5006 | ||
5007 | eval "$ac_cv_use_fs_inet" | |
5008 | if test "$no_cache" != 1; then | |
5009 | echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp | |
5010 | fi | |
5011 | ||
5012 | if test "$wxUSE_FS_INET" = yes; then | |
5013 | echo "$as_me:$LINENO: result: yes" >&5 | |
5014 | echo "${ECHO_T}yes" >&6 | |
5015 | else | |
5016 | echo "$as_me:$LINENO: result: no" >&5 | |
5017 | echo "${ECHO_T}no" >&6 | |
5018 | fi | |
5019 | ||
5020 | ||
5021 | enablestring= | |
5022 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5 | |
5023 | echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6 | |
5024 | no_cache=0 | |
5025 | # Check whether --enable-fs_zip or --disable-fs_zip was given. | |
5026 | if test "${enable_fs_zip+set}" = set; then | |
5027 | enableval="$enable_fs_zip" | |
5028 | ||
5029 | if test "$enableval" = yes; then | |
5030 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes' | |
5031 | else | |
5032 | ac_cv_use_fs_zip='wxUSE_FS_ZIP=no' | |
5033 | fi | |
5034 | ||
5035 | else | |
5036 | ||
5037 | LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}` | |
5038 | if test "x$LINE" != x ; then | |
5039 | eval "DEFAULT_$LINE" | |
5040 | else | |
5041 | no_cache=1 | |
5042 | fi | |
5043 | ||
5044 | ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP | |
5045 | ||
5046 | fi; | |
5047 | ||
5048 | eval "$ac_cv_use_fs_zip" | |
5049 | if test "$no_cache" != 1; then | |
5050 | echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp | |
5051 | fi | |
5052 | ||
5053 | if test "$wxUSE_FS_ZIP" = yes; then | |
5054 | echo "$as_me:$LINENO: result: yes" >&5 | |
5055 | echo "${ECHO_T}yes" >&6 | |
5056 | else | |
5057 | echo "$as_me:$LINENO: result: no" >&5 | |
5058 | echo "${ECHO_T}no" >&6 | |
5059 | fi | |
5060 | ||
5061 | ||
5062 | enablestring= | |
5063 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5 | |
5064 | echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6 | |
5065 | no_cache=0 | |
5066 | # Check whether --enable-geometry or --disable-geometry was given. | |
5067 | if test "${enable_geometry+set}" = set; then | |
5068 | enableval="$enable_geometry" | |
5069 | ||
5070 | if test "$enableval" = yes; then | |
5071 | ac_cv_use_geometry='wxUSE_GEOMETRY=yes' | |
5072 | else | |
5073 | ac_cv_use_geometry='wxUSE_GEOMETRY=no' | |
5074 | fi | |
5075 | ||
5076 | else | |
5077 | ||
5078 | LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}` | |
5079 | if test "x$LINE" != x ; then | |
5080 | eval "DEFAULT_$LINE" | |
5081 | else | |
5082 | no_cache=1 | |
5083 | fi | |
5084 | ||
5085 | ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY | |
5086 | ||
5087 | fi; | |
5088 | ||
5089 | eval "$ac_cv_use_geometry" | |
5090 | if test "$no_cache" != 1; then | |
5091 | echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp | |
5092 | fi | |
5093 | ||
5094 | if test "$wxUSE_GEOMETRY" = yes; then | |
5095 | echo "$as_me:$LINENO: result: yes" >&5 | |
5096 | echo "${ECHO_T}yes" >&6 | |
5097 | else | |
5098 | echo "$as_me:$LINENO: result: no" >&5 | |
5099 | echo "${ECHO_T}no" >&6 | |
5100 | fi | |
5101 | ||
5102 | ||
5103 | enablestring= | |
5104 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5 | |
5105 | echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6 | |
5106 | no_cache=0 | |
5107 | # Check whether --enable-log or --disable-log was given. | |
5108 | if test "${enable_log+set}" = set; then | |
5109 | enableval="$enable_log" | |
5110 | ||
5111 | if test "$enableval" = yes; then | |
5112 | ac_cv_use_log='wxUSE_LOG=yes' | |
5113 | else | |
5114 | ac_cv_use_log='wxUSE_LOG=no' | |
5115 | fi | |
5116 | ||
5117 | else | |
5118 | ||
5119 | LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}` | |
5120 | if test "x$LINE" != x ; then | |
5121 | eval "DEFAULT_$LINE" | |
5122 | else | |
5123 | no_cache=1 | |
5124 | fi | |
5125 | ||
5126 | ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG | |
5127 | ||
5128 | fi; | |
5129 | ||
5130 | eval "$ac_cv_use_log" | |
5131 | if test "$no_cache" != 1; then | |
5132 | echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp | |
5133 | fi | |
5134 | ||
5135 | if test "$wxUSE_LOG" = yes; then | |
5136 | echo "$as_me:$LINENO: result: yes" >&5 | |
5137 | echo "${ECHO_T}yes" >&6 | |
5138 | else | |
5139 | echo "$as_me:$LINENO: result: no" >&5 | |
5140 | echo "${ECHO_T}no" >&6 | |
5141 | fi | |
5142 | ||
5143 | ||
5144 | enablestring= | |
5145 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5 | |
5146 | echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6 | |
5147 | no_cache=0 | |
5148 | # Check whether --enable-longlong or --disable-longlong was given. | |
5149 | if test "${enable_longlong+set}" = set; then | |
5150 | enableval="$enable_longlong" | |
5151 | ||
5152 | if test "$enableval" = yes; then | |
5153 | ac_cv_use_longlong='wxUSE_LONGLONG=yes' | |
5154 | else | |
5155 | ac_cv_use_longlong='wxUSE_LONGLONG=no' | |
5156 | fi | |
5157 | ||
5158 | else | |
5159 | ||
5160 | LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}` | |
5161 | if test "x$LINE" != x ; then | |
5162 | eval "DEFAULT_$LINE" | |
5163 | else | |
5164 | no_cache=1 | |
5165 | fi | |
5166 | ||
5167 | ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG | |
5168 | ||
5169 | fi; | |
5170 | ||
5171 | eval "$ac_cv_use_longlong" | |
5172 | if test "$no_cache" != 1; then | |
5173 | echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp | |
5174 | fi | |
5175 | ||
5176 | if test "$wxUSE_LONGLONG" = yes; then | |
5177 | echo "$as_me:$LINENO: result: yes" >&5 | |
5178 | echo "${ECHO_T}yes" >&6 | |
5179 | else | |
5180 | echo "$as_me:$LINENO: result: no" >&5 | |
5181 | echo "${ECHO_T}no" >&6 | |
5182 | fi | |
5183 | ||
5184 | ||
5185 | enablestring= | |
5186 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5 | |
5187 | echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6 | |
5188 | no_cache=0 | |
5189 | # Check whether --enable-mimetype or --disable-mimetype was given. | |
5190 | if test "${enable_mimetype+set}" = set; then | |
5191 | enableval="$enable_mimetype" | |
5192 | ||
5193 | if test "$enableval" = yes; then | |
5194 | ac_cv_use_mimetype='wxUSE_MIMETYPE=yes' | |
5195 | else | |
5196 | ac_cv_use_mimetype='wxUSE_MIMETYPE=no' | |
5197 | fi | |
5198 | ||
5199 | else | |
5200 | ||
5201 | LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}` | |
5202 | if test "x$LINE" != x ; then | |
5203 | eval "DEFAULT_$LINE" | |
5204 | else | |
5205 | no_cache=1 | |
5206 | fi | |
5207 | ||
5208 | ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE | |
5209 | ||
5210 | fi; | |
5211 | ||
5212 | eval "$ac_cv_use_mimetype" | |
5213 | if test "$no_cache" != 1; then | |
5214 | echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp | |
5215 | fi | |
5216 | ||
5217 | if test "$wxUSE_MIMETYPE" = yes; then | |
5218 | echo "$as_me:$LINENO: result: yes" >&5 | |
5219 | echo "${ECHO_T}yes" >&6 | |
5220 | else | |
5221 | echo "$as_me:$LINENO: result: no" >&5 | |
5222 | echo "${ECHO_T}no" >&6 | |
5223 | fi | |
5224 | ||
5225 | ||
5226 | enablestring= | |
5227 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5 | |
5228 | echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6 | |
5229 | no_cache=0 | |
5230 | # Check whether --enable-mslu or --disable-mslu was given. | |
5231 | if test "${enable_mslu+set}" = set; then | |
5232 | enableval="$enable_mslu" | |
5233 | ||
5234 | if test "$enableval" = yes; then | |
5235 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes' | |
5236 | else | |
5237 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no' | |
5238 | fi | |
5239 | ||
5240 | else | |
5241 | ||
5242 | LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}` | |
5243 | if test "x$LINE" != x ; then | |
5244 | eval "DEFAULT_$LINE" | |
5245 | else | |
5246 | no_cache=1 | |
5247 | fi | |
5248 | ||
5249 | ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU | |
5250 | ||
5251 | fi; | |
5252 | ||
5253 | eval "$ac_cv_use_mslu" | |
5254 | if test "$no_cache" != 1; then | |
5255 | echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp | |
5256 | fi | |
5257 | ||
5258 | if test "$wxUSE_UNICODE_MSLU" = yes; then | |
5259 | echo "$as_me:$LINENO: result: yes" >&5 | |
5260 | echo "${ECHO_T}yes" >&6 | |
5261 | else | |
5262 | echo "$as_me:$LINENO: result: no" >&5 | |
5263 | echo "${ECHO_T}no" >&6 | |
5264 | fi | |
5265 | ||
5266 | ||
5267 | enablestring= | |
5268 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5 | |
5269 | echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6 | |
5270 | no_cache=0 | |
5271 | # Check whether --enable-snglinst or --disable-snglinst was given. | |
5272 | if test "${enable_snglinst+set}" = set; then | |
5273 | enableval="$enable_snglinst" | |
5274 | ||
5275 | if test "$enableval" = yes; then | |
5276 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes' | |
5277 | else | |
5278 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no' | |
5279 | fi | |
5280 | ||
5281 | else | |
5282 | ||
5283 | LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}` | |
5284 | if test "x$LINE" != x ; then | |
5285 | eval "DEFAULT_$LINE" | |
5286 | else | |
5287 | no_cache=1 | |
5288 | fi | |
5289 | ||
5290 | ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER | |
5291 | ||
5292 | fi; | |
5293 | ||
5294 | eval "$ac_cv_use_snglinst" | |
5295 | if test "$no_cache" != 1; then | |
5296 | echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp | |
5297 | fi | |
5298 | ||
5299 | if test "$wxUSE_SNGLINST_CHECKER" = yes; then | |
5300 | echo "$as_me:$LINENO: result: yes" >&5 | |
5301 | echo "${ECHO_T}yes" >&6 | |
5302 | else | |
5303 | echo "$as_me:$LINENO: result: no" >&5 | |
5304 | echo "${ECHO_T}no" >&6 | |
5305 | fi | |
5306 | ||
5307 | ||
5308 | enablestring= | |
5309 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5 | |
5310 | echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6 | |
5311 | no_cache=0 | |
5312 | # Check whether --enable-streams or --disable-streams was given. | |
5313 | if test "${enable_streams+set}" = set; then | |
5314 | enableval="$enable_streams" | |
5315 | ||
5316 | if test "$enableval" = yes; then | |
5317 | ac_cv_use_streams='wxUSE_STREAMS=yes' | |
5318 | else | |
5319 | ac_cv_use_streams='wxUSE_STREAMS=no' | |
5320 | fi | |
5321 | ||
5322 | else | |
5323 | ||
5324 | LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}` | |
5325 | if test "x$LINE" != x ; then | |
5326 | eval "DEFAULT_$LINE" | |
5327 | else | |
5328 | no_cache=1 | |
5329 | fi | |
5330 | ||
5331 | ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS | |
5332 | ||
5333 | fi; | |
5334 | ||
5335 | eval "$ac_cv_use_streams" | |
5336 | if test "$no_cache" != 1; then | |
5337 | echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp | |
5338 | fi | |
5339 | ||
5340 | if test "$wxUSE_STREAMS" = yes; then | |
5341 | echo "$as_me:$LINENO: result: yes" >&5 | |
5342 | echo "${ECHO_T}yes" >&6 | |
5343 | else | |
5344 | echo "$as_me:$LINENO: result: no" >&5 | |
5345 | echo "${ECHO_T}no" >&6 | |
5346 | fi | |
5347 | ||
5348 | ||
5349 | enablestring= | |
5350 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5 | |
5351 | echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6 | |
5352 | no_cache=0 | |
5353 | # Check whether --enable-std_iostreams or --disable-std_iostreams was given. | |
5354 | if test "${enable_std_iostreams+set}" = set; then | |
5355 | enableval="$enable_std_iostreams" | |
5356 | ||
5357 | if test "$enableval" = yes; then | |
5358 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes' | |
5359 | else | |
5360 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no' | |
5361 | fi | |
5362 | ||
5363 | else | |
5364 | ||
5365 | LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}` | |
5366 | if test "x$LINE" != x ; then | |
5367 | eval "DEFAULT_$LINE" | |
5368 | else | |
5369 | no_cache=1 | |
5370 | fi | |
5371 | ||
5372 | ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM | |
5373 | ||
5374 | fi; | |
5375 | ||
5376 | eval "$ac_cv_use_std_iostreams" | |
5377 | if test "$no_cache" != 1; then | |
5378 | echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp | |
5379 | fi | |
5380 | ||
5381 | if test "$wxUSE_STD_IOSTREAM" = yes; then | |
5382 | echo "$as_me:$LINENO: result: yes" >&5 | |
5383 | echo "${ECHO_T}yes" >&6 | |
5384 | else | |
5385 | echo "$as_me:$LINENO: result: no" >&5 | |
5386 | echo "${ECHO_T}no" >&6 | |
5387 | fi | |
5388 | ||
5389 | ||
5390 | enablestring= | |
5391 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5 | |
5392 | echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6 | |
5393 | no_cache=0 | |
5394 | # Check whether --enable-stopwatch or --disable-stopwatch was given. | |
5395 | if test "${enable_stopwatch+set}" = set; then | |
5396 | enableval="$enable_stopwatch" | |
5397 | ||
5398 | if test "$enableval" = yes; then | |
5399 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes' | |
5400 | else | |
5401 | ac_cv_use_stopwatch='wxUSE_STOPWATCH=no' | |
5402 | fi | |
5403 | ||
5404 | else | |
5405 | ||
5406 | LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}` | |
5407 | if test "x$LINE" != x ; then | |
5408 | eval "DEFAULT_$LINE" | |
5409 | else | |
5410 | no_cache=1 | |
5411 | fi | |
5412 | ||
5413 | ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH | |
5414 | ||
5415 | fi; | |
5416 | ||
5417 | eval "$ac_cv_use_stopwatch" | |
5418 | if test "$no_cache" != 1; then | |
5419 | echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp | |
5420 | fi | |
5421 | ||
5422 | if test "$wxUSE_STOPWATCH" = yes; then | |
5423 | echo "$as_me:$LINENO: result: yes" >&5 | |
5424 | echo "${ECHO_T}yes" >&6 | |
5425 | else | |
5426 | echo "$as_me:$LINENO: result: no" >&5 | |
5427 | echo "${ECHO_T}no" >&6 | |
5428 | fi | |
5429 | ||
5430 | ||
5431 | enablestring= | |
5432 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5 | |
5433 | echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6 | |
5434 | no_cache=0 | |
5435 | # Check whether --enable-system_options or --disable-system_options was given. | |
5436 | if test "${enable_system_options+set}" = set; then | |
5437 | enableval="$enable_system_options" | |
5438 | ||
5439 | if test "$enableval" = yes; then | |
5440 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes' | |
5441 | else | |
5442 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no' | |
5443 | fi | |
5444 | ||
5445 | else | |
5446 | ||
5447 | LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}` | |
5448 | if test "x$LINE" != x ; then | |
5449 | eval "DEFAULT_$LINE" | |
5450 | else | |
5451 | no_cache=1 | |
5452 | fi | |
5453 | ||
5454 | ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS | |
5455 | ||
5456 | fi; | |
5457 | ||
5458 | eval "$ac_cv_use_system_options" | |
5459 | if test "$no_cache" != 1; then | |
5460 | echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp | |
5461 | fi | |
5462 | ||
5463 | if test "$wxUSE_SYSTEM_OPTIONS" = yes; then | |
5464 | echo "$as_me:$LINENO: result: yes" >&5 | |
5465 | echo "${ECHO_T}yes" >&6 | |
5466 | else | |
5467 | echo "$as_me:$LINENO: result: no" >&5 | |
5468 | echo "${ECHO_T}no" >&6 | |
5469 | fi | |
5470 | ||
5471 | ||
5472 | enablestring= | |
5473 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5 | |
5474 | echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6 | |
5475 | no_cache=0 | |
5476 | # Check whether --enable-textbuf or --disable-textbuf was given. | |
5477 | if test "${enable_textbuf+set}" = set; then | |
5478 | enableval="$enable_textbuf" | |
5479 | ||
5480 | if test "$enableval" = yes; then | |
5481 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes' | |
5482 | else | |
5483 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no' | |
5484 | fi | |
5485 | ||
5486 | else | |
5487 | ||
5488 | LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}` | |
5489 | if test "x$LINE" != x ; then | |
5490 | eval "DEFAULT_$LINE" | |
5491 | else | |
5492 | no_cache=1 | |
5493 | fi | |
5494 | ||
5495 | ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER | |
5496 | ||
5497 | fi; | |
5498 | ||
5499 | eval "$ac_cv_use_textbuf" | |
5500 | if test "$no_cache" != 1; then | |
5501 | echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp | |
5502 | fi | |
5503 | ||
5504 | if test "$wxUSE_TEXTBUFFER" = yes; then | |
5505 | echo "$as_me:$LINENO: result: yes" >&5 | |
5506 | echo "${ECHO_T}yes" >&6 | |
5507 | else | |
5508 | echo "$as_me:$LINENO: result: no" >&5 | |
5509 | echo "${ECHO_T}no" >&6 | |
5510 | fi | |
5511 | ||
5512 | ||
5513 | enablestring= | |
5514 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5 | |
5515 | echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6 | |
5516 | no_cache=0 | |
5517 | # Check whether --enable-textfile or --disable-textfile was given. | |
5518 | if test "${enable_textfile+set}" = set; then | |
5519 | enableval="$enable_textfile" | |
5520 | ||
5521 | if test "$enableval" = yes; then | |
5522 | ac_cv_use_textfile='wxUSE_TEXTFILE=yes' | |
5523 | else | |
5524 | ac_cv_use_textfile='wxUSE_TEXTFILE=no' | |
5525 | fi | |
5526 | ||
5527 | else | |
5528 | ||
5529 | LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}` | |
5530 | if test "x$LINE" != x ; then | |
5531 | eval "DEFAULT_$LINE" | |
5532 | else | |
5533 | no_cache=1 | |
5534 | fi | |
5535 | ||
5536 | ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE | |
5537 | ||
5538 | fi; | |
5539 | ||
5540 | eval "$ac_cv_use_textfile" | |
5541 | if test "$no_cache" != 1; then | |
5542 | echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp | |
5543 | fi | |
5544 | ||
5545 | if test "$wxUSE_TEXTFILE" = yes; then | |
5546 | echo "$as_me:$LINENO: result: yes" >&5 | |
5547 | echo "${ECHO_T}yes" >&6 | |
5548 | else | |
5549 | echo "$as_me:$LINENO: result: no" >&5 | |
5550 | echo "${ECHO_T}no" >&6 | |
5551 | fi | |
5552 | ||
5553 | ||
5554 | enablestring= | |
5555 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5 | |
5556 | echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6 | |
5557 | no_cache=0 | |
5558 | # Check whether --enable-timer or --disable-timer was given. | |
5559 | if test "${enable_timer+set}" = set; then | |
5560 | enableval="$enable_timer" | |
5561 | ||
5562 | if test "$enableval" = yes; then | |
5563 | ac_cv_use_timer='wxUSE_TIMER=yes' | |
5564 | else | |
5565 | ac_cv_use_timer='wxUSE_TIMER=no' | |
5566 | fi | |
5567 | ||
5568 | else | |
5569 | ||
5570 | LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}` | |
5571 | if test "x$LINE" != x ; then | |
5572 | eval "DEFAULT_$LINE" | |
5573 | else | |
5574 | no_cache=1 | |
5575 | fi | |
5576 | ||
5577 | ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER | |
5578 | ||
5579 | fi; | |
5580 | ||
5581 | eval "$ac_cv_use_timer" | |
5582 | if test "$no_cache" != 1; then | |
5583 | echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp | |
5584 | fi | |
5585 | ||
5586 | if test "$wxUSE_TIMER" = yes; then | |
5587 | echo "$as_me:$LINENO: result: yes" >&5 | |
5588 | echo "${ECHO_T}yes" >&6 | |
5589 | else | |
5590 | echo "$as_me:$LINENO: result: no" >&5 | |
5591 | echo "${ECHO_T}no" >&6 | |
5592 | fi | |
5593 | ||
5594 | ||
5595 | enablestring= | |
5596 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5 | |
5597 | echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6 | |
5598 | no_cache=0 | |
5599 | # Check whether --enable-unicode or --disable-unicode was given. | |
5600 | if test "${enable_unicode+set}" = set; then | |
5601 | enableval="$enable_unicode" | |
5602 | ||
5603 | if test "$enableval" = yes; then | |
5604 | ac_cv_use_unicode='wxUSE_UNICODE=yes' | |
5605 | else | |
5606 | ac_cv_use_unicode='wxUSE_UNICODE=no' | |
5607 | fi | |
5608 | ||
5609 | else | |
5610 | ||
5611 | LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}` | |
5612 | if test "x$LINE" != x ; then | |
5613 | eval "DEFAULT_$LINE" | |
5614 | else | |
5615 | no_cache=1 | |
5616 | fi | |
5617 | ||
5618 | ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE | |
5619 | ||
5620 | fi; | |
5621 | ||
5622 | eval "$ac_cv_use_unicode" | |
5623 | if test "$no_cache" != 1; then | |
5624 | echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp | |
5625 | fi | |
5626 | ||
5627 | if test "$wxUSE_UNICODE" = yes; then | |
5628 | echo "$as_me:$LINENO: result: yes" >&5 | |
5629 | echo "${ECHO_T}yes" >&6 | |
5630 | else | |
5631 | echo "$as_me:$LINENO: result: no" >&5 | |
5632 | echo "${ECHO_T}no" >&6 | |
5633 | fi | |
5634 | ||
5635 | ||
5636 | enablestring= | |
5637 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5 | |
5638 | echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6 | |
5639 | no_cache=0 | |
5640 | # Check whether --enable-sound or --disable-sound was given. | |
5641 | if test "${enable_sound+set}" = set; then | |
5642 | enableval="$enable_sound" | |
5643 | ||
5644 | if test "$enableval" = yes; then | |
5645 | ac_cv_use_sound='wxUSE_SOUND=yes' | |
5646 | else | |
5647 | ac_cv_use_sound='wxUSE_SOUND=no' | |
5648 | fi | |
5649 | ||
5650 | else | |
5651 | ||
5652 | LINE=`grep "wxUSE_SOUND" ${wx_arg_cache_file}` | |
5653 | if test "x$LINE" != x ; then | |
5654 | eval "DEFAULT_$LINE" | |
5655 | else | |
5656 | no_cache=1 | |
5657 | fi | |
5658 | ||
5659 | ac_cv_use_sound='wxUSE_SOUND='$DEFAULT_wxUSE_SOUND | |
5660 | ||
5661 | fi; | |
5662 | ||
5663 | eval "$ac_cv_use_sound" | |
5664 | if test "$no_cache" != 1; then | |
5665 | echo $ac_cv_use_sound >> ${wx_arg_cache_file}.tmp | |
5666 | fi | |
5667 | ||
5668 | if test "$wxUSE_SOUND" = yes; then | |
5669 | echo "$as_me:$LINENO: result: yes" >&5 | |
5670 | echo "${ECHO_T}yes" >&6 | |
5671 | else | |
5672 | echo "$as_me:$LINENO: result: no" >&5 | |
5673 | echo "${ECHO_T}no" >&6 | |
5674 | fi | |
5675 | ||
5676 | ||
5677 | enablestring= | |
5678 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxprintfv" >&5 | |
5679 | echo $ECHO_N "checking for --${enablestring:-enable}-wxprintfv... $ECHO_C" >&6 | |
5680 | no_cache=0 | |
5681 | # Check whether --enable-wxprintfv or --disable-wxprintfv was given. | |
5682 | if test "${enable_wxprintfv+set}" = set; then | |
5683 | enableval="$enable_wxprintfv" | |
5684 | ||
5685 | if test "$enableval" = yes; then | |
5686 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes' | |
5687 | else | |
5688 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no' | |
5689 | fi | |
5690 | ||
5691 | else | |
5692 | ||
5693 | LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}` | |
5694 | if test "x$LINE" != x ; then | |
5695 | eval "DEFAULT_$LINE" | |
5696 | else | |
5697 | no_cache=1 | |
5698 | fi | |
5699 | ||
5700 | ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF | |
5701 | ||
5702 | fi; | |
5703 | ||
5704 | eval "$ac_cv_use_wxprintfv" | |
5705 | if test "$no_cache" != 1; then | |
5706 | echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp | |
5707 | fi | |
5708 | ||
5709 | if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then | |
5710 | echo "$as_me:$LINENO: result: yes" >&5 | |
5711 | echo "${ECHO_T}yes" >&6 | |
5712 | else | |
5713 | echo "$as_me:$LINENO: result: no" >&5 | |
5714 | echo "${ECHO_T}no" >&6 | |
5715 | fi | |
5716 | ||
5717 | ||
5718 | enablestring= | |
5719 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5 | |
5720 | echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6 | |
5721 | no_cache=0 | |
5722 | # Check whether --enable-zipstream or --disable-zipstream was given. | |
5723 | if test "${enable_zipstream+set}" = set; then | |
5724 | enableval="$enable_zipstream" | |
5725 | ||
5726 | if test "$enableval" = yes; then | |
5727 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes' | |
5728 | else | |
5729 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no' | |
5730 | fi | |
5731 | ||
5732 | else | |
5733 | ||
5734 | LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}` | |
5735 | if test "x$LINE" != x ; then | |
5736 | eval "DEFAULT_$LINE" | |
5737 | else | |
5738 | no_cache=1 | |
5739 | fi | |
5740 | ||
5741 | ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM | |
5742 | ||
5743 | fi; | |
5744 | ||
5745 | eval "$ac_cv_use_zipstream" | |
5746 | if test "$no_cache" != 1; then | |
5747 | echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp | |
5748 | fi | |
5749 | ||
5750 | if test "$wxUSE_ZIPSTREAM" = yes; then | |
5751 | echo "$as_me:$LINENO: result: yes" >&5 | |
5752 | echo "${ECHO_T}yes" >&6 | |
5753 | else | |
5754 | echo "$as_me:$LINENO: result: no" >&5 | |
5755 | echo "${ECHO_T}no" >&6 | |
5756 | fi | |
5757 | ||
5758 | ||
a848cd7e SC |
5759 | |
5760 | enablestring= | |
5761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5 | |
5762 | echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6 | |
5763 | no_cache=0 | |
5764 | # Check whether --enable-url or --disable-url was given. | |
5765 | if test "${enable_url+set}" = set; then | |
5766 | enableval="$enable_url" | |
5767 | ||
5768 | if test "$enableval" = yes; then | |
5769 | ac_cv_use_url='wxUSE_URL=yes' | |
5770 | else | |
5771 | ac_cv_use_url='wxUSE_URL=no' | |
5772 | fi | |
5773 | ||
5774 | else | |
5775 | ||
5776 | LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}` | |
5777 | if test "x$LINE" != x ; then | |
5778 | eval "DEFAULT_$LINE" | |
5779 | else | |
5780 | no_cache=1 | |
5781 | fi | |
5782 | ||
5783 | ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL | |
5784 | ||
5785 | fi; | |
5786 | ||
5787 | eval "$ac_cv_use_url" | |
5788 | if test "$no_cache" != 1; then | |
5789 | echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp | |
5790 | fi | |
5791 | ||
5792 | if test "$wxUSE_URL" = yes; then | |
5793 | echo "$as_me:$LINENO: result: yes" >&5 | |
5794 | echo "${ECHO_T}yes" >&6 | |
5795 | else | |
5796 | echo "$as_me:$LINENO: result: no" >&5 | |
5797 | echo "${ECHO_T}no" >&6 | |
5798 | fi | |
5799 | ||
5800 | ||
5801 | enablestring= | |
5802 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5 | |
5803 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6 | |
5804 | no_cache=0 | |
5805 | # Check whether --enable-protocol or --disable-protocol was given. | |
5806 | if test "${enable_protocol+set}" = set; then | |
5807 | enableval="$enable_protocol" | |
5808 | ||
5809 | if test "$enableval" = yes; then | |
5810 | ac_cv_use_protocol='wxUSE_PROTOCOL=yes' | |
5811 | else | |
5812 | ac_cv_use_protocol='wxUSE_PROTOCOL=no' | |
5813 | fi | |
5814 | ||
5815 | else | |
5816 | ||
5817 | LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}` | |
5818 | if test "x$LINE" != x ; then | |
5819 | eval "DEFAULT_$LINE" | |
5820 | else | |
5821 | no_cache=1 | |
5822 | fi | |
5823 | ||
5824 | ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL | |
5825 | ||
5826 | fi; | |
5827 | ||
5828 | eval "$ac_cv_use_protocol" | |
5829 | if test "$no_cache" != 1; then | |
5830 | echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp | |
5831 | fi | |
5832 | ||
5833 | if test "$wxUSE_PROTOCOL" = yes; then | |
5834 | echo "$as_me:$LINENO: result: yes" >&5 | |
5835 | echo "${ECHO_T}yes" >&6 | |
5836 | else | |
5837 | echo "$as_me:$LINENO: result: no" >&5 | |
5838 | echo "${ECHO_T}no" >&6 | |
5839 | fi | |
5840 | ||
5841 | ||
5842 | enablestring= | |
5843 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5 | |
5844 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6 | |
5845 | no_cache=0 | |
5846 | # Check whether --enable-protocol_http or --disable-protocol_http was given. | |
5847 | if test "${enable_protocol_http+set}" = set; then | |
5848 | enableval="$enable_protocol_http" | |
5849 | ||
5850 | if test "$enableval" = yes; then | |
5851 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes' | |
5852 | else | |
5853 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no' | |
5854 | fi | |
5855 | ||
5856 | else | |
5857 | ||
5858 | LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}` | |
5859 | if test "x$LINE" != x ; then | |
5860 | eval "DEFAULT_$LINE" | |
5861 | else | |
5862 | no_cache=1 | |
5863 | fi | |
5864 | ||
5865 | ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP | |
5866 | ||
5867 | fi; | |
5868 | ||
5869 | eval "$ac_cv_use_protocol_http" | |
5870 | if test "$no_cache" != 1; then | |
5871 | echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp | |
5872 | fi | |
5873 | ||
5874 | if test "$wxUSE_PROTOCOL_HTTP" = yes; then | |
5875 | echo "$as_me:$LINENO: result: yes" >&5 | |
5876 | echo "${ECHO_T}yes" >&6 | |
5877 | else | |
5878 | echo "$as_me:$LINENO: result: no" >&5 | |
5879 | echo "${ECHO_T}no" >&6 | |
5880 | fi | |
5881 | ||
5882 | ||
5883 | enablestring= | |
5884 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5 | |
5885 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6 | |
5886 | no_cache=0 | |
5887 | # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given. | |
5888 | if test "${enable_protocol_ftp+set}" = set; then | |
5889 | enableval="$enable_protocol_ftp" | |
5890 | ||
5891 | if test "$enableval" = yes; then | |
5892 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes' | |
5893 | else | |
5894 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no' | |
5895 | fi | |
5896 | ||
5897 | else | |
5898 | ||
5899 | LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}` | |
5900 | if test "x$LINE" != x ; then | |
5901 | eval "DEFAULT_$LINE" | |
5902 | else | |
5903 | no_cache=1 | |
5904 | fi | |
5905 | ||
5906 | ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP | |
5907 | ||
5908 | fi; | |
5909 | ||
5910 | eval "$ac_cv_use_protocol_ftp" | |
5911 | if test "$no_cache" != 1; then | |
5912 | echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp | |
5913 | fi | |
5914 | ||
5915 | if test "$wxUSE_PROTOCOL_FTP" = yes; then | |
5916 | echo "$as_me:$LINENO: result: yes" >&5 | |
5917 | echo "${ECHO_T}yes" >&6 | |
5918 | else | |
5919 | echo "$as_me:$LINENO: result: no" >&5 | |
5920 | echo "${ECHO_T}no" >&6 | |
5921 | fi | |
5922 | ||
5923 | ||
5924 | enablestring= | |
5925 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5 | |
5926 | echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6 | |
5927 | no_cache=0 | |
5928 | # Check whether --enable-protocol_file or --disable-protocol_file was given. | |
5929 | if test "${enable_protocol_file+set}" = set; then | |
5930 | enableval="$enable_protocol_file" | |
5931 | ||
5932 | if test "$enableval" = yes; then | |
5933 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes' | |
5934 | else | |
5935 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no' | |
5936 | fi | |
5937 | ||
5938 | else | |
5939 | ||
5940 | LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}` | |
5941 | if test "x$LINE" != x ; then | |
5942 | eval "DEFAULT_$LINE" | |
5943 | else | |
5944 | no_cache=1 | |
5945 | fi | |
5946 | ||
5947 | ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE | |
5948 | ||
5949 | fi; | |
5950 | ||
5951 | eval "$ac_cv_use_protocol_file" | |
5952 | if test "$no_cache" != 1; then | |
5953 | echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp | |
5954 | fi | |
5955 | ||
5956 | if test "$wxUSE_PROTOCOL_FILE" = yes; then | |
5957 | echo "$as_me:$LINENO: result: yes" >&5 | |
5958 | echo "${ECHO_T}yes" >&6 | |
5959 | else | |
5960 | echo "$as_me:$LINENO: result: no" >&5 | |
5961 | echo "${ECHO_T}no" >&6 | |
5962 | fi | |
5963 | ||
5964 | ||
5965 | ||
5966 | ||
5967 | ||
5968 | enablestring= | |
5969 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5 | |
5970 | echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6 | |
5971 | no_cache=0 | |
5972 | # Check whether --enable-threads or --disable-threads was given. | |
5973 | if test "${enable_threads+set}" = set; then | |
5974 | enableval="$enable_threads" | |
5975 | ||
5976 | if test "$enableval" = yes; then | |
5977 | ac_cv_use_threads='wxUSE_THREADS=yes' | |
5978 | else | |
5979 | ac_cv_use_threads='wxUSE_THREADS=no' | |
5980 | fi | |
5981 | ||
5982 | else | |
5983 | ||
5984 | LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}` | |
5985 | if test "x$LINE" != x ; then | |
5986 | eval "DEFAULT_$LINE" | |
5987 | else | |
5988 | no_cache=1 | |
5989 | fi | |
5990 | ||
5991 | ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS | |
5992 | ||
5993 | fi; | |
5994 | ||
5995 | eval "$ac_cv_use_threads" | |
5996 | if test "$no_cache" != 1; then | |
5997 | echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp | |
5998 | fi | |
5999 | ||
6000 | if test "$wxUSE_THREADS" = yes; then | |
6001 | echo "$as_me:$LINENO: result: yes" >&5 | |
6002 | echo "${ECHO_T}yes" >&6 | |
6003 | else | |
6004 | echo "$as_me:$LINENO: result: no" >&5 | |
6005 | echo "${ECHO_T}no" >&6 | |
6006 | fi | |
6007 | ||
6008 | ||
6009 | if test "$wxUSE_GUI" = "yes"; then | |
6010 | ||
6011 | ||
6012 | ||
6013 | enablestring= | |
6014 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5 | |
6015 | echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6 | |
6016 | no_cache=0 | |
6017 | # Check whether --enable-docview or --disable-docview was given. | |
6018 | if test "${enable_docview+set}" = set; then | |
6019 | enableval="$enable_docview" | |
6020 | ||
6021 | if test "$enableval" = yes; then | |
6022 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes' | |
6023 | else | |
6024 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no' | |
6025 | fi | |
6026 | ||
6027 | else | |
6028 | ||
6029 | LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}` | |
6030 | if test "x$LINE" != x ; then | |
6031 | eval "DEFAULT_$LINE" | |
6032 | else | |
6033 | no_cache=1 | |
6034 | fi | |
6035 | ||
6036 | ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE | |
6037 | ||
6038 | fi; | |
6039 | ||
6040 | eval "$ac_cv_use_docview" | |
6041 | if test "$no_cache" != 1; then | |
6042 | echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp | |
6043 | fi | |
6044 | ||
6045 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then | |
6046 | echo "$as_me:$LINENO: result: yes" >&5 | |
6047 | echo "${ECHO_T}yes" >&6 | |
6048 | else | |
6049 | echo "$as_me:$LINENO: result: no" >&5 | |
6050 | echo "${ECHO_T}no" >&6 | |
6051 | fi | |
6052 | ||
6053 | ||
6054 | enablestring= | |
6055 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5 | |
6056 | echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6 | |
6057 | no_cache=0 | |
6058 | # Check whether --enable-help or --disable-help was given. | |
6059 | if test "${enable_help+set}" = set; then | |
6060 | enableval="$enable_help" | |
6061 | ||
6062 | if test "$enableval" = yes; then | |
6063 | ac_cv_use_help='wxUSE_HELP=yes' | |
6064 | else | |
6065 | ac_cv_use_help='wxUSE_HELP=no' | |
6066 | fi | |
6067 | ||
6068 | else | |
6069 | ||
6070 | LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}` | |
6071 | if test "x$LINE" != x ; then | |
6072 | eval "DEFAULT_$LINE" | |
6073 | else | |
6074 | no_cache=1 | |
6075 | fi | |
6076 | ||
6077 | ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP | |
6078 | ||
6079 | fi; | |
6080 | ||
6081 | eval "$ac_cv_use_help" | |
6082 | if test "$no_cache" != 1; then | |
6083 | echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp | |
6084 | fi | |
6085 | ||
6086 | if test "$wxUSE_HELP" = yes; then | |
6087 | echo "$as_me:$LINENO: result: yes" >&5 | |
6088 | echo "${ECHO_T}yes" >&6 | |
6089 | else | |
6090 | echo "$as_me:$LINENO: result: no" >&5 | |
6091 | echo "${ECHO_T}no" >&6 | |
6092 | fi | |
6093 | ||
6094 | ||
6095 | enablestring= | |
6096 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5 | |
6097 | echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6 | |
6098 | no_cache=0 | |
6099 | # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given. | |
6100 | if test "${enable_mshtmlhelp+set}" = set; then | |
6101 | enableval="$enable_mshtmlhelp" | |
6102 | ||
6103 | if test "$enableval" = yes; then | |
6104 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes' | |
6105 | else | |
6106 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no' | |
6107 | fi | |
6108 | ||
6109 | else | |
6110 | ||
6111 | LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}` | |
6112 | if test "x$LINE" != x ; then | |
6113 | eval "DEFAULT_$LINE" | |
6114 | else | |
6115 | no_cache=1 | |
6116 | fi | |
6117 | ||
6118 | ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP | |
6119 | ||
6120 | fi; | |
6121 | ||
6122 | eval "$ac_cv_use_mshtmlhelp" | |
6123 | if test "$no_cache" != 1; then | |
6124 | echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp | |
6125 | fi | |
6126 | ||
6127 | if test "$wxUSE_MS_HTML_HELP" = yes; then | |
6128 | echo "$as_me:$LINENO: result: yes" >&5 | |
6129 | echo "${ECHO_T}yes" >&6 | |
6130 | else | |
6131 | echo "$as_me:$LINENO: result: no" >&5 | |
6132 | echo "${ECHO_T}no" >&6 | |
6133 | fi | |
6134 | ||
6135 | ||
6136 | enablestring= | |
6137 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5 | |
6138 | echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6 | |
6139 | no_cache=0 | |
6140 | # Check whether --enable-html or --disable-html was given. | |
6141 | if test "${enable_html+set}" = set; then | |
6142 | enableval="$enable_html" | |
6143 | ||
6144 | if test "$enableval" = yes; then | |
6145 | ac_cv_use_html='wxUSE_HTML=yes' | |
6146 | else | |
6147 | ac_cv_use_html='wxUSE_HTML=no' | |
6148 | fi | |
6149 | ||
6150 | else | |
6151 | ||
6152 | LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}` | |
6153 | if test "x$LINE" != x ; then | |
6154 | eval "DEFAULT_$LINE" | |
6155 | else | |
6156 | no_cache=1 | |
6157 | fi | |
6158 | ||
6159 | ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML | |
6160 | ||
6161 | fi; | |
6162 | ||
6163 | eval "$ac_cv_use_html" | |
6164 | if test "$no_cache" != 1; then | |
6165 | echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp | |
6166 | fi | |
6167 | ||
6168 | if test "$wxUSE_HTML" = yes; then | |
6169 | echo "$as_me:$LINENO: result: yes" >&5 | |
6170 | echo "${ECHO_T}yes" >&6 | |
6171 | else | |
6172 | echo "$as_me:$LINENO: result: no" >&5 | |
6173 | echo "${ECHO_T}no" >&6 | |
6174 | fi | |
6175 | ||
6176 | ||
6177 | enablestring= | |
6178 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5 | |
6179 | echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6 | |
6180 | no_cache=0 | |
6181 | # Check whether --enable-htmlhelp or --disable-htmlhelp was given. | |
6182 | if test "${enable_htmlhelp+set}" = set; then | |
6183 | enableval="$enable_htmlhelp" | |
6184 | ||
6185 | if test "$enableval" = yes; then | |
6186 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes' | |
6187 | else | |
6188 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no' | |
6189 | fi | |
6190 | ||
6191 | else | |
6192 | ||
6193 | LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}` | |
6194 | if test "x$LINE" != x ; then | |
6195 | eval "DEFAULT_$LINE" | |
6196 | else | |
6197 | no_cache=1 | |
6198 | fi | |
6199 | ||
6200 | ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP | |
6201 | ||
6202 | fi; | |
6203 | ||
6204 | eval "$ac_cv_use_htmlhelp" | |
6205 | if test "$no_cache" != 1; then | |
6206 | echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp | |
6207 | fi | |
6208 | ||
6209 | if test "$wxUSE_WXHTML_HELP" = yes; then | |
6210 | echo "$as_me:$LINENO: result: yes" >&5 | |
6211 | echo "${ECHO_T}yes" >&6 | |
6212 | else | |
6213 | echo "$as_me:$LINENO: result: no" >&5 | |
6214 | echo "${ECHO_T}no" >&6 | |
6215 | fi | |
6216 | ||
6217 | ||
6218 | enablestring= | |
6219 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5 | |
6220 | echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6 | |
6221 | no_cache=0 | |
6222 | # Check whether --enable-constraints or --disable-constraints was given. | |
6223 | if test "${enable_constraints+set}" = set; then | |
6224 | enableval="$enable_constraints" | |
6225 | ||
6226 | if test "$enableval" = yes; then | |
6227 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes' | |
6228 | else | |
6229 | ac_cv_use_constraints='wxUSE_CONSTRAINTS=no' | |
6230 | fi | |
6231 | ||
6232 | else | |
6233 | ||
6234 | LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}` | |
6235 | if test "x$LINE" != x ; then | |
6236 | eval "DEFAULT_$LINE" | |
6237 | else | |
6238 | no_cache=1 | |
6239 | fi | |
6240 | ||
6241 | ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS | |
6242 | ||
6243 | fi; | |
6244 | ||
6245 | eval "$ac_cv_use_constraints" | |
6246 | if test "$no_cache" != 1; then | |
6247 | echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp | |
6248 | fi | |
6249 | ||
6250 | if test "$wxUSE_CONSTRAINTS" = yes; then | |
6251 | echo "$as_me:$LINENO: result: yes" >&5 | |
6252 | echo "${ECHO_T}yes" >&6 | |
6253 | else | |
6254 | echo "$as_me:$LINENO: result: no" >&5 | |
6255 | echo "${ECHO_T}no" >&6 | |
6256 | fi | |
6257 | ||
6258 | ||
6259 | enablestring= | |
6260 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5 | |
6261 | echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6 | |
6262 | no_cache=0 | |
6263 | # Check whether --enable-printarch or --disable-printarch was given. | |
6264 | if test "${enable_printarch+set}" = set; then | |
6265 | enableval="$enable_printarch" | |
6266 | ||
6267 | if test "$enableval" = yes; then | |
6268 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes' | |
6269 | else | |
6270 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no' | |
6271 | fi | |
6272 | ||
6273 | else | |
6274 | ||
6275 | LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}` | |
6276 | if test "x$LINE" != x ; then | |
6277 | eval "DEFAULT_$LINE" | |
6278 | else | |
6279 | no_cache=1 | |
6280 | fi | |
6281 | ||
6282 | ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE | |
6283 | ||
6284 | fi; | |
6285 | ||
6286 | eval "$ac_cv_use_printarch" | |
6287 | if test "$no_cache" != 1; then | |
6288 | echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp | |
6289 | fi | |
6290 | ||
6291 | if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then | |
6292 | echo "$as_me:$LINENO: result: yes" >&5 | |
6293 | echo "${ECHO_T}yes" >&6 | |
6294 | else | |
6295 | echo "$as_me:$LINENO: result: no" >&5 | |
6296 | echo "${ECHO_T}no" >&6 | |
6297 | fi | |
6298 | ||
6299 | ||
6300 | enablestring= | |
6301 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5 | |
6302 | echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6 | |
6303 | no_cache=0 | |
6304 | # Check whether --enable-mdi or --disable-mdi was given. | |
6305 | if test "${enable_mdi+set}" = set; then | |
6306 | enableval="$enable_mdi" | |
6307 | ||
6308 | if test "$enableval" = yes; then | |
8a7b1113 | 6309 | ac_cv_use_mdi='wxUSE_MDI=yes' |
a848cd7e | 6310 | else |
8a7b1113 | 6311 | ac_cv_use_mdi='wxUSE_MDI=no' |
a848cd7e SC |
6312 | fi |
6313 | ||
6314 | else | |
6315 | ||
8a7b1113 | 6316 | LINE=`grep "wxUSE_MDI" ${wx_arg_cache_file}` |
a848cd7e SC |
6317 | if test "x$LINE" != x ; then |
6318 | eval "DEFAULT_$LINE" | |
6319 | else | |
6320 | no_cache=1 | |
6321 | fi | |
6322 | ||
8a7b1113 | 6323 | ac_cv_use_mdi='wxUSE_MDI='$DEFAULT_wxUSE_MDI |
a848cd7e SC |
6324 | |
6325 | fi; | |
6326 | ||
6327 | eval "$ac_cv_use_mdi" | |
6328 | if test "$no_cache" != 1; then | |
6329 | echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp | |
6330 | fi | |
6331 | ||
8a7b1113 VZ |
6332 | if test "$wxUSE_MDI" = yes; then |
6333 | echo "$as_me:$LINENO: result: yes" >&5 | |
6334 | echo "${ECHO_T}yes" >&6 | |
6335 | else | |
6336 | echo "$as_me:$LINENO: result: no" >&5 | |
6337 | echo "${ECHO_T}no" >&6 | |
6338 | fi | |
6339 | ||
6340 | ||
6341 | enablestring= | |
6342 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5 | |
6343 | echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6 | |
6344 | no_cache=0 | |
6345 | # Check whether --enable-mdidoc or --disable-mdidoc was given. | |
6346 | if test "${enable_mdidoc+set}" = set; then | |
6347 | enableval="$enable_mdidoc" | |
6348 | ||
6349 | if test "$enableval" = yes; then | |
6350 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes' | |
6351 | else | |
6352 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no' | |
6353 | fi | |
6354 | ||
6355 | else | |
6356 | ||
6357 | LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}` | |
6358 | if test "x$LINE" != x ; then | |
6359 | eval "DEFAULT_$LINE" | |
6360 | else | |
6361 | no_cache=1 | |
6362 | fi | |
6363 | ||
6364 | ac_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE | |
6365 | ||
6366 | fi; | |
6367 | ||
6368 | eval "$ac_cv_use_mdidoc" | |
6369 | if test "$no_cache" != 1; then | |
6370 | echo $ac_cv_use_mdidoc >> ${wx_arg_cache_file}.tmp | |
6371 | fi | |
6372 | ||
a848cd7e SC |
6373 | if test "$wxUSE_MDI_ARCHITECTURE" = yes; then |
6374 | echo "$as_me:$LINENO: result: yes" >&5 | |
6375 | echo "${ECHO_T}yes" >&6 | |
6376 | else | |
6377 | echo "$as_me:$LINENO: result: no" >&5 | |
6378 | echo "${ECHO_T}no" >&6 | |
6379 | fi | |
6380 | ||
6381 | ||
6382 | enablestring= | |
6383 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5 | |
6384 | echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6 | |
6385 | no_cache=0 | |
6386 | # Check whether --enable-loggui or --disable-loggui was given. | |
6387 | if test "${enable_loggui+set}" = set; then | |
6388 | enableval="$enable_loggui" | |
6389 | ||
6390 | if test "$enableval" = yes; then | |
6391 | ac_cv_use_loggui='wxUSE_LOGGUI=yes' | |
6392 | else | |
6393 | ac_cv_use_loggui='wxUSE_LOGGUI=no' | |
6394 | fi | |
6395 | ||
6396 | else | |
6397 | ||
6398 | LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}` | |
6399 | if test "x$LINE" != x ; then | |
6400 | eval "DEFAULT_$LINE" | |
6401 | else | |
6402 | no_cache=1 | |
6403 | fi | |
6404 | ||
6405 | ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI | |
6406 | ||
6407 | fi; | |
6408 | ||
6409 | eval "$ac_cv_use_loggui" | |
6410 | if test "$no_cache" != 1; then | |
6411 | echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp | |
6412 | fi | |
6413 | ||
6414 | if test "$wxUSE_LOGGUI" = yes; then | |
6415 | echo "$as_me:$LINENO: result: yes" >&5 | |
6416 | echo "${ECHO_T}yes" >&6 | |
6417 | else | |
6418 | echo "$as_me:$LINENO: result: no" >&5 | |
6419 | echo "${ECHO_T}no" >&6 | |
6420 | fi | |
6421 | ||
6422 | ||
6423 | enablestring= | |
6424 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5 | |
6425 | echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6 | |
6426 | no_cache=0 | |
6427 | # Check whether --enable-logwin or --disable-logwin was given. | |
6428 | if test "${enable_logwin+set}" = set; then | |
6429 | enableval="$enable_logwin" | |
6430 | ||
6431 | if test "$enableval" = yes; then | |
6432 | ac_cv_use_logwin='wxUSE_LOGWINDOW=yes' | |
6433 | else | |
6434 | ac_cv_use_logwin='wxUSE_LOGWINDOW=no' | |
6435 | fi | |
6436 | ||
6437 | else | |
6438 | ||
6439 | LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}` | |
6440 | if test "x$LINE" != x ; then | |
6441 | eval "DEFAULT_$LINE" | |
6442 | else | |
6443 | no_cache=1 | |
6444 | fi | |
6445 | ||
6446 | ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW | |
6447 | ||
6448 | fi; | |
6449 | ||
6450 | eval "$ac_cv_use_logwin" | |
6451 | if test "$no_cache" != 1; then | |
6452 | echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp | |
6453 | fi | |
6454 | ||
6455 | if test "$wxUSE_LOGWINDOW" = yes; then | |
6456 | echo "$as_me:$LINENO: result: yes" >&5 | |
6457 | echo "${ECHO_T}yes" >&6 | |
6458 | else | |
6459 | echo "$as_me:$LINENO: result: no" >&5 | |
6460 | echo "${ECHO_T}no" >&6 | |
6461 | fi | |
6462 | ||
6463 | ||
6464 | enablestring= | |
6465 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5 | |
6466 | echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6 | |
6467 | no_cache=0 | |
6468 | # Check whether --enable-logdialog or --disable-logdialog was given. | |
6469 | if test "${enable_logdialog+set}" = set; then | |
6470 | enableval="$enable_logdialog" | |
6471 | ||
6472 | if test "$enableval" = yes; then | |
6473 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes' | |
6474 | else | |
6475 | ac_cv_use_logdialog='wxUSE_LOGDIALOG=no' | |
6476 | fi | |
6477 | ||
6478 | else | |
6479 | ||
6480 | LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}` | |
6481 | if test "x$LINE" != x ; then | |
6482 | eval "DEFAULT_$LINE" | |
6483 | else | |
6484 | no_cache=1 | |
6485 | fi | |
6486 | ||
6487 | ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG | |
6488 | ||
6489 | fi; | |
6490 | ||
6491 | eval "$ac_cv_use_logdialog" | |
6492 | if test "$no_cache" != 1; then | |
6493 | echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp | |
6494 | fi | |
6495 | ||
6496 | if test "$wxUSE_LOGDIALOG" = yes; then | |
6497 | echo "$as_me:$LINENO: result: yes" >&5 | |
6498 | echo "${ECHO_T}yes" >&6 | |
6499 | else | |
6500 | echo "$as_me:$LINENO: result: no" >&5 | |
6501 | echo "${ECHO_T}no" >&6 | |
6502 | fi | |
6503 | ||
6504 | ||
6505 | ||
6506 | enablestring= | |
6507 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5 | |
6508 | echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6 | |
6509 | no_cache=0 | |
6510 | # Check whether --enable-postscript or --disable-postscript was given. | |
6511 | if test "${enable_postscript+set}" = set; then | |
6512 | enableval="$enable_postscript" | |
6513 | ||
6514 | if test "$enableval" = yes; then | |
6515 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes' | |
6516 | else | |
6517 | ac_cv_use_postscript='wxUSE_POSTSCRIPT=no' | |
6518 | fi | |
6519 | ||
6520 | else | |
6521 | ||
6522 | LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}` | |
6523 | if test "x$LINE" != x ; then | |
6524 | eval "DEFAULT_$LINE" | |
6525 | else | |
6526 | no_cache=1 | |
6527 | fi | |
6528 | ||
6529 | ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT | |
6530 | ||
6531 | fi; | |
6532 | ||
6533 | eval "$ac_cv_use_postscript" | |
6534 | if test "$no_cache" != 1; then | |
6535 | echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp | |
6536 | fi | |
6537 | ||
6538 | if test "$wxUSE_POSTSCRIPT" = yes; then | |
6539 | echo "$as_me:$LINENO: result: yes" >&5 | |
6540 | echo "${ECHO_T}yes" >&6 | |
6541 | else | |
6542 | echo "$as_me:$LINENO: result: no" >&5 | |
6543 | echo "${ECHO_T}no" >&6 | |
6544 | fi | |
6545 | ||
6546 | ||
6547 | ||
6548 | ||
6549 | ||
6550 | enablestring= | |
6551 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-prologio" >&5 | |
6552 | echo $ECHO_N "checking for --${enablestring:-enable}-prologio... $ECHO_C" >&6 | |
6553 | no_cache=0 | |
6554 | # Check whether --enable-prologio or --disable-prologio was given. | |
6555 | if test "${enable_prologio+set}" = set; then | |
6556 | enableval="$enable_prologio" | |
6557 | ||
6558 | if test "$enableval" = yes; then | |
6559 | ac_cv_use_prologio='wxUSE_PROLOGIO=yes' | |
6560 | else | |
6561 | ac_cv_use_prologio='wxUSE_PROLOGIO=no' | |
6562 | fi | |
6563 | ||
6564 | else | |
6565 | ||
6566 | LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}` | |
6567 | if test "x$LINE" != x ; then | |
6568 | eval "DEFAULT_$LINE" | |
6569 | else | |
6570 | no_cache=1 | |
6571 | fi | |
6572 | ||
6573 | ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO | |
6574 | ||
6575 | fi; | |
6576 | ||
6577 | eval "$ac_cv_use_prologio" | |
6578 | if test "$no_cache" != 1; then | |
6579 | echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp | |
6580 | fi | |
6581 | ||
6582 | if test "$wxUSE_PROLOGIO" = yes; then | |
6583 | echo "$as_me:$LINENO: result: yes" >&5 | |
6584 | echo "${ECHO_T}yes" >&6 | |
6585 | else | |
6586 | echo "$as_me:$LINENO: result: no" >&5 | |
6587 | echo "${ECHO_T}no" >&6 | |
6588 | fi | |
6589 | ||
6590 | ||
6591 | enablestring= | |
6592 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-resources" >&5 | |
6593 | echo $ECHO_N "checking for --${enablestring:-enable}-resources... $ECHO_C" >&6 | |
6594 | no_cache=0 | |
6595 | # Check whether --enable-resources or --disable-resources was given. | |
6596 | if test "${enable_resources+set}" = set; then | |
6597 | enableval="$enable_resources" | |
6598 | ||
6599 | if test "$enableval" = yes; then | |
6600 | ac_cv_use_resources='wxUSE_RESOURCES=yes' | |
6601 | else | |
6602 | ac_cv_use_resources='wxUSE_RESOURCES=no' | |
6603 | fi | |
6604 | ||
6605 | else | |
6606 | ||
6607 | LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}` | |
6608 | if test "x$LINE" != x ; then | |
6609 | eval "DEFAULT_$LINE" | |
6610 | else | |
6611 | no_cache=1 | |
6612 | fi | |
6613 | ||
6614 | ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES | |
6615 | ||
6616 | fi; | |
6617 | ||
6618 | eval "$ac_cv_use_resources" | |
6619 | if test "$no_cache" != 1; then | |
6620 | echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp | |
6621 | fi | |
6622 | ||
6623 | if test "$wxUSE_RESOURCES" = yes; then | |
6624 | echo "$as_me:$LINENO: result: yes" >&5 | |
6625 | echo "${ECHO_T}yes" >&6 | |
6626 | else | |
6627 | echo "$as_me:$LINENO: result: no" >&5 | |
6628 | echo "${ECHO_T}no" >&6 | |
6629 | fi | |
6630 | ||
6631 | ||
6632 | ||
6633 | ||
6634 | enablestring= | |
6635 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5 | |
6636 | echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6 | |
6637 | no_cache=0 | |
6638 | # Check whether --enable-clipboard or --disable-clipboard was given. | |
6639 | if test "${enable_clipboard+set}" = set; then | |
6640 | enableval="$enable_clipboard" | |
6641 | ||
6642 | if test "$enableval" = yes; then | |
6643 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes' | |
6644 | else | |
6645 | ac_cv_use_clipboard='wxUSE_CLIPBOARD=no' | |
6646 | fi | |
6647 | ||
6648 | else | |
6649 | ||
6650 | LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}` | |
6651 | if test "x$LINE" != x ; then | |
6652 | eval "DEFAULT_$LINE" | |
6653 | else | |
6654 | no_cache=1 | |
6655 | fi | |
6656 | ||
6657 | ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD | |
6658 | ||
6659 | fi; | |
6660 | ||
6661 | eval "$ac_cv_use_clipboard" | |
6662 | if test "$no_cache" != 1; then | |
6663 | echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp | |
6664 | fi | |
6665 | ||
6666 | if test "$wxUSE_CLIPBOARD" = yes; then | |
6667 | echo "$as_me:$LINENO: result: yes" >&5 | |
6668 | echo "${ECHO_T}yes" >&6 | |
6669 | else | |
6670 | echo "$as_me:$LINENO: result: no" >&5 | |
6671 | echo "${ECHO_T}no" >&6 | |
6672 | fi | |
6673 | ||
6674 | ||
6675 | enablestring= | |
6676 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5 | |
6677 | echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6 | |
6678 | no_cache=0 | |
6679 | # Check whether --enable-dnd or --disable-dnd was given. | |
6680 | if test "${enable_dnd+set}" = set; then | |
6681 | enableval="$enable_dnd" | |
6682 | ||
6683 | if test "$enableval" = yes; then | |
6684 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes' | |
6685 | else | |
6686 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no' | |
6687 | fi | |
6688 | ||
6689 | else | |
6690 | ||
6691 | LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}` | |
6692 | if test "x$LINE" != x ; then | |
6693 | eval "DEFAULT_$LINE" | |
6694 | else | |
6695 | no_cache=1 | |
6696 | fi | |
6697 | ||
6698 | ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP | |
6699 | ||
6700 | fi; | |
6701 | ||
6702 | eval "$ac_cv_use_dnd" | |
6703 | if test "$no_cache" != 1; then | |
6704 | echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp | |
6705 | fi | |
6706 | ||
6707 | if test "$wxUSE_DRAG_AND_DROP" = yes; then | |
6708 | echo "$as_me:$LINENO: result: yes" >&5 | |
6709 | echo "${ECHO_T}yes" >&6 | |
6710 | else | |
6711 | echo "$as_me:$LINENO: result: no" >&5 | |
6712 | echo "${ECHO_T}no" >&6 | |
6713 | fi | |
6714 | ||
6715 | ||
6716 | enablestring= | |
6717 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
6718 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
6719 | no_cache=0 | |
6720 | # Check whether --enable-metafile or --disable-metafile was given. | |
6721 | if test "${enable_metafile+set}" = set; then | |
6722 | enableval="$enable_metafile" | |
6723 | ||
6724 | if test "$enableval" = yes; then | |
6725 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
6726 | else | |
6727 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
6728 | fi | |
6729 | ||
6730 | else | |
6731 | ||
6732 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
6733 | if test "x$LINE" != x ; then | |
6734 | eval "DEFAULT_$LINE" | |
6735 | else | |
6736 | no_cache=1 | |
6737 | fi | |
6738 | ||
6739 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
6740 | ||
6741 | fi; | |
6742 | ||
6743 | eval "$ac_cv_use_metafile" | |
6744 | if test "$no_cache" != 1; then | |
6745 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
6746 | fi | |
6747 | ||
6748 | if test "$wxUSE_METAFILE" = yes; then | |
6749 | echo "$as_me:$LINENO: result: yes" >&5 | |
6750 | echo "${ECHO_T}yes" >&6 | |
6751 | else | |
6752 | echo "$as_me:$LINENO: result: no" >&5 | |
6753 | echo "${ECHO_T}no" >&6 | |
6754 | fi | |
6755 | ||
6756 | ||
6757 | ||
6758 | ||
6759 | ||
6760 | enablestring= | |
6761 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5 | |
6762 | echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6 | |
6763 | no_cache=0 | |
6764 | # Check whether --enable-controls or --disable-controls was given. | |
6765 | if test "${enable_controls+set}" = set; then | |
6766 | enableval="$enable_controls" | |
6767 | ||
6768 | if test "$enableval" = yes; then | |
6769 | ac_cv_use_controls='wxUSE_CONTROLS=yes' | |
6770 | else | |
6771 | ac_cv_use_controls='wxUSE_CONTROLS=no' | |
6772 | fi | |
6773 | ||
6774 | else | |
6775 | ||
6776 | LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}` | |
6777 | if test "x$LINE" != x ; then | |
6778 | eval "DEFAULT_$LINE" | |
6779 | else | |
6780 | no_cache=1 | |
6781 | fi | |
6782 | ||
6783 | ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS | |
6784 | ||
6785 | fi; | |
6786 | ||
6787 | eval "$ac_cv_use_controls" | |
6788 | if test "$no_cache" != 1; then | |
6789 | echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp | |
6790 | fi | |
6791 | ||
6792 | if test "$wxUSE_CONTROLS" = yes; then | |
6793 | echo "$as_me:$LINENO: result: yes" >&5 | |
6794 | echo "${ECHO_T}yes" >&6 | |
6795 | else | |
6796 | echo "$as_me:$LINENO: result: no" >&5 | |
6797 | echo "${ECHO_T}no" >&6 | |
6798 | fi | |
6799 | ||
6800 | ||
6801 | if test "$wxUSE_CONTROLS" = "yes"; then | |
6802 | DEFAULT_wxUSE_ACCEL=yes | |
6803 | DEFAULT_wxUSE_BMPBUTTON=yes | |
6804 | DEFAULT_wxUSE_BUTTON=yes | |
6805 | DEFAULT_wxUSE_CALCTRL=no | |
6806 | DEFAULT_wxUSE_CARET=yes | |
6807 | DEFAULT_wxUSE_COMBOBOX=yes | |
6808 | DEFAULT_wxUSE_CHECKBOX=yes | |
6809 | DEFAULT_wxUSE_CHECKLISTBOX=yes | |
6810 | DEFAULT_wxUSE_CHOICE=yes | |
6811 | DEFAULT_wxUSE_GAUGE=yes | |
6812 | DEFAULT_wxUSE_GRID=yes | |
6813 | DEFAULT_wxUSE_IMAGLIST=yes | |
6814 | DEFAULT_wxUSE_LISTBOOK=yes | |
6815 | DEFAULT_wxUSE_LISTBOX=yes | |
6816 | DEFAULT_wxUSE_LISTCTRL=yes | |
6817 | DEFAULT_wxUSE_NOTEBOOK=yes | |
6818 | DEFAULT_wxUSE_RADIOBOX=yes | |
6819 | DEFAULT_wxUSE_RADIOBTN=yes | |
6820 | DEFAULT_wxUSE_SASH=yes | |
6821 | DEFAULT_wxUSE_SCROLLBAR=yes | |
6822 | DEFAULT_wxUSE_SLIDER=yes | |
6823 | DEFAULT_wxUSE_SPINBTN=yes | |
6824 | DEFAULT_wxUSE_SPINCTRL=yes | |
6825 | DEFAULT_wxUSE_SPLITTER=yes | |
6826 | DEFAULT_wxUSE_STATBMP=yes | |
6827 | DEFAULT_wxUSE_STATBOX=yes | |
6828 | DEFAULT_wxUSE_STATLINE=yes | |
6829 | DEFAULT_wxUSE_STATUSBAR=yes | |
6830 | DEFAULT_wxUSE_TAB_DIALOG=yes | |
6831 | DEFAULT_wxUSE_TOGGLEBTN=yes | |
6832 | DEFAULT_wxUSE_TOOLBAR=yes | |
6833 | DEFAULT_wxUSE_TOOLBAR_NATIVE=yes | |
6834 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes | |
6835 | DEFAULT_wxUSE_TOOLTIPS=yes | |
6836 | DEFAULT_wxUSE_TREECTRL=yes | |
6837 | DEFAULT_wxUSE_POPUPWIN=yes | |
6838 | DEFAULT_wxUSE_TIPWINDOW=yes | |
6839 | elif test "$wxUSE_CONTROLS" = "no"; then | |
6840 | DEFAULT_wxUSE_ACCEL=no | |
6841 | DEFAULT_wxUSE_BMPBUTTON=no | |
6842 | DEFAULT_wxUSE_BUTTON=no | |
6843 | DEFAULT_wxUSE_CALCTRL=no | |
6844 | DEFAULT_wxUSE_CARET=no | |
6845 | DEFAULT_wxUSE_COMBOBOX=no | |
6846 | DEFAULT_wxUSE_CHECKBOX=no | |
6847 | DEFAULT_wxUSE_CHECKLISTBOX=no | |
6848 | DEFAULT_wxUSE_CHOICE=no | |
6849 | DEFAULT_wxUSE_GAUGE=no | |
6850 | DEFAULT_wxUSE_GRID=no | |
6851 | DEFAULT_wxUSE_IMAGLIST=no | |
6852 | DEFAULT_wxUSE_LISTBOOK=no | |
6853 | DEFAULT_wxUSE_LISTBOX=no | |
6854 | DEFAULT_wxUSE_LISTCTRL=no | |
6855 | DEFAULT_wxUSE_NOTEBOOK=no | |
6856 | DEFAULT_wxUSE_RADIOBOX=no | |
6857 | DEFAULT_wxUSE_RADIOBTN=no | |
6858 | DEFAULT_wxUSE_SASH=no | |
6859 | DEFAULT_wxUSE_SCROLLBAR=no | |
6860 | DEFAULT_wxUSE_SLIDER=no | |
6861 | DEFAULT_wxUSE_SPINBTN=no | |
6862 | DEFAULT_wxUSE_SPINCTRL=no | |
6863 | DEFAULT_wxUSE_SPLITTER=no | |
6864 | DEFAULT_wxUSE_STATBMP=no | |
6865 | DEFAULT_wxUSE_STATBOX=no | |
6866 | DEFAULT_wxUSE_STATLINE=no | |
6867 | DEFAULT_wxUSE_STATUSBAR=no | |
6868 | DEFAULT_wxUSE_TAB_DIALOG=no | |
6869 | DEFAULT_wxUSE_TOGGLEBTN=no | |
6870 | DEFAULT_wxUSE_TOOLBAR=no | |
6871 | DEFAULT_wxUSE_TOOLBAR_NATIVE=no | |
6872 | DEFAULT_wxUSE_TOOLBAR_SIMPLE=no | |
6873 | DEFAULT_wxUSE_TOOLTIPS=no | |
6874 | DEFAULT_wxUSE_TREECTRL=no | |
6875 | DEFAULT_wxUSE_POPUPWIN=no | |
6876 | DEFAULT_wxUSE_TIPWINDOW=no | |
6877 | fi | |
6878 | ||
6879 | ## FIXME: This is a blatant hack | |
6880 | if test "x$wxUSE_COCOA" != "x" -a "$wxUSE_COCOA" != "0" ; then | |
6881 | wxUSE_PRINTING_ARCHITECTURE=no | |
6882 | wxUSE_DRAG_AND_DROP=no | |
6883 | # Generic notebook requires tab dialog | |
6884 | DEFAULT_wxUSE_TABDIALOG=yes | |
6885 | DEFAULT_wxUSE_SCROLLBAR=no | |
6886 | DEFAULT_wxUSE_TOOLTIPS=no | |
6887 | DEFAULT_wxUSE_DRAGIMAGE=no | |
6888 | fi | |
6889 | ||
6890 | ||
6891 | enablestring= | |
6892 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5 | |
6893 | echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6 | |
6894 | no_cache=0 | |
6895 | # Check whether --enable-accel or --disable-accel was given. | |
6896 | if test "${enable_accel+set}" = set; then | |
6897 | enableval="$enable_accel" | |
6898 | ||
6899 | if test "$enableval" = yes; then | |
6900 | ac_cv_use_accel='wxUSE_ACCEL=yes' | |
6901 | else | |
6902 | ac_cv_use_accel='wxUSE_ACCEL=no' | |
6903 | fi | |
6904 | ||
6905 | else | |
6906 | ||
6907 | LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}` | |
6908 | if test "x$LINE" != x ; then | |
6909 | eval "DEFAULT_$LINE" | |
6910 | else | |
6911 | no_cache=1 | |
6912 | fi | |
6913 | ||
6914 | ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL | |
6915 | ||
6916 | fi; | |
6917 | ||
6918 | eval "$ac_cv_use_accel" | |
6919 | if test "$no_cache" != 1; then | |
6920 | echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp | |
6921 | fi | |
6922 | ||
6923 | if test "$wxUSE_ACCEL" = yes; then | |
6924 | echo "$as_me:$LINENO: result: yes" >&5 | |
6925 | echo "${ECHO_T}yes" >&6 | |
6926 | else | |
6927 | echo "$as_me:$LINENO: result: no" >&5 | |
6928 | echo "${ECHO_T}no" >&6 | |
6929 | fi | |
6930 | ||
6931 | ||
6932 | enablestring= | |
6933 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5 | |
6934 | echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6 | |
6935 | no_cache=0 | |
6936 | # Check whether --enable-button or --disable-button was given. | |
6937 | if test "${enable_button+set}" = set; then | |
6938 | enableval="$enable_button" | |
6939 | ||
6940 | if test "$enableval" = yes; then | |
6941 | ac_cv_use_button='wxUSE_BUTTON=yes' | |
6942 | else | |
6943 | ac_cv_use_button='wxUSE_BUTTON=no' | |
6944 | fi | |
6945 | ||
6946 | else | |
6947 | ||
6948 | LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}` | |
6949 | if test "x$LINE" != x ; then | |
6950 | eval "DEFAULT_$LINE" | |
6951 | else | |
6952 | no_cache=1 | |
6953 | fi | |
6954 | ||
6955 | ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON | |
6956 | ||
6957 | fi; | |
6958 | ||
6959 | eval "$ac_cv_use_button" | |
6960 | if test "$no_cache" != 1; then | |
6961 | echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp | |
6962 | fi | |
6963 | ||
6964 | if test "$wxUSE_BUTTON" = yes; then | |
6965 | echo "$as_me:$LINENO: result: yes" >&5 | |
6966 | echo "${ECHO_T}yes" >&6 | |
6967 | else | |
6968 | echo "$as_me:$LINENO: result: no" >&5 | |
6969 | echo "${ECHO_T}no" >&6 | |
6970 | fi | |
6971 | ||
6972 | ||
6973 | enablestring= | |
6974 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5 | |
6975 | echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6 | |
6976 | no_cache=0 | |
6977 | # Check whether --enable-bmpbutton or --disable-bmpbutton was given. | |
6978 | if test "${enable_bmpbutton+set}" = set; then | |
6979 | enableval="$enable_bmpbutton" | |
6980 | ||
6981 | if test "$enableval" = yes; then | |
6982 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes' | |
6983 | else | |
6984 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no' | |
6985 | fi | |
6986 | ||
6987 | else | |
6988 | ||
6989 | LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}` | |
6990 | if test "x$LINE" != x ; then | |
6991 | eval "DEFAULT_$LINE" | |
6992 | else | |
6993 | no_cache=1 | |
6994 | fi | |
6995 | ||
6996 | ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON | |
6997 | ||
6998 | fi; | |
6999 | ||
7000 | eval "$ac_cv_use_bmpbutton" | |
7001 | if test "$no_cache" != 1; then | |
7002 | echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp | |
7003 | fi | |
7004 | ||
7005 | if test "$wxUSE_BMPBUTTON" = yes; then | |
7006 | echo "$as_me:$LINENO: result: yes" >&5 | |
7007 | echo "${ECHO_T}yes" >&6 | |
7008 | else | |
7009 | echo "$as_me:$LINENO: result: no" >&5 | |
7010 | echo "${ECHO_T}no" >&6 | |
7011 | fi | |
7012 | ||
7013 | ||
7014 | enablestring= | |
7015 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5 | |
7016 | echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6 | |
7017 | no_cache=0 | |
7018 | # Check whether --enable-calendar or --disable-calendar was given. | |
7019 | if test "${enable_calendar+set}" = set; then | |
7020 | enableval="$enable_calendar" | |
7021 | ||
7022 | if test "$enableval" = yes; then | |
7023 | ac_cv_use_calendar='wxUSE_CALCTRL=yes' | |
7024 | else | |
7025 | ac_cv_use_calendar='wxUSE_CALCTRL=no' | |
7026 | fi | |
7027 | ||
7028 | else | |
7029 | ||
7030 | LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}` | |
7031 | if test "x$LINE" != x ; then | |
7032 | eval "DEFAULT_$LINE" | |
7033 | else | |
7034 | no_cache=1 | |
7035 | fi | |
7036 | ||
7037 | ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL | |
7038 | ||
7039 | fi; | |
7040 | ||
7041 | eval "$ac_cv_use_calendar" | |
7042 | if test "$no_cache" != 1; then | |
7043 | echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp | |
7044 | fi | |
7045 | ||
7046 | if test "$wxUSE_CALCTRL" = yes; then | |
7047 | echo "$as_me:$LINENO: result: yes" >&5 | |
7048 | echo "${ECHO_T}yes" >&6 | |
7049 | else | |
7050 | echo "$as_me:$LINENO: result: no" >&5 | |
7051 | echo "${ECHO_T}no" >&6 | |
7052 | fi | |
7053 | ||
7054 | ||
7055 | enablestring= | |
7056 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5 | |
7057 | echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6 | |
7058 | no_cache=0 | |
7059 | # Check whether --enable-caret or --disable-caret was given. | |
7060 | if test "${enable_caret+set}" = set; then | |
7061 | enableval="$enable_caret" | |
7062 | ||
7063 | if test "$enableval" = yes; then | |
7064 | ac_cv_use_caret='wxUSE_CARET=yes' | |
7065 | else | |
7066 | ac_cv_use_caret='wxUSE_CARET=no' | |
7067 | fi | |
7068 | ||
7069 | else | |
7070 | ||
7071 | LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}` | |
7072 | if test "x$LINE" != x ; then | |
7073 | eval "DEFAULT_$LINE" | |
7074 | else | |
7075 | no_cache=1 | |
7076 | fi | |
7077 | ||
7078 | ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET | |
7079 | ||
7080 | fi; | |
7081 | ||
7082 | eval "$ac_cv_use_caret" | |
7083 | if test "$no_cache" != 1; then | |
7084 | echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp | |
7085 | fi | |
7086 | ||
7087 | if test "$wxUSE_CARET" = yes; then | |
7088 | echo "$as_me:$LINENO: result: yes" >&5 | |
7089 | echo "${ECHO_T}yes" >&6 | |
7090 | else | |
7091 | echo "$as_me:$LINENO: result: no" >&5 | |
7092 | echo "${ECHO_T}no" >&6 | |
7093 | fi | |
7094 | ||
7095 | ||
7096 | enablestring= | |
7097 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5 | |
7098 | echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6 | |
7099 | no_cache=0 | |
7100 | # Check whether --enable-checkbox or --disable-checkbox was given. | |
7101 | if test "${enable_checkbox+set}" = set; then | |
7102 | enableval="$enable_checkbox" | |
7103 | ||
7104 | if test "$enableval" = yes; then | |
7105 | ac_cv_use_checkbox='wxUSE_CHECKBOX=yes' | |
7106 | else | |
7107 | ac_cv_use_checkbox='wxUSE_CHECKBOX=no' | |
7108 | fi | |
7109 | ||
7110 | else | |
7111 | ||
7112 | LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}` | |
7113 | if test "x$LINE" != x ; then | |
7114 | eval "DEFAULT_$LINE" | |
7115 | else | |
7116 | no_cache=1 | |
7117 | fi | |
7118 | ||
7119 | ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX | |
7120 | ||
7121 | fi; | |
7122 | ||
7123 | eval "$ac_cv_use_checkbox" | |
7124 | if test "$no_cache" != 1; then | |
7125 | echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp | |
7126 | fi | |
7127 | ||
7128 | if test "$wxUSE_CHECKBOX" = yes; then | |
7129 | echo "$as_me:$LINENO: result: yes" >&5 | |
7130 | echo "${ECHO_T}yes" >&6 | |
7131 | else | |
7132 | echo "$as_me:$LINENO: result: no" >&5 | |
7133 | echo "${ECHO_T}no" >&6 | |
7134 | fi | |
7135 | ||
7136 | ||
7137 | enablestring= | |
7138 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5 | |
7139 | echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6 | |
7140 | no_cache=0 | |
7141 | # Check whether --enable-checklst or --disable-checklst was given. | |
7142 | if test "${enable_checklst+set}" = set; then | |
7143 | enableval="$enable_checklst" | |
7144 | ||
7145 | if test "$enableval" = yes; then | |
7146 | ac_cv_use_checklst='wxUSE_CHECKLST=yes' | |
7147 | else | |
7148 | ac_cv_use_checklst='wxUSE_CHECKLST=no' | |
7149 | fi | |
7150 | ||
7151 | else | |
7152 | ||
7153 | LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}` | |
7154 | if test "x$LINE" != x ; then | |
7155 | eval "DEFAULT_$LINE" | |
7156 | else | |
7157 | no_cache=1 | |
7158 | fi | |
7159 | ||
7160 | ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST | |
7161 | ||
7162 | fi; | |
7163 | ||
7164 | eval "$ac_cv_use_checklst" | |
7165 | if test "$no_cache" != 1; then | |
7166 | echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp | |
7167 | fi | |
7168 | ||
7169 | if test "$wxUSE_CHECKLST" = yes; then | |
7170 | echo "$as_me:$LINENO: result: yes" >&5 | |
7171 | echo "${ECHO_T}yes" >&6 | |
7172 | else | |
7173 | echo "$as_me:$LINENO: result: no" >&5 | |
7174 | echo "${ECHO_T}no" >&6 | |
7175 | fi | |
7176 | ||
7177 | ||
7178 | enablestring= | |
7179 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5 | |
7180 | echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6 | |
7181 | no_cache=0 | |
7182 | # Check whether --enable-choice or --disable-choice was given. | |
7183 | if test "${enable_choice+set}" = set; then | |
7184 | enableval="$enable_choice" | |
7185 | ||
7186 | if test "$enableval" = yes; then | |
7187 | ac_cv_use_choice='wxUSE_CHOICE=yes' | |
7188 | else | |
7189 | ac_cv_use_choice='wxUSE_CHOICE=no' | |
7190 | fi | |
7191 | ||
7192 | else | |
7193 | ||
7194 | LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}` | |
7195 | if test "x$LINE" != x ; then | |
7196 | eval "DEFAULT_$LINE" | |
7197 | else | |
7198 | no_cache=1 | |
7199 | fi | |
7200 | ||
7201 | ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE | |
7202 | ||
7203 | fi; | |
7204 | ||
7205 | eval "$ac_cv_use_choice" | |
7206 | if test "$no_cache" != 1; then | |
7207 | echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp | |
7208 | fi | |
7209 | ||
7210 | if test "$wxUSE_CHOICE" = yes; then | |
7211 | echo "$as_me:$LINENO: result: yes" >&5 | |
7212 | echo "${ECHO_T}yes" >&6 | |
7213 | else | |
7214 | echo "$as_me:$LINENO: result: no" >&5 | |
7215 | echo "${ECHO_T}no" >&6 | |
7216 | fi | |
7217 | ||
7218 | ||
7219 | enablestring= | |
7220 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5 | |
7221 | echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6 | |
7222 | no_cache=0 | |
7223 | # Check whether --enable-combobox or --disable-combobox was given. | |
7224 | if test "${enable_combobox+set}" = set; then | |
7225 | enableval="$enable_combobox" | |
7226 | ||
7227 | if test "$enableval" = yes; then | |
7228 | ac_cv_use_combobox='wxUSE_COMBOBOX=yes' | |
7229 | else | |
7230 | ac_cv_use_combobox='wxUSE_COMBOBOX=no' | |
7231 | fi | |
7232 | ||
7233 | else | |
7234 | ||
7235 | LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}` | |
7236 | if test "x$LINE" != x ; then | |
7237 | eval "DEFAULT_$LINE" | |
7238 | else | |
7239 | no_cache=1 | |
7240 | fi | |
7241 | ||
7242 | ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX | |
7243 | ||
7244 | fi; | |
7245 | ||
7246 | eval "$ac_cv_use_combobox" | |
7247 | if test "$no_cache" != 1; then | |
7248 | echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp | |
7249 | fi | |
7250 | ||
7251 | if test "$wxUSE_COMBOBOX" = yes; then | |
7252 | echo "$as_me:$LINENO: result: yes" >&5 | |
7253 | echo "${ECHO_T}yes" >&6 | |
7254 | else | |
7255 | echo "$as_me:$LINENO: result: no" >&5 | |
7256 | echo "${ECHO_T}no" >&6 | |
7257 | fi | |
7258 | ||
7259 | ||
7260 | enablestring= | |
7261 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5 | |
7262 | echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6 | |
7263 | no_cache=0 | |
7264 | # Check whether --enable-display or --disable-display was given. | |
7265 | if test "${enable_display+set}" = set; then | |
7266 | enableval="$enable_display" | |
7267 | ||
7268 | if test "$enableval" = yes; then | |
7269 | ac_cv_use_display='wxUSE_DISPLAY=yes' | |
7270 | else | |
7271 | ac_cv_use_display='wxUSE_DISPLAY=no' | |
7272 | fi | |
7273 | ||
7274 | else | |
7275 | ||
7276 | LINE=`grep "wxUSE_DISPLAY" ${wx_arg_cache_file}` | |
7277 | if test "x$LINE" != x ; then | |
7278 | eval "DEFAULT_$LINE" | |
7279 | else | |
7280 | no_cache=1 | |
7281 | fi | |
7282 | ||
7283 | ac_cv_use_display='wxUSE_DISPLAY='$DEFAULT_wxUSE_DISPLAY | |
7284 | ||
7285 | fi; | |
7286 | ||
7287 | eval "$ac_cv_use_display" | |
7288 | if test "$no_cache" != 1; then | |
7289 | echo $ac_cv_use_display >> ${wx_arg_cache_file}.tmp | |
7290 | fi | |
7291 | ||
7292 | if test "$wxUSE_DISPLAY" = yes; then | |
7293 | echo "$as_me:$LINENO: result: yes" >&5 | |
7294 | echo "${ECHO_T}yes" >&6 | |
7295 | else | |
7296 | echo "$as_me:$LINENO: result: no" >&5 | |
7297 | echo "${ECHO_T}no" >&6 | |
7298 | fi | |
7299 | ||
7300 | ||
7301 | enablestring= | |
7302 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5 | |
7303 | echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6 | |
7304 | no_cache=0 | |
7305 | # Check whether --enable-gauge or --disable-gauge was given. | |
7306 | if test "${enable_gauge+set}" = set; then | |
7307 | enableval="$enable_gauge" | |
7308 | ||
7309 | if test "$enableval" = yes; then | |
7310 | ac_cv_use_gauge='wxUSE_GAUGE=yes' | |
7311 | else | |
7312 | ac_cv_use_gauge='wxUSE_GAUGE=no' | |
7313 | fi | |
7314 | ||
7315 | else | |
7316 | ||
7317 | LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}` | |
7318 | if test "x$LINE" != x ; then | |
7319 | eval "DEFAULT_$LINE" | |
7320 | else | |
7321 | no_cache=1 | |
7322 | fi | |
7323 | ||
7324 | ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE | |
7325 | ||
7326 | fi; | |
7327 | ||
7328 | eval "$ac_cv_use_gauge" | |
7329 | if test "$no_cache" != 1; then | |
7330 | echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp | |
7331 | fi | |
7332 | ||
7333 | if test "$wxUSE_GAUGE" = yes; then | |
7334 | echo "$as_me:$LINENO: result: yes" >&5 | |
7335 | echo "${ECHO_T}yes" >&6 | |
7336 | else | |
7337 | echo "$as_me:$LINENO: result: no" >&5 | |
7338 | echo "${ECHO_T}no" >&6 | |
7339 | fi | |
7340 | ||
7341 | ||
7342 | enablestring= | |
7343 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5 | |
7344 | echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6 | |
7345 | no_cache=0 | |
7346 | # Check whether --enable-grid or --disable-grid was given. | |
7347 | if test "${enable_grid+set}" = set; then | |
7348 | enableval="$enable_grid" | |
7349 | ||
7350 | if test "$enableval" = yes; then | |
7351 | ac_cv_use_grid='wxUSE_GRID=yes' | |
7352 | else | |
7353 | ac_cv_use_grid='wxUSE_GRID=no' | |
7354 | fi | |
7355 | ||
7356 | else | |
7357 | ||
7358 | LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}` | |
7359 | if test "x$LINE" != x ; then | |
7360 | eval "DEFAULT_$LINE" | |
7361 | else | |
7362 | no_cache=1 | |
7363 | fi | |
7364 | ||
7365 | ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID | |
7366 | ||
7367 | fi; | |
7368 | ||
7369 | eval "$ac_cv_use_grid" | |
7370 | if test "$no_cache" != 1; then | |
7371 | echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp | |
7372 | fi | |
7373 | ||
7374 | if test "$wxUSE_GRID" = yes; then | |
7375 | echo "$as_me:$LINENO: result: yes" >&5 | |
7376 | echo "${ECHO_T}yes" >&6 | |
7377 | else | |
7378 | echo "$as_me:$LINENO: result: no" >&5 | |
7379 | echo "${ECHO_T}no" >&6 | |
7380 | fi | |
7381 | ||
7382 | ||
7383 | enablestring= | |
7384 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5 | |
7385 | echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6 | |
7386 | no_cache=0 | |
7387 | # Check whether --enable-imaglist or --disable-imaglist was given. | |
7388 | if test "${enable_imaglist+set}" = set; then | |
7389 | enableval="$enable_imaglist" | |
7390 | ||
7391 | if test "$enableval" = yes; then | |
7392 | ac_cv_use_imaglist='wxUSE_IMAGLIST=yes' | |
7393 | else | |
7394 | ac_cv_use_imaglist='wxUSE_IMAGLIST=no' | |
7395 | fi | |
7396 | ||
7397 | else | |
7398 | ||
7399 | LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}` | |
7400 | if test "x$LINE" != x ; then | |
7401 | eval "DEFAULT_$LINE" | |
7402 | else | |
7403 | no_cache=1 | |
7404 | fi | |
7405 | ||
7406 | ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST | |
7407 | ||
7408 | fi; | |
7409 | ||
7410 | eval "$ac_cv_use_imaglist" | |
7411 | if test "$no_cache" != 1; then | |
7412 | echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp | |
7413 | fi | |
7414 | ||
7415 | if test "$wxUSE_IMAGLIST" = yes; then | |
7416 | echo "$as_me:$LINENO: result: yes" >&5 | |
7417 | echo "${ECHO_T}yes" >&6 | |
7418 | else | |
7419 | echo "$as_me:$LINENO: result: no" >&5 | |
7420 | echo "${ECHO_T}no" >&6 | |
7421 | fi | |
7422 | ||
7423 | ||
7424 | enablestring= | |
7425 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5 | |
7426 | echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6 | |
7427 | no_cache=0 | |
7428 | # Check whether --enable-listbook or --disable-listbook was given. | |
7429 | if test "${enable_listbook+set}" = set; then | |
7430 | enableval="$enable_listbook" | |
7431 | ||
7432 | if test "$enableval" = yes; then | |
7433 | ac_cv_use_listbook='wxUSE_LISTBOOK=yes' | |
7434 | else | |
7435 | ac_cv_use_listbook='wxUSE_LISTBOOK=no' | |
7436 | fi | |
7437 | ||
7438 | else | |
7439 | ||
7440 | LINE=`grep "wxUSE_LISTBOOK" ${wx_arg_cache_file}` | |
7441 | if test "x$LINE" != x ; then | |
7442 | eval "DEFAULT_$LINE" | |
7443 | else | |
7444 | no_cache=1 | |
7445 | fi | |
7446 | ||
7447 | ac_cv_use_listbook='wxUSE_LISTBOOK='$DEFAULT_wxUSE_LISTBOOK | |
7448 | ||
7449 | fi; | |
7450 | ||
7451 | eval "$ac_cv_use_listbook" | |
7452 | if test "$no_cache" != 1; then | |
7453 | echo $ac_cv_use_listbook >> ${wx_arg_cache_file}.tmp | |
7454 | fi | |
7455 | ||
7456 | if test "$wxUSE_LISTBOOK" = yes; then | |
7457 | echo "$as_me:$LINENO: result: yes" >&5 | |
7458 | echo "${ECHO_T}yes" >&6 | |
7459 | else | |
7460 | echo "$as_me:$LINENO: result: no" >&5 | |
7461 | echo "${ECHO_T}no" >&6 | |
7462 | fi | |
7463 | ||
7464 | ||
7465 | enablestring= | |
7466 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5 | |
7467 | echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6 | |
7468 | no_cache=0 | |
7469 | # Check whether --enable-listbox or --disable-listbox was given. | |
7470 | if test "${enable_listbox+set}" = set; then | |
7471 | enableval="$enable_listbox" | |
7472 | ||
7473 | if test "$enableval" = yes; then | |
7474 | ac_cv_use_listbox='wxUSE_LISTBOX=yes' | |
7475 | else | |
7476 | ac_cv_use_listbox='wxUSE_LISTBOX=no' | |
7477 | fi | |
7478 | ||
7479 | else | |
7480 | ||
7481 | LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}` | |
7482 | if test "x$LINE" != x ; then | |
7483 | eval "DEFAULT_$LINE" | |
7484 | else | |
7485 | no_cache=1 | |
7486 | fi | |
7487 | ||
7488 | ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX | |
7489 | ||
7490 | fi; | |
7491 | ||
7492 | eval "$ac_cv_use_listbox" | |
7493 | if test "$no_cache" != 1; then | |
7494 | echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp | |
7495 | fi | |
7496 | ||
7497 | if test "$wxUSE_LISTBOX" = yes; then | |
7498 | echo "$as_me:$LINENO: result: yes" >&5 | |
7499 | echo "${ECHO_T}yes" >&6 | |
7500 | else | |
7501 | echo "$as_me:$LINENO: result: no" >&5 | |
7502 | echo "${ECHO_T}no" >&6 | |
7503 | fi | |
7504 | ||
7505 | ||
7506 | enablestring= | |
7507 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5 | |
7508 | echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6 | |
7509 | no_cache=0 | |
7510 | # Check whether --enable-listctrl or --disable-listctrl was given. | |
7511 | if test "${enable_listctrl+set}" = set; then | |
7512 | enableval="$enable_listctrl" | |
7513 | ||
7514 | if test "$enableval" = yes; then | |
7515 | ac_cv_use_listctrl='wxUSE_LISTCTRL=yes' | |
7516 | else | |
7517 | ac_cv_use_listctrl='wxUSE_LISTCTRL=no' | |
7518 | fi | |
7519 | ||
7520 | else | |
7521 | ||
7522 | LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}` | |
7523 | if test "x$LINE" != x ; then | |
7524 | eval "DEFAULT_$LINE" | |
7525 | else | |
7526 | no_cache=1 | |
7527 | fi | |
7528 | ||
7529 | ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL | |
7530 | ||
7531 | fi; | |
7532 | ||
7533 | eval "$ac_cv_use_listctrl" | |
7534 | if test "$no_cache" != 1; then | |
7535 | echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp | |
7536 | fi | |
7537 | ||
7538 | if test "$wxUSE_LISTCTRL" = yes; then | |
7539 | echo "$as_me:$LINENO: result: yes" >&5 | |
7540 | echo "${ECHO_T}yes" >&6 | |
7541 | else | |
7542 | echo "$as_me:$LINENO: result: no" >&5 | |
7543 | echo "${ECHO_T}no" >&6 | |
7544 | fi | |
7545 | ||
7546 | ||
7547 | enablestring= | |
7548 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5 | |
7549 | echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6 | |
7550 | no_cache=0 | |
7551 | # Check whether --enable-notebook or --disable-notebook was given. | |
7552 | if test "${enable_notebook+set}" = set; then | |
7553 | enableval="$enable_notebook" | |
7554 | ||
7555 | if test "$enableval" = yes; then | |
7556 | ac_cv_use_notebook='wxUSE_NOTEBOOK=yes' | |
7557 | else | |
7558 | ac_cv_use_notebook='wxUSE_NOTEBOOK=no' | |
7559 | fi | |
7560 | ||
7561 | else | |
7562 | ||
7563 | LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}` | |
7564 | if test "x$LINE" != x ; then | |
7565 | eval "DEFAULT_$LINE" | |
7566 | else | |
7567 | no_cache=1 | |
7568 | fi | |
7569 | ||
7570 | ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK | |
7571 | ||
7572 | fi; | |
7573 | ||
7574 | eval "$ac_cv_use_notebook" | |
7575 | if test "$no_cache" != 1; then | |
7576 | echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp | |
7577 | fi | |
7578 | ||
7579 | if test "$wxUSE_NOTEBOOK" = yes; then | |
7580 | echo "$as_me:$LINENO: result: yes" >&5 | |
7581 | echo "${ECHO_T}yes" >&6 | |
7582 | else | |
7583 | echo "$as_me:$LINENO: result: no" >&5 | |
7584 | echo "${ECHO_T}no" >&6 | |
7585 | fi | |
7586 | ||
7587 | ||
7588 | enablestring= | |
7589 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5 | |
7590 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6 | |
7591 | no_cache=0 | |
7592 | # Check whether --enable-radiobox or --disable-radiobox was given. | |
7593 | if test "${enable_radiobox+set}" = set; then | |
7594 | enableval="$enable_radiobox" | |
7595 | ||
7596 | if test "$enableval" = yes; then | |
7597 | ac_cv_use_radiobox='wxUSE_RADIOBOX=yes' | |
7598 | else | |
7599 | ac_cv_use_radiobox='wxUSE_RADIOBOX=no' | |
7600 | fi | |
7601 | ||
7602 | else | |
7603 | ||
7604 | LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}` | |
7605 | if test "x$LINE" != x ; then | |
7606 | eval "DEFAULT_$LINE" | |
7607 | else | |
7608 | no_cache=1 | |
7609 | fi | |
7610 | ||
7611 | ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX | |
7612 | ||
7613 | fi; | |
7614 | ||
7615 | eval "$ac_cv_use_radiobox" | |
7616 | if test "$no_cache" != 1; then | |
7617 | echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp | |
7618 | fi | |
7619 | ||
7620 | if test "$wxUSE_RADIOBOX" = yes; then | |
7621 | echo "$as_me:$LINENO: result: yes" >&5 | |
7622 | echo "${ECHO_T}yes" >&6 | |
7623 | else | |
7624 | echo "$as_me:$LINENO: result: no" >&5 | |
7625 | echo "${ECHO_T}no" >&6 | |
7626 | fi | |
7627 | ||
7628 | ||
7629 | enablestring= | |
7630 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5 | |
7631 | echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6 | |
7632 | no_cache=0 | |
7633 | # Check whether --enable-radiobtn or --disable-radiobtn was given. | |
7634 | if test "${enable_radiobtn+set}" = set; then | |
7635 | enableval="$enable_radiobtn" | |
7636 | ||
7637 | if test "$enableval" = yes; then | |
7638 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes' | |
7639 | else | |
7640 | ac_cv_use_radiobtn='wxUSE_RADIOBTN=no' | |
7641 | fi | |
7642 | ||
7643 | else | |
7644 | ||
7645 | LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}` | |
7646 | if test "x$LINE" != x ; then | |
7647 | eval "DEFAULT_$LINE" | |
7648 | else | |
7649 | no_cache=1 | |
7650 | fi | |
7651 | ||
7652 | ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN | |
7653 | ||
7654 | fi; | |
7655 | ||
7656 | eval "$ac_cv_use_radiobtn" | |
7657 | if test "$no_cache" != 1; then | |
7658 | echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp | |
7659 | fi | |
7660 | ||
7661 | if test "$wxUSE_RADIOBTN" = yes; then | |
7662 | echo "$as_me:$LINENO: result: yes" >&5 | |
7663 | echo "${ECHO_T}yes" >&6 | |
7664 | else | |
7665 | echo "$as_me:$LINENO: result: no" >&5 | |
7666 | echo "${ECHO_T}no" >&6 | |
7667 | fi | |
7668 | ||
7669 | ||
7670 | enablestring= | |
7671 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5 | |
7672 | echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6 | |
7673 | no_cache=0 | |
7674 | # Check whether --enable-sash or --disable-sash was given. | |
7675 | if test "${enable_sash+set}" = set; then | |
7676 | enableval="$enable_sash" | |
7677 | ||
7678 | if test "$enableval" = yes; then | |
7679 | ac_cv_use_sash='wxUSE_SASH=yes' | |
7680 | else | |
7681 | ac_cv_use_sash='wxUSE_SASH=no' | |
7682 | fi | |
7683 | ||
7684 | else | |
7685 | ||
7686 | LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}` | |
7687 | if test "x$LINE" != x ; then | |
7688 | eval "DEFAULT_$LINE" | |
7689 | else | |
7690 | no_cache=1 | |
7691 | fi | |
7692 | ||
7693 | ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH | |
7694 | ||
7695 | fi; | |
7696 | ||
7697 | eval "$ac_cv_use_sash" | |
7698 | if test "$no_cache" != 1; then | |
7699 | echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp | |
7700 | fi | |
7701 | ||
7702 | if test "$wxUSE_SASH" = yes; then | |
7703 | echo "$as_me:$LINENO: result: yes" >&5 | |
7704 | echo "${ECHO_T}yes" >&6 | |
7705 | else | |
7706 | echo "$as_me:$LINENO: result: no" >&5 | |
7707 | echo "${ECHO_T}no" >&6 | |
7708 | fi | |
7709 | ||
7710 | ||
7711 | enablestring= | |
7712 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5 | |
7713 | echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6 | |
7714 | no_cache=0 | |
7715 | # Check whether --enable-scrollbar or --disable-scrollbar was given. | |
7716 | if test "${enable_scrollbar+set}" = set; then | |
7717 | enableval="$enable_scrollbar" | |
7718 | ||
7719 | if test "$enableval" = yes; then | |
7720 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes' | |
7721 | else | |
7722 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no' | |
7723 | fi | |
7724 | ||
7725 | else | |
7726 | ||
7727 | LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}` | |
7728 | if test "x$LINE" != x ; then | |
7729 | eval "DEFAULT_$LINE" | |
7730 | else | |
7731 | no_cache=1 | |
7732 | fi | |
7733 | ||
7734 | ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR | |
7735 | ||
7736 | fi; | |
7737 | ||
7738 | eval "$ac_cv_use_scrollbar" | |
7739 | if test "$no_cache" != 1; then | |
7740 | echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp | |
7741 | fi | |
7742 | ||
7743 | if test "$wxUSE_SCROLLBAR" = yes; then | |
7744 | echo "$as_me:$LINENO: result: yes" >&5 | |
7745 | echo "${ECHO_T}yes" >&6 | |
7746 | else | |
7747 | echo "$as_me:$LINENO: result: no" >&5 | |
7748 | echo "${ECHO_T}no" >&6 | |
7749 | fi | |
7750 | ||
7751 | ||
7752 | enablestring= | |
7753 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5 | |
7754 | echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6 | |
7755 | no_cache=0 | |
7756 | # Check whether --enable-slider or --disable-slider was given. | |
7757 | if test "${enable_slider+set}" = set; then | |
7758 | enableval="$enable_slider" | |
7759 | ||
7760 | if test "$enableval" = yes; then | |
7761 | ac_cv_use_slider='wxUSE_SLIDER=yes' | |
7762 | else | |
7763 | ac_cv_use_slider='wxUSE_SLIDER=no' | |
7764 | fi | |
7765 | ||
7766 | else | |
7767 | ||
7768 | LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}` | |
7769 | if test "x$LINE" != x ; then | |
7770 | eval "DEFAULT_$LINE" | |
7771 | else | |
7772 | no_cache=1 | |
7773 | fi | |
7774 | ||
7775 | ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER | |
7776 | ||
7777 | fi; | |
7778 | ||
7779 | eval "$ac_cv_use_slider" | |
7780 | if test "$no_cache" != 1; then | |
7781 | echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp | |
7782 | fi | |
7783 | ||
7784 | if test "$wxUSE_SLIDER" = yes; then | |
7785 | echo "$as_me:$LINENO: result: yes" >&5 | |
7786 | echo "${ECHO_T}yes" >&6 | |
7787 | else | |
7788 | echo "$as_me:$LINENO: result: no" >&5 | |
7789 | echo "${ECHO_T}no" >&6 | |
7790 | fi | |
7791 | ||
7792 | ||
7793 | enablestring= | |
7794 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5 | |
7795 | echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6 | |
7796 | no_cache=0 | |
7797 | # Check whether --enable-spinbtn or --disable-spinbtn was given. | |
7798 | if test "${enable_spinbtn+set}" = set; then | |
7799 | enableval="$enable_spinbtn" | |
7800 | ||
7801 | if test "$enableval" = yes; then | |
7802 | ac_cv_use_spinbtn='wxUSE_SPINBTN=yes' | |
7803 | else | |
7804 | ac_cv_use_spinbtn='wxUSE_SPINBTN=no' | |
7805 | fi | |
7806 | ||
7807 | else | |
7808 | ||
7809 | LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}` | |
7810 | if test "x$LINE" != x ; then | |
7811 | eval "DEFAULT_$LINE" | |
7812 | else | |
7813 | no_cache=1 | |
7814 | fi | |
7815 | ||
7816 | ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN | |
7817 | ||
7818 | fi; | |
7819 | ||
7820 | eval "$ac_cv_use_spinbtn" | |
7821 | if test "$no_cache" != 1; then | |
7822 | echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp | |
7823 | fi | |
7824 | ||
7825 | if test "$wxUSE_SPINBTN" = yes; then | |
7826 | echo "$as_me:$LINENO: result: yes" >&5 | |
7827 | echo "${ECHO_T}yes" >&6 | |
7828 | else | |
7829 | echo "$as_me:$LINENO: result: no" >&5 | |
7830 | echo "${ECHO_T}no" >&6 | |
7831 | fi | |
7832 | ||
7833 | ||
7834 | enablestring= | |
7835 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5 | |
7836 | echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6 | |
7837 | no_cache=0 | |
7838 | # Check whether --enable-spinctrl or --disable-spinctrl was given. | |
7839 | if test "${enable_spinctrl+set}" = set; then | |
7840 | enableval="$enable_spinctrl" | |
7841 | ||
7842 | if test "$enableval" = yes; then | |
7843 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes' | |
7844 | else | |
7845 | ac_cv_use_spinctrl='wxUSE_SPINCTRL=no' | |
7846 | fi | |
7847 | ||
7848 | else | |
7849 | ||
7850 | LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}` | |
7851 | if test "x$LINE" != x ; then | |
7852 | eval "DEFAULT_$LINE" | |
7853 | else | |
7854 | no_cache=1 | |
7855 | fi | |
7856 | ||
7857 | ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL | |
7858 | ||
7859 | fi; | |
7860 | ||
7861 | eval "$ac_cv_use_spinctrl" | |
7862 | if test "$no_cache" != 1; then | |
7863 | echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp | |
7864 | fi | |
7865 | ||
7866 | if test "$wxUSE_SPINCTRL" = yes; then | |
7867 | echo "$as_me:$LINENO: result: yes" >&5 | |
7868 | echo "${ECHO_T}yes" >&6 | |
7869 | else | |
7870 | echo "$as_me:$LINENO: result: no" >&5 | |
7871 | echo "${ECHO_T}no" >&6 | |
7872 | fi | |
7873 | ||
7874 | ||
7875 | enablestring= | |
7876 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5 | |
7877 | echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6 | |
7878 | no_cache=0 | |
7879 | # Check whether --enable-splitter or --disable-splitter was given. | |
7880 | if test "${enable_splitter+set}" = set; then | |
7881 | enableval="$enable_splitter" | |
7882 | ||
7883 | if test "$enableval" = yes; then | |
7884 | ac_cv_use_splitter='wxUSE_SPLITTER=yes' | |
7885 | else | |
7886 | ac_cv_use_splitter='wxUSE_SPLITTER=no' | |
7887 | fi | |
7888 | ||
7889 | else | |
7890 | ||
7891 | LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}` | |
7892 | if test "x$LINE" != x ; then | |
7893 | eval "DEFAULT_$LINE" | |
7894 | else | |
7895 | no_cache=1 | |
7896 | fi | |
7897 | ||
7898 | ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER | |
7899 | ||
7900 | fi; | |
7901 | ||
7902 | eval "$ac_cv_use_splitter" | |
7903 | if test "$no_cache" != 1; then | |
7904 | echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp | |
7905 | fi | |
7906 | ||
7907 | if test "$wxUSE_SPLITTER" = yes; then | |
7908 | echo "$as_me:$LINENO: result: yes" >&5 | |
7909 | echo "${ECHO_T}yes" >&6 | |
7910 | else | |
7911 | echo "$as_me:$LINENO: result: no" >&5 | |
7912 | echo "${ECHO_T}no" >&6 | |
7913 | fi | |
7914 | ||
7915 | ||
7916 | enablestring= | |
7917 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5 | |
7918 | echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6 | |
7919 | no_cache=0 | |
7920 | # Check whether --enable-statbmp or --disable-statbmp was given. | |
7921 | if test "${enable_statbmp+set}" = set; then | |
7922 | enableval="$enable_statbmp" | |
7923 | ||
7924 | if test "$enableval" = yes; then | |
7925 | ac_cv_use_statbmp='wxUSE_STATBMP=yes' | |
7926 | else | |
7927 | ac_cv_use_statbmp='wxUSE_STATBMP=no' | |
7928 | fi | |
7929 | ||
7930 | else | |
7931 | ||
7932 | LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}` | |
7933 | if test "x$LINE" != x ; then | |
7934 | eval "DEFAULT_$LINE" | |
7935 | else | |
7936 | no_cache=1 | |
7937 | fi | |
7938 | ||
7939 | ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP | |
7940 | ||
7941 | fi; | |
7942 | ||
7943 | eval "$ac_cv_use_statbmp" | |
7944 | if test "$no_cache" != 1; then | |
7945 | echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp | |
7946 | fi | |
7947 | ||
7948 | if test "$wxUSE_STATBMP" = yes; then | |
7949 | echo "$as_me:$LINENO: result: yes" >&5 | |
7950 | echo "${ECHO_T}yes" >&6 | |
7951 | else | |
7952 | echo "$as_me:$LINENO: result: no" >&5 | |
7953 | echo "${ECHO_T}no" >&6 | |
7954 | fi | |
7955 | ||
7956 | ||
7957 | enablestring= | |
7958 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5 | |
7959 | echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6 | |
7960 | no_cache=0 | |
7961 | # Check whether --enable-statbox or --disable-statbox was given. | |
7962 | if test "${enable_statbox+set}" = set; then | |
7963 | enableval="$enable_statbox" | |
7964 | ||
7965 | if test "$enableval" = yes; then | |
7966 | ac_cv_use_statbox='wxUSE_STATBOX=yes' | |
7967 | else | |
7968 | ac_cv_use_statbox='wxUSE_STATBOX=no' | |
7969 | fi | |
7970 | ||
7971 | else | |
7972 | ||
7973 | LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}` | |
7974 | if test "x$LINE" != x ; then | |
7975 | eval "DEFAULT_$LINE" | |
7976 | else | |
7977 | no_cache=1 | |
7978 | fi | |
7979 | ||
7980 | ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX | |
7981 | ||
7982 | fi; | |
7983 | ||
7984 | eval "$ac_cv_use_statbox" | |
7985 | if test "$no_cache" != 1; then | |
7986 | echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp | |
7987 | fi | |
7988 | ||
7989 | if test "$wxUSE_STATBOX" = yes; then | |
7990 | echo "$as_me:$LINENO: result: yes" >&5 | |
7991 | echo "${ECHO_T}yes" >&6 | |
7992 | else | |
7993 | echo "$as_me:$LINENO: result: no" >&5 | |
7994 | echo "${ECHO_T}no" >&6 | |
7995 | fi | |
7996 | ||
7997 | ||
7998 | enablestring= | |
7999 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5 | |
8000 | echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6 | |
8001 | no_cache=0 | |
8002 | # Check whether --enable-statline or --disable-statline was given. | |
8003 | if test "${enable_statline+set}" = set; then | |
8004 | enableval="$enable_statline" | |
8005 | ||
8006 | if test "$enableval" = yes; then | |
8007 | ac_cv_use_statline='wxUSE_STATLINE=yes' | |
8008 | else | |
8009 | ac_cv_use_statline='wxUSE_STATLINE=no' | |
8010 | fi | |
8011 | ||
8012 | else | |
8013 | ||
8014 | LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}` | |
8015 | if test "x$LINE" != x ; then | |
8016 | eval "DEFAULT_$LINE" | |
8017 | else | |
8018 | no_cache=1 | |
8019 | fi | |
8020 | ||
8021 | ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE | |
8022 | ||
8023 | fi; | |
8024 | ||
8025 | eval "$ac_cv_use_statline" | |
8026 | if test "$no_cache" != 1; then | |
8027 | echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp | |
8028 | fi | |
8029 | ||
8030 | if test "$wxUSE_STATLINE" = yes; then | |
8031 | echo "$as_me:$LINENO: result: yes" >&5 | |
8032 | echo "${ECHO_T}yes" >&6 | |
8033 | else | |
8034 | echo "$as_me:$LINENO: result: no" >&5 | |
8035 | echo "${ECHO_T}no" >&6 | |
8036 | fi | |
8037 | ||
8038 | ||
8039 | enablestring= | |
8040 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5 | |
8041 | echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6 | |
8042 | no_cache=0 | |
8043 | # Check whether --enable-stattext or --disable-stattext was given. | |
8044 | if test "${enable_stattext+set}" = set; then | |
8045 | enableval="$enable_stattext" | |
8046 | ||
8047 | if test "$enableval" = yes; then | |
8048 | ac_cv_use_stattext='wxUSE_STATTEXT=yes' | |
8049 | else | |
8050 | ac_cv_use_stattext='wxUSE_STATTEXT=no' | |
8051 | fi | |
8052 | ||
8053 | else | |
8054 | ||
8055 | LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}` | |
8056 | if test "x$LINE" != x ; then | |
8057 | eval "DEFAULT_$LINE" | |
8058 | else | |
8059 | no_cache=1 | |
8060 | fi | |
8061 | ||
8062 | ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT | |
8063 | ||
8064 | fi; | |
8065 | ||
8066 | eval "$ac_cv_use_stattext" | |
8067 | if test "$no_cache" != 1; then | |
8068 | echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp | |
8069 | fi | |
8070 | ||
8071 | if test "$wxUSE_STATTEXT" = yes; then | |
8072 | echo "$as_me:$LINENO: result: yes" >&5 | |
8073 | echo "${ECHO_T}yes" >&6 | |
8074 | else | |
8075 | echo "$as_me:$LINENO: result: no" >&5 | |
8076 | echo "${ECHO_T}no" >&6 | |
8077 | fi | |
8078 | ||
8079 | ||
8080 | enablestring= | |
8081 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5 | |
8082 | echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6 | |
8083 | no_cache=0 | |
8084 | # Check whether --enable-statusbar or --disable-statusbar was given. | |
8085 | if test "${enable_statusbar+set}" = set; then | |
8086 | enableval="$enable_statusbar" | |
8087 | ||
8088 | if test "$enableval" = yes; then | |
8089 | ac_cv_use_statusbar='wxUSE_STATUSBAR=yes' | |
8090 | else | |
8091 | ac_cv_use_statusbar='wxUSE_STATUSBAR=no' | |
8092 | fi | |
8093 | ||
8094 | else | |
8095 | ||
8096 | LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}` | |
8097 | if test "x$LINE" != x ; then | |
8098 | eval "DEFAULT_$LINE" | |
8099 | else | |
8100 | no_cache=1 | |
8101 | fi | |
8102 | ||
8103 | ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR | |
8104 | ||
8105 | fi; | |
8106 | ||
8107 | eval "$ac_cv_use_statusbar" | |
8108 | if test "$no_cache" != 1; then | |
8109 | echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp | |
8110 | fi | |
8111 | ||
8112 | if test "$wxUSE_STATUSBAR" = yes; then | |
8113 | echo "$as_me:$LINENO: result: yes" >&5 | |
8114 | echo "${ECHO_T}yes" >&6 | |
8115 | else | |
8116 | echo "$as_me:$LINENO: result: no" >&5 | |
8117 | echo "${ECHO_T}no" >&6 | |
8118 | fi | |
8119 | ||
8120 | ||
8121 | enablestring= | |
8122 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5 | |
8123 | echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6 | |
8124 | no_cache=0 | |
8125 | # Check whether --enable-tabdialog or --disable-tabdialog was given. | |
8126 | if test "${enable_tabdialog+set}" = set; then | |
8127 | enableval="$enable_tabdialog" | |
8128 | ||
8129 | if test "$enableval" = yes; then | |
8130 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes' | |
8131 | else | |
8132 | ac_cv_use_tabdialog='wxUSE_TABDIALOG=no' | |
8133 | fi | |
8134 | ||
8135 | else | |
8136 | ||
8137 | LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}` | |
8138 | if test "x$LINE" != x ; then | |
8139 | eval "DEFAULT_$LINE" | |
8140 | else | |
8141 | no_cache=1 | |
8142 | fi | |
8143 | ||
8144 | ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG | |
8145 | ||
8146 | fi; | |
8147 | ||
8148 | eval "$ac_cv_use_tabdialog" | |
8149 | if test "$no_cache" != 1; then | |
8150 | echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp | |
8151 | fi | |
8152 | ||
8153 | if test "$wxUSE_TABDIALOG" = yes; then | |
8154 | echo "$as_me:$LINENO: result: yes" >&5 | |
8155 | echo "${ECHO_T}yes" >&6 | |
8156 | else | |
8157 | echo "$as_me:$LINENO: result: no" >&5 | |
8158 | echo "${ECHO_T}no" >&6 | |
8159 | fi | |
8160 | ||
8161 | ||
8162 | enablestring= | |
8163 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5 | |
8164 | echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6 | |
8165 | no_cache=0 | |
8166 | # Check whether --enable-textctrl or --disable-textctrl was given. | |
8167 | if test "${enable_textctrl+set}" = set; then | |
8168 | enableval="$enable_textctrl" | |
8169 | ||
8170 | if test "$enableval" = yes; then | |
8171 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes' | |
8172 | else | |
8173 | ac_cv_use_textctrl='wxUSE_TEXTCTRL=no' | |
8174 | fi | |
8175 | ||
8176 | else | |
8177 | ||
8178 | LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}` | |
8179 | if test "x$LINE" != x ; then | |
8180 | eval "DEFAULT_$LINE" | |
8181 | else | |
8182 | no_cache=1 | |
8183 | fi | |
8184 | ||
8185 | ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL | |
8186 | ||
8187 | fi; | |
8188 | ||
8189 | eval "$ac_cv_use_textctrl" | |
8190 | if test "$no_cache" != 1; then | |
8191 | echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp | |
8192 | fi | |
8193 | ||
8194 | if test "$wxUSE_TEXTCTRL" = yes; then | |
8195 | echo "$as_me:$LINENO: result: yes" >&5 | |
8196 | echo "${ECHO_T}yes" >&6 | |
8197 | else | |
8198 | echo "$as_me:$LINENO: result: no" >&5 | |
8199 | echo "${ECHO_T}no" >&6 | |
8200 | fi | |
8201 | ||
8202 | ||
8203 | enablestring= | |
8204 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5 | |
8205 | echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6 | |
8206 | no_cache=0 | |
8207 | # Check whether --enable-togglebtn or --disable-togglebtn was given. | |
8208 | if test "${enable_togglebtn+set}" = set; then | |
8209 | enableval="$enable_togglebtn" | |
8210 | ||
8211 | if test "$enableval" = yes; then | |
8212 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes' | |
8213 | else | |
8214 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no' | |
8215 | fi | |
8216 | ||
8217 | else | |
8218 | ||
8219 | LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}` | |
8220 | if test "x$LINE" != x ; then | |
8221 | eval "DEFAULT_$LINE" | |
8222 | else | |
8223 | no_cache=1 | |
8224 | fi | |
8225 | ||
8226 | ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN | |
8227 | ||
8228 | fi; | |
8229 | ||
8230 | eval "$ac_cv_use_togglebtn" | |
8231 | if test "$no_cache" != 1; then | |
8232 | echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp | |
8233 | fi | |
8234 | ||
8235 | if test "$wxUSE_TOGGLEBTN" = yes; then | |
8236 | echo "$as_me:$LINENO: result: yes" >&5 | |
8237 | echo "${ECHO_T}yes" >&6 | |
8238 | else | |
8239 | echo "$as_me:$LINENO: result: no" >&5 | |
8240 | echo "${ECHO_T}no" >&6 | |
8241 | fi | |
8242 | ||
8243 | ||
8244 | enablestring= | |
8245 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5 | |
8246 | echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6 | |
8247 | no_cache=0 | |
8248 | # Check whether --enable-toolbar or --disable-toolbar was given. | |
8249 | if test "${enable_toolbar+set}" = set; then | |
8250 | enableval="$enable_toolbar" | |
8251 | ||
8252 | if test "$enableval" = yes; then | |
8253 | ac_cv_use_toolbar='wxUSE_TOOLBAR=yes' | |
8254 | else | |
8255 | ac_cv_use_toolbar='wxUSE_TOOLBAR=no' | |
8256 | fi | |
8257 | ||
8258 | else | |
8259 | ||
8260 | LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}` | |
8261 | if test "x$LINE" != x ; then | |
8262 | eval "DEFAULT_$LINE" | |
8263 | else | |
8264 | no_cache=1 | |
8265 | fi | |
8266 | ||
8267 | ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR | |
8268 | ||
8269 | fi; | |
8270 | ||
8271 | eval "$ac_cv_use_toolbar" | |
8272 | if test "$no_cache" != 1; then | |
8273 | echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp | |
8274 | fi | |
8275 | ||
8276 | if test "$wxUSE_TOOLBAR" = yes; then | |
8277 | echo "$as_me:$LINENO: result: yes" >&5 | |
8278 | echo "${ECHO_T}yes" >&6 | |
8279 | else | |
8280 | echo "$as_me:$LINENO: result: no" >&5 | |
8281 | echo "${ECHO_T}no" >&6 | |
8282 | fi | |
8283 | ||
8284 | ||
8285 | enablestring= | |
8286 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5 | |
8287 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6 | |
8288 | no_cache=0 | |
8289 | # Check whether --enable-tbarnative or --disable-tbarnative was given. | |
8290 | if test "${enable_tbarnative+set}" = set; then | |
8291 | enableval="$enable_tbarnative" | |
8292 | ||
8293 | if test "$enableval" = yes; then | |
8294 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes' | |
8295 | else | |
8296 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no' | |
8297 | fi | |
8298 | ||
8299 | else | |
8300 | ||
8301 | LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}` | |
8302 | if test "x$LINE" != x ; then | |
8303 | eval "DEFAULT_$LINE" | |
8304 | else | |
8305 | no_cache=1 | |
8306 | fi | |
8307 | ||
8308 | ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE | |
8309 | ||
8310 | fi; | |
8311 | ||
8312 | eval "$ac_cv_use_tbarnative" | |
8313 | if test "$no_cache" != 1; then | |
8314 | echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp | |
8315 | fi | |
8316 | ||
8317 | if test "$wxUSE_TOOLBAR_NATIVE" = yes; then | |
8318 | echo "$as_me:$LINENO: result: yes" >&5 | |
8319 | echo "${ECHO_T}yes" >&6 | |
8320 | else | |
8321 | echo "$as_me:$LINENO: result: no" >&5 | |
8322 | echo "${ECHO_T}no" >&6 | |
8323 | fi | |
8324 | ||
8325 | ||
8326 | enablestring= | |
8327 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarsmpl" >&5 | |
8328 | echo $ECHO_N "checking for --${enablestring:-enable}-tbarsmpl... $ECHO_C" >&6 | |
8329 | no_cache=0 | |
8330 | # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given. | |
8331 | if test "${enable_tbarsmpl+set}" = set; then | |
8332 | enableval="$enable_tbarsmpl" | |
8333 | ||
8334 | if test "$enableval" = yes; then | |
8335 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes' | |
8336 | else | |
8337 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no' | |
8338 | fi | |
8339 | ||
8340 | else | |
8341 | ||
8342 | LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}` | |
8343 | if test "x$LINE" != x ; then | |
8344 | eval "DEFAULT_$LINE" | |
8345 | else | |
8346 | no_cache=1 | |
8347 | fi | |
8348 | ||
8349 | ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE | |
8350 | ||
8351 | fi; | |
8352 | ||
8353 | eval "$ac_cv_use_tbarsmpl" | |
8354 | if test "$no_cache" != 1; then | |
8355 | echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp | |
8356 | fi | |
8357 | ||
8358 | if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then | |
8359 | echo "$as_me:$LINENO: result: yes" >&5 | |
8360 | echo "${ECHO_T}yes" >&6 | |
8361 | else | |
8362 | echo "$as_me:$LINENO: result: no" >&5 | |
8363 | echo "${ECHO_T}no" >&6 | |
8364 | fi | |
8365 | ||
8366 | ||
8367 | enablestring= | |
8368 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5 | |
8369 | echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6 | |
8370 | no_cache=0 | |
8371 | # Check whether --enable-treectrl or --disable-treectrl was given. | |
8372 | if test "${enable_treectrl+set}" = set; then | |
8373 | enableval="$enable_treectrl" | |
8374 | ||
8375 | if test "$enableval" = yes; then | |
8376 | ac_cv_use_treectrl='wxUSE_TREECTRL=yes' | |
8377 | else | |
8378 | ac_cv_use_treectrl='wxUSE_TREECTRL=no' | |
8379 | fi | |
8380 | ||
8381 | else | |
8382 | ||
8383 | LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}` | |
8384 | if test "x$LINE" != x ; then | |
8385 | eval "DEFAULT_$LINE" | |
8386 | else | |
8387 | no_cache=1 | |
8388 | fi | |
8389 | ||
8390 | ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL | |
8391 | ||
8392 | fi; | |
8393 | ||
8394 | eval "$ac_cv_use_treectrl" | |
8395 | if test "$no_cache" != 1; then | |
8396 | echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp | |
8397 | fi | |
8398 | ||
8399 | if test "$wxUSE_TREECTRL" = yes; then | |
8400 | echo "$as_me:$LINENO: result: yes" >&5 | |
8401 | echo "${ECHO_T}yes" >&6 | |
8402 | else | |
8403 | echo "$as_me:$LINENO: result: no" >&5 | |
8404 | echo "${ECHO_T}no" >&6 | |
8405 | fi | |
8406 | ||
8407 | ||
8408 | enablestring= | |
8409 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5 | |
8410 | echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6 | |
8411 | no_cache=0 | |
8412 | # Check whether --enable-tipwindow or --disable-tipwindow was given. | |
8413 | if test "${enable_tipwindow+set}" = set; then | |
8414 | enableval="$enable_tipwindow" | |
8415 | ||
8416 | if test "$enableval" = yes; then | |
8417 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes' | |
8418 | else | |
8419 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no' | |
8420 | fi | |
8421 | ||
8422 | else | |
8423 | ||
8424 | LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}` | |
8425 | if test "x$LINE" != x ; then | |
8426 | eval "DEFAULT_$LINE" | |
8427 | else | |
8428 | no_cache=1 | |
8429 | fi | |
8430 | ||
8431 | ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW | |
8432 | ||
8433 | fi; | |
8434 | ||
8435 | eval "$ac_cv_use_tipwindow" | |
8436 | if test "$no_cache" != 1; then | |
8437 | echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp | |
8438 | fi | |
8439 | ||
8440 | if test "$wxUSE_TIPWINDOW" = yes; then | |
8441 | echo "$as_me:$LINENO: result: yes" >&5 | |
8442 | echo "${ECHO_T}yes" >&6 | |
8443 | else | |
8444 | echo "$as_me:$LINENO: result: no" >&5 | |
8445 | echo "${ECHO_T}no" >&6 | |
8446 | fi | |
8447 | ||
8448 | ||
8449 | enablestring= | |
8450 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5 | |
8451 | echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6 | |
8452 | no_cache=0 | |
8453 | # Check whether --enable-popupwin or --disable-popupwin was given. | |
8454 | if test "${enable_popupwin+set}" = set; then | |
8455 | enableval="$enable_popupwin" | |
8456 | ||
8457 | if test "$enableval" = yes; then | |
8458 | ac_cv_use_popupwin='wxUSE_POPUPWIN=yes' | |
8459 | else | |
8460 | ac_cv_use_popupwin='wxUSE_POPUPWIN=no' | |
8461 | fi | |
8462 | ||
8463 | else | |
8464 | ||
8465 | LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}` | |
8466 | if test "x$LINE" != x ; then | |
8467 | eval "DEFAULT_$LINE" | |
8468 | else | |
8469 | no_cache=1 | |
8470 | fi | |
8471 | ||
8472 | ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN | |
8473 | ||
8474 | fi; | |
8475 | ||
8476 | eval "$ac_cv_use_popupwin" | |
8477 | if test "$no_cache" != 1; then | |
8478 | echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp | |
8479 | fi | |
8480 | ||
8481 | if test "$wxUSE_POPUPWIN" = yes; then | |
8482 | echo "$as_me:$LINENO: result: yes" >&5 | |
8483 | echo "${ECHO_T}yes" >&6 | |
8484 | else | |
8485 | echo "$as_me:$LINENO: result: no" >&5 | |
8486 | echo "${ECHO_T}no" >&6 | |
8487 | fi | |
8488 | ||
8489 | ||
8490 | ||
8491 | ||
8492 | enablestring= | |
8493 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5 | |
8494 | echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6 | |
8495 | no_cache=0 | |
8496 | # Check whether --enable-commondlg or --disable-commondlg was given. | |
8497 | if test "${enable_commondlg+set}" = set; then | |
8498 | enableval="$enable_commondlg" | |
8499 | ||
8500 | if test "$enableval" = yes; then | |
8501 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes' | |
8502 | else | |
8503 | ac_cv_use_commondlg='wxUSE_COMMONDLGS=no' | |
8504 | fi | |
8505 | ||
8506 | else | |
8507 | ||
8508 | LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}` | |
8509 | if test "x$LINE" != x ; then | |
8510 | eval "DEFAULT_$LINE" | |
8511 | else | |
8512 | no_cache=1 | |
8513 | fi | |
8514 | ||
8515 | ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS | |
8516 | ||
8517 | fi; | |
8518 | ||
8519 | eval "$ac_cv_use_commondlg" | |
8520 | if test "$no_cache" != 1; then | |
8521 | echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp | |
8522 | fi | |
8523 | ||
8524 | if test "$wxUSE_COMMONDLGS" = yes; then | |
8525 | echo "$as_me:$LINENO: result: yes" >&5 | |
8526 | echo "${ECHO_T}yes" >&6 | |
8527 | else | |
8528 | echo "$as_me:$LINENO: result: no" >&5 | |
8529 | echo "${ECHO_T}no" >&6 | |
8530 | fi | |
8531 | ||
8532 | ||
8533 | enablestring= | |
8534 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5 | |
8535 | echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6 | |
8536 | no_cache=0 | |
8537 | # Check whether --enable-choicedlg or --disable-choicedlg was given. | |
8538 | if test "${enable_choicedlg+set}" = set; then | |
8539 | enableval="$enable_choicedlg" | |
8540 | ||
8541 | if test "$enableval" = yes; then | |
8542 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes' | |
8543 | else | |
8544 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no' | |
8545 | fi | |
8546 | ||
8547 | else | |
8548 | ||
8549 | LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}` | |
8550 | if test "x$LINE" != x ; then | |
8551 | eval "DEFAULT_$LINE" | |
8552 | else | |
8553 | no_cache=1 | |
8554 | fi | |
8555 | ||
8556 | ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG | |
8557 | ||
8558 | fi; | |
8559 | ||
8560 | eval "$ac_cv_use_choicedlg" | |
8561 | if test "$no_cache" != 1; then | |
8562 | echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp | |
8563 | fi | |
8564 | ||
8565 | if test "$wxUSE_CHOICEDLG" = yes; then | |
8566 | echo "$as_me:$LINENO: result: yes" >&5 | |
8567 | echo "${ECHO_T}yes" >&6 | |
8568 | else | |
8569 | echo "$as_me:$LINENO: result: no" >&5 | |
8570 | echo "${ECHO_T}no" >&6 | |
8571 | fi | |
8572 | ||
8573 | ||
8574 | enablestring= | |
8575 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5 | |
8576 | echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6 | |
8577 | no_cache=0 | |
8578 | # Check whether --enable-coldlg or --disable-coldlg was given. | |
8579 | if test "${enable_coldlg+set}" = set; then | |
8580 | enableval="$enable_coldlg" | |
8581 | ||
8582 | if test "$enableval" = yes; then | |
8583 | ac_cv_use_coldlg='wxUSE_COLOURDLG=yes' | |
8584 | else | |
8585 | ac_cv_use_coldlg='wxUSE_COLOURDLG=no' | |
8586 | fi | |
8587 | ||
8588 | else | |
8589 | ||
8590 | LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}` | |
8591 | if test "x$LINE" != x ; then | |
8592 | eval "DEFAULT_$LINE" | |
8593 | else | |
8594 | no_cache=1 | |
8595 | fi | |
8596 | ||
8597 | ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG | |
8598 | ||
8599 | fi; | |
8600 | ||
8601 | eval "$ac_cv_use_coldlg" | |
8602 | if test "$no_cache" != 1; then | |
8603 | echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp | |
8604 | fi | |
8605 | ||
8606 | if test "$wxUSE_COLOURDLG" = yes; then | |
8607 | echo "$as_me:$LINENO: result: yes" >&5 | |
8608 | echo "${ECHO_T}yes" >&6 | |
8609 | else | |
8610 | echo "$as_me:$LINENO: result: no" >&5 | |
8611 | echo "${ECHO_T}no" >&6 | |
8612 | fi | |
8613 | ||
8614 | ||
8615 | enablestring= | |
8616 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5 | |
8617 | echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6 | |
8618 | no_cache=0 | |
8619 | # Check whether --enable-filedlg or --disable-filedlg was given. | |
8620 | if test "${enable_filedlg+set}" = set; then | |
8621 | enableval="$enable_filedlg" | |
8622 | ||
8623 | if test "$enableval" = yes; then | |
8624 | ac_cv_use_filedlg='wxUSE_FILEDLG=yes' | |
8625 | else | |
8626 | ac_cv_use_filedlg='wxUSE_FILEDLG=no' | |
8627 | fi | |
8628 | ||
8629 | else | |
8630 | ||
8631 | LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}` | |
8632 | if test "x$LINE" != x ; then | |
8633 | eval "DEFAULT_$LINE" | |
8634 | else | |
8635 | no_cache=1 | |
8636 | fi | |
8637 | ||
8638 | ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG | |
8639 | ||
8640 | fi; | |
8641 | ||
8642 | eval "$ac_cv_use_filedlg" | |
8643 | if test "$no_cache" != 1; then | |
8644 | echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp | |
8645 | fi | |
8646 | ||
8647 | if test "$wxUSE_FILEDLG" = yes; then | |
8648 | echo "$as_me:$LINENO: result: yes" >&5 | |
8649 | echo "${ECHO_T}yes" >&6 | |
8650 | else | |
8651 | echo "$as_me:$LINENO: result: no" >&5 | |
8652 | echo "${ECHO_T}no" >&6 | |
8653 | fi | |
8654 | ||
8655 | ||
8656 | enablestring= | |
8657 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5 | |
8658 | echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6 | |
8659 | no_cache=0 | |
8660 | # Check whether --enable-finddlg or --disable-finddlg was given. | |
8661 | if test "${enable_finddlg+set}" = set; then | |
8662 | enableval="$enable_finddlg" | |
8663 | ||
8664 | if test "$enableval" = yes; then | |
8665 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes' | |
8666 | else | |
8667 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no' | |
8668 | fi | |
8669 | ||
8670 | else | |
8671 | ||
8672 | LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}` | |
8673 | if test "x$LINE" != x ; then | |
8674 | eval "DEFAULT_$LINE" | |
8675 | else | |
8676 | no_cache=1 | |
8677 | fi | |
8678 | ||
8679 | ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG | |
8680 | ||
8681 | fi; | |
8682 | ||
8683 | eval "$ac_cv_use_finddlg" | |
8684 | if test "$no_cache" != 1; then | |
8685 | echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp | |
8686 | fi | |
8687 | ||
8688 | if test "$wxUSE_FINDREPLDLG" = yes; then | |
8689 | echo "$as_me:$LINENO: result: yes" >&5 | |
8690 | echo "${ECHO_T}yes" >&6 | |
8691 | else | |
8692 | echo "$as_me:$LINENO: result: no" >&5 | |
8693 | echo "${ECHO_T}no" >&6 | |
8694 | fi | |
8695 | ||
8696 | ||
8697 | enablestring= | |
8698 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5 | |
8699 | echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6 | |
8700 | no_cache=0 | |
8701 | # Check whether --enable-fontdlg or --disable-fontdlg was given. | |
8702 | if test "${enable_fontdlg+set}" = set; then | |
8703 | enableval="$enable_fontdlg" | |
8704 | ||
8705 | if test "$enableval" = yes; then | |
8706 | ac_cv_use_fontdlg='wxUSE_FONTDLG=yes' | |
8707 | else | |
8708 | ac_cv_use_fontdlg='wxUSE_FONTDLG=no' | |
8709 | fi | |
8710 | ||
8711 | else | |
8712 | ||
8713 | LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}` | |
8714 | if test "x$LINE" != x ; then | |
8715 | eval "DEFAULT_$LINE" | |
8716 | else | |
8717 | no_cache=1 | |
8718 | fi | |
8719 | ||
8720 | ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG | |
8721 | ||
8722 | fi; | |
8723 | ||
8724 | eval "$ac_cv_use_fontdlg" | |
8725 | if test "$no_cache" != 1; then | |
8726 | echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp | |
8727 | fi | |
8728 | ||
8729 | if test "$wxUSE_FONTDLG" = yes; then | |
8730 | echo "$as_me:$LINENO: result: yes" >&5 | |
8731 | echo "${ECHO_T}yes" >&6 | |
8732 | else | |
8733 | echo "$as_me:$LINENO: result: no" >&5 | |
8734 | echo "${ECHO_T}no" >&6 | |
8735 | fi | |
8736 | ||
8737 | ||
8738 | enablestring= | |
8739 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5 | |
8740 | echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6 | |
8741 | no_cache=0 | |
8742 | # Check whether --enable-dirdlg or --disable-dirdlg was given. | |
8743 | if test "${enable_dirdlg+set}" = set; then | |
8744 | enableval="$enable_dirdlg" | |
8745 | ||
8746 | if test "$enableval" = yes; then | |
8747 | ac_cv_use_dirdlg='wxUSE_DIRDLG=yes' | |
8748 | else | |
8749 | ac_cv_use_dirdlg='wxUSE_DIRDLG=no' | |
8750 | fi | |
8751 | ||
8752 | else | |
8753 | ||
8754 | LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}` | |
8755 | if test "x$LINE" != x ; then | |
8756 | eval "DEFAULT_$LINE" | |
8757 | else | |
8758 | no_cache=1 | |
8759 | fi | |
8760 | ||
8761 | ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG | |
8762 | ||
8763 | fi; | |
8764 | ||
8765 | eval "$ac_cv_use_dirdlg" | |
8766 | if test "$no_cache" != 1; then | |
8767 | echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp | |
8768 | fi | |
8769 | ||
8770 | if test "$wxUSE_DIRDLG" = yes; then | |
8771 | echo "$as_me:$LINENO: result: yes" >&5 | |
8772 | echo "${ECHO_T}yes" >&6 | |
8773 | else | |
8774 | echo "$as_me:$LINENO: result: no" >&5 | |
8775 | echo "${ECHO_T}no" >&6 | |
8776 | fi | |
8777 | ||
8778 | ||
8779 | enablestring= | |
8780 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5 | |
8781 | echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6 | |
8782 | no_cache=0 | |
8783 | # Check whether --enable-msgdlg or --disable-msgdlg was given. | |
8784 | if test "${enable_msgdlg+set}" = set; then | |
8785 | enableval="$enable_msgdlg" | |
8786 | ||
8787 | if test "$enableval" = yes; then | |
8788 | ac_cv_use_msgdlg='wxUSE_MSGDLG=yes' | |
8789 | else | |
8790 | ac_cv_use_msgdlg='wxUSE_MSGDLG=no' | |
8791 | fi | |
8792 | ||
8793 | else | |
8794 | ||
8795 | LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}` | |
8796 | if test "x$LINE" != x ; then | |
8797 | eval "DEFAULT_$LINE" | |
8798 | else | |
8799 | no_cache=1 | |
8800 | fi | |
8801 | ||
8802 | ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG | |
8803 | ||
8804 | fi; | |
8805 | ||
8806 | eval "$ac_cv_use_msgdlg" | |
8807 | if test "$no_cache" != 1; then | |
8808 | echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp | |
8809 | fi | |
8810 | ||
8811 | if test "$wxUSE_MSGDLG" = yes; then | |
8812 | echo "$as_me:$LINENO: result: yes" >&5 | |
8813 | echo "${ECHO_T}yes" >&6 | |
8814 | else | |
8815 | echo "$as_me:$LINENO: result: no" >&5 | |
8816 | echo "${ECHO_T}no" >&6 | |
8817 | fi | |
8818 | ||
8819 | ||
8820 | enablestring= | |
8821 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5 | |
8822 | echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6 | |
8823 | no_cache=0 | |
8824 | # Check whether --enable-numberdlg or --disable-numberdlg was given. | |
8825 | if test "${enable_numberdlg+set}" = set; then | |
8826 | enableval="$enable_numberdlg" | |
8827 | ||
8828 | if test "$enableval" = yes; then | |
8829 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes' | |
8830 | else | |
8831 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no' | |
8832 | fi | |
8833 | ||
8834 | else | |
8835 | ||
8836 | LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}` | |
8837 | if test "x$LINE" != x ; then | |
8838 | eval "DEFAULT_$LINE" | |
8839 | else | |
8840 | no_cache=1 | |
8841 | fi | |
8842 | ||
8843 | ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG | |
8844 | ||
8845 | fi; | |
8846 | ||
8847 | eval "$ac_cv_use_numberdlg" | |
8848 | if test "$no_cache" != 1; then | |
8849 | echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp | |
8850 | fi | |
8851 | ||
8852 | if test "$wxUSE_NUMBERDLG" = yes; then | |
8853 | echo "$as_me:$LINENO: result: yes" >&5 | |
8854 | echo "${ECHO_T}yes" >&6 | |
8855 | else | |
8856 | echo "$as_me:$LINENO: result: no" >&5 | |
8857 | echo "${ECHO_T}no" >&6 | |
8858 | fi | |
8859 | ||
8860 | ||
8861 | enablestring= | |
8862 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5 | |
8863 | echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6 | |
8864 | no_cache=0 | |
8865 | # Check whether --enable-splash or --disable-splash was given. | |
8866 | if test "${enable_splash+set}" = set; then | |
8867 | enableval="$enable_splash" | |
8868 | ||
8869 | if test "$enableval" = yes; then | |
8870 | ac_cv_use_splash='wxUSE_SPLASH=yes' | |
8871 | else | |
8872 | ac_cv_use_splash='wxUSE_SPLASH=no' | |
8873 | fi | |
8874 | ||
8875 | else | |
8876 | ||
8877 | LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}` | |
8878 | if test "x$LINE" != x ; then | |
8879 | eval "DEFAULT_$LINE" | |
8880 | else | |
8881 | no_cache=1 | |
8882 | fi | |
8883 | ||
8884 | ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH | |
8885 | ||
8886 | fi; | |
8887 | ||
8888 | eval "$ac_cv_use_splash" | |
8889 | if test "$no_cache" != 1; then | |
8890 | echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp | |
8891 | fi | |
8892 | ||
8893 | if test "$wxUSE_SPLASH" = yes; then | |
8894 | echo "$as_me:$LINENO: result: yes" >&5 | |
8895 | echo "${ECHO_T}yes" >&6 | |
8896 | else | |
8897 | echo "$as_me:$LINENO: result: no" >&5 | |
8898 | echo "${ECHO_T}no" >&6 | |
8899 | fi | |
8900 | ||
8901 | ||
8902 | enablestring= | |
8903 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5 | |
8904 | echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6 | |
8905 | no_cache=0 | |
8906 | # Check whether --enable-textdlg or --disable-textdlg was given. | |
8907 | if test "${enable_textdlg+set}" = set; then | |
8908 | enableval="$enable_textdlg" | |
8909 | ||
8910 | if test "$enableval" = yes; then | |
8911 | ac_cv_use_textdlg='wxUSE_TEXTDLG=yes' | |
8912 | else | |
8913 | ac_cv_use_textdlg='wxUSE_TEXTDLG=no' | |
8914 | fi | |
8915 | ||
8916 | else | |
8917 | ||
8918 | LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}` | |
8919 | if test "x$LINE" != x ; then | |
8920 | eval "DEFAULT_$LINE" | |
8921 | else | |
8922 | no_cache=1 | |
8923 | fi | |
8924 | ||
8925 | ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG | |
8926 | ||
8927 | fi; | |
8928 | ||
8929 | eval "$ac_cv_use_textdlg" | |
8930 | if test "$no_cache" != 1; then | |
8931 | echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp | |
8932 | fi | |
8933 | ||
8934 | if test "$wxUSE_TEXTDLG" = yes; then | |
8935 | echo "$as_me:$LINENO: result: yes" >&5 | |
8936 | echo "${ECHO_T}yes" >&6 | |
8937 | else | |
8938 | echo "$as_me:$LINENO: result: no" >&5 | |
8939 | echo "${ECHO_T}no" >&6 | |
8940 | fi | |
8941 | ||
8942 | ||
8943 | enablestring= | |
8944 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5 | |
8945 | echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6 | |
8946 | no_cache=0 | |
8947 | # Check whether --enable-tipdlg or --disable-tipdlg was given. | |
8948 | if test "${enable_tipdlg+set}" = set; then | |
8949 | enableval="$enable_tipdlg" | |
8950 | ||
8951 | if test "$enableval" = yes; then | |
8952 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes' | |
8953 | else | |
8954 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no' | |
8955 | fi | |
8956 | ||
8957 | else | |
8958 | ||
8959 | LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}` | |
8960 | if test "x$LINE" != x ; then | |
8961 | eval "DEFAULT_$LINE" | |
8962 | else | |
8963 | no_cache=1 | |
8964 | fi | |
8965 | ||
8966 | ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS | |
8967 | ||
8968 | fi; | |
8969 | ||
8970 | eval "$ac_cv_use_tipdlg" | |
8971 | if test "$no_cache" != 1; then | |
8972 | echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp | |
8973 | fi | |
8974 | ||
8975 | if test "$wxUSE_STARTUP_TIPS" = yes; then | |
8976 | echo "$as_me:$LINENO: result: yes" >&5 | |
8977 | echo "${ECHO_T}yes" >&6 | |
8978 | else | |
8979 | echo "$as_me:$LINENO: result: no" >&5 | |
8980 | echo "${ECHO_T}no" >&6 | |
8981 | fi | |
8982 | ||
8983 | ||
8984 | enablestring= | |
8985 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5 | |
8986 | echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6 | |
8987 | no_cache=0 | |
8988 | # Check whether --enable-progressdlg or --disable-progressdlg was given. | |
8989 | if test "${enable_progressdlg+set}" = set; then | |
8990 | enableval="$enable_progressdlg" | |
8991 | ||
8992 | if test "$enableval" = yes; then | |
8993 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes' | |
8994 | else | |
8995 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no' | |
8996 | fi | |
8997 | ||
8998 | else | |
8999 | ||
9000 | LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}` | |
9001 | if test "x$LINE" != x ; then | |
9002 | eval "DEFAULT_$LINE" | |
9003 | else | |
9004 | no_cache=1 | |
9005 | fi | |
9006 | ||
9007 | ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG | |
9008 | ||
9009 | fi; | |
9010 | ||
9011 | eval "$ac_cv_use_progressdlg" | |
9012 | if test "$no_cache" != 1; then | |
9013 | echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp | |
9014 | fi | |
9015 | ||
9016 | if test "$wxUSE_PROGRESSDLG" = yes; then | |
9017 | echo "$as_me:$LINENO: result: yes" >&5 | |
9018 | echo "${ECHO_T}yes" >&6 | |
9019 | else | |
9020 | echo "$as_me:$LINENO: result: no" >&5 | |
9021 | echo "${ECHO_T}no" >&6 | |
9022 | fi | |
9023 | ||
9024 | ||
9025 | enablestring= | |
9026 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5 | |
9027 | echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6 | |
9028 | no_cache=0 | |
9029 | # Check whether --enable-wizarddlg or --disable-wizarddlg was given. | |
9030 | if test "${enable_wizarddlg+set}" = set; then | |
9031 | enableval="$enable_wizarddlg" | |
9032 | ||
9033 | if test "$enableval" = yes; then | |
9034 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes' | |
9035 | else | |
9036 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no' | |
9037 | fi | |
9038 | ||
9039 | else | |
9040 | ||
9041 | LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}` | |
9042 | if test "x$LINE" != x ; then | |
9043 | eval "DEFAULT_$LINE" | |
9044 | else | |
9045 | no_cache=1 | |
9046 | fi | |
9047 | ||
9048 | ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG | |
9049 | ||
9050 | fi; | |
9051 | ||
9052 | eval "$ac_cv_use_wizarddlg" | |
9053 | if test "$no_cache" != 1; then | |
9054 | echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp | |
9055 | fi | |
9056 | ||
9057 | if test "$wxUSE_WIZARDDLG" = yes; then | |
9058 | echo "$as_me:$LINENO: result: yes" >&5 | |
9059 | echo "${ECHO_T}yes" >&6 | |
9060 | else | |
9061 | echo "$as_me:$LINENO: result: no" >&5 | |
9062 | echo "${ECHO_T}no" >&6 | |
9063 | fi | |
9064 | ||
9065 | ||
9066 | ||
9067 | ||
9068 | enablestring= | |
9069 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5 | |
9070 | echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6 | |
9071 | no_cache=0 | |
9072 | # Check whether --enable-menus or --disable-menus was given. | |
9073 | if test "${enable_menus+set}" = set; then | |
9074 | enableval="$enable_menus" | |
9075 | ||
9076 | if test "$enableval" = yes; then | |
9077 | ac_cv_use_menus='wxUSE_MENUS=yes' | |
9078 | else | |
9079 | ac_cv_use_menus='wxUSE_MENUS=no' | |
9080 | fi | |
9081 | ||
9082 | else | |
9083 | ||
9084 | LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}` | |
9085 | if test "x$LINE" != x ; then | |
9086 | eval "DEFAULT_$LINE" | |
9087 | else | |
9088 | no_cache=1 | |
9089 | fi | |
9090 | ||
9091 | ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS | |
9092 | ||
9093 | fi; | |
9094 | ||
9095 | eval "$ac_cv_use_menus" | |
9096 | if test "$no_cache" != 1; then | |
9097 | echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp | |
9098 | fi | |
9099 | ||
9100 | if test "$wxUSE_MENUS" = yes; then | |
9101 | echo "$as_me:$LINENO: result: yes" >&5 | |
9102 | echo "${ECHO_T}yes" >&6 | |
9103 | else | |
9104 | echo "$as_me:$LINENO: result: no" >&5 | |
9105 | echo "${ECHO_T}no" >&6 | |
9106 | fi | |
9107 | ||
9108 | ||
9109 | enablestring= | |
9110 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5 | |
9111 | echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6 | |
9112 | no_cache=0 | |
9113 | # Check whether --enable-miniframe or --disable-miniframe was given. | |
9114 | if test "${enable_miniframe+set}" = set; then | |
9115 | enableval="$enable_miniframe" | |
9116 | ||
9117 | if test "$enableval" = yes; then | |
9118 | ac_cv_use_miniframe='wxUSE_MINIFRAME=yes' | |
9119 | else | |
9120 | ac_cv_use_miniframe='wxUSE_MINIFRAME=no' | |
9121 | fi | |
9122 | ||
9123 | else | |
9124 | ||
9125 | LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}` | |
9126 | if test "x$LINE" != x ; then | |
9127 | eval "DEFAULT_$LINE" | |
9128 | else | |
9129 | no_cache=1 | |
9130 | fi | |
9131 | ||
9132 | ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME | |
9133 | ||
9134 | fi; | |
9135 | ||
9136 | eval "$ac_cv_use_miniframe" | |
9137 | if test "$no_cache" != 1; then | |
9138 | echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp | |
9139 | fi | |
9140 | ||
9141 | if test "$wxUSE_MINIFRAME" = yes; then | |
9142 | echo "$as_me:$LINENO: result: yes" >&5 | |
9143 | echo "${ECHO_T}yes" >&6 | |
9144 | else | |
9145 | echo "$as_me:$LINENO: result: no" >&5 | |
9146 | echo "${ECHO_T}no" >&6 | |
9147 | fi | |
9148 | ||
9149 | ||
9150 | enablestring= | |
9151 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5 | |
9152 | echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6 | |
9153 | no_cache=0 | |
9154 | # Check whether --enable-tooltips or --disable-tooltips was given. | |
9155 | if test "${enable_tooltips+set}" = set; then | |
9156 | enableval="$enable_tooltips" | |
9157 | ||
9158 | if test "$enableval" = yes; then | |
9159 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes' | |
9160 | else | |
9161 | ac_cv_use_tooltips='wxUSE_TOOLTIPS=no' | |
9162 | fi | |
9163 | ||
9164 | else | |
9165 | ||
9166 | LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}` | |
9167 | if test "x$LINE" != x ; then | |
9168 | eval "DEFAULT_$LINE" | |
9169 | else | |
9170 | no_cache=1 | |
9171 | fi | |
9172 | ||
9173 | ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS | |
9174 | ||
9175 | fi; | |
9176 | ||
9177 | eval "$ac_cv_use_tooltips" | |
9178 | if test "$no_cache" != 1; then | |
9179 | echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp | |
9180 | fi | |
9181 | ||
9182 | if test "$wxUSE_TOOLTIPS" = yes; then | |
9183 | echo "$as_me:$LINENO: result: yes" >&5 | |
9184 | echo "${ECHO_T}yes" >&6 | |
9185 | else | |
9186 | echo "$as_me:$LINENO: result: no" >&5 | |
9187 | echo "${ECHO_T}no" >&6 | |
9188 | fi | |
9189 | ||
9190 | ||
9191 | enablestring= | |
9192 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5 | |
9193 | echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6 | |
9194 | no_cache=0 | |
9195 | # Check whether --enable-splines or --disable-splines was given. | |
9196 | if test "${enable_splines+set}" = set; then | |
9197 | enableval="$enable_splines" | |
9198 | ||
9199 | if test "$enableval" = yes; then | |
9200 | ac_cv_use_splines='wxUSE_SPLINES=yes' | |
9201 | else | |
9202 | ac_cv_use_splines='wxUSE_SPLINES=no' | |
9203 | fi | |
9204 | ||
9205 | else | |
9206 | ||
9207 | LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}` | |
9208 | if test "x$LINE" != x ; then | |
9209 | eval "DEFAULT_$LINE" | |
9210 | else | |
9211 | no_cache=1 | |
9212 | fi | |
9213 | ||
9214 | ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES | |
9215 | ||
9216 | fi; | |
9217 | ||
9218 | eval "$ac_cv_use_splines" | |
9219 | if test "$no_cache" != 1; then | |
9220 | echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp | |
9221 | fi | |
9222 | ||
9223 | if test "$wxUSE_SPLINES" = yes; then | |
9224 | echo "$as_me:$LINENO: result: yes" >&5 | |
9225 | echo "${ECHO_T}yes" >&6 | |
9226 | else | |
9227 | echo "$as_me:$LINENO: result: no" >&5 | |
9228 | echo "${ECHO_T}no" >&6 | |
9229 | fi | |
9230 | ||
9231 | ||
9232 | enablestring= | |
9233 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5 | |
9234 | echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6 | |
9235 | no_cache=0 | |
9236 | # Check whether --enable-validators or --disable-validators was given. | |
9237 | if test "${enable_validators+set}" = set; then | |
9238 | enableval="$enable_validators" | |
9239 | ||
9240 | if test "$enableval" = yes; then | |
9241 | ac_cv_use_validators='wxUSE_VALIDATORS=yes' | |
9242 | else | |
9243 | ac_cv_use_validators='wxUSE_VALIDATORS=no' | |
9244 | fi | |
9245 | ||
9246 | else | |
9247 | ||
9248 | LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}` | |
9249 | if test "x$LINE" != x ; then | |
9250 | eval "DEFAULT_$LINE" | |
9251 | else | |
9252 | no_cache=1 | |
9253 | fi | |
9254 | ||
9255 | ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS | |
9256 | ||
9257 | fi; | |
9258 | ||
9259 | eval "$ac_cv_use_validators" | |
9260 | if test "$no_cache" != 1; then | |
9261 | echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp | |
9262 | fi | |
9263 | ||
9264 | if test "$wxUSE_VALIDATORS" = yes; then | |
9265 | echo "$as_me:$LINENO: result: yes" >&5 | |
9266 | echo "${ECHO_T}yes" >&6 | |
9267 | else | |
9268 | echo "$as_me:$LINENO: result: no" >&5 | |
9269 | echo "${ECHO_T}no" >&6 | |
9270 | fi | |
9271 | ||
9272 | ||
9273 | enablestring= | |
9274 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5 | |
9275 | echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6 | |
9276 | no_cache=0 | |
9277 | # Check whether --enable-busyinfo or --disable-busyinfo was given. | |
9278 | if test "${enable_busyinfo+set}" = set; then | |
9279 | enableval="$enable_busyinfo" | |
9280 | ||
9281 | if test "$enableval" = yes; then | |
9282 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes' | |
9283 | else | |
9284 | ac_cv_use_busyinfo='wxUSE_BUSYINFO=no' | |
9285 | fi | |
9286 | ||
9287 | else | |
9288 | ||
9289 | LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}` | |
9290 | if test "x$LINE" != x ; then | |
9291 | eval "DEFAULT_$LINE" | |
9292 | else | |
9293 | no_cache=1 | |
9294 | fi | |
9295 | ||
9296 | ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO | |
9297 | ||
9298 | fi; | |
9299 | ||
9300 | eval "$ac_cv_use_busyinfo" | |
9301 | if test "$no_cache" != 1; then | |
9302 | echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp | |
9303 | fi | |
9304 | ||
9305 | if test "$wxUSE_BUSYINFO" = yes; then | |
9306 | echo "$as_me:$LINENO: result: yes" >&5 | |
9307 | echo "${ECHO_T}yes" >&6 | |
9308 | else | |
9309 | echo "$as_me:$LINENO: result: no" >&5 | |
9310 | echo "${ECHO_T}no" >&6 | |
9311 | fi | |
9312 | ||
9313 | ||
9314 | enablestring= | |
9315 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5 | |
9316 | echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6 | |
9317 | no_cache=0 | |
9318 | # Check whether --enable-joystick or --disable-joystick was given. | |
9319 | if test "${enable_joystick+set}" = set; then | |
9320 | enableval="$enable_joystick" | |
9321 | ||
9322 | if test "$enableval" = yes; then | |
9323 | ac_cv_use_joystick='wxUSE_JOYSTICK=yes' | |
9324 | else | |
9325 | ac_cv_use_joystick='wxUSE_JOYSTICK=no' | |
9326 | fi | |
9327 | ||
9328 | else | |
9329 | ||
9330 | LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}` | |
9331 | if test "x$LINE" != x ; then | |
9332 | eval "DEFAULT_$LINE" | |
9333 | else | |
9334 | no_cache=1 | |
9335 | fi | |
9336 | ||
9337 | ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK | |
9338 | ||
9339 | fi; | |
9340 | ||
9341 | eval "$ac_cv_use_joystick" | |
9342 | if test "$no_cache" != 1; then | |
9343 | echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp | |
9344 | fi | |
9345 | ||
9346 | if test "$wxUSE_JOYSTICK" = yes; then | |
9347 | echo "$as_me:$LINENO: result: yes" >&5 | |
9348 | echo "${ECHO_T}yes" >&6 | |
9349 | else | |
9350 | echo "$as_me:$LINENO: result: no" >&5 | |
9351 | echo "${ECHO_T}no" >&6 | |
9352 | fi | |
9353 | ||
9354 | ||
9355 | enablestring= | |
9356 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5 | |
9357 | echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6 | |
9358 | no_cache=0 | |
9359 | # Check whether --enable-metafile or --disable-metafile was given. | |
9360 | if test "${enable_metafile+set}" = set; then | |
9361 | enableval="$enable_metafile" | |
9362 | ||
9363 | if test "$enableval" = yes; then | |
9364 | ac_cv_use_metafile='wxUSE_METAFILE=yes' | |
9365 | else | |
9366 | ac_cv_use_metafile='wxUSE_METAFILE=no' | |
9367 | fi | |
9368 | ||
9369 | else | |
9370 | ||
9371 | LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}` | |
9372 | if test "x$LINE" != x ; then | |
9373 | eval "DEFAULT_$LINE" | |
9374 | else | |
9375 | no_cache=1 | |
9376 | fi | |
9377 | ||
9378 | ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE | |
9379 | ||
9380 | fi; | |
9381 | ||
9382 | eval "$ac_cv_use_metafile" | |
9383 | if test "$no_cache" != 1; then | |
9384 | echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp | |
9385 | fi | |
9386 | ||
9387 | if test "$wxUSE_METAFILE" = yes; then | |
9388 | echo "$as_me:$LINENO: result: yes" >&5 | |
9389 | echo "${ECHO_T}yes" >&6 | |
9390 | else | |
9391 | echo "$as_me:$LINENO: result: no" >&5 | |
9392 | echo "${ECHO_T}no" >&6 | |
9393 | fi | |
9394 | ||
9395 | ||
9396 | enablestring= | |
9397 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5 | |
9398 | echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6 | |
9399 | no_cache=0 | |
9400 | # Check whether --enable-dragimage or --disable-dragimage was given. | |
9401 | if test "${enable_dragimage+set}" = set; then | |
9402 | enableval="$enable_dragimage" | |
9403 | ||
9404 | if test "$enableval" = yes; then | |
9405 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes' | |
9406 | else | |
9407 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no' | |
9408 | fi | |
9409 | ||
9410 | else | |
9411 | ||
9412 | LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}` | |
9413 | if test "x$LINE" != x ; then | |
9414 | eval "DEFAULT_$LINE" | |
9415 | else | |
9416 | no_cache=1 | |
9417 | fi | |
9418 | ||
9419 | ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE | |
9420 | ||
9421 | fi; | |
9422 | ||
9423 | eval "$ac_cv_use_dragimage" | |
9424 | if test "$no_cache" != 1; then | |
9425 | echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp | |
9426 | fi | |
9427 | ||
9428 | if test "$wxUSE_DRAGIMAGE" = yes; then | |
9429 | echo "$as_me:$LINENO: result: yes" >&5 | |
9430 | echo "${ECHO_T}yes" >&6 | |
9431 | else | |
9432 | echo "$as_me:$LINENO: result: no" >&5 | |
9433 | echo "${ECHO_T}no" >&6 | |
9434 | fi | |
9435 | ||
9436 | ||
9437 | enablestring= | |
9438 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5 | |
9439 | echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6 | |
9440 | no_cache=0 | |
9441 | # Check whether --enable-accessibility or --disable-accessibility was given. | |
9442 | if test "${enable_accessibility+set}" = set; then | |
9443 | enableval="$enable_accessibility" | |
9444 | ||
9445 | if test "$enableval" = yes; then | |
9446 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes' | |
9447 | else | |
9448 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY=no' | |
9449 | fi | |
9450 | ||
9451 | else | |
9452 | ||
9453 | LINE=`grep "wxUSE_ACCESSIBILITY" ${wx_arg_cache_file}` | |
9454 | if test "x$LINE" != x ; then | |
9455 | eval "DEFAULT_$LINE" | |
9456 | else | |
9457 | no_cache=1 | |
9458 | fi | |
9459 | ||
9460 | ac_cv_use_accessibility='wxUSE_ACCESSIBILITY='$DEFAULT_wxUSE_ACCESSIBILITY | |
9461 | ||
9462 | fi; | |
9463 | ||
9464 | eval "$ac_cv_use_accessibility" | |
9465 | if test "$no_cache" != 1; then | |
9466 | echo $ac_cv_use_accessibility >> ${wx_arg_cache_file}.tmp | |
9467 | fi | |
9468 | ||
9469 | if test "$wxUSE_ACCESSIBILITY" = yes; then | |
9470 | echo "$as_me:$LINENO: result: yes" >&5 | |
9471 | echo "${ECHO_T}yes" >&6 | |
9472 | else | |
9473 | echo "$as_me:$LINENO: result: no" >&5 | |
9474 | echo "${ECHO_T}no" >&6 | |
9475 | fi | |
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | enablestring= | |
9481 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5 | |
9482 | echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6 | |
9483 | no_cache=0 | |
9484 | # Check whether --enable-palette or --disable-palette was given. | |
9485 | if test "${enable_palette+set}" = set; then | |
9486 | enableval="$enable_palette" | |
9487 | ||
9488 | if test "$enableval" = yes; then | |
9489 | ac_cv_use_palette='wxUSE_PALETTE=yes' | |
9490 | else | |
9491 | ac_cv_use_palette='wxUSE_PALETTE=no' | |
9492 | fi | |
9493 | ||
9494 | else | |
9495 | ||
9496 | LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}` | |
9497 | if test "x$LINE" != x ; then | |
9498 | eval "DEFAULT_$LINE" | |
9499 | else | |
9500 | no_cache=1 | |
9501 | fi | |
9502 | ||
9503 | ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE | |
9504 | ||
9505 | fi; | |
9506 | ||
9507 | eval "$ac_cv_use_palette" | |
9508 | if test "$no_cache" != 1; then | |
9509 | echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp | |
9510 | fi | |
9511 | ||
9512 | if test "$wxUSE_PALETTE" = yes; then | |
9513 | echo "$as_me:$LINENO: result: yes" >&5 | |
9514 | echo "${ECHO_T}yes" >&6 | |
9515 | else | |
9516 | echo "$as_me:$LINENO: result: no" >&5 | |
9517 | echo "${ECHO_T}no" >&6 | |
9518 | fi | |
9519 | ||
9520 | ||
9521 | enablestring= | |
9522 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5 | |
9523 | echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6 | |
9524 | no_cache=0 | |
9525 | # Check whether --enable-image or --disable-image was given. | |
9526 | if test "${enable_image+set}" = set; then | |
9527 | enableval="$enable_image" | |
9528 | ||
9529 | if test "$enableval" = yes; then | |
9530 | ac_cv_use_image='wxUSE_IMAGE=yes' | |
9531 | else | |
9532 | ac_cv_use_image='wxUSE_IMAGE=no' | |
9533 | fi | |
9534 | ||
9535 | else | |
9536 | ||
9537 | LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}` | |
9538 | if test "x$LINE" != x ; then | |
9539 | eval "DEFAULT_$LINE" | |
9540 | else | |
9541 | no_cache=1 | |
9542 | fi | |
9543 | ||
9544 | ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE | |
9545 | ||
9546 | fi; | |
9547 | ||
9548 | eval "$ac_cv_use_image" | |
9549 | if test "$no_cache" != 1; then | |
9550 | echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp | |
9551 | fi | |
9552 | ||
9553 | if test "$wxUSE_IMAGE" = yes; then | |
9554 | echo "$as_me:$LINENO: result: yes" >&5 | |
9555 | echo "${ECHO_T}yes" >&6 | |
9556 | else | |
9557 | echo "$as_me:$LINENO: result: no" >&5 | |
9558 | echo "${ECHO_T}no" >&6 | |
9559 | fi | |
9560 | ||
9561 | ||
9562 | enablestring= | |
9563 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5 | |
9564 | echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6 | |
9565 | no_cache=0 | |
9566 | # Check whether --enable-gif or --disable-gif was given. | |
9567 | if test "${enable_gif+set}" = set; then | |
9568 | enableval="$enable_gif" | |
9569 | ||
9570 | if test "$enableval" = yes; then | |
9571 | ac_cv_use_gif='wxUSE_GIF=yes' | |
9572 | else | |
9573 | ac_cv_use_gif='wxUSE_GIF=no' | |
9574 | fi | |
9575 | ||
9576 | else | |
9577 | ||
9578 | LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}` | |
9579 | if test "x$LINE" != x ; then | |
9580 | eval "DEFAULT_$LINE" | |
9581 | else | |
9582 | no_cache=1 | |
9583 | fi | |
9584 | ||
9585 | ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF | |
9586 | ||
9587 | fi; | |
9588 | ||
9589 | eval "$ac_cv_use_gif" | |
9590 | if test "$no_cache" != 1; then | |
9591 | echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp | |
9592 | fi | |
9593 | ||
9594 | if test "$wxUSE_GIF" = yes; then | |
9595 | echo "$as_me:$LINENO: result: yes" >&5 | |
9596 | echo "${ECHO_T}yes" >&6 | |
9597 | else | |
9598 | echo "$as_me:$LINENO: result: no" >&5 | |
9599 | echo "${ECHO_T}no" >&6 | |
9600 | fi | |
9601 | ||
9602 | ||
9603 | enablestring= | |
9604 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5 | |
9605 | echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6 | |
9606 | no_cache=0 | |
9607 | # Check whether --enable-pcx or --disable-pcx was given. | |
9608 | if test "${enable_pcx+set}" = set; then | |
9609 | enableval="$enable_pcx" | |
9610 | ||
9611 | if test "$enableval" = yes; then | |
9612 | ac_cv_use_pcx='wxUSE_PCX=yes' | |
9613 | else | |
9614 | ac_cv_use_pcx='wxUSE_PCX=no' | |
9615 | fi | |
9616 | ||
9617 | else | |
9618 | ||
9619 | LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}` | |
9620 | if test "x$LINE" != x ; then | |
9621 | eval "DEFAULT_$LINE" | |
9622 | else | |
9623 | no_cache=1 | |
9624 | fi | |
9625 | ||
9626 | ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX | |
9627 | ||
9628 | fi; | |
9629 | ||
9630 | eval "$ac_cv_use_pcx" | |
9631 | if test "$no_cache" != 1; then | |
9632 | echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp | |
9633 | fi | |
9634 | ||
9635 | if test "$wxUSE_PCX" = yes; then | |
9636 | echo "$as_me:$LINENO: result: yes" >&5 | |
9637 | echo "${ECHO_T}yes" >&6 | |
9638 | else | |
9639 | echo "$as_me:$LINENO: result: no" >&5 | |
9640 | echo "${ECHO_T}no" >&6 | |
9641 | fi | |
9642 | ||
9643 | ||
9644 | enablestring= | |
9645 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5 | |
9646 | echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6 | |
9647 | no_cache=0 | |
9648 | # Check whether --enable-iff or --disable-iff was given. | |
9649 | if test "${enable_iff+set}" = set; then | |
9650 | enableval="$enable_iff" | |
9651 | ||
9652 | if test "$enableval" = yes; then | |
9653 | ac_cv_use_iff='wxUSE_IFF=yes' | |
9654 | else | |
9655 | ac_cv_use_iff='wxUSE_IFF=no' | |
9656 | fi | |
9657 | ||
9658 | else | |
9659 | ||
9660 | LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}` | |
9661 | if test "x$LINE" != x ; then | |
9662 | eval "DEFAULT_$LINE" | |
9663 | else | |
9664 | no_cache=1 | |
9665 | fi | |
9666 | ||
9667 | ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF | |
9668 | ||
9669 | fi; | |
9670 | ||
9671 | eval "$ac_cv_use_iff" | |
9672 | if test "$no_cache" != 1; then | |
9673 | echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp | |
9674 | fi | |
9675 | ||
9676 | if test "$wxUSE_IFF" = yes; then | |
9677 | echo "$as_me:$LINENO: result: yes" >&5 | |
9678 | echo "${ECHO_T}yes" >&6 | |
9679 | else | |
9680 | echo "$as_me:$LINENO: result: no" >&5 | |
9681 | echo "${ECHO_T}no" >&6 | |
9682 | fi | |
9683 | ||
9684 | ||
9685 | enablestring= | |
9686 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5 | |
9687 | echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6 | |
9688 | no_cache=0 | |
9689 | # Check whether --enable-pnm or --disable-pnm was given. | |
9690 | if test "${enable_pnm+set}" = set; then | |
9691 | enableval="$enable_pnm" | |
9692 | ||
9693 | if test "$enableval" = yes; then | |
9694 | ac_cv_use_pnm='wxUSE_PNM=yes' | |
9695 | else | |
9696 | ac_cv_use_pnm='wxUSE_PNM=no' | |
9697 | fi | |
9698 | ||
9699 | else | |
9700 | ||
9701 | LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}` | |
9702 | if test "x$LINE" != x ; then | |
9703 | eval "DEFAULT_$LINE" | |
9704 | else | |
9705 | no_cache=1 | |
9706 | fi | |
9707 | ||
9708 | ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM | |
9709 | ||
9710 | fi; | |
9711 | ||
9712 | eval "$ac_cv_use_pnm" | |
9713 | if test "$no_cache" != 1; then | |
9714 | echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp | |
9715 | fi | |
9716 | ||
9717 | if test "$wxUSE_PNM" = yes; then | |
9718 | echo "$as_me:$LINENO: result: yes" >&5 | |
9719 | echo "${ECHO_T}yes" >&6 | |
9720 | else | |
9721 | echo "$as_me:$LINENO: result: no" >&5 | |
9722 | echo "${ECHO_T}no" >&6 | |
9723 | fi | |
9724 | ||
9725 | ||
9726 | enablestring= | |
9727 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5 | |
9728 | echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6 | |
9729 | no_cache=0 | |
9730 | # Check whether --enable-xpm or --disable-xpm was given. | |
9731 | if test "${enable_xpm+set}" = set; then | |
9732 | enableval="$enable_xpm" | |
9733 | ||
9734 | if test "$enableval" = yes; then | |
9735 | ac_cv_use_xpm='wxUSE_XPM=yes' | |
9736 | else | |
9737 | ac_cv_use_xpm='wxUSE_XPM=no' | |
9738 | fi | |
9739 | ||
9740 | else | |
9741 | ||
9742 | LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}` | |
9743 | if test "x$LINE" != x ; then | |
9744 | eval "DEFAULT_$LINE" | |
9745 | else | |
9746 | no_cache=1 | |
9747 | fi | |
9748 | ||
9749 | ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM | |
9750 | ||
9751 | fi; | |
9752 | ||
9753 | eval "$ac_cv_use_xpm" | |
9754 | if test "$no_cache" != 1; then | |
9755 | echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp | |
9756 | fi | |
9757 | ||
9758 | if test "$wxUSE_XPM" = yes; then | |
9759 | echo "$as_me:$LINENO: result: yes" >&5 | |
9760 | echo "${ECHO_T}yes" >&6 | |
9761 | else | |
9762 | echo "$as_me:$LINENO: result: no" >&5 | |
9763 | echo "${ECHO_T}no" >&6 | |
9764 | fi | |
9765 | ||
9766 | ||
9767 | enablestring= | |
9768 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5 | |
9769 | echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6 | |
9770 | no_cache=0 | |
9771 | # Check whether --enable-ico_cur or --disable-ico_cur was given. | |
9772 | if test "${enable_ico_cur+set}" = set; then | |
9773 | enableval="$enable_ico_cur" | |
9774 | ||
9775 | if test "$enableval" = yes; then | |
9776 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes' | |
9777 | else | |
9778 | ac_cv_use_ico_cur='wxUSE_ICO_CUR=no' | |
9779 | fi | |
9780 | ||
9781 | else | |
9782 | ||
9783 | LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}` | |
9784 | if test "x$LINE" != x ; then | |
9785 | eval "DEFAULT_$LINE" | |
9786 | else | |
9787 | no_cache=1 | |
9788 | fi | |
9789 | ||
9790 | ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR | |
9791 | ||
9792 | fi; | |
9793 | ||
9794 | eval "$ac_cv_use_ico_cur" | |
9795 | if test "$no_cache" != 1; then | |
9796 | echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp | |
9797 | fi | |
9798 | ||
9799 | if test "$wxUSE_ICO_CUR" = yes; then | |
9800 | echo "$as_me:$LINENO: result: yes" >&5 | |
9801 | echo "${ECHO_T}yes" >&6 | |
9802 | else | |
9803 | echo "$as_me:$LINENO: result: no" >&5 | |
9804 | echo "${ECHO_T}no" >&6 | |
9805 | fi | |
9806 | ||
9807 | ||
9808 | fi | |
9809 | ||
9810 | ||
9811 | ||
9812 | enablestring= | |
9813 | echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5 | |
9814 | echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6 | |
9815 | no_cache=0 | |
9816 | # Check whether --enable-official_build or --disable-official_build was given. | |
9817 | if test "${enable_official_build+set}" = set; then | |
9818 | enableval="$enable_official_build" | |
9819 | ||
9820 | if test "$enableval" = yes; then | |
9821 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes' | |
9822 | else | |
9823 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no' | |
9824 | fi | |
9825 | ||
9826 | else | |
9827 | ||
9828 | LINE=`grep "wxUSE_OFFICIAL_BUILD" ${wx_arg_cache_file}` | |
9829 | if test "x$LINE" != x ; then | |
9830 | eval "DEFAULT_$LINE" | |
9831 | else | |
9832 | no_cache=1 | |
9833 | fi | |
9834 | ||
9835 | ac_cv_use_official_build='wxUSE_OFFICIAL_BUILD='$DEFAULT_wxUSE_OFFICIAL_BUILD | |
9836 | ||
9837 | fi; | |
9838 | ||
9839 | eval "$ac_cv_use_official_build" | |
9840 | if test "$no_cache" != 1; then | |
9841 | echo $ac_cv_use_official_build >> ${wx_arg_cache_file}.tmp | |
9842 | fi | |
9843 | ||
9844 | if test "$wxUSE_OFFICIAL_BUILD" = yes; then | |
9845 | echo "$as_me:$LINENO: result: yes" >&5 | |
9846 | echo "${ECHO_T}yes" >&6 | |
9847 | else | |
9848 | echo "$as_me:$LINENO: result: no" >&5 | |
9849 | echo "${ECHO_T}no" >&6 | |
9850 | fi | |
9851 | ||
9852 | # Check whether --enable-vendor or --disable-vendor was given. | |
9853 | if test "${enable_vendor+set}" = set; then | |
9854 | enableval="$enable_vendor" | |
9855 | VENDOR="$enableval" | |
9856 | fi; | |
9857 | if test "x$VENDOR" = "x"; then | |
9858 | VENDOR="custom" | |
9859 | fi | |
9860 | ||
9861 | case "${host}" in | |
9862 | *-pc-os2_emx | *-pc-os2-emx ) | |
9863 | PATH_IFS=';' | |
a848cd7e SC |
9864 | ;; |
9865 | *) | |
9866 | PATH_IFS=':' | |
9867 | ;; | |
9868 | esac | |
9869 | ||
9870 | ||
9871 | ||
9872 | echo "saving argument cache $wx_arg_cache_file" | |
9873 | mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file} | |
9874 | ||
9875 | ||
9876 | ||
9877 | echo "$as_me:$LINENO: checking for toolkit" >&5 | |
9878 | echo $ECHO_N "checking for toolkit... $ECHO_C" >&6 | |
9879 | ||
9880 | # In Wine, we need to default to MSW, not GTK or MOTIF | |
9881 | if test "$wxUSE_WINE" = "yes"; then | |
9882 | DEFAULT_DEFAULT_wxUSE_GTK=0 | |
9883 | DEFAULT_DEFAULT_wxUSE_MOTIF=0 | |
9884 | DEFAULT_DEFAULT_wxUSE_MSW=1 | |
9885 | wxUSE_SHARED=no | |
9886 | fi | |
9887 | ||
9888 | if test "$wxUSE_GUI" = "yes"; then | |
9889 | ||
9890 | if test "$USE_BEOS" = 1; then | |
9891 | { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5 | |
9892 | echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;} | |
9893 | { (exit 1); exit 1; }; } | |
9894 | fi | |
9895 | ||
9896 | if test "$TOOLKIT_GIVEN" = 1; then | |
9897 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9898 | var=wxUSE_$toolkit | |
9899 | eval "value=\$${var}" | |
9900 | eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`" | |
9901 | done | |
9902 | else | |
9903 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9904 | if test "$has_toolkit_in_cache" != 1; then | |
9905 | var=DEFAULT_DEFAULT_wxUSE_$toolkit | |
9906 | else | |
9907 | var=DEFAULT_wxUSE_$toolkit | |
9908 | fi | |
9909 | eval "wxUSE_$toolkit=\$${var}" | |
9910 | done | |
9911 | fi | |
9912 | ||
9913 | NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \ | |
9914 | + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} \ | |
9915 | + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}` | |
9916 | ||
9917 | case "${host}" in | |
9918 | *-pc-os2_emx | *-pc-os2-emx ) | |
9919 | NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}` | |
9920 | esac | |
9921 | ||
9922 | case "$NUM_TOOLKITS" in | |
9923 | 1) | |
9924 | ;; | |
9925 | 0) | |
9926 | { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5 | |
9927 | echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;} | |
9928 | { (exit 1); exit 1; }; } | |
9929 | ;; | |
9930 | *) | |
9931 | { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5 | |
9932 | echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;} | |
9933 | { (exit 1); exit 1; }; } | |
9934 | esac | |
9935 | ||
9936 | for toolkit in `echo $ALL_TOOLKITS`; do | |
9937 | var=wxUSE_$toolkit | |
9938 | eval "value=\$${var}" | |
9939 | if test "x$value" != x; then | |
9940 | cache_var=CACHE_$toolkit | |
9941 | eval "cache=\$${cache_var}" | |
9942 | if test "$cache" = 1; then | |
9943 | echo "$var=$value" >> ${wx_arg_cache_file} | |
9944 | fi | |
9945 | if test "$value" = 1; then | |
9946 | toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"` | |
9947 | echo "$as_me:$LINENO: result: $toolkit_echo" >&5 | |
9948 | echo "${ECHO_T}$toolkit_echo" >&6 | |
9949 | fi | |
9950 | fi | |
9951 | done | |
9952 | else | |
9953 | if test "x$host_alias" != "x"; then | |
9954 | echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5 | |
9955 | echo "${ECHO_T}base ($host_alias hosted) only" >&6 | |
9956 | else | |
9957 | echo "$as_me:$LINENO: result: base only" >&5 | |
9958 | echo "${ECHO_T}base only" >&6 | |
9959 | fi | |
9960 | fi | |
9961 | ||
9962 | wants_win32=0 | |
9963 | doesnt_want_win32=0 | |
9964 | case "${host}" in | |
9965 | *-*-cygwin*) | |
9966 | if test "$wxUSE_MSW" = 1 ; then | |
9967 | wants_win32=1 | |
9968 | else | |
9969 | doesnt_want_win32=1 | |
9970 | fi | |
9971 | ;; | |
9972 | *-*-mingw*) | |
9973 | wants_win32=1 | |
9974 | ;; | |
9975 | esac | |
9976 | ||
9977 | if test "$wxUSE_WINE" = "yes"; then | |
9978 | wants_win32=1 | |
9979 | CC=winegcc | |
9980 | CXX=wineg++ | |
9981 | RESCOMP=wrc | |
9982 | LDFLAGS_GUI="-mwindows" | |
9983 | fi | |
9984 | ||
9985 | if test "$wants_win32" = 1 ; then | |
9986 | USE_UNIX=0 | |
9987 | USE_WIN32=1 | |
9988 | cat >>confdefs.h <<\_ACEOF | |
9989 | #define __WIN32__ 1 | |
9990 | _ACEOF | |
9991 | ||
9992 | cat >>confdefs.h <<\_ACEOF | |
9993 | #define __WIN95__ 1 | |
9994 | _ACEOF | |
9995 | ||
9996 | cat >>confdefs.h <<\_ACEOF | |
9997 | #define __WINDOWS__ 1 | |
9998 | _ACEOF | |
9999 | ||
10000 | cat >>confdefs.h <<\_ACEOF | |
10001 | #define __GNUWIN32__ 1 | |
10002 | _ACEOF | |
10003 | ||
10004 | cat >>confdefs.h <<\_ACEOF | |
10005 | #define STRICT 1 | |
10006 | _ACEOF | |
10007 | ||
10008 | cat >>confdefs.h <<\_ACEOF | |
10009 | #define WINVER 0x0400 | |
10010 | _ACEOF | |
10011 | ||
10012 | fi | |
10013 | if test "$doesnt_want_win32" = 1 ; then | |
10014 | USE_UNIX=1 | |
10015 | USE_WIN32=0 | |
10016 | fi | |
10017 | ||
10018 | if test "$USE_UNIX" = 1 ; then | |
10019 | wxUSE_UNIX=yes | |
10020 | cat >>confdefs.h <<\_ACEOF | |
10021 | #define __UNIX__ 1 | |
10022 | _ACEOF | |
10023 | ||
10024 | fi | |
10025 | ||
10026 | ||
10027 | cat >confcache <<\_ACEOF | |
10028 | # This file is a shell script that caches the results of configure | |
10029 | # tests run on this system so they can be shared between configure | |
10030 | # scripts and configure runs, see configure's option --config-cache. | |
10031 | # It is not useful on other systems. If it contains results you don't | |
10032 | # want to keep, you may remove or edit it. | |
10033 | # | |
10034 | # config.status only pays attention to the cache file if you give it | |
10035 | # the --recheck option to rerun configure. | |
10036 | # | |
10037 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10038 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10039 | # following values. | |
10040 | ||
10041 | _ACEOF | |
10042 | ||
10043 | # The following way of writing the cache mishandles newlines in values, | |
10044 | # but we know of no workaround that is simple, portable, and efficient. | |
10045 | # So, don't put newlines in cache variables' values. | |
10046 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10047 | # and sets the high bit in the cache file unless we assign to the vars. | |
10048 | { | |
10049 | (set) 2>&1 | | |
10050 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
10051 | *ac_space=\ *) | |
10052 | # `set' does not quote correctly, so add quotes (double-quote | |
10053 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
10054 | sed -n \ | |
8a7b1113 VZ |
10055 | "s/'/'\\\\''/g; |
10056 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
10057 | ;; |
10058 | *) | |
10059 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10060 | sed -n \ | |
8a7b1113 | 10061 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
10062 | ;; |
10063 | esac; | |
10064 | } | | |
10065 | sed ' | |
10066 | t clear | |
10067 | : clear | |
10068 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10069 | t end | |
10070 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10071 | : end' >>confcache | |
10072 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
10073 | if test -w $cache_file; then | |
10074 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
10075 | cat confcache >$cache_file | |
10076 | else | |
10077 | echo "not updating unwritable cache $cache_file" | |
10078 | fi | |
10079 | fi | |
10080 | rm -f confcache | |
10081 | ||
10082 | if test "$build" != "$host" ; then | |
10083 | if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then | |
10084 | CC=$host_alias-gcc | |
10085 | CXX=$host_alias-c++ | |
10086 | AR=$host_alias-ar | |
10087 | RANLIB=$host_alias-ranlib | |
10088 | DLLTOOL=$host_alias-dlltool | |
10089 | RESCOMP=$host_alias-windres | |
10090 | LD=$host_alias-ld | |
10091 | NM=$host_alias-nm | |
10092 | STRIP=$host_alias-strip | |
10093 | else | |
10094 | { { echo "$as_me:$LINENO: error: $build_alias -> $host_alias cross compilation not supported yet." >&5 | |
10095 | echo "$as_me: error: $build_alias -> $host_alias cross compilation not supported yet." >&2;} | |
10096 | { (exit 1); exit 1; }; } | |
10097 | fi | |
10098 | fi | |
10099 | ||
10100 | CFLAGS=${CFLAGS:=} | |
10101 | ac_ext=c | |
10102 | ac_cpp='$CPP $CPPFLAGS' | |
10103 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10104 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10105 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10106 | if test -n "$ac_tool_prefix"; then | |
10107 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
10108 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
10109 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10110 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10111 | if test "${ac_cv_prog_CC+set}" = set; then | |
10112 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10113 | else | |
10114 | if test -n "$CC"; then | |
10115 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10116 | else | |
10117 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10118 | for as_dir in $PATH | |
10119 | do | |
10120 | IFS=$as_save_IFS | |
10121 | test -z "$as_dir" && as_dir=. | |
10122 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10123 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10124 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
10125 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10126 | break 2 | |
10127 | fi | |
10128 | done | |
10129 | done | |
10130 | ||
10131 | fi | |
10132 | fi | |
10133 | CC=$ac_cv_prog_CC | |
10134 | if test -n "$CC"; then | |
10135 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10136 | echo "${ECHO_T}$CC" >&6 | |
10137 | else | |
10138 | echo "$as_me:$LINENO: result: no" >&5 | |
10139 | echo "${ECHO_T}no" >&6 | |
10140 | fi | |
10141 | ||
10142 | fi | |
10143 | if test -z "$ac_cv_prog_CC"; then | |
10144 | ac_ct_CC=$CC | |
10145 | # Extract the first word of "gcc", so it can be a program name with args. | |
10146 | set dummy gcc; ac_word=$2 | |
10147 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10148 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10149 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10151 | else | |
10152 | if test -n "$ac_ct_CC"; then | |
10153 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10154 | else | |
10155 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10156 | for as_dir in $PATH | |
10157 | do | |
10158 | IFS=$as_save_IFS | |
10159 | test -z "$as_dir" && as_dir=. | |
10160 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10161 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10162 | ac_cv_prog_ac_ct_CC="gcc" | |
10163 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10164 | break 2 | |
10165 | fi | |
10166 | done | |
10167 | done | |
10168 | ||
10169 | fi | |
10170 | fi | |
10171 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10172 | if test -n "$ac_ct_CC"; then | |
10173 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10174 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10175 | else | |
10176 | echo "$as_me:$LINENO: result: no" >&5 | |
10177 | echo "${ECHO_T}no" >&6 | |
10178 | fi | |
10179 | ||
10180 | CC=$ac_ct_CC | |
10181 | else | |
10182 | CC="$ac_cv_prog_CC" | |
10183 | fi | |
10184 | ||
10185 | if test -z "$CC"; then | |
10186 | if test -n "$ac_tool_prefix"; then | |
10187 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
10188 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
10189 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10190 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10191 | if test "${ac_cv_prog_CC+set}" = set; then | |
10192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10193 | else | |
10194 | if test -n "$CC"; then | |
10195 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10196 | else | |
10197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10198 | for as_dir in $PATH | |
10199 | do | |
10200 | IFS=$as_save_IFS | |
10201 | test -z "$as_dir" && as_dir=. | |
10202 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10203 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10204 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
10205 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10206 | break 2 | |
10207 | fi | |
10208 | done | |
10209 | done | |
10210 | ||
10211 | fi | |
10212 | fi | |
10213 | CC=$ac_cv_prog_CC | |
10214 | if test -n "$CC"; then | |
10215 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10216 | echo "${ECHO_T}$CC" >&6 | |
10217 | else | |
10218 | echo "$as_me:$LINENO: result: no" >&5 | |
10219 | echo "${ECHO_T}no" >&6 | |
10220 | fi | |
10221 | ||
10222 | fi | |
10223 | if test -z "$ac_cv_prog_CC"; then | |
10224 | ac_ct_CC=$CC | |
10225 | # Extract the first word of "cc", so it can be a program name with args. | |
10226 | set dummy cc; ac_word=$2 | |
10227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10229 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10231 | else | |
10232 | if test -n "$ac_ct_CC"; then | |
10233 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10234 | else | |
10235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10236 | for as_dir in $PATH | |
10237 | do | |
10238 | IFS=$as_save_IFS | |
10239 | test -z "$as_dir" && as_dir=. | |
10240 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10241 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10242 | ac_cv_prog_ac_ct_CC="cc" | |
10243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10244 | break 2 | |
10245 | fi | |
10246 | done | |
10247 | done | |
10248 | ||
10249 | fi | |
10250 | fi | |
10251 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10252 | if test -n "$ac_ct_CC"; then | |
10253 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10254 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10255 | else | |
10256 | echo "$as_me:$LINENO: result: no" >&5 | |
10257 | echo "${ECHO_T}no" >&6 | |
10258 | fi | |
10259 | ||
10260 | CC=$ac_ct_CC | |
10261 | else | |
10262 | CC="$ac_cv_prog_CC" | |
10263 | fi | |
10264 | ||
10265 | fi | |
10266 | if test -z "$CC"; then | |
10267 | # Extract the first word of "cc", so it can be a program name with args. | |
10268 | set dummy cc; ac_word=$2 | |
10269 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10271 | if test "${ac_cv_prog_CC+set}" = set; then | |
10272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10273 | else | |
10274 | if test -n "$CC"; then | |
10275 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10276 | else | |
10277 | ac_prog_rejected=no | |
10278 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10279 | for as_dir in $PATH | |
10280 | do | |
10281 | IFS=$as_save_IFS | |
10282 | test -z "$as_dir" && as_dir=. | |
10283 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10284 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10285 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
10286 | ac_prog_rejected=yes | |
10287 | continue | |
10288 | fi | |
10289 | ac_cv_prog_CC="cc" | |
10290 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10291 | break 2 | |
10292 | fi | |
10293 | done | |
10294 | done | |
10295 | ||
10296 | if test $ac_prog_rejected = yes; then | |
10297 | # We found a bogon in the path, so make sure we never use it. | |
10298 | set dummy $ac_cv_prog_CC | |
10299 | shift | |
10300 | if test $# != 0; then | |
10301 | # We chose a different compiler from the bogus one. | |
10302 | # However, it has the same basename, so the bogon will be chosen | |
10303 | # first if we set CC to just the basename; use the full file name. | |
10304 | shift | |
10305 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
10306 | fi | |
10307 | fi | |
10308 | fi | |
10309 | fi | |
10310 | CC=$ac_cv_prog_CC | |
10311 | if test -n "$CC"; then | |
10312 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10313 | echo "${ECHO_T}$CC" >&6 | |
10314 | else | |
10315 | echo "$as_me:$LINENO: result: no" >&5 | |
10316 | echo "${ECHO_T}no" >&6 | |
10317 | fi | |
10318 | ||
10319 | fi | |
10320 | if test -z "$CC"; then | |
10321 | if test -n "$ac_tool_prefix"; then | |
10322 | for ac_prog in cl | |
10323 | do | |
10324 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
10325 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
10326 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10327 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10328 | if test "${ac_cv_prog_CC+set}" = set; then | |
10329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10330 | else | |
10331 | if test -n "$CC"; then | |
10332 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
10333 | else | |
10334 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10335 | for as_dir in $PATH | |
10336 | do | |
10337 | IFS=$as_save_IFS | |
10338 | test -z "$as_dir" && as_dir=. | |
10339 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10340 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10341 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
10342 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10343 | break 2 | |
10344 | fi | |
10345 | done | |
10346 | done | |
10347 | ||
10348 | fi | |
10349 | fi | |
10350 | CC=$ac_cv_prog_CC | |
10351 | if test -n "$CC"; then | |
10352 | echo "$as_me:$LINENO: result: $CC" >&5 | |
10353 | echo "${ECHO_T}$CC" >&6 | |
10354 | else | |
10355 | echo "$as_me:$LINENO: result: no" >&5 | |
10356 | echo "${ECHO_T}no" >&6 | |
10357 | fi | |
10358 | ||
10359 | test -n "$CC" && break | |
10360 | done | |
10361 | fi | |
10362 | if test -z "$CC"; then | |
10363 | ac_ct_CC=$CC | |
10364 | for ac_prog in cl | |
10365 | do | |
10366 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
10367 | set dummy $ac_prog; ac_word=$2 | |
10368 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10369 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10370 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
10371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10372 | else | |
10373 | if test -n "$ac_ct_CC"; then | |
10374 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
10375 | else | |
10376 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10377 | for as_dir in $PATH | |
10378 | do | |
10379 | IFS=$as_save_IFS | |
10380 | test -z "$as_dir" && as_dir=. | |
10381 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10382 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10383 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
10384 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10385 | break 2 | |
10386 | fi | |
10387 | done | |
10388 | done | |
10389 | ||
10390 | fi | |
10391 | fi | |
10392 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
10393 | if test -n "$ac_ct_CC"; then | |
10394 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
10395 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
10396 | else | |
10397 | echo "$as_me:$LINENO: result: no" >&5 | |
10398 | echo "${ECHO_T}no" >&6 | |
10399 | fi | |
10400 | ||
10401 | test -n "$ac_ct_CC" && break | |
10402 | done | |
10403 | ||
10404 | CC=$ac_ct_CC | |
10405 | fi | |
10406 | ||
10407 | fi | |
10408 | ||
10409 | ||
10410 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
10411 | See \`config.log' for more details." >&5 | |
10412 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
10413 | See \`config.log' for more details." >&2;} | |
10414 | { (exit 1); exit 1; }; } | |
10415 | ||
10416 | # Provide some information about the compiler. | |
10417 | echo "$as_me:$LINENO:" \ | |
10418 | "checking for C compiler version" >&5 | |
10419 | ac_compiler=`set X $ac_compile; echo $2` | |
10420 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
10421 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
10422 | ac_status=$? | |
10423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10424 | (exit $ac_status); } | |
10425 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
10426 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
10427 | ac_status=$? | |
10428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10429 | (exit $ac_status); } | |
10430 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
10431 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
10432 | ac_status=$? | |
10433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10434 | (exit $ac_status); } | |
10435 | ||
10436 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 10437 | #line $LINENO "configure" |
a848cd7e SC |
10438 | /* confdefs.h. */ |
10439 | _ACEOF | |
10440 | cat confdefs.h >>conftest.$ac_ext | |
10441 | cat >>conftest.$ac_ext <<_ACEOF | |
10442 | /* end confdefs.h. */ | |
10443 | ||
10444 | int | |
10445 | main () | |
10446 | { | |
10447 | ||
10448 | ; | |
10449 | return 0; | |
10450 | } | |
10451 | _ACEOF | |
10452 | ac_clean_files_save=$ac_clean_files | |
10453 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
10454 | # Try to create an executable without -o first, disregard a.out. | |
10455 | # It will help us diagnose broken compilers, and finding out an intuition | |
10456 | # of exeext. | |
8a7b1113 VZ |
10457 | echo "$as_me:$LINENO: checking for C compiler default output" >&5 |
10458 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
a848cd7e SC |
10459 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
10460 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
10461 | (eval $ac_link_default) 2>&5 | |
10462 | ac_status=$? | |
10463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10464 | (exit $ac_status); }; then | |
10465 | # Find the output, starting from the most likely. This scheme is | |
10466 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
10467 | # resort. | |
10468 | ||
10469 | # Be careful to initialize this variable, since it used to be cached. | |
10470 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
10471 | ac_cv_exeext= | |
10472 | # b.out is created by i960 compilers. | |
10473 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
10474 | do | |
10475 | test -f "$ac_file" || continue | |
10476 | case $ac_file in | |
10477 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
8a7b1113 | 10478 | ;; |
a848cd7e | 10479 | conftest.$ac_ext ) |
8a7b1113 VZ |
10480 | # This is the source file. |
10481 | ;; | |
a848cd7e | 10482 | [ab].out ) |
8a7b1113 VZ |
10483 | # We found the default executable, but exeext='' is most |
10484 | # certainly right. | |
10485 | break;; | |
a848cd7e | 10486 | *.* ) |
8a7b1113 VZ |
10487 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
10488 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
10489 | # but it would be cool to find out if it's true. Does anybody | |
10490 | # maintain Libtool? --akim. | |
10491 | export ac_cv_exeext | |
10492 | break;; | |
a848cd7e | 10493 | * ) |
8a7b1113 | 10494 | break;; |
a848cd7e SC |
10495 | esac |
10496 | done | |
10497 | else | |
10498 | echo "$as_me: failed program was:" >&5 | |
10499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10500 | ||
10501 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
10502 | See \`config.log' for more details." >&5 | |
10503 | echo "$as_me: error: C compiler cannot create executables | |
10504 | See \`config.log' for more details." >&2;} | |
10505 | { (exit 77); exit 77; }; } | |
10506 | fi | |
10507 | ||
10508 | ac_exeext=$ac_cv_exeext | |
10509 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
10510 | echo "${ECHO_T}$ac_file" >&6 | |
10511 | ||
10512 | # Check the compiler produces executables we can run. If not, either | |
10513 | # the compiler is broken, or we cross compile. | |
10514 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
10515 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
10516 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
10517 | # If not cross compiling, check that we can run a simple program. | |
10518 | if test "$cross_compiling" != yes; then | |
10519 | if { ac_try='./$ac_file' | |
10520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10521 | (eval $ac_try) 2>&5 | |
10522 | ac_status=$? | |
10523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10524 | (exit $ac_status); }; }; then | |
10525 | cross_compiling=no | |
10526 | else | |
10527 | if test "$cross_compiling" = maybe; then | |
10528 | cross_compiling=yes | |
10529 | else | |
10530 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
10531 | If you meant to cross compile, use \`--host'. | |
10532 | See \`config.log' for more details." >&5 | |
10533 | echo "$as_me: error: cannot run C compiled programs. | |
10534 | If you meant to cross compile, use \`--host'. | |
10535 | See \`config.log' for more details." >&2;} | |
10536 | { (exit 1); exit 1; }; } | |
10537 | fi | |
10538 | fi | |
10539 | fi | |
10540 | echo "$as_me:$LINENO: result: yes" >&5 | |
10541 | echo "${ECHO_T}yes" >&6 | |
10542 | ||
10543 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
10544 | ac_clean_files=$ac_clean_files_save | |
10545 | # Check the compiler produces executables we can run. If not, either | |
10546 | # the compiler is broken, or we cross compile. | |
10547 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
10548 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
10549 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
10550 | echo "${ECHO_T}$cross_compiling" >&6 | |
10551 | ||
10552 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
10553 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
10554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10555 | (eval $ac_link) 2>&5 | |
10556 | ac_status=$? | |
10557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10558 | (exit $ac_status); }; then | |
10559 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
10560 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
10561 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
10562 | # `rm'. | |
10563 | for ac_file in conftest.exe conftest conftest.*; do | |
10564 | test -f "$ac_file" || continue | |
10565 | case $ac_file in | |
10566 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
10567 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
8a7b1113 VZ |
10568 | export ac_cv_exeext |
10569 | break;; | |
a848cd7e SC |
10570 | * ) break;; |
10571 | esac | |
10572 | done | |
10573 | else | |
10574 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
10575 | See \`config.log' for more details." >&5 | |
10576 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
10577 | See \`config.log' for more details." >&2;} | |
10578 | { (exit 1); exit 1; }; } | |
10579 | fi | |
10580 | ||
10581 | rm -f conftest$ac_cv_exeext | |
10582 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
10583 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
10584 | ||
10585 | rm -f conftest.$ac_ext | |
10586 | EXEEXT=$ac_cv_exeext | |
10587 | ac_exeext=$EXEEXT | |
10588 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
10589 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
10590 | if test "${ac_cv_objext+set}" = set; then | |
10591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10592 | else | |
10593 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 10594 | #line $LINENO "configure" |
a848cd7e SC |
10595 | /* confdefs.h. */ |
10596 | _ACEOF | |
10597 | cat confdefs.h >>conftest.$ac_ext | |
10598 | cat >>conftest.$ac_ext <<_ACEOF | |
10599 | /* end confdefs.h. */ | |
10600 | ||
10601 | int | |
10602 | main () | |
10603 | { | |
10604 | ||
10605 | ; | |
10606 | return 0; | |
10607 | } | |
10608 | _ACEOF | |
10609 | rm -f conftest.o conftest.obj | |
10610 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10611 | (eval $ac_compile) 2>&5 | |
10612 | ac_status=$? | |
10613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10614 | (exit $ac_status); }; then | |
10615 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
10616 | case $ac_file in | |
10617 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
10618 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
10619 | break;; | |
10620 | esac | |
10621 | done | |
10622 | else | |
10623 | echo "$as_me: failed program was:" >&5 | |
10624 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10625 | ||
10626 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
10627 | See \`config.log' for more details." >&5 | |
10628 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
10629 | See \`config.log' for more details." >&2;} | |
10630 | { (exit 1); exit 1; }; } | |
10631 | fi | |
10632 | ||
10633 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
10634 | fi | |
10635 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
10636 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
10637 | OBJEXT=$ac_cv_objext | |
10638 | ac_objext=$OBJEXT | |
10639 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
10640 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
10641 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
10642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10643 | else | |
10644 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 10645 | #line $LINENO "configure" |
a848cd7e SC |
10646 | /* confdefs.h. */ |
10647 | _ACEOF | |
10648 | cat confdefs.h >>conftest.$ac_ext | |
10649 | cat >>conftest.$ac_ext <<_ACEOF | |
10650 | /* end confdefs.h. */ | |
10651 | ||
10652 | int | |
10653 | main () | |
10654 | { | |
10655 | #ifndef __GNUC__ | |
10656 | choke me | |
10657 | #endif | |
10658 | ||
10659 | ; | |
10660 | return 0; | |
10661 | } | |
10662 | _ACEOF | |
10663 | rm -f conftest.$ac_objext | |
10664 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 10665 | (eval $ac_compile) 2>&5 |
a848cd7e | 10666 | ac_status=$? |
a848cd7e SC |
10667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10668 | (exit $ac_status); } && | |
8a7b1113 | 10669 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
10670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10671 | (eval $ac_try) 2>&5 | |
10672 | ac_status=$? | |
10673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10674 | (exit $ac_status); }; }; then | |
10675 | ac_compiler_gnu=yes | |
10676 | else | |
10677 | echo "$as_me: failed program was:" >&5 | |
10678 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10679 | ||
10680 | ac_compiler_gnu=no | |
10681 | fi | |
8a7b1113 | 10682 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10683 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
10684 | ||
10685 | fi | |
10686 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
10687 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
10688 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
10689 | ac_test_CFLAGS=${CFLAGS+set} | |
10690 | ac_save_CFLAGS=$CFLAGS | |
10691 | CFLAGS="-g" | |
10692 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
10693 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
10694 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
10695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10696 | else | |
10697 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 10698 | #line $LINENO "configure" |
a848cd7e SC |
10699 | /* confdefs.h. */ |
10700 | _ACEOF | |
10701 | cat confdefs.h >>conftest.$ac_ext | |
10702 | cat >>conftest.$ac_ext <<_ACEOF | |
10703 | /* end confdefs.h. */ | |
10704 | ||
10705 | int | |
10706 | main () | |
10707 | { | |
10708 | ||
10709 | ; | |
10710 | return 0; | |
10711 | } | |
10712 | _ACEOF | |
10713 | rm -f conftest.$ac_objext | |
10714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 10715 | (eval $ac_compile) 2>&5 |
a848cd7e | 10716 | ac_status=$? |
a848cd7e SC |
10717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10718 | (exit $ac_status); } && | |
8a7b1113 | 10719 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
10720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10721 | (eval $ac_try) 2>&5 | |
10722 | ac_status=$? | |
10723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10724 | (exit $ac_status); }; }; then | |
10725 | ac_cv_prog_cc_g=yes | |
10726 | else | |
10727 | echo "$as_me: failed program was:" >&5 | |
10728 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10729 | ||
10730 | ac_cv_prog_cc_g=no | |
10731 | fi | |
8a7b1113 | 10732 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10733 | fi |
10734 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
10735 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
10736 | if test "$ac_test_CFLAGS" = set; then | |
10737 | CFLAGS=$ac_save_CFLAGS | |
10738 | elif test $ac_cv_prog_cc_g = yes; then | |
10739 | if test "$GCC" = yes; then | |
10740 | CFLAGS="-g -O2" | |
10741 | else | |
10742 | CFLAGS="-g" | |
10743 | fi | |
10744 | else | |
10745 | if test "$GCC" = yes; then | |
10746 | CFLAGS="-O2" | |
10747 | else | |
10748 | CFLAGS= | |
10749 | fi | |
10750 | fi | |
10751 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
10752 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
10753 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
10754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10755 | else | |
10756 | ac_cv_prog_cc_stdc=no | |
10757 | ac_save_CC=$CC | |
10758 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 10759 | #line $LINENO "configure" |
a848cd7e SC |
10760 | /* confdefs.h. */ |
10761 | _ACEOF | |
10762 | cat confdefs.h >>conftest.$ac_ext | |
10763 | cat >>conftest.$ac_ext <<_ACEOF | |
10764 | /* end confdefs.h. */ | |
10765 | #include <stdarg.h> | |
10766 | #include <stdio.h> | |
10767 | #include <sys/types.h> | |
10768 | #include <sys/stat.h> | |
10769 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
10770 | struct buf { int x; }; | |
10771 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
10772 | static char *e (p, i) | |
10773 | char **p; | |
10774 | int i; | |
10775 | { | |
10776 | return p[i]; | |
10777 | } | |
10778 | static char *f (char * (*g) (char **, int), char **p, ...) | |
10779 | { | |
10780 | char *s; | |
10781 | va_list v; | |
10782 | va_start (v,p); | |
10783 | s = g (p, va_arg (v,int)); | |
10784 | va_end (v); | |
10785 | return s; | |
10786 | } | |
a848cd7e SC |
10787 | int test (int i, double x); |
10788 | struct s1 {int (*f) (int a);}; | |
10789 | struct s2 {int (*f) (double a);}; | |
10790 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
10791 | int argc; | |
10792 | char **argv; | |
10793 | int | |
10794 | main () | |
10795 | { | |
10796 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
10797 | ; | |
10798 | return 0; | |
10799 | } | |
10800 | _ACEOF | |
10801 | # Don't try gcc -ansi; that turns off useful extensions and | |
10802 | # breaks some systems' header files. | |
10803 | # AIX -qlanglvl=ansi | |
10804 | # Ultrix and OSF/1 -std1 | |
10805 | # HP-UX 10.20 and later -Ae | |
10806 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
10807 | # SVR4 -Xc -D__EXTENSIONS__ | |
10808 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
10809 | do | |
10810 | CC="$ac_save_CC $ac_arg" | |
10811 | rm -f conftest.$ac_objext | |
10812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 10813 | (eval $ac_compile) 2>&5 |
a848cd7e | 10814 | ac_status=$? |
a848cd7e SC |
10815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10816 | (exit $ac_status); } && | |
8a7b1113 | 10817 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
10818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10819 | (eval $ac_try) 2>&5 | |
10820 | ac_status=$? | |
10821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10822 | (exit $ac_status); }; }; then | |
10823 | ac_cv_prog_cc_stdc=$ac_arg | |
10824 | break | |
10825 | else | |
10826 | echo "$as_me: failed program was:" >&5 | |
10827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10828 | ||
10829 | fi | |
8a7b1113 | 10830 | rm -f conftest.$ac_objext |
a848cd7e SC |
10831 | done |
10832 | rm -f conftest.$ac_ext conftest.$ac_objext | |
10833 | CC=$ac_save_CC | |
10834 | ||
10835 | fi | |
10836 | ||
10837 | case "x$ac_cv_prog_cc_stdc" in | |
10838 | x|xno) | |
10839 | echo "$as_me:$LINENO: result: none needed" >&5 | |
10840 | echo "${ECHO_T}none needed" >&6 ;; | |
10841 | *) | |
10842 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
10843 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
10844 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
10845 | esac | |
10846 | ||
10847 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
10848 | # in C++ we need to declare it. In case someone uses the same compiler | |
10849 | # for both compiling C and C++ we need to have the C++ compiler decide | |
10850 | # the declaration of exit, since it's the most demanding environment. | |
10851 | cat >conftest.$ac_ext <<_ACEOF | |
10852 | #ifndef __cplusplus | |
10853 | choke me | |
10854 | #endif | |
10855 | _ACEOF | |
10856 | rm -f conftest.$ac_objext | |
10857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 10858 | (eval $ac_compile) 2>&5 |
a848cd7e | 10859 | ac_status=$? |
a848cd7e SC |
10860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10861 | (exit $ac_status); } && | |
8a7b1113 | 10862 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
10863 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10864 | (eval $ac_try) 2>&5 | |
10865 | ac_status=$? | |
10866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10867 | (exit $ac_status); }; }; then | |
10868 | for ac_declaration in \ | |
10869 | '' \ | |
10870 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
10871 | 'extern "C" void std::exit (int); using std::exit;' \ | |
10872 | 'extern "C" void exit (int) throw ();' \ | |
10873 | 'extern "C" void exit (int);' \ | |
10874 | 'void exit (int);' | |
10875 | do | |
10876 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 10877 | #line $LINENO "configure" |
a848cd7e SC |
10878 | /* confdefs.h. */ |
10879 | _ACEOF | |
10880 | cat confdefs.h >>conftest.$ac_ext | |
10881 | cat >>conftest.$ac_ext <<_ACEOF | |
10882 | /* end confdefs.h. */ | |
10883 | $ac_declaration | |
10884 | #include <stdlib.h> | |
10885 | int | |
10886 | main () | |
10887 | { | |
10888 | exit (42); | |
10889 | ; | |
10890 | return 0; | |
10891 | } | |
10892 | _ACEOF | |
10893 | rm -f conftest.$ac_objext | |
10894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 10895 | (eval $ac_compile) 2>&5 |
a848cd7e | 10896 | ac_status=$? |
a848cd7e SC |
10897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10898 | (exit $ac_status); } && | |
8a7b1113 | 10899 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
10900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10901 | (eval $ac_try) 2>&5 | |
10902 | ac_status=$? | |
10903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10904 | (exit $ac_status); }; }; then | |
10905 | : | |
10906 | else | |
10907 | echo "$as_me: failed program was:" >&5 | |
10908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10909 | ||
10910 | continue | |
10911 | fi | |
8a7b1113 | 10912 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 10913 | cat >conftest.$ac_ext <<_ACEOF |
8a7b1113 | 10914 | #line $LINENO "configure" |
a848cd7e SC |
10915 | /* confdefs.h. */ |
10916 | _ACEOF | |
10917 | cat confdefs.h >>conftest.$ac_ext | |
10918 | cat >>conftest.$ac_ext <<_ACEOF | |
10919 | /* end confdefs.h. */ | |
10920 | $ac_declaration | |
10921 | int | |
10922 | main () | |
10923 | { | |
10924 | exit (42); | |
10925 | ; | |
10926 | return 0; | |
10927 | } | |
10928 | _ACEOF | |
10929 | rm -f conftest.$ac_objext | |
10930 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 10931 | (eval $ac_compile) 2>&5 |
a848cd7e | 10932 | ac_status=$? |
a848cd7e SC |
10933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10934 | (exit $ac_status); } && | |
8a7b1113 | 10935 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
10936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10937 | (eval $ac_try) 2>&5 | |
10938 | ac_status=$? | |
10939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10940 | (exit $ac_status); }; }; then | |
10941 | break | |
10942 | else | |
10943 | echo "$as_me: failed program was:" >&5 | |
10944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10945 | ||
10946 | fi | |
8a7b1113 | 10947 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10948 | done |
10949 | rm -f conftest* | |
10950 | if test -n "$ac_declaration"; then | |
10951 | echo '#ifdef __cplusplus' >>confdefs.h | |
10952 | echo $ac_declaration >>confdefs.h | |
10953 | echo '#endif' >>confdefs.h | |
10954 | fi | |
10955 | ||
10956 | else | |
10957 | echo "$as_me: failed program was:" >&5 | |
10958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10959 | ||
10960 | fi | |
8a7b1113 | 10961 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
10962 | ac_ext=c |
10963 | ac_cpp='$CPP $CPPFLAGS' | |
10964 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10965 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10966 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10967 | ||
10968 | ||
10969 | ||
10970 | ac_ext=c | |
10971 | ac_cpp='$CPP $CPPFLAGS' | |
10972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10975 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
10976 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
10977 | # On Suns, sometimes $CPP names a directory. | |
10978 | if test -n "$CPP" && test -d "$CPP"; then | |
10979 | CPP= | |
10980 | fi | |
10981 | if test -z "$CPP"; then | |
10982 | if test "${ac_cv_prog_CPP+set}" = set; then | |
10983 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10984 | else | |
10985 | # Double quotes because CPP needs to be expanded | |
10986 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
10987 | do | |
10988 | ac_preproc_ok=false | |
10989 | for ac_c_preproc_warn_flag in '' yes | |
10990 | do | |
10991 | # Use a header file that comes with gcc, so configuring glibc | |
10992 | # with a fresh cross-compiler works. | |
10993 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10994 | # <limits.h> exists even on freestanding compilers. | |
10995 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
10996 | # not just through cpp. "Syntax error" is here to catch this case. | |
10997 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 10998 | #line $LINENO "configure" |
a848cd7e SC |
10999 | /* confdefs.h. */ |
11000 | _ACEOF | |
11001 | cat confdefs.h >>conftest.$ac_ext | |
11002 | cat >>conftest.$ac_ext <<_ACEOF | |
11003 | /* end confdefs.h. */ | |
11004 | #ifdef __STDC__ | |
11005 | # include <limits.h> | |
11006 | #else | |
11007 | # include <assert.h> | |
11008 | #endif | |
8a7b1113 | 11009 | Syntax error |
a848cd7e SC |
11010 | _ACEOF |
11011 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11012 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11013 | ac_status=$? | |
11014 | grep -v '^ *+' conftest.er1 >conftest.err | |
11015 | rm -f conftest.er1 | |
11016 | cat conftest.err >&5 | |
11017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11018 | (exit $ac_status); } >/dev/null; then | |
11019 | if test -s conftest.err; then | |
11020 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
11021 | else |
11022 | ac_cpp_err= | |
11023 | fi | |
11024 | else | |
11025 | ac_cpp_err=yes | |
11026 | fi | |
11027 | if test -z "$ac_cpp_err"; then | |
11028 | : | |
11029 | else | |
11030 | echo "$as_me: failed program was:" >&5 | |
11031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11032 | ||
11033 | # Broken: fails on valid input. | |
11034 | continue | |
11035 | fi | |
11036 | rm -f conftest.err conftest.$ac_ext | |
11037 | ||
11038 | # OK, works on sane cases. Now check whether non-existent headers | |
11039 | # can be detected and how. | |
11040 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 11041 | #line $LINENO "configure" |
a848cd7e SC |
11042 | /* confdefs.h. */ |
11043 | _ACEOF | |
11044 | cat confdefs.h >>conftest.$ac_ext | |
11045 | cat >>conftest.$ac_ext <<_ACEOF | |
11046 | /* end confdefs.h. */ | |
11047 | #include <ac_nonexistent.h> | |
11048 | _ACEOF | |
11049 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11050 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11051 | ac_status=$? | |
11052 | grep -v '^ *+' conftest.er1 >conftest.err | |
11053 | rm -f conftest.er1 | |
11054 | cat conftest.err >&5 | |
11055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11056 | (exit $ac_status); } >/dev/null; then | |
11057 | if test -s conftest.err; then | |
11058 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
11059 | else |
11060 | ac_cpp_err= | |
11061 | fi | |
11062 | else | |
11063 | ac_cpp_err=yes | |
11064 | fi | |
11065 | if test -z "$ac_cpp_err"; then | |
11066 | # Broken: success on invalid input. | |
11067 | continue | |
11068 | else | |
11069 | echo "$as_me: failed program was:" >&5 | |
11070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11071 | ||
11072 | # Passes both tests. | |
11073 | ac_preproc_ok=: | |
11074 | break | |
11075 | fi | |
11076 | rm -f conftest.err conftest.$ac_ext | |
11077 | ||
11078 | done | |
11079 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11080 | rm -f conftest.err conftest.$ac_ext | |
11081 | if $ac_preproc_ok; then | |
11082 | break | |
11083 | fi | |
11084 | ||
11085 | done | |
11086 | ac_cv_prog_CPP=$CPP | |
11087 | ||
11088 | fi | |
11089 | CPP=$ac_cv_prog_CPP | |
11090 | else | |
11091 | ac_cv_prog_CPP=$CPP | |
11092 | fi | |
11093 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
11094 | echo "${ECHO_T}$CPP" >&6 | |
11095 | ac_preproc_ok=false | |
11096 | for ac_c_preproc_warn_flag in '' yes | |
11097 | do | |
11098 | # Use a header file that comes with gcc, so configuring glibc | |
11099 | # with a fresh cross-compiler works. | |
11100 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11101 | # <limits.h> exists even on freestanding compilers. | |
11102 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
11103 | # not just through cpp. "Syntax error" is here to catch this case. | |
11104 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 11105 | #line $LINENO "configure" |
a848cd7e SC |
11106 | /* confdefs.h. */ |
11107 | _ACEOF | |
11108 | cat confdefs.h >>conftest.$ac_ext | |
11109 | cat >>conftest.$ac_ext <<_ACEOF | |
11110 | /* end confdefs.h. */ | |
11111 | #ifdef __STDC__ | |
11112 | # include <limits.h> | |
11113 | #else | |
11114 | # include <assert.h> | |
11115 | #endif | |
8a7b1113 | 11116 | Syntax error |
a848cd7e SC |
11117 | _ACEOF |
11118 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11119 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11120 | ac_status=$? | |
11121 | grep -v '^ *+' conftest.er1 >conftest.err | |
11122 | rm -f conftest.er1 | |
11123 | cat conftest.err >&5 | |
11124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11125 | (exit $ac_status); } >/dev/null; then | |
11126 | if test -s conftest.err; then | |
11127 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
11128 | else |
11129 | ac_cpp_err= | |
11130 | fi | |
11131 | else | |
11132 | ac_cpp_err=yes | |
11133 | fi | |
11134 | if test -z "$ac_cpp_err"; then | |
11135 | : | |
11136 | else | |
11137 | echo "$as_me: failed program was:" >&5 | |
11138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11139 | ||
11140 | # Broken: fails on valid input. | |
11141 | continue | |
11142 | fi | |
11143 | rm -f conftest.err conftest.$ac_ext | |
11144 | ||
11145 | # OK, works on sane cases. Now check whether non-existent headers | |
11146 | # can be detected and how. | |
11147 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 11148 | #line $LINENO "configure" |
a848cd7e SC |
11149 | /* confdefs.h. */ |
11150 | _ACEOF | |
11151 | cat confdefs.h >>conftest.$ac_ext | |
11152 | cat >>conftest.$ac_ext <<_ACEOF | |
11153 | /* end confdefs.h. */ | |
11154 | #include <ac_nonexistent.h> | |
11155 | _ACEOF | |
11156 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11157 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11158 | ac_status=$? | |
11159 | grep -v '^ *+' conftest.er1 >conftest.err | |
11160 | rm -f conftest.er1 | |
11161 | cat conftest.err >&5 | |
11162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11163 | (exit $ac_status); } >/dev/null; then | |
11164 | if test -s conftest.err; then | |
11165 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
11166 | else |
11167 | ac_cpp_err= | |
11168 | fi | |
11169 | else | |
11170 | ac_cpp_err=yes | |
11171 | fi | |
11172 | if test -z "$ac_cpp_err"; then | |
11173 | # Broken: success on invalid input. | |
11174 | continue | |
11175 | else | |
11176 | echo "$as_me: failed program was:" >&5 | |
11177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11178 | ||
11179 | # Passes both tests. | |
11180 | ac_preproc_ok=: | |
11181 | break | |
11182 | fi | |
11183 | rm -f conftest.err conftest.$ac_ext | |
11184 | ||
11185 | done | |
11186 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
11187 | rm -f conftest.err conftest.$ac_ext | |
11188 | if $ac_preproc_ok; then | |
11189 | : | |
11190 | else | |
11191 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
11192 | See \`config.log' for more details." >&5 | |
11193 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
11194 | See \`config.log' for more details." >&2;} | |
11195 | { (exit 1); exit 1; }; } | |
11196 | fi | |
11197 | ||
11198 | ac_ext=c | |
11199 | ac_cpp='$CPP $CPPFLAGS' | |
11200 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11201 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11202 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11203 | ||
11204 | ||
11205 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
11206 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
11207 | if test "${ac_cv_prog_egrep+set}" = set; then | |
11208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11209 | else | |
11210 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
11211 | then ac_cv_prog_egrep='grep -E' | |
11212 | else ac_cv_prog_egrep='egrep' | |
11213 | fi | |
11214 | fi | |
11215 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
11216 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
11217 | EGREP=$ac_cv_prog_egrep | |
11218 | ||
11219 | ||
11220 | if test $ac_cv_c_compiler_gnu = yes; then | |
11221 | echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5 | |
11222 | echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6 | |
11223 | if test "${ac_cv_prog_gcc_traditional+set}" = set; then | |
11224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11225 | else | |
11226 | ac_pattern="Autoconf.*'x'" | |
11227 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 11228 | #line $LINENO "configure" |
a848cd7e SC |
11229 | /* confdefs.h. */ |
11230 | _ACEOF | |
11231 | cat confdefs.h >>conftest.$ac_ext | |
11232 | cat >>conftest.$ac_ext <<_ACEOF | |
11233 | /* end confdefs.h. */ | |
11234 | #include <sgtty.h> | |
11235 | Autoconf TIOCGETP | |
11236 | _ACEOF | |
11237 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11238 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11239 | ac_cv_prog_gcc_traditional=yes | |
11240 | else | |
11241 | ac_cv_prog_gcc_traditional=no | |
11242 | fi | |
11243 | rm -f conftest* | |
11244 | ||
11245 | ||
11246 | if test $ac_cv_prog_gcc_traditional = no; then | |
11247 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 11248 | #line $LINENO "configure" |
a848cd7e SC |
11249 | /* confdefs.h. */ |
11250 | _ACEOF | |
11251 | cat confdefs.h >>conftest.$ac_ext | |
11252 | cat >>conftest.$ac_ext <<_ACEOF | |
11253 | /* end confdefs.h. */ | |
11254 | #include <termio.h> | |
11255 | Autoconf TCGETA | |
11256 | _ACEOF | |
11257 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
11258 | $EGREP "$ac_pattern" >/dev/null 2>&1; then | |
11259 | ac_cv_prog_gcc_traditional=yes | |
11260 | fi | |
11261 | rm -f conftest* | |
11262 | ||
11263 | fi | |
11264 | fi | |
11265 | echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5 | |
11266 | echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6 | |
11267 | if test $ac_cv_prog_gcc_traditional = yes; then | |
11268 | CC="$CC -traditional" | |
11269 | fi | |
11270 | fi | |
11271 | ||
11272 | ||
11273 | ||
11274 | ||
11275 | ac_ext=cc | |
11276 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11277 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11278 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11279 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11280 | ||
11281 | ||
11282 | CXXFLAGS=${CXXFLAGS:=} | |
11283 | ac_ext=cc | |
11284 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11285 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11286 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11287 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11288 | if test -n "$ac_tool_prefix"; then | |
11289 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11290 | do | |
11291 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
11292 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
11293 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11294 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11295 | if test "${ac_cv_prog_CXX+set}" = set; then | |
11296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11297 | else | |
11298 | if test -n "$CXX"; then | |
11299 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
11300 | else | |
11301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11302 | for as_dir in $PATH | |
11303 | do | |
11304 | IFS=$as_save_IFS | |
11305 | test -z "$as_dir" && as_dir=. | |
11306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11307 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11308 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
11309 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11310 | break 2 | |
11311 | fi | |
11312 | done | |
11313 | done | |
11314 | ||
11315 | fi | |
11316 | fi | |
11317 | CXX=$ac_cv_prog_CXX | |
11318 | if test -n "$CXX"; then | |
11319 | echo "$as_me:$LINENO: result: $CXX" >&5 | |
11320 | echo "${ECHO_T}$CXX" >&6 | |
11321 | else | |
11322 | echo "$as_me:$LINENO: result: no" >&5 | |
11323 | echo "${ECHO_T}no" >&6 | |
11324 | fi | |
11325 | ||
11326 | test -n "$CXX" && break | |
11327 | done | |
11328 | fi | |
11329 | if test -z "$CXX"; then | |
11330 | ac_ct_CXX=$CXX | |
11331 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | |
11332 | do | |
11333 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11334 | set dummy $ac_prog; ac_word=$2 | |
11335 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11336 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11337 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
11338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11339 | else | |
11340 | if test -n "$ac_ct_CXX"; then | |
11341 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
11342 | else | |
11343 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11344 | for as_dir in $PATH | |
11345 | do | |
11346 | IFS=$as_save_IFS | |
11347 | test -z "$as_dir" && as_dir=. | |
11348 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11349 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11350 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
11351 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11352 | break 2 | |
11353 | fi | |
11354 | done | |
11355 | done | |
11356 | ||
11357 | fi | |
11358 | fi | |
11359 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
11360 | if test -n "$ac_ct_CXX"; then | |
11361 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
11362 | echo "${ECHO_T}$ac_ct_CXX" >&6 | |
11363 | else | |
11364 | echo "$as_me:$LINENO: result: no" >&5 | |
11365 | echo "${ECHO_T}no" >&6 | |
11366 | fi | |
11367 | ||
11368 | test -n "$ac_ct_CXX" && break | |
11369 | done | |
11370 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | |
11371 | ||
11372 | CXX=$ac_ct_CXX | |
11373 | fi | |
11374 | ||
11375 | ||
11376 | # Provide some information about the compiler. | |
11377 | echo "$as_me:$LINENO:" \ | |
11378 | "checking for C++ compiler version" >&5 | |
11379 | ac_compiler=`set X $ac_compile; echo $2` | |
11380 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
11381 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
11382 | ac_status=$? | |
11383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11384 | (exit $ac_status); } | |
11385 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
11386 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
11387 | ac_status=$? | |
11388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11389 | (exit $ac_status); } | |
11390 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
11391 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
11392 | ac_status=$? | |
11393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11394 | (exit $ac_status); } | |
11395 | ||
11396 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
11397 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | |
11398 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
11399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11400 | else | |
11401 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 11402 | #line $LINENO "configure" |
a848cd7e SC |
11403 | /* confdefs.h. */ |
11404 | _ACEOF | |
11405 | cat confdefs.h >>conftest.$ac_ext | |
11406 | cat >>conftest.$ac_ext <<_ACEOF | |
11407 | /* end confdefs.h. */ | |
11408 | ||
11409 | int | |
11410 | main () | |
11411 | { | |
11412 | #ifndef __GNUC__ | |
11413 | choke me | |
11414 | #endif | |
11415 | ||
11416 | ; | |
11417 | return 0; | |
11418 | } | |
11419 | _ACEOF | |
11420 | rm -f conftest.$ac_objext | |
11421 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 11422 | (eval $ac_compile) 2>&5 |
a848cd7e | 11423 | ac_status=$? |
a848cd7e SC |
11424 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11425 | (exit $ac_status); } && | |
8a7b1113 | 11426 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
11427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11428 | (eval $ac_try) 2>&5 | |
11429 | ac_status=$? | |
11430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11431 | (exit $ac_status); }; }; then | |
11432 | ac_compiler_gnu=yes | |
11433 | else | |
11434 | echo "$as_me: failed program was:" >&5 | |
11435 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11436 | ||
11437 | ac_compiler_gnu=no | |
11438 | fi | |
8a7b1113 | 11439 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11440 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
11441 | ||
11442 | fi | |
11443 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
11444 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | |
11445 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
11446 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
11447 | ac_save_CXXFLAGS=$CXXFLAGS | |
11448 | CXXFLAGS="-g" | |
11449 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
11450 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | |
11451 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
11452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11453 | else | |
11454 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 11455 | #line $LINENO "configure" |
a848cd7e SC |
11456 | /* confdefs.h. */ |
11457 | _ACEOF | |
11458 | cat confdefs.h >>conftest.$ac_ext | |
11459 | cat >>conftest.$ac_ext <<_ACEOF | |
11460 | /* end confdefs.h. */ | |
11461 | ||
11462 | int | |
11463 | main () | |
11464 | { | |
11465 | ||
11466 | ; | |
11467 | return 0; | |
11468 | } | |
11469 | _ACEOF | |
11470 | rm -f conftest.$ac_objext | |
11471 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 11472 | (eval $ac_compile) 2>&5 |
a848cd7e | 11473 | ac_status=$? |
a848cd7e SC |
11474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11475 | (exit $ac_status); } && | |
8a7b1113 | 11476 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
11477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11478 | (eval $ac_try) 2>&5 | |
11479 | ac_status=$? | |
11480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11481 | (exit $ac_status); }; }; then | |
11482 | ac_cv_prog_cxx_g=yes | |
11483 | else | |
11484 | echo "$as_me: failed program was:" >&5 | |
11485 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11486 | ||
11487 | ac_cv_prog_cxx_g=no | |
11488 | fi | |
8a7b1113 | 11489 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11490 | fi |
11491 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
11492 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | |
11493 | if test "$ac_test_CXXFLAGS" = set; then | |
11494 | CXXFLAGS=$ac_save_CXXFLAGS | |
11495 | elif test $ac_cv_prog_cxx_g = yes; then | |
11496 | if test "$GXX" = yes; then | |
11497 | CXXFLAGS="-g -O2" | |
11498 | else | |
11499 | CXXFLAGS="-g" | |
11500 | fi | |
11501 | else | |
11502 | if test "$GXX" = yes; then | |
11503 | CXXFLAGS="-O2" | |
11504 | else | |
11505 | CXXFLAGS= | |
11506 | fi | |
11507 | fi | |
11508 | for ac_declaration in \ | |
11509 | '' \ | |
11510 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
11511 | 'extern "C" void std::exit (int); using std::exit;' \ | |
11512 | 'extern "C" void exit (int) throw ();' \ | |
11513 | 'extern "C" void exit (int);' \ | |
11514 | 'void exit (int);' | |
11515 | do | |
11516 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 11517 | #line $LINENO "configure" |
a848cd7e SC |
11518 | /* confdefs.h. */ |
11519 | _ACEOF | |
11520 | cat confdefs.h >>conftest.$ac_ext | |
11521 | cat >>conftest.$ac_ext <<_ACEOF | |
11522 | /* end confdefs.h. */ | |
11523 | $ac_declaration | |
11524 | #include <stdlib.h> | |
11525 | int | |
11526 | main () | |
11527 | { | |
11528 | exit (42); | |
11529 | ; | |
11530 | return 0; | |
11531 | } | |
11532 | _ACEOF | |
11533 | rm -f conftest.$ac_objext | |
11534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 11535 | (eval $ac_compile) 2>&5 |
a848cd7e | 11536 | ac_status=$? |
a848cd7e SC |
11537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11538 | (exit $ac_status); } && | |
8a7b1113 | 11539 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
11540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11541 | (eval $ac_try) 2>&5 | |
11542 | ac_status=$? | |
11543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11544 | (exit $ac_status); }; }; then | |
11545 | : | |
11546 | else | |
11547 | echo "$as_me: failed program was:" >&5 | |
11548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11549 | ||
11550 | continue | |
11551 | fi | |
8a7b1113 | 11552 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 11553 | cat >conftest.$ac_ext <<_ACEOF |
8a7b1113 | 11554 | #line $LINENO "configure" |
a848cd7e SC |
11555 | /* confdefs.h. */ |
11556 | _ACEOF | |
11557 | cat confdefs.h >>conftest.$ac_ext | |
11558 | cat >>conftest.$ac_ext <<_ACEOF | |
11559 | /* end confdefs.h. */ | |
11560 | $ac_declaration | |
11561 | int | |
11562 | main () | |
11563 | { | |
11564 | exit (42); | |
11565 | ; | |
11566 | return 0; | |
11567 | } | |
11568 | _ACEOF | |
11569 | rm -f conftest.$ac_objext | |
11570 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 11571 | (eval $ac_compile) 2>&5 |
a848cd7e | 11572 | ac_status=$? |
a848cd7e SC |
11573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11574 | (exit $ac_status); } && | |
8a7b1113 | 11575 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
11576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11577 | (eval $ac_try) 2>&5 | |
11578 | ac_status=$? | |
11579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11580 | (exit $ac_status); }; }; then | |
11581 | break | |
11582 | else | |
11583 | echo "$as_me: failed program was:" >&5 | |
11584 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11585 | ||
11586 | fi | |
8a7b1113 | 11587 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
11588 | done |
11589 | rm -f conftest* | |
11590 | if test -n "$ac_declaration"; then | |
11591 | echo '#ifdef __cplusplus' >>confdefs.h | |
11592 | echo $ac_declaration >>confdefs.h | |
11593 | echo '#endif' >>confdefs.h | |
11594 | fi | |
11595 | ||
11596 | ac_ext=cc | |
11597 | ac_cpp='$CXXCPP $CPPFLAGS' | |
11598 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11599 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11600 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
11601 | ||
11602 | ||
11603 | ac_ext=c | |
11604 | ac_cpp='$CPP $CPPFLAGS' | |
11605 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11606 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11607 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11608 | ||
11609 | ||
11610 | echo "$as_me:$LINENO: checking for /usr/local/include in default include path" >&5 | |
11611 | echo $ECHO_N "checking for /usr/local/include in default include path... $ECHO_C" >&6 | |
11612 | GCC_SEARCHES_USR_LOCAL_INCLUDE="no" | |
11613 | if test "$GCC" = "yes" ; then | |
11614 | echo | gcc -v -x c++ -E - 2>&1 | sed -n '/^#include </,$p' | \ | |
11615 | sed -n '1,/End of search list\./p' | \ | |
11616 | grep '^ */usr/local/include$' 2>&1 /dev/null \ | |
11617 | && GCC_SEARCHES_USR_LOCAL_INCLUDE="yes" | |
11618 | fi | |
11619 | echo "$as_me:$LINENO: result: $GCC_SEARCHES_USR_LOCAL_INCLUDE" >&5 | |
11620 | echo "${ECHO_T}$GCC_SEARCHES_USR_LOCAL_INCLUDE" >&6 | |
11621 | ||
11622 | if test -n "$ac_tool_prefix"; then | |
11623 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
11624 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
11625 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11626 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11627 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
11628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11629 | else | |
11630 | if test -n "$RANLIB"; then | |
11631 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
11632 | else | |
11633 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11634 | for as_dir in $PATH | |
11635 | do | |
11636 | IFS=$as_save_IFS | |
11637 | test -z "$as_dir" && as_dir=. | |
11638 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11639 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11640 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
11641 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11642 | break 2 | |
11643 | fi | |
11644 | done | |
11645 | done | |
11646 | ||
11647 | fi | |
11648 | fi | |
11649 | RANLIB=$ac_cv_prog_RANLIB | |
11650 | if test -n "$RANLIB"; then | |
11651 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
11652 | echo "${ECHO_T}$RANLIB" >&6 | |
11653 | else | |
11654 | echo "$as_me:$LINENO: result: no" >&5 | |
11655 | echo "${ECHO_T}no" >&6 | |
11656 | fi | |
11657 | ||
11658 | fi | |
11659 | if test -z "$ac_cv_prog_RANLIB"; then | |
11660 | ac_ct_RANLIB=$RANLIB | |
11661 | # Extract the first word of "ranlib", so it can be a program name with args. | |
11662 | set dummy ranlib; ac_word=$2 | |
11663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11665 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
11666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11667 | else | |
11668 | if test -n "$ac_ct_RANLIB"; then | |
11669 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
11670 | else | |
11671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11672 | for as_dir in $PATH | |
11673 | do | |
11674 | IFS=$as_save_IFS | |
11675 | test -z "$as_dir" && as_dir=. | |
11676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11678 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
11679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11680 | break 2 | |
11681 | fi | |
11682 | done | |
11683 | done | |
11684 | ||
11685 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
11686 | fi | |
11687 | fi | |
11688 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
11689 | if test -n "$ac_ct_RANLIB"; then | |
11690 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
11691 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
11692 | else | |
11693 | echo "$as_me:$LINENO: result: no" >&5 | |
11694 | echo "${ECHO_T}no" >&6 | |
11695 | fi | |
11696 | ||
11697 | RANLIB=$ac_ct_RANLIB | |
11698 | else | |
11699 | RANLIB="$ac_cv_prog_RANLIB" | |
11700 | fi | |
11701 | ||
11702 | ||
11703 | # Extract the first word of "ar", so it can be a program name with args. | |
11704 | set dummy ar; ac_word=$2 | |
11705 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11706 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11707 | if test "${ac_cv_prog_AR+set}" = set; then | |
11708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11709 | else | |
11710 | if test -n "$AR"; then | |
11711 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
11712 | else | |
11713 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11714 | for as_dir in $PATH | |
11715 | do | |
11716 | IFS=$as_save_IFS | |
11717 | test -z "$as_dir" && as_dir=. | |
11718 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11719 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11720 | ac_cv_prog_AR="ar" | |
11721 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11722 | break 2 | |
11723 | fi | |
11724 | done | |
11725 | done | |
11726 | ||
11727 | fi | |
11728 | fi | |
11729 | AR=$ac_cv_prog_AR | |
11730 | if test -n "$AR"; then | |
11731 | echo "$as_me:$LINENO: result: $AR" >&5 | |
11732 | echo "${ECHO_T}$AR" >&6 | |
11733 | else | |
11734 | echo "$as_me:$LINENO: result: no" >&5 | |
11735 | echo "${ECHO_T}no" >&6 | |
11736 | fi | |
11737 | ||
11738 | if test "x$AR" = "x" ; then | |
11739 | { { echo "$as_me:$LINENO: error: ar is needed to build wxWindows" >&5 | |
11740 | echo "$as_me: error: ar is needed to build wxWindows" >&2;} | |
11741 | { (exit 1); exit 1; }; } | |
11742 | fi | |
11743 | ||
11744 | # Find a good install program. We prefer a C program (faster), | |
11745 | # so one script is as good as another. But avoid the broken or | |
11746 | # incompatible versions: | |
11747 | # SysV /etc/install, /usr/sbin/install | |
11748 | # SunOS /usr/etc/install | |
11749 | # IRIX /sbin/install | |
11750 | # AIX /bin/install | |
11751 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
11752 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
11753 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
11754 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
a848cd7e SC |
11755 | # ./install, which can be erroneously created by make from ./install.sh. |
11756 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
11757 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
11758 | if test -z "$INSTALL"; then | |
11759 | if test "${ac_cv_path_install+set}" = set; then | |
11760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11761 | else | |
11762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11763 | for as_dir in $PATH | |
11764 | do | |
11765 | IFS=$as_save_IFS | |
11766 | test -z "$as_dir" && as_dir=. | |
11767 | # Account for people who put trailing slashes in PATH elements. | |
11768 | case $as_dir/ in | |
11769 | ./ | .// | /cC/* | \ | |
11770 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
a848cd7e SC |
11771 | /usr/ucb/* ) ;; |
11772 | *) | |
11773 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11774 | # Don't use installbsd from OSF since it installs stuff as root | |
11775 | # by default. | |
11776 | for ac_prog in ginstall scoinst install; do | |
11777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a7b1113 VZ |
11778 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
11779 | if test $ac_prog = install && | |
11780 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11781 | # AIX install. It has an incompatible calling convention. | |
11782 | : | |
11783 | elif test $ac_prog = install && | |
11784 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11785 | # program-specific install script used by HP pwplus--don't use. | |
11786 | : | |
11787 | else | |
11788 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11789 | break 3 | |
11790 | fi | |
11791 | fi | |
a848cd7e SC |
11792 | done |
11793 | done | |
11794 | ;; | |
11795 | esac | |
11796 | done | |
11797 | ||
11798 | ||
11799 | fi | |
11800 | if test "${ac_cv_path_install+set}" = set; then | |
11801 | INSTALL=$ac_cv_path_install | |
11802 | else | |
11803 | # As a last resort, use the slow shell script. We don't cache a | |
11804 | # path for INSTALL within a source directory, because that will | |
11805 | # break other packages using the cache if that directory is | |
11806 | # removed, or if the path is relative. | |
11807 | INSTALL=$ac_install_sh | |
11808 | fi | |
11809 | fi | |
11810 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
11811 | echo "${ECHO_T}$INSTALL" >&6 | |
11812 | ||
11813 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
11814 | # It thinks the first close brace ends the variable substitution. | |
11815 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
11816 | ||
11817 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
11818 | ||
11819 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
11820 | ||
11821 | ||
11822 | case ${INSTALL} in | |
11823 | /* ) # Absolute | |
11824 | ;; | |
11825 | ?:* ) # Drive letter, considered as absolute. | |
11826 | ;; | |
11827 | *) | |
11828 | INSTALL=`pwd`/${INSTALL} ;; | |
11829 | esac | |
11830 | ||
11831 | case ${host} in | |
11832 | *-hp-hpux* ) | |
11833 | INSTALL_DIR="mkdir" | |
11834 | ;; | |
11835 | ||
11836 | *) INSTALL_DIR="$INSTALL -d" | |
11837 | ;; | |
11838 | esac | |
11839 | ||
11840 | ||
11841 | case "${host}" in | |
11842 | ||
11843 | powerpc-*-darwin* ) | |
11844 | INSTALL_PROGRAM="cp -fp" | |
11845 | INSTALL_DATA="cp -fp" | |
11846 | ;; | |
11847 | *) | |
11848 | ;; | |
11849 | esac | |
11850 | ||
11851 | # Extract the first word of "strip", so it can be a program name with args. | |
11852 | set dummy strip; ac_word=$2 | |
11853 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11854 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11855 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
11856 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11857 | else | |
11858 | if test -n "$STRIP"; then | |
11859 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
11860 | else | |
11861 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11862 | for as_dir in $PATH | |
11863 | do | |
11864 | IFS=$as_save_IFS | |
11865 | test -z "$as_dir" && as_dir=. | |
11866 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11867 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
11868 | ac_cv_prog_STRIP="strip" | |
11869 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11870 | break 2 | |
11871 | fi | |
11872 | done | |
11873 | done | |
11874 | ||
11875 | test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true" | |
11876 | fi | |
11877 | fi | |
11878 | STRIP=$ac_cv_prog_STRIP | |
11879 | if test -n "$STRIP"; then | |
11880 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
11881 | echo "${ECHO_T}$STRIP" >&6 | |
11882 | else | |
11883 | echo "$as_me:$LINENO: result: no" >&5 | |
11884 | echo "${ECHO_T}no" >&6 | |
11885 | fi | |
11886 | ||
11887 | ||
11888 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
11889 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
11890 | if test "${wx_cv_prog_makeisgnu+set}" = set; then | |
11891 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11892 | else | |
11893 | ||
11894 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
11895 | egrep -s GNU > /dev/null); then | |
11896 | wx_cv_prog_makeisgnu="yes" | |
11897 | else | |
11898 | wx_cv_prog_makeisgnu="no" | |
11899 | fi | |
11900 | ||
11901 | fi | |
11902 | echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5 | |
11903 | echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6 | |
11904 | ||
11905 | if test "x$wx_cv_prog_makeisgnu" = "xyes"; then | |
11906 | IF_GNU_MAKE="" | |
11907 | else | |
11908 | IF_GNU_MAKE="#" | |
11909 | fi | |
11910 | ||
11911 | ||
11912 | ||
11913 | if test "x$wx_cv_prog_makeisgnu" != "xyes"; then | |
11914 | echo "$as_me:$LINENO: checking if make supports VPATH" >&5 | |
11915 | echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6 | |
11916 | if test "${wx_cv_prog_makevpath+set}" = set; then | |
11917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11918 | else | |
11919 | ||
11920 | cat - << EOF > confMake | |
11921 | check : file | |
11922 | cp \$? \$@ | |
11923 | cp \$? final_file | |
11924 | EOF | |
11925 | ||
11926 | if test ! -d sub ; then | |
11927 | mkdir sub | |
11928 | fi | |
11929 | echo dummy > sub/file | |
11930 | ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null | |
11931 | RESULT=$? | |
11932 | rm -f sub/file check final_file confMake | |
11933 | rmdir sub | |
11934 | if test "$RESULT" = 0; then | |
11935 | wx_cv_prog_makevpath="yes" | |
11936 | else | |
11937 | wx_cv_prog_makevpath="no" | |
11938 | fi | |
11939 | ||
11940 | fi | |
11941 | echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5 | |
11942 | echo "${ECHO_T}$wx_cv_prog_makevpath" >&6 | |
11943 | ||
11944 | if test "x$wx_cv_prog_makevpath" != "xyes"; then | |
11945 | { { echo "$as_me:$LINENO: error: | |
11946 | You need a make-utility that is able to use the variable | |
11947 | VPATH correctly. | |
11948 | If your version of make does not support VPATH correctly, | |
11949 | please install GNU-make (possibly as gmake), and start | |
11950 | configure with the following command: | |
11951 | export MAKE=gmake; ./configure for sh-type shells | |
11952 | setenv MAKE gmake; ./configure for csh-type shells | |
11953 | Also please do remember to use gmake in this case every time | |
11954 | you are trying to compile. | |
11955 | " >&5 | |
11956 | echo "$as_me: error: | |
11957 | You need a make-utility that is able to use the variable | |
11958 | VPATH correctly. | |
11959 | If your version of make does not support VPATH correctly, | |
11960 | please install GNU-make (possibly as gmake), and start | |
11961 | configure with the following command: | |
11962 | export MAKE=gmake; ./configure for sh-type shells | |
11963 | setenv MAKE gmake; ./configure for csh-type shells | |
11964 | Also please do remember to use gmake in this case every time | |
11965 | you are trying to compile. | |
11966 | " >&2;} | |
11967 | { (exit 1); exit 1; }; } | |
11968 | fi fi | |
11969 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
11970 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
11971 | LN_S=$as_ln_s | |
11972 | if test "$LN_S" = "ln -s"; then | |
11973 | echo "$as_me:$LINENO: result: yes" >&5 | |
11974 | echo "${ECHO_T}yes" >&6 | |
11975 | else | |
11976 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
11977 | echo "${ECHO_T}no, using $LN_S" >&6 | |
11978 | fi | |
11979 | ||
11980 | ||
11981 | ||
11982 | case "${host}" in | |
11983 | *-pc-os2_emx | *-pc-os2-emx ) | |
11984 | if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then | |
11985 | echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5 | |
11986 | echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6 | |
11987 | if test "${ac_cv_lib_cExt_drand48+set}" = set; then | |
11988 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11989 | else | |
11990 | ac_check_lib_save_LIBS=$LIBS | |
11991 | LIBS="-lcExt $LIBS" | |
11992 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 11993 | #line $LINENO "configure" |
a848cd7e SC |
11994 | /* confdefs.h. */ |
11995 | _ACEOF | |
11996 | cat confdefs.h >>conftest.$ac_ext | |
11997 | cat >>conftest.$ac_ext <<_ACEOF | |
11998 | /* end confdefs.h. */ | |
11999 | ||
12000 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12001 | #ifdef __cplusplus | |
12002 | extern "C" | |
12003 | #endif | |
12004 | /* We use char because int might match the return type of a gcc2 | |
12005 | builtin and then its argument prototype would still apply. */ | |
12006 | char drand48 (); | |
12007 | int | |
12008 | main () | |
12009 | { | |
12010 | drand48 (); | |
12011 | ; | |
12012 | return 0; | |
12013 | } | |
12014 | _ACEOF | |
12015 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12016 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 12017 | (eval $ac_link) 2>&5 |
a848cd7e | 12018 | ac_status=$? |
a848cd7e SC |
12019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12020 | (exit $ac_status); } && | |
8a7b1113 | 12021 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
12022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12023 | (eval $ac_try) 2>&5 | |
12024 | ac_status=$? | |
12025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12026 | (exit $ac_status); }; }; then | |
12027 | ac_cv_lib_cExt_drand48=yes | |
12028 | else | |
12029 | echo "$as_me: failed program was:" >&5 | |
12030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12031 | ||
12032 | ac_cv_lib_cExt_drand48=no | |
12033 | fi | |
8a7b1113 | 12034 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
12035 | LIBS=$ac_check_lib_save_LIBS |
12036 | fi | |
12037 | echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5 | |
12038 | echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6 | |
12039 | if test $ac_cv_lib_cExt_drand48 = yes; then | |
12040 | LIBS="$LIBS -lcExt" | |
12041 | fi | |
12042 | ||
12043 | else | |
12044 | RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res" | |
12045 | fi | |
12046 | echo "$as_me:$LINENO: checking for gcc version" >&5 | |
12047 | echo $ECHO_N "checking for gcc version... $ECHO_C" >&6 | |
12048 | if test "${wx_cv_gccversion+set}" = set; then | |
12049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12050 | else | |
12051 | ||
12052 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12053 | #line $LINENO "configure" |
a848cd7e SC |
12054 | /* confdefs.h. */ |
12055 | _ACEOF | |
12056 | cat confdefs.h >>conftest.$ac_ext | |
12057 | cat >>conftest.$ac_ext <<_ACEOF | |
12058 | /* end confdefs.h. */ | |
12059 | ||
12060 | int | |
12061 | main () | |
12062 | { | |
12063 | ||
12064 | #if (__GNUC__ < 3) | |
12065 | #error old gcc | |
12066 | #endif | |
12067 | ||
12068 | ; | |
12069 | return 0; | |
12070 | } | |
12071 | _ACEOF | |
12072 | rm -f conftest.$ac_objext | |
12073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 12074 | (eval $ac_compile) 2>&5 |
a848cd7e | 12075 | ac_status=$? |
a848cd7e SC |
12076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12077 | (exit $ac_status); } && | |
8a7b1113 | 12078 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
12079 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12080 | (eval $ac_try) 2>&5 | |
12081 | ac_status=$? | |
12082 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12083 | (exit $ac_status); }; }; then | |
12084 | ||
12085 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12086 | #line $LINENO "configure" |
a848cd7e SC |
12087 | /* confdefs.h. */ |
12088 | _ACEOF | |
12089 | cat confdefs.h >>conftest.$ac_ext | |
12090 | cat >>conftest.$ac_ext <<_ACEOF | |
12091 | /* end confdefs.h. */ | |
12092 | ||
12093 | int | |
12094 | main () | |
12095 | { | |
12096 | ||
12097 | #if (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2))) | |
12098 | #error intermediate gcc | |
12099 | #endif | |
12100 | ||
12101 | ; | |
12102 | return 0; | |
12103 | } | |
12104 | _ACEOF | |
12105 | rm -f conftest.$ac_objext | |
12106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 12107 | (eval $ac_compile) 2>&5 |
a848cd7e | 12108 | ac_status=$? |
a848cd7e SC |
12109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12110 | (exit $ac_status); } && | |
8a7b1113 | 12111 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
12112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12113 | (eval $ac_try) 2>&5 | |
12114 | ac_status=$? | |
12115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12116 | (exit $ac_status); }; }; then | |
12117 | ||
12118 | wx_cv_gccversion=Innotek | |
12119 | ||
12120 | else | |
12121 | echo "$as_me: failed program was:" >&5 | |
12122 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12123 | ||
12124 | ||
12125 | wx_cv_gccversion=3 | |
12126 | ||
12127 | ||
12128 | fi | |
8a7b1113 | 12129 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12130 | |
12131 | else | |
12132 | echo "$as_me: failed program was:" >&5 | |
12133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12134 | ||
12135 | ||
12136 | wx_cv_gccversion=2 | |
12137 | ||
12138 | ||
12139 | fi | |
8a7b1113 | 12140 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12141 | |
12142 | fi | |
12143 | echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5 | |
12144 | echo "${ECHO_T}$wx_cv_gccversion" >&6 | |
12145 | if test "$wx_cv_gccversion" = "2"; then | |
12146 | LIBS="$LIBS -lstdcpp" | |
12147 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12148 | else | |
12149 | if test "$wx_cv_gccversion" = "3"; then | |
12150 | LIBS="$LIBS -lstdcxx" | |
12151 | LDFLAGS="$LDFLAGS -Zsysv-signals" | |
12152 | else | |
12153 | LIBS="$LIBS -lstdc++" | |
12154 | fi | |
12155 | fi | |
12156 | if test "$wxUSE_OMF" = "yes"; then | |
12157 | LDFLAGS="$LDFLAGS -Zlinker /PMTYPE:PM -Zlinker /EXEPACK" | |
12158 | fi | |
12159 | ;; | |
12160 | *) | |
12161 | ||
12162 | ||
12163 | ||
12164 | ac_ext=cc | |
12165 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12166 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12167 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12168 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12169 | ||
12170 | ||
12171 | ||
12172 | echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5 | |
12173 | echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6 | |
12174 | if test "${ac_cv_string_strcasecmp+set}" = set; then | |
12175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12176 | else | |
12177 | ||
12178 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12179 | #line $LINENO "configure" |
a848cd7e SC |
12180 | /* confdefs.h. */ |
12181 | _ACEOF | |
12182 | cat confdefs.h >>conftest.$ac_ext | |
12183 | cat >>conftest.$ac_ext <<_ACEOF | |
12184 | /* end confdefs.h. */ | |
12185 | ||
12186 | #include <string.h> | |
12187 | ||
12188 | int | |
12189 | main () | |
12190 | { | |
12191 | ||
12192 | strcasecmp("foo", "bar"); | |
12193 | ||
12194 | ; | |
12195 | return 0; | |
12196 | } | |
12197 | _ACEOF | |
12198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 12200 | (eval $ac_link) 2>&5 |
a848cd7e | 12201 | ac_status=$? |
a848cd7e SC |
12202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12203 | (exit $ac_status); } && | |
8a7b1113 | 12204 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
12205 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12206 | (eval $ac_try) 2>&5 | |
12207 | ac_status=$? | |
12208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12209 | (exit $ac_status); }; }; then | |
12210 | ac_cv_string_strcasecmp=yes | |
12211 | else | |
12212 | echo "$as_me: failed program was:" >&5 | |
12213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12214 | ||
12215 | ac_cv_string_strcasecmp=no | |
12216 | ||
12217 | fi | |
8a7b1113 | 12218 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
12219 | |
12220 | fi | |
12221 | echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5 | |
12222 | echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6 | |
12223 | ||
12224 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12225 | cat >>confdefs.h <<\_ACEOF | |
12226 | #define HAVE_STRCASECMP_IN_STRING_H 1 | |
12227 | _ACEOF | |
12228 | ||
12229 | else | |
12230 | echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5 | |
12231 | echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6 | |
12232 | if test "${ac_cv_strings_strcasecmp+set}" = set; then | |
12233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12234 | else | |
12235 | ||
12236 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12237 | #line $LINENO "configure" |
a848cd7e SC |
12238 | /* confdefs.h. */ |
12239 | _ACEOF | |
12240 | cat confdefs.h >>conftest.$ac_ext | |
12241 | cat >>conftest.$ac_ext <<_ACEOF | |
12242 | /* end confdefs.h. */ | |
12243 | ||
12244 | #include <strings.h> | |
12245 | ||
12246 | int | |
12247 | main () | |
12248 | { | |
12249 | ||
12250 | strcasecmp("foo", "bar"); | |
12251 | ||
12252 | ; | |
12253 | return 0; | |
12254 | } | |
12255 | _ACEOF | |
12256 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12257 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 12258 | (eval $ac_link) 2>&5 |
a848cd7e | 12259 | ac_status=$? |
a848cd7e SC |
12260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12261 | (exit $ac_status); } && | |
8a7b1113 | 12262 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
12263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12264 | (eval $ac_try) 2>&5 | |
12265 | ac_status=$? | |
12266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12267 | (exit $ac_status); }; }; then | |
12268 | ac_cv_strings_strcasecmp=yes | |
12269 | else | |
12270 | echo "$as_me: failed program was:" >&5 | |
12271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12272 | ||
12273 | ac_cv_strings_strcasecmp=no | |
12274 | ||
12275 | fi | |
8a7b1113 | 12276 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
12277 | |
12278 | fi | |
12279 | echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5 | |
12280 | echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6 | |
12281 | ||
12282 | if test x"$ac_cv_string_strcasecmp" = "xyes"; then | |
12283 | cat >>confdefs.h <<\_ACEOF | |
12284 | #define HAVE_STRCASECMP_IN_STRINGS_H 1 | |
12285 | _ACEOF | |
12286 | ||
12287 | else | |
12288 | { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5 | |
12289 | echo "$as_me: error: No case-insensitive string comparison function found." >&2;} | |
12290 | { (exit 1); exit 1; }; } | |
12291 | fi | |
12292 | fi | |
12293 | ||
12294 | ac_ext=c | |
12295 | ac_cpp='$CPP $CPPFLAGS' | |
12296 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12297 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12298 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12299 | ||
12300 | ;; | |
12301 | esac | |
12302 | ||
12303 | ||
12304 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
12305 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
12306 | if test "${ac_cv_header_stdc+set}" = set; then | |
12307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12308 | else | |
12309 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12310 | #line $LINENO "configure" |
a848cd7e SC |
12311 | /* confdefs.h. */ |
12312 | _ACEOF | |
12313 | cat confdefs.h >>conftest.$ac_ext | |
12314 | cat >>conftest.$ac_ext <<_ACEOF | |
12315 | /* end confdefs.h. */ | |
12316 | #include <stdlib.h> | |
12317 | #include <stdarg.h> | |
12318 | #include <string.h> | |
12319 | #include <float.h> | |
12320 | ||
12321 | int | |
12322 | main () | |
12323 | { | |
12324 | ||
12325 | ; | |
12326 | return 0; | |
12327 | } | |
12328 | _ACEOF | |
12329 | rm -f conftest.$ac_objext | |
12330 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 12331 | (eval $ac_compile) 2>&5 |
a848cd7e | 12332 | ac_status=$? |
a848cd7e SC |
12333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12334 | (exit $ac_status); } && | |
8a7b1113 | 12335 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
12336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12337 | (eval $ac_try) 2>&5 | |
12338 | ac_status=$? | |
12339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12340 | (exit $ac_status); }; }; then | |
12341 | ac_cv_header_stdc=yes | |
12342 | else | |
12343 | echo "$as_me: failed program was:" >&5 | |
12344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12345 | ||
12346 | ac_cv_header_stdc=no | |
12347 | fi | |
8a7b1113 | 12348 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12349 | |
12350 | if test $ac_cv_header_stdc = yes; then | |
12351 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
12352 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12353 | #line $LINENO "configure" |
a848cd7e SC |
12354 | /* confdefs.h. */ |
12355 | _ACEOF | |
12356 | cat confdefs.h >>conftest.$ac_ext | |
12357 | cat >>conftest.$ac_ext <<_ACEOF | |
12358 | /* end confdefs.h. */ | |
12359 | #include <string.h> | |
12360 | ||
12361 | _ACEOF | |
12362 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12363 | $EGREP "memchr" >/dev/null 2>&1; then | |
12364 | : | |
12365 | else | |
12366 | ac_cv_header_stdc=no | |
12367 | fi | |
12368 | rm -f conftest* | |
12369 | ||
12370 | fi | |
12371 | ||
12372 | if test $ac_cv_header_stdc = yes; then | |
12373 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
12374 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12375 | #line $LINENO "configure" |
a848cd7e SC |
12376 | /* confdefs.h. */ |
12377 | _ACEOF | |
12378 | cat confdefs.h >>conftest.$ac_ext | |
12379 | cat >>conftest.$ac_ext <<_ACEOF | |
12380 | /* end confdefs.h. */ | |
12381 | #include <stdlib.h> | |
12382 | ||
12383 | _ACEOF | |
12384 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
12385 | $EGREP "free" >/dev/null 2>&1; then | |
12386 | : | |
12387 | else | |
12388 | ac_cv_header_stdc=no | |
12389 | fi | |
12390 | rm -f conftest* | |
12391 | ||
12392 | fi | |
12393 | ||
12394 | if test $ac_cv_header_stdc = yes; then | |
12395 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
12396 | if test "$cross_compiling" = yes; then | |
12397 | : | |
12398 | else | |
12399 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12400 | #line $LINENO "configure" |
a848cd7e SC |
12401 | /* confdefs.h. */ |
12402 | _ACEOF | |
12403 | cat confdefs.h >>conftest.$ac_ext | |
12404 | cat >>conftest.$ac_ext <<_ACEOF | |
12405 | /* end confdefs.h. */ | |
12406 | #include <ctype.h> | |
12407 | #if ((' ' & 0x0FF) == 0x020) | |
12408 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
12409 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
12410 | #else | |
12411 | # define ISLOWER(c) \ | |
8a7b1113 VZ |
12412 | (('a' <= (c) && (c) <= 'i') \ |
12413 | || ('j' <= (c) && (c) <= 'r') \ | |
12414 | || ('s' <= (c) && (c) <= 'z')) | |
a848cd7e SC |
12415 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
12416 | #endif | |
12417 | ||
12418 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
12419 | int | |
12420 | main () | |
12421 | { | |
12422 | int i; | |
12423 | for (i = 0; i < 256; i++) | |
12424 | if (XOR (islower (i), ISLOWER (i)) | |
8a7b1113 | 12425 | || toupper (i) != TOUPPER (i)) |
a848cd7e SC |
12426 | exit(2); |
12427 | exit (0); | |
12428 | } | |
12429 | _ACEOF | |
12430 | rm -f conftest$ac_exeext | |
12431 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12432 | (eval $ac_link) 2>&5 | |
12433 | ac_status=$? | |
12434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12435 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12437 | (eval $ac_try) 2>&5 | |
12438 | ac_status=$? | |
12439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12440 | (exit $ac_status); }; }; then | |
12441 | : | |
12442 | else | |
12443 | echo "$as_me: program exited with status $ac_status" >&5 | |
12444 | echo "$as_me: failed program was:" >&5 | |
12445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12446 | ||
12447 | ( exit $ac_status ) | |
12448 | ac_cv_header_stdc=no | |
12449 | fi | |
8a7b1113 | 12450 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12451 | fi |
12452 | fi | |
12453 | fi | |
12454 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
12455 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
12456 | if test $ac_cv_header_stdc = yes; then | |
12457 | ||
12458 | cat >>confdefs.h <<\_ACEOF | |
12459 | #define STDC_HEADERS 1 | |
12460 | _ACEOF | |
12461 | ||
12462 | fi | |
12463 | ||
12464 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
12465 | ||
12466 | ||
12467 | ||
12468 | ||
12469 | ||
12470 | ||
12471 | ||
12472 | ||
12473 | ||
12474 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8a7b1113 | 12475 | inttypes.h stdint.h unistd.h |
a848cd7e SC |
12476 | do |
12477 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12478 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12479 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12480 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12482 | else | |
12483 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12484 | #line $LINENO "configure" |
a848cd7e SC |
12485 | /* confdefs.h. */ |
12486 | _ACEOF | |
12487 | cat confdefs.h >>conftest.$ac_ext | |
12488 | cat >>conftest.$ac_ext <<_ACEOF | |
12489 | /* end confdefs.h. */ | |
12490 | $ac_includes_default | |
12491 | ||
12492 | #include <$ac_header> | |
12493 | _ACEOF | |
12494 | rm -f conftest.$ac_objext | |
12495 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 12496 | (eval $ac_compile) 2>&5 |
a848cd7e | 12497 | ac_status=$? |
a848cd7e SC |
12498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12499 | (exit $ac_status); } && | |
8a7b1113 | 12500 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
12501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12502 | (eval $ac_try) 2>&5 | |
12503 | ac_status=$? | |
12504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12505 | (exit $ac_status); }; }; then | |
12506 | eval "$as_ac_Header=yes" | |
12507 | else | |
12508 | echo "$as_me: failed program was:" >&5 | |
12509 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12510 | ||
12511 | eval "$as_ac_Header=no" | |
12512 | fi | |
8a7b1113 | 12513 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12514 | fi |
12515 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12516 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12517 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12518 | cat >>confdefs.h <<_ACEOF | |
12519 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12520 | _ACEOF | |
12521 | ||
12522 | fi | |
12523 | ||
12524 | done | |
12525 | ||
12526 | ||
12527 | ||
12528 | for ac_header in stdlib.h | |
12529 | do | |
12530 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12531 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12532 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12533 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12534 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12536 | fi | |
12537 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12538 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12539 | else | |
12540 | # Is the header compilable? | |
12541 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12542 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12543 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12544 | #line $LINENO "configure" |
a848cd7e SC |
12545 | /* confdefs.h. */ |
12546 | _ACEOF | |
12547 | cat confdefs.h >>conftest.$ac_ext | |
12548 | cat >>conftest.$ac_ext <<_ACEOF | |
12549 | /* end confdefs.h. */ | |
12550 | $ac_includes_default | |
12551 | #include <$ac_header> | |
12552 | _ACEOF | |
12553 | rm -f conftest.$ac_objext | |
12554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 12555 | (eval $ac_compile) 2>&5 |
a848cd7e | 12556 | ac_status=$? |
a848cd7e SC |
12557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12558 | (exit $ac_status); } && | |
8a7b1113 | 12559 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
12560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12561 | (eval $ac_try) 2>&5 | |
12562 | ac_status=$? | |
12563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12564 | (exit $ac_status); }; }; then | |
12565 | ac_header_compiler=yes | |
12566 | else | |
12567 | echo "$as_me: failed program was:" >&5 | |
12568 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12569 | ||
12570 | ac_header_compiler=no | |
12571 | fi | |
8a7b1113 | 12572 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12573 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12574 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12575 | ||
12576 | # Is the header present? | |
12577 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12578 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12579 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12580 | #line $LINENO "configure" |
a848cd7e SC |
12581 | /* confdefs.h. */ |
12582 | _ACEOF | |
12583 | cat confdefs.h >>conftest.$ac_ext | |
12584 | cat >>conftest.$ac_ext <<_ACEOF | |
12585 | /* end confdefs.h. */ | |
12586 | #include <$ac_header> | |
12587 | _ACEOF | |
12588 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12589 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12590 | ac_status=$? | |
12591 | grep -v '^ *+' conftest.er1 >conftest.err | |
12592 | rm -f conftest.er1 | |
12593 | cat conftest.err >&5 | |
12594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12595 | (exit $ac_status); } >/dev/null; then | |
12596 | if test -s conftest.err; then | |
12597 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
12598 | else |
12599 | ac_cpp_err= | |
12600 | fi | |
12601 | else | |
12602 | ac_cpp_err=yes | |
12603 | fi | |
12604 | if test -z "$ac_cpp_err"; then | |
12605 | ac_header_preproc=yes | |
12606 | else | |
12607 | echo "$as_me: failed program was:" >&5 | |
12608 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12609 | ||
12610 | ac_header_preproc=no | |
12611 | fi | |
12612 | rm -f conftest.err conftest.$ac_ext | |
12613 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12614 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12615 | ||
12616 | # So? What about this header? | |
8a7b1113 VZ |
12617 | case $ac_header_compiler:$ac_header_preproc in |
12618 | yes:no ) | |
a848cd7e SC |
12619 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12620 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
12621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12622 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12623 | ( | |
12624 | cat <<\_ASBOX | |
12625 | ## ------------------------------------ ## | |
12626 | ## Report this to bug-autoconf@gnu.org. ## | |
12627 | ## ------------------------------------ ## | |
12628 | _ASBOX | |
12629 | ) | | |
12630 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 12631 | ;; |
8a7b1113 | 12632 | no:yes ) |
a848cd7e SC |
12633 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12634 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
12635 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12636 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
12637 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12638 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
12639 | ( |
12640 | cat <<\_ASBOX | |
8a7b1113 VZ |
12641 | ## ------------------------------------ ## |
12642 | ## Report this to bug-autoconf@gnu.org. ## | |
12643 | ## ------------------------------------ ## | |
a848cd7e SC |
12644 | _ASBOX |
12645 | ) | | |
12646 | sed "s/^/$as_me: WARNING: /" >&2 | |
12647 | ;; | |
12648 | esac | |
12649 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12650 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12651 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12653 | else | |
8a7b1113 | 12654 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
12655 | fi |
12656 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12657 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12658 | ||
12659 | fi | |
12660 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12661 | cat >>confdefs.h <<_ACEOF | |
12662 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12663 | _ACEOF | |
12664 | ||
12665 | fi | |
12666 | ||
12667 | done | |
12668 | ||
12669 | ||
12670 | for ac_header in malloc.h | |
12671 | do | |
12672 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12673 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12674 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12675 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12676 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12678 | fi | |
12679 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12680 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12681 | else | |
12682 | # Is the header compilable? | |
12683 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12684 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12685 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12686 | #line $LINENO "configure" |
a848cd7e SC |
12687 | /* confdefs.h. */ |
12688 | _ACEOF | |
12689 | cat confdefs.h >>conftest.$ac_ext | |
12690 | cat >>conftest.$ac_ext <<_ACEOF | |
12691 | /* end confdefs.h. */ | |
12692 | $ac_includes_default | |
12693 | #include <$ac_header> | |
12694 | _ACEOF | |
12695 | rm -f conftest.$ac_objext | |
12696 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 12697 | (eval $ac_compile) 2>&5 |
a848cd7e | 12698 | ac_status=$? |
a848cd7e SC |
12699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12700 | (exit $ac_status); } && | |
8a7b1113 | 12701 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
12702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12703 | (eval $ac_try) 2>&5 | |
12704 | ac_status=$? | |
12705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12706 | (exit $ac_status); }; }; then | |
12707 | ac_header_compiler=yes | |
12708 | else | |
12709 | echo "$as_me: failed program was:" >&5 | |
12710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12711 | ||
12712 | ac_header_compiler=no | |
12713 | fi | |
8a7b1113 | 12714 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12715 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12716 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12717 | ||
12718 | # Is the header present? | |
12719 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12720 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12721 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12722 | #line $LINENO "configure" |
a848cd7e SC |
12723 | /* confdefs.h. */ |
12724 | _ACEOF | |
12725 | cat confdefs.h >>conftest.$ac_ext | |
12726 | cat >>conftest.$ac_ext <<_ACEOF | |
12727 | /* end confdefs.h. */ | |
12728 | #include <$ac_header> | |
12729 | _ACEOF | |
12730 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12731 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12732 | ac_status=$? | |
12733 | grep -v '^ *+' conftest.er1 >conftest.err | |
12734 | rm -f conftest.er1 | |
12735 | cat conftest.err >&5 | |
12736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12737 | (exit $ac_status); } >/dev/null; then | |
12738 | if test -s conftest.err; then | |
12739 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
12740 | else |
12741 | ac_cpp_err= | |
12742 | fi | |
12743 | else | |
12744 | ac_cpp_err=yes | |
12745 | fi | |
12746 | if test -z "$ac_cpp_err"; then | |
12747 | ac_header_preproc=yes | |
12748 | else | |
12749 | echo "$as_me: failed program was:" >&5 | |
12750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12751 | ||
12752 | ac_header_preproc=no | |
12753 | fi | |
12754 | rm -f conftest.err conftest.$ac_ext | |
12755 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12756 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12757 | ||
12758 | # So? What about this header? | |
8a7b1113 VZ |
12759 | case $ac_header_compiler:$ac_header_preproc in |
12760 | yes:no ) | |
a848cd7e SC |
12761 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12762 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
12763 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12764 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12765 | ( | |
12766 | cat <<\_ASBOX | |
12767 | ## ------------------------------------ ## | |
12768 | ## Report this to bug-autoconf@gnu.org. ## | |
12769 | ## ------------------------------------ ## | |
12770 | _ASBOX | |
12771 | ) | | |
12772 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 12773 | ;; |
8a7b1113 | 12774 | no:yes ) |
a848cd7e SC |
12775 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12776 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
12777 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12778 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
12779 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12780 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
12781 | ( |
12782 | cat <<\_ASBOX | |
8a7b1113 VZ |
12783 | ## ------------------------------------ ## |
12784 | ## Report this to bug-autoconf@gnu.org. ## | |
12785 | ## ------------------------------------ ## | |
a848cd7e SC |
12786 | _ASBOX |
12787 | ) | | |
12788 | sed "s/^/$as_me: WARNING: /" >&2 | |
12789 | ;; | |
12790 | esac | |
12791 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12792 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12793 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12794 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12795 | else | |
8a7b1113 | 12796 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
12797 | fi |
12798 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12799 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12800 | ||
12801 | fi | |
12802 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12803 | cat >>confdefs.h <<_ACEOF | |
12804 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12805 | _ACEOF | |
12806 | ||
12807 | fi | |
12808 | ||
12809 | done | |
12810 | ||
12811 | ||
12812 | for ac_header in unistd.h | |
12813 | do | |
12814 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12815 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12816 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12817 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12818 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12820 | fi | |
12821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12822 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12823 | else | |
12824 | # Is the header compilable? | |
12825 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12826 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12827 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12828 | #line $LINENO "configure" |
a848cd7e SC |
12829 | /* confdefs.h. */ |
12830 | _ACEOF | |
12831 | cat confdefs.h >>conftest.$ac_ext | |
12832 | cat >>conftest.$ac_ext <<_ACEOF | |
12833 | /* end confdefs.h. */ | |
12834 | $ac_includes_default | |
12835 | #include <$ac_header> | |
12836 | _ACEOF | |
12837 | rm -f conftest.$ac_objext | |
12838 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 12839 | (eval $ac_compile) 2>&5 |
a848cd7e | 12840 | ac_status=$? |
a848cd7e SC |
12841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12842 | (exit $ac_status); } && | |
8a7b1113 | 12843 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
12844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12845 | (eval $ac_try) 2>&5 | |
12846 | ac_status=$? | |
12847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12848 | (exit $ac_status); }; }; then | |
12849 | ac_header_compiler=yes | |
12850 | else | |
12851 | echo "$as_me: failed program was:" >&5 | |
12852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12853 | ||
12854 | ac_header_compiler=no | |
12855 | fi | |
8a7b1113 | 12856 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12857 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
12858 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12859 | ||
12860 | # Is the header present? | |
12861 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12862 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12863 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12864 | #line $LINENO "configure" |
a848cd7e SC |
12865 | /* confdefs.h. */ |
12866 | _ACEOF | |
12867 | cat confdefs.h >>conftest.$ac_ext | |
12868 | cat >>conftest.$ac_ext <<_ACEOF | |
12869 | /* end confdefs.h. */ | |
12870 | #include <$ac_header> | |
12871 | _ACEOF | |
12872 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12873 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12874 | ac_status=$? | |
12875 | grep -v '^ *+' conftest.er1 >conftest.err | |
12876 | rm -f conftest.er1 | |
12877 | cat conftest.err >&5 | |
12878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12879 | (exit $ac_status); } >/dev/null; then | |
12880 | if test -s conftest.err; then | |
12881 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
12882 | else |
12883 | ac_cpp_err= | |
12884 | fi | |
12885 | else | |
12886 | ac_cpp_err=yes | |
12887 | fi | |
12888 | if test -z "$ac_cpp_err"; then | |
12889 | ac_header_preproc=yes | |
12890 | else | |
12891 | echo "$as_me: failed program was:" >&5 | |
12892 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12893 | ||
12894 | ac_header_preproc=no | |
12895 | fi | |
12896 | rm -f conftest.err conftest.$ac_ext | |
12897 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12898 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12899 | ||
12900 | # So? What about this header? | |
8a7b1113 VZ |
12901 | case $ac_header_compiler:$ac_header_preproc in |
12902 | yes:no ) | |
a848cd7e SC |
12903 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
12904 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
12905 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12906 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12907 | ( | |
12908 | cat <<\_ASBOX | |
12909 | ## ------------------------------------ ## | |
12910 | ## Report this to bug-autoconf@gnu.org. ## | |
12911 | ## ------------------------------------ ## | |
12912 | _ASBOX | |
12913 | ) | | |
12914 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 12915 | ;; |
8a7b1113 | 12916 | no:yes ) |
a848cd7e SC |
12917 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
12918 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
12919 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
12920 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
12921 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
12922 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
12923 | ( |
12924 | cat <<\_ASBOX | |
8a7b1113 VZ |
12925 | ## ------------------------------------ ## |
12926 | ## Report this to bug-autoconf@gnu.org. ## | |
12927 | ## ------------------------------------ ## | |
a848cd7e SC |
12928 | _ASBOX |
12929 | ) | | |
12930 | sed "s/^/$as_me: WARNING: /" >&2 | |
12931 | ;; | |
12932 | esac | |
12933 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12934 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12937 | else | |
8a7b1113 | 12938 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
12939 | fi |
12940 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12941 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12942 | ||
12943 | fi | |
12944 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12945 | cat >>confdefs.h <<_ACEOF | |
12946 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12947 | _ACEOF | |
12948 | ||
12949 | fi | |
12950 | ||
12951 | done | |
12952 | ||
12953 | ||
12954 | for ac_header in wchar.h | |
12955 | do | |
12956 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12957 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12958 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12959 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12960 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12962 | fi | |
12963 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12964 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12965 | else | |
12966 | # Is the header compilable? | |
12967 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12968 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12969 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 12970 | #line $LINENO "configure" |
a848cd7e SC |
12971 | /* confdefs.h. */ |
12972 | _ACEOF | |
12973 | cat confdefs.h >>conftest.$ac_ext | |
12974 | cat >>conftest.$ac_ext <<_ACEOF | |
12975 | /* end confdefs.h. */ | |
12976 | $ac_includes_default | |
12977 | #include <$ac_header> | |
12978 | _ACEOF | |
12979 | rm -f conftest.$ac_objext | |
12980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 12981 | (eval $ac_compile) 2>&5 |
a848cd7e | 12982 | ac_status=$? |
a848cd7e SC |
12983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12984 | (exit $ac_status); } && | |
8a7b1113 | 12985 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
12986 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12987 | (eval $ac_try) 2>&5 | |
12988 | ac_status=$? | |
12989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12990 | (exit $ac_status); }; }; then | |
12991 | ac_header_compiler=yes | |
12992 | else | |
12993 | echo "$as_me: failed program was:" >&5 | |
12994 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12995 | ||
12996 | ac_header_compiler=no | |
12997 | fi | |
8a7b1113 | 12998 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
12999 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13000 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13001 | ||
13002 | # Is the header present? | |
13003 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13004 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13005 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13006 | #line $LINENO "configure" |
a848cd7e SC |
13007 | /* confdefs.h. */ |
13008 | _ACEOF | |
13009 | cat confdefs.h >>conftest.$ac_ext | |
13010 | cat >>conftest.$ac_ext <<_ACEOF | |
13011 | /* end confdefs.h. */ | |
13012 | #include <$ac_header> | |
13013 | _ACEOF | |
13014 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13015 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13016 | ac_status=$? | |
13017 | grep -v '^ *+' conftest.er1 >conftest.err | |
13018 | rm -f conftest.er1 | |
13019 | cat conftest.err >&5 | |
13020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13021 | (exit $ac_status); } >/dev/null; then | |
13022 | if test -s conftest.err; then | |
13023 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
13024 | else |
13025 | ac_cpp_err= | |
13026 | fi | |
13027 | else | |
13028 | ac_cpp_err=yes | |
13029 | fi | |
13030 | if test -z "$ac_cpp_err"; then | |
13031 | ac_header_preproc=yes | |
13032 | else | |
13033 | echo "$as_me: failed program was:" >&5 | |
13034 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13035 | ||
13036 | ac_header_preproc=no | |
13037 | fi | |
13038 | rm -f conftest.err conftest.$ac_ext | |
13039 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13040 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13041 | ||
13042 | # So? What about this header? | |
8a7b1113 VZ |
13043 | case $ac_header_compiler:$ac_header_preproc in |
13044 | yes:no ) | |
a848cd7e SC |
13045 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13046 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
13047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13048 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13049 | ( | |
13050 | cat <<\_ASBOX | |
13051 | ## ------------------------------------ ## | |
13052 | ## Report this to bug-autoconf@gnu.org. ## | |
13053 | ## ------------------------------------ ## | |
13054 | _ASBOX | |
13055 | ) | | |
13056 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 13057 | ;; |
8a7b1113 | 13058 | no:yes ) |
a848cd7e SC |
13059 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13060 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
13061 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13062 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
13063 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13064 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
13065 | ( |
13066 | cat <<\_ASBOX | |
8a7b1113 VZ |
13067 | ## ------------------------------------ ## |
13068 | ## Report this to bug-autoconf@gnu.org. ## | |
13069 | ## ------------------------------------ ## | |
a848cd7e SC |
13070 | _ASBOX |
13071 | ) | | |
13072 | sed "s/^/$as_me: WARNING: /" >&2 | |
13073 | ;; | |
13074 | esac | |
13075 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13077 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13079 | else | |
8a7b1113 | 13080 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
13081 | fi |
13082 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13083 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13084 | ||
13085 | fi | |
13086 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13087 | cat >>confdefs.h <<_ACEOF | |
13088 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13089 | _ACEOF | |
13090 | ||
13091 | fi | |
13092 | ||
13093 | done | |
13094 | ||
13095 | ||
13096 | if test "$ac_cv_header_wchar_h" != "yes"; then | |
13097 | ||
13098 | for ac_header in wcstr.h | |
13099 | do | |
13100 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13101 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13102 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13103 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13104 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13106 | fi | |
13107 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13108 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13109 | else | |
13110 | # Is the header compilable? | |
13111 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13112 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13113 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13114 | #line $LINENO "configure" |
a848cd7e SC |
13115 | /* confdefs.h. */ |
13116 | _ACEOF | |
13117 | cat confdefs.h >>conftest.$ac_ext | |
13118 | cat >>conftest.$ac_ext <<_ACEOF | |
13119 | /* end confdefs.h. */ | |
13120 | $ac_includes_default | |
13121 | #include <$ac_header> | |
13122 | _ACEOF | |
13123 | rm -f conftest.$ac_objext | |
13124 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 13125 | (eval $ac_compile) 2>&5 |
a848cd7e | 13126 | ac_status=$? |
a848cd7e SC |
13127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13128 | (exit $ac_status); } && | |
8a7b1113 | 13129 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
13130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13131 | (eval $ac_try) 2>&5 | |
13132 | ac_status=$? | |
13133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13134 | (exit $ac_status); }; }; then | |
13135 | ac_header_compiler=yes | |
13136 | else | |
13137 | echo "$as_me: failed program was:" >&5 | |
13138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13139 | ||
13140 | ac_header_compiler=no | |
13141 | fi | |
8a7b1113 | 13142 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13143 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13144 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13145 | ||
13146 | # Is the header present? | |
13147 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13148 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13149 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13150 | #line $LINENO "configure" |
a848cd7e SC |
13151 | /* confdefs.h. */ |
13152 | _ACEOF | |
13153 | cat confdefs.h >>conftest.$ac_ext | |
13154 | cat >>conftest.$ac_ext <<_ACEOF | |
13155 | /* end confdefs.h. */ | |
13156 | #include <$ac_header> | |
13157 | _ACEOF | |
13158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13160 | ac_status=$? | |
13161 | grep -v '^ *+' conftest.er1 >conftest.err | |
13162 | rm -f conftest.er1 | |
13163 | cat conftest.err >&5 | |
13164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13165 | (exit $ac_status); } >/dev/null; then | |
13166 | if test -s conftest.err; then | |
13167 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
13168 | else |
13169 | ac_cpp_err= | |
13170 | fi | |
13171 | else | |
13172 | ac_cpp_err=yes | |
13173 | fi | |
13174 | if test -z "$ac_cpp_err"; then | |
13175 | ac_header_preproc=yes | |
13176 | else | |
13177 | echo "$as_me: failed program was:" >&5 | |
13178 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13179 | ||
13180 | ac_header_preproc=no | |
13181 | fi | |
13182 | rm -f conftest.err conftest.$ac_ext | |
13183 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13184 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13185 | ||
13186 | # So? What about this header? | |
8a7b1113 VZ |
13187 | case $ac_header_compiler:$ac_header_preproc in |
13188 | yes:no ) | |
a848cd7e SC |
13189 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13190 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
13191 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13192 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13193 | ( | |
13194 | cat <<\_ASBOX | |
13195 | ## ------------------------------------ ## | |
13196 | ## Report this to bug-autoconf@gnu.org. ## | |
13197 | ## ------------------------------------ ## | |
13198 | _ASBOX | |
13199 | ) | | |
13200 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 13201 | ;; |
8a7b1113 | 13202 | no:yes ) |
a848cd7e SC |
13203 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13204 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
13205 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13206 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
13207 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13208 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
13209 | ( |
13210 | cat <<\_ASBOX | |
8a7b1113 VZ |
13211 | ## ------------------------------------ ## |
13212 | ## Report this to bug-autoconf@gnu.org. ## | |
13213 | ## ------------------------------------ ## | |
a848cd7e SC |
13214 | _ASBOX |
13215 | ) | | |
13216 | sed "s/^/$as_me: WARNING: /" >&2 | |
13217 | ;; | |
13218 | esac | |
13219 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13220 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13222 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13223 | else | |
8a7b1113 | 13224 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
13225 | fi |
13226 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13227 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13228 | ||
13229 | fi | |
13230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13231 | cat >>confdefs.h <<_ACEOF | |
13232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13233 | _ACEOF | |
13234 | ||
13235 | fi | |
13236 | ||
13237 | done | |
13238 | ||
13239 | fi | |
13240 | ||
13241 | ||
13242 | for ac_header in fnmatch.h | |
13243 | do | |
13244 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13245 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13246 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13247 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13248 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13250 | fi | |
13251 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13252 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13253 | else | |
13254 | # Is the header compilable? | |
13255 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13256 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13257 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13258 | #line $LINENO "configure" |
a848cd7e SC |
13259 | /* confdefs.h. */ |
13260 | _ACEOF | |
13261 | cat confdefs.h >>conftest.$ac_ext | |
13262 | cat >>conftest.$ac_ext <<_ACEOF | |
13263 | /* end confdefs.h. */ | |
13264 | $ac_includes_default | |
13265 | #include <$ac_header> | |
13266 | _ACEOF | |
13267 | rm -f conftest.$ac_objext | |
13268 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 13269 | (eval $ac_compile) 2>&5 |
a848cd7e | 13270 | ac_status=$? |
a848cd7e SC |
13271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13272 | (exit $ac_status); } && | |
8a7b1113 | 13273 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
13274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13275 | (eval $ac_try) 2>&5 | |
13276 | ac_status=$? | |
13277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13278 | (exit $ac_status); }; }; then | |
13279 | ac_header_compiler=yes | |
13280 | else | |
13281 | echo "$as_me: failed program was:" >&5 | |
13282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13283 | ||
13284 | ac_header_compiler=no | |
13285 | fi | |
8a7b1113 | 13286 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13287 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13288 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13289 | ||
13290 | # Is the header present? | |
13291 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13292 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13293 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13294 | #line $LINENO "configure" |
a848cd7e SC |
13295 | /* confdefs.h. */ |
13296 | _ACEOF | |
13297 | cat confdefs.h >>conftest.$ac_ext | |
13298 | cat >>conftest.$ac_ext <<_ACEOF | |
13299 | /* end confdefs.h. */ | |
13300 | #include <$ac_header> | |
13301 | _ACEOF | |
13302 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13303 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13304 | ac_status=$? | |
13305 | grep -v '^ *+' conftest.er1 >conftest.err | |
13306 | rm -f conftest.er1 | |
13307 | cat conftest.err >&5 | |
13308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13309 | (exit $ac_status); } >/dev/null; then | |
13310 | if test -s conftest.err; then | |
13311 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
13312 | else |
13313 | ac_cpp_err= | |
13314 | fi | |
13315 | else | |
13316 | ac_cpp_err=yes | |
13317 | fi | |
13318 | if test -z "$ac_cpp_err"; then | |
13319 | ac_header_preproc=yes | |
13320 | else | |
13321 | echo "$as_me: failed program was:" >&5 | |
13322 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13323 | ||
13324 | ac_header_preproc=no | |
13325 | fi | |
13326 | rm -f conftest.err conftest.$ac_ext | |
13327 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13328 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13329 | ||
13330 | # So? What about this header? | |
8a7b1113 VZ |
13331 | case $ac_header_compiler:$ac_header_preproc in |
13332 | yes:no ) | |
a848cd7e SC |
13333 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13334 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
13335 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13336 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13337 | ( | |
13338 | cat <<\_ASBOX | |
13339 | ## ------------------------------------ ## | |
13340 | ## Report this to bug-autoconf@gnu.org. ## | |
13341 | ## ------------------------------------ ## | |
13342 | _ASBOX | |
13343 | ) | | |
13344 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 13345 | ;; |
8a7b1113 | 13346 | no:yes ) |
a848cd7e SC |
13347 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13348 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
13349 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13350 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
13351 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13352 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
13353 | ( |
13354 | cat <<\_ASBOX | |
8a7b1113 VZ |
13355 | ## ------------------------------------ ## |
13356 | ## Report this to bug-autoconf@gnu.org. ## | |
13357 | ## ------------------------------------ ## | |
a848cd7e SC |
13358 | _ASBOX |
13359 | ) | | |
13360 | sed "s/^/$as_me: WARNING: /" >&2 | |
13361 | ;; | |
13362 | esac | |
13363 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13364 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13365 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13366 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13367 | else | |
8a7b1113 | 13368 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
13369 | fi |
13370 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13371 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13372 | ||
13373 | fi | |
13374 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13375 | cat >>confdefs.h <<_ACEOF | |
13376 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13377 | _ACEOF | |
13378 | ||
13379 | fi | |
13380 | ||
13381 | done | |
13382 | ||
13383 | ||
13384 | if test "x$ac_cv_header_fnmatch_h" = "xyes"; then | |
13385 | ||
13386 | for ac_func in fnmatch | |
13387 | do | |
13388 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
13389 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13390 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13391 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13393 | else | |
13394 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13395 | #line $LINENO "configure" |
a848cd7e SC |
13396 | /* confdefs.h. */ |
13397 | _ACEOF | |
13398 | cat confdefs.h >>conftest.$ac_ext | |
13399 | cat >>conftest.$ac_ext <<_ACEOF | |
13400 | /* end confdefs.h. */ | |
a848cd7e SC |
13401 | /* System header to define __stub macros and hopefully few prototypes, |
13402 | which can conflict with char $ac_func (); below. | |
13403 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13404 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
13405 | #ifdef __STDC__ |
13406 | # include <limits.h> | |
13407 | #else | |
13408 | # include <assert.h> | |
13409 | #endif | |
a848cd7e SC |
13410 | /* Override any gcc2 internal prototype to avoid an error. */ |
13411 | #ifdef __cplusplus | |
13412 | extern "C" | |
13413 | { | |
13414 | #endif | |
13415 | /* We use char because int might match the return type of a gcc2 | |
13416 | builtin and then its argument prototype would still apply. */ | |
13417 | char $ac_func (); | |
13418 | /* The GNU C library defines this for functions which it implements | |
13419 | to always fail with ENOSYS. Some functions are actually named | |
13420 | something starting with __ and the normal name is an alias. */ | |
13421 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13422 | choke me | |
13423 | #else | |
13424 | char (*f) () = $ac_func; | |
13425 | #endif | |
13426 | #ifdef __cplusplus | |
13427 | } | |
13428 | #endif | |
13429 | ||
13430 | int | |
13431 | main () | |
13432 | { | |
13433 | return f != $ac_func; | |
13434 | ; | |
13435 | return 0; | |
13436 | } | |
13437 | _ACEOF | |
13438 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13439 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 13440 | (eval $ac_link) 2>&5 |
a848cd7e | 13441 | ac_status=$? |
a848cd7e SC |
13442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13443 | (exit $ac_status); } && | |
8a7b1113 | 13444 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
13445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13446 | (eval $ac_try) 2>&5 | |
13447 | ac_status=$? | |
13448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13449 | (exit $ac_status); }; }; then | |
13450 | eval "$as_ac_var=yes" | |
13451 | else | |
13452 | echo "$as_me: failed program was:" >&5 | |
13453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13454 | ||
13455 | eval "$as_ac_var=no" | |
13456 | fi | |
8a7b1113 | 13457 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
13458 | fi |
13459 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13460 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13461 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13462 | cat >>confdefs.h <<_ACEOF | |
13463 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13464 | _ACEOF | |
13465 | ||
13466 | fi | |
13467 | done | |
13468 | ||
13469 | fi | |
13470 | ||
13471 | ||
13472 | for ac_header in langinfo.h | |
13473 | do | |
13474 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13475 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13476 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13477 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13478 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13479 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13480 | fi | |
13481 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13482 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13483 | else | |
13484 | # Is the header compilable? | |
13485 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13486 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13487 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13488 | #line $LINENO "configure" |
a848cd7e SC |
13489 | /* confdefs.h. */ |
13490 | _ACEOF | |
13491 | cat confdefs.h >>conftest.$ac_ext | |
13492 | cat >>conftest.$ac_ext <<_ACEOF | |
13493 | /* end confdefs.h. */ | |
13494 | $ac_includes_default | |
13495 | #include <$ac_header> | |
13496 | _ACEOF | |
13497 | rm -f conftest.$ac_objext | |
13498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 13499 | (eval $ac_compile) 2>&5 |
a848cd7e | 13500 | ac_status=$? |
a848cd7e SC |
13501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13502 | (exit $ac_status); } && | |
8a7b1113 | 13503 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
13504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13505 | (eval $ac_try) 2>&5 | |
13506 | ac_status=$? | |
13507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13508 | (exit $ac_status); }; }; then | |
13509 | ac_header_compiler=yes | |
13510 | else | |
13511 | echo "$as_me: failed program was:" >&5 | |
13512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13513 | ||
13514 | ac_header_compiler=no | |
13515 | fi | |
8a7b1113 | 13516 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13517 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13518 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13519 | ||
13520 | # Is the header present? | |
13521 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13522 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13523 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13524 | #line $LINENO "configure" |
a848cd7e SC |
13525 | /* confdefs.h. */ |
13526 | _ACEOF | |
13527 | cat confdefs.h >>conftest.$ac_ext | |
13528 | cat >>conftest.$ac_ext <<_ACEOF | |
13529 | /* end confdefs.h. */ | |
13530 | #include <$ac_header> | |
13531 | _ACEOF | |
13532 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13533 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13534 | ac_status=$? | |
13535 | grep -v '^ *+' conftest.er1 >conftest.err | |
13536 | rm -f conftest.er1 | |
13537 | cat conftest.err >&5 | |
13538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13539 | (exit $ac_status); } >/dev/null; then | |
13540 | if test -s conftest.err; then | |
13541 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
13542 | else |
13543 | ac_cpp_err= | |
13544 | fi | |
13545 | else | |
13546 | ac_cpp_err=yes | |
13547 | fi | |
13548 | if test -z "$ac_cpp_err"; then | |
13549 | ac_header_preproc=yes | |
13550 | else | |
13551 | echo "$as_me: failed program was:" >&5 | |
13552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13553 | ||
13554 | ac_header_preproc=no | |
13555 | fi | |
13556 | rm -f conftest.err conftest.$ac_ext | |
13557 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13558 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13559 | ||
13560 | # So? What about this header? | |
8a7b1113 VZ |
13561 | case $ac_header_compiler:$ac_header_preproc in |
13562 | yes:no ) | |
a848cd7e SC |
13563 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13564 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
13565 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13566 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13567 | ( | |
13568 | cat <<\_ASBOX | |
13569 | ## ------------------------------------ ## | |
13570 | ## Report this to bug-autoconf@gnu.org. ## | |
13571 | ## ------------------------------------ ## | |
13572 | _ASBOX | |
13573 | ) | | |
13574 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 13575 | ;; |
8a7b1113 | 13576 | no:yes ) |
a848cd7e SC |
13577 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13578 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
13579 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13580 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
13581 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13582 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
13583 | ( |
13584 | cat <<\_ASBOX | |
8a7b1113 VZ |
13585 | ## ------------------------------------ ## |
13586 | ## Report this to bug-autoconf@gnu.org. ## | |
13587 | ## ------------------------------------ ## | |
a848cd7e SC |
13588 | _ASBOX |
13589 | ) | | |
13590 | sed "s/^/$as_me: WARNING: /" >&2 | |
13591 | ;; | |
13592 | esac | |
13593 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13594 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13595 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13597 | else | |
8a7b1113 | 13598 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
13599 | fi |
13600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13602 | ||
13603 | fi | |
13604 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13605 | cat >>confdefs.h <<_ACEOF | |
13606 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13607 | _ACEOF | |
13608 | ||
13609 | fi | |
13610 | ||
13611 | done | |
13612 | ||
13613 | ||
13614 | case "${host}" in | |
13615 | *-pc-os2_emx | *-pc-os2-emx ) | |
13616 | if test $ac_cv_header_langinfo_h = "yes"; then | |
13617 | LIBS="$LIBS -lintl" | |
13618 | fi | |
13619 | ;; | |
13620 | esac | |
13621 | ||
13622 | if test "$wxUSE_GUI" = "yes"; then | |
13623 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then | |
13624 | ||
13625 | for ac_header in X11/Xlib.h | |
13626 | do | |
13627 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13628 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13629 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13630 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13631 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13633 | fi | |
13634 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13635 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13636 | else | |
13637 | # Is the header compilable? | |
13638 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13639 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13640 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13641 | #line $LINENO "configure" |
a848cd7e SC |
13642 | /* confdefs.h. */ |
13643 | _ACEOF | |
13644 | cat confdefs.h >>conftest.$ac_ext | |
13645 | cat >>conftest.$ac_ext <<_ACEOF | |
13646 | /* end confdefs.h. */ | |
13647 | $ac_includes_default | |
13648 | #include <$ac_header> | |
13649 | _ACEOF | |
13650 | rm -f conftest.$ac_objext | |
13651 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 13652 | (eval $ac_compile) 2>&5 |
a848cd7e | 13653 | ac_status=$? |
a848cd7e SC |
13654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13655 | (exit $ac_status); } && | |
8a7b1113 | 13656 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
13657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13658 | (eval $ac_try) 2>&5 | |
13659 | ac_status=$? | |
13660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13661 | (exit $ac_status); }; }; then | |
13662 | ac_header_compiler=yes | |
13663 | else | |
13664 | echo "$as_me: failed program was:" >&5 | |
13665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13666 | ||
13667 | ac_header_compiler=no | |
13668 | fi | |
8a7b1113 | 13669 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13670 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
13671 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13672 | ||
13673 | # Is the header present? | |
13674 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13675 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13676 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13677 | #line $LINENO "configure" |
a848cd7e SC |
13678 | /* confdefs.h. */ |
13679 | _ACEOF | |
13680 | cat confdefs.h >>conftest.$ac_ext | |
13681 | cat >>conftest.$ac_ext <<_ACEOF | |
13682 | /* end confdefs.h. */ | |
13683 | #include <$ac_header> | |
13684 | _ACEOF | |
13685 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13686 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13687 | ac_status=$? | |
13688 | grep -v '^ *+' conftest.er1 >conftest.err | |
13689 | rm -f conftest.er1 | |
13690 | cat conftest.err >&5 | |
13691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13692 | (exit $ac_status); } >/dev/null; then | |
13693 | if test -s conftest.err; then | |
13694 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
13695 | else |
13696 | ac_cpp_err= | |
13697 | fi | |
13698 | else | |
13699 | ac_cpp_err=yes | |
13700 | fi | |
13701 | if test -z "$ac_cpp_err"; then | |
13702 | ac_header_preproc=yes | |
13703 | else | |
13704 | echo "$as_me: failed program was:" >&5 | |
13705 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13706 | ||
13707 | ac_header_preproc=no | |
13708 | fi | |
13709 | rm -f conftest.err conftest.$ac_ext | |
13710 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13711 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13712 | ||
13713 | # So? What about this header? | |
8a7b1113 VZ |
13714 | case $ac_header_compiler:$ac_header_preproc in |
13715 | yes:no ) | |
a848cd7e SC |
13716 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
13717 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
13718 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13719 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13720 | ( | |
13721 | cat <<\_ASBOX | |
13722 | ## ------------------------------------ ## | |
13723 | ## Report this to bug-autoconf@gnu.org. ## | |
13724 | ## ------------------------------------ ## | |
13725 | _ASBOX | |
13726 | ) | | |
13727 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 13728 | ;; |
8a7b1113 | 13729 | no:yes ) |
a848cd7e SC |
13730 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
13731 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
13732 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
13733 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
13734 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
13735 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
13736 | ( |
13737 | cat <<\_ASBOX | |
8a7b1113 VZ |
13738 | ## ------------------------------------ ## |
13739 | ## Report this to bug-autoconf@gnu.org. ## | |
13740 | ## ------------------------------------ ## | |
a848cd7e SC |
13741 | _ASBOX |
13742 | ) | | |
13743 | sed "s/^/$as_me: WARNING: /" >&2 | |
13744 | ;; | |
13745 | esac | |
13746 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13747 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13748 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13750 | else | |
8a7b1113 | 13751 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
13752 | fi |
13753 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13754 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13755 | ||
13756 | fi | |
13757 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13758 | cat >>confdefs.h <<_ACEOF | |
13759 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13760 | _ACEOF | |
13761 | ||
13762 | fi | |
13763 | ||
13764 | done | |
13765 | ||
13766 | ||
13767 | for ac_header in X11/XKBlib.h | |
13768 | do | |
13769 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13770 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13771 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13772 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13774 | else | |
13775 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13776 | #line $LINENO "configure" |
a848cd7e SC |
13777 | /* confdefs.h. */ |
13778 | _ACEOF | |
13779 | cat confdefs.h >>conftest.$ac_ext | |
13780 | cat >>conftest.$ac_ext <<_ACEOF | |
13781 | /* end confdefs.h. */ | |
13782 | ||
13783 | #if HAVE_X11_XLIB_H | |
13784 | #include <X11/Xlib.h> | |
13785 | #endif | |
13786 | ||
13787 | ||
13788 | #include <$ac_header> | |
13789 | _ACEOF | |
13790 | rm -f conftest.$ac_objext | |
13791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 13792 | (eval $ac_compile) 2>&5 |
a848cd7e | 13793 | ac_status=$? |
a848cd7e SC |
13794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13795 | (exit $ac_status); } && | |
8a7b1113 | 13796 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
13797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13798 | (eval $ac_try) 2>&5 | |
13799 | ac_status=$? | |
13800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13801 | (exit $ac_status); }; }; then | |
13802 | eval "$as_ac_Header=yes" | |
13803 | else | |
13804 | echo "$as_me: failed program was:" >&5 | |
13805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13806 | ||
13807 | eval "$as_ac_Header=no" | |
13808 | fi | |
8a7b1113 | 13809 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13810 | fi |
13811 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13812 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13813 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
13814 | cat >>confdefs.h <<_ACEOF | |
13815 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
13816 | _ACEOF | |
13817 | ||
13818 | fi | |
13819 | ||
13820 | done | |
13821 | ||
13822 | fi | |
13823 | fi | |
13824 | ||
13825 | ||
13826 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
13827 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
13828 | if test "${ac_cv_c_const+set}" = set; then | |
13829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13830 | else | |
13831 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13832 | #line $LINENO "configure" |
a848cd7e SC |
13833 | /* confdefs.h. */ |
13834 | _ACEOF | |
13835 | cat confdefs.h >>conftest.$ac_ext | |
13836 | cat >>conftest.$ac_ext <<_ACEOF | |
13837 | /* end confdefs.h. */ | |
13838 | ||
13839 | int | |
13840 | main () | |
13841 | { | |
13842 | /* FIXME: Include the comments suggested by Paul. */ | |
13843 | #ifndef __cplusplus | |
13844 | /* Ultrix mips cc rejects this. */ | |
13845 | typedef int charset[2]; | |
13846 | const charset x; | |
13847 | /* SunOS 4.1.1 cc rejects this. */ | |
13848 | char const *const *ccp; | |
13849 | char **p; | |
13850 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
13851 | struct point {int x, y;}; | |
13852 | static struct point const zero = {0,0}; | |
13853 | /* AIX XL C 1.02.0.0 rejects this. | |
13854 | It does not let you subtract one const X* pointer from another in | |
13855 | an arm of an if-expression whose if-part is not a constant | |
13856 | expression */ | |
13857 | const char *g = "string"; | |
13858 | ccp = &g + (g ? g-g : 0); | |
13859 | /* HPUX 7.0 cc rejects these. */ | |
13860 | ++ccp; | |
13861 | p = (char**) ccp; | |
13862 | ccp = (char const *const *) p; | |
13863 | { /* SCO 3.2v4 cc rejects this. */ | |
13864 | char *t; | |
13865 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
13866 | ||
13867 | *t++ = 0; | |
13868 | } | |
13869 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
13870 | int x[] = {25, 17}; | |
13871 | const int *foo = &x[0]; | |
13872 | ++foo; | |
13873 | } | |
13874 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
13875 | typedef const int *iptr; | |
13876 | iptr p = 0; | |
13877 | ++p; | |
13878 | } | |
13879 | { /* AIX XL C 1.02.0.0 rejects this saying | |
13880 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
13881 | struct s { int j; const int *ap[3]; }; | |
13882 | struct s *b; b->j = 5; | |
13883 | } | |
13884 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
13885 | const int foo = 10; | |
13886 | } | |
13887 | #endif | |
13888 | ||
13889 | ; | |
13890 | return 0; | |
13891 | } | |
13892 | _ACEOF | |
13893 | rm -f conftest.$ac_objext | |
13894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 13895 | (eval $ac_compile) 2>&5 |
a848cd7e | 13896 | ac_status=$? |
a848cd7e SC |
13897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13898 | (exit $ac_status); } && | |
8a7b1113 | 13899 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
13900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13901 | (eval $ac_try) 2>&5 | |
13902 | ac_status=$? | |
13903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13904 | (exit $ac_status); }; }; then | |
13905 | ac_cv_c_const=yes | |
13906 | else | |
13907 | echo "$as_me: failed program was:" >&5 | |
13908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13909 | ||
13910 | ac_cv_c_const=no | |
13911 | fi | |
8a7b1113 | 13912 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13913 | fi |
13914 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | |
13915 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
13916 | if test $ac_cv_c_const = no; then | |
13917 | ||
13918 | cat >>confdefs.h <<\_ACEOF | |
13919 | #define const | |
13920 | _ACEOF | |
13921 | ||
13922 | fi | |
13923 | ||
13924 | echo "$as_me:$LINENO: checking for inline" >&5 | |
13925 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
13926 | if test "${ac_cv_c_inline+set}" = set; then | |
13927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13928 | else | |
13929 | ac_cv_c_inline=no | |
13930 | for ac_kw in inline __inline__ __inline; do | |
13931 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13932 | #line $LINENO "configure" |
a848cd7e SC |
13933 | /* confdefs.h. */ |
13934 | _ACEOF | |
13935 | cat confdefs.h >>conftest.$ac_ext | |
13936 | cat >>conftest.$ac_ext <<_ACEOF | |
13937 | /* end confdefs.h. */ | |
13938 | #ifndef __cplusplus | |
13939 | typedef int foo_t; | |
13940 | static $ac_kw foo_t static_foo () {return 0; } | |
13941 | $ac_kw foo_t foo () {return 0; } | |
13942 | #endif | |
13943 | ||
13944 | _ACEOF | |
13945 | rm -f conftest.$ac_objext | |
13946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 13947 | (eval $ac_compile) 2>&5 |
a848cd7e | 13948 | ac_status=$? |
a848cd7e SC |
13949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13950 | (exit $ac_status); } && | |
8a7b1113 | 13951 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
13952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13953 | (eval $ac_try) 2>&5 | |
13954 | ac_status=$? | |
13955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13956 | (exit $ac_status); }; }; then | |
13957 | ac_cv_c_inline=$ac_kw; break | |
13958 | else | |
13959 | echo "$as_me: failed program was:" >&5 | |
13960 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13961 | ||
13962 | fi | |
8a7b1113 | 13963 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
13964 | done |
13965 | ||
13966 | fi | |
13967 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
13968 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
a848cd7e SC |
13969 | case $ac_cv_c_inline in |
13970 | inline | yes) ;; | |
8a7b1113 VZ |
13971 | no) |
13972 | cat >>confdefs.h <<\_ACEOF | |
13973 | #define inline | |
a848cd7e | 13974 | _ACEOF |
8a7b1113 VZ |
13975 | ;; |
13976 | *) cat >>confdefs.h <<_ACEOF | |
13977 | #define inline $ac_cv_c_inline | |
13978 | _ACEOF | |
13979 | ;; | |
a848cd7e SC |
13980 | esac |
13981 | ||
13982 | ||
13983 | echo "$as_me:$LINENO: checking for char" >&5 | |
13984 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
13985 | if test "${ac_cv_type_char+set}" = set; then | |
13986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13987 | else | |
13988 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 13989 | #line $LINENO "configure" |
a848cd7e SC |
13990 | /* confdefs.h. */ |
13991 | _ACEOF | |
13992 | cat confdefs.h >>conftest.$ac_ext | |
13993 | cat >>conftest.$ac_ext <<_ACEOF | |
13994 | /* end confdefs.h. */ | |
13995 | $ac_includes_default | |
13996 | int | |
13997 | main () | |
13998 | { | |
13999 | if ((char *) 0) | |
14000 | return 0; | |
14001 | if (sizeof (char)) | |
14002 | return 0; | |
14003 | ; | |
14004 | return 0; | |
14005 | } | |
14006 | _ACEOF | |
14007 | rm -f conftest.$ac_objext | |
14008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14009 | (eval $ac_compile) 2>&5 |
a848cd7e | 14010 | ac_status=$? |
a848cd7e SC |
14011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14012 | (exit $ac_status); } && | |
8a7b1113 | 14013 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14015 | (eval $ac_try) 2>&5 | |
14016 | ac_status=$? | |
14017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14018 | (exit $ac_status); }; }; then | |
14019 | ac_cv_type_char=yes | |
14020 | else | |
14021 | echo "$as_me: failed program was:" >&5 | |
14022 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14023 | ||
14024 | ac_cv_type_char=no | |
14025 | fi | |
8a7b1113 | 14026 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14027 | fi |
14028 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
14029 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
14030 | ||
14031 | echo "$as_me:$LINENO: checking size of char" >&5 | |
14032 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
14033 | if test "${ac_cv_sizeof_char+set}" = set; then | |
14034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14035 | else | |
14036 | if test "$ac_cv_type_char" = yes; then | |
14037 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14038 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14039 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14040 | # This bug is HP SR number 8606223364. | |
14041 | if test "$cross_compiling" = yes; then | |
14042 | # Depending upon the size, compute the lo and hi bounds. | |
14043 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14044 | #line $LINENO "configure" |
a848cd7e SC |
14045 | /* confdefs.h. */ |
14046 | _ACEOF | |
14047 | cat confdefs.h >>conftest.$ac_ext | |
14048 | cat >>conftest.$ac_ext <<_ACEOF | |
14049 | /* end confdefs.h. */ | |
14050 | $ac_includes_default | |
14051 | int | |
14052 | main () | |
14053 | { | |
14054 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
14055 | test_array [0] = 0 | |
14056 | ||
14057 | ; | |
14058 | return 0; | |
14059 | } | |
14060 | _ACEOF | |
14061 | rm -f conftest.$ac_objext | |
14062 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14063 | (eval $ac_compile) 2>&5 |
a848cd7e | 14064 | ac_status=$? |
a848cd7e SC |
14065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14066 | (exit $ac_status); } && | |
8a7b1113 | 14067 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14069 | (eval $ac_try) 2>&5 | |
14070 | ac_status=$? | |
14071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14072 | (exit $ac_status); }; }; then | |
14073 | ac_lo=0 ac_mid=0 | |
14074 | while :; do | |
14075 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14076 | #line $LINENO "configure" |
a848cd7e SC |
14077 | /* confdefs.h. */ |
14078 | _ACEOF | |
14079 | cat confdefs.h >>conftest.$ac_ext | |
14080 | cat >>conftest.$ac_ext <<_ACEOF | |
14081 | /* end confdefs.h. */ | |
14082 | $ac_includes_default | |
14083 | int | |
14084 | main () | |
14085 | { | |
14086 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14087 | test_array [0] = 0 | |
14088 | ||
14089 | ; | |
14090 | return 0; | |
14091 | } | |
14092 | _ACEOF | |
14093 | rm -f conftest.$ac_objext | |
14094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14095 | (eval $ac_compile) 2>&5 |
a848cd7e | 14096 | ac_status=$? |
a848cd7e SC |
14097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14098 | (exit $ac_status); } && | |
8a7b1113 | 14099 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14101 | (eval $ac_try) 2>&5 | |
14102 | ac_status=$? | |
14103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14104 | (exit $ac_status); }; }; then | |
14105 | ac_hi=$ac_mid; break | |
14106 | else | |
14107 | echo "$as_me: failed program was:" >&5 | |
14108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14109 | ||
14110 | ac_lo=`expr $ac_mid + 1` | |
8a7b1113 VZ |
14111 | if test $ac_lo -le $ac_mid; then |
14112 | ac_lo= ac_hi= | |
14113 | break | |
14114 | fi | |
14115 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14116 | fi |
8a7b1113 | 14117 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14118 | done |
14119 | else | |
14120 | echo "$as_me: failed program was:" >&5 | |
14121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14122 | ||
14123 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14124 | #line $LINENO "configure" |
a848cd7e SC |
14125 | /* confdefs.h. */ |
14126 | _ACEOF | |
14127 | cat confdefs.h >>conftest.$ac_ext | |
14128 | cat >>conftest.$ac_ext <<_ACEOF | |
14129 | /* end confdefs.h. */ | |
14130 | $ac_includes_default | |
14131 | int | |
14132 | main () | |
14133 | { | |
14134 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
14135 | test_array [0] = 0 | |
14136 | ||
14137 | ; | |
14138 | return 0; | |
14139 | } | |
14140 | _ACEOF | |
14141 | rm -f conftest.$ac_objext | |
14142 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14143 | (eval $ac_compile) 2>&5 |
a848cd7e | 14144 | ac_status=$? |
a848cd7e SC |
14145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14146 | (exit $ac_status); } && | |
8a7b1113 | 14147 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14149 | (eval $ac_try) 2>&5 | |
14150 | ac_status=$? | |
14151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14152 | (exit $ac_status); }; }; then | |
14153 | ac_hi=-1 ac_mid=-1 | |
14154 | while :; do | |
14155 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14156 | #line $LINENO "configure" |
a848cd7e SC |
14157 | /* confdefs.h. */ |
14158 | _ACEOF | |
14159 | cat confdefs.h >>conftest.$ac_ext | |
14160 | cat >>conftest.$ac_ext <<_ACEOF | |
14161 | /* end confdefs.h. */ | |
14162 | $ac_includes_default | |
14163 | int | |
14164 | main () | |
14165 | { | |
14166 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
14167 | test_array [0] = 0 | |
14168 | ||
14169 | ; | |
14170 | return 0; | |
14171 | } | |
14172 | _ACEOF | |
14173 | rm -f conftest.$ac_objext | |
14174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14175 | (eval $ac_compile) 2>&5 |
a848cd7e | 14176 | ac_status=$? |
a848cd7e SC |
14177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14178 | (exit $ac_status); } && | |
8a7b1113 | 14179 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14181 | (eval $ac_try) 2>&5 | |
14182 | ac_status=$? | |
14183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14184 | (exit $ac_status); }; }; then | |
14185 | ac_lo=$ac_mid; break | |
14186 | else | |
14187 | echo "$as_me: failed program was:" >&5 | |
14188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14189 | ||
14190 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8a7b1113 VZ |
14191 | if test $ac_mid -le $ac_hi; then |
14192 | ac_lo= ac_hi= | |
14193 | break | |
14194 | fi | |
14195 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14196 | fi |
8a7b1113 | 14197 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14198 | done |
14199 | else | |
14200 | echo "$as_me: failed program was:" >&5 | |
14201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14202 | ||
14203 | ac_lo= ac_hi= | |
14204 | fi | |
8a7b1113 | 14205 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14206 | fi |
8a7b1113 | 14207 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14208 | # Binary search between lo and hi bounds. |
14209 | while test "x$ac_lo" != "x$ac_hi"; do | |
14210 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14211 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14212 | #line $LINENO "configure" |
a848cd7e SC |
14213 | /* confdefs.h. */ |
14214 | _ACEOF | |
14215 | cat confdefs.h >>conftest.$ac_ext | |
14216 | cat >>conftest.$ac_ext <<_ACEOF | |
14217 | /* end confdefs.h. */ | |
14218 | $ac_includes_default | |
14219 | int | |
14220 | main () | |
14221 | { | |
14222 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
14223 | test_array [0] = 0 | |
14224 | ||
14225 | ; | |
14226 | return 0; | |
14227 | } | |
14228 | _ACEOF | |
14229 | rm -f conftest.$ac_objext | |
14230 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14231 | (eval $ac_compile) 2>&5 |
a848cd7e | 14232 | ac_status=$? |
a848cd7e SC |
14233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14234 | (exit $ac_status); } && | |
8a7b1113 | 14235 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14237 | (eval $ac_try) 2>&5 | |
14238 | ac_status=$? | |
14239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14240 | (exit $ac_status); }; }; then | |
14241 | ac_hi=$ac_mid | |
14242 | else | |
14243 | echo "$as_me: failed program was:" >&5 | |
14244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14245 | ||
14246 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14247 | fi | |
8a7b1113 | 14248 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14249 | done |
14250 | case $ac_lo in | |
14251 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
14252 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14253 | See \`config.log' for more details." >&5 | |
14254 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14255 | See \`config.log' for more details." >&2;} | |
14256 | { (exit 1); exit 1; }; } ;; | |
14257 | esac | |
14258 | else | |
14259 | if test "$cross_compiling" = yes; then | |
14260 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14261 | See \`config.log' for more details." >&5 | |
14262 | echo "$as_me: error: cannot run test program while cross compiling | |
14263 | See \`config.log' for more details." >&2;} | |
14264 | { (exit 1); exit 1; }; } | |
14265 | else | |
14266 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14267 | #line $LINENO "configure" |
a848cd7e SC |
14268 | /* confdefs.h. */ |
14269 | _ACEOF | |
14270 | cat confdefs.h >>conftest.$ac_ext | |
14271 | cat >>conftest.$ac_ext <<_ACEOF | |
14272 | /* end confdefs.h. */ | |
14273 | $ac_includes_default | |
14274 | long longval () { return (long) (sizeof (char)); } | |
14275 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
14276 | #include <stdio.h> | |
14277 | #include <stdlib.h> | |
14278 | int | |
14279 | main () | |
14280 | { | |
14281 | ||
14282 | FILE *f = fopen ("conftest.val", "w"); | |
14283 | if (! f) | |
14284 | exit (1); | |
14285 | if (((long) (sizeof (char))) < 0) | |
14286 | { | |
14287 | long i = longval (); | |
14288 | if (i != ((long) (sizeof (char)))) | |
14289 | exit (1); | |
14290 | fprintf (f, "%ld\n", i); | |
14291 | } | |
14292 | else | |
14293 | { | |
14294 | unsigned long i = ulongval (); | |
14295 | if (i != ((long) (sizeof (char)))) | |
14296 | exit (1); | |
14297 | fprintf (f, "%lu\n", i); | |
14298 | } | |
14299 | exit (ferror (f) || fclose (f) != 0); | |
14300 | ||
14301 | ; | |
14302 | return 0; | |
14303 | } | |
14304 | _ACEOF | |
14305 | rm -f conftest$ac_exeext | |
14306 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14307 | (eval $ac_link) 2>&5 | |
14308 | ac_status=$? | |
14309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14310 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14312 | (eval $ac_try) 2>&5 | |
14313 | ac_status=$? | |
14314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14315 | (exit $ac_status); }; }; then | |
14316 | ac_cv_sizeof_char=`cat conftest.val` | |
14317 | else | |
14318 | echo "$as_me: program exited with status $ac_status" >&5 | |
14319 | echo "$as_me: failed program was:" >&5 | |
14320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14321 | ||
14322 | ( exit $ac_status ) | |
14323 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
14324 | See \`config.log' for more details." >&5 | |
14325 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
14326 | See \`config.log' for more details." >&2;} | |
14327 | { (exit 1); exit 1; }; } | |
14328 | fi | |
8a7b1113 | 14329 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14330 | fi |
14331 | fi | |
14332 | rm -f conftest.val | |
14333 | else | |
14334 | ac_cv_sizeof_char=0 | |
14335 | fi | |
14336 | fi | |
14337 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
14338 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
14339 | cat >>confdefs.h <<_ACEOF | |
14340 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
14341 | _ACEOF | |
14342 | ||
14343 | ||
14344 | echo "$as_me:$LINENO: checking for short" >&5 | |
14345 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14346 | if test "${ac_cv_type_short+set}" = set; then | |
14347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14348 | else | |
14349 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14350 | #line $LINENO "configure" |
a848cd7e SC |
14351 | /* confdefs.h. */ |
14352 | _ACEOF | |
14353 | cat confdefs.h >>conftest.$ac_ext | |
14354 | cat >>conftest.$ac_ext <<_ACEOF | |
14355 | /* end confdefs.h. */ | |
14356 | $ac_includes_default | |
14357 | int | |
14358 | main () | |
14359 | { | |
14360 | if ((short *) 0) | |
14361 | return 0; | |
14362 | if (sizeof (short)) | |
14363 | return 0; | |
14364 | ; | |
14365 | return 0; | |
14366 | } | |
14367 | _ACEOF | |
14368 | rm -f conftest.$ac_objext | |
14369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14370 | (eval $ac_compile) 2>&5 |
a848cd7e | 14371 | ac_status=$? |
a848cd7e SC |
14372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14373 | (exit $ac_status); } && | |
8a7b1113 | 14374 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14376 | (eval $ac_try) 2>&5 | |
14377 | ac_status=$? | |
14378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14379 | (exit $ac_status); }; }; then | |
14380 | ac_cv_type_short=yes | |
14381 | else | |
14382 | echo "$as_me: failed program was:" >&5 | |
14383 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14384 | ||
14385 | ac_cv_type_short=no | |
14386 | fi | |
8a7b1113 | 14387 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14388 | fi |
14389 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14390 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14391 | ||
14392 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14393 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14394 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14396 | else | |
14397 | if test "$ac_cv_type_short" = yes; then | |
14398 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14399 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14400 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14401 | # This bug is HP SR number 8606223364. | |
14402 | if test "$cross_compiling" = yes; then | |
14403 | # Depending upon the size, compute the lo and hi bounds. | |
14404 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14405 | #line $LINENO "configure" |
a848cd7e SC |
14406 | /* confdefs.h. */ |
14407 | _ACEOF | |
14408 | cat confdefs.h >>conftest.$ac_ext | |
14409 | cat >>conftest.$ac_ext <<_ACEOF | |
14410 | /* end confdefs.h. */ | |
14411 | $ac_includes_default | |
14412 | int | |
14413 | main () | |
14414 | { | |
14415 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14416 | test_array [0] = 0 | |
14417 | ||
14418 | ; | |
14419 | return 0; | |
14420 | } | |
14421 | _ACEOF | |
14422 | rm -f conftest.$ac_objext | |
14423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14424 | (eval $ac_compile) 2>&5 |
a848cd7e | 14425 | ac_status=$? |
a848cd7e SC |
14426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14427 | (exit $ac_status); } && | |
8a7b1113 | 14428 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14430 | (eval $ac_try) 2>&5 | |
14431 | ac_status=$? | |
14432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14433 | (exit $ac_status); }; }; then | |
14434 | ac_lo=0 ac_mid=0 | |
14435 | while :; do | |
14436 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14437 | #line $LINENO "configure" |
a848cd7e SC |
14438 | /* confdefs.h. */ |
14439 | _ACEOF | |
14440 | cat confdefs.h >>conftest.$ac_ext | |
14441 | cat >>conftest.$ac_ext <<_ACEOF | |
14442 | /* end confdefs.h. */ | |
14443 | $ac_includes_default | |
14444 | int | |
14445 | main () | |
14446 | { | |
14447 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14448 | test_array [0] = 0 | |
14449 | ||
14450 | ; | |
14451 | return 0; | |
14452 | } | |
14453 | _ACEOF | |
14454 | rm -f conftest.$ac_objext | |
14455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14456 | (eval $ac_compile) 2>&5 |
a848cd7e | 14457 | ac_status=$? |
a848cd7e SC |
14458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14459 | (exit $ac_status); } && | |
8a7b1113 | 14460 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14462 | (eval $ac_try) 2>&5 | |
14463 | ac_status=$? | |
14464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14465 | (exit $ac_status); }; }; then | |
14466 | ac_hi=$ac_mid; break | |
14467 | else | |
14468 | echo "$as_me: failed program was:" >&5 | |
14469 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14470 | ||
14471 | ac_lo=`expr $ac_mid + 1` | |
8a7b1113 VZ |
14472 | if test $ac_lo -le $ac_mid; then |
14473 | ac_lo= ac_hi= | |
14474 | break | |
14475 | fi | |
14476 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14477 | fi |
8a7b1113 | 14478 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14479 | done |
14480 | else | |
14481 | echo "$as_me: failed program was:" >&5 | |
14482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14483 | ||
14484 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14485 | #line $LINENO "configure" |
a848cd7e SC |
14486 | /* confdefs.h. */ |
14487 | _ACEOF | |
14488 | cat confdefs.h >>conftest.$ac_ext | |
14489 | cat >>conftest.$ac_ext <<_ACEOF | |
14490 | /* end confdefs.h. */ | |
14491 | $ac_includes_default | |
14492 | int | |
14493 | main () | |
14494 | { | |
14495 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
14496 | test_array [0] = 0 | |
14497 | ||
14498 | ; | |
14499 | return 0; | |
14500 | } | |
14501 | _ACEOF | |
14502 | rm -f conftest.$ac_objext | |
14503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14504 | (eval $ac_compile) 2>&5 |
a848cd7e | 14505 | ac_status=$? |
a848cd7e SC |
14506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14507 | (exit $ac_status); } && | |
8a7b1113 | 14508 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14510 | (eval $ac_try) 2>&5 | |
14511 | ac_status=$? | |
14512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14513 | (exit $ac_status); }; }; then | |
14514 | ac_hi=-1 ac_mid=-1 | |
14515 | while :; do | |
14516 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14517 | #line $LINENO "configure" |
a848cd7e SC |
14518 | /* confdefs.h. */ |
14519 | _ACEOF | |
14520 | cat confdefs.h >>conftest.$ac_ext | |
14521 | cat >>conftest.$ac_ext <<_ACEOF | |
14522 | /* end confdefs.h. */ | |
14523 | $ac_includes_default | |
14524 | int | |
14525 | main () | |
14526 | { | |
14527 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
14528 | test_array [0] = 0 | |
14529 | ||
14530 | ; | |
14531 | return 0; | |
14532 | } | |
14533 | _ACEOF | |
14534 | rm -f conftest.$ac_objext | |
14535 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14536 | (eval $ac_compile) 2>&5 |
a848cd7e | 14537 | ac_status=$? |
a848cd7e SC |
14538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14539 | (exit $ac_status); } && | |
8a7b1113 | 14540 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14542 | (eval $ac_try) 2>&5 | |
14543 | ac_status=$? | |
14544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14545 | (exit $ac_status); }; }; then | |
14546 | ac_lo=$ac_mid; break | |
14547 | else | |
14548 | echo "$as_me: failed program was:" >&5 | |
14549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14550 | ||
14551 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8a7b1113 VZ |
14552 | if test $ac_mid -le $ac_hi; then |
14553 | ac_lo= ac_hi= | |
14554 | break | |
14555 | fi | |
14556 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14557 | fi |
8a7b1113 | 14558 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14559 | done |
14560 | else | |
14561 | echo "$as_me: failed program was:" >&5 | |
14562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14563 | ||
14564 | ac_lo= ac_hi= | |
14565 | fi | |
8a7b1113 | 14566 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14567 | fi |
8a7b1113 | 14568 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14569 | # Binary search between lo and hi bounds. |
14570 | while test "x$ac_lo" != "x$ac_hi"; do | |
14571 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14572 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14573 | #line $LINENO "configure" |
a848cd7e SC |
14574 | /* confdefs.h. */ |
14575 | _ACEOF | |
14576 | cat confdefs.h >>conftest.$ac_ext | |
14577 | cat >>conftest.$ac_ext <<_ACEOF | |
14578 | /* end confdefs.h. */ | |
14579 | $ac_includes_default | |
14580 | int | |
14581 | main () | |
14582 | { | |
14583 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14584 | test_array [0] = 0 | |
14585 | ||
14586 | ; | |
14587 | return 0; | |
14588 | } | |
14589 | _ACEOF | |
14590 | rm -f conftest.$ac_objext | |
14591 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14592 | (eval $ac_compile) 2>&5 |
a848cd7e | 14593 | ac_status=$? |
a848cd7e SC |
14594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14595 | (exit $ac_status); } && | |
8a7b1113 | 14596 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14598 | (eval $ac_try) 2>&5 | |
14599 | ac_status=$? | |
14600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14601 | (exit $ac_status); }; }; then | |
14602 | ac_hi=$ac_mid | |
14603 | else | |
14604 | echo "$as_me: failed program was:" >&5 | |
14605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14606 | ||
14607 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14608 | fi | |
8a7b1113 | 14609 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14610 | done |
14611 | case $ac_lo in | |
14612 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
14613 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14614 | See \`config.log' for more details." >&5 | |
14615 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14616 | See \`config.log' for more details." >&2;} | |
14617 | { (exit 1); exit 1; }; } ;; | |
14618 | esac | |
14619 | else | |
14620 | if test "$cross_compiling" = yes; then | |
14621 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14622 | See \`config.log' for more details." >&5 | |
14623 | echo "$as_me: error: cannot run test program while cross compiling | |
14624 | See \`config.log' for more details." >&2;} | |
14625 | { (exit 1); exit 1; }; } | |
14626 | else | |
14627 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14628 | #line $LINENO "configure" |
a848cd7e SC |
14629 | /* confdefs.h. */ |
14630 | _ACEOF | |
14631 | cat confdefs.h >>conftest.$ac_ext | |
14632 | cat >>conftest.$ac_ext <<_ACEOF | |
14633 | /* end confdefs.h. */ | |
14634 | $ac_includes_default | |
14635 | long longval () { return (long) (sizeof (short)); } | |
14636 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
14637 | #include <stdio.h> | |
14638 | #include <stdlib.h> | |
14639 | int | |
14640 | main () | |
14641 | { | |
14642 | ||
14643 | FILE *f = fopen ("conftest.val", "w"); | |
14644 | if (! f) | |
14645 | exit (1); | |
14646 | if (((long) (sizeof (short))) < 0) | |
14647 | { | |
14648 | long i = longval (); | |
14649 | if (i != ((long) (sizeof (short)))) | |
14650 | exit (1); | |
14651 | fprintf (f, "%ld\n", i); | |
14652 | } | |
14653 | else | |
14654 | { | |
14655 | unsigned long i = ulongval (); | |
14656 | if (i != ((long) (sizeof (short)))) | |
14657 | exit (1); | |
14658 | fprintf (f, "%lu\n", i); | |
14659 | } | |
14660 | exit (ferror (f) || fclose (f) != 0); | |
14661 | ||
14662 | ; | |
14663 | return 0; | |
14664 | } | |
14665 | _ACEOF | |
14666 | rm -f conftest$ac_exeext | |
14667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14668 | (eval $ac_link) 2>&5 | |
14669 | ac_status=$? | |
14670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14671 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14673 | (eval $ac_try) 2>&5 | |
14674 | ac_status=$? | |
14675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14676 | (exit $ac_status); }; }; then | |
14677 | ac_cv_sizeof_short=`cat conftest.val` | |
14678 | else | |
14679 | echo "$as_me: program exited with status $ac_status" >&5 | |
14680 | echo "$as_me: failed program was:" >&5 | |
14681 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14682 | ||
14683 | ( exit $ac_status ) | |
14684 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
14685 | See \`config.log' for more details." >&5 | |
14686 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
14687 | See \`config.log' for more details." >&2;} | |
14688 | { (exit 1); exit 1; }; } | |
14689 | fi | |
8a7b1113 | 14690 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14691 | fi |
14692 | fi | |
14693 | rm -f conftest.val | |
14694 | else | |
14695 | ac_cv_sizeof_short=0 | |
14696 | fi | |
14697 | fi | |
14698 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
14699 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
14700 | cat >>confdefs.h <<_ACEOF | |
14701 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
14702 | _ACEOF | |
14703 | ||
14704 | ||
14705 | echo "$as_me:$LINENO: checking for void *" >&5 | |
14706 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14707 | if test "${ac_cv_type_void_p+set}" = set; then | |
14708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14709 | else | |
14710 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14711 | #line $LINENO "configure" |
a848cd7e SC |
14712 | /* confdefs.h. */ |
14713 | _ACEOF | |
14714 | cat confdefs.h >>conftest.$ac_ext | |
14715 | cat >>conftest.$ac_ext <<_ACEOF | |
14716 | /* end confdefs.h. */ | |
14717 | $ac_includes_default | |
14718 | int | |
14719 | main () | |
14720 | { | |
14721 | if ((void * *) 0) | |
14722 | return 0; | |
14723 | if (sizeof (void *)) | |
14724 | return 0; | |
14725 | ; | |
14726 | return 0; | |
14727 | } | |
14728 | _ACEOF | |
14729 | rm -f conftest.$ac_objext | |
14730 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14731 | (eval $ac_compile) 2>&5 |
a848cd7e | 14732 | ac_status=$? |
a848cd7e SC |
14733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14734 | (exit $ac_status); } && | |
8a7b1113 | 14735 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14736 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14737 | (eval $ac_try) 2>&5 | |
14738 | ac_status=$? | |
14739 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14740 | (exit $ac_status); }; }; then | |
14741 | ac_cv_type_void_p=yes | |
14742 | else | |
14743 | echo "$as_me: failed program was:" >&5 | |
14744 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14745 | ||
14746 | ac_cv_type_void_p=no | |
14747 | fi | |
8a7b1113 | 14748 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14749 | fi |
14750 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14751 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14752 | ||
14753 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14754 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14755 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14756 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14757 | else | |
14758 | if test "$ac_cv_type_void_p" = yes; then | |
14759 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14760 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14761 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14762 | # This bug is HP SR number 8606223364. | |
14763 | if test "$cross_compiling" = yes; then | |
14764 | # Depending upon the size, compute the lo and hi bounds. | |
14765 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14766 | #line $LINENO "configure" |
a848cd7e SC |
14767 | /* confdefs.h. */ |
14768 | _ACEOF | |
14769 | cat confdefs.h >>conftest.$ac_ext | |
14770 | cat >>conftest.$ac_ext <<_ACEOF | |
14771 | /* end confdefs.h. */ | |
14772 | $ac_includes_default | |
14773 | int | |
14774 | main () | |
14775 | { | |
14776 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
14777 | test_array [0] = 0 | |
14778 | ||
14779 | ; | |
14780 | return 0; | |
14781 | } | |
14782 | _ACEOF | |
14783 | rm -f conftest.$ac_objext | |
14784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14785 | (eval $ac_compile) 2>&5 |
a848cd7e | 14786 | ac_status=$? |
a848cd7e SC |
14787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14788 | (exit $ac_status); } && | |
8a7b1113 | 14789 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14791 | (eval $ac_try) 2>&5 | |
14792 | ac_status=$? | |
14793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14794 | (exit $ac_status); }; }; then | |
14795 | ac_lo=0 ac_mid=0 | |
14796 | while :; do | |
14797 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14798 | #line $LINENO "configure" |
a848cd7e SC |
14799 | /* confdefs.h. */ |
14800 | _ACEOF | |
14801 | cat confdefs.h >>conftest.$ac_ext | |
14802 | cat >>conftest.$ac_ext <<_ACEOF | |
14803 | /* end confdefs.h. */ | |
14804 | $ac_includes_default | |
14805 | int | |
14806 | main () | |
14807 | { | |
14808 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14809 | test_array [0] = 0 | |
14810 | ||
14811 | ; | |
14812 | return 0; | |
14813 | } | |
14814 | _ACEOF | |
14815 | rm -f conftest.$ac_objext | |
14816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14817 | (eval $ac_compile) 2>&5 |
a848cd7e | 14818 | ac_status=$? |
a848cd7e SC |
14819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14820 | (exit $ac_status); } && | |
8a7b1113 | 14821 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14823 | (eval $ac_try) 2>&5 | |
14824 | ac_status=$? | |
14825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14826 | (exit $ac_status); }; }; then | |
14827 | ac_hi=$ac_mid; break | |
14828 | else | |
14829 | echo "$as_me: failed program was:" >&5 | |
14830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14831 | ||
14832 | ac_lo=`expr $ac_mid + 1` | |
8a7b1113 VZ |
14833 | if test $ac_lo -le $ac_mid; then |
14834 | ac_lo= ac_hi= | |
14835 | break | |
14836 | fi | |
14837 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 14838 | fi |
8a7b1113 | 14839 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14840 | done |
14841 | else | |
14842 | echo "$as_me: failed program was:" >&5 | |
14843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14844 | ||
14845 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14846 | #line $LINENO "configure" |
a848cd7e SC |
14847 | /* confdefs.h. */ |
14848 | _ACEOF | |
14849 | cat confdefs.h >>conftest.$ac_ext | |
14850 | cat >>conftest.$ac_ext <<_ACEOF | |
14851 | /* end confdefs.h. */ | |
14852 | $ac_includes_default | |
14853 | int | |
14854 | main () | |
14855 | { | |
14856 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
14857 | test_array [0] = 0 | |
14858 | ||
14859 | ; | |
14860 | return 0; | |
14861 | } | |
14862 | _ACEOF | |
14863 | rm -f conftest.$ac_objext | |
14864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14865 | (eval $ac_compile) 2>&5 |
a848cd7e | 14866 | ac_status=$? |
a848cd7e SC |
14867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14868 | (exit $ac_status); } && | |
8a7b1113 | 14869 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14871 | (eval $ac_try) 2>&5 | |
14872 | ac_status=$? | |
14873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14874 | (exit $ac_status); }; }; then | |
14875 | ac_hi=-1 ac_mid=-1 | |
14876 | while :; do | |
14877 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14878 | #line $LINENO "configure" |
a848cd7e SC |
14879 | /* confdefs.h. */ |
14880 | _ACEOF | |
14881 | cat confdefs.h >>conftest.$ac_ext | |
14882 | cat >>conftest.$ac_ext <<_ACEOF | |
14883 | /* end confdefs.h. */ | |
14884 | $ac_includes_default | |
14885 | int | |
14886 | main () | |
14887 | { | |
14888 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
14889 | test_array [0] = 0 | |
14890 | ||
14891 | ; | |
14892 | return 0; | |
14893 | } | |
14894 | _ACEOF | |
14895 | rm -f conftest.$ac_objext | |
14896 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14897 | (eval $ac_compile) 2>&5 |
a848cd7e | 14898 | ac_status=$? |
a848cd7e SC |
14899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14900 | (exit $ac_status); } && | |
8a7b1113 | 14901 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14903 | (eval $ac_try) 2>&5 | |
14904 | ac_status=$? | |
14905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14906 | (exit $ac_status); }; }; then | |
14907 | ac_lo=$ac_mid; break | |
14908 | else | |
14909 | echo "$as_me: failed program was:" >&5 | |
14910 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14911 | ||
14912 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8a7b1113 VZ |
14913 | if test $ac_mid -le $ac_hi; then |
14914 | ac_lo= ac_hi= | |
14915 | break | |
14916 | fi | |
14917 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 14918 | fi |
8a7b1113 | 14919 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14920 | done |
14921 | else | |
14922 | echo "$as_me: failed program was:" >&5 | |
14923 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14924 | ||
14925 | ac_lo= ac_hi= | |
14926 | fi | |
8a7b1113 | 14927 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 14928 | fi |
8a7b1113 | 14929 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14930 | # Binary search between lo and hi bounds. |
14931 | while test "x$ac_lo" != "x$ac_hi"; do | |
14932 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14933 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14934 | #line $LINENO "configure" |
a848cd7e SC |
14935 | /* confdefs.h. */ |
14936 | _ACEOF | |
14937 | cat confdefs.h >>conftest.$ac_ext | |
14938 | cat >>conftest.$ac_ext <<_ACEOF | |
14939 | /* end confdefs.h. */ | |
14940 | $ac_includes_default | |
14941 | int | |
14942 | main () | |
14943 | { | |
14944 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
14945 | test_array [0] = 0 | |
14946 | ||
14947 | ; | |
14948 | return 0; | |
14949 | } | |
14950 | _ACEOF | |
14951 | rm -f conftest.$ac_objext | |
14952 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 14953 | (eval $ac_compile) 2>&5 |
a848cd7e | 14954 | ac_status=$? |
a848cd7e SC |
14955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14956 | (exit $ac_status); } && | |
8a7b1113 | 14957 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
14958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14959 | (eval $ac_try) 2>&5 | |
14960 | ac_status=$? | |
14961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14962 | (exit $ac_status); }; }; then | |
14963 | ac_hi=$ac_mid | |
14964 | else | |
14965 | echo "$as_me: failed program was:" >&5 | |
14966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14967 | ||
14968 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14969 | fi | |
8a7b1113 | 14970 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
14971 | done |
14972 | case $ac_lo in | |
14973 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
14974 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
14975 | See \`config.log' for more details." >&5 | |
14976 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
14977 | See \`config.log' for more details." >&2;} | |
14978 | { (exit 1); exit 1; }; } ;; | |
14979 | esac | |
14980 | else | |
14981 | if test "$cross_compiling" = yes; then | |
14982 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14983 | See \`config.log' for more details." >&5 | |
14984 | echo "$as_me: error: cannot run test program while cross compiling | |
14985 | See \`config.log' for more details." >&2;} | |
14986 | { (exit 1); exit 1; }; } | |
14987 | else | |
14988 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 14989 | #line $LINENO "configure" |
a848cd7e SC |
14990 | /* confdefs.h. */ |
14991 | _ACEOF | |
14992 | cat confdefs.h >>conftest.$ac_ext | |
14993 | cat >>conftest.$ac_ext <<_ACEOF | |
14994 | /* end confdefs.h. */ | |
14995 | $ac_includes_default | |
14996 | long longval () { return (long) (sizeof (void *)); } | |
14997 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
14998 | #include <stdio.h> | |
14999 | #include <stdlib.h> | |
15000 | int | |
15001 | main () | |
15002 | { | |
15003 | ||
15004 | FILE *f = fopen ("conftest.val", "w"); | |
15005 | if (! f) | |
15006 | exit (1); | |
15007 | if (((long) (sizeof (void *))) < 0) | |
15008 | { | |
15009 | long i = longval (); | |
15010 | if (i != ((long) (sizeof (void *)))) | |
15011 | exit (1); | |
15012 | fprintf (f, "%ld\n", i); | |
15013 | } | |
15014 | else | |
15015 | { | |
15016 | unsigned long i = ulongval (); | |
15017 | if (i != ((long) (sizeof (void *)))) | |
15018 | exit (1); | |
15019 | fprintf (f, "%lu\n", i); | |
15020 | } | |
15021 | exit (ferror (f) || fclose (f) != 0); | |
15022 | ||
15023 | ; | |
15024 | return 0; | |
15025 | } | |
15026 | _ACEOF | |
15027 | rm -f conftest$ac_exeext | |
15028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15029 | (eval $ac_link) 2>&5 | |
15030 | ac_status=$? | |
15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15032 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15034 | (eval $ac_try) 2>&5 | |
15035 | ac_status=$? | |
15036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15037 | (exit $ac_status); }; }; then | |
15038 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15039 | else | |
15040 | echo "$as_me: program exited with status $ac_status" >&5 | |
15041 | echo "$as_me: failed program was:" >&5 | |
15042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15043 | ||
15044 | ( exit $ac_status ) | |
15045 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
15046 | See \`config.log' for more details." >&5 | |
15047 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15048 | See \`config.log' for more details." >&2;} | |
15049 | { (exit 1); exit 1; }; } | |
15050 | fi | |
8a7b1113 | 15051 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15052 | fi |
15053 | fi | |
15054 | rm -f conftest.val | |
15055 | else | |
15056 | ac_cv_sizeof_void_p=0 | |
15057 | fi | |
15058 | fi | |
15059 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15060 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15061 | cat >>confdefs.h <<_ACEOF | |
15062 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15063 | _ACEOF | |
15064 | ||
15065 | ||
15066 | echo "$as_me:$LINENO: checking for int" >&5 | |
15067 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15068 | if test "${ac_cv_type_int+set}" = set; then | |
15069 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15070 | else | |
15071 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15072 | #line $LINENO "configure" |
a848cd7e SC |
15073 | /* confdefs.h. */ |
15074 | _ACEOF | |
15075 | cat confdefs.h >>conftest.$ac_ext | |
15076 | cat >>conftest.$ac_ext <<_ACEOF | |
15077 | /* end confdefs.h. */ | |
15078 | $ac_includes_default | |
15079 | int | |
15080 | main () | |
15081 | { | |
15082 | if ((int *) 0) | |
15083 | return 0; | |
15084 | if (sizeof (int)) | |
15085 | return 0; | |
15086 | ; | |
15087 | return 0; | |
15088 | } | |
15089 | _ACEOF | |
15090 | rm -f conftest.$ac_objext | |
15091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15092 | (eval $ac_compile) 2>&5 |
a848cd7e | 15093 | ac_status=$? |
a848cd7e SC |
15094 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15095 | (exit $ac_status); } && | |
8a7b1113 | 15096 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15098 | (eval $ac_try) 2>&5 | |
15099 | ac_status=$? | |
15100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15101 | (exit $ac_status); }; }; then | |
15102 | ac_cv_type_int=yes | |
15103 | else | |
15104 | echo "$as_me: failed program was:" >&5 | |
15105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15106 | ||
15107 | ac_cv_type_int=no | |
15108 | fi | |
8a7b1113 | 15109 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15110 | fi |
15111 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15112 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15113 | ||
15114 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15115 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15116 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15118 | else | |
15119 | if test "$ac_cv_type_int" = yes; then | |
15120 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15121 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15122 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15123 | # This bug is HP SR number 8606223364. | |
15124 | if test "$cross_compiling" = yes; then | |
15125 | # Depending upon the size, compute the lo and hi bounds. | |
15126 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15127 | #line $LINENO "configure" |
a848cd7e SC |
15128 | /* confdefs.h. */ |
15129 | _ACEOF | |
15130 | cat confdefs.h >>conftest.$ac_ext | |
15131 | cat >>conftest.$ac_ext <<_ACEOF | |
15132 | /* end confdefs.h. */ | |
15133 | $ac_includes_default | |
15134 | int | |
15135 | main () | |
15136 | { | |
15137 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15138 | test_array [0] = 0 | |
15139 | ||
15140 | ; | |
15141 | return 0; | |
15142 | } | |
15143 | _ACEOF | |
15144 | rm -f conftest.$ac_objext | |
15145 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15146 | (eval $ac_compile) 2>&5 |
a848cd7e | 15147 | ac_status=$? |
a848cd7e SC |
15148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15149 | (exit $ac_status); } && | |
8a7b1113 | 15150 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15152 | (eval $ac_try) 2>&5 | |
15153 | ac_status=$? | |
15154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15155 | (exit $ac_status); }; }; then | |
15156 | ac_lo=0 ac_mid=0 | |
15157 | while :; do | |
15158 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15159 | #line $LINENO "configure" |
a848cd7e SC |
15160 | /* confdefs.h. */ |
15161 | _ACEOF | |
15162 | cat confdefs.h >>conftest.$ac_ext | |
15163 | cat >>conftest.$ac_ext <<_ACEOF | |
15164 | /* end confdefs.h. */ | |
15165 | $ac_includes_default | |
15166 | int | |
15167 | main () | |
15168 | { | |
15169 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15170 | test_array [0] = 0 | |
15171 | ||
15172 | ; | |
15173 | return 0; | |
15174 | } | |
15175 | _ACEOF | |
15176 | rm -f conftest.$ac_objext | |
15177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15178 | (eval $ac_compile) 2>&5 |
a848cd7e | 15179 | ac_status=$? |
a848cd7e SC |
15180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15181 | (exit $ac_status); } && | |
8a7b1113 | 15182 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15184 | (eval $ac_try) 2>&5 | |
15185 | ac_status=$? | |
15186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15187 | (exit $ac_status); }; }; then | |
15188 | ac_hi=$ac_mid; break | |
15189 | else | |
15190 | echo "$as_me: failed program was:" >&5 | |
15191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15192 | ||
15193 | ac_lo=`expr $ac_mid + 1` | |
8a7b1113 VZ |
15194 | if test $ac_lo -le $ac_mid; then |
15195 | ac_lo= ac_hi= | |
15196 | break | |
15197 | fi | |
15198 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15199 | fi |
8a7b1113 | 15200 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15201 | done |
15202 | else | |
15203 | echo "$as_me: failed program was:" >&5 | |
15204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15205 | ||
15206 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15207 | #line $LINENO "configure" |
a848cd7e SC |
15208 | /* confdefs.h. */ |
15209 | _ACEOF | |
15210 | cat confdefs.h >>conftest.$ac_ext | |
15211 | cat >>conftest.$ac_ext <<_ACEOF | |
15212 | /* end confdefs.h. */ | |
15213 | $ac_includes_default | |
15214 | int | |
15215 | main () | |
15216 | { | |
15217 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15218 | test_array [0] = 0 | |
15219 | ||
15220 | ; | |
15221 | return 0; | |
15222 | } | |
15223 | _ACEOF | |
15224 | rm -f conftest.$ac_objext | |
15225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15226 | (eval $ac_compile) 2>&5 |
a848cd7e | 15227 | ac_status=$? |
a848cd7e SC |
15228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15229 | (exit $ac_status); } && | |
8a7b1113 | 15230 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15232 | (eval $ac_try) 2>&5 | |
15233 | ac_status=$? | |
15234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15235 | (exit $ac_status); }; }; then | |
15236 | ac_hi=-1 ac_mid=-1 | |
15237 | while :; do | |
15238 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15239 | #line $LINENO "configure" |
a848cd7e SC |
15240 | /* confdefs.h. */ |
15241 | _ACEOF | |
15242 | cat confdefs.h >>conftest.$ac_ext | |
15243 | cat >>conftest.$ac_ext <<_ACEOF | |
15244 | /* end confdefs.h. */ | |
15245 | $ac_includes_default | |
15246 | int | |
15247 | main () | |
15248 | { | |
15249 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15250 | test_array [0] = 0 | |
15251 | ||
15252 | ; | |
15253 | return 0; | |
15254 | } | |
15255 | _ACEOF | |
15256 | rm -f conftest.$ac_objext | |
15257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15258 | (eval $ac_compile) 2>&5 |
a848cd7e | 15259 | ac_status=$? |
a848cd7e SC |
15260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15261 | (exit $ac_status); } && | |
8a7b1113 | 15262 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15264 | (eval $ac_try) 2>&5 | |
15265 | ac_status=$? | |
15266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15267 | (exit $ac_status); }; }; then | |
15268 | ac_lo=$ac_mid; break | |
15269 | else | |
15270 | echo "$as_me: failed program was:" >&5 | |
15271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15272 | ||
15273 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8a7b1113 VZ |
15274 | if test $ac_mid -le $ac_hi; then |
15275 | ac_lo= ac_hi= | |
15276 | break | |
15277 | fi | |
15278 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15279 | fi |
8a7b1113 | 15280 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15281 | done |
15282 | else | |
15283 | echo "$as_me: failed program was:" >&5 | |
15284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15285 | ||
15286 | ac_lo= ac_hi= | |
15287 | fi | |
8a7b1113 | 15288 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15289 | fi |
8a7b1113 | 15290 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15291 | # Binary search between lo and hi bounds. |
15292 | while test "x$ac_lo" != "x$ac_hi"; do | |
15293 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15294 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15295 | #line $LINENO "configure" |
a848cd7e SC |
15296 | /* confdefs.h. */ |
15297 | _ACEOF | |
15298 | cat confdefs.h >>conftest.$ac_ext | |
15299 | cat >>conftest.$ac_ext <<_ACEOF | |
15300 | /* end confdefs.h. */ | |
15301 | $ac_includes_default | |
15302 | int | |
15303 | main () | |
15304 | { | |
15305 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15306 | test_array [0] = 0 | |
15307 | ||
15308 | ; | |
15309 | return 0; | |
15310 | } | |
15311 | _ACEOF | |
15312 | rm -f conftest.$ac_objext | |
15313 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15314 | (eval $ac_compile) 2>&5 |
a848cd7e | 15315 | ac_status=$? |
a848cd7e SC |
15316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15317 | (exit $ac_status); } && | |
8a7b1113 | 15318 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15320 | (eval $ac_try) 2>&5 | |
15321 | ac_status=$? | |
15322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15323 | (exit $ac_status); }; }; then | |
15324 | ac_hi=$ac_mid | |
15325 | else | |
15326 | echo "$as_me: failed program was:" >&5 | |
15327 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15328 | ||
15329 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15330 | fi | |
8a7b1113 | 15331 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15332 | done |
15333 | case $ac_lo in | |
15334 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
15335 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15336 | See \`config.log' for more details." >&5 | |
15337 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15338 | See \`config.log' for more details." >&2;} | |
15339 | { (exit 1); exit 1; }; } ;; | |
15340 | esac | |
15341 | else | |
15342 | if test "$cross_compiling" = yes; then | |
15343 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15344 | See \`config.log' for more details." >&5 | |
15345 | echo "$as_me: error: cannot run test program while cross compiling | |
15346 | See \`config.log' for more details." >&2;} | |
15347 | { (exit 1); exit 1; }; } | |
15348 | else | |
15349 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15350 | #line $LINENO "configure" |
a848cd7e SC |
15351 | /* confdefs.h. */ |
15352 | _ACEOF | |
15353 | cat confdefs.h >>conftest.$ac_ext | |
15354 | cat >>conftest.$ac_ext <<_ACEOF | |
15355 | /* end confdefs.h. */ | |
15356 | $ac_includes_default | |
15357 | long longval () { return (long) (sizeof (int)); } | |
15358 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
15359 | #include <stdio.h> | |
15360 | #include <stdlib.h> | |
15361 | int | |
15362 | main () | |
15363 | { | |
15364 | ||
15365 | FILE *f = fopen ("conftest.val", "w"); | |
15366 | if (! f) | |
15367 | exit (1); | |
15368 | if (((long) (sizeof (int))) < 0) | |
15369 | { | |
15370 | long i = longval (); | |
15371 | if (i != ((long) (sizeof (int)))) | |
15372 | exit (1); | |
15373 | fprintf (f, "%ld\n", i); | |
15374 | } | |
15375 | else | |
15376 | { | |
15377 | unsigned long i = ulongval (); | |
15378 | if (i != ((long) (sizeof (int)))) | |
15379 | exit (1); | |
15380 | fprintf (f, "%lu\n", i); | |
15381 | } | |
15382 | exit (ferror (f) || fclose (f) != 0); | |
15383 | ||
15384 | ; | |
15385 | return 0; | |
15386 | } | |
15387 | _ACEOF | |
15388 | rm -f conftest$ac_exeext | |
15389 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15390 | (eval $ac_link) 2>&5 | |
15391 | ac_status=$? | |
15392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15393 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15395 | (eval $ac_try) 2>&5 | |
15396 | ac_status=$? | |
15397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15398 | (exit $ac_status); }; }; then | |
15399 | ac_cv_sizeof_int=`cat conftest.val` | |
15400 | else | |
15401 | echo "$as_me: program exited with status $ac_status" >&5 | |
15402 | echo "$as_me: failed program was:" >&5 | |
15403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15404 | ||
15405 | ( exit $ac_status ) | |
15406 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
15407 | See \`config.log' for more details." >&5 | |
15408 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
15409 | See \`config.log' for more details." >&2;} | |
15410 | { (exit 1); exit 1; }; } | |
15411 | fi | |
8a7b1113 | 15412 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15413 | fi |
15414 | fi | |
15415 | rm -f conftest.val | |
15416 | else | |
15417 | ac_cv_sizeof_int=0 | |
15418 | fi | |
15419 | fi | |
15420 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
15421 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
15422 | cat >>confdefs.h <<_ACEOF | |
15423 | #define SIZEOF_INT $ac_cv_sizeof_int | |
15424 | _ACEOF | |
15425 | ||
15426 | ||
15427 | echo "$as_me:$LINENO: checking for long" >&5 | |
15428 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15429 | if test "${ac_cv_type_long+set}" = set; then | |
15430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15431 | else | |
15432 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15433 | #line $LINENO "configure" |
a848cd7e SC |
15434 | /* confdefs.h. */ |
15435 | _ACEOF | |
15436 | cat confdefs.h >>conftest.$ac_ext | |
15437 | cat >>conftest.$ac_ext <<_ACEOF | |
15438 | /* end confdefs.h. */ | |
15439 | $ac_includes_default | |
15440 | int | |
15441 | main () | |
15442 | { | |
15443 | if ((long *) 0) | |
15444 | return 0; | |
15445 | if (sizeof (long)) | |
15446 | return 0; | |
15447 | ; | |
15448 | return 0; | |
15449 | } | |
15450 | _ACEOF | |
15451 | rm -f conftest.$ac_objext | |
15452 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15453 | (eval $ac_compile) 2>&5 |
a848cd7e | 15454 | ac_status=$? |
a848cd7e SC |
15455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15456 | (exit $ac_status); } && | |
8a7b1113 | 15457 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15459 | (eval $ac_try) 2>&5 | |
15460 | ac_status=$? | |
15461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15462 | (exit $ac_status); }; }; then | |
15463 | ac_cv_type_long=yes | |
15464 | else | |
15465 | echo "$as_me: failed program was:" >&5 | |
15466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15467 | ||
15468 | ac_cv_type_long=no | |
15469 | fi | |
8a7b1113 | 15470 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15471 | fi |
15472 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15473 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15474 | ||
15475 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15476 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15477 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15479 | else | |
15480 | if test "$ac_cv_type_long" = yes; then | |
15481 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15482 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15483 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15484 | # This bug is HP SR number 8606223364. | |
15485 | if test "$cross_compiling" = yes; then | |
15486 | # Depending upon the size, compute the lo and hi bounds. | |
15487 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15488 | #line $LINENO "configure" |
a848cd7e SC |
15489 | /* confdefs.h. */ |
15490 | _ACEOF | |
15491 | cat confdefs.h >>conftest.$ac_ext | |
15492 | cat >>conftest.$ac_ext <<_ACEOF | |
15493 | /* end confdefs.h. */ | |
15494 | $ac_includes_default | |
15495 | int | |
15496 | main () | |
15497 | { | |
15498 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15499 | test_array [0] = 0 | |
15500 | ||
15501 | ; | |
15502 | return 0; | |
15503 | } | |
15504 | _ACEOF | |
15505 | rm -f conftest.$ac_objext | |
15506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15507 | (eval $ac_compile) 2>&5 |
a848cd7e | 15508 | ac_status=$? |
a848cd7e SC |
15509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15510 | (exit $ac_status); } && | |
8a7b1113 | 15511 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15513 | (eval $ac_try) 2>&5 | |
15514 | ac_status=$? | |
15515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15516 | (exit $ac_status); }; }; then | |
15517 | ac_lo=0 ac_mid=0 | |
15518 | while :; do | |
15519 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15520 | #line $LINENO "configure" |
a848cd7e SC |
15521 | /* confdefs.h. */ |
15522 | _ACEOF | |
15523 | cat confdefs.h >>conftest.$ac_ext | |
15524 | cat >>conftest.$ac_ext <<_ACEOF | |
15525 | /* end confdefs.h. */ | |
15526 | $ac_includes_default | |
15527 | int | |
15528 | main () | |
15529 | { | |
15530 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15531 | test_array [0] = 0 | |
15532 | ||
15533 | ; | |
15534 | return 0; | |
15535 | } | |
15536 | _ACEOF | |
15537 | rm -f conftest.$ac_objext | |
15538 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15539 | (eval $ac_compile) 2>&5 |
a848cd7e | 15540 | ac_status=$? |
a848cd7e SC |
15541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15542 | (exit $ac_status); } && | |
8a7b1113 | 15543 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15545 | (eval $ac_try) 2>&5 | |
15546 | ac_status=$? | |
15547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15548 | (exit $ac_status); }; }; then | |
15549 | ac_hi=$ac_mid; break | |
15550 | else | |
15551 | echo "$as_me: failed program was:" >&5 | |
15552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15553 | ||
15554 | ac_lo=`expr $ac_mid + 1` | |
8a7b1113 VZ |
15555 | if test $ac_lo -le $ac_mid; then |
15556 | ac_lo= ac_hi= | |
15557 | break | |
15558 | fi | |
15559 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15560 | fi |
8a7b1113 | 15561 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15562 | done |
15563 | else | |
15564 | echo "$as_me: failed program was:" >&5 | |
15565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15566 | ||
15567 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15568 | #line $LINENO "configure" |
a848cd7e SC |
15569 | /* confdefs.h. */ |
15570 | _ACEOF | |
15571 | cat confdefs.h >>conftest.$ac_ext | |
15572 | cat >>conftest.$ac_ext <<_ACEOF | |
15573 | /* end confdefs.h. */ | |
15574 | $ac_includes_default | |
15575 | int | |
15576 | main () | |
15577 | { | |
15578 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15579 | test_array [0] = 0 | |
15580 | ||
15581 | ; | |
15582 | return 0; | |
15583 | } | |
15584 | _ACEOF | |
15585 | rm -f conftest.$ac_objext | |
15586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15587 | (eval $ac_compile) 2>&5 |
a848cd7e | 15588 | ac_status=$? |
a848cd7e SC |
15589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15590 | (exit $ac_status); } && | |
8a7b1113 | 15591 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15593 | (eval $ac_try) 2>&5 | |
15594 | ac_status=$? | |
15595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15596 | (exit $ac_status); }; }; then | |
15597 | ac_hi=-1 ac_mid=-1 | |
15598 | while :; do | |
15599 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15600 | #line $LINENO "configure" |
a848cd7e SC |
15601 | /* confdefs.h. */ |
15602 | _ACEOF | |
15603 | cat confdefs.h >>conftest.$ac_ext | |
15604 | cat >>conftest.$ac_ext <<_ACEOF | |
15605 | /* end confdefs.h. */ | |
15606 | $ac_includes_default | |
15607 | int | |
15608 | main () | |
15609 | { | |
15610 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15611 | test_array [0] = 0 | |
15612 | ||
15613 | ; | |
15614 | return 0; | |
15615 | } | |
15616 | _ACEOF | |
15617 | rm -f conftest.$ac_objext | |
15618 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15619 | (eval $ac_compile) 2>&5 |
a848cd7e | 15620 | ac_status=$? |
a848cd7e SC |
15621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15622 | (exit $ac_status); } && | |
8a7b1113 | 15623 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15625 | (eval $ac_try) 2>&5 | |
15626 | ac_status=$? | |
15627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15628 | (exit $ac_status); }; }; then | |
15629 | ac_lo=$ac_mid; break | |
15630 | else | |
15631 | echo "$as_me: failed program was:" >&5 | |
15632 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15633 | ||
15634 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8a7b1113 VZ |
15635 | if test $ac_mid -le $ac_hi; then |
15636 | ac_lo= ac_hi= | |
15637 | break | |
15638 | fi | |
15639 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 15640 | fi |
8a7b1113 | 15641 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15642 | done |
15643 | else | |
15644 | echo "$as_me: failed program was:" >&5 | |
15645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15646 | ||
15647 | ac_lo= ac_hi= | |
15648 | fi | |
8a7b1113 | 15649 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 15650 | fi |
8a7b1113 | 15651 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15652 | # Binary search between lo and hi bounds. |
15653 | while test "x$ac_lo" != "x$ac_hi"; do | |
15654 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15655 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15656 | #line $LINENO "configure" |
a848cd7e SC |
15657 | /* confdefs.h. */ |
15658 | _ACEOF | |
15659 | cat confdefs.h >>conftest.$ac_ext | |
15660 | cat >>conftest.$ac_ext <<_ACEOF | |
15661 | /* end confdefs.h. */ | |
15662 | $ac_includes_default | |
15663 | int | |
15664 | main () | |
15665 | { | |
15666 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15667 | test_array [0] = 0 | |
15668 | ||
15669 | ; | |
15670 | return 0; | |
15671 | } | |
15672 | _ACEOF | |
15673 | rm -f conftest.$ac_objext | |
15674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15675 | (eval $ac_compile) 2>&5 |
a848cd7e | 15676 | ac_status=$? |
a848cd7e SC |
15677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15678 | (exit $ac_status); } && | |
8a7b1113 | 15679 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15681 | (eval $ac_try) 2>&5 | |
15682 | ac_status=$? | |
15683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15684 | (exit $ac_status); }; }; then | |
15685 | ac_hi=$ac_mid | |
15686 | else | |
15687 | echo "$as_me: failed program was:" >&5 | |
15688 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15689 | ||
15690 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15691 | fi | |
8a7b1113 | 15692 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15693 | done |
15694 | case $ac_lo in | |
15695 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
15696 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15697 | See \`config.log' for more details." >&5 | |
15698 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15699 | See \`config.log' for more details." >&2;} | |
15700 | { (exit 1); exit 1; }; } ;; | |
15701 | esac | |
15702 | else | |
15703 | if test "$cross_compiling" = yes; then | |
15704 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15705 | See \`config.log' for more details." >&5 | |
15706 | echo "$as_me: error: cannot run test program while cross compiling | |
15707 | See \`config.log' for more details." >&2;} | |
15708 | { (exit 1); exit 1; }; } | |
15709 | else | |
15710 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15711 | #line $LINENO "configure" |
a848cd7e SC |
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 | long longval () { return (long) (sizeof (long)); } | |
15719 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
15720 | #include <stdio.h> | |
15721 | #include <stdlib.h> | |
15722 | int | |
15723 | main () | |
15724 | { | |
15725 | ||
15726 | FILE *f = fopen ("conftest.val", "w"); | |
15727 | if (! f) | |
15728 | exit (1); | |
15729 | if (((long) (sizeof (long))) < 0) | |
15730 | { | |
15731 | long i = longval (); | |
15732 | if (i != ((long) (sizeof (long)))) | |
15733 | exit (1); | |
15734 | fprintf (f, "%ld\n", i); | |
15735 | } | |
15736 | else | |
15737 | { | |
15738 | unsigned long i = ulongval (); | |
15739 | if (i != ((long) (sizeof (long)))) | |
15740 | exit (1); | |
15741 | fprintf (f, "%lu\n", i); | |
15742 | } | |
15743 | exit (ferror (f) || fclose (f) != 0); | |
15744 | ||
15745 | ; | |
15746 | return 0; | |
15747 | } | |
15748 | _ACEOF | |
15749 | rm -f conftest$ac_exeext | |
15750 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15751 | (eval $ac_link) 2>&5 | |
15752 | ac_status=$? | |
15753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15754 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15756 | (eval $ac_try) 2>&5 | |
15757 | ac_status=$? | |
15758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15759 | (exit $ac_status); }; }; then | |
15760 | ac_cv_sizeof_long=`cat conftest.val` | |
15761 | else | |
15762 | echo "$as_me: program exited with status $ac_status" >&5 | |
15763 | echo "$as_me: failed program was:" >&5 | |
15764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15765 | ||
15766 | ( exit $ac_status ) | |
15767 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
15768 | See \`config.log' for more details." >&5 | |
15769 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15770 | See \`config.log' for more details." >&2;} | |
15771 | { (exit 1); exit 1; }; } | |
15772 | fi | |
8a7b1113 | 15773 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15774 | fi |
15775 | fi | |
15776 | rm -f conftest.val | |
15777 | else | |
15778 | ac_cv_sizeof_long=0 | |
15779 | fi | |
15780 | fi | |
15781 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
15782 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15783 | cat >>confdefs.h <<_ACEOF | |
15784 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
15785 | _ACEOF | |
15786 | ||
15787 | ||
15788 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
15789 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
15790 | if test "${ac_cv_type_size_t+set}" = set; then | |
15791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15792 | else | |
15793 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15794 | #line $LINENO "configure" |
a848cd7e SC |
15795 | /* confdefs.h. */ |
15796 | _ACEOF | |
15797 | cat confdefs.h >>conftest.$ac_ext | |
15798 | cat >>conftest.$ac_ext <<_ACEOF | |
15799 | /* end confdefs.h. */ | |
15800 | $ac_includes_default | |
15801 | int | |
15802 | main () | |
15803 | { | |
15804 | if ((size_t *) 0) | |
15805 | return 0; | |
15806 | if (sizeof (size_t)) | |
15807 | return 0; | |
15808 | ; | |
15809 | return 0; | |
15810 | } | |
15811 | _ACEOF | |
15812 | rm -f conftest.$ac_objext | |
15813 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15814 | (eval $ac_compile) 2>&5 |
a848cd7e | 15815 | ac_status=$? |
a848cd7e SC |
15816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15817 | (exit $ac_status); } && | |
8a7b1113 | 15818 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15820 | (eval $ac_try) 2>&5 | |
15821 | ac_status=$? | |
15822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15823 | (exit $ac_status); }; }; then | |
15824 | ac_cv_type_size_t=yes | |
15825 | else | |
15826 | echo "$as_me: failed program was:" >&5 | |
15827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15828 | ||
15829 | ac_cv_type_size_t=no | |
15830 | fi | |
8a7b1113 | 15831 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15832 | fi |
15833 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
15834 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
15835 | ||
15836 | echo "$as_me:$LINENO: checking size of size_t" >&5 | |
15837 | echo $ECHO_N "checking size of size_t... $ECHO_C" >&6 | |
15838 | if test "${ac_cv_sizeof_size_t+set}" = set; then | |
15839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15840 | else | |
15841 | if test "$ac_cv_type_size_t" = yes; then | |
15842 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15843 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15844 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15845 | # This bug is HP SR number 8606223364. | |
15846 | if test "$cross_compiling" = yes; then | |
15847 | # Depending upon the size, compute the lo and hi bounds. | |
15848 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15849 | #line $LINENO "configure" |
a848cd7e SC |
15850 | /* confdefs.h. */ |
15851 | _ACEOF | |
15852 | cat confdefs.h >>conftest.$ac_ext | |
15853 | cat >>conftest.$ac_ext <<_ACEOF | |
15854 | /* end confdefs.h. */ | |
15855 | $ac_includes_default | |
15856 | int | |
15857 | main () | |
15858 | { | |
15859 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= 0)]; | |
15860 | test_array [0] = 0 | |
15861 | ||
15862 | ; | |
15863 | return 0; | |
15864 | } | |
15865 | _ACEOF | |
15866 | rm -f conftest.$ac_objext | |
15867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15868 | (eval $ac_compile) 2>&5 |
a848cd7e | 15869 | ac_status=$? |
a848cd7e SC |
15870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15871 | (exit $ac_status); } && | |
8a7b1113 | 15872 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15874 | (eval $ac_try) 2>&5 | |
15875 | ac_status=$? | |
15876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15877 | (exit $ac_status); }; }; then | |
15878 | ac_lo=0 ac_mid=0 | |
15879 | while :; do | |
15880 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15881 | #line $LINENO "configure" |
a848cd7e SC |
15882 | /* confdefs.h. */ |
15883 | _ACEOF | |
15884 | cat confdefs.h >>conftest.$ac_ext | |
15885 | cat >>conftest.$ac_ext <<_ACEOF | |
15886 | /* end confdefs.h. */ | |
15887 | $ac_includes_default | |
15888 | int | |
15889 | main () | |
15890 | { | |
15891 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
15892 | test_array [0] = 0 | |
15893 | ||
15894 | ; | |
15895 | return 0; | |
15896 | } | |
15897 | _ACEOF | |
15898 | rm -f conftest.$ac_objext | |
15899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15900 | (eval $ac_compile) 2>&5 |
a848cd7e | 15901 | ac_status=$? |
a848cd7e SC |
15902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15903 | (exit $ac_status); } && | |
8a7b1113 | 15904 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15906 | (eval $ac_try) 2>&5 | |
15907 | ac_status=$? | |
15908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15909 | (exit $ac_status); }; }; then | |
15910 | ac_hi=$ac_mid; break | |
15911 | else | |
15912 | echo "$as_me: failed program was:" >&5 | |
15913 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15914 | ||
15915 | ac_lo=`expr $ac_mid + 1` | |
8a7b1113 VZ |
15916 | if test $ac_lo -le $ac_mid; then |
15917 | ac_lo= ac_hi= | |
15918 | break | |
15919 | fi | |
15920 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 15921 | fi |
8a7b1113 | 15922 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
15923 | done |
15924 | else | |
15925 | echo "$as_me: failed program was:" >&5 | |
15926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15927 | ||
15928 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15929 | #line $LINENO "configure" |
a848cd7e SC |
15930 | /* confdefs.h. */ |
15931 | _ACEOF | |
15932 | cat confdefs.h >>conftest.$ac_ext | |
15933 | cat >>conftest.$ac_ext <<_ACEOF | |
15934 | /* end confdefs.h. */ | |
15935 | $ac_includes_default | |
15936 | int | |
15937 | main () | |
15938 | { | |
15939 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) < 0)]; | |
15940 | test_array [0] = 0 | |
15941 | ||
15942 | ; | |
15943 | return 0; | |
15944 | } | |
15945 | _ACEOF | |
15946 | rm -f conftest.$ac_objext | |
15947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15948 | (eval $ac_compile) 2>&5 |
a848cd7e | 15949 | ac_status=$? |
a848cd7e SC |
15950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15951 | (exit $ac_status); } && | |
8a7b1113 | 15952 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15953 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15954 | (eval $ac_try) 2>&5 | |
15955 | ac_status=$? | |
15956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15957 | (exit $ac_status); }; }; then | |
15958 | ac_hi=-1 ac_mid=-1 | |
15959 | while :; do | |
15960 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 15961 | #line $LINENO "configure" |
a848cd7e SC |
15962 | /* confdefs.h. */ |
15963 | _ACEOF | |
15964 | cat confdefs.h >>conftest.$ac_ext | |
15965 | cat >>conftest.$ac_ext <<_ACEOF | |
15966 | /* end confdefs.h. */ | |
15967 | $ac_includes_default | |
15968 | int | |
15969 | main () | |
15970 | { | |
15971 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) >= $ac_mid)]; | |
15972 | test_array [0] = 0 | |
15973 | ||
15974 | ; | |
15975 | return 0; | |
15976 | } | |
15977 | _ACEOF | |
15978 | rm -f conftest.$ac_objext | |
15979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 15980 | (eval $ac_compile) 2>&5 |
a848cd7e | 15981 | ac_status=$? |
a848cd7e SC |
15982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15983 | (exit $ac_status); } && | |
8a7b1113 | 15984 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
15985 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15986 | (eval $ac_try) 2>&5 | |
15987 | ac_status=$? | |
15988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15989 | (exit $ac_status); }; }; then | |
15990 | ac_lo=$ac_mid; break | |
15991 | else | |
15992 | echo "$as_me: failed program was:" >&5 | |
15993 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15994 | ||
15995 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8a7b1113 VZ |
15996 | if test $ac_mid -le $ac_hi; then |
15997 | ac_lo= ac_hi= | |
15998 | break | |
15999 | fi | |
16000 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16001 | fi |
8a7b1113 | 16002 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16003 | done |
16004 | else | |
16005 | echo "$as_me: failed program was:" >&5 | |
16006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16007 | ||
16008 | ac_lo= ac_hi= | |
16009 | fi | |
8a7b1113 | 16010 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16011 | fi |
8a7b1113 | 16012 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16013 | # Binary search between lo and hi bounds. |
16014 | while test "x$ac_lo" != "x$ac_hi"; do | |
16015 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16016 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16017 | #line $LINENO "configure" |
a848cd7e SC |
16018 | /* confdefs.h. */ |
16019 | _ACEOF | |
16020 | cat confdefs.h >>conftest.$ac_ext | |
16021 | cat >>conftest.$ac_ext <<_ACEOF | |
16022 | /* end confdefs.h. */ | |
16023 | $ac_includes_default | |
16024 | int | |
16025 | main () | |
16026 | { | |
16027 | static int test_array [1 - 2 * !(((long) (sizeof (size_t))) <= $ac_mid)]; | |
16028 | test_array [0] = 0 | |
16029 | ||
16030 | ; | |
16031 | return 0; | |
16032 | } | |
16033 | _ACEOF | |
16034 | rm -f conftest.$ac_objext | |
16035 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16036 | (eval $ac_compile) 2>&5 |
a848cd7e | 16037 | ac_status=$? |
a848cd7e SC |
16038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16039 | (exit $ac_status); } && | |
8a7b1113 | 16040 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16042 | (eval $ac_try) 2>&5 | |
16043 | ac_status=$? | |
16044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16045 | (exit $ac_status); }; }; then | |
16046 | ac_hi=$ac_mid | |
16047 | else | |
16048 | echo "$as_me: failed program was:" >&5 | |
16049 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16050 | ||
16051 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16052 | fi | |
8a7b1113 | 16053 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16054 | done |
16055 | case $ac_lo in | |
16056 | ?*) ac_cv_sizeof_size_t=$ac_lo;; | |
16057 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16058 | See \`config.log' for more details." >&5 | |
16059 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16060 | See \`config.log' for more details." >&2;} | |
16061 | { (exit 1); exit 1; }; } ;; | |
16062 | esac | |
16063 | else | |
16064 | if test "$cross_compiling" = yes; then | |
16065 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16066 | See \`config.log' for more details." >&5 | |
16067 | echo "$as_me: error: cannot run test program while cross compiling | |
16068 | See \`config.log' for more details." >&2;} | |
16069 | { (exit 1); exit 1; }; } | |
16070 | else | |
16071 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16072 | #line $LINENO "configure" |
a848cd7e SC |
16073 | /* confdefs.h. */ |
16074 | _ACEOF | |
16075 | cat confdefs.h >>conftest.$ac_ext | |
16076 | cat >>conftest.$ac_ext <<_ACEOF | |
16077 | /* end confdefs.h. */ | |
16078 | $ac_includes_default | |
16079 | long longval () { return (long) (sizeof (size_t)); } | |
16080 | unsigned long ulongval () { return (long) (sizeof (size_t)); } | |
16081 | #include <stdio.h> | |
16082 | #include <stdlib.h> | |
16083 | int | |
16084 | main () | |
16085 | { | |
16086 | ||
16087 | FILE *f = fopen ("conftest.val", "w"); | |
16088 | if (! f) | |
16089 | exit (1); | |
16090 | if (((long) (sizeof (size_t))) < 0) | |
16091 | { | |
16092 | long i = longval (); | |
16093 | if (i != ((long) (sizeof (size_t)))) | |
16094 | exit (1); | |
16095 | fprintf (f, "%ld\n", i); | |
16096 | } | |
16097 | else | |
16098 | { | |
16099 | unsigned long i = ulongval (); | |
16100 | if (i != ((long) (sizeof (size_t)))) | |
16101 | exit (1); | |
16102 | fprintf (f, "%lu\n", i); | |
16103 | } | |
16104 | exit (ferror (f) || fclose (f) != 0); | |
16105 | ||
16106 | ; | |
16107 | return 0; | |
16108 | } | |
16109 | _ACEOF | |
16110 | rm -f conftest$ac_exeext | |
16111 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16112 | (eval $ac_link) 2>&5 | |
16113 | ac_status=$? | |
16114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16115 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16117 | (eval $ac_try) 2>&5 | |
16118 | ac_status=$? | |
16119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16120 | (exit $ac_status); }; }; then | |
16121 | ac_cv_sizeof_size_t=`cat conftest.val` | |
16122 | else | |
16123 | echo "$as_me: program exited with status $ac_status" >&5 | |
16124 | echo "$as_me: failed program was:" >&5 | |
16125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16126 | ||
16127 | ( exit $ac_status ) | |
16128 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t), 77 | |
16129 | See \`config.log' for more details." >&5 | |
16130 | echo "$as_me: error: cannot compute sizeof (size_t), 77 | |
16131 | See \`config.log' for more details." >&2;} | |
16132 | { (exit 1); exit 1; }; } | |
16133 | fi | |
8a7b1113 | 16134 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16135 | fi |
16136 | fi | |
16137 | rm -f conftest.val | |
16138 | else | |
16139 | ac_cv_sizeof_size_t=0 | |
16140 | fi | |
16141 | fi | |
16142 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5 | |
16143 | echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6 | |
16144 | cat >>confdefs.h <<_ACEOF | |
16145 | #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t | |
16146 | _ACEOF | |
16147 | ||
16148 | ||
16149 | ||
16150 | case "${host}" in | |
16151 | arm-*-linux* ) | |
16152 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16153 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16154 | if test "${ac_cv_type_long_long+set}" = set; then | |
16155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16156 | else | |
16157 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16158 | #line $LINENO "configure" |
a848cd7e SC |
16159 | /* confdefs.h. */ |
16160 | _ACEOF | |
16161 | cat confdefs.h >>conftest.$ac_ext | |
16162 | cat >>conftest.$ac_ext <<_ACEOF | |
16163 | /* end confdefs.h. */ | |
16164 | $ac_includes_default | |
16165 | int | |
16166 | main () | |
16167 | { | |
16168 | if ((long long *) 0) | |
16169 | return 0; | |
16170 | if (sizeof (long long)) | |
16171 | return 0; | |
16172 | ; | |
16173 | return 0; | |
16174 | } | |
16175 | _ACEOF | |
16176 | rm -f conftest.$ac_objext | |
16177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16178 | (eval $ac_compile) 2>&5 |
a848cd7e | 16179 | ac_status=$? |
a848cd7e SC |
16180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16181 | (exit $ac_status); } && | |
8a7b1113 | 16182 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16184 | (eval $ac_try) 2>&5 | |
16185 | ac_status=$? | |
16186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16187 | (exit $ac_status); }; }; then | |
16188 | ac_cv_type_long_long=yes | |
16189 | else | |
16190 | echo "$as_me: failed program was:" >&5 | |
16191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16192 | ||
16193 | ac_cv_type_long_long=no | |
16194 | fi | |
8a7b1113 | 16195 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16196 | fi |
16197 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16198 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16199 | ||
16200 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16201 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16202 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16204 | else | |
16205 | if test "$ac_cv_type_long_long" = yes; then | |
16206 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16207 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16208 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16209 | # This bug is HP SR number 8606223364. | |
16210 | if test "$cross_compiling" = yes; then | |
16211 | # Depending upon the size, compute the lo and hi bounds. | |
16212 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16213 | #line $LINENO "configure" |
a848cd7e SC |
16214 | /* confdefs.h. */ |
16215 | _ACEOF | |
16216 | cat confdefs.h >>conftest.$ac_ext | |
16217 | cat >>conftest.$ac_ext <<_ACEOF | |
16218 | /* end confdefs.h. */ | |
16219 | $ac_includes_default | |
16220 | int | |
16221 | main () | |
16222 | { | |
16223 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16224 | test_array [0] = 0 | |
16225 | ||
16226 | ; | |
16227 | return 0; | |
16228 | } | |
16229 | _ACEOF | |
16230 | rm -f conftest.$ac_objext | |
16231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16232 | (eval $ac_compile) 2>&5 |
a848cd7e | 16233 | ac_status=$? |
a848cd7e SC |
16234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16235 | (exit $ac_status); } && | |
8a7b1113 | 16236 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16238 | (eval $ac_try) 2>&5 | |
16239 | ac_status=$? | |
16240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16241 | (exit $ac_status); }; }; then | |
16242 | ac_lo=0 ac_mid=0 | |
16243 | while :; do | |
16244 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16245 | #line $LINENO "configure" |
a848cd7e SC |
16246 | /* confdefs.h. */ |
16247 | _ACEOF | |
16248 | cat confdefs.h >>conftest.$ac_ext | |
16249 | cat >>conftest.$ac_ext <<_ACEOF | |
16250 | /* end confdefs.h. */ | |
16251 | $ac_includes_default | |
16252 | int | |
16253 | main () | |
16254 | { | |
16255 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16256 | test_array [0] = 0 | |
16257 | ||
16258 | ; | |
16259 | return 0; | |
16260 | } | |
16261 | _ACEOF | |
16262 | rm -f conftest.$ac_objext | |
16263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16264 | (eval $ac_compile) 2>&5 |
a848cd7e | 16265 | ac_status=$? |
a848cd7e SC |
16266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16267 | (exit $ac_status); } && | |
8a7b1113 | 16268 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16270 | (eval $ac_try) 2>&5 | |
16271 | ac_status=$? | |
16272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16273 | (exit $ac_status); }; }; then | |
16274 | ac_hi=$ac_mid; break | |
16275 | else | |
16276 | echo "$as_me: failed program was:" >&5 | |
16277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16278 | ||
16279 | ac_lo=`expr $ac_mid + 1` | |
8a7b1113 VZ |
16280 | if test $ac_lo -le $ac_mid; then |
16281 | ac_lo= ac_hi= | |
16282 | break | |
16283 | fi | |
16284 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16285 | fi |
8a7b1113 | 16286 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16287 | done |
16288 | else | |
16289 | echo "$as_me: failed program was:" >&5 | |
16290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16291 | ||
16292 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16293 | #line $LINENO "configure" |
a848cd7e SC |
16294 | /* confdefs.h. */ |
16295 | _ACEOF | |
16296 | cat confdefs.h >>conftest.$ac_ext | |
16297 | cat >>conftest.$ac_ext <<_ACEOF | |
16298 | /* end confdefs.h. */ | |
16299 | $ac_includes_default | |
16300 | int | |
16301 | main () | |
16302 | { | |
16303 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16304 | test_array [0] = 0 | |
16305 | ||
16306 | ; | |
16307 | return 0; | |
16308 | } | |
16309 | _ACEOF | |
16310 | rm -f conftest.$ac_objext | |
16311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16312 | (eval $ac_compile) 2>&5 |
a848cd7e | 16313 | ac_status=$? |
a848cd7e SC |
16314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16315 | (exit $ac_status); } && | |
8a7b1113 | 16316 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16318 | (eval $ac_try) 2>&5 | |
16319 | ac_status=$? | |
16320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16321 | (exit $ac_status); }; }; then | |
16322 | ac_hi=-1 ac_mid=-1 | |
16323 | while :; do | |
16324 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16325 | #line $LINENO "configure" |
a848cd7e SC |
16326 | /* confdefs.h. */ |
16327 | _ACEOF | |
16328 | cat confdefs.h >>conftest.$ac_ext | |
16329 | cat >>conftest.$ac_ext <<_ACEOF | |
16330 | /* end confdefs.h. */ | |
16331 | $ac_includes_default | |
16332 | int | |
16333 | main () | |
16334 | { | |
16335 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16336 | test_array [0] = 0 | |
16337 | ||
16338 | ; | |
16339 | return 0; | |
16340 | } | |
16341 | _ACEOF | |
16342 | rm -f conftest.$ac_objext | |
16343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16344 | (eval $ac_compile) 2>&5 |
a848cd7e | 16345 | ac_status=$? |
a848cd7e SC |
16346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16347 | (exit $ac_status); } && | |
8a7b1113 | 16348 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16350 | (eval $ac_try) 2>&5 | |
16351 | ac_status=$? | |
16352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16353 | (exit $ac_status); }; }; then | |
16354 | ac_lo=$ac_mid; break | |
16355 | else | |
16356 | echo "$as_me: failed program was:" >&5 | |
16357 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16358 | ||
16359 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8a7b1113 VZ |
16360 | if test $ac_mid -le $ac_hi; then |
16361 | ac_lo= ac_hi= | |
16362 | break | |
16363 | fi | |
16364 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16365 | fi |
8a7b1113 | 16366 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16367 | done |
16368 | else | |
16369 | echo "$as_me: failed program was:" >&5 | |
16370 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16371 | ||
16372 | ac_lo= ac_hi= | |
16373 | fi | |
8a7b1113 | 16374 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16375 | fi |
8a7b1113 | 16376 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16377 | # Binary search between lo and hi bounds. |
16378 | while test "x$ac_lo" != "x$ac_hi"; do | |
16379 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16380 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16381 | #line $LINENO "configure" |
a848cd7e SC |
16382 | /* confdefs.h. */ |
16383 | _ACEOF | |
16384 | cat confdefs.h >>conftest.$ac_ext | |
16385 | cat >>conftest.$ac_ext <<_ACEOF | |
16386 | /* end confdefs.h. */ | |
16387 | $ac_includes_default | |
16388 | int | |
16389 | main () | |
16390 | { | |
16391 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16392 | test_array [0] = 0 | |
16393 | ||
16394 | ; | |
16395 | return 0; | |
16396 | } | |
16397 | _ACEOF | |
16398 | rm -f conftest.$ac_objext | |
16399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16400 | (eval $ac_compile) 2>&5 |
a848cd7e | 16401 | ac_status=$? |
a848cd7e SC |
16402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16403 | (exit $ac_status); } && | |
8a7b1113 | 16404 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16406 | (eval $ac_try) 2>&5 | |
16407 | ac_status=$? | |
16408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16409 | (exit $ac_status); }; }; then | |
16410 | ac_hi=$ac_mid | |
16411 | else | |
16412 | echo "$as_me: failed program was:" >&5 | |
16413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16414 | ||
16415 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16416 | fi | |
8a7b1113 | 16417 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16418 | done |
16419 | case $ac_lo in | |
16420 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16421 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16422 | See \`config.log' for more details." >&5 | |
16423 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16424 | See \`config.log' for more details." >&2;} | |
16425 | { (exit 1); exit 1; }; } ;; | |
16426 | esac | |
16427 | else | |
16428 | if test "$cross_compiling" = yes; then | |
16429 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16430 | See \`config.log' for more details." >&5 | |
16431 | echo "$as_me: error: cannot run test program while cross compiling | |
16432 | See \`config.log' for more details." >&2;} | |
16433 | { (exit 1); exit 1; }; } | |
16434 | else | |
16435 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16436 | #line $LINENO "configure" |
a848cd7e SC |
16437 | /* confdefs.h. */ |
16438 | _ACEOF | |
16439 | cat confdefs.h >>conftest.$ac_ext | |
16440 | cat >>conftest.$ac_ext <<_ACEOF | |
16441 | /* end confdefs.h. */ | |
16442 | $ac_includes_default | |
16443 | long longval () { return (long) (sizeof (long long)); } | |
16444 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
16445 | #include <stdio.h> | |
16446 | #include <stdlib.h> | |
16447 | int | |
16448 | main () | |
16449 | { | |
16450 | ||
16451 | FILE *f = fopen ("conftest.val", "w"); | |
16452 | if (! f) | |
16453 | exit (1); | |
16454 | if (((long) (sizeof (long long))) < 0) | |
16455 | { | |
16456 | long i = longval (); | |
16457 | if (i != ((long) (sizeof (long long)))) | |
16458 | exit (1); | |
16459 | fprintf (f, "%ld\n", i); | |
16460 | } | |
16461 | else | |
16462 | { | |
16463 | unsigned long i = ulongval (); | |
16464 | if (i != ((long) (sizeof (long long)))) | |
16465 | exit (1); | |
16466 | fprintf (f, "%lu\n", i); | |
16467 | } | |
16468 | exit (ferror (f) || fclose (f) != 0); | |
16469 | ||
16470 | ; | |
16471 | return 0; | |
16472 | } | |
16473 | _ACEOF | |
16474 | rm -f conftest$ac_exeext | |
16475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16476 | (eval $ac_link) 2>&5 | |
16477 | ac_status=$? | |
16478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16479 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16481 | (eval $ac_try) 2>&5 | |
16482 | ac_status=$? | |
16483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16484 | (exit $ac_status); }; }; then | |
16485 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16486 | else | |
16487 | echo "$as_me: program exited with status $ac_status" >&5 | |
16488 | echo "$as_me: failed program was:" >&5 | |
16489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16490 | ||
16491 | ( exit $ac_status ) | |
16492 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16493 | See \`config.log' for more details." >&5 | |
16494 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16495 | See \`config.log' for more details." >&2;} | |
16496 | { (exit 1); exit 1; }; } | |
16497 | fi | |
8a7b1113 | 16498 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16499 | fi |
16500 | fi | |
16501 | rm -f conftest.val | |
16502 | else | |
16503 | ac_cv_sizeof_long_long=0 | |
16504 | fi | |
16505 | fi | |
16506 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
16507 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16508 | cat >>confdefs.h <<_ACEOF | |
16509 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
16510 | _ACEOF | |
16511 | ||
16512 | ||
16513 | ;; | |
16514 | *-hp-hpux* ) | |
16515 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16516 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16517 | if test "${ac_cv_type_long_long+set}" = set; then | |
16518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16519 | else | |
16520 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16521 | #line $LINENO "configure" |
a848cd7e SC |
16522 | /* confdefs.h. */ |
16523 | _ACEOF | |
16524 | cat confdefs.h >>conftest.$ac_ext | |
16525 | cat >>conftest.$ac_ext <<_ACEOF | |
16526 | /* end confdefs.h. */ | |
16527 | $ac_includes_default | |
16528 | int | |
16529 | main () | |
16530 | { | |
16531 | if ((long long *) 0) | |
16532 | return 0; | |
16533 | if (sizeof (long long)) | |
16534 | return 0; | |
16535 | ; | |
16536 | return 0; | |
16537 | } | |
16538 | _ACEOF | |
16539 | rm -f conftest.$ac_objext | |
16540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16541 | (eval $ac_compile) 2>&5 |
a848cd7e | 16542 | ac_status=$? |
a848cd7e SC |
16543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16544 | (exit $ac_status); } && | |
8a7b1113 | 16545 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16546 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16547 | (eval $ac_try) 2>&5 | |
16548 | ac_status=$? | |
16549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16550 | (exit $ac_status); }; }; then | |
16551 | ac_cv_type_long_long=yes | |
16552 | else | |
16553 | echo "$as_me: failed program was:" >&5 | |
16554 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16555 | ||
16556 | ac_cv_type_long_long=no | |
16557 | fi | |
8a7b1113 | 16558 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16559 | fi |
16560 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16561 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16562 | ||
16563 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16564 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16565 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16567 | else | |
16568 | if test "$ac_cv_type_long_long" = yes; then | |
16569 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16570 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16571 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16572 | # This bug is HP SR number 8606223364. | |
16573 | if test "$cross_compiling" = yes; then | |
16574 | # Depending upon the size, compute the lo and hi bounds. | |
16575 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16576 | #line $LINENO "configure" |
a848cd7e SC |
16577 | /* confdefs.h. */ |
16578 | _ACEOF | |
16579 | cat confdefs.h >>conftest.$ac_ext | |
16580 | cat >>conftest.$ac_ext <<_ACEOF | |
16581 | /* end confdefs.h. */ | |
16582 | $ac_includes_default | |
16583 | int | |
16584 | main () | |
16585 | { | |
16586 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16587 | test_array [0] = 0 | |
16588 | ||
16589 | ; | |
16590 | return 0; | |
16591 | } | |
16592 | _ACEOF | |
16593 | rm -f conftest.$ac_objext | |
16594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16595 | (eval $ac_compile) 2>&5 |
a848cd7e | 16596 | ac_status=$? |
a848cd7e SC |
16597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16598 | (exit $ac_status); } && | |
8a7b1113 | 16599 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16601 | (eval $ac_try) 2>&5 | |
16602 | ac_status=$? | |
16603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16604 | (exit $ac_status); }; }; then | |
16605 | ac_lo=0 ac_mid=0 | |
16606 | while :; do | |
16607 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16608 | #line $LINENO "configure" |
a848cd7e SC |
16609 | /* confdefs.h. */ |
16610 | _ACEOF | |
16611 | cat confdefs.h >>conftest.$ac_ext | |
16612 | cat >>conftest.$ac_ext <<_ACEOF | |
16613 | /* end confdefs.h. */ | |
16614 | $ac_includes_default | |
16615 | int | |
16616 | main () | |
16617 | { | |
16618 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16619 | test_array [0] = 0 | |
16620 | ||
16621 | ; | |
16622 | return 0; | |
16623 | } | |
16624 | _ACEOF | |
16625 | rm -f conftest.$ac_objext | |
16626 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16627 | (eval $ac_compile) 2>&5 |
a848cd7e | 16628 | ac_status=$? |
a848cd7e SC |
16629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16630 | (exit $ac_status); } && | |
8a7b1113 | 16631 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16633 | (eval $ac_try) 2>&5 | |
16634 | ac_status=$? | |
16635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16636 | (exit $ac_status); }; }; then | |
16637 | ac_hi=$ac_mid; break | |
16638 | else | |
16639 | echo "$as_me: failed program was:" >&5 | |
16640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16641 | ||
16642 | ac_lo=`expr $ac_mid + 1` | |
8a7b1113 VZ |
16643 | if test $ac_lo -le $ac_mid; then |
16644 | ac_lo= ac_hi= | |
16645 | break | |
16646 | fi | |
16647 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 16648 | fi |
8a7b1113 | 16649 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16650 | done |
16651 | else | |
16652 | echo "$as_me: failed program was:" >&5 | |
16653 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16654 | ||
16655 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16656 | #line $LINENO "configure" |
a848cd7e SC |
16657 | /* confdefs.h. */ |
16658 | _ACEOF | |
16659 | cat confdefs.h >>conftest.$ac_ext | |
16660 | cat >>conftest.$ac_ext <<_ACEOF | |
16661 | /* end confdefs.h. */ | |
16662 | $ac_includes_default | |
16663 | int | |
16664 | main () | |
16665 | { | |
16666 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
16667 | test_array [0] = 0 | |
16668 | ||
16669 | ; | |
16670 | return 0; | |
16671 | } | |
16672 | _ACEOF | |
16673 | rm -f conftest.$ac_objext | |
16674 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16675 | (eval $ac_compile) 2>&5 |
a848cd7e | 16676 | ac_status=$? |
a848cd7e SC |
16677 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16678 | (exit $ac_status); } && | |
8a7b1113 | 16679 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16681 | (eval $ac_try) 2>&5 | |
16682 | ac_status=$? | |
16683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16684 | (exit $ac_status); }; }; then | |
16685 | ac_hi=-1 ac_mid=-1 | |
16686 | while :; do | |
16687 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16688 | #line $LINENO "configure" |
a848cd7e SC |
16689 | /* confdefs.h. */ |
16690 | _ACEOF | |
16691 | cat confdefs.h >>conftest.$ac_ext | |
16692 | cat >>conftest.$ac_ext <<_ACEOF | |
16693 | /* end confdefs.h. */ | |
16694 | $ac_includes_default | |
16695 | int | |
16696 | main () | |
16697 | { | |
16698 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
16699 | test_array [0] = 0 | |
16700 | ||
16701 | ; | |
16702 | return 0; | |
16703 | } | |
16704 | _ACEOF | |
16705 | rm -f conftest.$ac_objext | |
16706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16707 | (eval $ac_compile) 2>&5 |
a848cd7e | 16708 | ac_status=$? |
a848cd7e SC |
16709 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16710 | (exit $ac_status); } && | |
8a7b1113 | 16711 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16712 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16713 | (eval $ac_try) 2>&5 | |
16714 | ac_status=$? | |
16715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16716 | (exit $ac_status); }; }; then | |
16717 | ac_lo=$ac_mid; break | |
16718 | else | |
16719 | echo "$as_me: failed program was:" >&5 | |
16720 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16721 | ||
16722 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8a7b1113 VZ |
16723 | if test $ac_mid -le $ac_hi; then |
16724 | ac_lo= ac_hi= | |
16725 | break | |
16726 | fi | |
16727 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 16728 | fi |
8a7b1113 | 16729 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16730 | done |
16731 | else | |
16732 | echo "$as_me: failed program was:" >&5 | |
16733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16734 | ||
16735 | ac_lo= ac_hi= | |
16736 | fi | |
8a7b1113 | 16737 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 16738 | fi |
8a7b1113 | 16739 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16740 | # Binary search between lo and hi bounds. |
16741 | while test "x$ac_lo" != "x$ac_hi"; do | |
16742 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16743 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16744 | #line $LINENO "configure" |
a848cd7e SC |
16745 | /* confdefs.h. */ |
16746 | _ACEOF | |
16747 | cat confdefs.h >>conftest.$ac_ext | |
16748 | cat >>conftest.$ac_ext <<_ACEOF | |
16749 | /* end confdefs.h. */ | |
16750 | $ac_includes_default | |
16751 | int | |
16752 | main () | |
16753 | { | |
16754 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16755 | test_array [0] = 0 | |
16756 | ||
16757 | ; | |
16758 | return 0; | |
16759 | } | |
16760 | _ACEOF | |
16761 | rm -f conftest.$ac_objext | |
16762 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16763 | (eval $ac_compile) 2>&5 |
a848cd7e | 16764 | ac_status=$? |
a848cd7e SC |
16765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16766 | (exit $ac_status); } && | |
8a7b1113 | 16767 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16769 | (eval $ac_try) 2>&5 | |
16770 | ac_status=$? | |
16771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16772 | (exit $ac_status); }; }; then | |
16773 | ac_hi=$ac_mid | |
16774 | else | |
16775 | echo "$as_me: failed program was:" >&5 | |
16776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16777 | ||
16778 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16779 | fi | |
8a7b1113 | 16780 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16781 | done |
16782 | case $ac_lo in | |
16783 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
16784 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16785 | See \`config.log' for more details." >&5 | |
16786 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16787 | See \`config.log' for more details." >&2;} | |
16788 | { (exit 1); exit 1; }; } ;; | |
16789 | esac | |
16790 | else | |
16791 | if test "$cross_compiling" = yes; then | |
16792 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16793 | See \`config.log' for more details." >&5 | |
16794 | echo "$as_me: error: cannot run test program while cross compiling | |
16795 | See \`config.log' for more details." >&2;} | |
16796 | { (exit 1); exit 1; }; } | |
16797 | else | |
16798 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16799 | #line $LINENO "configure" |
a848cd7e SC |
16800 | /* confdefs.h. */ |
16801 | _ACEOF | |
16802 | cat confdefs.h >>conftest.$ac_ext | |
16803 | cat >>conftest.$ac_ext <<_ACEOF | |
16804 | /* end confdefs.h. */ | |
16805 | $ac_includes_default | |
16806 | long longval () { return (long) (sizeof (long long)); } | |
16807 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
16808 | #include <stdio.h> | |
16809 | #include <stdlib.h> | |
16810 | int | |
16811 | main () | |
16812 | { | |
16813 | ||
16814 | FILE *f = fopen ("conftest.val", "w"); | |
16815 | if (! f) | |
16816 | exit (1); | |
16817 | if (((long) (sizeof (long long))) < 0) | |
16818 | { | |
16819 | long i = longval (); | |
16820 | if (i != ((long) (sizeof (long long)))) | |
16821 | exit (1); | |
16822 | fprintf (f, "%ld\n", i); | |
16823 | } | |
16824 | else | |
16825 | { | |
16826 | unsigned long i = ulongval (); | |
16827 | if (i != ((long) (sizeof (long long)))) | |
16828 | exit (1); | |
16829 | fprintf (f, "%lu\n", i); | |
16830 | } | |
16831 | exit (ferror (f) || fclose (f) != 0); | |
16832 | ||
16833 | ; | |
16834 | return 0; | |
16835 | } | |
16836 | _ACEOF | |
16837 | rm -f conftest$ac_exeext | |
16838 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16839 | (eval $ac_link) 2>&5 | |
16840 | ac_status=$? | |
16841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16842 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16844 | (eval $ac_try) 2>&5 | |
16845 | ac_status=$? | |
16846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16847 | (exit $ac_status); }; }; then | |
16848 | ac_cv_sizeof_long_long=`cat conftest.val` | |
16849 | else | |
16850 | echo "$as_me: program exited with status $ac_status" >&5 | |
16851 | echo "$as_me: failed program was:" >&5 | |
16852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16853 | ||
16854 | ( exit $ac_status ) | |
16855 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
16856 | See \`config.log' for more details." >&5 | |
16857 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
16858 | See \`config.log' for more details." >&2;} | |
16859 | { (exit 1); exit 1; }; } | |
16860 | fi | |
8a7b1113 | 16861 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16862 | fi |
16863 | fi | |
16864 | rm -f conftest.val | |
16865 | else | |
16866 | ac_cv_sizeof_long_long=0 | |
16867 | fi | |
16868 | fi | |
16869 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
16870 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
16871 | cat >>confdefs.h <<_ACEOF | |
16872 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
16873 | _ACEOF | |
16874 | ||
16875 | ||
16876 | if test "$ac_cv_sizeof_long_long" != "0"; then | |
16877 | CPPFLAGS="$CPPFLAGS -D_INCLUDE_LONGLONG" | |
16878 | fi | |
16879 | ;; | |
16880 | * ) | |
16881 | echo "$as_me:$LINENO: checking for long long" >&5 | |
16882 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
16883 | if test "${ac_cv_type_long_long+set}" = set; then | |
16884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16885 | else | |
16886 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16887 | #line $LINENO "configure" |
a848cd7e SC |
16888 | /* confdefs.h. */ |
16889 | _ACEOF | |
16890 | cat confdefs.h >>conftest.$ac_ext | |
16891 | cat >>conftest.$ac_ext <<_ACEOF | |
16892 | /* end confdefs.h. */ | |
16893 | $ac_includes_default | |
16894 | int | |
16895 | main () | |
16896 | { | |
16897 | if ((long long *) 0) | |
16898 | return 0; | |
16899 | if (sizeof (long long)) | |
16900 | return 0; | |
16901 | ; | |
16902 | return 0; | |
16903 | } | |
16904 | _ACEOF | |
16905 | rm -f conftest.$ac_objext | |
16906 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16907 | (eval $ac_compile) 2>&5 |
a848cd7e | 16908 | ac_status=$? |
a848cd7e SC |
16909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16910 | (exit $ac_status); } && | |
8a7b1113 | 16911 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16913 | (eval $ac_try) 2>&5 | |
16914 | ac_status=$? | |
16915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16916 | (exit $ac_status); }; }; then | |
16917 | ac_cv_type_long_long=yes | |
16918 | else | |
16919 | echo "$as_me: failed program was:" >&5 | |
16920 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16921 | ||
16922 | ac_cv_type_long_long=no | |
16923 | fi | |
8a7b1113 | 16924 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
16925 | fi |
16926 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 | |
16927 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
16928 | ||
16929 | echo "$as_me:$LINENO: checking size of long long" >&5 | |
16930 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
16931 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
16932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16933 | else | |
16934 | if test "$ac_cv_type_long_long" = yes; then | |
16935 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16936 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16937 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16938 | # This bug is HP SR number 8606223364. | |
16939 | if test "$cross_compiling" = yes; then | |
16940 | # Depending upon the size, compute the lo and hi bounds. | |
16941 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16942 | #line $LINENO "configure" |
a848cd7e SC |
16943 | /* confdefs.h. */ |
16944 | _ACEOF | |
16945 | cat confdefs.h >>conftest.$ac_ext | |
16946 | cat >>conftest.$ac_ext <<_ACEOF | |
16947 | /* end confdefs.h. */ | |
16948 | $ac_includes_default | |
16949 | int | |
16950 | main () | |
16951 | { | |
16952 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
16953 | test_array [0] = 0 | |
16954 | ||
16955 | ; | |
16956 | return 0; | |
16957 | } | |
16958 | _ACEOF | |
16959 | rm -f conftest.$ac_objext | |
16960 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16961 | (eval $ac_compile) 2>&5 |
a848cd7e | 16962 | ac_status=$? |
a848cd7e SC |
16963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16964 | (exit $ac_status); } && | |
8a7b1113 | 16965 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16967 | (eval $ac_try) 2>&5 | |
16968 | ac_status=$? | |
16969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16970 | (exit $ac_status); }; }; then | |
16971 | ac_lo=0 ac_mid=0 | |
16972 | while :; do | |
16973 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 16974 | #line $LINENO "configure" |
a848cd7e SC |
16975 | /* confdefs.h. */ |
16976 | _ACEOF | |
16977 | cat confdefs.h >>conftest.$ac_ext | |
16978 | cat >>conftest.$ac_ext <<_ACEOF | |
16979 | /* end confdefs.h. */ | |
16980 | $ac_includes_default | |
16981 | int | |
16982 | main () | |
16983 | { | |
16984 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
16985 | test_array [0] = 0 | |
16986 | ||
16987 | ; | |
16988 | return 0; | |
16989 | } | |
16990 | _ACEOF | |
16991 | rm -f conftest.$ac_objext | |
16992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 16993 | (eval $ac_compile) 2>&5 |
a848cd7e | 16994 | ac_status=$? |
a848cd7e SC |
16995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16996 | (exit $ac_status); } && | |
8a7b1113 | 16997 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
16998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16999 | (eval $ac_try) 2>&5 | |
17000 | ac_status=$? | |
17001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17002 | (exit $ac_status); }; }; then | |
17003 | ac_hi=$ac_mid; break | |
17004 | else | |
17005 | echo "$as_me: failed program was:" >&5 | |
17006 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17007 | ||
17008 | ac_lo=`expr $ac_mid + 1` | |
8a7b1113 VZ |
17009 | if test $ac_lo -le $ac_mid; then |
17010 | ac_lo= ac_hi= | |
17011 | break | |
17012 | fi | |
17013 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
a848cd7e | 17014 | fi |
8a7b1113 | 17015 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17016 | done |
17017 | else | |
17018 | echo "$as_me: failed program was:" >&5 | |
17019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17020 | ||
17021 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17022 | #line $LINENO "configure" |
a848cd7e SC |
17023 | /* confdefs.h. */ |
17024 | _ACEOF | |
17025 | cat confdefs.h >>conftest.$ac_ext | |
17026 | cat >>conftest.$ac_ext <<_ACEOF | |
17027 | /* end confdefs.h. */ | |
17028 | $ac_includes_default | |
17029 | int | |
17030 | main () | |
17031 | { | |
17032 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
17033 | test_array [0] = 0 | |
17034 | ||
17035 | ; | |
17036 | return 0; | |
17037 | } | |
17038 | _ACEOF | |
17039 | rm -f conftest.$ac_objext | |
17040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 17041 | (eval $ac_compile) 2>&5 |
a848cd7e | 17042 | ac_status=$? |
a848cd7e SC |
17043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17044 | (exit $ac_status); } && | |
8a7b1113 | 17045 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
17046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17047 | (eval $ac_try) 2>&5 | |
17048 | ac_status=$? | |
17049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17050 | (exit $ac_status); }; }; then | |
17051 | ac_hi=-1 ac_mid=-1 | |
17052 | while :; do | |
17053 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17054 | #line $LINENO "configure" |
a848cd7e SC |
17055 | /* confdefs.h. */ |
17056 | _ACEOF | |
17057 | cat confdefs.h >>conftest.$ac_ext | |
17058 | cat >>conftest.$ac_ext <<_ACEOF | |
17059 | /* end confdefs.h. */ | |
17060 | $ac_includes_default | |
17061 | int | |
17062 | main () | |
17063 | { | |
17064 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
17065 | test_array [0] = 0 | |
17066 | ||
17067 | ; | |
17068 | return 0; | |
17069 | } | |
17070 | _ACEOF | |
17071 | rm -f conftest.$ac_objext | |
17072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 17073 | (eval $ac_compile) 2>&5 |
a848cd7e | 17074 | ac_status=$? |
a848cd7e SC |
17075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17076 | (exit $ac_status); } && | |
8a7b1113 | 17077 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
17078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17079 | (eval $ac_try) 2>&5 | |
17080 | ac_status=$? | |
17081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17082 | (exit $ac_status); }; }; then | |
17083 | ac_lo=$ac_mid; break | |
17084 | else | |
17085 | echo "$as_me: failed program was:" >&5 | |
17086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17087 | ||
17088 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8a7b1113 VZ |
17089 | if test $ac_mid -le $ac_hi; then |
17090 | ac_lo= ac_hi= | |
17091 | break | |
17092 | fi | |
17093 | ac_mid=`expr 2 '*' $ac_mid` | |
a848cd7e | 17094 | fi |
8a7b1113 | 17095 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17096 | done |
17097 | else | |
17098 | echo "$as_me: failed program was:" >&5 | |
17099 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17100 | ||
17101 | ac_lo= ac_hi= | |
17102 | fi | |
8a7b1113 | 17103 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e | 17104 | fi |
8a7b1113 | 17105 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17106 | # Binary search between lo and hi bounds. |
17107 | while test "x$ac_lo" != "x$ac_hi"; do | |
17108 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
17109 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17110 | #line $LINENO "configure" |
a848cd7e SC |
17111 | /* confdefs.h. */ |
17112 | _ACEOF | |
17113 | cat confdefs.h >>conftest.$ac_ext | |
17114 | cat >>conftest.$ac_ext <<_ACEOF | |
17115 | /* end confdefs.h. */ | |
17116 | $ac_includes_default | |
17117 | int | |
17118 | main () | |
17119 | { | |
17120 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
17121 | test_array [0] = 0 | |
17122 | ||
17123 | ; | |
17124 | return 0; | |
17125 | } | |
17126 | _ACEOF | |
17127 | rm -f conftest.$ac_objext | |
17128 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 17129 | (eval $ac_compile) 2>&5 |
a848cd7e | 17130 | ac_status=$? |
a848cd7e SC |
17131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17132 | (exit $ac_status); } && | |
8a7b1113 | 17133 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
17134 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17135 | (eval $ac_try) 2>&5 | |
17136 | ac_status=$? | |
17137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17138 | (exit $ac_status); }; }; then | |
17139 | ac_hi=$ac_mid | |
17140 | else | |
17141 | echo "$as_me: failed program was:" >&5 | |
17142 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17143 | ||
17144 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
17145 | fi | |
8a7b1113 | 17146 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17147 | done |
17148 | case $ac_lo in | |
17149 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
17150 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17151 | See \`config.log' for more details." >&5 | |
17152 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17153 | See \`config.log' for more details." >&2;} | |
17154 | { (exit 1); exit 1; }; } ;; | |
17155 | esac | |
17156 | else | |
17157 | if test "$cross_compiling" = yes; then | |
17158 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
17159 | See \`config.log' for more details." >&5 | |
17160 | echo "$as_me: error: cannot run test program while cross compiling | |
17161 | See \`config.log' for more details." >&2;} | |
17162 | { (exit 1); exit 1; }; } | |
17163 | else | |
17164 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17165 | #line $LINENO "configure" |
a848cd7e SC |
17166 | /* confdefs.h. */ |
17167 | _ACEOF | |
17168 | cat confdefs.h >>conftest.$ac_ext | |
17169 | cat >>conftest.$ac_ext <<_ACEOF | |
17170 | /* end confdefs.h. */ | |
17171 | $ac_includes_default | |
17172 | long longval () { return (long) (sizeof (long long)); } | |
17173 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
17174 | #include <stdio.h> | |
17175 | #include <stdlib.h> | |
17176 | int | |
17177 | main () | |
17178 | { | |
17179 | ||
17180 | FILE *f = fopen ("conftest.val", "w"); | |
17181 | if (! f) | |
17182 | exit (1); | |
17183 | if (((long) (sizeof (long long))) < 0) | |
17184 | { | |
17185 | long i = longval (); | |
17186 | if (i != ((long) (sizeof (long long)))) | |
17187 | exit (1); | |
17188 | fprintf (f, "%ld\n", i); | |
17189 | } | |
17190 | else | |
17191 | { | |
17192 | unsigned long i = ulongval (); | |
17193 | if (i != ((long) (sizeof (long long)))) | |
17194 | exit (1); | |
17195 | fprintf (f, "%lu\n", i); | |
17196 | } | |
17197 | exit (ferror (f) || fclose (f) != 0); | |
17198 | ||
17199 | ; | |
17200 | return 0; | |
17201 | } | |
17202 | _ACEOF | |
17203 | rm -f conftest$ac_exeext | |
17204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17205 | (eval $ac_link) 2>&5 | |
17206 | ac_status=$? | |
17207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17208 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17210 | (eval $ac_try) 2>&5 | |
17211 | ac_status=$? | |
17212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17213 | (exit $ac_status); }; }; then | |
17214 | ac_cv_sizeof_long_long=`cat conftest.val` | |
17215 | else | |
17216 | echo "$as_me: program exited with status $ac_status" >&5 | |
17217 | echo "$as_me: failed program was:" >&5 | |
17218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17219 | ||
17220 | ( exit $ac_status ) | |
17221 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
17222 | See \`config.log' for more details." >&5 | |
17223 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
17224 | See \`config.log' for more details." >&2;} | |
17225 | { (exit 1); exit 1; }; } | |
17226 | fi | |
8a7b1113 | 17227 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17228 | fi |
17229 | fi | |
17230 | rm -f conftest.val | |
17231 | else | |
17232 | ac_cv_sizeof_long_long=0 | |
17233 | fi | |
17234 | fi | |
17235 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 | |
17236 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
17237 | cat >>confdefs.h <<_ACEOF | |
17238 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
17239 | _ACEOF | |
17240 | ||
17241 | ||
17242 | esac | |
17243 | ||
17244 | echo "$as_me:$LINENO: checking size of wchar_t" >&5 | |
17245 | echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6 | |
17246 | if test "${wx_cv_sizeof_wchar_t+set}" = set; then | |
17247 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17248 | else | |
17249 | ||
17250 | if test "$cross_compiling" = yes; then | |
17251 | ||
17252 | case "${host}" in | |
17253 | *-pc-msdosdjgpp ) | |
17254 | wx_cv_sizeof_wchar_t=0 | |
17255 | ;; | |
17256 | * ) | |
17257 | wx_cv_sizeof_wchar_t=4 | |
17258 | ;; | |
17259 | esac | |
17260 | ||
17261 | ||
17262 | else | |
17263 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17264 | #line $LINENO "configure" |
a848cd7e SC |
17265 | /* confdefs.h. */ |
17266 | _ACEOF | |
17267 | cat confdefs.h >>conftest.$ac_ext | |
17268 | cat >>conftest.$ac_ext <<_ACEOF | |
17269 | /* end confdefs.h. */ | |
17270 | ||
17271 | /* DJGPP only has fake wchar_t: */ | |
17272 | #ifdef __DJGPP__ | |
17273 | # error "fake wchar_t" | |
17274 | #endif | |
17275 | #ifdef HAVE_WCHAR_H | |
17276 | # ifdef __CYGWIN__ | |
17277 | # include <stddef.h> | |
17278 | # endif | |
17279 | # include <wchar.h> | |
17280 | #endif | |
17281 | #ifdef HAVE_STDLIB_H | |
17282 | # include <stdlib.h> | |
17283 | #endif | |
17284 | #include <stdio.h> | |
17285 | int main() | |
17286 | { | |
17287 | FILE *f=fopen("conftestval", "w"); | |
17288 | if (!f) exit(1); | |
17289 | fprintf(f, "%i", sizeof(wchar_t)); | |
17290 | exit(0); | |
17291 | } | |
17292 | ||
17293 | _ACEOF | |
17294 | rm -f conftest$ac_exeext | |
17295 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17296 | (eval $ac_link) 2>&5 | |
17297 | ac_status=$? | |
17298 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17299 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17301 | (eval $ac_try) 2>&5 | |
17302 | ac_status=$? | |
17303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17304 | (exit $ac_status); }; }; then | |
17305 | wx_cv_sizeof_wchar_t=`cat conftestval` | |
17306 | else | |
17307 | echo "$as_me: program exited with status $ac_status" >&5 | |
17308 | echo "$as_me: failed program was:" >&5 | |
17309 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17310 | ||
17311 | ( exit $ac_status ) | |
17312 | wx_cv_sizeof_wchar_t=0 | |
17313 | fi | |
8a7b1113 | 17314 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17315 | fi |
17316 | ||
17317 | fi | |
17318 | echo "$as_me:$LINENO: result: $wx_cv_sizeof_wchar_t" >&5 | |
17319 | echo "${ECHO_T}$wx_cv_sizeof_wchar_t" >&6 | |
17320 | ||
17321 | cat >>confdefs.h <<_ACEOF | |
17322 | #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t | |
17323 | _ACEOF | |
17324 | ||
17325 | ||
17326 | # Check whether --enable-largefile or --disable-largefile was given. | |
17327 | if test "${enable_largefile+set}" = set; then | |
17328 | enableval="$enable_largefile" | |
17329 | ||
17330 | fi; | |
17331 | if test "$enable_largefile" != no; then | |
17332 | wx_largefile=no | |
17333 | ||
17334 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
17335 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
17336 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
17337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17338 | else | |
17339 | ||
17340 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17341 | #line $LINENO "configure" |
a848cd7e SC |
17342 | /* confdefs.h. */ |
17343 | _ACEOF | |
17344 | cat confdefs.h >>conftest.$ac_ext | |
17345 | cat >>conftest.$ac_ext <<_ACEOF | |
17346 | /* end confdefs.h. */ | |
17347 | #define _FILE_OFFSET_BITS 64 | |
17348 | #include <sys/types.h> | |
17349 | int | |
17350 | main () | |
17351 | { | |
17352 | typedef struct { | |
17353 | unsigned int field: sizeof(off_t) == 8; | |
17354 | } wxlf; | |
17355 | ||
17356 | ; | |
17357 | return 0; | |
17358 | } | |
17359 | _ACEOF | |
17360 | rm -f conftest.$ac_objext | |
17361 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 17362 | (eval $ac_compile) 2>&5 |
a848cd7e | 17363 | ac_status=$? |
a848cd7e SC |
17364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17365 | (exit $ac_status); } && | |
8a7b1113 | 17366 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
17367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17368 | (eval $ac_try) 2>&5 | |
17369 | ac_status=$? | |
17370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17371 | (exit $ac_status); }; }; then | |
17372 | ac_cv_sys_file_offset_bits=64 | |
17373 | else | |
17374 | echo "$as_me: failed program was:" >&5 | |
17375 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17376 | ||
17377 | ac_cv_sys_file_offset_bits=no | |
17378 | fi | |
8a7b1113 | 17379 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17380 | |
17381 | ||
17382 | fi | |
17383 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
17384 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
17385 | ||
17386 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
17387 | wx_largefile=yes | |
17388 | cat >>confdefs.h <<_ACEOF | |
17389 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
17390 | _ACEOF | |
17391 | ||
17392 | fi | |
17393 | ||
17394 | if test "x$wx_largefile" != "xyes"; then | |
17395 | ||
17396 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
17397 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
17398 | if test "${ac_cv_sys_large_files+set}" = set; then | |
17399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17400 | else | |
17401 | ||
17402 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17403 | #line $LINENO "configure" |
a848cd7e SC |
17404 | /* confdefs.h. */ |
17405 | _ACEOF | |
17406 | cat confdefs.h >>conftest.$ac_ext | |
17407 | cat >>conftest.$ac_ext <<_ACEOF | |
17408 | /* end confdefs.h. */ | |
17409 | #define _LARGE_FILES 1 | |
17410 | #include <sys/types.h> | |
17411 | int | |
17412 | main () | |
17413 | { | |
17414 | typedef struct { | |
17415 | unsigned int field: sizeof(off_t) == 8; | |
17416 | } wxlf; | |
17417 | ||
17418 | ; | |
17419 | return 0; | |
17420 | } | |
17421 | _ACEOF | |
17422 | rm -f conftest.$ac_objext | |
17423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 17424 | (eval $ac_compile) 2>&5 |
a848cd7e | 17425 | ac_status=$? |
a848cd7e SC |
17426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17427 | (exit $ac_status); } && | |
8a7b1113 | 17428 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
17429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17430 | (eval $ac_try) 2>&5 | |
17431 | ac_status=$? | |
17432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17433 | (exit $ac_status); }; }; then | |
17434 | ac_cv_sys_large_files=1 | |
17435 | else | |
17436 | echo "$as_me: failed program was:" >&5 | |
17437 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17438 | ||
17439 | ac_cv_sys_large_files=no | |
17440 | fi | |
8a7b1113 | 17441 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17442 | |
17443 | ||
17444 | fi | |
17445 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
17446 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
17447 | ||
17448 | if test "$ac_cv_sys_large_files" != no; then | |
17449 | wx_largefile=yes | |
17450 | cat >>confdefs.h <<_ACEOF | |
17451 | #define _LARGE_FILES $ac_cv_sys_large_files | |
17452 | _ACEOF | |
17453 | ||
17454 | fi | |
17455 | ||
17456 | fi | |
17457 | ||
17458 | echo "$as_me:$LINENO: checking if large file support is available" >&5 | |
17459 | echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6 | |
17460 | if test "x$wx_largefile" = "xyes"; then | |
17461 | cat >>confdefs.h <<\_ACEOF | |
17462 | #define HAVE_LARGEFILE_SUPPORT 1 | |
17463 | _ACEOF | |
17464 | ||
17465 | fi | |
17466 | echo "$as_me:$LINENO: result: $wx_largefile" >&5 | |
17467 | echo "${ECHO_T}$wx_largefile" >&6 | |
17468 | fi | |
17469 | ||
17470 | ||
17471 | if test "x$wx_largefile" = "xyes"; then | |
17472 | if test "x$ac_cv_sys_file_offset_bits" = "x64"; then | |
17473 | WX_LARGEFILE_FLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" | |
17474 | else | |
17475 | WX_LARGEFILE_FLAGS="-D_LARGE_FILES" | |
17476 | fi | |
17477 | CPPFLAGS="$CPPFLAGS $WX_LARGEFILE_FLAGS" | |
17478 | fi | |
17479 | ||
17480 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 | |
17481 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
17482 | if test "${ac_cv_c_bigendian+set}" = set; then | |
17483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17484 | else | |
17485 | ac_cv_c_bigendian=unknown | |
17486 | # See if sys/param.h defines the BYTE_ORDER macro. | |
17487 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17488 | #line $LINENO "configure" |
a848cd7e SC |
17489 | /* confdefs.h. */ |
17490 | _ACEOF | |
17491 | cat confdefs.h >>conftest.$ac_ext | |
17492 | cat >>conftest.$ac_ext <<_ACEOF | |
17493 | /* end confdefs.h. */ | |
17494 | #include <sys/types.h> | |
17495 | #include <sys/param.h> | |
17496 | int | |
17497 | main () | |
17498 | { | |
17499 | ||
17500 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN | |
17501 | bogus endian macros | |
17502 | #endif | |
17503 | ; | |
17504 | return 0; | |
17505 | } | |
17506 | _ACEOF | |
17507 | rm -f conftest.$ac_objext | |
17508 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 17509 | (eval $ac_compile) 2>&5 |
a848cd7e | 17510 | ac_status=$? |
a848cd7e SC |
17511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17512 | (exit $ac_status); } && | |
8a7b1113 | 17513 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
17514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17515 | (eval $ac_try) 2>&5 | |
17516 | ac_status=$? | |
17517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17518 | (exit $ac_status); }; }; then | |
17519 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
17520 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17521 | #line $LINENO "configure" |
a848cd7e SC |
17522 | /* confdefs.h. */ |
17523 | _ACEOF | |
17524 | cat confdefs.h >>conftest.$ac_ext | |
17525 | cat >>conftest.$ac_ext <<_ACEOF | |
17526 | /* end confdefs.h. */ | |
17527 | #include <sys/types.h> | |
17528 | #include <sys/param.h> | |
17529 | int | |
17530 | main () | |
17531 | { | |
17532 | ||
17533 | #if BYTE_ORDER != BIG_ENDIAN | |
17534 | not big endian | |
17535 | #endif | |
17536 | ; | |
17537 | return 0; | |
17538 | } | |
17539 | _ACEOF | |
17540 | rm -f conftest.$ac_objext | |
17541 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 17542 | (eval $ac_compile) 2>&5 |
a848cd7e | 17543 | ac_status=$? |
a848cd7e SC |
17544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17545 | (exit $ac_status); } && | |
8a7b1113 | 17546 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
17547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17548 | (eval $ac_try) 2>&5 | |
17549 | ac_status=$? | |
17550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17551 | (exit $ac_status); }; }; then | |
17552 | ac_cv_c_bigendian=yes | |
17553 | else | |
17554 | echo "$as_me: failed program was:" >&5 | |
17555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17556 | ||
17557 | ac_cv_c_bigendian=no | |
17558 | fi | |
8a7b1113 | 17559 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17560 | else |
17561 | echo "$as_me: failed program was:" >&5 | |
17562 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17563 | ||
17564 | fi | |
8a7b1113 | 17565 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17566 | if test $ac_cv_c_bigendian = unknown; then |
17567 | if test "$cross_compiling" = yes; then | |
17568 | ac_cv_c_bigendian=unknown | |
17569 | else | |
17570 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17571 | #line $LINENO "configure" |
a848cd7e SC |
17572 | /* confdefs.h. */ |
17573 | _ACEOF | |
17574 | cat confdefs.h >>conftest.$ac_ext | |
17575 | cat >>conftest.$ac_ext <<_ACEOF | |
17576 | /* end confdefs.h. */ | |
17577 | main () { | |
17578 | /* Are we little or big endian? From Harbison&Steele. */ | |
17579 | union | |
17580 | { | |
17581 | long l; | |
17582 | char c[sizeof (long)]; | |
17583 | } u; | |
17584 | u.l = 1; | |
17585 | exit (u.c[sizeof (long) - 1] == 1); | |
17586 | } | |
17587 | _ACEOF | |
17588 | rm -f conftest$ac_exeext | |
17589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17590 | (eval $ac_link) 2>&5 | |
17591 | ac_status=$? | |
17592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17593 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17595 | (eval $ac_try) 2>&5 | |
17596 | ac_status=$? | |
17597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17598 | (exit $ac_status); }; }; then | |
17599 | ac_cv_c_bigendian=no | |
17600 | else | |
17601 | echo "$as_me: program exited with status $ac_status" >&5 | |
17602 | echo "$as_me: failed program was:" >&5 | |
17603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17604 | ||
17605 | ( exit $ac_status ) | |
17606 | ac_cv_c_bigendian=yes | |
17607 | fi | |
8a7b1113 | 17608 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17609 | fi |
17610 | fi | |
17611 | fi | |
17612 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 | |
17613 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
17614 | if test $ac_cv_c_bigendian = unknown; then | |
17615 | { 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 | |
17616 | 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;} | |
17617 | fi | |
17618 | if test $ac_cv_c_bigendian = yes; then | |
17619 | cat >>confdefs.h <<\_ACEOF | |
17620 | #define WORDS_BIGENDIAN 1 | |
17621 | _ACEOF | |
17622 | ||
17623 | fi | |
17624 | ||
17625 | ||
17626 | ac_ext=cc | |
17627 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17628 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17629 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17630 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17631 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
17632 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | |
17633 | if test -z "$CXXCPP"; then | |
17634 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
17635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17636 | else | |
17637 | # Double quotes because CXXCPP needs to be expanded | |
17638 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
17639 | do | |
17640 | ac_preproc_ok=false | |
17641 | for ac_cxx_preproc_warn_flag in '' yes | |
17642 | do | |
17643 | # Use a header file that comes with gcc, so configuring glibc | |
17644 | # with a fresh cross-compiler works. | |
17645 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17646 | # <limits.h> exists even on freestanding compilers. | |
17647 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17648 | # not just through cpp. "Syntax error" is here to catch this case. | |
17649 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17650 | #line $LINENO "configure" |
a848cd7e SC |
17651 | /* confdefs.h. */ |
17652 | _ACEOF | |
17653 | cat confdefs.h >>conftest.$ac_ext | |
17654 | cat >>conftest.$ac_ext <<_ACEOF | |
17655 | /* end confdefs.h. */ | |
17656 | #ifdef __STDC__ | |
17657 | # include <limits.h> | |
17658 | #else | |
17659 | # include <assert.h> | |
17660 | #endif | |
8a7b1113 | 17661 | Syntax error |
a848cd7e SC |
17662 | _ACEOF |
17663 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17664 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17665 | ac_status=$? | |
17666 | grep -v '^ *+' conftest.er1 >conftest.err | |
17667 | rm -f conftest.er1 | |
17668 | cat conftest.err >&5 | |
17669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17670 | (exit $ac_status); } >/dev/null; then | |
17671 | if test -s conftest.err; then | |
17672 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
a848cd7e SC |
17673 | else |
17674 | ac_cpp_err= | |
17675 | fi | |
17676 | else | |
17677 | ac_cpp_err=yes | |
17678 | fi | |
17679 | if test -z "$ac_cpp_err"; then | |
17680 | : | |
17681 | else | |
17682 | echo "$as_me: failed program was:" >&5 | |
17683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17684 | ||
17685 | # Broken: fails on valid input. | |
17686 | continue | |
17687 | fi | |
17688 | rm -f conftest.err conftest.$ac_ext | |
17689 | ||
17690 | # OK, works on sane cases. Now check whether non-existent headers | |
17691 | # can be detected and how. | |
17692 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17693 | #line $LINENO "configure" |
a848cd7e SC |
17694 | /* confdefs.h. */ |
17695 | _ACEOF | |
17696 | cat confdefs.h >>conftest.$ac_ext | |
17697 | cat >>conftest.$ac_ext <<_ACEOF | |
17698 | /* end confdefs.h. */ | |
17699 | #include <ac_nonexistent.h> | |
17700 | _ACEOF | |
17701 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17702 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17703 | ac_status=$? | |
17704 | grep -v '^ *+' conftest.er1 >conftest.err | |
17705 | rm -f conftest.er1 | |
17706 | cat conftest.err >&5 | |
17707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17708 | (exit $ac_status); } >/dev/null; then | |
17709 | if test -s conftest.err; then | |
17710 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
a848cd7e SC |
17711 | else |
17712 | ac_cpp_err= | |
17713 | fi | |
17714 | else | |
17715 | ac_cpp_err=yes | |
17716 | fi | |
17717 | if test -z "$ac_cpp_err"; then | |
17718 | # Broken: success on invalid input. | |
17719 | continue | |
17720 | else | |
17721 | echo "$as_me: failed program was:" >&5 | |
17722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17723 | ||
17724 | # Passes both tests. | |
17725 | ac_preproc_ok=: | |
17726 | break | |
17727 | fi | |
17728 | rm -f conftest.err conftest.$ac_ext | |
17729 | ||
17730 | done | |
17731 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17732 | rm -f conftest.err conftest.$ac_ext | |
17733 | if $ac_preproc_ok; then | |
17734 | break | |
17735 | fi | |
17736 | ||
17737 | done | |
17738 | ac_cv_prog_CXXCPP=$CXXCPP | |
17739 | ||
17740 | fi | |
17741 | CXXCPP=$ac_cv_prog_CXXCPP | |
17742 | else | |
17743 | ac_cv_prog_CXXCPP=$CXXCPP | |
17744 | fi | |
17745 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
17746 | echo "${ECHO_T}$CXXCPP" >&6 | |
17747 | ac_preproc_ok=false | |
17748 | for ac_cxx_preproc_warn_flag in '' yes | |
17749 | do | |
17750 | # Use a header file that comes with gcc, so configuring glibc | |
17751 | # with a fresh cross-compiler works. | |
17752 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17753 | # <limits.h> exists even on freestanding compilers. | |
17754 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
17755 | # not just through cpp. "Syntax error" is here to catch this case. | |
17756 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17757 | #line $LINENO "configure" |
a848cd7e SC |
17758 | /* confdefs.h. */ |
17759 | _ACEOF | |
17760 | cat confdefs.h >>conftest.$ac_ext | |
17761 | cat >>conftest.$ac_ext <<_ACEOF | |
17762 | /* end confdefs.h. */ | |
17763 | #ifdef __STDC__ | |
17764 | # include <limits.h> | |
17765 | #else | |
17766 | # include <assert.h> | |
17767 | #endif | |
8a7b1113 | 17768 | Syntax error |
a848cd7e SC |
17769 | _ACEOF |
17770 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17771 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17772 | ac_status=$? | |
17773 | grep -v '^ *+' conftest.er1 >conftest.err | |
17774 | rm -f conftest.er1 | |
17775 | cat conftest.err >&5 | |
17776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17777 | (exit $ac_status); } >/dev/null; then | |
17778 | if test -s conftest.err; then | |
17779 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
a848cd7e SC |
17780 | else |
17781 | ac_cpp_err= | |
17782 | fi | |
17783 | else | |
17784 | ac_cpp_err=yes | |
17785 | fi | |
17786 | if test -z "$ac_cpp_err"; then | |
17787 | : | |
17788 | else | |
17789 | echo "$as_me: failed program was:" >&5 | |
17790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17791 | ||
17792 | # Broken: fails on valid input. | |
17793 | continue | |
17794 | fi | |
17795 | rm -f conftest.err conftest.$ac_ext | |
17796 | ||
17797 | # OK, works on sane cases. Now check whether non-existent headers | |
17798 | # can be detected and how. | |
17799 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17800 | #line $LINENO "configure" |
a848cd7e SC |
17801 | /* confdefs.h. */ |
17802 | _ACEOF | |
17803 | cat confdefs.h >>conftest.$ac_ext | |
17804 | cat >>conftest.$ac_ext <<_ACEOF | |
17805 | /* end confdefs.h. */ | |
17806 | #include <ac_nonexistent.h> | |
17807 | _ACEOF | |
17808 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17809 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17810 | ac_status=$? | |
17811 | grep -v '^ *+' conftest.er1 >conftest.err | |
17812 | rm -f conftest.er1 | |
17813 | cat conftest.err >&5 | |
17814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17815 | (exit $ac_status); } >/dev/null; then | |
17816 | if test -s conftest.err; then | |
17817 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
a848cd7e SC |
17818 | else |
17819 | ac_cpp_err= | |
17820 | fi | |
17821 | else | |
17822 | ac_cpp_err=yes | |
17823 | fi | |
17824 | if test -z "$ac_cpp_err"; then | |
17825 | # Broken: success on invalid input. | |
17826 | continue | |
17827 | else | |
17828 | echo "$as_me: failed program was:" >&5 | |
17829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17830 | ||
17831 | # Passes both tests. | |
17832 | ac_preproc_ok=: | |
17833 | break | |
17834 | fi | |
17835 | rm -f conftest.err conftest.$ac_ext | |
17836 | ||
17837 | done | |
17838 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
17839 | rm -f conftest.err conftest.$ac_ext | |
17840 | if $ac_preproc_ok; then | |
17841 | : | |
17842 | else | |
17843 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17844 | See \`config.log' for more details." >&5 | |
17845 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
17846 | See \`config.log' for more details." >&2;} | |
17847 | { (exit 1); exit 1; }; } | |
17848 | fi | |
17849 | ||
17850 | ac_ext=cc | |
17851 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17852 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17853 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17854 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17855 | ||
17856 | ||
17857 | ||
17858 | ||
17859 | ||
17860 | ac_ext=cc | |
17861 | ac_cpp='$CXXCPP $CPPFLAGS' | |
17862 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
17863 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
17864 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
17865 | ||
17866 | ||
17867 | ||
17868 | for ac_header in iostream | |
17869 | do | |
17870 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
17871 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17872 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17876 | fi | |
17877 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17878 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17879 | else | |
17880 | # Is the header compilable? | |
17881 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17882 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17883 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17884 | #line $LINENO "configure" |
a848cd7e SC |
17885 | /* confdefs.h. */ |
17886 | _ACEOF | |
17887 | cat confdefs.h >>conftest.$ac_ext | |
17888 | cat >>conftest.$ac_ext <<_ACEOF | |
17889 | /* end confdefs.h. */ | |
17890 | $ac_includes_default | |
17891 | #include <$ac_header> | |
17892 | _ACEOF | |
17893 | rm -f conftest.$ac_objext | |
17894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 17895 | (eval $ac_compile) 2>&5 |
a848cd7e | 17896 | ac_status=$? |
a848cd7e SC |
17897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17898 | (exit $ac_status); } && | |
8a7b1113 | 17899 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
17900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17901 | (eval $ac_try) 2>&5 | |
17902 | ac_status=$? | |
17903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17904 | (exit $ac_status); }; }; then | |
17905 | ac_header_compiler=yes | |
17906 | else | |
17907 | echo "$as_me: failed program was:" >&5 | |
17908 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17909 | ||
17910 | ac_header_compiler=no | |
17911 | fi | |
8a7b1113 | 17912 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
17913 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
17914 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17915 | ||
17916 | # Is the header present? | |
17917 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17918 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17919 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 17920 | #line $LINENO "configure" |
a848cd7e SC |
17921 | /* confdefs.h. */ |
17922 | _ACEOF | |
17923 | cat confdefs.h >>conftest.$ac_ext | |
17924 | cat >>conftest.$ac_ext <<_ACEOF | |
17925 | /* end confdefs.h. */ | |
17926 | #include <$ac_header> | |
17927 | _ACEOF | |
17928 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17929 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17930 | ac_status=$? | |
17931 | grep -v '^ *+' conftest.er1 >conftest.err | |
17932 | rm -f conftest.er1 | |
17933 | cat conftest.err >&5 | |
17934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17935 | (exit $ac_status); } >/dev/null; then | |
17936 | if test -s conftest.err; then | |
17937 | ac_cpp_err=$ac_cxx_preproc_warn_flag | |
a848cd7e SC |
17938 | else |
17939 | ac_cpp_err= | |
17940 | fi | |
17941 | else | |
17942 | ac_cpp_err=yes | |
17943 | fi | |
17944 | if test -z "$ac_cpp_err"; then | |
17945 | ac_header_preproc=yes | |
17946 | else | |
17947 | echo "$as_me: failed program was:" >&5 | |
17948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17949 | ||
17950 | ac_header_preproc=no | |
17951 | fi | |
17952 | rm -f conftest.err conftest.$ac_ext | |
17953 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17954 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17955 | ||
17956 | # So? What about this header? | |
8a7b1113 VZ |
17957 | case $ac_header_compiler:$ac_header_preproc in |
17958 | yes:no ) | |
a848cd7e SC |
17959 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
17960 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
17961 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17962 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17963 | ( | |
17964 | cat <<\_ASBOX | |
17965 | ## ------------------------------------ ## | |
17966 | ## Report this to bug-autoconf@gnu.org. ## | |
17967 | ## ------------------------------------ ## | |
17968 | _ASBOX | |
17969 | ) | | |
17970 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 17971 | ;; |
8a7b1113 | 17972 | no:yes ) |
a848cd7e SC |
17973 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
17974 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
17975 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
17976 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
17977 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
17978 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
17979 | ( |
17980 | cat <<\_ASBOX | |
8a7b1113 VZ |
17981 | ## ------------------------------------ ## |
17982 | ## Report this to bug-autoconf@gnu.org. ## | |
17983 | ## ------------------------------------ ## | |
a848cd7e SC |
17984 | _ASBOX |
17985 | ) | | |
17986 | sed "s/^/$as_me: WARNING: /" >&2 | |
17987 | ;; | |
17988 | esac | |
17989 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17990 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17991 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17992 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17993 | else | |
8a7b1113 | 17994 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
17995 | fi |
17996 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17997 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17998 | ||
17999 | fi | |
18000 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
18001 | cat >>confdefs.h <<_ACEOF | |
18002 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
18003 | _ACEOF | |
18004 | ||
18005 | fi | |
18006 | ||
18007 | done | |
18008 | ||
18009 | ||
18010 | if test "$ac_cv_header_iostream" = "yes" ; then | |
18011 | : | |
18012 | else | |
18013 | cat >>confdefs.h <<\_ACEOF | |
18014 | #define wxUSE_IOSTREAMH 1 | |
18015 | _ACEOF | |
18016 | ||
18017 | fi | |
18018 | ||
18019 | ac_ext=c | |
18020 | ac_cpp='$CPP $CPPFLAGS' | |
18021 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18022 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18023 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18024 | ||
18025 | ||
18026 | ||
18027 | ||
18028 | echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5 | |
18029 | echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6 | |
18030 | if test "${wx_cv_cpp_bool+set}" = set; then | |
18031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18032 | else | |
18033 | ||
18034 | ||
18035 | ||
18036 | ac_ext=cc | |
18037 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18038 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18039 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18040 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18041 | ||
18042 | ||
18043 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 18044 | #line $LINENO "configure" |
a848cd7e SC |
18045 | /* confdefs.h. */ |
18046 | _ACEOF | |
18047 | cat confdefs.h >>conftest.$ac_ext | |
18048 | cat >>conftest.$ac_ext <<_ACEOF | |
18049 | /* end confdefs.h. */ | |
18050 | ||
18051 | ||
18052 | int | |
18053 | main () | |
18054 | { | |
18055 | ||
18056 | bool b = true; | |
18057 | ||
18058 | return 0; | |
18059 | ||
18060 | ; | |
18061 | return 0; | |
18062 | } | |
18063 | _ACEOF | |
18064 | rm -f conftest.$ac_objext | |
18065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 18066 | (eval $ac_compile) 2>&5 |
a848cd7e | 18067 | ac_status=$? |
a848cd7e SC |
18068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18069 | (exit $ac_status); } && | |
8a7b1113 | 18070 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
18071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18072 | (eval $ac_try) 2>&5 | |
18073 | ac_status=$? | |
18074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18075 | (exit $ac_status); }; }; then | |
18076 | ||
18077 | wx_cv_cpp_bool=yes | |
18078 | ||
18079 | else | |
18080 | echo "$as_me: failed program was:" >&5 | |
18081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18082 | ||
18083 | ||
18084 | wx_cv_cpp_bool=no | |
18085 | ||
18086 | ||
18087 | fi | |
8a7b1113 | 18088 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18089 | |
18090 | ac_ext=c | |
18091 | ac_cpp='$CPP $CPPFLAGS' | |
18092 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18093 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18094 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18095 | ||
18096 | ||
18097 | fi | |
18098 | echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5 | |
18099 | echo "${ECHO_T}$wx_cv_cpp_bool" >&6 | |
18100 | ||
18101 | if test "$wx_cv_cpp_bool" = "yes"; then | |
18102 | cat >>confdefs.h <<\_ACEOF | |
18103 | #define HAVE_BOOL 1 | |
18104 | _ACEOF | |
18105 | ||
18106 | fi | |
18107 | ||
18108 | ||
18109 | ||
18110 | echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5 | |
18111 | echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6 | |
18112 | if test "${wx_cv_explicit+set}" = set; then | |
18113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18114 | else | |
18115 | ||
18116 | ||
18117 | ||
18118 | ac_ext=cc | |
18119 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18120 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18121 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18122 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18123 | ||
18124 | ||
18125 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 18126 | #line $LINENO "configure" |
a848cd7e SC |
18127 | /* confdefs.h. */ |
18128 | _ACEOF | |
18129 | cat confdefs.h >>conftest.$ac_ext | |
18130 | cat >>conftest.$ac_ext <<_ACEOF | |
18131 | /* end confdefs.h. */ | |
18132 | ||
18133 | class Foo { public: explicit Foo(int) {} }; | |
18134 | ||
18135 | int | |
18136 | main () | |
18137 | { | |
18138 | ||
18139 | return 0; | |
18140 | ||
18141 | ; | |
18142 | return 0; | |
18143 | } | |
18144 | _ACEOF | |
18145 | rm -f conftest.$ac_objext | |
18146 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 18147 | (eval $ac_compile) 2>&5 |
a848cd7e | 18148 | ac_status=$? |
a848cd7e SC |
18149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18150 | (exit $ac_status); } && | |
8a7b1113 | 18151 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
18152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18153 | (eval $ac_try) 2>&5 | |
18154 | ac_status=$? | |
18155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18156 | (exit $ac_status); }; }; then | |
18157 | ||
18158 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 18159 | #line $LINENO "configure" |
a848cd7e SC |
18160 | /* confdefs.h. */ |
18161 | _ACEOF | |
18162 | cat confdefs.h >>conftest.$ac_ext | |
18163 | cat >>conftest.$ac_ext <<_ACEOF | |
18164 | /* end confdefs.h. */ | |
18165 | ||
18166 | class Foo { public: explicit Foo(int) {} }; | |
18167 | static void TakeFoo(const Foo& foo) { } | |
18168 | ||
18169 | int | |
18170 | main () | |
18171 | { | |
18172 | ||
18173 | TakeFoo(17); | |
18174 | return 0; | |
18175 | ||
18176 | ; | |
18177 | return 0; | |
18178 | } | |
18179 | _ACEOF | |
18180 | rm -f conftest.$ac_objext | |
18181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 18182 | (eval $ac_compile) 2>&5 |
a848cd7e | 18183 | ac_status=$? |
a848cd7e SC |
18184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18185 | (exit $ac_status); } && | |
8a7b1113 | 18186 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
18187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18188 | (eval $ac_try) 2>&5 | |
18189 | ac_status=$? | |
18190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18191 | (exit $ac_status); }; }; then | |
18192 | wx_cv_explicit=no | |
18193 | else | |
18194 | echo "$as_me: failed program was:" >&5 | |
18195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18196 | ||
18197 | wx_cv_explicit=yes | |
18198 | ||
18199 | fi | |
8a7b1113 | 18200 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18201 | |
18202 | else | |
18203 | echo "$as_me: failed program was:" >&5 | |
18204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18205 | ||
18206 | wx_cv_explicit=no | |
18207 | ||
18208 | fi | |
8a7b1113 | 18209 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18210 | |
18211 | ac_ext=c | |
18212 | ac_cpp='$CPP $CPPFLAGS' | |
18213 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18214 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18215 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18216 | ||
18217 | ||
18218 | fi | |
18219 | echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5 | |
18220 | echo "${ECHO_T}$wx_cv_explicit" >&6 | |
18221 | ||
18222 | if test "$wx_cv_explicit" = "yes"; then | |
18223 | cat >>confdefs.h <<\_ACEOF | |
18224 | #define HAVE_EXPLICIT 1 | |
18225 | _ACEOF | |
18226 | ||
18227 | fi | |
18228 | ||
18229 | ||
18230 | echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5 | |
18231 | echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6 | |
18232 | if test "${ac_cv_cxx_const_cast+set}" = set; then | |
18233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18234 | else | |
18235 | ||
18236 | ||
18237 | ac_ext=cc | |
18238 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18239 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18240 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18241 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18242 | ||
18243 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 18244 | #line $LINENO "configure" |
a848cd7e SC |
18245 | /* confdefs.h. */ |
18246 | _ACEOF | |
18247 | cat confdefs.h >>conftest.$ac_ext | |
18248 | cat >>conftest.$ac_ext <<_ACEOF | |
18249 | /* end confdefs.h. */ | |
18250 | ||
18251 | int | |
18252 | main () | |
18253 | { | |
18254 | int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z; | |
18255 | ; | |
18256 | return 0; | |
18257 | } | |
18258 | _ACEOF | |
18259 | rm -f conftest.$ac_objext | |
18260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 18261 | (eval $ac_compile) 2>&5 |
a848cd7e | 18262 | ac_status=$? |
a848cd7e SC |
18263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18264 | (exit $ac_status); } && | |
8a7b1113 | 18265 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
18266 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18267 | (eval $ac_try) 2>&5 | |
18268 | ac_status=$? | |
18269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18270 | (exit $ac_status); }; }; then | |
18271 | ac_cv_cxx_const_cast=yes | |
18272 | else | |
18273 | echo "$as_me: failed program was:" >&5 | |
18274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18275 | ||
18276 | ac_cv_cxx_const_cast=no | |
18277 | fi | |
8a7b1113 | 18278 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18279 | ac_ext=c |
18280 | ac_cpp='$CPP $CPPFLAGS' | |
18281 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18282 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18283 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18284 | ||
18285 | ||
18286 | fi | |
18287 | echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5 | |
18288 | echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6 | |
18289 | if test "$ac_cv_cxx_const_cast" = yes; then | |
18290 | ||
18291 | cat >>confdefs.h <<\_ACEOF | |
18292 | #define HAVE_CONST_CAST | |
18293 | _ACEOF | |
18294 | ||
18295 | fi | |
18296 | ||
18297 | echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5 | |
18298 | echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6 | |
18299 | if test "${ac_cv_cxx_static_cast+set}" = set; then | |
18300 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18301 | else | |
18302 | ||
18303 | ||
18304 | ac_ext=cc | |
18305 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18306 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18307 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18308 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18309 | ||
18310 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 18311 | #line $LINENO "configure" |
a848cd7e SC |
18312 | /* confdefs.h. */ |
18313 | _ACEOF | |
18314 | cat confdefs.h >>conftest.$ac_ext | |
18315 | cat >>conftest.$ac_ext <<_ACEOF | |
18316 | /* end confdefs.h. */ | |
18317 | #include <typeinfo> | |
18318 | class Base { public : Base () {} virtual void f () = 0; }; | |
18319 | class Derived : public Base { public : Derived () {} virtual void f () {} }; | |
18320 | int g (Derived&) { return 0; } | |
18321 | int | |
18322 | main () | |
18323 | { | |
18324 | ||
18325 | Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s); | |
18326 | ; | |
18327 | return 0; | |
18328 | } | |
18329 | _ACEOF | |
18330 | rm -f conftest.$ac_objext | |
18331 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 18332 | (eval $ac_compile) 2>&5 |
a848cd7e | 18333 | ac_status=$? |
a848cd7e SC |
18334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18335 | (exit $ac_status); } && | |
8a7b1113 | 18336 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
18337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18338 | (eval $ac_try) 2>&5 | |
18339 | ac_status=$? | |
18340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18341 | (exit $ac_status); }; }; then | |
18342 | ac_cv_cxx_static_cast=yes | |
18343 | else | |
18344 | echo "$as_me: failed program was:" >&5 | |
18345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18346 | ||
18347 | ac_cv_cxx_static_cast=no | |
18348 | fi | |
8a7b1113 | 18349 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18350 | ac_ext=c |
18351 | ac_cpp='$CPP $CPPFLAGS' | |
18352 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18353 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18354 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18355 | ||
18356 | ||
18357 | fi | |
18358 | echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5 | |
18359 | echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6 | |
18360 | if test "$ac_cv_cxx_static_cast" = yes; then | |
18361 | ||
18362 | cat >>confdefs.h <<\_ACEOF | |
18363 | #define HAVE_STATIC_CAST | |
18364 | _ACEOF | |
18365 | ||
18366 | fi | |
18367 | ||
18368 | ||
18369 | if test "$wxUSE_STL" = "yes"; then | |
18370 | ac_ext=cc | |
18371 | ac_cpp='$CXXCPP $CPPFLAGS' | |
18372 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18373 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18374 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
18375 | ||
18376 | ||
18377 | echo "$as_me:$LINENO: checking for basic STL functionality" >&5 | |
18378 | echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6 | |
18379 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 18380 | #line $LINENO "configure" |
a848cd7e SC |
18381 | /* confdefs.h. */ |
18382 | _ACEOF | |
18383 | cat confdefs.h >>conftest.$ac_ext | |
18384 | cat >>conftest.$ac_ext <<_ACEOF | |
18385 | /* end confdefs.h. */ | |
18386 | #include <string> | |
18387 | #include <functional> | |
18388 | #include <algorithm> | |
18389 | #include <vector> | |
18390 | #include <list> | |
18391 | int | |
18392 | main () | |
18393 | { | |
18394 | std::vector<int> moo; | |
18395 | std::list<int> foo; | |
18396 | std::vector<int>::iterator it = | |
18397 | std::find_if(moo.begin(), moo.end(), | |
18398 | std::bind2nd(std::less<int>(), 3)); | |
18399 | ; | |
18400 | return 0; | |
18401 | } | |
18402 | _ACEOF | |
18403 | rm -f conftest.$ac_objext | |
18404 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 18405 | (eval $ac_compile) 2>&5 |
a848cd7e | 18406 | ac_status=$? |
a848cd7e SC |
18407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18408 | (exit $ac_status); } && | |
8a7b1113 | 18409 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
18410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18411 | (eval $ac_try) 2>&5 | |
18412 | ac_status=$? | |
18413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18414 | (exit $ac_status); }; }; then | |
18415 | echo "$as_me:$LINENO: result: yes" >&5 | |
18416 | echo "${ECHO_T}yes" >&6 | |
18417 | else | |
18418 | echo "$as_me: failed program was:" >&5 | |
18419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18420 | ||
18421 | echo "$as_me:$LINENO: result: no" >&5 | |
18422 | echo "${ECHO_T}no" >&6 | |
18423 | { { echo "$as_me:$LINENO: error: Basic STL functionality missing" >&5 | |
18424 | echo "$as_me: error: Basic STL functionality missing" >&2;} | |
18425 | { (exit 1); exit 1; }; } | |
18426 | fi | |
8a7b1113 | 18427 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18428 | |
18429 | echo "$as_me:$LINENO: checking for std::wstring in <string>" >&5 | |
18430 | echo $ECHO_N "checking for std::wstring in <string>... $ECHO_C" >&6 | |
18431 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 18432 | #line $LINENO "configure" |
a848cd7e SC |
18433 | /* confdefs.h. */ |
18434 | _ACEOF | |
18435 | cat confdefs.h >>conftest.$ac_ext | |
18436 | cat >>conftest.$ac_ext <<_ACEOF | |
18437 | /* end confdefs.h. */ | |
18438 | #include <string> | |
18439 | int | |
18440 | main () | |
18441 | { | |
18442 | std::wstring foo; | |
18443 | ; | |
18444 | return 0; | |
18445 | } | |
18446 | _ACEOF | |
18447 | rm -f conftest.$ac_objext | |
18448 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 18449 | (eval $ac_compile) 2>&5 |
a848cd7e | 18450 | ac_status=$? |
a848cd7e SC |
18451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18452 | (exit $ac_status); } && | |
8a7b1113 | 18453 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
18454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18455 | (eval $ac_try) 2>&5 | |
18456 | ac_status=$? | |
18457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18458 | (exit $ac_status); }; }; then | |
18459 | echo "$as_me:$LINENO: result: yes" >&5 | |
18460 | echo "${ECHO_T}yes" >&6 | |
18461 | cat >>confdefs.h <<\_ACEOF | |
18462 | #define HAVE_STD_WSTRING 1 | |
18463 | _ACEOF | |
18464 | ||
18465 | else | |
18466 | echo "$as_me: failed program was:" >&5 | |
18467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18468 | ||
18469 | echo "$as_me:$LINENO: result: no" >&5 | |
18470 | echo "${ECHO_T}no" >&6 | |
18471 | fi | |
8a7b1113 | 18472 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18473 | |
18474 | echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5 | |
18475 | echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6 | |
18476 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 18477 | #line $LINENO "configure" |
a848cd7e SC |
18478 | /* confdefs.h. */ |
18479 | _ACEOF | |
18480 | cat confdefs.h >>conftest.$ac_ext | |
18481 | cat >>conftest.$ac_ext <<_ACEOF | |
18482 | /* end confdefs.h. */ | |
18483 | #include <string> | |
18484 | int | |
18485 | main () | |
18486 | { | |
18487 | std::string foo, bar; | |
18488 | foo.compare(bar); | |
18489 | foo.compare(1, 1, bar); | |
18490 | foo.compare(1, 1, bar, 1, 1); | |
18491 | foo.compare(""); | |
18492 | foo.compare(1, 1, ""); | |
18493 | foo.compare(1, 1, "", 2); | |
18494 | ; | |
18495 | return 0; | |
18496 | } | |
18497 | _ACEOF | |
18498 | rm -f conftest.$ac_objext | |
18499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 18500 | (eval $ac_compile) 2>&5 |
a848cd7e | 18501 | ac_status=$? |
a848cd7e SC |
18502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18503 | (exit $ac_status); } && | |
8a7b1113 | 18504 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
18505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18506 | (eval $ac_try) 2>&5 | |
18507 | ac_status=$? | |
18508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18509 | (exit $ac_status); }; }; then | |
18510 | echo "$as_me:$LINENO: result: yes" >&5 | |
18511 | echo "${ECHO_T}yes" >&6 | |
18512 | cat >>confdefs.h <<\_ACEOF | |
18513 | #define HAVE_STD_STRING_COMPARE 1 | |
18514 | _ACEOF | |
18515 | ||
18516 | else | |
18517 | echo "$as_me: failed program was:" >&5 | |
18518 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18519 | ||
18520 | echo "$as_me:$LINENO: result: no" >&5 | |
18521 | echo "${ECHO_T}no" >&6 | |
18522 | fi | |
8a7b1113 | 18523 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18524 | |
18525 | ac_ext=c | |
18526 | ac_cpp='$CPP $CPPFLAGS' | |
18527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18530 | ||
18531 | fi | |
18532 | ||
18533 | ||
18534 | SEARCH_INCLUDE="\ | |
18535 | /usr/local/include \ | |
18536 | \ | |
18537 | /usr/Motif-2.1/include \ | |
18538 | /usr/Motif-1.2/include \ | |
18539 | /usr/include/Motif1.2 \ | |
18540 | /opt/xpm/include/X11 \ | |
18541 | /opt/GBxpm/include/ \ | |
18542 | /opt/GBxpm/X11/include/ \ | |
18543 | \ | |
18544 | /usr/dt/include \ | |
18545 | /usr/openwin/include \ | |
18546 | \ | |
18547 | /usr/include/Xm \ | |
18548 | \ | |
18549 | /usr/X11R6/include \ | |
18550 | /usr/X11R6.4/include \ | |
18551 | /usr/X11R5/include \ | |
18552 | /usr/X11R4/include \ | |
18553 | \ | |
18554 | /usr/include/X11R6 \ | |
18555 | /usr/include/X11R5 \ | |
18556 | /usr/include/X11R4 \ | |
18557 | \ | |
18558 | /usr/local/X11R6/include \ | |
18559 | /usr/local/X11R5/include \ | |
18560 | /usr/local/X11R4/include \ | |
18561 | \ | |
18562 | /usr/local/include/X11R6 \ | |
18563 | /usr/local/include/X11R5 \ | |
18564 | /usr/local/include/X11R4 \ | |
18565 | \ | |
18566 | /usr/X11/include \ | |
18567 | /usr/include/X11 \ | |
18568 | /usr/local/X11/include \ | |
18569 | /usr/local/include/X11 \ | |
18570 | \ | |
18571 | /usr/X386/include \ | |
18572 | /usr/x386/include \ | |
18573 | /usr/XFree86/include/X11 \ | |
18574 | \ | |
18575 | X:/XFree86/include \ | |
18576 | X:/XFree86/include/X11 \ | |
18577 | \ | |
18578 | /usr/include/gtk \ | |
18579 | /usr/local/include/gtk \ | |
18580 | /usr/include/glib \ | |
18581 | /usr/local/include/glib \ | |
18582 | \ | |
18583 | /usr/include/qt \ | |
18584 | /usr/local/include/qt \ | |
18585 | \ | |
18586 | /usr/local/arm/3.3.2/include \ | |
18587 | \ | |
18588 | /usr/include/windows \ | |
18589 | /usr/include/wine \ | |
18590 | /usr/local/include/wine \ | |
18591 | \ | |
18592 | /usr/unsupported/include \ | |
18593 | /usr/athena/include \ | |
18594 | /usr/local/x11r5/include \ | |
18595 | /usr/lpp/Xamples/include \ | |
18596 | \ | |
18597 | /usr/openwin/share/include" | |
18598 | ||
18599 | SEARCH_LIB="/usr/lib /usr/lib32 `echo "$SEARCH_INCLUDE" | sed s/include/lib/g` /usr/lib64 /usr/X11R6/lib64" | |
18600 | ||
18601 | ||
18602 | cat >confcache <<\_ACEOF | |
18603 | # This file is a shell script that caches the results of configure | |
18604 | # tests run on this system so they can be shared between configure | |
18605 | # scripts and configure runs, see configure's option --config-cache. | |
18606 | # It is not useful on other systems. If it contains results you don't | |
18607 | # want to keep, you may remove or edit it. | |
18608 | # | |
18609 | # config.status only pays attention to the cache file if you give it | |
18610 | # the --recheck option to rerun configure. | |
18611 | # | |
18612 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
18613 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
18614 | # following values. | |
18615 | ||
18616 | _ACEOF | |
18617 | ||
18618 | # The following way of writing the cache mishandles newlines in values, | |
18619 | # but we know of no workaround that is simple, portable, and efficient. | |
18620 | # So, don't put newlines in cache variables' values. | |
18621 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
18622 | # and sets the high bit in the cache file unless we assign to the vars. | |
18623 | { | |
18624 | (set) 2>&1 | | |
18625 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
18626 | *ac_space=\ *) | |
18627 | # `set' does not quote correctly, so add quotes (double-quote | |
18628 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
18629 | sed -n \ | |
8a7b1113 VZ |
18630 | "s/'/'\\\\''/g; |
18631 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
18632 | ;; |
18633 | *) | |
18634 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
18635 | sed -n \ | |
8a7b1113 | 18636 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
18637 | ;; |
18638 | esac; | |
18639 | } | | |
18640 | sed ' | |
18641 | t clear | |
18642 | : clear | |
18643 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
18644 | t end | |
18645 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
18646 | : end' >>confcache | |
18647 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
18648 | if test -w $cache_file; then | |
18649 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
18650 | cat confcache >$cache_file | |
18651 | else | |
18652 | echo "not updating unwritable cache $cache_file" | |
18653 | fi | |
18654 | fi | |
18655 | rm -f confcache | |
18656 | ||
18657 | if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then | |
18658 | echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5 | |
18659 | echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6 | |
18660 | if test "${wx_cv_lib_glibc21+set}" = set; then | |
18661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18662 | else | |
18663 | ||
18664 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 18665 | #line $LINENO "configure" |
a848cd7e SC |
18666 | /* confdefs.h. */ |
18667 | _ACEOF | |
18668 | cat confdefs.h >>conftest.$ac_ext | |
18669 | cat >>conftest.$ac_ext <<_ACEOF | |
18670 | /* end confdefs.h. */ | |
18671 | #include <features.h> | |
18672 | int | |
18673 | main () | |
18674 | { | |
18675 | ||
18676 | #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1) | |
18677 | #error not glibc2.1 | |
18678 | #endif | |
18679 | ||
18680 | ; | |
18681 | return 0; | |
18682 | } | |
18683 | _ACEOF | |
18684 | rm -f conftest.$ac_objext | |
18685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 18686 | (eval $ac_compile) 2>&5 |
a848cd7e | 18687 | ac_status=$? |
a848cd7e SC |
18688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18689 | (exit $ac_status); } && | |
8a7b1113 | 18690 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
18691 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18692 | (eval $ac_try) 2>&5 | |
18693 | ac_status=$? | |
18694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18695 | (exit $ac_status); }; }; then | |
18696 | ||
18697 | wx_cv_lib_glibc21=yes | |
18698 | ||
18699 | else | |
18700 | echo "$as_me: failed program was:" >&5 | |
18701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18702 | ||
18703 | ||
18704 | wx_cv_lib_glibc21=no | |
18705 | ||
18706 | ||
18707 | fi | |
8a7b1113 | 18708 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18709 | |
18710 | fi | |
18711 | echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5 | |
18712 | echo "${ECHO_T}$wx_cv_lib_glibc21" >&6 | |
18713 | if test "$wx_cv_lib_glibc21" = "yes"; then | |
18714 | cat >>confdefs.h <<\_ACEOF | |
18715 | #define wxHAVE_GLIBC2 1 | |
18716 | _ACEOF | |
18717 | ||
18718 | fi | |
18719 | fi | |
18720 | ||
18721 | if test "x$wx_cv_lib_glibc21" = "xyes"; then | |
18722 | if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then | |
18723 | cat >>confdefs.h <<\_ACEOF | |
18724 | #define _GNU_SOURCE 1 | |
18725 | _ACEOF | |
18726 | ||
18727 | fi | |
18728 | fi | |
18729 | ||
18730 | ||
18731 | ||
18732 | if test "$wxUSE_REGEX" != "no"; then | |
18733 | cat >>confdefs.h <<\_ACEOF | |
18734 | #define wxUSE_REGEX 1 | |
18735 | _ACEOF | |
18736 | ||
18737 | ||
18738 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then | |
18739 | { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5 | |
18740 | echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;} | |
18741 | wxUSE_REGEX=builtin | |
18742 | fi | |
18743 | ||
18744 | if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then | |
18745 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18746 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18747 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18748 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18750 | fi | |
18751 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
18752 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18753 | else | |
18754 | # Is the header compilable? | |
18755 | echo "$as_me:$LINENO: checking regex.h usability" >&5 | |
18756 | echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6 | |
18757 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 18758 | #line $LINENO "configure" |
a848cd7e SC |
18759 | /* confdefs.h. */ |
18760 | _ACEOF | |
18761 | cat confdefs.h >>conftest.$ac_ext | |
18762 | cat >>conftest.$ac_ext <<_ACEOF | |
18763 | /* end confdefs.h. */ | |
18764 | $ac_includes_default | |
18765 | #include <regex.h> | |
18766 | _ACEOF | |
18767 | rm -f conftest.$ac_objext | |
18768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 18769 | (eval $ac_compile) 2>&5 |
a848cd7e | 18770 | ac_status=$? |
a848cd7e SC |
18771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18772 | (exit $ac_status); } && | |
8a7b1113 | 18773 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
18774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18775 | (eval $ac_try) 2>&5 | |
18776 | ac_status=$? | |
18777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18778 | (exit $ac_status); }; }; then | |
18779 | ac_header_compiler=yes | |
18780 | else | |
18781 | echo "$as_me: failed program was:" >&5 | |
18782 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18783 | ||
18784 | ac_header_compiler=no | |
18785 | fi | |
8a7b1113 | 18786 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
18787 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
18788 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18789 | ||
18790 | # Is the header present? | |
18791 | echo "$as_me:$LINENO: checking regex.h presence" >&5 | |
18792 | echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6 | |
18793 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 18794 | #line $LINENO "configure" |
a848cd7e SC |
18795 | /* confdefs.h. */ |
18796 | _ACEOF | |
18797 | cat confdefs.h >>conftest.$ac_ext | |
18798 | cat >>conftest.$ac_ext <<_ACEOF | |
18799 | /* end confdefs.h. */ | |
18800 | #include <regex.h> | |
18801 | _ACEOF | |
18802 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18803 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18804 | ac_status=$? | |
18805 | grep -v '^ *+' conftest.er1 >conftest.err | |
18806 | rm -f conftest.er1 | |
18807 | cat conftest.err >&5 | |
18808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18809 | (exit $ac_status); } >/dev/null; then | |
18810 | if test -s conftest.err; then | |
18811 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
18812 | else |
18813 | ac_cpp_err= | |
18814 | fi | |
18815 | else | |
18816 | ac_cpp_err=yes | |
18817 | fi | |
18818 | if test -z "$ac_cpp_err"; then | |
18819 | ac_header_preproc=yes | |
18820 | else | |
18821 | echo "$as_me: failed program was:" >&5 | |
18822 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18823 | ||
18824 | ac_header_preproc=no | |
18825 | fi | |
18826 | rm -f conftest.err conftest.$ac_ext | |
18827 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
18828 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
18829 | ||
18830 | # So? What about this header? | |
8a7b1113 VZ |
18831 | case $ac_header_compiler:$ac_header_preproc in |
18832 | yes:no ) | |
a848cd7e SC |
18833 | { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
18834 | echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
18835 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
18836 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
18837 | ( | |
18838 | cat <<\_ASBOX | |
18839 | ## ------------------------------------ ## | |
18840 | ## Report this to bug-autoconf@gnu.org. ## | |
18841 | ## ------------------------------------ ## | |
18842 | _ASBOX | |
18843 | ) | | |
18844 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 18845 | ;; |
8a7b1113 | 18846 | no:yes ) |
a848cd7e SC |
18847 | { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5 |
18848 | echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
18849 | { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5 |
18850 | echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
18851 | { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5 |
18852 | echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
18853 | ( |
18854 | cat <<\_ASBOX | |
8a7b1113 VZ |
18855 | ## ------------------------------------ ## |
18856 | ## Report this to bug-autoconf@gnu.org. ## | |
18857 | ## ------------------------------------ ## | |
a848cd7e SC |
18858 | _ASBOX |
18859 | ) | | |
18860 | sed "s/^/$as_me: WARNING: /" >&2 | |
18861 | ;; | |
18862 | esac | |
18863 | echo "$as_me:$LINENO: checking for regex.h" >&5 | |
18864 | echo $ECHO_N "checking for regex.h... $ECHO_C" >&6 | |
18865 | if test "${ac_cv_header_regex_h+set}" = set; then | |
18866 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18867 | else | |
18868 | ac_cv_header_regex_h=$ac_header_preproc | |
18869 | fi | |
18870 | echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5 | |
18871 | echo "${ECHO_T}$ac_cv_header_regex_h" >&6 | |
18872 | ||
18873 | fi | |
18874 | if test $ac_cv_header_regex_h = yes; then | |
18875 | ||
18876 | for ac_func in regcomp | |
18877 | do | |
18878 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
18879 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
18880 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
18881 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
18882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18883 | else | |
18884 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 18885 | #line $LINENO "configure" |
a848cd7e SC |
18886 | /* confdefs.h. */ |
18887 | _ACEOF | |
18888 | cat confdefs.h >>conftest.$ac_ext | |
18889 | cat >>conftest.$ac_ext <<_ACEOF | |
18890 | /* end confdefs.h. */ | |
a848cd7e SC |
18891 | /* System header to define __stub macros and hopefully few prototypes, |
18892 | which can conflict with char $ac_func (); below. | |
18893 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
18894 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
18895 | #ifdef __STDC__ |
18896 | # include <limits.h> | |
18897 | #else | |
18898 | # include <assert.h> | |
18899 | #endif | |
a848cd7e SC |
18900 | /* Override any gcc2 internal prototype to avoid an error. */ |
18901 | #ifdef __cplusplus | |
18902 | extern "C" | |
18903 | { | |
18904 | #endif | |
18905 | /* We use char because int might match the return type of a gcc2 | |
18906 | builtin and then its argument prototype would still apply. */ | |
18907 | char $ac_func (); | |
18908 | /* The GNU C library defines this for functions which it implements | |
18909 | to always fail with ENOSYS. Some functions are actually named | |
18910 | something starting with __ and the normal name is an alias. */ | |
18911 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
18912 | choke me | |
18913 | #else | |
18914 | char (*f) () = $ac_func; | |
18915 | #endif | |
18916 | #ifdef __cplusplus | |
18917 | } | |
18918 | #endif | |
18919 | ||
18920 | int | |
18921 | main () | |
18922 | { | |
18923 | return f != $ac_func; | |
18924 | ; | |
18925 | return 0; | |
18926 | } | |
18927 | _ACEOF | |
18928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 18930 | (eval $ac_link) 2>&5 |
a848cd7e | 18931 | ac_status=$? |
a848cd7e SC |
18932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18933 | (exit $ac_status); } && | |
8a7b1113 | 18934 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
18935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18936 | (eval $ac_try) 2>&5 | |
18937 | ac_status=$? | |
18938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18939 | (exit $ac_status); }; }; then | |
18940 | eval "$as_ac_var=yes" | |
18941 | else | |
18942 | echo "$as_me: failed program was:" >&5 | |
18943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18944 | ||
18945 | eval "$as_ac_var=no" | |
18946 | fi | |
8a7b1113 | 18947 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
18948 | fi |
18949 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
18950 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
18951 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
18952 | cat >>confdefs.h <<_ACEOF | |
18953 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
18954 | _ACEOF | |
18955 | ||
18956 | fi | |
18957 | done | |
18958 | ||
18959 | fi | |
18960 | ||
18961 | ||
18962 | ||
18963 | if test "x$ac_cv_func_regcomp" != "xyes"; then | |
18964 | if test "$wxUSE_REGEX" = "sys" ; then | |
18965 | { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5 | |
18966 | echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;} | |
18967 | { (exit 1); exit 1; }; } | |
18968 | else | |
18969 | { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5 | |
18970 | echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;} | |
18971 | wxUSE_REGEX=builtin | |
18972 | fi | |
18973 | else | |
18974 | wxUSE_REGEX=sys | |
18975 | cat >>confdefs.h <<\_ACEOF | |
18976 | #define WX_NO_REGEX_ADVANCED 1 | |
18977 | _ACEOF | |
18978 | ||
18979 | fi | |
18980 | fi | |
18981 | fi | |
18982 | ||
18983 | ||
18984 | ZLIB_LINK= | |
18985 | if test "$wxUSE_ZLIB" != "no" ; then | |
18986 | cat >>confdefs.h <<\_ACEOF | |
18987 | #define wxUSE_ZLIB 1 | |
18988 | _ACEOF | |
18989 | ||
18990 | ||
18991 | if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then | |
18992 | if test "$USE_DARWIN" = 1; then | |
18993 | system_zlib_h_ok="yes" | |
18994 | else | |
18995 | echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5 | |
18996 | echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6 | |
18997 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
18998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18999 | else | |
19000 | if test "$cross_compiling" = yes; then | |
19001 | unset ac_cv_header_zlib_h | |
19002 | ||
19003 | else | |
19004 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19005 | #line $LINENO "configure" |
a848cd7e SC |
19006 | /* confdefs.h. */ |
19007 | _ACEOF | |
19008 | cat confdefs.h >>conftest.$ac_ext | |
19009 | cat >>conftest.$ac_ext <<_ACEOF | |
19010 | /* end confdefs.h. */ | |
19011 | ||
19012 | #include <zlib.h> | |
19013 | #include <stdio.h> | |
19014 | ||
19015 | int main() | |
19016 | { | |
19017 | FILE *f=fopen("conftestval", "w"); | |
19018 | if (!f) exit(1); | |
19019 | fprintf(f, "%s", | |
19020 | ZLIB_VERSION[0] == '1' && | |
19021 | (ZLIB_VERSION[2] > '1' || | |
19022 | (ZLIB_VERSION[2] == '1' && | |
19023 | ZLIB_VERSION[4] >= '4')) ? "yes" : "no"); | |
19024 | exit(0); | |
19025 | } | |
19026 | ||
19027 | _ACEOF | |
19028 | rm -f conftest$ac_exeext | |
19029 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19030 | (eval $ac_link) 2>&5 | |
19031 | ac_status=$? | |
19032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19033 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19035 | (eval $ac_try) 2>&5 | |
19036 | ac_status=$? | |
19037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19038 | (exit $ac_status); }; }; then | |
19039 | ac_cv_header_zlib_h=`cat conftestval` | |
19040 | else | |
19041 | echo "$as_me: program exited with status $ac_status" >&5 | |
19042 | echo "$as_me: failed program was:" >&5 | |
19043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19044 | ||
19045 | ( exit $ac_status ) | |
19046 | ac_cv_header_zlib_h=no | |
19047 | fi | |
8a7b1113 | 19048 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19049 | fi |
19050 | ||
19051 | fi | |
19052 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19053 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19054 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19055 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19056 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19057 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19059 | fi | |
19060 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19061 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19062 | else | |
19063 | # Is the header compilable? | |
19064 | echo "$as_me:$LINENO: checking zlib.h usability" >&5 | |
19065 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6 | |
19066 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19067 | #line $LINENO "configure" |
a848cd7e SC |
19068 | /* confdefs.h. */ |
19069 | _ACEOF | |
19070 | cat confdefs.h >>conftest.$ac_ext | |
19071 | cat >>conftest.$ac_ext <<_ACEOF | |
19072 | /* end confdefs.h. */ | |
19073 | $ac_includes_default | |
19074 | #include <zlib.h> | |
19075 | _ACEOF | |
19076 | rm -f conftest.$ac_objext | |
19077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 19078 | (eval $ac_compile) 2>&5 |
a848cd7e | 19079 | ac_status=$? |
a848cd7e SC |
19080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19081 | (exit $ac_status); } && | |
8a7b1113 | 19082 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
19083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19084 | (eval $ac_try) 2>&5 | |
19085 | ac_status=$? | |
19086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19087 | (exit $ac_status); }; }; then | |
19088 | ac_header_compiler=yes | |
19089 | else | |
19090 | echo "$as_me: failed program was:" >&5 | |
19091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19092 | ||
19093 | ac_header_compiler=no | |
19094 | fi | |
8a7b1113 | 19095 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19096 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19097 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19098 | ||
19099 | # Is the header present? | |
19100 | echo "$as_me:$LINENO: checking zlib.h presence" >&5 | |
19101 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6 | |
19102 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19103 | #line $LINENO "configure" |
a848cd7e SC |
19104 | /* confdefs.h. */ |
19105 | _ACEOF | |
19106 | cat confdefs.h >>conftest.$ac_ext | |
19107 | cat >>conftest.$ac_ext <<_ACEOF | |
19108 | /* end confdefs.h. */ | |
19109 | #include <zlib.h> | |
19110 | _ACEOF | |
19111 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19112 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19113 | ac_status=$? | |
19114 | grep -v '^ *+' conftest.er1 >conftest.err | |
19115 | rm -f conftest.er1 | |
19116 | cat conftest.err >&5 | |
19117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19118 | (exit $ac_status); } >/dev/null; then | |
19119 | if test -s conftest.err; then | |
19120 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
19121 | else |
19122 | ac_cpp_err= | |
19123 | fi | |
19124 | else | |
19125 | ac_cpp_err=yes | |
19126 | fi | |
19127 | if test -z "$ac_cpp_err"; then | |
19128 | ac_header_preproc=yes | |
19129 | else | |
19130 | echo "$as_me: failed program was:" >&5 | |
19131 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19132 | ||
19133 | ac_header_preproc=no | |
19134 | fi | |
19135 | rm -f conftest.err conftest.$ac_ext | |
19136 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19137 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19138 | ||
19139 | # So? What about this header? | |
8a7b1113 VZ |
19140 | case $ac_header_compiler:$ac_header_preproc in |
19141 | yes:no ) | |
a848cd7e SC |
19142 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19143 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
19144 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
19145 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
19146 | ( | |
19147 | cat <<\_ASBOX | |
19148 | ## ------------------------------------ ## | |
19149 | ## Report this to bug-autoconf@gnu.org. ## | |
19150 | ## ------------------------------------ ## | |
19151 | _ASBOX | |
19152 | ) | | |
19153 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 19154 | ;; |
8a7b1113 | 19155 | no:yes ) |
a848cd7e SC |
19156 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 |
19157 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
19158 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 |
19159 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
19160 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 |
19161 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
19162 | ( |
19163 | cat <<\_ASBOX | |
8a7b1113 VZ |
19164 | ## ------------------------------------ ## |
19165 | ## Report this to bug-autoconf@gnu.org. ## | |
19166 | ## ------------------------------------ ## | |
a848cd7e SC |
19167 | _ASBOX |
19168 | ) | | |
19169 | sed "s/^/$as_me: WARNING: /" >&2 | |
19170 | ;; | |
19171 | esac | |
19172 | echo "$as_me:$LINENO: checking for zlib.h" >&5 | |
19173 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6 | |
19174 | if test "${ac_cv_header_zlib_h+set}" = set; then | |
19175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19176 | else | |
19177 | ac_cv_header_zlib_h=$ac_header_preproc | |
19178 | fi | |
19179 | echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | |
19180 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6 | |
19181 | ||
19182 | fi | |
19183 | ||
19184 | ||
19185 | ||
19186 | system_zlib_h_ok=$ac_cv_header_zlib_h | |
19187 | fi | |
19188 | ||
19189 | if test "$system_zlib_h_ok" = "yes"; then | |
19190 | echo "$as_me:$LINENO: checking for deflate in -lz" >&5 | |
19191 | echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6 | |
19192 | if test "${ac_cv_lib_z_deflate+set}" = set; then | |
19193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19194 | else | |
19195 | ac_check_lib_save_LIBS=$LIBS | |
19196 | LIBS="-lz $LIBS" | |
19197 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19198 | #line $LINENO "configure" |
a848cd7e SC |
19199 | /* confdefs.h. */ |
19200 | _ACEOF | |
19201 | cat confdefs.h >>conftest.$ac_ext | |
19202 | cat >>conftest.$ac_ext <<_ACEOF | |
19203 | /* end confdefs.h. */ | |
19204 | ||
19205 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19206 | #ifdef __cplusplus | |
19207 | extern "C" | |
19208 | #endif | |
19209 | /* We use char because int might match the return type of a gcc2 | |
19210 | builtin and then its argument prototype would still apply. */ | |
19211 | char deflate (); | |
19212 | int | |
19213 | main () | |
19214 | { | |
19215 | deflate (); | |
19216 | ; | |
19217 | return 0; | |
19218 | } | |
19219 | _ACEOF | |
19220 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19221 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 19222 | (eval $ac_link) 2>&5 |
a848cd7e | 19223 | ac_status=$? |
a848cd7e SC |
19224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19225 | (exit $ac_status); } && | |
8a7b1113 | 19226 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
19227 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19228 | (eval $ac_try) 2>&5 | |
19229 | ac_status=$? | |
19230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19231 | (exit $ac_status); }; }; then | |
19232 | ac_cv_lib_z_deflate=yes | |
19233 | else | |
19234 | echo "$as_me: failed program was:" >&5 | |
19235 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19236 | ||
19237 | ac_cv_lib_z_deflate=no | |
19238 | fi | |
8a7b1113 | 19239 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
19240 | LIBS=$ac_check_lib_save_LIBS |
19241 | fi | |
19242 | echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5 | |
19243 | echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6 | |
19244 | if test $ac_cv_lib_z_deflate = yes; then | |
19245 | ZLIB_LINK=" -lz" | |
19246 | fi | |
19247 | ||
19248 | fi | |
19249 | ||
19250 | if test "x$ZLIB_LINK" = "x" ; then | |
19251 | if test "$wxUSE_ZLIB" = "sys" ; then | |
19252 | { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5 | |
19253 | echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;} | |
19254 | { (exit 1); exit 1; }; } | |
19255 | else | |
19256 | { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5 | |
19257 | echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;} | |
19258 | wxUSE_ZLIB=builtin | |
19259 | fi | |
19260 | else | |
19261 | wxUSE_ZLIB=sys | |
19262 | fi | |
19263 | fi | |
19264 | fi | |
19265 | ||
19266 | ||
19267 | PNG_LINK= | |
19268 | if test "$wxUSE_LIBPNG" != "no" ; then | |
19269 | cat >>confdefs.h <<\_ACEOF | |
19270 | #define wxUSE_LIBPNG 1 | |
19271 | _ACEOF | |
19272 | ||
19273 | ||
19274 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then | |
19275 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5 | |
19276 | echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;} | |
19277 | wxUSE_LIBPNG=sys | |
19278 | fi | |
19279 | ||
19280 | if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then | |
19281 | { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5 | |
19282 | echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;} | |
19283 | wxUSE_LIBPNG=builtin | |
19284 | fi | |
19285 | ||
19286 | if test "$wxUSE_MGL" != 1 ; then | |
19287 | if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then | |
19288 | echo "$as_me:$LINENO: checking for png.h > 0.90" >&5 | |
19289 | echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6 | |
19290 | if test "${ac_cv_header_png_h+set}" = set; then | |
19291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19292 | else | |
19293 | if test "$cross_compiling" = yes; then | |
19294 | unset ac_cv_header_png_h | |
19295 | ||
19296 | else | |
19297 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19298 | #line $LINENO "configure" |
a848cd7e SC |
19299 | /* confdefs.h. */ |
19300 | _ACEOF | |
19301 | cat confdefs.h >>conftest.$ac_ext | |
19302 | cat >>conftest.$ac_ext <<_ACEOF | |
19303 | /* end confdefs.h. */ | |
19304 | ||
19305 | #include <png.h> | |
19306 | #include <stdio.h> | |
19307 | ||
19308 | int main() | |
19309 | { | |
19310 | FILE *f=fopen("conftestval", "w"); | |
19311 | if (!f) exit(1); | |
19312 | fprintf(f, "%s", | |
19313 | PNG_LIBPNG_VER > 90 ? "yes" : "no"); | |
19314 | exit(0); | |
19315 | } | |
19316 | ||
19317 | _ACEOF | |
19318 | rm -f conftest$ac_exeext | |
19319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19320 | (eval $ac_link) 2>&5 | |
19321 | ac_status=$? | |
19322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19323 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19325 | (eval $ac_try) 2>&5 | |
19326 | ac_status=$? | |
19327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19328 | (exit $ac_status); }; }; then | |
19329 | ac_cv_header_png_h=`cat conftestval` | |
19330 | else | |
19331 | echo "$as_me: program exited with status $ac_status" >&5 | |
19332 | echo "$as_me: failed program was:" >&5 | |
19333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19334 | ||
19335 | ( exit $ac_status ) | |
19336 | ac_cv_header_png_h=no | |
19337 | fi | |
8a7b1113 | 19338 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19339 | fi |
19340 | ||
19341 | fi | |
19342 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
19343 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
19344 | if test "${ac_cv_header_png_h+set}" = set; then | |
19345 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
19346 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
19347 | if test "${ac_cv_header_png_h+set}" = set; then | |
19348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19349 | fi | |
19350 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
19351 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
19352 | else | |
19353 | # Is the header compilable? | |
19354 | echo "$as_me:$LINENO: checking png.h usability" >&5 | |
19355 | echo $ECHO_N "checking png.h usability... $ECHO_C" >&6 | |
19356 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19357 | #line $LINENO "configure" |
a848cd7e SC |
19358 | /* confdefs.h. */ |
19359 | _ACEOF | |
19360 | cat confdefs.h >>conftest.$ac_ext | |
19361 | cat >>conftest.$ac_ext <<_ACEOF | |
19362 | /* end confdefs.h. */ | |
19363 | $ac_includes_default | |
19364 | #include <png.h> | |
19365 | _ACEOF | |
19366 | rm -f conftest.$ac_objext | |
19367 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 19368 | (eval $ac_compile) 2>&5 |
a848cd7e | 19369 | ac_status=$? |
a848cd7e SC |
19370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19371 | (exit $ac_status); } && | |
8a7b1113 | 19372 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
19373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19374 | (eval $ac_try) 2>&5 | |
19375 | ac_status=$? | |
19376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19377 | (exit $ac_status); }; }; then | |
19378 | ac_header_compiler=yes | |
19379 | else | |
19380 | echo "$as_me: failed program was:" >&5 | |
19381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19382 | ||
19383 | ac_header_compiler=no | |
19384 | fi | |
8a7b1113 | 19385 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19386 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19387 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19388 | ||
19389 | # Is the header present? | |
19390 | echo "$as_me:$LINENO: checking png.h presence" >&5 | |
19391 | echo $ECHO_N "checking png.h presence... $ECHO_C" >&6 | |
19392 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19393 | #line $LINENO "configure" |
a848cd7e SC |
19394 | /* confdefs.h. */ |
19395 | _ACEOF | |
19396 | cat confdefs.h >>conftest.$ac_ext | |
19397 | cat >>conftest.$ac_ext <<_ACEOF | |
19398 | /* end confdefs.h. */ | |
19399 | #include <png.h> | |
19400 | _ACEOF | |
19401 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19402 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19403 | ac_status=$? | |
19404 | grep -v '^ *+' conftest.er1 >conftest.err | |
19405 | rm -f conftest.er1 | |
19406 | cat conftest.err >&5 | |
19407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19408 | (exit $ac_status); } >/dev/null; then | |
19409 | if test -s conftest.err; then | |
19410 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
19411 | else |
19412 | ac_cpp_err= | |
19413 | fi | |
19414 | else | |
19415 | ac_cpp_err=yes | |
19416 | fi | |
19417 | if test -z "$ac_cpp_err"; then | |
19418 | ac_header_preproc=yes | |
19419 | else | |
19420 | echo "$as_me: failed program was:" >&5 | |
19421 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19422 | ||
19423 | ac_header_preproc=no | |
19424 | fi | |
19425 | rm -f conftest.err conftest.$ac_ext | |
19426 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19427 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19428 | ||
19429 | # So? What about this header? | |
8a7b1113 VZ |
19430 | case $ac_header_compiler:$ac_header_preproc in |
19431 | yes:no ) | |
a848cd7e SC |
19432 | { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19433 | echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
19434 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
19435 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
19436 | ( | |
19437 | cat <<\_ASBOX | |
19438 | ## ------------------------------------ ## | |
19439 | ## Report this to bug-autoconf@gnu.org. ## | |
19440 | ## ------------------------------------ ## | |
19441 | _ASBOX | |
19442 | ) | | |
19443 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 19444 | ;; |
8a7b1113 | 19445 | no:yes ) |
a848cd7e SC |
19446 | { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5 |
19447 | echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
19448 | { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5 |
19449 | echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
19450 | { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5 |
19451 | echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
19452 | ( |
19453 | cat <<\_ASBOX | |
8a7b1113 VZ |
19454 | ## ------------------------------------ ## |
19455 | ## Report this to bug-autoconf@gnu.org. ## | |
19456 | ## ------------------------------------ ## | |
a848cd7e SC |
19457 | _ASBOX |
19458 | ) | | |
19459 | sed "s/^/$as_me: WARNING: /" >&2 | |
19460 | ;; | |
19461 | esac | |
19462 | echo "$as_me:$LINENO: checking for png.h" >&5 | |
19463 | echo $ECHO_N "checking for png.h... $ECHO_C" >&6 | |
19464 | if test "${ac_cv_header_png_h+set}" = set; then | |
19465 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19466 | else | |
19467 | ac_cv_header_png_h=$ac_header_preproc | |
19468 | fi | |
19469 | echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5 | |
19470 | echo "${ECHO_T}$ac_cv_header_png_h" >&6 | |
19471 | ||
19472 | fi | |
19473 | ||
19474 | ||
19475 | ||
19476 | if test "$ac_cv_header_png_h" = "yes"; then | |
19477 | echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5 | |
19478 | echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6 | |
19479 | if test "${ac_cv_lib_png_png_check_sig+set}" = set; then | |
19480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19481 | else | |
19482 | ac_check_lib_save_LIBS=$LIBS | |
19483 | LIBS="-lpng -lz -lm $LIBS" | |
19484 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19485 | #line $LINENO "configure" |
a848cd7e SC |
19486 | /* confdefs.h. */ |
19487 | _ACEOF | |
19488 | cat confdefs.h >>conftest.$ac_ext | |
19489 | cat >>conftest.$ac_ext <<_ACEOF | |
19490 | /* end confdefs.h. */ | |
19491 | ||
19492 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19493 | #ifdef __cplusplus | |
19494 | extern "C" | |
19495 | #endif | |
19496 | /* We use char because int might match the return type of a gcc2 | |
19497 | builtin and then its argument prototype would still apply. */ | |
19498 | char png_check_sig (); | |
19499 | int | |
19500 | main () | |
19501 | { | |
19502 | png_check_sig (); | |
19503 | ; | |
19504 | return 0; | |
19505 | } | |
19506 | _ACEOF | |
19507 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19508 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 19509 | (eval $ac_link) 2>&5 |
a848cd7e | 19510 | ac_status=$? |
a848cd7e SC |
19511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19512 | (exit $ac_status); } && | |
8a7b1113 | 19513 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
19514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19515 | (eval $ac_try) 2>&5 | |
19516 | ac_status=$? | |
19517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19518 | (exit $ac_status); }; }; then | |
19519 | ac_cv_lib_png_png_check_sig=yes | |
19520 | else | |
19521 | echo "$as_me: failed program was:" >&5 | |
19522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19523 | ||
19524 | ac_cv_lib_png_png_check_sig=no | |
19525 | fi | |
8a7b1113 | 19526 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
19527 | LIBS=$ac_check_lib_save_LIBS |
19528 | fi | |
19529 | echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5 | |
19530 | echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6 | |
19531 | if test $ac_cv_lib_png_png_check_sig = yes; then | |
19532 | PNG_LINK=" -lpng -lz" | |
19533 | fi | |
19534 | ||
19535 | fi | |
19536 | ||
19537 | if test "x$PNG_LINK" = "x" ; then | |
19538 | if test "$wxUSE_LIBPNG" = "sys" ; then | |
19539 | { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5 | |
19540 | echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;} | |
19541 | { (exit 1); exit 1; }; } | |
19542 | else | |
19543 | { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5 | |
19544 | echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;} | |
19545 | wxUSE_LIBPNG=builtin | |
19546 | fi | |
19547 | else | |
19548 | wxUSE_LIBPNG=sys | |
19549 | fi | |
19550 | fi | |
19551 | fi | |
19552 | ||
19553 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png" | |
19554 | fi | |
19555 | ||
19556 | ||
19557 | JPEG_LINK= | |
19558 | if test "$wxUSE_LIBJPEG" != "no" ; then | |
19559 | cat >>confdefs.h <<\_ACEOF | |
19560 | #define wxUSE_LIBJPEG 1 | |
19561 | _ACEOF | |
19562 | ||
19563 | ||
19564 | if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then | |
19565 | { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5 | |
19566 | echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;} | |
19567 | wxUSE_LIBJPEG=sys | |
19568 | fi | |
19569 | ||
19570 | if test "$wxUSE_MGL" != 1 ; then | |
19571 | if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then | |
19572 | echo "$as_me:$LINENO: checking for jpeglib.h" >&5 | |
19573 | echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6 | |
19574 | if test "${ac_cv_header_jpeglib_h+set}" = set; then | |
19575 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19576 | else | |
19577 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19578 | #line $LINENO "configure" |
a848cd7e SC |
19579 | /* confdefs.h. */ |
19580 | _ACEOF | |
19581 | cat confdefs.h >>conftest.$ac_ext | |
19582 | cat >>conftest.$ac_ext <<_ACEOF | |
19583 | /* end confdefs.h. */ | |
19584 | ||
19585 | #undef HAVE_STDLIB_H | |
19586 | #include <stdio.h> | |
19587 | #include <jpeglib.h> | |
19588 | ||
19589 | int | |
19590 | main () | |
19591 | { | |
19592 | ||
19593 | ||
19594 | ; | |
19595 | return 0; | |
19596 | } | |
19597 | _ACEOF | |
19598 | rm -f conftest.$ac_objext | |
19599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 19600 | (eval $ac_compile) 2>&5 |
a848cd7e | 19601 | ac_status=$? |
a848cd7e SC |
19602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19603 | (exit $ac_status); } && | |
8a7b1113 | 19604 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
19605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19606 | (eval $ac_try) 2>&5 | |
19607 | ac_status=$? | |
19608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19609 | (exit $ac_status); }; }; then | |
19610 | ac_cv_header_jpeglib_h=yes | |
19611 | else | |
19612 | echo "$as_me: failed program was:" >&5 | |
19613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19614 | ||
19615 | ac_cv_header_jpeglib_h=no | |
19616 | ||
19617 | fi | |
8a7b1113 | 19618 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19619 | |
19620 | fi | |
19621 | ||
19622 | echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5 | |
19623 | echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6 | |
19624 | ||
19625 | if test "$ac_cv_header_jpeglib_h" = "yes"; then | |
19626 | echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5 | |
19627 | echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6 | |
19628 | if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then | |
19629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19630 | else | |
19631 | ac_check_lib_save_LIBS=$LIBS | |
19632 | LIBS="-ljpeg $LIBS" | |
19633 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19634 | #line $LINENO "configure" |
a848cd7e SC |
19635 | /* confdefs.h. */ |
19636 | _ACEOF | |
19637 | cat confdefs.h >>conftest.$ac_ext | |
19638 | cat >>conftest.$ac_ext <<_ACEOF | |
19639 | /* end confdefs.h. */ | |
19640 | ||
19641 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19642 | #ifdef __cplusplus | |
19643 | extern "C" | |
19644 | #endif | |
19645 | /* We use char because int might match the return type of a gcc2 | |
19646 | builtin and then its argument prototype would still apply. */ | |
19647 | char jpeg_read_header (); | |
19648 | int | |
19649 | main () | |
19650 | { | |
19651 | jpeg_read_header (); | |
19652 | ; | |
19653 | return 0; | |
19654 | } | |
19655 | _ACEOF | |
19656 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19657 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 19658 | (eval $ac_link) 2>&5 |
a848cd7e | 19659 | ac_status=$? |
a848cd7e SC |
19660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19661 | (exit $ac_status); } && | |
8a7b1113 | 19662 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
19663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19664 | (eval $ac_try) 2>&5 | |
19665 | ac_status=$? | |
19666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19667 | (exit $ac_status); }; }; then | |
19668 | ac_cv_lib_jpeg_jpeg_read_header=yes | |
19669 | else | |
19670 | echo "$as_me: failed program was:" >&5 | |
19671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19672 | ||
19673 | ac_cv_lib_jpeg_jpeg_read_header=no | |
19674 | fi | |
8a7b1113 | 19675 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
19676 | LIBS=$ac_check_lib_save_LIBS |
19677 | fi | |
19678 | echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5 | |
19679 | echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6 | |
19680 | if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then | |
19681 | JPEG_LINK=" -ljpeg" | |
19682 | fi | |
19683 | ||
19684 | fi | |
19685 | ||
19686 | if test "x$JPEG_LINK" = "x" ; then | |
19687 | if test "$wxUSE_LIBJPEG" = "sys" ; then | |
19688 | { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5 | |
19689 | echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;} | |
19690 | { (exit 1); exit 1; }; } | |
19691 | else | |
19692 | { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5 | |
19693 | echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;} | |
19694 | wxUSE_LIBJPEG=builtin | |
19695 | fi | |
19696 | else | |
19697 | wxUSE_LIBJPEG=sys | |
19698 | fi | |
19699 | fi | |
19700 | fi | |
19701 | fi | |
19702 | ||
19703 | ||
19704 | TIFF_LINK= | |
19705 | TIFF_PREREQ_LINKS=-lm | |
19706 | if test "$wxUSE_LIBTIFF" != "no" ; then | |
19707 | cat >>confdefs.h <<\_ACEOF | |
19708 | #define wxUSE_LIBTIFF 1 | |
19709 | _ACEOF | |
19710 | ||
19711 | ||
19712 | if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then | |
19713 | if test "$wxUSE_LIBJPEG" = "sys"; then | |
19714 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK" | |
19715 | fi | |
19716 | if test "$wxUSE_ZLIB" = "sys"; then | |
19717 | TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK" | |
19718 | fi | |
19719 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19720 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19721 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19722 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19724 | fi | |
19725 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
19726 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19727 | else | |
19728 | # Is the header compilable? | |
19729 | echo "$as_me:$LINENO: checking tiffio.h usability" >&5 | |
19730 | echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6 | |
19731 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19732 | #line $LINENO "configure" |
a848cd7e SC |
19733 | /* confdefs.h. */ |
19734 | _ACEOF | |
19735 | cat confdefs.h >>conftest.$ac_ext | |
19736 | cat >>conftest.$ac_ext <<_ACEOF | |
19737 | /* end confdefs.h. */ | |
19738 | $ac_includes_default | |
19739 | #include <tiffio.h> | |
19740 | _ACEOF | |
19741 | rm -f conftest.$ac_objext | |
19742 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 19743 | (eval $ac_compile) 2>&5 |
a848cd7e | 19744 | ac_status=$? |
a848cd7e SC |
19745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19746 | (exit $ac_status); } && | |
8a7b1113 | 19747 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
19748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19749 | (eval $ac_try) 2>&5 | |
19750 | ac_status=$? | |
19751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19752 | (exit $ac_status); }; }; then | |
19753 | ac_header_compiler=yes | |
19754 | else | |
19755 | echo "$as_me: failed program was:" >&5 | |
19756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19757 | ||
19758 | ac_header_compiler=no | |
19759 | fi | |
8a7b1113 | 19760 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19761 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19762 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19763 | ||
19764 | # Is the header present? | |
19765 | echo "$as_me:$LINENO: checking tiffio.h presence" >&5 | |
19766 | echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6 | |
19767 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19768 | #line $LINENO "configure" |
a848cd7e SC |
19769 | /* confdefs.h. */ |
19770 | _ACEOF | |
19771 | cat confdefs.h >>conftest.$ac_ext | |
19772 | cat >>conftest.$ac_ext <<_ACEOF | |
19773 | /* end confdefs.h. */ | |
19774 | #include <tiffio.h> | |
19775 | _ACEOF | |
19776 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19777 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19778 | ac_status=$? | |
19779 | grep -v '^ *+' conftest.er1 >conftest.err | |
19780 | rm -f conftest.er1 | |
19781 | cat conftest.err >&5 | |
19782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19783 | (exit $ac_status); } >/dev/null; then | |
19784 | if test -s conftest.err; then | |
19785 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
19786 | else |
19787 | ac_cpp_err= | |
19788 | fi | |
19789 | else | |
19790 | ac_cpp_err=yes | |
19791 | fi | |
19792 | if test -z "$ac_cpp_err"; then | |
19793 | ac_header_preproc=yes | |
19794 | else | |
19795 | echo "$as_me: failed program was:" >&5 | |
19796 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19797 | ||
19798 | ac_header_preproc=no | |
19799 | fi | |
19800 | rm -f conftest.err conftest.$ac_ext | |
19801 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19802 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19803 | ||
19804 | # So? What about this header? | |
8a7b1113 VZ |
19805 | case $ac_header_compiler:$ac_header_preproc in |
19806 | yes:no ) | |
a848cd7e SC |
19807 | { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
19808 | echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
19809 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19810 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
19811 | ( | |
19812 | cat <<\_ASBOX | |
19813 | ## ------------------------------------ ## | |
19814 | ## Report this to bug-autoconf@gnu.org. ## | |
19815 | ## ------------------------------------ ## | |
19816 | _ASBOX | |
19817 | ) | | |
19818 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 19819 | ;; |
8a7b1113 | 19820 | no:yes ) |
a848cd7e SC |
19821 | { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5 |
19822 | echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
19823 | { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5 |
19824 | echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
19825 | { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5 |
19826 | echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
19827 | ( |
19828 | cat <<\_ASBOX | |
8a7b1113 VZ |
19829 | ## ------------------------------------ ## |
19830 | ## Report this to bug-autoconf@gnu.org. ## | |
19831 | ## ------------------------------------ ## | |
a848cd7e SC |
19832 | _ASBOX |
19833 | ) | | |
19834 | sed "s/^/$as_me: WARNING: /" >&2 | |
19835 | ;; | |
19836 | esac | |
19837 | echo "$as_me:$LINENO: checking for tiffio.h" >&5 | |
19838 | echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6 | |
19839 | if test "${ac_cv_header_tiffio_h+set}" = set; then | |
19840 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19841 | else | |
19842 | ac_cv_header_tiffio_h=$ac_header_preproc | |
19843 | fi | |
19844 | echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5 | |
19845 | echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6 | |
19846 | ||
19847 | fi | |
19848 | if test $ac_cv_header_tiffio_h = yes; then | |
19849 | ||
19850 | echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5 | |
19851 | echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6 | |
19852 | if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then | |
19853 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19854 | else | |
19855 | ac_check_lib_save_LIBS=$LIBS | |
19856 | LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS" | |
19857 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19858 | #line $LINENO "configure" |
a848cd7e SC |
19859 | /* confdefs.h. */ |
19860 | _ACEOF | |
19861 | cat confdefs.h >>conftest.$ac_ext | |
19862 | cat >>conftest.$ac_ext <<_ACEOF | |
19863 | /* end confdefs.h. */ | |
19864 | ||
19865 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19866 | #ifdef __cplusplus | |
19867 | extern "C" | |
19868 | #endif | |
19869 | /* We use char because int might match the return type of a gcc2 | |
19870 | builtin and then its argument prototype would still apply. */ | |
19871 | char TIFFError (); | |
19872 | int | |
19873 | main () | |
19874 | { | |
19875 | TIFFError (); | |
19876 | ; | |
19877 | return 0; | |
19878 | } | |
19879 | _ACEOF | |
19880 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19881 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 19882 | (eval $ac_link) 2>&5 |
a848cd7e | 19883 | ac_status=$? |
a848cd7e SC |
19884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19885 | (exit $ac_status); } && | |
8a7b1113 | 19886 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
19887 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19888 | (eval $ac_try) 2>&5 | |
19889 | ac_status=$? | |
19890 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19891 | (exit $ac_status); }; }; then | |
19892 | ac_cv_lib_tiff_TIFFError=yes | |
19893 | else | |
19894 | echo "$as_me: failed program was:" >&5 | |
19895 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19896 | ||
19897 | ac_cv_lib_tiff_TIFFError=no | |
19898 | fi | |
8a7b1113 | 19899 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
19900 | LIBS=$ac_check_lib_save_LIBS |
19901 | fi | |
19902 | echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5 | |
19903 | echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6 | |
19904 | if test $ac_cv_lib_tiff_TIFFError = yes; then | |
19905 | TIFF_LINK=" -ltiff" | |
19906 | fi | |
19907 | ||
19908 | ||
19909 | ||
19910 | fi | |
19911 | ||
19912 | ||
19913 | ||
19914 | if test "x$TIFF_LINK" = "x" ; then | |
19915 | if test "$wxUSE_LIBTIFF" = "sys" ; then | |
19916 | { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5 | |
19917 | echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;} | |
19918 | { (exit 1); exit 1; }; } | |
19919 | else | |
19920 | { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5 | |
19921 | echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;} | |
19922 | wxUSE_LIBTIFF=builtin | |
19923 | fi | |
19924 | else | |
19925 | wxUSE_LIBTIFF=sys | |
19926 | fi | |
19927 | fi | |
19928 | fi | |
19929 | ||
19930 | ||
19931 | if test "$wxUSE_EXPAT" != "no"; then | |
19932 | wxUSE_XML=yes | |
19933 | cat >>confdefs.h <<\_ACEOF | |
19934 | #define wxUSE_EXPAT 1 | |
19935 | _ACEOF | |
19936 | ||
19937 | cat >>confdefs.h <<\_ACEOF | |
19938 | #define wxUSE_XML 1 | |
19939 | _ACEOF | |
19940 | ||
19941 | ||
19942 | if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then | |
19943 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19944 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
19945 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
19946 | if test "${ac_cv_header_expat_h+set}" = set; then | |
19947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19948 | fi | |
19949 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
19950 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
19951 | else | |
19952 | # Is the header compilable? | |
19953 | echo "$as_me:$LINENO: checking expat.h usability" >&5 | |
19954 | echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6 | |
19955 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19956 | #line $LINENO "configure" |
a848cd7e SC |
19957 | /* confdefs.h. */ |
19958 | _ACEOF | |
19959 | cat confdefs.h >>conftest.$ac_ext | |
19960 | cat >>conftest.$ac_ext <<_ACEOF | |
19961 | /* end confdefs.h. */ | |
19962 | $ac_includes_default | |
19963 | #include <expat.h> | |
19964 | _ACEOF | |
19965 | rm -f conftest.$ac_objext | |
19966 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 19967 | (eval $ac_compile) 2>&5 |
a848cd7e | 19968 | ac_status=$? |
a848cd7e SC |
19969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19970 | (exit $ac_status); } && | |
8a7b1113 | 19971 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
19972 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19973 | (eval $ac_try) 2>&5 | |
19974 | ac_status=$? | |
19975 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19976 | (exit $ac_status); }; }; then | |
19977 | ac_header_compiler=yes | |
19978 | else | |
19979 | echo "$as_me: failed program was:" >&5 | |
19980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19981 | ||
19982 | ac_header_compiler=no | |
19983 | fi | |
8a7b1113 | 19984 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
19985 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19986 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19987 | ||
19988 | # Is the header present? | |
19989 | echo "$as_me:$LINENO: checking expat.h presence" >&5 | |
19990 | echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6 | |
19991 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 19992 | #line $LINENO "configure" |
a848cd7e SC |
19993 | /* confdefs.h. */ |
19994 | _ACEOF | |
19995 | cat confdefs.h >>conftest.$ac_ext | |
19996 | cat >>conftest.$ac_ext <<_ACEOF | |
19997 | /* end confdefs.h. */ | |
19998 | #include <expat.h> | |
19999 | _ACEOF | |
20000 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20001 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20002 | ac_status=$? | |
20003 | grep -v '^ *+' conftest.er1 >conftest.err | |
20004 | rm -f conftest.er1 | |
20005 | cat conftest.err >&5 | |
20006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20007 | (exit $ac_status); } >/dev/null; then | |
20008 | if test -s conftest.err; then | |
20009 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
20010 | else |
20011 | ac_cpp_err= | |
20012 | fi | |
20013 | else | |
20014 | ac_cpp_err=yes | |
20015 | fi | |
20016 | if test -z "$ac_cpp_err"; then | |
20017 | ac_header_preproc=yes | |
20018 | else | |
20019 | echo "$as_me: failed program was:" >&5 | |
20020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20021 | ||
20022 | ac_header_preproc=no | |
20023 | fi | |
20024 | rm -f conftest.err conftest.$ac_ext | |
20025 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20026 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20027 | ||
20028 | # So? What about this header? | |
8a7b1113 VZ |
20029 | case $ac_header_compiler:$ac_header_preproc in |
20030 | yes:no ) | |
a848cd7e SC |
20031 | { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20032 | echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
20033 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
20034 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
20035 | ( | |
20036 | cat <<\_ASBOX | |
20037 | ## ------------------------------------ ## | |
20038 | ## Report this to bug-autoconf@gnu.org. ## | |
20039 | ## ------------------------------------ ## | |
20040 | _ASBOX | |
20041 | ) | | |
20042 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 20043 | ;; |
8a7b1113 | 20044 | no:yes ) |
a848cd7e SC |
20045 | { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5 |
20046 | echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
20047 | { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5 |
20048 | echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
20049 | { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5 |
20050 | echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
20051 | ( |
20052 | cat <<\_ASBOX | |
8a7b1113 VZ |
20053 | ## ------------------------------------ ## |
20054 | ## Report this to bug-autoconf@gnu.org. ## | |
20055 | ## ------------------------------------ ## | |
a848cd7e SC |
20056 | _ASBOX |
20057 | ) | | |
20058 | sed "s/^/$as_me: WARNING: /" >&2 | |
20059 | ;; | |
20060 | esac | |
20061 | echo "$as_me:$LINENO: checking for expat.h" >&5 | |
20062 | echo $ECHO_N "checking for expat.h... $ECHO_C" >&6 | |
20063 | if test "${ac_cv_header_expat_h+set}" = set; then | |
20064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20065 | else | |
20066 | ac_cv_header_expat_h=$ac_header_preproc | |
20067 | fi | |
20068 | echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5 | |
20069 | echo "${ECHO_T}$ac_cv_header_expat_h" >&6 | |
20070 | ||
20071 | fi | |
20072 | if test $ac_cv_header_expat_h = yes; then | |
20073 | found_expat_h=1 | |
20074 | fi | |
20075 | ||
20076 | ||
20077 | if test "x$found_expat_h" = "x1"; then | |
20078 | echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5 | |
20079 | echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6 | |
20080 | if test "${wx_cv_expat_is_not_broken+set}" = set; then | |
20081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20082 | else | |
20083 | ||
20084 | ||
20085 | ||
20086 | ac_ext=cc | |
20087 | ac_cpp='$CXXCPP $CPPFLAGS' | |
20088 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20089 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20090 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
20091 | ||
20092 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 20093 | #line $LINENO "configure" |
a848cd7e SC |
20094 | /* confdefs.h. */ |
20095 | _ACEOF | |
20096 | cat confdefs.h >>conftest.$ac_ext | |
20097 | cat >>conftest.$ac_ext <<_ACEOF | |
20098 | /* end confdefs.h. */ | |
20099 | #include <expat.h> | |
20100 | int | |
20101 | main () | |
20102 | { | |
20103 | ||
20104 | ; | |
20105 | return 0; | |
20106 | } | |
20107 | _ACEOF | |
20108 | rm -f conftest.$ac_objext | |
20109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 20110 | (eval $ac_compile) 2>&5 |
a848cd7e | 20111 | ac_status=$? |
a848cd7e SC |
20112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20113 | (exit $ac_status); } && | |
8a7b1113 | 20114 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
20115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20116 | (eval $ac_try) 2>&5 | |
20117 | ac_status=$? | |
20118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20119 | (exit $ac_status); }; }; then | |
20120 | wx_cv_expat_is_not_broken=yes | |
20121 | else | |
20122 | echo "$as_me: failed program was:" >&5 | |
20123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20124 | ||
20125 | wx_cv_expat_is_not_broken=no | |
20126 | ||
20127 | fi | |
8a7b1113 | 20128 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20129 | ac_ext=c |
20130 | ac_cpp='$CPP $CPPFLAGS' | |
20131 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20132 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20133 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20134 | ||
20135 | ||
20136 | ||
20137 | fi | |
20138 | echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5 | |
20139 | echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6 | |
20140 | if test "$wx_cv_expat_is_not_broken" = "yes" ; then | |
20141 | echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5 | |
20142 | echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6 | |
20143 | if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then | |
20144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20145 | else | |
20146 | ac_check_lib_save_LIBS=$LIBS | |
20147 | LIBS="-lexpat $LIBS" | |
20148 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 20149 | #line $LINENO "configure" |
a848cd7e SC |
20150 | /* confdefs.h. */ |
20151 | _ACEOF | |
20152 | cat confdefs.h >>conftest.$ac_ext | |
20153 | cat >>conftest.$ac_ext <<_ACEOF | |
20154 | /* end confdefs.h. */ | |
20155 | ||
20156 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20157 | #ifdef __cplusplus | |
20158 | extern "C" | |
20159 | #endif | |
20160 | /* We use char because int might match the return type of a gcc2 | |
20161 | builtin and then its argument prototype would still apply. */ | |
20162 | char XML_ParserCreate (); | |
20163 | int | |
20164 | main () | |
20165 | { | |
20166 | XML_ParserCreate (); | |
20167 | ; | |
20168 | return 0; | |
20169 | } | |
20170 | _ACEOF | |
20171 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 20173 | (eval $ac_link) 2>&5 |
a848cd7e | 20174 | ac_status=$? |
a848cd7e SC |
20175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20176 | (exit $ac_status); } && | |
8a7b1113 | 20177 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
20178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20179 | (eval $ac_try) 2>&5 | |
20180 | ac_status=$? | |
20181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20182 | (exit $ac_status); }; }; then | |
20183 | ac_cv_lib_expat_XML_ParserCreate=yes | |
20184 | else | |
20185 | echo "$as_me: failed program was:" >&5 | |
20186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20187 | ||
20188 | ac_cv_lib_expat_XML_ParserCreate=no | |
20189 | fi | |
8a7b1113 | 20190 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
20191 | LIBS=$ac_check_lib_save_LIBS |
20192 | fi | |
20193 | echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5 | |
20194 | echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6 | |
20195 | if test $ac_cv_lib_expat_XML_ParserCreate = yes; then | |
20196 | EXPAT_LINK=" -lexpat" | |
20197 | fi | |
20198 | ||
20199 | fi | |
20200 | fi | |
20201 | if test "x$EXPAT_LINK" = "x" ; then | |
20202 | if test "$wxUSE_EXPAT" = "sys" ; then | |
20203 | { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5 | |
20204 | echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;} | |
20205 | { (exit 1); exit 1; }; } | |
20206 | else | |
20207 | { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5 | |
20208 | echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;} | |
20209 | wxUSE_EXPAT=builtin | |
20210 | fi | |
20211 | else | |
20212 | wxUSE_EXPAT=sys | |
20213 | fi | |
20214 | fi | |
20215 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
20216 | ||
20217 | ||
20218 | subdirs="$subdirs src/expat" | |
20219 | ||
20220 | fi | |
20221 | fi | |
20222 | ||
20223 | ||
20224 | ||
20225 | if test "$wxUSE_LIBMSPACK" != "no"; then | |
20226 | ||
20227 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
20228 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
20229 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
20230 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
20231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20232 | fi | |
20233 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
20234 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
20235 | else | |
20236 | # Is the header compilable? | |
20237 | echo "$as_me:$LINENO: checking mspack.h usability" >&5 | |
20238 | echo $ECHO_N "checking mspack.h usability... $ECHO_C" >&6 | |
20239 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 20240 | #line $LINENO "configure" |
a848cd7e SC |
20241 | /* confdefs.h. */ |
20242 | _ACEOF | |
20243 | cat confdefs.h >>conftest.$ac_ext | |
20244 | cat >>conftest.$ac_ext <<_ACEOF | |
20245 | /* end confdefs.h. */ | |
20246 | $ac_includes_default | |
20247 | #include <mspack.h> | |
20248 | _ACEOF | |
20249 | rm -f conftest.$ac_objext | |
20250 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 20251 | (eval $ac_compile) 2>&5 |
a848cd7e | 20252 | ac_status=$? |
a848cd7e SC |
20253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20254 | (exit $ac_status); } && | |
8a7b1113 | 20255 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
20256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20257 | (eval $ac_try) 2>&5 | |
20258 | ac_status=$? | |
20259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20260 | (exit $ac_status); }; }; then | |
20261 | ac_header_compiler=yes | |
20262 | else | |
20263 | echo "$as_me: failed program was:" >&5 | |
20264 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20265 | ||
20266 | ac_header_compiler=no | |
20267 | fi | |
8a7b1113 | 20268 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20269 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20270 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20271 | ||
20272 | # Is the header present? | |
20273 | echo "$as_me:$LINENO: checking mspack.h presence" >&5 | |
20274 | echo $ECHO_N "checking mspack.h presence... $ECHO_C" >&6 | |
20275 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 20276 | #line $LINENO "configure" |
a848cd7e SC |
20277 | /* confdefs.h. */ |
20278 | _ACEOF | |
20279 | cat confdefs.h >>conftest.$ac_ext | |
20280 | cat >>conftest.$ac_ext <<_ACEOF | |
20281 | /* end confdefs.h. */ | |
20282 | #include <mspack.h> | |
20283 | _ACEOF | |
20284 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20285 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20286 | ac_status=$? | |
20287 | grep -v '^ *+' conftest.er1 >conftest.err | |
20288 | rm -f conftest.er1 | |
20289 | cat conftest.err >&5 | |
20290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20291 | (exit $ac_status); } >/dev/null; then | |
20292 | if test -s conftest.err; then | |
20293 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
20294 | else |
20295 | ac_cpp_err= | |
20296 | fi | |
20297 | else | |
20298 | ac_cpp_err=yes | |
20299 | fi | |
20300 | if test -z "$ac_cpp_err"; then | |
20301 | ac_header_preproc=yes | |
20302 | else | |
20303 | echo "$as_me: failed program was:" >&5 | |
20304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20305 | ||
20306 | ac_header_preproc=no | |
20307 | fi | |
20308 | rm -f conftest.err conftest.$ac_ext | |
20309 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20310 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20311 | ||
20312 | # So? What about this header? | |
8a7b1113 VZ |
20313 | case $ac_header_compiler:$ac_header_preproc in |
20314 | yes:no ) | |
a848cd7e SC |
20315 | { echo "$as_me:$LINENO: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20316 | echo "$as_me: WARNING: mspack.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
20317 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
20318 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
20319 | ( | |
20320 | cat <<\_ASBOX | |
20321 | ## ------------------------------------ ## | |
20322 | ## Report this to bug-autoconf@gnu.org. ## | |
20323 | ## ------------------------------------ ## | |
20324 | _ASBOX | |
20325 | ) | | |
20326 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 20327 | ;; |
8a7b1113 | 20328 | no:yes ) |
a848cd7e SC |
20329 | { echo "$as_me:$LINENO: WARNING: mspack.h: present but cannot be compiled" >&5 |
20330 | echo "$as_me: WARNING: mspack.h: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
20331 | { echo "$as_me:$LINENO: WARNING: mspack.h: check for missing prerequisite headers?" >&5 |
20332 | echo "$as_me: WARNING: mspack.h: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
20333 | { echo "$as_me:$LINENO: WARNING: mspack.h: proceeding with the preprocessor's result" >&5 |
20334 | echo "$as_me: WARNING: mspack.h: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
20335 | ( |
20336 | cat <<\_ASBOX | |
8a7b1113 VZ |
20337 | ## ------------------------------------ ## |
20338 | ## Report this to bug-autoconf@gnu.org. ## | |
20339 | ## ------------------------------------ ## | |
a848cd7e SC |
20340 | _ASBOX |
20341 | ) | | |
20342 | sed "s/^/$as_me: WARNING: /" >&2 | |
20343 | ;; | |
20344 | esac | |
20345 | echo "$as_me:$LINENO: checking for mspack.h" >&5 | |
20346 | echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6 | |
20347 | if test "${ac_cv_header_mspack_h+set}" = set; then | |
20348 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20349 | else | |
20350 | ac_cv_header_mspack_h=$ac_header_preproc | |
20351 | fi | |
20352 | echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5 | |
20353 | echo "${ECHO_T}$ac_cv_header_mspack_h" >&6 | |
20354 | ||
20355 | fi | |
20356 | if test $ac_cv_header_mspack_h = yes; then | |
20357 | found_mspack_h=1 | |
20358 | fi | |
20359 | ||
20360 | ||
20361 | if test "x$found_mspack_h" = "x1"; then | |
20362 | echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5 | |
20363 | echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6 | |
20364 | if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then | |
20365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20366 | else | |
20367 | ac_check_lib_save_LIBS=$LIBS | |
20368 | LIBS="-lmspack $LIBS" | |
20369 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 20370 | #line $LINENO "configure" |
a848cd7e SC |
20371 | /* confdefs.h. */ |
20372 | _ACEOF | |
20373 | cat confdefs.h >>conftest.$ac_ext | |
20374 | cat >>conftest.$ac_ext <<_ACEOF | |
20375 | /* end confdefs.h. */ | |
20376 | ||
20377 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20378 | #ifdef __cplusplus | |
20379 | extern "C" | |
20380 | #endif | |
20381 | /* We use char because int might match the return type of a gcc2 | |
20382 | builtin and then its argument prototype would still apply. */ | |
20383 | char mspack_create_chm_decompressor (); | |
20384 | int | |
20385 | main () | |
20386 | { | |
20387 | mspack_create_chm_decompressor (); | |
20388 | ; | |
20389 | return 0; | |
20390 | } | |
20391 | _ACEOF | |
20392 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20393 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 20394 | (eval $ac_link) 2>&5 |
a848cd7e | 20395 | ac_status=$? |
a848cd7e SC |
20396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20397 | (exit $ac_status); } && | |
8a7b1113 | 20398 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
20399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20400 | (eval $ac_try) 2>&5 | |
20401 | ac_status=$? | |
20402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20403 | (exit $ac_status); }; }; then | |
20404 | ac_cv_lib_mspack_mspack_create_chm_decompressor=yes | |
20405 | else | |
20406 | echo "$as_me: failed program was:" >&5 | |
20407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20408 | ||
20409 | ac_cv_lib_mspack_mspack_create_chm_decompressor=no | |
20410 | fi | |
8a7b1113 | 20411 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
20412 | LIBS=$ac_check_lib_save_LIBS |
20413 | fi | |
20414 | echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5 | |
20415 | echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6 | |
20416 | if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then | |
20417 | MSPACK_LINK=" -lmspack" | |
20418 | fi | |
20419 | ||
20420 | fi | |
20421 | if test "x$MSPACK_LINK" = "x" ; then | |
20422 | wxUSE_LIBMSPACK=no | |
20423 | else | |
20424 | cat >>confdefs.h <<\_ACEOF | |
20425 | #define wxUSE_LIBMSPACK 1 | |
20426 | _ACEOF | |
20427 | ||
20428 | fi | |
20429 | fi | |
20430 | ||
20431 | ||
20432 | ||
20433 | AFMINSTALL= | |
20434 | WIN32INSTALL= | |
20435 | ||
20436 | TOOLKIT= | |
20437 | TOOLKIT_INCLUDE= | |
20438 | WIDGET_SET= | |
20439 | ||
20440 | if test "$USE_WIN32" = 1 ; then | |
20441 | ||
20442 | for ac_header in w32api.h | |
20443 | do | |
20444 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
20445 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20446 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20447 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20448 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20449 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20450 | fi | |
20451 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20452 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20453 | else | |
20454 | # Is the header compilable? | |
20455 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
20456 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
20457 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 20458 | #line $LINENO "configure" |
a848cd7e SC |
20459 | /* confdefs.h. */ |
20460 | _ACEOF | |
20461 | cat confdefs.h >>conftest.$ac_ext | |
20462 | cat >>conftest.$ac_ext <<_ACEOF | |
20463 | /* end confdefs.h. */ | |
20464 | $ac_includes_default | |
20465 | #include <$ac_header> | |
20466 | _ACEOF | |
20467 | rm -f conftest.$ac_objext | |
20468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 20469 | (eval $ac_compile) 2>&5 |
a848cd7e | 20470 | ac_status=$? |
a848cd7e SC |
20471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20472 | (exit $ac_status); } && | |
8a7b1113 | 20473 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
20474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20475 | (eval $ac_try) 2>&5 | |
20476 | ac_status=$? | |
20477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20478 | (exit $ac_status); }; }; then | |
20479 | ac_header_compiler=yes | |
20480 | else | |
20481 | echo "$as_me: failed program was:" >&5 | |
20482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20483 | ||
20484 | ac_header_compiler=no | |
20485 | fi | |
8a7b1113 | 20486 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20487 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20488 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20489 | ||
20490 | # Is the header present? | |
20491 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20492 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20493 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 20494 | #line $LINENO "configure" |
a848cd7e SC |
20495 | /* confdefs.h. */ |
20496 | _ACEOF | |
20497 | cat confdefs.h >>conftest.$ac_ext | |
20498 | cat >>conftest.$ac_ext <<_ACEOF | |
20499 | /* end confdefs.h. */ | |
20500 | #include <$ac_header> | |
20501 | _ACEOF | |
20502 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20503 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20504 | ac_status=$? | |
20505 | grep -v '^ *+' conftest.er1 >conftest.err | |
20506 | rm -f conftest.er1 | |
20507 | cat conftest.err >&5 | |
20508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20509 | (exit $ac_status); } >/dev/null; then | |
20510 | if test -s conftest.err; then | |
20511 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
20512 | else |
20513 | ac_cpp_err= | |
20514 | fi | |
20515 | else | |
20516 | ac_cpp_err=yes | |
20517 | fi | |
20518 | if test -z "$ac_cpp_err"; then | |
20519 | ac_header_preproc=yes | |
20520 | else | |
20521 | echo "$as_me: failed program was:" >&5 | |
20522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20523 | ||
20524 | ac_header_preproc=no | |
20525 | fi | |
20526 | rm -f conftest.err conftest.$ac_ext | |
20527 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20528 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20529 | ||
20530 | # So? What about this header? | |
8a7b1113 VZ |
20531 | case $ac_header_compiler:$ac_header_preproc in |
20532 | yes:no ) | |
a848cd7e SC |
20533 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20534 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
20535 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20536 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
20537 | ( | |
20538 | cat <<\_ASBOX | |
20539 | ## ------------------------------------ ## | |
20540 | ## Report this to bug-autoconf@gnu.org. ## | |
20541 | ## ------------------------------------ ## | |
20542 | _ASBOX | |
20543 | ) | | |
20544 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 20545 | ;; |
8a7b1113 | 20546 | no:yes ) |
a848cd7e SC |
20547 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20548 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
20549 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20550 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
20551 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20552 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
20553 | ( |
20554 | cat <<\_ASBOX | |
8a7b1113 VZ |
20555 | ## ------------------------------------ ## |
20556 | ## Report this to bug-autoconf@gnu.org. ## | |
20557 | ## ------------------------------------ ## | |
a848cd7e SC |
20558 | _ASBOX |
20559 | ) | | |
20560 | sed "s/^/$as_me: WARNING: /" >&2 | |
20561 | ;; | |
20562 | esac | |
20563 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20564 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20565 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20567 | else | |
8a7b1113 | 20568 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
20569 | fi |
20570 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20571 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20572 | ||
20573 | fi | |
20574 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20575 | cat >>confdefs.h <<_ACEOF | |
20576 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20577 | _ACEOF | |
20578 | ||
20579 | fi | |
20580 | ||
20581 | done | |
20582 | ||
20583 | if test "${ac_cv_header_windows_h+set}" = set; then | |
20584 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
20585 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
20586 | if test "${ac_cv_header_windows_h+set}" = set; then | |
20587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20588 | fi | |
20589 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
20590 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
20591 | else | |
20592 | # Is the header compilable? | |
20593 | echo "$as_me:$LINENO: checking windows.h usability" >&5 | |
20594 | echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6 | |
20595 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 20596 | #line $LINENO "configure" |
a848cd7e SC |
20597 | /* confdefs.h. */ |
20598 | _ACEOF | |
20599 | cat confdefs.h >>conftest.$ac_ext | |
20600 | cat >>conftest.$ac_ext <<_ACEOF | |
20601 | /* end confdefs.h. */ | |
20602 | $ac_includes_default | |
20603 | #include <windows.h> | |
20604 | _ACEOF | |
20605 | rm -f conftest.$ac_objext | |
20606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 20607 | (eval $ac_compile) 2>&5 |
a848cd7e | 20608 | ac_status=$? |
a848cd7e SC |
20609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20610 | (exit $ac_status); } && | |
8a7b1113 | 20611 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
20612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20613 | (eval $ac_try) 2>&5 | |
20614 | ac_status=$? | |
20615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20616 | (exit $ac_status); }; }; then | |
20617 | ac_header_compiler=yes | |
20618 | else | |
20619 | echo "$as_me: failed program was:" >&5 | |
20620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20621 | ||
20622 | ac_header_compiler=no | |
20623 | fi | |
8a7b1113 | 20624 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
20625 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20626 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20627 | ||
20628 | # Is the header present? | |
20629 | echo "$as_me:$LINENO: checking windows.h presence" >&5 | |
20630 | echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6 | |
20631 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 20632 | #line $LINENO "configure" |
a848cd7e SC |
20633 | /* confdefs.h. */ |
20634 | _ACEOF | |
20635 | cat confdefs.h >>conftest.$ac_ext | |
20636 | cat >>conftest.$ac_ext <<_ACEOF | |
20637 | /* end confdefs.h. */ | |
20638 | #include <windows.h> | |
20639 | _ACEOF | |
20640 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20641 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20642 | ac_status=$? | |
20643 | grep -v '^ *+' conftest.er1 >conftest.err | |
20644 | rm -f conftest.er1 | |
20645 | cat conftest.err >&5 | |
20646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20647 | (exit $ac_status); } >/dev/null; then | |
20648 | if test -s conftest.err; then | |
20649 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
20650 | else |
20651 | ac_cpp_err= | |
20652 | fi | |
20653 | else | |
20654 | ac_cpp_err=yes | |
20655 | fi | |
20656 | if test -z "$ac_cpp_err"; then | |
20657 | ac_header_preproc=yes | |
20658 | else | |
20659 | echo "$as_me: failed program was:" >&5 | |
20660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20661 | ||
20662 | ac_header_preproc=no | |
20663 | fi | |
20664 | rm -f conftest.err conftest.$ac_ext | |
20665 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20666 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20667 | ||
20668 | # So? What about this header? | |
8a7b1113 VZ |
20669 | case $ac_header_compiler:$ac_header_preproc in |
20670 | yes:no ) | |
a848cd7e SC |
20671 | { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
20672 | echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
20673 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
20674 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
20675 | ( | |
20676 | cat <<\_ASBOX | |
20677 | ## ------------------------------------ ## | |
20678 | ## Report this to bug-autoconf@gnu.org. ## | |
20679 | ## ------------------------------------ ## | |
20680 | _ASBOX | |
20681 | ) | | |
20682 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 20683 | ;; |
8a7b1113 | 20684 | no:yes ) |
a848cd7e SC |
20685 | { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5 |
20686 | echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
20687 | { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5 |
20688 | echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
20689 | { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5 |
20690 | echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
20691 | ( |
20692 | cat <<\_ASBOX | |
8a7b1113 VZ |
20693 | ## ------------------------------------ ## |
20694 | ## Report this to bug-autoconf@gnu.org. ## | |
20695 | ## ------------------------------------ ## | |
a848cd7e SC |
20696 | _ASBOX |
20697 | ) | | |
20698 | sed "s/^/$as_me: WARNING: /" >&2 | |
20699 | ;; | |
20700 | esac | |
20701 | echo "$as_me:$LINENO: checking for windows.h" >&5 | |
20702 | echo $ECHO_N "checking for windows.h... $ECHO_C" >&6 | |
20703 | if test "${ac_cv_header_windows_h+set}" = set; then | |
20704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20705 | else | |
20706 | ac_cv_header_windows_h=$ac_header_preproc | |
20707 | fi | |
20708 | echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5 | |
20709 | echo "${ECHO_T}$ac_cv_header_windows_h" >&6 | |
20710 | ||
20711 | fi | |
20712 | if test $ac_cv_header_windows_h = yes; then | |
20713 | : | |
20714 | else | |
20715 | ||
20716 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5 | |
20717 | echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;} | |
20718 | { (exit 1); exit 1; }; } | |
20719 | ||
20720 | fi | |
20721 | ||
20722 | ||
20723 | ||
20724 | LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32" | |
20725 | ||
20726 | if test "$wxUSE_ACCESSIBILITY" = "yes" ; then | |
20727 | LIBS="$LIBS -loleacc" | |
20728 | fi | |
20729 | ||
20730 | case "${host}" in | |
20731 | *-*-cygwin* ) | |
20732 | LIBS="$LIBS -lkernel32 -luser32" | |
20733 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__" | |
20734 | esac | |
20735 | ||
20736 | if test "$wxUSE_ODBC" = "sys" ; then | |
20737 | wxUSE_ODBC = "yes" | |
20738 | fi | |
20739 | if test "$wxUSE_ODBC" = "yes" ; then | |
20740 | LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS" | |
20741 | cat >>confdefs.h <<\_ACEOF | |
20742 | #define wxUSE_ODBC 1 | |
20743 | _ACEOF | |
20744 | ||
20745 | fi | |
20746 | ||
20747 | RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__" | |
20748 | RESPROGRAMOBJ="\$(PROGRAM)_resources.o" | |
20749 | ||
20750 | WIN32INSTALL=win32install | |
20751 | fi | |
20752 | ||
20753 | if test "$wxUSE_GUI" = "yes"; then | |
20754 | USE_GUI=1 | |
20755 | ||
20756 | GUI_TK_LIBRARY= | |
20757 | ||
20758 | WXGTK12= | |
20759 | WXGTK127= | |
20760 | WXGTK20= | |
20761 | WXGPE= | |
20762 | ||
20763 | if test "$wxUSE_MSW" = 1 ; then | |
20764 | TOOLKIT=MSW | |
20765 | GUIDIST=MSW_DIST | |
20766 | ||
20767 | case "${host}" in | |
20768 | *-*-mingw32* ) | |
20769 | WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows" | |
20770 | esac | |
20771 | fi | |
20772 | ||
20773 | if test "$wxUSE_GTK" = 1; then | |
20774 | echo "$as_me:$LINENO: checking for GTK+ version" >&5 | |
20775 | echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6 | |
20776 | ||
20777 | gtk_version_cached=1 | |
20778 | if test "${wx_cv_lib_gtk+set}" = set; then | |
20779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20780 | else | |
20781 | ||
20782 | gtk_version_cached=0 | |
20783 | echo "$as_me:$LINENO: result: " >&5 | |
20784 | echo "${ECHO_T}" >&6 | |
20785 | ||
20786 | GTK_MODULES= | |
20787 | if test "$wxUSE_THREADS" = "yes"; then | |
20788 | GTK_MODULES=gthread | |
20789 | fi | |
20790 | ||
20791 | wx_cv_lib_gtk= | |
20792 | if test "x$wxUSE_GTK2" = "xyes"; then | |
20793 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
20794 | if test "${enable_gtktest+set}" = set; then | |
20795 | enableval="$enable_gtktest" | |
20796 | ||
20797 | else | |
20798 | enable_gtktest=yes | |
20799 | fi; | |
20800 | ||
20801 | pkg_config_args=gtk+-2.0 | |
20802 | for module in . $GTK_MODULES | |
20803 | do | |
20804 | case "$module" in | |
20805 | gthread) | |
20806 | pkg_config_args="$pkg_config_args gthread-2.0" | |
20807 | ;; | |
20808 | esac | |
20809 | done | |
20810 | ||
20811 | no_gtk="" | |
20812 | ||
20813 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
20814 | set dummy pkg-config; ac_word=$2 | |
20815 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
20816 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
20817 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
20818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20819 | else | |
20820 | case $PKG_CONFIG in | |
20821 | [\\/]* | ?:[\\/]*) | |
20822 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
20823 | ;; | |
20824 | *) | |
20825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20826 | for as_dir in $PATH | |
20827 | do | |
20828 | IFS=$as_save_IFS | |
20829 | test -z "$as_dir" && as_dir=. | |
20830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
20831 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
20832 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
20833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
20834 | break 2 | |
20835 | fi | |
20836 | done | |
20837 | done | |
20838 | ||
20839 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
20840 | ;; | |
20841 | esac | |
20842 | fi | |
20843 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
20844 | ||
20845 | if test -n "$PKG_CONFIG"; then | |
20846 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
20847 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
20848 | else | |
20849 | echo "$as_me:$LINENO: result: no" >&5 | |
20850 | echo "${ECHO_T}no" >&6 | |
20851 | fi | |
20852 | ||
20853 | ||
20854 | if test x$PKG_CONFIG != xno ; then | |
20855 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | |
20856 | : | |
20857 | else | |
c2218763 | 20858 | echo "*** pkg-config too old; version 0.7 or better required." |
a848cd7e SC |
20859 | no_gtk=yes |
20860 | PKG_CONFIG=no | |
20861 | fi | |
20862 | else | |
20863 | no_gtk=yes | |
20864 | fi | |
20865 | ||
20866 | min_gtk_version=2.0.0 | |
20867 | echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | |
20868 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6 | |
20869 | ||
20870 | if test x$PKG_CONFIG != xno ; then | |
20871 | ## don't try to run the test against uninstalled libtool libs | |
20872 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | |
20873 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | |
20874 | enable_gtktest=no | |
20875 | fi | |
20876 | ||
20877 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | |
20878 | : | |
20879 | else | |
20880 | no_gtk=yes | |
20881 | fi | |
20882 | fi | |
20883 | ||
20884 | if test x"$no_gtk" = x ; then | |
20885 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | |
20886 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | |
20887 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20888 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
20889 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20890 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
20891 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | |
20892 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
20893 | if test "x$enable_gtktest" = "xyes" ; then | |
20894 | ac_save_CFLAGS="$CFLAGS" | |
20895 | ac_save_LIBS="$LIBS" | |
20896 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
20897 | LIBS="$GTK_LIBS $LIBS" | |
20898 | rm -f conf.gtktest | |
20899 | if test "$cross_compiling" = yes; then | |
20900 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
20901 | else | |
20902 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 20903 | #line $LINENO "configure" |
a848cd7e SC |
20904 | /* confdefs.h. */ |
20905 | _ACEOF | |
20906 | cat confdefs.h >>conftest.$ac_ext | |
20907 | cat >>conftest.$ac_ext <<_ACEOF | |
20908 | /* end confdefs.h. */ | |
20909 | ||
20910 | #include <gtk/gtk.h> | |
20911 | #include <stdio.h> | |
20912 | #include <stdlib.h> | |
20913 | ||
20914 | int | |
20915 | main () | |
20916 | { | |
20917 | int major, minor, micro; | |
20918 | char *tmp_version; | |
20919 | ||
20920 | system ("touch conf.gtktest"); | |
20921 | ||
20922 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
20923 | tmp_version = g_strdup("$min_gtk_version"); | |
20924 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
20925 | printf("%s, bad version string\n", "$min_gtk_version"); | |
20926 | exit(1); | |
20927 | } | |
20928 | ||
20929 | if ((gtk_major_version != $gtk_config_major_version) || | |
20930 | (gtk_minor_version != $gtk_config_minor_version) || | |
20931 | (gtk_micro_version != $gtk_config_micro_version)) | |
20932 | { | |
20933 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
20934 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
20935 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20936 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | |
20937 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
20938 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
20939 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
20940 | printf("*** required on your system.\n"); | |
20941 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | |
20942 | printf("*** to point to the correct configuration files\n"); | |
20943 | } | |
20944 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
20945 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
20946 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
20947 | { | |
20948 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
20949 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
20950 | printf("*** library (version %d.%d.%d)\n", | |
20951 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20952 | } | |
20953 | else | |
20954 | { | |
20955 | if ((gtk_major_version > major) || | |
20956 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
20957 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
20958 | { | |
20959 | return 0; | |
20960 | } | |
20961 | else | |
20962 | { | |
20963 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
20964 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
20965 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
20966 | major, minor, micro); | |
20967 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
20968 | printf("***\n"); | |
20969 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
20970 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | |
20971 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
20972 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | |
20973 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | |
20974 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
20975 | printf("*** so that the correct libraries are found at run-time))\n"); | |
20976 | } | |
20977 | } | |
20978 | return 1; | |
20979 | } | |
20980 | ||
20981 | _ACEOF | |
20982 | rm -f conftest$ac_exeext | |
20983 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20984 | (eval $ac_link) 2>&5 | |
20985 | ac_status=$? | |
20986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20987 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20989 | (eval $ac_try) 2>&5 | |
20990 | ac_status=$? | |
20991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20992 | (exit $ac_status); }; }; then | |
20993 | : | |
20994 | else | |
20995 | echo "$as_me: program exited with status $ac_status" >&5 | |
20996 | echo "$as_me: failed program was:" >&5 | |
20997 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20998 | ||
20999 | ( exit $ac_status ) | |
21000 | no_gtk=yes | |
21001 | fi | |
8a7b1113 | 21002 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21003 | fi |
21004 | CFLAGS="$ac_save_CFLAGS" | |
21005 | LIBS="$ac_save_LIBS" | |
21006 | fi | |
21007 | fi | |
21008 | if test "x$no_gtk" = x ; then | |
21009 | echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | |
21010 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6 | |
21011 | wx_cv_lib_gtk=2.0 | |
21012 | else | |
21013 | echo "$as_me:$LINENO: result: no" >&5 | |
21014 | echo "${ECHO_T}no" >&6 | |
21015 | if test "$PKG_CONFIG" = "no" ; then | |
21016 | echo "*** A new enough version of pkg-config was not found." | |
21017 | echo "*** See http://pkgconfig.sourceforge.net" | |
21018 | else | |
21019 | if test -f conf.gtktest ; then | |
21020 | : | |
21021 | else | |
21022 | echo "*** Could not run GTK+ test program, checking why..." | |
21023 | ac_save_CFLAGS="$CFLAGS" | |
21024 | ac_save_LIBS="$LIBS" | |
21025 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21026 | LIBS="$LIBS $GTK_LIBS" | |
21027 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 21028 | #line $LINENO "configure" |
a848cd7e SC |
21029 | /* confdefs.h. */ |
21030 | _ACEOF | |
21031 | cat confdefs.h >>conftest.$ac_ext | |
21032 | cat >>conftest.$ac_ext <<_ACEOF | |
21033 | /* end confdefs.h. */ | |
21034 | ||
21035 | #include <gtk/gtk.h> | |
21036 | #include <stdio.h> | |
21037 | ||
21038 | int | |
21039 | main () | |
21040 | { | |
21041 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21042 | ; | |
21043 | return 0; | |
21044 | } | |
21045 | _ACEOF | |
21046 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21047 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 21048 | (eval $ac_link) 2>&5 |
a848cd7e | 21049 | ac_status=$? |
a848cd7e SC |
21050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21051 | (exit $ac_status); } && | |
8a7b1113 | 21052 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
21053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21054 | (eval $ac_try) 2>&5 | |
21055 | ac_status=$? | |
21056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21057 | (exit $ac_status); }; }; then | |
21058 | echo "*** The test program compiled, but did not run. This usually means" | |
21059 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | |
21060 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | |
21061 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
21062 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
21063 | echo "*** is required on your system" | |
21064 | echo "***" | |
21065 | echo "*** If you have an old version installed, it is best to remove it, although" | |
21066 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
21067 | else | |
21068 | echo "$as_me: failed program was:" >&5 | |
21069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21070 | ||
21071 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21072 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | |
21073 | fi | |
8a7b1113 | 21074 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
21075 | CFLAGS="$ac_save_CFLAGS" |
21076 | LIBS="$ac_save_LIBS" | |
21077 | fi | |
21078 | fi | |
21079 | GTK_CFLAGS="" | |
21080 | GTK_LIBS="" | |
21081 | : | |
21082 | fi | |
21083 | ||
21084 | ||
21085 | rm -f conf.gtktest | |
21086 | ||
21087 | else | |
21088 | ||
21089 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21090 | if test "${with_gtk_prefix+set}" = set; then | |
21091 | withval="$with_gtk_prefix" | |
21092 | gtk_config_prefix="$withval" | |
21093 | else | |
21094 | gtk_config_prefix="" | |
21095 | fi; | |
21096 | ||
21097 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
21098 | if test "${with_gtk_exec_prefix+set}" = set; then | |
21099 | withval="$with_gtk_exec_prefix" | |
21100 | gtk_config_exec_prefix="$withval" | |
21101 | else | |
21102 | gtk_config_exec_prefix="" | |
21103 | fi; | |
21104 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
21105 | if test "${enable_gtktest+set}" = set; then | |
21106 | enableval="$enable_gtktest" | |
21107 | ||
21108 | else | |
21109 | enable_gtktest=yes | |
21110 | fi; | |
21111 | ||
21112 | for module in . $GTK_MODULES | |
21113 | do | |
21114 | case "$module" in | |
21115 | gthread) | |
21116 | gtk_config_args="$gtk_config_args gthread" | |
21117 | ;; | |
21118 | esac | |
21119 | done | |
21120 | ||
21121 | if test x$gtk_config_exec_prefix != x ; then | |
21122 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
21123 | if test x${GTK_CONFIG+set} != xset ; then | |
21124 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
21125 | fi | |
21126 | fi | |
21127 | if test x$gtk_config_prefix != x ; then | |
21128 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
21129 | if test x${GTK_CONFIG+set} != xset ; then | |
21130 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
21131 | fi | |
21132 | fi | |
21133 | ||
21134 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
21135 | set dummy gtk-config; ac_word=$2 | |
21136 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
21137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21138 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
21139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21140 | else | |
21141 | case $GTK_CONFIG in | |
21142 | [\\/]* | ?:[\\/]*) | |
21143 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
21144 | ;; | |
21145 | *) | |
21146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21147 | for as_dir in $PATH | |
21148 | do | |
21149 | IFS=$as_save_IFS | |
21150 | test -z "$as_dir" && as_dir=. | |
21151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21152 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21153 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21154 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21155 | break 2 | |
21156 | fi | |
21157 | done | |
21158 | done | |
21159 | ||
21160 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
21161 | ;; | |
21162 | esac | |
21163 | fi | |
21164 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
21165 | ||
21166 | if test -n "$GTK_CONFIG"; then | |
21167 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
21168 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21169 | else | |
21170 | echo "$as_me:$LINENO: result: no" >&5 | |
21171 | echo "${ECHO_T}no" >&6 | |
21172 | fi | |
21173 | ||
21174 | min_gtk_version=1.2.7 | |
21175 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
21176 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21177 | no_gtk="" | |
21178 | if test "$GTK_CONFIG" = "no" ; then | |
21179 | no_gtk=yes | |
21180 | else | |
21181 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
21182 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
21183 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21184 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21185 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21186 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21187 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21188 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21189 | if test "x$enable_gtktest" = "xyes" ; then | |
21190 | ac_save_CFLAGS="$CFLAGS" | |
21191 | ac_save_LIBS="$LIBS" | |
21192 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21193 | LIBS="$GTK_LIBS $LIBS" | |
21194 | rm -f conf.gtktest | |
21195 | if test "$cross_compiling" = yes; then | |
21196 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
21197 | else | |
21198 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 21199 | #line $LINENO "configure" |
a848cd7e SC |
21200 | /* confdefs.h. */ |
21201 | _ACEOF | |
21202 | cat confdefs.h >>conftest.$ac_ext | |
21203 | cat >>conftest.$ac_ext <<_ACEOF | |
21204 | /* end confdefs.h. */ | |
21205 | ||
21206 | #include <gtk/gtk.h> | |
21207 | #include <stdio.h> | |
21208 | #include <stdlib.h> | |
21209 | ||
21210 | int | |
21211 | main () | |
21212 | { | |
21213 | int major, minor, micro; | |
21214 | char *tmp_version; | |
21215 | ||
21216 | system ("touch conf.gtktest"); | |
21217 | ||
21218 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
21219 | tmp_version = g_strdup("$min_gtk_version"); | |
21220 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21221 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21222 | exit(1); | |
21223 | } | |
21224 | ||
21225 | if ((gtk_major_version != $gtk_config_major_version) || | |
21226 | (gtk_minor_version != $gtk_config_minor_version) || | |
21227 | (gtk_micro_version != $gtk_config_micro_version)) | |
21228 | { | |
21229 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
21230 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
21231 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21232 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
21233 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21234 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21235 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21236 | printf("*** required on your system.\n"); | |
21237 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
21238 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
21239 | printf("*** before re-running configure\n"); | |
21240 | } | |
21241 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
21242 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
21243 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21244 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21245 | { | |
21246 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21247 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21248 | printf("*** library (version %d.%d.%d)\n", | |
21249 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21250 | } | |
21251 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
21252 | else | |
21253 | { | |
21254 | if ((gtk_major_version > major) || | |
21255 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21256 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21257 | { | |
21258 | return 0; | |
21259 | } | |
21260 | else | |
21261 | { | |
21262 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21263 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21264 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21265 | major, minor, micro); | |
21266 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21267 | printf("***\n"); | |
21268 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21269 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
21270 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21271 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
21272 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
21273 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
21274 | printf("*** so that the correct libraries are found at run-time))\n"); | |
21275 | } | |
21276 | } | |
21277 | return 1; | |
21278 | } | |
21279 | ||
21280 | _ACEOF | |
21281 | rm -f conftest$ac_exeext | |
21282 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21283 | (eval $ac_link) 2>&5 | |
21284 | ac_status=$? | |
21285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21286 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21288 | (eval $ac_try) 2>&5 | |
21289 | ac_status=$? | |
21290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21291 | (exit $ac_status); }; }; then | |
21292 | : | |
21293 | else | |
21294 | echo "$as_me: program exited with status $ac_status" >&5 | |
21295 | echo "$as_me: failed program was:" >&5 | |
21296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21297 | ||
21298 | ( exit $ac_status ) | |
21299 | no_gtk=yes | |
21300 | fi | |
8a7b1113 | 21301 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21302 | fi |
21303 | CFLAGS="$ac_save_CFLAGS" | |
21304 | LIBS="$ac_save_LIBS" | |
21305 | fi | |
21306 | fi | |
21307 | if test "x$no_gtk" = x ; then | |
21308 | echo "$as_me:$LINENO: result: yes" >&5 | |
21309 | echo "${ECHO_T}yes" >&6 | |
21310 | wx_cv_lib_gtk=1.2.7 | |
21311 | else | |
21312 | echo "$as_me:$LINENO: result: no" >&5 | |
21313 | echo "${ECHO_T}no" >&6 | |
21314 | if test "$GTK_CONFIG" = "no" ; then | |
21315 | echo "*** The gtk-config script installed by GTK could not be found" | |
21316 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
21317 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
21318 | echo "*** full path to gtk-config." | |
21319 | else | |
21320 | if test -f conf.gtktest ; then | |
21321 | : | |
21322 | else | |
21323 | echo "*** Could not run GTK test program, checking why..." | |
21324 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21325 | LIBS="$LIBS $GTK_LIBS" | |
21326 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 21327 | #line $LINENO "configure" |
a848cd7e SC |
21328 | /* confdefs.h. */ |
21329 | _ACEOF | |
21330 | cat confdefs.h >>conftest.$ac_ext | |
21331 | cat >>conftest.$ac_ext <<_ACEOF | |
21332 | /* end confdefs.h. */ | |
21333 | ||
21334 | #include <gtk/gtk.h> | |
21335 | #include <stdio.h> | |
21336 | ||
21337 | int | |
21338 | main () | |
21339 | { | |
21340 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21341 | ; | |
21342 | return 0; | |
21343 | } | |
21344 | _ACEOF | |
21345 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21346 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 21347 | (eval $ac_link) 2>&5 |
a848cd7e | 21348 | ac_status=$? |
a848cd7e SC |
21349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21350 | (exit $ac_status); } && | |
8a7b1113 | 21351 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
21352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21353 | (eval $ac_try) 2>&5 | |
21354 | ac_status=$? | |
21355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21356 | (exit $ac_status); }; }; then | |
21357 | echo "*** The test program compiled, but did not run. This usually means" | |
21358 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
21359 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
21360 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
21361 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
21362 | echo "*** is required on your system" | |
21363 | echo "***" | |
21364 | echo "*** If you have an old version installed, it is best to remove it, although" | |
21365 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
21366 | echo "***" | |
21367 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
21368 | echo "*** came with the system with the command" | |
21369 | echo "***" | |
21370 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
21371 | else | |
21372 | echo "$as_me: failed program was:" >&5 | |
21373 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21374 | ||
21375 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21376 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
21377 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
21378 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
21379 | fi | |
8a7b1113 | 21380 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
21381 | CFLAGS="$ac_save_CFLAGS" |
21382 | LIBS="$ac_save_LIBS" | |
21383 | fi | |
21384 | fi | |
21385 | GTK_CFLAGS="" | |
21386 | GTK_LIBS="" | |
21387 | : | |
21388 | fi | |
21389 | ||
21390 | ||
21391 | rm -f conf.gtktest | |
21392 | ||
21393 | ||
21394 | if test -z "$wx_cv_lib_gtk"; then | |
21395 | ||
21396 | # Check whether --with-gtk-prefix or --without-gtk-prefix was given. | |
21397 | if test "${with_gtk_prefix+set}" = set; then | |
21398 | withval="$with_gtk_prefix" | |
21399 | gtk_config_prefix="$withval" | |
21400 | else | |
21401 | gtk_config_prefix="" | |
21402 | fi; | |
21403 | ||
21404 | # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given. | |
21405 | if test "${with_gtk_exec_prefix+set}" = set; then | |
21406 | withval="$with_gtk_exec_prefix" | |
21407 | gtk_config_exec_prefix="$withval" | |
21408 | else | |
21409 | gtk_config_exec_prefix="" | |
21410 | fi; | |
21411 | # Check whether --enable-gtktest or --disable-gtktest was given. | |
21412 | if test "${enable_gtktest+set}" = set; then | |
21413 | enableval="$enable_gtktest" | |
21414 | ||
21415 | else | |
21416 | enable_gtktest=yes | |
21417 | fi; | |
21418 | ||
21419 | for module in . $GTK_MODULES | |
21420 | do | |
21421 | case "$module" in | |
21422 | gthread) | |
21423 | gtk_config_args="$gtk_config_args gthread" | |
21424 | ;; | |
21425 | esac | |
21426 | done | |
21427 | ||
21428 | if test x$gtk_config_exec_prefix != x ; then | |
21429 | gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" | |
21430 | if test x${GTK_CONFIG+set} != xset ; then | |
21431 | GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config | |
21432 | fi | |
21433 | fi | |
21434 | if test x$gtk_config_prefix != x ; then | |
21435 | gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" | |
21436 | if test x${GTK_CONFIG+set} != xset ; then | |
21437 | GTK_CONFIG=$gtk_config_prefix/bin/gtk-config | |
21438 | fi | |
21439 | fi | |
21440 | ||
21441 | # Extract the first word of "gtk-config", so it can be a program name with args. | |
21442 | set dummy gtk-config; ac_word=$2 | |
21443 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
21444 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21445 | if test "${ac_cv_path_GTK_CONFIG+set}" = set; then | |
21446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21447 | else | |
21448 | case $GTK_CONFIG in | |
21449 | [\\/]* | ?:[\\/]*) | |
21450 | ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. | |
21451 | ;; | |
21452 | *) | |
21453 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21454 | for as_dir in $PATH | |
21455 | do | |
21456 | IFS=$as_save_IFS | |
21457 | test -z "$as_dir" && as_dir=. | |
21458 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21459 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21460 | ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21461 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21462 | break 2 | |
21463 | fi | |
21464 | done | |
21465 | done | |
21466 | ||
21467 | test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" | |
21468 | ;; | |
21469 | esac | |
21470 | fi | |
21471 | GTK_CONFIG=$ac_cv_path_GTK_CONFIG | |
21472 | ||
21473 | if test -n "$GTK_CONFIG"; then | |
21474 | echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5 | |
21475 | echo "${ECHO_T}$GTK_CONFIG" >&6 | |
21476 | else | |
21477 | echo "$as_me:$LINENO: result: no" >&5 | |
21478 | echo "${ECHO_T}no" >&6 | |
21479 | fi | |
21480 | ||
21481 | min_gtk_version=1.2.3 | |
21482 | echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5 | |
21483 | echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6 | |
21484 | no_gtk="" | |
21485 | if test "$GTK_CONFIG" = "no" ; then | |
21486 | no_gtk=yes | |
21487 | else | |
21488 | GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` | |
21489 | GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` | |
21490 | gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21491 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
21492 | gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21493 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
21494 | gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ | |
21495 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
21496 | if test "x$enable_gtktest" = "xyes" ; then | |
21497 | ac_save_CFLAGS="$CFLAGS" | |
21498 | ac_save_LIBS="$LIBS" | |
21499 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21500 | LIBS="$GTK_LIBS $LIBS" | |
21501 | rm -f conf.gtktest | |
21502 | if test "$cross_compiling" = yes; then | |
21503 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
21504 | else | |
21505 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 21506 | #line $LINENO "configure" |
a848cd7e SC |
21507 | /* confdefs.h. */ |
21508 | _ACEOF | |
21509 | cat confdefs.h >>conftest.$ac_ext | |
21510 | cat >>conftest.$ac_ext <<_ACEOF | |
21511 | /* end confdefs.h. */ | |
21512 | ||
21513 | #include <gtk/gtk.h> | |
21514 | #include <stdio.h> | |
21515 | #include <stdlib.h> | |
21516 | ||
21517 | int | |
21518 | main () | |
21519 | { | |
21520 | int major, minor, micro; | |
21521 | char *tmp_version; | |
21522 | ||
21523 | system ("touch conf.gtktest"); | |
21524 | ||
21525 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
21526 | tmp_version = g_strdup("$min_gtk_version"); | |
21527 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
21528 | printf("%s, bad version string\n", "$min_gtk_version"); | |
21529 | exit(1); | |
21530 | } | |
21531 | ||
21532 | if ((gtk_major_version != $gtk_config_major_version) || | |
21533 | (gtk_minor_version != $gtk_config_minor_version) || | |
21534 | (gtk_micro_version != $gtk_config_micro_version)) | |
21535 | { | |
21536 | printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | |
21537 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | |
21538 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21539 | printf ("*** was found! If gtk-config was correct, then it is best\n"); | |
21540 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | |
21541 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | |
21542 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | |
21543 | printf("*** required on your system.\n"); | |
21544 | printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); | |
21545 | printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); | |
21546 | printf("*** before re-running configure\n"); | |
21547 | } | |
21548 | #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION) | |
21549 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | |
21550 | (gtk_minor_version != GTK_MINOR_VERSION) || | |
21551 | (gtk_micro_version != GTK_MICRO_VERSION)) | |
21552 | { | |
21553 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | |
21554 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | |
21555 | printf("*** library (version %d.%d.%d)\n", | |
21556 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21557 | } | |
21558 | #endif /* defined (GTK_MAJOR_VERSION) ... */ | |
21559 | else | |
21560 | { | |
21561 | if ((gtk_major_version > major) || | |
21562 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | |
21563 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | |
21564 | { | |
21565 | return 0; | |
21566 | } | |
21567 | else | |
21568 | { | |
21569 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | |
21570 | gtk_major_version, gtk_minor_version, gtk_micro_version); | |
21571 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | |
21572 | major, minor, micro); | |
21573 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | |
21574 | printf("***\n"); | |
21575 | printf("*** If you have already installed a sufficiently new version, this error\n"); | |
21576 | printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); | |
21577 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | |
21578 | printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); | |
21579 | printf("*** correct copy of gtk-config. (In this case, you will have to\n"); | |
21580 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | |
21581 | printf("*** so that the correct libraries are found at run-time))\n"); | |
21582 | } | |
21583 | } | |
21584 | return 1; | |
21585 | } | |
21586 | ||
21587 | _ACEOF | |
21588 | rm -f conftest$ac_exeext | |
21589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21590 | (eval $ac_link) 2>&5 | |
21591 | ac_status=$? | |
21592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21593 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21595 | (eval $ac_try) 2>&5 | |
21596 | ac_status=$? | |
21597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21598 | (exit $ac_status); }; }; then | |
21599 | : | |
21600 | else | |
21601 | echo "$as_me: program exited with status $ac_status" >&5 | |
21602 | echo "$as_me: failed program was:" >&5 | |
21603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21604 | ||
21605 | ( exit $ac_status ) | |
21606 | no_gtk=yes | |
21607 | fi | |
8a7b1113 | 21608 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
21609 | fi |
21610 | CFLAGS="$ac_save_CFLAGS" | |
21611 | LIBS="$ac_save_LIBS" | |
21612 | fi | |
21613 | fi | |
21614 | if test "x$no_gtk" = x ; then | |
21615 | echo "$as_me:$LINENO: result: yes" >&5 | |
21616 | echo "${ECHO_T}yes" >&6 | |
21617 | wx_cv_lib_gtk=1.2.3 | |
21618 | else | |
21619 | echo "$as_me:$LINENO: result: no" >&5 | |
21620 | echo "${ECHO_T}no" >&6 | |
21621 | if test "$GTK_CONFIG" = "no" ; then | |
21622 | echo "*** The gtk-config script installed by GTK could not be found" | |
21623 | echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" | |
21624 | echo "*** your path, or set the GTK_CONFIG environment variable to the" | |
21625 | echo "*** full path to gtk-config." | |
21626 | else | |
21627 | if test -f conf.gtktest ; then | |
21628 | : | |
21629 | else | |
21630 | echo "*** Could not run GTK test program, checking why..." | |
21631 | CFLAGS="$CFLAGS $GTK_CFLAGS" | |
21632 | LIBS="$LIBS $GTK_LIBS" | |
21633 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 21634 | #line $LINENO "configure" |
a848cd7e SC |
21635 | /* confdefs.h. */ |
21636 | _ACEOF | |
21637 | cat confdefs.h >>conftest.$ac_ext | |
21638 | cat >>conftest.$ac_ext <<_ACEOF | |
21639 | /* end confdefs.h. */ | |
21640 | ||
21641 | #include <gtk/gtk.h> | |
21642 | #include <stdio.h> | |
21643 | ||
21644 | int | |
21645 | main () | |
21646 | { | |
21647 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | |
21648 | ; | |
21649 | return 0; | |
21650 | } | |
21651 | _ACEOF | |
21652 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21653 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 21654 | (eval $ac_link) 2>&5 |
a848cd7e | 21655 | ac_status=$? |
a848cd7e SC |
21656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21657 | (exit $ac_status); } && | |
8a7b1113 | 21658 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
21659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21660 | (eval $ac_try) 2>&5 | |
21661 | ac_status=$? | |
21662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21663 | (exit $ac_status); }; }; then | |
21664 | echo "*** The test program compiled, but did not run. This usually means" | |
21665 | echo "*** that the run-time linker is not finding GTK or finding the wrong" | |
21666 | echo "*** version of GTK. If it is not finding GTK, you'll need to set your" | |
21667 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
21668 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
21669 | echo "*** is required on your system" | |
21670 | echo "***" | |
21671 | echo "*** If you have an old version installed, it is best to remove it, although" | |
21672 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
21673 | echo "***" | |
21674 | echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" | |
21675 | echo "*** came with the system with the command" | |
21676 | echo "***" | |
21677 | echo "*** rpm --erase --nodeps gtk gtk-devel" | |
21678 | else | |
21679 | echo "$as_me: failed program was:" >&5 | |
21680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21681 | ||
21682 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
21683 | echo "*** exact error that occured. This usually means GTK was incorrectly installed" | |
21684 | echo "*** or that you have moved GTK since it was installed. In the latter case, you" | |
21685 | echo "*** may want to edit the gtk-config script: $GTK_CONFIG" | |
21686 | fi | |
8a7b1113 | 21687 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
21688 | CFLAGS="$ac_save_CFLAGS" |
21689 | LIBS="$ac_save_LIBS" | |
21690 | fi | |
21691 | fi | |
21692 | GTK_CFLAGS="" | |
21693 | GTK_LIBS="" | |
21694 | : | |
21695 | fi | |
21696 | ||
21697 | ||
21698 | rm -f conf.gtktest | |
21699 | ||
21700 | fi | |
21701 | fi | |
21702 | ||
21703 | if test -z "$wx_cv_lib_gtk"; then | |
21704 | wx_cv_lib_gtk=none | |
21705 | else | |
21706 | wx_cv_cflags_gtk=$GTK_CFLAGS | |
21707 | wx_cv_libs_gtk=$GTK_LIBS | |
21708 | fi | |
21709 | ||
21710 | ||
21711 | fi | |
21712 | ||
21713 | ||
21714 | if test "$gtk_version_cached" = 1; then | |
21715 | echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5 | |
21716 | echo "${ECHO_T}$wx_cv_lib_gtk" >&6 | |
21717 | fi | |
21718 | ||
21719 | case "$wx_cv_lib_gtk" in | |
21720 | 2.0) WXGTK20=1 | |
21721 | TOOLKIT_VERSION=2 | |
21722 | ;; | |
21723 | 1.2.7) WXGTK127=1 | |
21724 | WXGTK12=1 | |
21725 | ;; | |
21726 | 1.2.3) WXGTK12=1 | |
21727 | ;; | |
21728 | *) { { echo "$as_me:$LINENO: error: | |
21729 | Please check that gtk-config is in path, the directory | |
21730 | where GTK+ libraries are installed (returned by | |
21731 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
21732 | equivalent variable and GTK+ is version 1.2.3 or above. | |
21733 | " >&5 | |
21734 | echo "$as_me: error: | |
21735 | Please check that gtk-config is in path, the directory | |
21736 | where GTK+ libraries are installed (returned by | |
21737 | 'gtk-config --libs' command) is in LD_LIBRARY_PATH or | |
21738 | equivalent variable and GTK+ is version 1.2.3 or above. | |
21739 | " >&2;} | |
21740 | { (exit 1); exit 1; }; } | |
21741 | ;; | |
21742 | esac | |
21743 | ||
21744 | if test "$WXGTK20" = 1; then | |
21745 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
21746 | ||
21747 | succeeded=no | |
21748 | ||
21749 | if test -z "$PKG_CONFIG"; then | |
21750 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
21751 | set dummy pkg-config; ac_word=$2 | |
21752 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
21753 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
21754 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
21755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21756 | else | |
21757 | case $PKG_CONFIG in | |
21758 | [\\/]* | ?:[\\/]*) | |
21759 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
21760 | ;; | |
21761 | *) | |
21762 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
21763 | for as_dir in $PATH | |
21764 | do | |
21765 | IFS=$as_save_IFS | |
21766 | test -z "$as_dir" && as_dir=. | |
21767 | for ac_exec_ext in '' $ac_executable_extensions; do | |
21768 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
21769 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
21770 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
21771 | break 2 | |
21772 | fi | |
21773 | done | |
21774 | done | |
21775 | ||
21776 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
21777 | ;; | |
21778 | esac | |
21779 | fi | |
21780 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
21781 | ||
21782 | if test -n "$PKG_CONFIG"; then | |
21783 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
21784 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
21785 | else | |
21786 | echo "$as_me:$LINENO: result: no" >&5 | |
21787 | echo "${ECHO_T}no" >&6 | |
21788 | fi | |
21789 | ||
21790 | fi | |
21791 | ||
21792 | if test "$PKG_CONFIG" = "no" ; then | |
21793 | echo "*** The pkg-config script could not be found. Make sure it is" | |
21794 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
21795 | echo "*** to the full path to pkg-config." | |
21796 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
21797 | else | |
21798 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
21799 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
21800 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
21801 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
21802 | ||
21803 | if $PKG_CONFIG --exists "pangoft2" ; then | |
21804 | echo "$as_me:$LINENO: result: yes" >&5 | |
21805 | echo "${ECHO_T}yes" >&6 | |
21806 | succeeded=yes | |
21807 | ||
21808 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
21809 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
21810 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
21811 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
21812 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
21813 | ||
21814 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
21815 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
21816 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
21817 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
21818 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
21819 | else | |
21820 | PANGOFT2_CFLAGS="" | |
21821 | PANGOFT2_LIBS="" | |
21822 | ## If we have a custom action on failure, don't print errors, but | |
21823 | ## do set a variable so people can do so. | |
21824 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
21825 | ||
21826 | fi | |
21827 | ||
21828 | ||
21829 | ||
21830 | else | |
21831 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
21832 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
21833 | fi | |
21834 | fi | |
21835 | ||
21836 | if test $succeeded = yes; then | |
21837 | ||
21838 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
21839 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
21840 | ||
21841 | else | |
21842 | ||
21843 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
21844 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
21845 | wxUSE_PRINTING_ARCHITECTURE="no" | |
21846 | ||
21847 | ||
21848 | fi | |
21849 | ||
21850 | fi | |
21851 | else | |
21852 | if test "$wxUSE_UNICODE" = "yes"; then | |
21853 | { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5 | |
21854 | echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;} | |
21855 | wxUSE_UNICODE=no | |
21856 | fi | |
21857 | fi | |
21858 | ||
21859 | if test "$USE_DARWIN" != 1; then | |
21860 | ||
21861 | for ac_func in poll | |
21862 | do | |
21863 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
21864 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
21865 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21866 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21868 | else | |
21869 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 21870 | #line $LINENO "configure" |
a848cd7e SC |
21871 | /* confdefs.h. */ |
21872 | _ACEOF | |
21873 | cat confdefs.h >>conftest.$ac_ext | |
21874 | cat >>conftest.$ac_ext <<_ACEOF | |
21875 | /* end confdefs.h. */ | |
a848cd7e SC |
21876 | /* System header to define __stub macros and hopefully few prototypes, |
21877 | which can conflict with char $ac_func (); below. | |
21878 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21879 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
21880 | #ifdef __STDC__ |
21881 | # include <limits.h> | |
21882 | #else | |
21883 | # include <assert.h> | |
21884 | #endif | |
a848cd7e SC |
21885 | /* Override any gcc2 internal prototype to avoid an error. */ |
21886 | #ifdef __cplusplus | |
21887 | extern "C" | |
21888 | { | |
21889 | #endif | |
21890 | /* We use char because int might match the return type of a gcc2 | |
21891 | builtin and then its argument prototype would still apply. */ | |
21892 | char $ac_func (); | |
21893 | /* The GNU C library defines this for functions which it implements | |
21894 | to always fail with ENOSYS. Some functions are actually named | |
21895 | something starting with __ and the normal name is an alias. */ | |
21896 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21897 | choke me | |
21898 | #else | |
21899 | char (*f) () = $ac_func; | |
21900 | #endif | |
21901 | #ifdef __cplusplus | |
21902 | } | |
21903 | #endif | |
21904 | ||
21905 | int | |
21906 | main () | |
21907 | { | |
21908 | return f != $ac_func; | |
21909 | ; | |
21910 | return 0; | |
21911 | } | |
21912 | _ACEOF | |
21913 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21914 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 21915 | (eval $ac_link) 2>&5 |
a848cd7e | 21916 | ac_status=$? |
a848cd7e SC |
21917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21918 | (exit $ac_status); } && | |
8a7b1113 | 21919 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
21920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21921 | (eval $ac_try) 2>&5 | |
21922 | ac_status=$? | |
21923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21924 | (exit $ac_status); }; }; then | |
21925 | eval "$as_ac_var=yes" | |
21926 | else | |
21927 | echo "$as_me: failed program was:" >&5 | |
21928 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21929 | ||
21930 | eval "$as_ac_var=no" | |
21931 | fi | |
8a7b1113 | 21932 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
21933 | fi |
21934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21935 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21936 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21937 | cat >>confdefs.h <<_ACEOF | |
21938 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21939 | _ACEOF | |
21940 | ||
21941 | fi | |
21942 | done | |
21943 | ||
21944 | fi | |
21945 | ||
21946 | TOOLKIT_INCLUDE="$wx_cv_cflags_gtk" | |
21947 | GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY" | |
21948 | ||
21949 | AFMINSTALL=afminstall | |
21950 | TOOLKIT=GTK | |
21951 | GUIDIST=GTK_DIST | |
21952 | ||
21953 | echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5 | |
21954 | echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6 | |
21955 | if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then | |
21956 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21957 | else | |
21958 | ac_check_lib_save_LIBS=$LIBS | |
21959 | LIBS="-lgdk $LIBS" | |
21960 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 21961 | #line $LINENO "configure" |
a848cd7e SC |
21962 | /* confdefs.h. */ |
21963 | _ACEOF | |
21964 | cat confdefs.h >>conftest.$ac_ext | |
21965 | cat >>conftest.$ac_ext <<_ACEOF | |
21966 | /* end confdefs.h. */ | |
21967 | ||
21968 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21969 | #ifdef __cplusplus | |
21970 | extern "C" | |
21971 | #endif | |
21972 | /* We use char because int might match the return type of a gcc2 | |
21973 | builtin and then its argument prototype would still apply. */ | |
21974 | char gdk_im_open (); | |
21975 | int | |
21976 | main () | |
21977 | { | |
21978 | gdk_im_open (); | |
21979 | ; | |
21980 | return 0; | |
21981 | } | |
21982 | _ACEOF | |
21983 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21984 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 21985 | (eval $ac_link) 2>&5 |
a848cd7e | 21986 | ac_status=$? |
a848cd7e SC |
21987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21988 | (exit $ac_status); } && | |
8a7b1113 | 21989 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
21990 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21991 | (eval $ac_try) 2>&5 | |
21992 | ac_status=$? | |
21993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21994 | (exit $ac_status); }; }; then | |
21995 | ac_cv_lib_gdk_gdk_im_open=yes | |
21996 | else | |
21997 | echo "$as_me: failed program was:" >&5 | |
21998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21999 | ||
22000 | ac_cv_lib_gdk_gdk_im_open=no | |
22001 | fi | |
8a7b1113 | 22002 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
22003 | LIBS=$ac_check_lib_save_LIBS |
22004 | fi | |
22005 | echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5 | |
22006 | echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6 | |
22007 | if test $ac_cv_lib_gdk_gdk_im_open = yes; then | |
22008 | cat >>confdefs.h <<\_ACEOF | |
22009 | #define HAVE_XIM 1 | |
22010 | _ACEOF | |
22011 | ||
22012 | fi | |
22013 | ||
22014 | ||
22015 | ||
22016 | if test "$wxUSE_GPE" = "yes"; then | |
22017 | echo "$as_me:$LINENO: checking for gpewidget library" >&5 | |
22018 | echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6 | |
22019 | ||
22020 | ac_find_libraries= | |
22021 | for ac_dir in $SEARCH_LIB /usr/lib; | |
22022 | do | |
22023 | for ac_extension in a so sl dylib; do | |
22024 | if test -f "$ac_dir/libgpewidget.$ac_extension"; then | |
22025 | ac_find_libraries=$ac_dir | |
22026 | break 2 | |
22027 | fi | |
22028 | done | |
22029 | done | |
22030 | ||
22031 | if test "$ac_find_libraries" != "" ; then | |
22032 | ||
22033 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
22034 | result=$? | |
22035 | if test $result = 0; then | |
22036 | ac_path_to_link="" | |
22037 | else | |
22038 | ac_path_to_link=" -L$ac_find_libraries" | |
22039 | fi | |
22040 | ||
22041 | GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY" | |
22042 | WXGPE=1 | |
22043 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
22044 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
22045 | else | |
22046 | echo "$as_me:$LINENO: result: not found" >&5 | |
22047 | echo "${ECHO_T}not found" >&6 | |
22048 | fi | |
22049 | ||
22050 | fi | |
22051 | fi | |
22052 | ||
22053 | if test "$wxUSE_MGL" = 1; then | |
22054 | echo "$as_me:$LINENO: checking for SciTech MGL library" >&5 | |
22055 | echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6 | |
22056 | if test "x$MGL_ROOT" = x ; then | |
22057 | echo "$as_me:$LINENO: result: not found" >&5 | |
22058 | echo "${ECHO_T}not found" >&6 | |
22059 | { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5 | |
22060 | echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;} | |
22061 | { (exit 1); exit 1; }; } | |
22062 | else | |
22063 | echo "$as_me:$LINENO: result: $MGL_ROOT" >&5 | |
22064 | echo "${ECHO_T}$MGL_ROOT" >&6 | |
22065 | fi | |
22066 | ||
22067 | echo "$as_me:$LINENO: checking for libmgl location" >&5 | |
22068 | echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6 | |
22069 | case "${host}" in | |
22070 | *-*-linux* ) | |
22071 | if test "x$wxUSE_SHARED" = xyes ; then | |
22072 | mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc" | |
22073 | else | |
22074 | mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so" | |
22075 | fi | |
22076 | ;; | |
22077 | *-pc-msdosdjgpp ) | |
22078 | mgl_os_candidates="dos32/dj2" | |
22079 | ;; | |
22080 | *) | |
22081 | { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5 | |
22082 | echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;} | |
22083 | { (exit 1); exit 1; }; } | |
22084 | esac | |
22085 | ||
22086 | mgl_lib_type="" | |
22087 | mgl_os="" | |
22088 | ||
22089 | for mgl_os_i in $mgl_os_candidates ; do | |
22090 | if test "x$mgl_os" = x ; then | |
22091 | if test "$wxUSE_DEBUG_FLAG" = yes ; then | |
22092 | if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \ | |
22093 | -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then | |
22094 | mgl_lib_type=debug | |
22095 | mgl_os=$mgl_os_i | |
22096 | fi | |
22097 | fi | |
22098 | if test "x$mgl_lib_type" = x ; then | |
22099 | if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \ | |
22100 | -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then | |
22101 | mgl_lib_type=release | |
22102 | mgl_os=$mgl_os_i | |
22103 | fi | |
22104 | fi | |
22105 | fi | |
22106 | done | |
22107 | ||
22108 | if test "x$mgl_os" = x ; then | |
22109 | echo "$as_me:$LINENO: result: not found" >&5 | |
22110 | echo "${ECHO_T}not found" >&6 | |
22111 | { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5 | |
22112 | echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;} | |
22113 | { (exit 1); exit 1; }; } | |
22114 | fi | |
22115 | echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5 | |
22116 | echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6 | |
22117 | ||
22118 | wxUSE_UNIVERSAL="yes" | |
22119 | ||
22120 | TOOLKIT_INCLUDE="-I$MGL_ROOT/include" | |
22121 | GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm" | |
22122 | ||
22123 | AFMINSTALL=afminstall | |
22124 | TOOLKIT=MGL | |
22125 | GUIDIST=MGL_DIST | |
22126 | fi | |
22127 | ||
22128 | if test "$wxUSE_MICROWIN" = 1; then | |
22129 | echo "$as_me:$LINENO: checking for MicroWindows" >&5 | |
22130 | echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6 | |
22131 | if test "x$MICROWINDOWS" = x ; then | |
22132 | echo "$as_me:$LINENO: result: not found" >&5 | |
22133 | echo "${ECHO_T}not found" >&6 | |
22134 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5 | |
22135 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;} | |
22136 | { (exit 1); exit 1; }; } | |
22137 | else | |
22138 | echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5 | |
22139 | echo "${ECHO_T}$MICROWINDOWS" >&6 | |
22140 | fi | |
22141 | ||
22142 | if test -f $MICROWINDOWS/lib/libmwin.a; then | |
22143 | echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5 | |
22144 | echo "${ECHO_T}MicroWindows' libraries found." >&6 | |
22145 | else | |
22146 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5 | |
22147 | echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;} | |
22148 | { (exit 1); exit 1; }; } | |
22149 | fi | |
22150 | ||
22151 | TOOLKIT_INCLUDE="-I$MICROWINDOWS/include" | |
22152 | GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib" | |
22153 | ||
22154 | wxUSE_UNIVERSAL="yes" | |
22155 | ||
22156 | AFMINSTALL=afminstall | |
22157 | TOOLKIT=MICROWIN | |
22158 | GUIDIST=MICROWIN_DIST | |
22159 | ||
22160 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1" | |
22161 | fi | |
22162 | ||
22163 | if test "$wxUSE_X11" = 1; then | |
22164 | echo "$as_me:$LINENO: checking for X" >&5 | |
22165 | echo $ECHO_N "checking for X... $ECHO_C" >&6 | |
22166 | ||
22167 | ||
22168 | # Check whether --with-x or --without-x was given. | |
22169 | if test "${with_x+set}" = set; then | |
22170 | withval="$with_x" | |
22171 | ||
22172 | fi; | |
22173 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. | |
22174 | if test "x$with_x" = xno; then | |
22175 | # The user explicitly disabled X. | |
22176 | have_x=disabled | |
22177 | else | |
22178 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then | |
22179 | # Both variables are already set. | |
22180 | have_x=yes | |
22181 | else | |
22182 | if test "${ac_cv_have_x+set}" = set; then | |
22183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22184 | else | |
22185 | # One or both of the vars are not set, and there is no cached value. | |
22186 | ac_x_includes=no ac_x_libraries=no | |
22187 | rm -fr conftest.dir | |
22188 | if mkdir conftest.dir; then | |
22189 | cd conftest.dir | |
22190 | # Make sure to not put "make" in the Imakefile rules, since we grep it out. | |
22191 | cat >Imakefile <<'_ACEOF' | |
22192 | acfindx: | |
22193 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' | |
22194 | _ACEOF | |
22195 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then | |
22196 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
22197 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` | |
22198 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. | |
22199 | for ac_extension in a so sl; do | |
22200 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && | |
8a7b1113 VZ |
22201 | test -f $ac_im_libdir/libX11.$ac_extension; then |
22202 | ac_im_usrlibdir=$ac_im_libdir; break | |
a848cd7e SC |
22203 | fi |
22204 | done | |
22205 | # Screen out bogus values from the imake configuration. They are | |
22206 | # bogus both because they are the default anyway, and because | |
22207 | # using them would break gcc on systems where it needs fixed includes. | |
22208 | case $ac_im_incroot in | |
22209 | /usr/include) ;; | |
22210 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; | |
22211 | esac | |
22212 | case $ac_im_usrlibdir in | |
22213 | /usr/lib | /lib) ;; | |
22214 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; | |
22215 | esac | |
22216 | fi | |
22217 | cd .. | |
22218 | rm -fr conftest.dir | |
22219 | fi | |
22220 | ||
22221 | # Standard set of common directories for X headers. | |
22222 | # Check X11 before X11Rn because it is often a symlink to the current release. | |
22223 | ac_x_header_dirs=' | |
22224 | /usr/X11/include | |
22225 | /usr/X11R6/include | |
22226 | /usr/X11R5/include | |
22227 | /usr/X11R4/include | |
22228 | ||
22229 | /usr/include/X11 | |
22230 | /usr/include/X11R6 | |
22231 | /usr/include/X11R5 | |
22232 | /usr/include/X11R4 | |
22233 | ||
22234 | /usr/local/X11/include | |
22235 | /usr/local/X11R6/include | |
22236 | /usr/local/X11R5/include | |
22237 | /usr/local/X11R4/include | |
22238 | ||
22239 | /usr/local/include/X11 | |
22240 | /usr/local/include/X11R6 | |
22241 | /usr/local/include/X11R5 | |
22242 | /usr/local/include/X11R4 | |
22243 | ||
22244 | /usr/X386/include | |
22245 | /usr/x386/include | |
22246 | /usr/XFree86/include/X11 | |
22247 | ||
22248 | /usr/include | |
22249 | /usr/local/include | |
22250 | /usr/unsupported/include | |
22251 | /usr/athena/include | |
22252 | /usr/local/x11r5/include | |
22253 | /usr/lpp/Xamples/include | |
22254 | ||
22255 | /usr/openwin/include | |
22256 | /usr/openwin/share/include' | |
22257 | ||
22258 | if test "$ac_x_includes" = no; then | |
22259 | # Guess where to find include files, by looking for Intrinsic.h. | |
22260 | # First, try using that file with no special directory specified. | |
22261 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 22262 | #line $LINENO "configure" |
a848cd7e SC |
22263 | /* confdefs.h. */ |
22264 | _ACEOF | |
22265 | cat confdefs.h >>conftest.$ac_ext | |
22266 | cat >>conftest.$ac_ext <<_ACEOF | |
22267 | /* end confdefs.h. */ | |
22268 | #include <X11/Intrinsic.h> | |
22269 | _ACEOF | |
22270 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
22271 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
22272 | ac_status=$? | |
22273 | grep -v '^ *+' conftest.er1 >conftest.err | |
22274 | rm -f conftest.er1 | |
22275 | cat conftest.err >&5 | |
22276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22277 | (exit $ac_status); } >/dev/null; then | |
22278 | if test -s conftest.err; then | |
22279 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
22280 | else |
22281 | ac_cpp_err= | |
22282 | fi | |
22283 | else | |
22284 | ac_cpp_err=yes | |
22285 | fi | |
22286 | if test -z "$ac_cpp_err"; then | |
22287 | # We can compile using X headers with no special include directory. | |
22288 | ac_x_includes= | |
22289 | else | |
22290 | echo "$as_me: failed program was:" >&5 | |
22291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22292 | ||
22293 | for ac_dir in $ac_x_header_dirs; do | |
22294 | if test -r "$ac_dir/X11/Intrinsic.h"; then | |
22295 | ac_x_includes=$ac_dir | |
22296 | break | |
22297 | fi | |
22298 | done | |
22299 | fi | |
22300 | rm -f conftest.err conftest.$ac_ext | |
22301 | fi # $ac_x_includes = no | |
22302 | ||
22303 | if test "$ac_x_libraries" = no; then | |
22304 | # Check for the libraries. | |
22305 | # See if we find them without any special options. | |
22306 | # Don't add to $LIBS permanently. | |
22307 | ac_save_LIBS=$LIBS | |
22308 | LIBS="-lXt $LIBS" | |
22309 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 22310 | #line $LINENO "configure" |
a848cd7e SC |
22311 | /* confdefs.h. */ |
22312 | _ACEOF | |
22313 | cat confdefs.h >>conftest.$ac_ext | |
22314 | cat >>conftest.$ac_ext <<_ACEOF | |
22315 | /* end confdefs.h. */ | |
22316 | #include <X11/Intrinsic.h> | |
22317 | int | |
22318 | main () | |
22319 | { | |
22320 | XtMalloc (0) | |
22321 | ; | |
22322 | return 0; | |
22323 | } | |
22324 | _ACEOF | |
22325 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22326 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 22327 | (eval $ac_link) 2>&5 |
a848cd7e | 22328 | ac_status=$? |
a848cd7e SC |
22329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22330 | (exit $ac_status); } && | |
8a7b1113 | 22331 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
22332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22333 | (eval $ac_try) 2>&5 | |
22334 | ac_status=$? | |
22335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22336 | (exit $ac_status); }; }; then | |
22337 | LIBS=$ac_save_LIBS | |
22338 | # We can link X programs with no special library path. | |
22339 | ac_x_libraries= | |
22340 | else | |
22341 | echo "$as_me: failed program was:" >&5 | |
22342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22343 | ||
22344 | LIBS=$ac_save_LIBS | |
22345 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` | |
22346 | do | |
22347 | # Don't even attempt the hair of trying to link an X program! | |
22348 | for ac_extension in a so sl; do | |
22349 | if test -r $ac_dir/libXt.$ac_extension; then | |
22350 | ac_x_libraries=$ac_dir | |
22351 | break 2 | |
22352 | fi | |
22353 | done | |
22354 | done | |
22355 | fi | |
8a7b1113 | 22356 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
22357 | fi # $ac_x_libraries = no |
22358 | ||
22359 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then | |
22360 | # Didn't find X anywhere. Cache the known absence of X. | |
22361 | ac_cv_have_x="have_x=no" | |
22362 | else | |
22363 | # Record where we found X for the cache. | |
22364 | ac_cv_have_x="have_x=yes \ | |
8a7b1113 | 22365 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" |
a848cd7e SC |
22366 | fi |
22367 | fi | |
22368 | ||
22369 | fi | |
22370 | eval "$ac_cv_have_x" | |
22371 | fi # $with_x != no | |
22372 | ||
22373 | if test "$have_x" != yes; then | |
22374 | echo "$as_me:$LINENO: result: $have_x" >&5 | |
22375 | echo "${ECHO_T}$have_x" >&6 | |
22376 | no_x=yes | |
22377 | else | |
22378 | # If each of the values was on the command line, it overrides each guess. | |
22379 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes | |
22380 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries | |
22381 | # Update the cache value to reflect the command line values. | |
22382 | ac_cv_have_x="have_x=yes \ | |
22383 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries" | |
22384 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 | |
22385 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6 | |
22386 | fi | |
22387 | ||
22388 | if test "$no_x" = yes; then | |
22389 | # Not all programs may use this symbol, but it does not hurt to define it. | |
22390 | ||
22391 | cat >>confdefs.h <<\_ACEOF | |
22392 | #define X_DISPLAY_MISSING 1 | |
22393 | _ACEOF | |
22394 | ||
22395 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
22396 | else | |
22397 | if test -n "$x_includes"; then | |
22398 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
22399 | fi | |
22400 | ||
22401 | # It would also be nice to do this for all -L options, not just this one. | |
22402 | if test -n "$x_libraries"; then | |
22403 | X_LIBS="$X_LIBS -L$x_libraries" | |
22404 | # For Solaris; some versions of Sun CC require a space after -R and | |
22405 | # others require no space. Words are not sufficient . . . . | |
22406 | case `(uname -sr) 2>/dev/null` in | |
22407 | "SunOS 5"*) | |
22408 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
22409 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
22410 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
22411 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 22412 | #line $LINENO "configure" |
a848cd7e SC |
22413 | /* confdefs.h. */ |
22414 | _ACEOF | |
22415 | cat confdefs.h >>conftest.$ac_ext | |
22416 | cat >>conftest.$ac_ext <<_ACEOF | |
22417 | /* end confdefs.h. */ | |
22418 | ||
22419 | int | |
22420 | main () | |
22421 | { | |
22422 | ||
22423 | ; | |
22424 | return 0; | |
22425 | } | |
22426 | _ACEOF | |
22427 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22428 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 22429 | (eval $ac_link) 2>&5 |
a848cd7e | 22430 | ac_status=$? |
a848cd7e SC |
22431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22432 | (exit $ac_status); } && | |
8a7b1113 | 22433 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
22434 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22435 | (eval $ac_try) 2>&5 | |
22436 | ac_status=$? | |
22437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22438 | (exit $ac_status); }; }; then | |
22439 | ac_R_nospace=yes | |
22440 | else | |
22441 | echo "$as_me: failed program was:" >&5 | |
22442 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22443 | ||
22444 | ac_R_nospace=no | |
22445 | fi | |
8a7b1113 | 22446 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
22447 | if test $ac_R_nospace = yes; then |
22448 | echo "$as_me:$LINENO: result: no" >&5 | |
22449 | echo "${ECHO_T}no" >&6 | |
22450 | X_LIBS="$X_LIBS -R$x_libraries" | |
22451 | else | |
22452 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
22453 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 22454 | #line $LINENO "configure" |
a848cd7e SC |
22455 | /* confdefs.h. */ |
22456 | _ACEOF | |
22457 | cat confdefs.h >>conftest.$ac_ext | |
22458 | cat >>conftest.$ac_ext <<_ACEOF | |
22459 | /* end confdefs.h. */ | |
22460 | ||
22461 | int | |
22462 | main () | |
22463 | { | |
22464 | ||
22465 | ; | |
22466 | return 0; | |
22467 | } | |
22468 | _ACEOF | |
22469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 22471 | (eval $ac_link) 2>&5 |
a848cd7e | 22472 | ac_status=$? |
a848cd7e SC |
22473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22474 | (exit $ac_status); } && | |
8a7b1113 | 22475 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
22476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22477 | (eval $ac_try) 2>&5 | |
22478 | ac_status=$? | |
22479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22480 | (exit $ac_status); }; }; then | |
22481 | ac_R_space=yes | |
22482 | else | |
22483 | echo "$as_me: failed program was:" >&5 | |
22484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22485 | ||
22486 | ac_R_space=no | |
22487 | fi | |
8a7b1113 | 22488 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
22489 | if test $ac_R_space = yes; then |
22490 | echo "$as_me:$LINENO: result: yes" >&5 | |
22491 | echo "${ECHO_T}yes" >&6 | |
22492 | X_LIBS="$X_LIBS -R $x_libraries" | |
22493 | else | |
22494 | echo "$as_me:$LINENO: result: neither works" >&5 | |
22495 | echo "${ECHO_T}neither works" >&6 | |
22496 | fi | |
22497 | fi | |
22498 | LIBS=$ac_xsave_LIBS | |
22499 | esac | |
22500 | fi | |
22501 | ||
22502 | # Check for system-dependent libraries X programs must link with. | |
22503 | # Do this before checking for the system-independent R6 libraries | |
22504 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
22505 | ||
22506 | if test "$ISC" = yes; then | |
22507 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
22508 | else | |
22509 | # Martyn Johnson says this is needed for Ultrix, if the X | |
22510 | # libraries were built with DECnet support. And Karl Berry says | |
22511 | # the Alpha needs dnet_stub (dnet does not exist). | |
22512 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
22513 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 22514 | #line $LINENO "configure" |
a848cd7e SC |
22515 | /* confdefs.h. */ |
22516 | _ACEOF | |
22517 | cat confdefs.h >>conftest.$ac_ext | |
22518 | cat >>conftest.$ac_ext <<_ACEOF | |
22519 | /* end confdefs.h. */ | |
22520 | ||
22521 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22522 | #ifdef __cplusplus | |
22523 | extern "C" | |
22524 | #endif | |
22525 | /* We use char because int might match the return type of a gcc2 | |
22526 | builtin and then its argument prototype would still apply. */ | |
22527 | char XOpenDisplay (); | |
22528 | int | |
22529 | main () | |
22530 | { | |
22531 | XOpenDisplay (); | |
22532 | ; | |
22533 | return 0; | |
22534 | } | |
22535 | _ACEOF | |
22536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 22538 | (eval $ac_link) 2>&5 |
a848cd7e | 22539 | ac_status=$? |
a848cd7e SC |
22540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22541 | (exit $ac_status); } && | |
8a7b1113 | 22542 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
22543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22544 | (eval $ac_try) 2>&5 | |
22545 | ac_status=$? | |
22546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22547 | (exit $ac_status); }; }; then | |
22548 | : | |
22549 | else | |
22550 | echo "$as_me: failed program was:" >&5 | |
22551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22552 | ||
22553 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
22554 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
22555 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
22556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22557 | else | |
22558 | ac_check_lib_save_LIBS=$LIBS | |
22559 | LIBS="-ldnet $LIBS" | |
22560 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 22561 | #line $LINENO "configure" |
a848cd7e SC |
22562 | /* confdefs.h. */ |
22563 | _ACEOF | |
22564 | cat confdefs.h >>conftest.$ac_ext | |
22565 | cat >>conftest.$ac_ext <<_ACEOF | |
22566 | /* end confdefs.h. */ | |
22567 | ||
22568 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22569 | #ifdef __cplusplus | |
22570 | extern "C" | |
22571 | #endif | |
22572 | /* We use char because int might match the return type of a gcc2 | |
22573 | builtin and then its argument prototype would still apply. */ | |
22574 | char dnet_ntoa (); | |
22575 | int | |
22576 | main () | |
22577 | { | |
22578 | dnet_ntoa (); | |
22579 | ; | |
22580 | return 0; | |
22581 | } | |
22582 | _ACEOF | |
22583 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 22585 | (eval $ac_link) 2>&5 |
a848cd7e | 22586 | ac_status=$? |
a848cd7e SC |
22587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22588 | (exit $ac_status); } && | |
8a7b1113 | 22589 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
22590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22591 | (eval $ac_try) 2>&5 | |
22592 | ac_status=$? | |
22593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22594 | (exit $ac_status); }; }; then | |
22595 | ac_cv_lib_dnet_dnet_ntoa=yes | |
22596 | else | |
22597 | echo "$as_me: failed program was:" >&5 | |
22598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22599 | ||
22600 | ac_cv_lib_dnet_dnet_ntoa=no | |
22601 | fi | |
8a7b1113 | 22602 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
22603 | LIBS=$ac_check_lib_save_LIBS |
22604 | fi | |
22605 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
22606 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
22607 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
22608 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
22609 | fi | |
22610 | ||
22611 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
22612 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
22613 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
22614 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
22615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22616 | else | |
22617 | ac_check_lib_save_LIBS=$LIBS | |
22618 | LIBS="-ldnet_stub $LIBS" | |
22619 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 22620 | #line $LINENO "configure" |
a848cd7e SC |
22621 | /* confdefs.h. */ |
22622 | _ACEOF | |
22623 | cat confdefs.h >>conftest.$ac_ext | |
22624 | cat >>conftest.$ac_ext <<_ACEOF | |
22625 | /* end confdefs.h. */ | |
22626 | ||
22627 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22628 | #ifdef __cplusplus | |
22629 | extern "C" | |
22630 | #endif | |
22631 | /* We use char because int might match the return type of a gcc2 | |
22632 | builtin and then its argument prototype would still apply. */ | |
22633 | char dnet_ntoa (); | |
22634 | int | |
22635 | main () | |
22636 | { | |
22637 | dnet_ntoa (); | |
22638 | ; | |
22639 | return 0; | |
22640 | } | |
22641 | _ACEOF | |
22642 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22643 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 22644 | (eval $ac_link) 2>&5 |
a848cd7e | 22645 | ac_status=$? |
a848cd7e SC |
22646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22647 | (exit $ac_status); } && | |
8a7b1113 | 22648 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
22649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22650 | (eval $ac_try) 2>&5 | |
22651 | ac_status=$? | |
22652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22653 | (exit $ac_status); }; }; then | |
22654 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
22655 | else | |
22656 | echo "$as_me: failed program was:" >&5 | |
22657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22658 | ||
22659 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
22660 | fi | |
8a7b1113 | 22661 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
22662 | LIBS=$ac_check_lib_save_LIBS |
22663 | fi | |
22664 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
22665 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
22666 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
22667 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
22668 | fi | |
22669 | ||
22670 | fi | |
22671 | fi | |
8a7b1113 | 22672 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
22673 | LIBS="$ac_xsave_LIBS" |
22674 | ||
22675 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
22676 | # to get the SysV transport functions. | |
22677 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
22678 | # needs -lnsl. | |
22679 | # The nsl library prevents programs from opening the X display | |
22680 | # on Irix 5.2, according to T.E. Dickey. | |
22681 | # The functions gethostbyname, getservbyname, and inet_addr are | |
22682 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
22683 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
22684 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
22685 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
22686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22687 | else | |
22688 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 22689 | #line $LINENO "configure" |
a848cd7e SC |
22690 | /* confdefs.h. */ |
22691 | _ACEOF | |
22692 | cat confdefs.h >>conftest.$ac_ext | |
22693 | cat >>conftest.$ac_ext <<_ACEOF | |
22694 | /* end confdefs.h. */ | |
a848cd7e SC |
22695 | /* System header to define __stub macros and hopefully few prototypes, |
22696 | which can conflict with char gethostbyname (); below. | |
22697 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22698 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
22699 | #ifdef __STDC__ |
22700 | # include <limits.h> | |
22701 | #else | |
22702 | # include <assert.h> | |
22703 | #endif | |
a848cd7e SC |
22704 | /* Override any gcc2 internal prototype to avoid an error. */ |
22705 | #ifdef __cplusplus | |
22706 | extern "C" | |
22707 | { | |
22708 | #endif | |
22709 | /* We use char because int might match the return type of a gcc2 | |
22710 | builtin and then its argument prototype would still apply. */ | |
22711 | char gethostbyname (); | |
22712 | /* The GNU C library defines this for functions which it implements | |
22713 | to always fail with ENOSYS. Some functions are actually named | |
22714 | something starting with __ and the normal name is an alias. */ | |
22715 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
22716 | choke me | |
22717 | #else | |
22718 | char (*f) () = gethostbyname; | |
22719 | #endif | |
22720 | #ifdef __cplusplus | |
22721 | } | |
22722 | #endif | |
22723 | ||
22724 | int | |
22725 | main () | |
22726 | { | |
22727 | return f != gethostbyname; | |
22728 | ; | |
22729 | return 0; | |
22730 | } | |
22731 | _ACEOF | |
22732 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22733 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 22734 | (eval $ac_link) 2>&5 |
a848cd7e | 22735 | ac_status=$? |
a848cd7e SC |
22736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22737 | (exit $ac_status); } && | |
8a7b1113 | 22738 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
22739 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22740 | (eval $ac_try) 2>&5 | |
22741 | ac_status=$? | |
22742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22743 | (exit $ac_status); }; }; then | |
22744 | ac_cv_func_gethostbyname=yes | |
22745 | else | |
22746 | echo "$as_me: failed program was:" >&5 | |
22747 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22748 | ||
22749 | ac_cv_func_gethostbyname=no | |
22750 | fi | |
8a7b1113 | 22751 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
22752 | fi |
22753 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
22754 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
22755 | ||
22756 | if test $ac_cv_func_gethostbyname = no; then | |
22757 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
22758 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
22759 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
22760 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22761 | else | |
22762 | ac_check_lib_save_LIBS=$LIBS | |
22763 | LIBS="-lnsl $LIBS" | |
22764 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 22765 | #line $LINENO "configure" |
a848cd7e SC |
22766 | /* confdefs.h. */ |
22767 | _ACEOF | |
22768 | cat confdefs.h >>conftest.$ac_ext | |
22769 | cat >>conftest.$ac_ext <<_ACEOF | |
22770 | /* end confdefs.h. */ | |
22771 | ||
22772 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22773 | #ifdef __cplusplus | |
22774 | extern "C" | |
22775 | #endif | |
22776 | /* We use char because int might match the return type of a gcc2 | |
22777 | builtin and then its argument prototype would still apply. */ | |
22778 | char gethostbyname (); | |
22779 | int | |
22780 | main () | |
22781 | { | |
22782 | gethostbyname (); | |
22783 | ; | |
22784 | return 0; | |
22785 | } | |
22786 | _ACEOF | |
22787 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 22789 | (eval $ac_link) 2>&5 |
a848cd7e | 22790 | ac_status=$? |
a848cd7e SC |
22791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22792 | (exit $ac_status); } && | |
8a7b1113 | 22793 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
22794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22795 | (eval $ac_try) 2>&5 | |
22796 | ac_status=$? | |
22797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22798 | (exit $ac_status); }; }; then | |
22799 | ac_cv_lib_nsl_gethostbyname=yes | |
22800 | else | |
22801 | echo "$as_me: failed program was:" >&5 | |
22802 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22803 | ||
22804 | ac_cv_lib_nsl_gethostbyname=no | |
22805 | fi | |
8a7b1113 | 22806 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
22807 | LIBS=$ac_check_lib_save_LIBS |
22808 | fi | |
22809 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
22810 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
22811 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
22812 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
22813 | fi | |
22814 | ||
22815 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
8a7b1113 | 22816 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
a848cd7e SC |
22817 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
22818 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
22819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22820 | else | |
22821 | ac_check_lib_save_LIBS=$LIBS | |
22822 | LIBS="-lbsd $LIBS" | |
22823 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 22824 | #line $LINENO "configure" |
a848cd7e SC |
22825 | /* confdefs.h. */ |
22826 | _ACEOF | |
22827 | cat confdefs.h >>conftest.$ac_ext | |
22828 | cat >>conftest.$ac_ext <<_ACEOF | |
22829 | /* end confdefs.h. */ | |
22830 | ||
22831 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22832 | #ifdef __cplusplus | |
22833 | extern "C" | |
22834 | #endif | |
22835 | /* We use char because int might match the return type of a gcc2 | |
22836 | builtin and then its argument prototype would still apply. */ | |
22837 | char gethostbyname (); | |
22838 | int | |
22839 | main () | |
22840 | { | |
22841 | gethostbyname (); | |
22842 | ; | |
22843 | return 0; | |
22844 | } | |
22845 | _ACEOF | |
22846 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 22848 | (eval $ac_link) 2>&5 |
a848cd7e | 22849 | ac_status=$? |
a848cd7e SC |
22850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22851 | (exit $ac_status); } && | |
8a7b1113 | 22852 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
22853 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22854 | (eval $ac_try) 2>&5 | |
22855 | ac_status=$? | |
22856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22857 | (exit $ac_status); }; }; then | |
22858 | ac_cv_lib_bsd_gethostbyname=yes | |
22859 | else | |
22860 | echo "$as_me: failed program was:" >&5 | |
22861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22862 | ||
22863 | ac_cv_lib_bsd_gethostbyname=no | |
22864 | fi | |
8a7b1113 | 22865 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
22866 | LIBS=$ac_check_lib_save_LIBS |
22867 | fi | |
22868 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
22869 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
22870 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
22871 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
22872 | fi | |
22873 | ||
22874 | fi | |
22875 | fi | |
22876 | ||
22877 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
22878 | # socket/setsockopt and other routines are undefined under SCO ODT | |
22879 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
22880 | # on later versions), says Simon Leinen: it contains gethostby* | |
22881 | # variants that don't use the name server (or something). -lsocket | |
22882 | # must be given before -lnsl if both are needed. We assume that | |
22883 | # if connect needs -lnsl, so does gethostbyname. | |
22884 | echo "$as_me:$LINENO: checking for connect" >&5 | |
22885 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
22886 | if test "${ac_cv_func_connect+set}" = set; then | |
22887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22888 | else | |
22889 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 22890 | #line $LINENO "configure" |
a848cd7e SC |
22891 | /* confdefs.h. */ |
22892 | _ACEOF | |
22893 | cat confdefs.h >>conftest.$ac_ext | |
22894 | cat >>conftest.$ac_ext <<_ACEOF | |
22895 | /* end confdefs.h. */ | |
a848cd7e SC |
22896 | /* System header to define __stub macros and hopefully few prototypes, |
22897 | which can conflict with char connect (); below. | |
22898 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22899 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
22900 | #ifdef __STDC__ |
22901 | # include <limits.h> | |
22902 | #else | |
22903 | # include <assert.h> | |
22904 | #endif | |
a848cd7e SC |
22905 | /* Override any gcc2 internal prototype to avoid an error. */ |
22906 | #ifdef __cplusplus | |
22907 | extern "C" | |
22908 | { | |
22909 | #endif | |
22910 | /* We use char because int might match the return type of a gcc2 | |
22911 | builtin and then its argument prototype would still apply. */ | |
22912 | char connect (); | |
22913 | /* The GNU C library defines this for functions which it implements | |
22914 | to always fail with ENOSYS. Some functions are actually named | |
22915 | something starting with __ and the normal name is an alias. */ | |
22916 | #if defined (__stub_connect) || defined (__stub___connect) | |
22917 | choke me | |
22918 | #else | |
22919 | char (*f) () = connect; | |
22920 | #endif | |
22921 | #ifdef __cplusplus | |
22922 | } | |
22923 | #endif | |
22924 | ||
22925 | int | |
22926 | main () | |
22927 | { | |
22928 | return f != connect; | |
22929 | ; | |
22930 | return 0; | |
22931 | } | |
22932 | _ACEOF | |
22933 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22934 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 22935 | (eval $ac_link) 2>&5 |
a848cd7e | 22936 | ac_status=$? |
a848cd7e SC |
22937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22938 | (exit $ac_status); } && | |
8a7b1113 | 22939 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
22940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22941 | (eval $ac_try) 2>&5 | |
22942 | ac_status=$? | |
22943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22944 | (exit $ac_status); }; }; then | |
22945 | ac_cv_func_connect=yes | |
22946 | else | |
22947 | echo "$as_me: failed program was:" >&5 | |
22948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22949 | ||
22950 | ac_cv_func_connect=no | |
22951 | fi | |
8a7b1113 | 22952 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
22953 | fi |
22954 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
22955 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
22956 | ||
22957 | if test $ac_cv_func_connect = no; then | |
22958 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
22959 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
22960 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
22961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22962 | else | |
22963 | ac_check_lib_save_LIBS=$LIBS | |
22964 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
22965 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 22966 | #line $LINENO "configure" |
a848cd7e SC |
22967 | /* confdefs.h. */ |
22968 | _ACEOF | |
22969 | cat confdefs.h >>conftest.$ac_ext | |
22970 | cat >>conftest.$ac_ext <<_ACEOF | |
22971 | /* end confdefs.h. */ | |
22972 | ||
22973 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22974 | #ifdef __cplusplus | |
22975 | extern "C" | |
22976 | #endif | |
22977 | /* We use char because int might match the return type of a gcc2 | |
22978 | builtin and then its argument prototype would still apply. */ | |
22979 | char connect (); | |
22980 | int | |
22981 | main () | |
22982 | { | |
22983 | connect (); | |
22984 | ; | |
22985 | return 0; | |
22986 | } | |
22987 | _ACEOF | |
22988 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22989 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 22990 | (eval $ac_link) 2>&5 |
a848cd7e | 22991 | ac_status=$? |
a848cd7e SC |
22992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22993 | (exit $ac_status); } && | |
8a7b1113 | 22994 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
22995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22996 | (eval $ac_try) 2>&5 | |
22997 | ac_status=$? | |
22998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22999 | (exit $ac_status); }; }; then | |
23000 | ac_cv_lib_socket_connect=yes | |
23001 | else | |
23002 | echo "$as_me: failed program was:" >&5 | |
23003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23004 | ||
23005 | ac_cv_lib_socket_connect=no | |
23006 | fi | |
8a7b1113 | 23007 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
23008 | LIBS=$ac_check_lib_save_LIBS |
23009 | fi | |
23010 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
23011 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
23012 | if test $ac_cv_lib_socket_connect = yes; then | |
23013 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
23014 | fi | |
23015 | ||
23016 | fi | |
23017 | ||
23018 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
23019 | echo "$as_me:$LINENO: checking for remove" >&5 | |
23020 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
23021 | if test "${ac_cv_func_remove+set}" = set; then | |
23022 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23023 | else | |
23024 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 23025 | #line $LINENO "configure" |
a848cd7e SC |
23026 | /* confdefs.h. */ |
23027 | _ACEOF | |
23028 | cat confdefs.h >>conftest.$ac_ext | |
23029 | cat >>conftest.$ac_ext <<_ACEOF | |
23030 | /* end confdefs.h. */ | |
a848cd7e SC |
23031 | /* System header to define __stub macros and hopefully few prototypes, |
23032 | which can conflict with char remove (); below. | |
23033 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23034 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
23035 | #ifdef __STDC__ |
23036 | # include <limits.h> | |
23037 | #else | |
23038 | # include <assert.h> | |
23039 | #endif | |
a848cd7e SC |
23040 | /* Override any gcc2 internal prototype to avoid an error. */ |
23041 | #ifdef __cplusplus | |
23042 | extern "C" | |
23043 | { | |
23044 | #endif | |
23045 | /* We use char because int might match the return type of a gcc2 | |
23046 | builtin and then its argument prototype would still apply. */ | |
23047 | char remove (); | |
23048 | /* The GNU C library defines this for functions which it implements | |
23049 | to always fail with ENOSYS. Some functions are actually named | |
23050 | something starting with __ and the normal name is an alias. */ | |
23051 | #if defined (__stub_remove) || defined (__stub___remove) | |
23052 | choke me | |
23053 | #else | |
23054 | char (*f) () = remove; | |
23055 | #endif | |
23056 | #ifdef __cplusplus | |
23057 | } | |
23058 | #endif | |
23059 | ||
23060 | int | |
23061 | main () | |
23062 | { | |
23063 | return f != remove; | |
23064 | ; | |
23065 | return 0; | |
23066 | } | |
23067 | _ACEOF | |
23068 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23069 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 23070 | (eval $ac_link) 2>&5 |
a848cd7e | 23071 | ac_status=$? |
a848cd7e SC |
23072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23073 | (exit $ac_status); } && | |
8a7b1113 | 23074 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
23075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23076 | (eval $ac_try) 2>&5 | |
23077 | ac_status=$? | |
23078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23079 | (exit $ac_status); }; }; then | |
23080 | ac_cv_func_remove=yes | |
23081 | else | |
23082 | echo "$as_me: failed program was:" >&5 | |
23083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23084 | ||
23085 | ac_cv_func_remove=no | |
23086 | fi | |
8a7b1113 | 23087 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
23088 | fi |
23089 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
23090 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
23091 | ||
23092 | if test $ac_cv_func_remove = no; then | |
23093 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
23094 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
23095 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
23096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23097 | else | |
23098 | ac_check_lib_save_LIBS=$LIBS | |
23099 | LIBS="-lposix $LIBS" | |
23100 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 23101 | #line $LINENO "configure" |
a848cd7e SC |
23102 | /* confdefs.h. */ |
23103 | _ACEOF | |
23104 | cat confdefs.h >>conftest.$ac_ext | |
23105 | cat >>conftest.$ac_ext <<_ACEOF | |
23106 | /* end confdefs.h. */ | |
23107 | ||
23108 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23109 | #ifdef __cplusplus | |
23110 | extern "C" | |
23111 | #endif | |
23112 | /* We use char because int might match the return type of a gcc2 | |
23113 | builtin and then its argument prototype would still apply. */ | |
23114 | char remove (); | |
23115 | int | |
23116 | main () | |
23117 | { | |
23118 | remove (); | |
23119 | ; | |
23120 | return 0; | |
23121 | } | |
23122 | _ACEOF | |
23123 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23124 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 23125 | (eval $ac_link) 2>&5 |
a848cd7e | 23126 | ac_status=$? |
a848cd7e SC |
23127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23128 | (exit $ac_status); } && | |
8a7b1113 | 23129 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
23130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23131 | (eval $ac_try) 2>&5 | |
23132 | ac_status=$? | |
23133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23134 | (exit $ac_status); }; }; then | |
23135 | ac_cv_lib_posix_remove=yes | |
23136 | else | |
23137 | echo "$as_me: failed program was:" >&5 | |
23138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23139 | ||
23140 | ac_cv_lib_posix_remove=no | |
23141 | fi | |
8a7b1113 | 23142 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
23143 | LIBS=$ac_check_lib_save_LIBS |
23144 | fi | |
23145 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
23146 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
23147 | if test $ac_cv_lib_posix_remove = yes; then | |
23148 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
23149 | fi | |
23150 | ||
23151 | fi | |
23152 | ||
23153 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
23154 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
23155 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
23156 | if test "${ac_cv_func_shmat+set}" = set; then | |
23157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23158 | else | |
23159 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 23160 | #line $LINENO "configure" |
a848cd7e SC |
23161 | /* confdefs.h. */ |
23162 | _ACEOF | |
23163 | cat confdefs.h >>conftest.$ac_ext | |
23164 | cat >>conftest.$ac_ext <<_ACEOF | |
23165 | /* end confdefs.h. */ | |
a848cd7e SC |
23166 | /* System header to define __stub macros and hopefully few prototypes, |
23167 | which can conflict with char shmat (); below. | |
23168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
23169 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
23170 | #ifdef __STDC__ |
23171 | # include <limits.h> | |
23172 | #else | |
23173 | # include <assert.h> | |
23174 | #endif | |
a848cd7e SC |
23175 | /* Override any gcc2 internal prototype to avoid an error. */ |
23176 | #ifdef __cplusplus | |
23177 | extern "C" | |
23178 | { | |
23179 | #endif | |
23180 | /* We use char because int might match the return type of a gcc2 | |
23181 | builtin and then its argument prototype would still apply. */ | |
23182 | char shmat (); | |
23183 | /* The GNU C library defines this for functions which it implements | |
23184 | to always fail with ENOSYS. Some functions are actually named | |
23185 | something starting with __ and the normal name is an alias. */ | |
23186 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
23187 | choke me | |
23188 | #else | |
23189 | char (*f) () = shmat; | |
23190 | #endif | |
23191 | #ifdef __cplusplus | |
23192 | } | |
23193 | #endif | |
23194 | ||
23195 | int | |
23196 | main () | |
23197 | { | |
23198 | return f != shmat; | |
23199 | ; | |
23200 | return 0; | |
23201 | } | |
23202 | _ACEOF | |
23203 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23204 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 23205 | (eval $ac_link) 2>&5 |
a848cd7e | 23206 | ac_status=$? |
a848cd7e SC |
23207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23208 | (exit $ac_status); } && | |
8a7b1113 | 23209 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
23210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23211 | (eval $ac_try) 2>&5 | |
23212 | ac_status=$? | |
23213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23214 | (exit $ac_status); }; }; then | |
23215 | ac_cv_func_shmat=yes | |
23216 | else | |
23217 | echo "$as_me: failed program was:" >&5 | |
23218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23219 | ||
23220 | ac_cv_func_shmat=no | |
23221 | fi | |
8a7b1113 | 23222 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
23223 | fi |
23224 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
23225 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
23226 | ||
23227 | if test $ac_cv_func_shmat = no; then | |
23228 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
23229 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
23230 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
23231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23232 | else | |
23233 | ac_check_lib_save_LIBS=$LIBS | |
23234 | LIBS="-lipc $LIBS" | |
23235 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 23236 | #line $LINENO "configure" |
a848cd7e SC |
23237 | /* confdefs.h. */ |
23238 | _ACEOF | |
23239 | cat confdefs.h >>conftest.$ac_ext | |
23240 | cat >>conftest.$ac_ext <<_ACEOF | |
23241 | /* end confdefs.h. */ | |
23242 | ||
23243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23244 | #ifdef __cplusplus | |
23245 | extern "C" | |
23246 | #endif | |
23247 | /* We use char because int might match the return type of a gcc2 | |
23248 | builtin and then its argument prototype would still apply. */ | |
23249 | char shmat (); | |
23250 | int | |
23251 | main () | |
23252 | { | |
23253 | shmat (); | |
23254 | ; | |
23255 | return 0; | |
23256 | } | |
23257 | _ACEOF | |
23258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 23260 | (eval $ac_link) 2>&5 |
a848cd7e | 23261 | ac_status=$? |
a848cd7e SC |
23262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23263 | (exit $ac_status); } && | |
8a7b1113 | 23264 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
23265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23266 | (eval $ac_try) 2>&5 | |
23267 | ac_status=$? | |
23268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23269 | (exit $ac_status); }; }; then | |
23270 | ac_cv_lib_ipc_shmat=yes | |
23271 | else | |
23272 | echo "$as_me: failed program was:" >&5 | |
23273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23274 | ||
23275 | ac_cv_lib_ipc_shmat=no | |
23276 | fi | |
8a7b1113 | 23277 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
23278 | LIBS=$ac_check_lib_save_LIBS |
23279 | fi | |
23280 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
23281 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
23282 | if test $ac_cv_lib_ipc_shmat = yes; then | |
23283 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
23284 | fi | |
23285 | ||
23286 | fi | |
23287 | fi | |
23288 | ||
23289 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
23290 | ac_save_LDFLAGS=$LDFLAGS | |
23291 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
23292 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
23293 | # check for ICE first), but we must link in the order -lSM -lICE or | |
23294 | # we get undefined symbols. So assume we have SM if we have ICE. | |
23295 | # These have to be linked with before -lX11, unlike the other | |
23296 | # libraries we check for below, so use a different variable. | |
23297 | # John Interrante, Karl Berry | |
23298 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
23299 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
23300 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
23301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23302 | else | |
23303 | ac_check_lib_save_LIBS=$LIBS | |
23304 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
23305 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 23306 | #line $LINENO "configure" |
a848cd7e SC |
23307 | /* confdefs.h. */ |
23308 | _ACEOF | |
23309 | cat confdefs.h >>conftest.$ac_ext | |
23310 | cat >>conftest.$ac_ext <<_ACEOF | |
23311 | /* end confdefs.h. */ | |
23312 | ||
23313 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23314 | #ifdef __cplusplus | |
23315 | extern "C" | |
23316 | #endif | |
23317 | /* We use char because int might match the return type of a gcc2 | |
23318 | builtin and then its argument prototype would still apply. */ | |
23319 | char IceConnectionNumber (); | |
23320 | int | |
23321 | main () | |
23322 | { | |
23323 | IceConnectionNumber (); | |
23324 | ; | |
23325 | return 0; | |
23326 | } | |
23327 | _ACEOF | |
23328 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 23330 | (eval $ac_link) 2>&5 |
a848cd7e | 23331 | ac_status=$? |
a848cd7e SC |
23332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23333 | (exit $ac_status); } && | |
8a7b1113 | 23334 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
23335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23336 | (eval $ac_try) 2>&5 | |
23337 | ac_status=$? | |
23338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23339 | (exit $ac_status); }; }; then | |
23340 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
23341 | else | |
23342 | echo "$as_me: failed program was:" >&5 | |
23343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23344 | ||
23345 | ac_cv_lib_ICE_IceConnectionNumber=no | |
23346 | fi | |
8a7b1113 | 23347 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
23348 | LIBS=$ac_check_lib_save_LIBS |
23349 | fi | |
23350 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
23351 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
23352 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
23353 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
23354 | fi | |
23355 | ||
23356 | LDFLAGS=$ac_save_LDFLAGS | |
23357 | ||
23358 | fi | |
23359 | ||
23360 | ||
23361 | if test "$no_x" = "yes"; then | |
23362 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
23363 | echo "$as_me: error: X11 not found" >&2;} | |
23364 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
23365 | fi | |
23366 | ||
23367 | GUI_TK_LIBRARY="$X_LIBS" | |
23368 | TOOLKIT_INCLUDE="$X_CFLAGS" | |
23369 | AFMINSTALL=afminstall | |
23370 | COMPILED_X_PROGRAM=0 | |
23371 | ||
23372 | if test "$wxUSE_NANOX" = "yes"; then | |
23373 | echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5 | |
23374 | echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6 | |
23375 | if test "x$MICROWIN" = x ; then | |
23376 | echo "$as_me:$LINENO: result: not found" >&5 | |
23377 | echo "${ECHO_T}not found" >&6 | |
23378 | { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5 | |
23379 | echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;} | |
23380 | { (exit 1); exit 1; }; } | |
23381 | else | |
23382 | echo "$as_me:$LINENO: result: $MICROWIN" >&5 | |
23383 | echo "${ECHO_T}$MICROWIN" >&6 | |
23384 | cat >>confdefs.h <<\_ACEOF | |
23385 | #define wxUSE_NANOX 1 | |
23386 | _ACEOF | |
23387 | ||
23388 | fi | |
23389 | fi | |
23390 | ||
23391 | if test "$wxUSE_UNICODE" = "yes"; then | |
23392 | ||
23393 | succeeded=no | |
23394 | ||
23395 | if test -z "$PKG_CONFIG"; then | |
23396 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23397 | set dummy pkg-config; ac_word=$2 | |
23398 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23400 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23402 | else | |
23403 | case $PKG_CONFIG in | |
23404 | [\\/]* | ?:[\\/]*) | |
23405 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23406 | ;; | |
23407 | *) | |
23408 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23409 | for as_dir in $PATH | |
23410 | do | |
23411 | IFS=$as_save_IFS | |
23412 | test -z "$as_dir" && as_dir=. | |
23413 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23414 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23415 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23416 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23417 | break 2 | |
23418 | fi | |
23419 | done | |
23420 | done | |
23421 | ||
23422 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23423 | ;; | |
23424 | esac | |
23425 | fi | |
23426 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23427 | ||
23428 | if test -n "$PKG_CONFIG"; then | |
23429 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23430 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23431 | else | |
23432 | echo "$as_me:$LINENO: result: no" >&5 | |
23433 | echo "${ECHO_T}no" >&6 | |
23434 | fi | |
23435 | ||
23436 | fi | |
23437 | ||
23438 | if test "$PKG_CONFIG" = "no" ; then | |
23439 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23440 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23441 | echo "*** to the full path to pkg-config." | |
23442 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23443 | else | |
23444 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23445 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
23446 | echo "$as_me:$LINENO: checking for pangox" >&5 | |
23447 | echo $ECHO_N "checking for pangox... $ECHO_C" >&6 | |
23448 | ||
23449 | if $PKG_CONFIG --exists "pangox" ; then | |
23450 | echo "$as_me:$LINENO: result: yes" >&5 | |
23451 | echo "${ECHO_T}yes" >&6 | |
23452 | succeeded=yes | |
23453 | ||
23454 | echo "$as_me:$LINENO: checking PANGOX_CFLAGS" >&5 | |
23455 | echo $ECHO_N "checking PANGOX_CFLAGS... $ECHO_C" >&6 | |
23456 | PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox"` | |
23457 | echo "$as_me:$LINENO: result: $PANGOX_CFLAGS" >&5 | |
23458 | echo "${ECHO_T}$PANGOX_CFLAGS" >&6 | |
23459 | ||
23460 | echo "$as_me:$LINENO: checking PANGOX_LIBS" >&5 | |
23461 | echo $ECHO_N "checking PANGOX_LIBS... $ECHO_C" >&6 | |
23462 | PANGOX_LIBS=`$PKG_CONFIG --libs "pangox"` | |
23463 | echo "$as_me:$LINENO: result: $PANGOX_LIBS" >&5 | |
23464 | echo "${ECHO_T}$PANGOX_LIBS" >&6 | |
23465 | else | |
23466 | PANGOX_CFLAGS="" | |
23467 | PANGOX_LIBS="" | |
23468 | ## If we have a custom action on failure, don't print errors, but | |
23469 | ## do set a variable so people can do so. | |
23470 | PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"` | |
23471 | ||
23472 | fi | |
23473 | ||
23474 | ||
23475 | ||
23476 | else | |
23477 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23478 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23479 | fi | |
23480 | fi | |
23481 | ||
23482 | if test $succeeded = yes; then | |
23483 | ||
23484 | CXXFLAGS="$CXXFLAGS $PANGOX_CFLAGS" | |
23485 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS" | |
23486 | ||
23487 | else | |
23488 | ||
23489 | { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5 | |
23490 | echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;} | |
23491 | { (exit 1); exit 1; }; } | |
23492 | ||
23493 | ||
23494 | fi | |
23495 | ||
23496 | ||
23497 | succeeded=no | |
23498 | ||
23499 | if test -z "$PKG_CONFIG"; then | |
23500 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23501 | set dummy pkg-config; ac_word=$2 | |
23502 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23504 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23506 | else | |
23507 | case $PKG_CONFIG in | |
23508 | [\\/]* | ?:[\\/]*) | |
23509 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23510 | ;; | |
23511 | *) | |
23512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23513 | for as_dir in $PATH | |
23514 | do | |
23515 | IFS=$as_save_IFS | |
23516 | test -z "$as_dir" && as_dir=. | |
23517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23519 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23521 | break 2 | |
23522 | fi | |
23523 | done | |
23524 | done | |
23525 | ||
23526 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23527 | ;; | |
23528 | esac | |
23529 | fi | |
23530 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23531 | ||
23532 | if test -n "$PKG_CONFIG"; then | |
23533 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23534 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23535 | else | |
23536 | echo "$as_me:$LINENO: result: no" >&5 | |
23537 | echo "${ECHO_T}no" >&6 | |
23538 | fi | |
23539 | ||
23540 | fi | |
23541 | ||
23542 | if test "$PKG_CONFIG" = "no" ; then | |
23543 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23544 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23545 | echo "*** to the full path to pkg-config." | |
23546 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23547 | else | |
23548 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23549 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
23550 | echo "$as_me:$LINENO: checking for pangoft2" >&5 | |
23551 | echo $ECHO_N "checking for pangoft2... $ECHO_C" >&6 | |
23552 | ||
23553 | if $PKG_CONFIG --exists "pangoft2" ; then | |
23554 | echo "$as_me:$LINENO: result: yes" >&5 | |
23555 | echo "${ECHO_T}yes" >&6 | |
23556 | succeeded=yes | |
23557 | ||
23558 | echo "$as_me:$LINENO: checking PANGOFT2_CFLAGS" >&5 | |
23559 | echo $ECHO_N "checking PANGOFT2_CFLAGS... $ECHO_C" >&6 | |
23560 | PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"` | |
23561 | echo "$as_me:$LINENO: result: $PANGOFT2_CFLAGS" >&5 | |
23562 | echo "${ECHO_T}$PANGOFT2_CFLAGS" >&6 | |
23563 | ||
23564 | echo "$as_me:$LINENO: checking PANGOFT2_LIBS" >&5 | |
23565 | echo $ECHO_N "checking PANGOFT2_LIBS... $ECHO_C" >&6 | |
23566 | PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"` | |
23567 | echo "$as_me:$LINENO: result: $PANGOFT2_LIBS" >&5 | |
23568 | echo "${ECHO_T}$PANGOFT2_LIBS" >&6 | |
23569 | else | |
23570 | PANGOFT2_CFLAGS="" | |
23571 | PANGOFT2_LIBS="" | |
23572 | ## If we have a custom action on failure, don't print errors, but | |
23573 | ## do set a variable so people can do so. | |
23574 | PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"` | |
23575 | ||
23576 | fi | |
23577 | ||
23578 | ||
23579 | ||
23580 | else | |
23581 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23582 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23583 | fi | |
23584 | fi | |
23585 | ||
23586 | if test $succeeded = yes; then | |
23587 | ||
23588 | CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS" | |
23589 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS" | |
23590 | ||
23591 | else | |
23592 | ||
23593 | { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5 | |
23594 | echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;} | |
23595 | wxUSE_PRINTING_ARCHITECTURE="no" | |
23596 | ||
23597 | ||
23598 | fi | |
23599 | ||
23600 | ||
23601 | succeeded=no | |
23602 | ||
23603 | if test -z "$PKG_CONFIG"; then | |
23604 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
23605 | set dummy pkg-config; ac_word=$2 | |
23606 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
23607 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
23608 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | |
23609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23610 | else | |
23611 | case $PKG_CONFIG in | |
23612 | [\\/]* | ?:[\\/]*) | |
23613 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
23614 | ;; | |
23615 | *) | |
23616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
23617 | for as_dir in $PATH | |
23618 | do | |
23619 | IFS=$as_save_IFS | |
23620 | test -z "$as_dir" && as_dir=. | |
23621 | for ac_exec_ext in '' $ac_executable_extensions; do | |
23622 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
23623 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
23624 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
23625 | break 2 | |
23626 | fi | |
23627 | done | |
23628 | done | |
23629 | ||
23630 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | |
23631 | ;; | |
23632 | esac | |
23633 | fi | |
23634 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
23635 | ||
23636 | if test -n "$PKG_CONFIG"; then | |
23637 | echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | |
23638 | echo "${ECHO_T}$PKG_CONFIG" >&6 | |
23639 | else | |
23640 | echo "$as_me:$LINENO: result: no" >&5 | |
23641 | echo "${ECHO_T}no" >&6 | |
23642 | fi | |
23643 | ||
23644 | fi | |
23645 | ||
23646 | if test "$PKG_CONFIG" = "no" ; then | |
23647 | echo "*** The pkg-config script could not be found. Make sure it is" | |
23648 | echo "*** in your path, or set the PKG_CONFIG environment variable" | |
23649 | echo "*** to the full path to pkg-config." | |
23650 | echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." | |
23651 | else | |
23652 | PKG_CONFIG_MIN_VERSION=0.9.0 | |
23653 | if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then | |
23654 | echo "$as_me:$LINENO: checking for pangoxft" >&5 | |
23655 | echo $ECHO_N "checking for pangoxft... $ECHO_C" >&6 | |
23656 | ||
23657 | if $PKG_CONFIG --exists "pangoxft" ; then | |
23658 | echo "$as_me:$LINENO: result: yes" >&5 | |
23659 | echo "${ECHO_T}yes" >&6 | |
23660 | succeeded=yes | |
23661 | ||
23662 | echo "$as_me:$LINENO: checking PANGOXFT_CFLAGS" >&5 | |
23663 | echo $ECHO_N "checking PANGOXFT_CFLAGS... $ECHO_C" >&6 | |
23664 | PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft"` | |
23665 | echo "$as_me:$LINENO: result: $PANGOXFT_CFLAGS" >&5 | |
23666 | echo "${ECHO_T}$PANGOXFT_CFLAGS" >&6 | |
23667 | ||
23668 | echo "$as_me:$LINENO: checking PANGOXFT_LIBS" >&5 | |
23669 | echo $ECHO_N "checking PANGOXFT_LIBS... $ECHO_C" >&6 | |
23670 | PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft"` | |
23671 | echo "$as_me:$LINENO: result: $PANGOXFT_LIBS" >&5 | |
23672 | echo "${ECHO_T}$PANGOXFT_LIBS" >&6 | |
23673 | else | |
23674 | PANGOXFT_CFLAGS="" | |
23675 | PANGOXFT_LIBS="" | |
23676 | ## If we have a custom action on failure, don't print errors, but | |
23677 | ## do set a variable so people can do so. | |
23678 | PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"` | |
23679 | ||
23680 | fi | |
23681 | ||
23682 | ||
23683 | ||
23684 | else | |
23685 | echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." | |
23686 | echo "*** See http://www.freedesktop.org/software/pkgconfig" | |
23687 | fi | |
23688 | fi | |
23689 | ||
23690 | if test $succeeded = yes; then | |
23691 | ||
23692 | CXXFLAGS="$CXXFLAGS $PANGOXFT_CFLAGS" | |
23693 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS" | |
23694 | ||
23695 | else | |
23696 | ||
23697 | { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5 | |
23698 | echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;} | |
23699 | ||
23700 | ||
23701 | fi | |
23702 | ||
23703 | fi | |
23704 | ||
23705 | wxUSE_UNIVERSAL="yes" | |
23706 | ||
23707 | if test "$wxUSE_NANOX" = "yes"; then | |
23708 | TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE" | |
23709 | 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" | |
23710 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a" | |
23711 | else | |
23712 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11" | |
23713 | fi | |
23714 | ||
23715 | TOOLKIT_VPATH="\${top_srcdir}/src/x11" | |
23716 | TOOLKIT=X11 | |
23717 | GUIDIST=X11_DIST | |
23718 | fi | |
23719 | ||
23720 | if test "$wxUSE_MOTIF" = 1; then | |
23721 | if test "$no_x" = yes; then | |
23722 | # Not all programs may use this symbol, but it does not hurt to define it. | |
23723 | ||
23724 | cat >>confdefs.h <<\_ACEOF | |
23725 | #define X_DISPLAY_MISSING 1 | |
23726 | _ACEOF | |
23727 | ||
23728 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= | |
23729 | else | |
23730 | if test -n "$x_includes"; then | |
23731 | X_CFLAGS="$X_CFLAGS -I$x_includes" | |
23732 | fi | |
23733 | ||
23734 | # It would also be nice to do this for all -L options, not just this one. | |
23735 | if test -n "$x_libraries"; then | |
23736 | X_LIBS="$X_LIBS -L$x_libraries" | |
23737 | # For Solaris; some versions of Sun CC require a space after -R and | |
23738 | # others require no space. Words are not sufficient . . . . | |
23739 | case `(uname -sr) 2>/dev/null` in | |
23740 | "SunOS 5"*) | |
23741 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 | |
23742 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 | |
23743 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" | |
23744 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 23745 | #line $LINENO "configure" |
a848cd7e SC |
23746 | /* confdefs.h. */ |
23747 | _ACEOF | |
23748 | cat confdefs.h >>conftest.$ac_ext | |
23749 | cat >>conftest.$ac_ext <<_ACEOF | |
23750 | /* end confdefs.h. */ | |
23751 | ||
23752 | int | |
23753 | main () | |
23754 | { | |
23755 | ||
23756 | ; | |
23757 | return 0; | |
23758 | } | |
23759 | _ACEOF | |
23760 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23761 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 23762 | (eval $ac_link) 2>&5 |
a848cd7e | 23763 | ac_status=$? |
a848cd7e SC |
23764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23765 | (exit $ac_status); } && | |
8a7b1113 | 23766 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
23767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23768 | (eval $ac_try) 2>&5 | |
23769 | ac_status=$? | |
23770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23771 | (exit $ac_status); }; }; then | |
23772 | ac_R_nospace=yes | |
23773 | else | |
23774 | echo "$as_me: failed program was:" >&5 | |
23775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23776 | ||
23777 | ac_R_nospace=no | |
23778 | fi | |
8a7b1113 | 23779 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
23780 | if test $ac_R_nospace = yes; then |
23781 | echo "$as_me:$LINENO: result: no" >&5 | |
23782 | echo "${ECHO_T}no" >&6 | |
23783 | X_LIBS="$X_LIBS -R$x_libraries" | |
23784 | else | |
23785 | LIBS="$ac_xsave_LIBS -R $x_libraries" | |
23786 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 23787 | #line $LINENO "configure" |
a848cd7e SC |
23788 | /* confdefs.h. */ |
23789 | _ACEOF | |
23790 | cat confdefs.h >>conftest.$ac_ext | |
23791 | cat >>conftest.$ac_ext <<_ACEOF | |
23792 | /* end confdefs.h. */ | |
23793 | ||
23794 | int | |
23795 | main () | |
23796 | { | |
23797 | ||
23798 | ; | |
23799 | return 0; | |
23800 | } | |
23801 | _ACEOF | |
23802 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23803 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 23804 | (eval $ac_link) 2>&5 |
a848cd7e | 23805 | ac_status=$? |
a848cd7e SC |
23806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23807 | (exit $ac_status); } && | |
8a7b1113 | 23808 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
23809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23810 | (eval $ac_try) 2>&5 | |
23811 | ac_status=$? | |
23812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23813 | (exit $ac_status); }; }; then | |
23814 | ac_R_space=yes | |
23815 | else | |
23816 | echo "$as_me: failed program was:" >&5 | |
23817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23818 | ||
23819 | ac_R_space=no | |
23820 | fi | |
8a7b1113 | 23821 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
23822 | if test $ac_R_space = yes; then |
23823 | echo "$as_me:$LINENO: result: yes" >&5 | |
23824 | echo "${ECHO_T}yes" >&6 | |
23825 | X_LIBS="$X_LIBS -R $x_libraries" | |
23826 | else | |
23827 | echo "$as_me:$LINENO: result: neither works" >&5 | |
23828 | echo "${ECHO_T}neither works" >&6 | |
23829 | fi | |
23830 | fi | |
23831 | LIBS=$ac_xsave_LIBS | |
23832 | esac | |
23833 | fi | |
23834 | ||
23835 | # Check for system-dependent libraries X programs must link with. | |
23836 | # Do this before checking for the system-independent R6 libraries | |
23837 | # (-lICE), since we may need -lsocket or whatever for X linking. | |
23838 | ||
23839 | if test "$ISC" = yes; then | |
23840 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" | |
23841 | else | |
23842 | # Martyn Johnson says this is needed for Ultrix, if the X | |
23843 | # libraries were built with DECnet support. And Karl Berry says | |
23844 | # the Alpha needs dnet_stub (dnet does not exist). | |
23845 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" | |
23846 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 23847 | #line $LINENO "configure" |
a848cd7e SC |
23848 | /* confdefs.h. */ |
23849 | _ACEOF | |
23850 | cat confdefs.h >>conftest.$ac_ext | |
23851 | cat >>conftest.$ac_ext <<_ACEOF | |
23852 | /* end confdefs.h. */ | |
23853 | ||
23854 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23855 | #ifdef __cplusplus | |
23856 | extern "C" | |
23857 | #endif | |
23858 | /* We use char because int might match the return type of a gcc2 | |
23859 | builtin and then its argument prototype would still apply. */ | |
23860 | char XOpenDisplay (); | |
23861 | int | |
23862 | main () | |
23863 | { | |
23864 | XOpenDisplay (); | |
23865 | ; | |
23866 | return 0; | |
23867 | } | |
23868 | _ACEOF | |
23869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 23871 | (eval $ac_link) 2>&5 |
a848cd7e | 23872 | ac_status=$? |
a848cd7e SC |
23873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23874 | (exit $ac_status); } && | |
8a7b1113 | 23875 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
23876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23877 | (eval $ac_try) 2>&5 | |
23878 | ac_status=$? | |
23879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23880 | (exit $ac_status); }; }; then | |
23881 | : | |
23882 | else | |
23883 | echo "$as_me: failed program was:" >&5 | |
23884 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23885 | ||
23886 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 | |
23887 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 | |
23888 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then | |
23889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23890 | else | |
23891 | ac_check_lib_save_LIBS=$LIBS | |
23892 | LIBS="-ldnet $LIBS" | |
23893 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 23894 | #line $LINENO "configure" |
a848cd7e SC |
23895 | /* confdefs.h. */ |
23896 | _ACEOF | |
23897 | cat confdefs.h >>conftest.$ac_ext | |
23898 | cat >>conftest.$ac_ext <<_ACEOF | |
23899 | /* end confdefs.h. */ | |
23900 | ||
23901 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23902 | #ifdef __cplusplus | |
23903 | extern "C" | |
23904 | #endif | |
23905 | /* We use char because int might match the return type of a gcc2 | |
23906 | builtin and then its argument prototype would still apply. */ | |
23907 | char dnet_ntoa (); | |
23908 | int | |
23909 | main () | |
23910 | { | |
23911 | dnet_ntoa (); | |
23912 | ; | |
23913 | return 0; | |
23914 | } | |
23915 | _ACEOF | |
23916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23917 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 23918 | (eval $ac_link) 2>&5 |
a848cd7e | 23919 | ac_status=$? |
a848cd7e SC |
23920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23921 | (exit $ac_status); } && | |
8a7b1113 | 23922 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
23923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23924 | (eval $ac_try) 2>&5 | |
23925 | ac_status=$? | |
23926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23927 | (exit $ac_status); }; }; then | |
23928 | ac_cv_lib_dnet_dnet_ntoa=yes | |
23929 | else | |
23930 | echo "$as_me: failed program was:" >&5 | |
23931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23932 | ||
23933 | ac_cv_lib_dnet_dnet_ntoa=no | |
23934 | fi | |
8a7b1113 | 23935 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
23936 | LIBS=$ac_check_lib_save_LIBS |
23937 | fi | |
23938 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 | |
23939 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 | |
23940 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then | |
23941 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" | |
23942 | fi | |
23943 | ||
23944 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then | |
23945 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 | |
23946 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 | |
23947 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then | |
23948 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
23949 | else | |
23950 | ac_check_lib_save_LIBS=$LIBS | |
23951 | LIBS="-ldnet_stub $LIBS" | |
23952 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 23953 | #line $LINENO "configure" |
a848cd7e SC |
23954 | /* confdefs.h. */ |
23955 | _ACEOF | |
23956 | cat confdefs.h >>conftest.$ac_ext | |
23957 | cat >>conftest.$ac_ext <<_ACEOF | |
23958 | /* end confdefs.h. */ | |
23959 | ||
23960 | /* Override any gcc2 internal prototype to avoid an error. */ | |
23961 | #ifdef __cplusplus | |
23962 | extern "C" | |
23963 | #endif | |
23964 | /* We use char because int might match the return type of a gcc2 | |
23965 | builtin and then its argument prototype would still apply. */ | |
23966 | char dnet_ntoa (); | |
23967 | int | |
23968 | main () | |
23969 | { | |
23970 | dnet_ntoa (); | |
23971 | ; | |
23972 | return 0; | |
23973 | } | |
23974 | _ACEOF | |
23975 | rm -f conftest.$ac_objext conftest$ac_exeext | |
23976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 23977 | (eval $ac_link) 2>&5 |
a848cd7e | 23978 | ac_status=$? |
a848cd7e SC |
23979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23980 | (exit $ac_status); } && | |
8a7b1113 | 23981 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
23982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
23983 | (eval $ac_try) 2>&5 | |
23984 | ac_status=$? | |
23985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
23986 | (exit $ac_status); }; }; then | |
23987 | ac_cv_lib_dnet_stub_dnet_ntoa=yes | |
23988 | else | |
23989 | echo "$as_me: failed program was:" >&5 | |
23990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
23991 | ||
23992 | ac_cv_lib_dnet_stub_dnet_ntoa=no | |
23993 | fi | |
8a7b1113 | 23994 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
23995 | LIBS=$ac_check_lib_save_LIBS |
23996 | fi | |
23997 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 | |
23998 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 | |
23999 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then | |
24000 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" | |
24001 | fi | |
24002 | ||
24003 | fi | |
24004 | fi | |
8a7b1113 | 24005 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
24006 | LIBS="$ac_xsave_LIBS" |
24007 | ||
24008 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, | |
24009 | # to get the SysV transport functions. | |
24010 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) | |
24011 | # needs -lnsl. | |
24012 | # The nsl library prevents programs from opening the X display | |
24013 | # on Irix 5.2, according to T.E. Dickey. | |
24014 | # The functions gethostbyname, getservbyname, and inet_addr are | |
24015 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. | |
24016 | echo "$as_me:$LINENO: checking for gethostbyname" >&5 | |
24017 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 | |
24018 | if test "${ac_cv_func_gethostbyname+set}" = set; then | |
24019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24020 | else | |
24021 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24022 | #line $LINENO "configure" |
a848cd7e SC |
24023 | /* confdefs.h. */ |
24024 | _ACEOF | |
24025 | cat confdefs.h >>conftest.$ac_ext | |
24026 | cat >>conftest.$ac_ext <<_ACEOF | |
24027 | /* end confdefs.h. */ | |
a848cd7e SC |
24028 | /* System header to define __stub macros and hopefully few prototypes, |
24029 | which can conflict with char gethostbyname (); below. | |
24030 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24031 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
24032 | #ifdef __STDC__ |
24033 | # include <limits.h> | |
24034 | #else | |
24035 | # include <assert.h> | |
24036 | #endif | |
a848cd7e SC |
24037 | /* Override any gcc2 internal prototype to avoid an error. */ |
24038 | #ifdef __cplusplus | |
24039 | extern "C" | |
24040 | { | |
24041 | #endif | |
24042 | /* We use char because int might match the return type of a gcc2 | |
24043 | builtin and then its argument prototype would still apply. */ | |
24044 | char gethostbyname (); | |
24045 | /* The GNU C library defines this for functions which it implements | |
24046 | to always fail with ENOSYS. Some functions are actually named | |
24047 | something starting with __ and the normal name is an alias. */ | |
24048 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) | |
24049 | choke me | |
24050 | #else | |
24051 | char (*f) () = gethostbyname; | |
24052 | #endif | |
24053 | #ifdef __cplusplus | |
24054 | } | |
24055 | #endif | |
24056 | ||
24057 | int | |
24058 | main () | |
24059 | { | |
24060 | return f != gethostbyname; | |
24061 | ; | |
24062 | return 0; | |
24063 | } | |
24064 | _ACEOF | |
24065 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 24067 | (eval $ac_link) 2>&5 |
a848cd7e | 24068 | ac_status=$? |
a848cd7e SC |
24069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24070 | (exit $ac_status); } && | |
8a7b1113 | 24071 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24072 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24073 | (eval $ac_try) 2>&5 | |
24074 | ac_status=$? | |
24075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24076 | (exit $ac_status); }; }; then | |
24077 | ac_cv_func_gethostbyname=yes | |
24078 | else | |
24079 | echo "$as_me: failed program was:" >&5 | |
24080 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24081 | ||
24082 | ac_cv_func_gethostbyname=no | |
24083 | fi | |
8a7b1113 | 24084 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
24085 | fi |
24086 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 | |
24087 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 | |
24088 | ||
24089 | if test $ac_cv_func_gethostbyname = no; then | |
24090 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
24091 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
24092 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
24093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24094 | else | |
24095 | ac_check_lib_save_LIBS=$LIBS | |
24096 | LIBS="-lnsl $LIBS" | |
24097 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24098 | #line $LINENO "configure" |
a848cd7e SC |
24099 | /* confdefs.h. */ |
24100 | _ACEOF | |
24101 | cat confdefs.h >>conftest.$ac_ext | |
24102 | cat >>conftest.$ac_ext <<_ACEOF | |
24103 | /* end confdefs.h. */ | |
24104 | ||
24105 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24106 | #ifdef __cplusplus | |
24107 | extern "C" | |
24108 | #endif | |
24109 | /* We use char because int might match the return type of a gcc2 | |
24110 | builtin and then its argument prototype would still apply. */ | |
24111 | char gethostbyname (); | |
24112 | int | |
24113 | main () | |
24114 | { | |
24115 | gethostbyname (); | |
24116 | ; | |
24117 | return 0; | |
24118 | } | |
24119 | _ACEOF | |
24120 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24121 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 24122 | (eval $ac_link) 2>&5 |
a848cd7e | 24123 | ac_status=$? |
a848cd7e SC |
24124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24125 | (exit $ac_status); } && | |
8a7b1113 | 24126 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24128 | (eval $ac_try) 2>&5 | |
24129 | ac_status=$? | |
24130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24131 | (exit $ac_status); }; }; then | |
24132 | ac_cv_lib_nsl_gethostbyname=yes | |
24133 | else | |
24134 | echo "$as_me: failed program was:" >&5 | |
24135 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24136 | ||
24137 | ac_cv_lib_nsl_gethostbyname=no | |
24138 | fi | |
8a7b1113 | 24139 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
24140 | LIBS=$ac_check_lib_save_LIBS |
24141 | fi | |
24142 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
24143 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
24144 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
24145 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" | |
24146 | fi | |
24147 | ||
24148 | if test $ac_cv_lib_nsl_gethostbyname = no; then | |
8a7b1113 | 24149 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
a848cd7e SC |
24150 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 |
24151 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then | |
24152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24153 | else | |
24154 | ac_check_lib_save_LIBS=$LIBS | |
24155 | LIBS="-lbsd $LIBS" | |
24156 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24157 | #line $LINENO "configure" |
a848cd7e SC |
24158 | /* confdefs.h. */ |
24159 | _ACEOF | |
24160 | cat confdefs.h >>conftest.$ac_ext | |
24161 | cat >>conftest.$ac_ext <<_ACEOF | |
24162 | /* end confdefs.h. */ | |
24163 | ||
24164 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24165 | #ifdef __cplusplus | |
24166 | extern "C" | |
24167 | #endif | |
24168 | /* We use char because int might match the return type of a gcc2 | |
24169 | builtin and then its argument prototype would still apply. */ | |
24170 | char gethostbyname (); | |
24171 | int | |
24172 | main () | |
24173 | { | |
24174 | gethostbyname (); | |
24175 | ; | |
24176 | return 0; | |
24177 | } | |
24178 | _ACEOF | |
24179 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24180 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 24181 | (eval $ac_link) 2>&5 |
a848cd7e | 24182 | ac_status=$? |
a848cd7e SC |
24183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24184 | (exit $ac_status); } && | |
8a7b1113 | 24185 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24187 | (eval $ac_try) 2>&5 | |
24188 | ac_status=$? | |
24189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24190 | (exit $ac_status); }; }; then | |
24191 | ac_cv_lib_bsd_gethostbyname=yes | |
24192 | else | |
24193 | echo "$as_me: failed program was:" >&5 | |
24194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24195 | ||
24196 | ac_cv_lib_bsd_gethostbyname=no | |
24197 | fi | |
8a7b1113 | 24198 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
24199 | LIBS=$ac_check_lib_save_LIBS |
24200 | fi | |
24201 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 | |
24202 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 | |
24203 | if test $ac_cv_lib_bsd_gethostbyname = yes; then | |
24204 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" | |
24205 | fi | |
24206 | ||
24207 | fi | |
24208 | fi | |
24209 | ||
24210 | # lieder@skyler.mavd.honeywell.com says without -lsocket, | |
24211 | # socket/setsockopt and other routines are undefined under SCO ODT | |
24212 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary | |
24213 | # on later versions), says Simon Leinen: it contains gethostby* | |
24214 | # variants that don't use the name server (or something). -lsocket | |
24215 | # must be given before -lnsl if both are needed. We assume that | |
24216 | # if connect needs -lnsl, so does gethostbyname. | |
24217 | echo "$as_me:$LINENO: checking for connect" >&5 | |
24218 | echo $ECHO_N "checking for connect... $ECHO_C" >&6 | |
24219 | if test "${ac_cv_func_connect+set}" = set; then | |
24220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24221 | else | |
24222 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24223 | #line $LINENO "configure" |
a848cd7e SC |
24224 | /* confdefs.h. */ |
24225 | _ACEOF | |
24226 | cat confdefs.h >>conftest.$ac_ext | |
24227 | cat >>conftest.$ac_ext <<_ACEOF | |
24228 | /* end confdefs.h. */ | |
a848cd7e SC |
24229 | /* System header to define __stub macros and hopefully few prototypes, |
24230 | which can conflict with char connect (); below. | |
24231 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24232 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
24233 | #ifdef __STDC__ |
24234 | # include <limits.h> | |
24235 | #else | |
24236 | # include <assert.h> | |
24237 | #endif | |
a848cd7e SC |
24238 | /* Override any gcc2 internal prototype to avoid an error. */ |
24239 | #ifdef __cplusplus | |
24240 | extern "C" | |
24241 | { | |
24242 | #endif | |
24243 | /* We use char because int might match the return type of a gcc2 | |
24244 | builtin and then its argument prototype would still apply. */ | |
24245 | char connect (); | |
24246 | /* The GNU C library defines this for functions which it implements | |
24247 | to always fail with ENOSYS. Some functions are actually named | |
24248 | something starting with __ and the normal name is an alias. */ | |
24249 | #if defined (__stub_connect) || defined (__stub___connect) | |
24250 | choke me | |
24251 | #else | |
24252 | char (*f) () = connect; | |
24253 | #endif | |
24254 | #ifdef __cplusplus | |
24255 | } | |
24256 | #endif | |
24257 | ||
24258 | int | |
24259 | main () | |
24260 | { | |
24261 | return f != connect; | |
24262 | ; | |
24263 | return 0; | |
24264 | } | |
24265 | _ACEOF | |
24266 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 24268 | (eval $ac_link) 2>&5 |
a848cd7e | 24269 | ac_status=$? |
a848cd7e SC |
24270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24271 | (exit $ac_status); } && | |
8a7b1113 | 24272 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24274 | (eval $ac_try) 2>&5 | |
24275 | ac_status=$? | |
24276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24277 | (exit $ac_status); }; }; then | |
24278 | ac_cv_func_connect=yes | |
24279 | else | |
24280 | echo "$as_me: failed program was:" >&5 | |
24281 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24282 | ||
24283 | ac_cv_func_connect=no | |
24284 | fi | |
8a7b1113 | 24285 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
24286 | fi |
24287 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 | |
24288 | echo "${ECHO_T}$ac_cv_func_connect" >&6 | |
24289 | ||
24290 | if test $ac_cv_func_connect = no; then | |
24291 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 | |
24292 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 | |
24293 | if test "${ac_cv_lib_socket_connect+set}" = set; then | |
24294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24295 | else | |
24296 | ac_check_lib_save_LIBS=$LIBS | |
24297 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" | |
24298 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24299 | #line $LINENO "configure" |
a848cd7e SC |
24300 | /* confdefs.h. */ |
24301 | _ACEOF | |
24302 | cat confdefs.h >>conftest.$ac_ext | |
24303 | cat >>conftest.$ac_ext <<_ACEOF | |
24304 | /* end confdefs.h. */ | |
24305 | ||
24306 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24307 | #ifdef __cplusplus | |
24308 | extern "C" | |
24309 | #endif | |
24310 | /* We use char because int might match the return type of a gcc2 | |
24311 | builtin and then its argument prototype would still apply. */ | |
24312 | char connect (); | |
24313 | int | |
24314 | main () | |
24315 | { | |
24316 | connect (); | |
24317 | ; | |
24318 | return 0; | |
24319 | } | |
24320 | _ACEOF | |
24321 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24322 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 24323 | (eval $ac_link) 2>&5 |
a848cd7e | 24324 | ac_status=$? |
a848cd7e SC |
24325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24326 | (exit $ac_status); } && | |
8a7b1113 | 24327 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24329 | (eval $ac_try) 2>&5 | |
24330 | ac_status=$? | |
24331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24332 | (exit $ac_status); }; }; then | |
24333 | ac_cv_lib_socket_connect=yes | |
24334 | else | |
24335 | echo "$as_me: failed program was:" >&5 | |
24336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24337 | ||
24338 | ac_cv_lib_socket_connect=no | |
24339 | fi | |
8a7b1113 | 24340 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
24341 | LIBS=$ac_check_lib_save_LIBS |
24342 | fi | |
24343 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 | |
24344 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 | |
24345 | if test $ac_cv_lib_socket_connect = yes; then | |
24346 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" | |
24347 | fi | |
24348 | ||
24349 | fi | |
24350 | ||
24351 | # Guillermo Gomez says -lposix is necessary on A/UX. | |
24352 | echo "$as_me:$LINENO: checking for remove" >&5 | |
24353 | echo $ECHO_N "checking for remove... $ECHO_C" >&6 | |
24354 | if test "${ac_cv_func_remove+set}" = set; then | |
24355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24356 | else | |
24357 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24358 | #line $LINENO "configure" |
a848cd7e SC |
24359 | /* confdefs.h. */ |
24360 | _ACEOF | |
24361 | cat confdefs.h >>conftest.$ac_ext | |
24362 | cat >>conftest.$ac_ext <<_ACEOF | |
24363 | /* end confdefs.h. */ | |
a848cd7e SC |
24364 | /* System header to define __stub macros and hopefully few prototypes, |
24365 | which can conflict with char remove (); below. | |
24366 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24367 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
24368 | #ifdef __STDC__ |
24369 | # include <limits.h> | |
24370 | #else | |
24371 | # include <assert.h> | |
24372 | #endif | |
a848cd7e SC |
24373 | /* Override any gcc2 internal prototype to avoid an error. */ |
24374 | #ifdef __cplusplus | |
24375 | extern "C" | |
24376 | { | |
24377 | #endif | |
24378 | /* We use char because int might match the return type of a gcc2 | |
24379 | builtin and then its argument prototype would still apply. */ | |
24380 | char remove (); | |
24381 | /* The GNU C library defines this for functions which it implements | |
24382 | to always fail with ENOSYS. Some functions are actually named | |
24383 | something starting with __ and the normal name is an alias. */ | |
24384 | #if defined (__stub_remove) || defined (__stub___remove) | |
24385 | choke me | |
24386 | #else | |
24387 | char (*f) () = remove; | |
24388 | #endif | |
24389 | #ifdef __cplusplus | |
24390 | } | |
24391 | #endif | |
24392 | ||
24393 | int | |
24394 | main () | |
24395 | { | |
24396 | return f != remove; | |
24397 | ; | |
24398 | return 0; | |
24399 | } | |
24400 | _ACEOF | |
24401 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24402 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 24403 | (eval $ac_link) 2>&5 |
a848cd7e | 24404 | ac_status=$? |
a848cd7e SC |
24405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24406 | (exit $ac_status); } && | |
8a7b1113 | 24407 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
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 | ac_cv_func_remove=yes | |
24414 | else | |
24415 | echo "$as_me: failed program was:" >&5 | |
24416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24417 | ||
24418 | ac_cv_func_remove=no | |
24419 | fi | |
8a7b1113 | 24420 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
24421 | fi |
24422 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 | |
24423 | echo "${ECHO_T}$ac_cv_func_remove" >&6 | |
24424 | ||
24425 | if test $ac_cv_func_remove = no; then | |
24426 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5 | |
24427 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 | |
24428 | if test "${ac_cv_lib_posix_remove+set}" = set; then | |
24429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24430 | else | |
24431 | ac_check_lib_save_LIBS=$LIBS | |
24432 | LIBS="-lposix $LIBS" | |
24433 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24434 | #line $LINENO "configure" |
a848cd7e SC |
24435 | /* confdefs.h. */ |
24436 | _ACEOF | |
24437 | cat confdefs.h >>conftest.$ac_ext | |
24438 | cat >>conftest.$ac_ext <<_ACEOF | |
24439 | /* end confdefs.h. */ | |
24440 | ||
24441 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24442 | #ifdef __cplusplus | |
24443 | extern "C" | |
24444 | #endif | |
24445 | /* We use char because int might match the return type of a gcc2 | |
24446 | builtin and then its argument prototype would still apply. */ | |
24447 | char remove (); | |
24448 | int | |
24449 | main () | |
24450 | { | |
24451 | remove (); | |
24452 | ; | |
24453 | return 0; | |
24454 | } | |
24455 | _ACEOF | |
24456 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 24458 | (eval $ac_link) 2>&5 |
a848cd7e | 24459 | ac_status=$? |
a848cd7e SC |
24460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24461 | (exit $ac_status); } && | |
8a7b1113 | 24462 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24463 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24464 | (eval $ac_try) 2>&5 | |
24465 | ac_status=$? | |
24466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24467 | (exit $ac_status); }; }; then | |
24468 | ac_cv_lib_posix_remove=yes | |
24469 | else | |
24470 | echo "$as_me: failed program was:" >&5 | |
24471 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24472 | ||
24473 | ac_cv_lib_posix_remove=no | |
24474 | fi | |
8a7b1113 | 24475 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
24476 | LIBS=$ac_check_lib_save_LIBS |
24477 | fi | |
24478 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 | |
24479 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 | |
24480 | if test $ac_cv_lib_posix_remove = yes; then | |
24481 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" | |
24482 | fi | |
24483 | ||
24484 | fi | |
24485 | ||
24486 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. | |
24487 | echo "$as_me:$LINENO: checking for shmat" >&5 | |
24488 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6 | |
24489 | if test "${ac_cv_func_shmat+set}" = set; then | |
24490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24491 | else | |
24492 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24493 | #line $LINENO "configure" |
a848cd7e SC |
24494 | /* confdefs.h. */ |
24495 | _ACEOF | |
24496 | cat confdefs.h >>conftest.$ac_ext | |
24497 | cat >>conftest.$ac_ext <<_ACEOF | |
24498 | /* end confdefs.h. */ | |
a848cd7e SC |
24499 | /* System header to define __stub macros and hopefully few prototypes, |
24500 | which can conflict with char shmat (); below. | |
24501 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
24502 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
24503 | #ifdef __STDC__ |
24504 | # include <limits.h> | |
24505 | #else | |
24506 | # include <assert.h> | |
24507 | #endif | |
a848cd7e SC |
24508 | /* Override any gcc2 internal prototype to avoid an error. */ |
24509 | #ifdef __cplusplus | |
24510 | extern "C" | |
24511 | { | |
24512 | #endif | |
24513 | /* We use char because int might match the return type of a gcc2 | |
24514 | builtin and then its argument prototype would still apply. */ | |
24515 | char shmat (); | |
24516 | /* The GNU C library defines this for functions which it implements | |
24517 | to always fail with ENOSYS. Some functions are actually named | |
24518 | something starting with __ and the normal name is an alias. */ | |
24519 | #if defined (__stub_shmat) || defined (__stub___shmat) | |
24520 | choke me | |
24521 | #else | |
24522 | char (*f) () = shmat; | |
24523 | #endif | |
24524 | #ifdef __cplusplus | |
24525 | } | |
24526 | #endif | |
24527 | ||
24528 | int | |
24529 | main () | |
24530 | { | |
24531 | return f != shmat; | |
24532 | ; | |
24533 | return 0; | |
24534 | } | |
24535 | _ACEOF | |
24536 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24537 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 24538 | (eval $ac_link) 2>&5 |
a848cd7e | 24539 | ac_status=$? |
a848cd7e SC |
24540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24541 | (exit $ac_status); } && | |
8a7b1113 | 24542 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24544 | (eval $ac_try) 2>&5 | |
24545 | ac_status=$? | |
24546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24547 | (exit $ac_status); }; }; then | |
24548 | ac_cv_func_shmat=yes | |
24549 | else | |
24550 | echo "$as_me: failed program was:" >&5 | |
24551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24552 | ||
24553 | ac_cv_func_shmat=no | |
24554 | fi | |
8a7b1113 | 24555 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
24556 | fi |
24557 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 | |
24558 | echo "${ECHO_T}$ac_cv_func_shmat" >&6 | |
24559 | ||
24560 | if test $ac_cv_func_shmat = no; then | |
24561 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 | |
24562 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 | |
24563 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then | |
24564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24565 | else | |
24566 | ac_check_lib_save_LIBS=$LIBS | |
24567 | LIBS="-lipc $LIBS" | |
24568 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24569 | #line $LINENO "configure" |
a848cd7e SC |
24570 | /* confdefs.h. */ |
24571 | _ACEOF | |
24572 | cat confdefs.h >>conftest.$ac_ext | |
24573 | cat >>conftest.$ac_ext <<_ACEOF | |
24574 | /* end confdefs.h. */ | |
24575 | ||
24576 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24577 | #ifdef __cplusplus | |
24578 | extern "C" | |
24579 | #endif | |
24580 | /* We use char because int might match the return type of a gcc2 | |
24581 | builtin and then its argument prototype would still apply. */ | |
24582 | char shmat (); | |
24583 | int | |
24584 | main () | |
24585 | { | |
24586 | shmat (); | |
24587 | ; | |
24588 | return 0; | |
24589 | } | |
24590 | _ACEOF | |
24591 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24592 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 24593 | (eval $ac_link) 2>&5 |
a848cd7e | 24594 | ac_status=$? |
a848cd7e SC |
24595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24596 | (exit $ac_status); } && | |
8a7b1113 | 24597 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24599 | (eval $ac_try) 2>&5 | |
24600 | ac_status=$? | |
24601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24602 | (exit $ac_status); }; }; then | |
24603 | ac_cv_lib_ipc_shmat=yes | |
24604 | else | |
24605 | echo "$as_me: failed program was:" >&5 | |
24606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24607 | ||
24608 | ac_cv_lib_ipc_shmat=no | |
24609 | fi | |
8a7b1113 | 24610 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
24611 | LIBS=$ac_check_lib_save_LIBS |
24612 | fi | |
24613 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 | |
24614 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 | |
24615 | if test $ac_cv_lib_ipc_shmat = yes; then | |
24616 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" | |
24617 | fi | |
24618 | ||
24619 | fi | |
24620 | fi | |
24621 | ||
24622 | # Check for libraries that X11R6 Xt/Xaw programs need. | |
24623 | ac_save_LDFLAGS=$LDFLAGS | |
24624 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" | |
24625 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to | |
24626 | # check for ICE first), but we must link in the order -lSM -lICE or | |
24627 | # we get undefined symbols. So assume we have SM if we have ICE. | |
24628 | # These have to be linked with before -lX11, unlike the other | |
24629 | # libraries we check for below, so use a different variable. | |
24630 | # John Interrante, Karl Berry | |
24631 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 | |
24632 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 | |
24633 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then | |
24634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
24635 | else | |
24636 | ac_check_lib_save_LIBS=$LIBS | |
24637 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" | |
24638 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24639 | #line $LINENO "configure" |
a848cd7e SC |
24640 | /* confdefs.h. */ |
24641 | _ACEOF | |
24642 | cat confdefs.h >>conftest.$ac_ext | |
24643 | cat >>conftest.$ac_ext <<_ACEOF | |
24644 | /* end confdefs.h. */ | |
24645 | ||
24646 | /* Override any gcc2 internal prototype to avoid an error. */ | |
24647 | #ifdef __cplusplus | |
24648 | extern "C" | |
24649 | #endif | |
24650 | /* We use char because int might match the return type of a gcc2 | |
24651 | builtin and then its argument prototype would still apply. */ | |
24652 | char IceConnectionNumber (); | |
24653 | int | |
24654 | main () | |
24655 | { | |
24656 | IceConnectionNumber (); | |
24657 | ; | |
24658 | return 0; | |
24659 | } | |
24660 | _ACEOF | |
24661 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24662 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 24663 | (eval $ac_link) 2>&5 |
a848cd7e | 24664 | ac_status=$? |
a848cd7e SC |
24665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24666 | (exit $ac_status); } && | |
8a7b1113 | 24667 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24669 | (eval $ac_try) 2>&5 | |
24670 | ac_status=$? | |
24671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24672 | (exit $ac_status); }; }; then | |
24673 | ac_cv_lib_ICE_IceConnectionNumber=yes | |
24674 | else | |
24675 | echo "$as_me: failed program was:" >&5 | |
24676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24677 | ||
24678 | ac_cv_lib_ICE_IceConnectionNumber=no | |
24679 | fi | |
8a7b1113 | 24680 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
24681 | LIBS=$ac_check_lib_save_LIBS |
24682 | fi | |
24683 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 | |
24684 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 | |
24685 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then | |
24686 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" | |
24687 | fi | |
24688 | ||
24689 | LDFLAGS=$ac_save_LDFLAGS | |
24690 | ||
24691 | fi | |
24692 | ||
24693 | ||
24694 | if test "$no_x" = "yes"; then | |
24695 | { { echo "$as_me:$LINENO: error: X11 not found" >&5 | |
24696 | echo "$as_me: error: X11 not found" >&2;} | |
24697 | { (exit please use --x-includes and/or --x-libraries options); exit please use --x-includes and/or --x-libraries options; }; } | |
24698 | fi | |
24699 | ||
24700 | GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//'` | |
24701 | TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'` | |
24702 | AFMINSTALL=afminstall | |
24703 | COMPILED_X_PROGRAM=0 | |
24704 | ||
24705 | echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5 | |
24706 | echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6 | |
24707 | ||
24708 | ac_find_includes= | |
24709 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
24710 | do | |
24711 | if test -f "$ac_dir/Xm/Xm.h"; then | |
24712 | ac_find_includes=$ac_dir | |
24713 | break | |
24714 | fi | |
24715 | done | |
24716 | ||
24717 | if test "$ac_find_includes" != "" ; then | |
24718 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
24719 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
24720 | ||
24721 | if test "x$ac_find_includes" = "x/usr/include"; then | |
24722 | ac_path_to_include="" | |
24723 | else | |
24724 | echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null | |
24725 | result=$? | |
24726 | if test $result = 0; then | |
24727 | ac_path_to_include="" | |
24728 | else | |
24729 | ac_path_to_include=" -I$ac_find_includes" | |
24730 | fi | |
24731 | fi | |
24732 | ||
24733 | TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include" | |
24734 | else | |
24735 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24736 | #line $LINENO "configure" |
a848cd7e SC |
24737 | /* confdefs.h. */ |
24738 | _ACEOF | |
24739 | cat confdefs.h >>conftest.$ac_ext | |
24740 | cat >>conftest.$ac_ext <<_ACEOF | |
24741 | /* end confdefs.h. */ | |
24742 | ||
24743 | #include <Xm/Xm.h> | |
24744 | ||
24745 | int | |
24746 | main () | |
24747 | { | |
24748 | ||
24749 | int version; | |
24750 | version = xmUseVersion; | |
24751 | ||
24752 | ; | |
24753 | return 0; | |
24754 | } | |
24755 | _ACEOF | |
24756 | rm -f conftest.$ac_objext | |
24757 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 24758 | (eval $ac_compile) 2>&5 |
a848cd7e | 24759 | ac_status=$? |
a848cd7e SC |
24760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24761 | (exit $ac_status); } && | |
8a7b1113 | 24762 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
24763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24764 | (eval $ac_try) 2>&5 | |
24765 | ac_status=$? | |
24766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24767 | (exit $ac_status); }; }; then | |
24768 | ||
24769 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
24770 | echo "${ECHO_T}found in default search path" >&6 | |
24771 | COMPILED_X_PROGRAM=1 | |
24772 | ||
24773 | else | |
24774 | echo "$as_me: failed program was:" >&5 | |
24775 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24776 | ||
24777 | ||
24778 | echo "$as_me:$LINENO: result: no" >&5 | |
24779 | echo "${ECHO_T}no" >&6 | |
24780 | { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of Xm/Xm.h" >&5 | |
24781 | echo "$as_me: error: please set CFLAGS to contain the location of Xm/Xm.h" >&2;} | |
24782 | { (exit 1); exit 1; }; } | |
24783 | ||
24784 | ||
24785 | fi | |
8a7b1113 | 24786 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24787 | fi |
24788 | ||
24789 | if test "$COMPILED_X_PROGRAM" = 0; then | |
24790 | echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5 | |
24791 | echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6 | |
24792 | ||
24793 | ac_find_libraries= | |
24794 | for ac_dir in $SEARCH_LIB /usr/lib; | |
24795 | do | |
24796 | for ac_extension in a so sl dylib; do | |
24797 | if test -f "$ac_dir/libXm.$ac_extension"; then | |
24798 | ac_find_libraries=$ac_dir | |
24799 | break 2 | |
24800 | fi | |
24801 | done | |
24802 | done | |
24803 | ||
24804 | if test "$ac_find_libraries" != "" ; then | |
24805 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
24806 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
24807 | ||
24808 | ||
24809 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
24810 | result=$? | |
24811 | if test $result = 0; then | |
24812 | ac_path_to_link="" | |
24813 | else | |
24814 | ac_path_to_link=" -L$ac_find_libraries" | |
24815 | fi | |
24816 | ||
24817 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
24818 | else | |
24819 | save_CFLAGS=$CFLAGS | |
24820 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24821 | ||
24822 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24823 | #line $LINENO "configure" |
a848cd7e SC |
24824 | /* confdefs.h. */ |
24825 | _ACEOF | |
24826 | cat confdefs.h >>conftest.$ac_ext | |
24827 | cat >>conftest.$ac_ext <<_ACEOF | |
24828 | /* end confdefs.h. */ | |
24829 | ||
24830 | #include <Xm/Xm.h> | |
24831 | ||
24832 | int | |
24833 | main () | |
24834 | { | |
24835 | ||
24836 | int version; | |
24837 | version = xmUseVersion; | |
24838 | ||
24839 | ; | |
24840 | return 0; | |
24841 | } | |
24842 | _ACEOF | |
24843 | rm -f conftest.$ac_objext | |
24844 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 24845 | (eval $ac_compile) 2>&5 |
a848cd7e | 24846 | ac_status=$? |
a848cd7e SC |
24847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24848 | (exit $ac_status); } && | |
8a7b1113 | 24849 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
24850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24851 | (eval $ac_try) 2>&5 | |
24852 | ac_status=$? | |
24853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24854 | (exit $ac_status); }; }; then | |
24855 | ||
24856 | echo "$as_me:$LINENO: result: found in default search path" >&5 | |
24857 | echo "${ECHO_T}found in default search path" >&6 | |
24858 | COMPILED_X_PROGRAM=1 | |
24859 | ||
24860 | else | |
24861 | echo "$as_me: failed program was:" >&5 | |
24862 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24863 | ||
24864 | ||
24865 | echo "$as_me:$LINENO: result: no" >&5 | |
24866 | echo "${ECHO_T}no" >&6 | |
24867 | { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5 | |
24868 | echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;} | |
24869 | { (exit 1); exit 1; }; } | |
24870 | ||
24871 | ||
24872 | fi | |
8a7b1113 | 24873 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
24874 | |
24875 | CFLAGS=$save_CFLAGS | |
24876 | fi | |
24877 | fi | |
24878 | ||
24879 | echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5 | |
24880 | echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6 | |
24881 | libp_link="" | |
24882 | libsm_ice_link="" | |
24883 | libs_found=0 | |
24884 | for libp in "" " -lXp"; do | |
24885 | if test "$libs_found" = "0"; then | |
24886 | for libsm_ice in "" " -lSM -lICE"; do | |
24887 | if test "$libs_found" = "0"; then | |
24888 | save_LIBS="$LIBS" | |
24889 | LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11" | |
24890 | save_CFLAGS=$CFLAGS | |
24891 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24892 | ||
24893 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24894 | #line $LINENO "configure" |
a848cd7e SC |
24895 | /* confdefs.h. */ |
24896 | _ACEOF | |
24897 | cat confdefs.h >>conftest.$ac_ext | |
24898 | cat >>conftest.$ac_ext <<_ACEOF | |
24899 | /* end confdefs.h. */ | |
24900 | ||
24901 | #include <Xm/Xm.h> | |
24902 | #include <Xm/List.h> | |
24903 | ||
24904 | int | |
24905 | main () | |
24906 | { | |
24907 | ||
24908 | XmString string = NULL; | |
24909 | Widget w = NULL; | |
24910 | int position = 0; | |
24911 | XmListAddItem(w, string, position); | |
24912 | ||
24913 | ; | |
24914 | return 0; | |
24915 | } | |
24916 | _ACEOF | |
24917 | rm -f conftest.$ac_objext conftest$ac_exeext | |
24918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 24919 | (eval $ac_link) 2>&5 |
a848cd7e | 24920 | ac_status=$? |
a848cd7e SC |
24921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24922 | (exit $ac_status); } && | |
8a7b1113 | 24923 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
24924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24925 | (eval $ac_try) 2>&5 | |
24926 | ac_status=$? | |
24927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24928 | (exit $ac_status); }; }; then | |
24929 | ||
24930 | libp_link="$libp" | |
24931 | libsm_ice_link="$libsm_ice" | |
24932 | echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5 | |
24933 | echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6 | |
24934 | libs_found=1 | |
24935 | ||
24936 | else | |
24937 | echo "$as_me: failed program was:" >&5 | |
24938 | sed 's/^/| /' conftest.$ac_ext >&5 | |
24939 | ||
24940 | ||
24941 | ||
24942 | fi | |
8a7b1113 | 24943 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
24944 | |
24945 | LIBS="$save_LIBS" | |
24946 | CFLAGS=$save_CFLAGS | |
24947 | fi | |
24948 | done | |
24949 | fi | |
24950 | done | |
24951 | ||
24952 | if test "$libs_found" = "0"; then | |
24953 | echo "$as_me:$LINENO: result: can't find the right libraries" >&5 | |
24954 | echo "${ECHO_T}can't find the right libraries" >&6 | |
24955 | { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5 | |
24956 | echo "$as_me: error: can't link a simple motif program" >&2;} | |
24957 | { (exit 1); exit 1; }; } | |
24958 | fi | |
24959 | ||
24960 | save_CFLAGS=$CFLAGS | |
24961 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
24962 | echo "$as_me:$LINENO: checking for Motif 2" >&5 | |
24963 | echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6 | |
24964 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 24965 | #line $LINENO "configure" |
a848cd7e SC |
24966 | /* confdefs.h. */ |
24967 | _ACEOF | |
24968 | cat confdefs.h >>conftest.$ac_ext | |
24969 | cat >>conftest.$ac_ext <<_ACEOF | |
24970 | /* end confdefs.h. */ | |
24971 | ||
24972 | #include <Xm/Xm.h> | |
24973 | ||
24974 | int | |
24975 | main () | |
24976 | { | |
24977 | ||
24978 | #if XmVersion < 2000 | |
24979 | #error "Not Motif 2" | |
24980 | #endif | |
24981 | ||
24982 | ; | |
24983 | return 0; | |
24984 | } | |
24985 | _ACEOF | |
24986 | rm -f conftest.$ac_objext | |
24987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 24988 | (eval $ac_compile) 2>&5 |
a848cd7e | 24989 | ac_status=$? |
a848cd7e SC |
24990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24991 | (exit $ac_status); } && | |
8a7b1113 | 24992 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
24993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
24994 | (eval $ac_try) 2>&5 | |
24995 | ac_status=$? | |
24996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
24997 | (exit $ac_status); }; }; then | |
24998 | ||
24999 | cat >>confdefs.h <<\_ACEOF | |
25000 | #define __WXMOTIF20__ 1 | |
25001 | _ACEOF | |
25002 | ||
25003 | echo "$as_me:$LINENO: result: found" >&5 | |
25004 | echo "${ECHO_T}found" >&6 | |
25005 | ||
25006 | else | |
25007 | echo "$as_me: failed program was:" >&5 | |
25008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25009 | ||
25010 | ||
25011 | cat >>confdefs.h <<\_ACEOF | |
25012 | #define __WXMOTIF20__ 0 | |
25013 | _ACEOF | |
25014 | ||
25015 | echo "$as_me:$LINENO: result: not found" >&5 | |
25016 | echo "${ECHO_T}not found" >&6 | |
25017 | ||
25018 | fi | |
8a7b1113 | 25019 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25020 | CFLAGS=$save_CFLAGS |
25021 | ||
25022 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11" | |
25023 | TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo${PATH_IFS}\${top_srcdir}/src/x11" | |
25024 | TOOLKIT=MOTIF | |
25025 | GUIDIST=MOTIF_DIST | |
25026 | fi | |
25027 | ||
25028 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
25029 | if test "$wxUSE_LIBXPM" = "sys"; then | |
25030 | echo "$as_me:$LINENO: checking for Xpm library" >&5 | |
25031 | echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6 | |
25032 | ||
25033 | ac_find_libraries= | |
25034 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25035 | do | |
25036 | for ac_extension in a so sl dylib; do | |
25037 | if test -f "$ac_dir/libXpm.$ac_extension"; then | |
25038 | ac_find_libraries=$ac_dir | |
25039 | break 2 | |
25040 | fi | |
25041 | done | |
25042 | done | |
25043 | ||
25044 | if test "$ac_find_libraries" != "" ; then | |
25045 | ||
25046 | echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null | |
25047 | result=$? | |
25048 | if test $result = 0; then | |
25049 | ac_path_to_link="" | |
25050 | else | |
25051 | ac_path_to_link=" -L$ac_find_libraries" | |
25052 | fi | |
25053 | ||
25054 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link" | |
25055 | echo "$as_me:$LINENO: result: found at $ac_find_libraries" >&5 | |
25056 | echo "${ECHO_T}found at $ac_find_libraries" >&6 | |
25057 | ||
25058 | echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 | |
25059 | echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6 | |
25060 | if test "${wx_cv_x11_xpm_h+set}" = set; then | |
25061 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25062 | else | |
25063 | ||
25064 | save_CFLAGS=$CFLAGS | |
25065 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25066 | ||
25067 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 25068 | #line $LINENO "configure" |
a848cd7e SC |
25069 | /* confdefs.h. */ |
25070 | _ACEOF | |
25071 | cat confdefs.h >>conftest.$ac_ext | |
25072 | cat >>conftest.$ac_ext <<_ACEOF | |
25073 | /* end confdefs.h. */ | |
25074 | ||
25075 | #include <X11/xpm.h> | |
25076 | ||
25077 | int | |
25078 | main () | |
25079 | { | |
25080 | ||
25081 | int version; | |
25082 | version = XpmLibraryVersion(); | |
25083 | ||
25084 | ; | |
25085 | return 0; | |
25086 | } | |
25087 | _ACEOF | |
25088 | rm -f conftest.$ac_objext | |
25089 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 25090 | (eval $ac_compile) 2>&5 |
a848cd7e | 25091 | ac_status=$? |
a848cd7e SC |
25092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25093 | (exit $ac_status); } && | |
8a7b1113 | 25094 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25095 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25096 | (eval $ac_try) 2>&5 | |
25097 | ac_status=$? | |
25098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25099 | (exit $ac_status); }; }; then | |
25100 | wx_cv_x11_xpm_h=yes | |
25101 | else | |
25102 | echo "$as_me: failed program was:" >&5 | |
25103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25104 | ||
25105 | wx_cv_x11_xpm_h=no | |
25106 | ||
25107 | fi | |
8a7b1113 | 25108 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25109 | |
25110 | CFLAGS=$save_CFLAGS | |
25111 | ||
25112 | ||
25113 | fi | |
25114 | echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5 | |
25115 | echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6 | |
25116 | ||
25117 | if test $wx_cv_x11_xpm_h = "yes"; then | |
25118 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm" | |
25119 | cat >>confdefs.h <<\_ACEOF | |
25120 | #define wxHAVE_LIB_XPM 1 | |
25121 | _ACEOF | |
25122 | ||
25123 | else | |
25124 | { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5 | |
25125 | echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;} | |
25126 | fi | |
25127 | fi | |
25128 | ||
25129 | fi | |
25130 | ||
25131 | echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5 | |
25132 | echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6 | |
25133 | if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then | |
25134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25135 | else | |
25136 | ac_check_lib_save_LIBS=$LIBS | |
25137 | LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS" | |
25138 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 25139 | #line $LINENO "configure" |
a848cd7e SC |
25140 | /* confdefs.h. */ |
25141 | _ACEOF | |
25142 | cat confdefs.h >>conftest.$ac_ext | |
25143 | cat >>conftest.$ac_ext <<_ACEOF | |
25144 | /* end confdefs.h. */ | |
25145 | ||
25146 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25147 | #ifdef __cplusplus | |
25148 | extern "C" | |
25149 | #endif | |
25150 | /* We use char because int might match the return type of a gcc2 | |
25151 | builtin and then its argument prototype would still apply. */ | |
25152 | char XShapeQueryExtension (); | |
25153 | int | |
25154 | main () | |
25155 | { | |
25156 | XShapeQueryExtension (); | |
25157 | ; | |
25158 | return 0; | |
25159 | } | |
25160 | _ACEOF | |
25161 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25162 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 25163 | (eval $ac_link) 2>&5 |
a848cd7e | 25164 | ac_status=$? |
a848cd7e SC |
25165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25166 | (exit $ac_status); } && | |
8a7b1113 | 25167 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
25168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25169 | (eval $ac_try) 2>&5 | |
25170 | ac_status=$? | |
25171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25172 | (exit $ac_status); }; }; then | |
25173 | ac_cv_lib_Xext_XShapeQueryExtension=yes | |
25174 | else | |
25175 | echo "$as_me: failed program was:" >&5 | |
25176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25177 | ||
25178 | ac_cv_lib_Xext_XShapeQueryExtension=no | |
25179 | fi | |
8a7b1113 | 25180 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
25181 | LIBS=$ac_check_lib_save_LIBS |
25182 | fi | |
25183 | echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 | |
25184 | echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6 | |
25185 | if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then | |
25186 | ||
25187 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext" | |
25188 | wxHAVE_XEXT_LIB=1 | |
25189 | ||
25190 | fi | |
25191 | ||
25192 | ||
25193 | if test "$wxHAVE_XEXT_LIB" = 1; then | |
25194 | save_CFLAGS="$CFLAGS" | |
25195 | CFLAGS="$CFLAGS $TOOLKIT_INCLUDE" | |
25196 | ||
25197 | echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5 | |
25198 | echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6 | |
25199 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 25200 | #line $LINENO "configure" |
a848cd7e SC |
25201 | /* confdefs.h. */ |
25202 | _ACEOF | |
25203 | cat confdefs.h >>conftest.$ac_ext | |
25204 | cat >>conftest.$ac_ext <<_ACEOF | |
25205 | /* end confdefs.h. */ | |
25206 | ||
25207 | #include <X11/Xlib.h> | |
25208 | #include <X11/extensions/shape.h> | |
25209 | ||
25210 | int | |
25211 | main () | |
25212 | { | |
25213 | ||
25214 | int dummy1, dummy2; | |
25215 | XShapeQueryExtension((Display*)NULL, | |
25216 | (int*)NULL, (int*)NULL); | |
25217 | ||
25218 | ; | |
25219 | return 0; | |
25220 | } | |
25221 | _ACEOF | |
25222 | rm -f conftest.$ac_objext | |
25223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 25224 | (eval $ac_compile) 2>&5 |
a848cd7e | 25225 | ac_status=$? |
a848cd7e SC |
25226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25227 | (exit $ac_status); } && | |
8a7b1113 | 25228 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25230 | (eval $ac_try) 2>&5 | |
25231 | ac_status=$? | |
25232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25233 | (exit $ac_status); }; }; then | |
25234 | ||
25235 | cat >>confdefs.h <<\_ACEOF | |
25236 | #define HAVE_XSHAPE 1 | |
25237 | _ACEOF | |
25238 | ||
25239 | echo "$as_me:$LINENO: result: found" >&5 | |
25240 | echo "${ECHO_T}found" >&6 | |
25241 | ||
25242 | else | |
25243 | echo "$as_me: failed program was:" >&5 | |
25244 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25245 | ||
25246 | ||
25247 | echo "$as_me:$LINENO: result: not found" >&5 | |
25248 | echo "${ECHO_T}not found" >&6 | |
25249 | ||
25250 | fi | |
8a7b1113 | 25251 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25252 | CFLAGS="$save_CFLAGS" |
25253 | ||
25254 | fi | |
25255 | fi | |
25256 | ||
25257 | if test "$wxUSE_MAC" = 1; then | |
25258 | echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5 | |
25259 | echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6 | |
25260 | if test "$GCC" = yes; then | |
25261 | echo "$as_me:$LINENO: result: gcc" >&5 | |
25262 | echo "${ECHO_T}gcc" >&6 | |
25263 | CPPFLAGS_PASCAL="-fpascal-strings" | |
25264 | elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then | |
25265 | echo "$as_me:$LINENO: result: xlc" >&5 | |
25266 | echo "${ECHO_T}xlc" >&6 | |
25267 | CPPFLAGS_PASCAL="-qmacpstr" | |
25268 | else | |
25269 | echo "$as_me:$LINENO: result: none" >&5 | |
25270 | echo "${ECHO_T}none" >&6 | |
25271 | fi | |
25272 | ||
25273 | CPPFLAGS="$CPPFLAGS $CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon" | |
25274 | ||
25275 | TOOLKIT_VPATH="\${top_srcdir}/src/mac/carbon${PATH_IFS}\${top_srcdir}/src/mac/carbon/morefilex" | |
25276 | TOOLKIT=MAC | |
25277 | GUIDIST=MACX_DIST | |
25278 | WXBASEPORT="_carbon" | |
25279 | fi | |
25280 | ||
25281 | if test "$wxUSE_COCOA" = 1; then | |
25282 | TOOLKIT_VPATH="\${top_srcdir}/src/cocoa" | |
25283 | TOOLKIT=COCOA | |
25284 | GUIDIST=COCOA_DIST | |
25285 | fi | |
25286 | ||
25287 | if test "$wxUSE_PM" = 1; then | |
25288 | TOOLKIT=PM | |
25289 | GUIDIST=GTK_DIST | |
25290 | fi | |
25291 | ||
25292 | if test "$TOOLKIT" = "PM" ; then | |
25293 | TOOLKIT_DIR="os2" | |
25294 | else | |
25295 | TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"` | |
25296 | fi | |
25297 | ||
25298 | PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst" | |
25299 | ||
25300 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
25301 | ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}" | |
25302 | ||
25303 | ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}" | |
25304 | ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}" | |
25305 | ||
25306 | PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst" | |
25307 | if test "$wxUSE_X11" = 1; then | |
25308 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes" | |
25309 | else | |
25310 | TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}" | |
25311 | fi | |
25312 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__" | |
25313 | WIDGET_SET=univ | |
25314 | else | |
25315 | ALL_OBJECTS="\$(GUIOBJS)" | |
25316 | ALL_SOURCES="\$(ALL_SOURCES)" | |
25317 | ALL_HEADERS="\$(ALL_HEADERS)" | |
25318 | fi | |
25319 | ||
25320 | ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)" | |
25321 | ||
25322 | if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then | |
25323 | ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)" | |
25324 | fi | |
25325 | ||
25326 | if test "$wxUSE_HTML" = "yes"; then | |
25327 | ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)" | |
25328 | fi | |
25329 | ||
25330 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
25331 | ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)" | |
25332 | fi | |
25333 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
25334 | ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)" | |
25335 | fi | |
25336 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
25337 | ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)" | |
25338 | fi | |
25339 | ||
25340 | GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST" | |
25341 | DISTDIR="wx\$(TOOLKIT)" | |
25342 | else | |
25343 | USE_GUI=0 | |
25344 | ||
25345 | TOOLKIT_DIR="base" | |
25346 | ||
25347 | if test "$USE_WIN32" = 1 ; then | |
25348 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}" | |
25349 | TOOLKIT_VPATH="\${top_srcdir}/src/msw" | |
25350 | ||
25351 | TOOLKIT="MSW" | |
25352 | else | |
25353 | ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}" | |
25354 | TOOLKIT_VPATH="\${top_srcdir}/src/unix" | |
25355 | fi | |
25356 | ||
25357 | ALL_SOURCES="\$(ALL_SOURCES)" | |
25358 | ALL_HEADERS="\$(ALL_HEADERS)" | |
25359 | ||
25360 | PORT_FILES="\${top_srcdir}/src/files.lst" | |
25361 | ||
25362 | GUIDIST="BASE_DIST" | |
25363 | DISTDIR="wxBase" | |
25364 | fi | |
25365 | ||
25366 | ||
25367 | ||
25368 | ||
25369 | IODBC_C_SRC="" | |
25370 | ||
25371 | ||
25372 | if test "$TOOLKIT" != "MSW" ; then | |
25373 | ||
25374 | if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then | |
25375 | ||
25376 | if test "${ac_cv_header_sql_h+set}" = set; then | |
25377 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
25378 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
25379 | if test "${ac_cv_header_sql_h+set}" = set; then | |
25380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25381 | fi | |
25382 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
25383 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
25384 | else | |
25385 | # Is the header compilable? | |
25386 | echo "$as_me:$LINENO: checking sql.h usability" >&5 | |
25387 | echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6 | |
25388 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 25389 | #line $LINENO "configure" |
a848cd7e SC |
25390 | /* confdefs.h. */ |
25391 | _ACEOF | |
25392 | cat confdefs.h >>conftest.$ac_ext | |
25393 | cat >>conftest.$ac_ext <<_ACEOF | |
25394 | /* end confdefs.h. */ | |
25395 | $ac_includes_default | |
25396 | #include <sql.h> | |
25397 | _ACEOF | |
25398 | rm -f conftest.$ac_objext | |
25399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 25400 | (eval $ac_compile) 2>&5 |
a848cd7e | 25401 | ac_status=$? |
a848cd7e SC |
25402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25403 | (exit $ac_status); } && | |
8a7b1113 | 25404 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25406 | (eval $ac_try) 2>&5 | |
25407 | ac_status=$? | |
25408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25409 | (exit $ac_status); }; }; then | |
25410 | ac_header_compiler=yes | |
25411 | else | |
25412 | echo "$as_me: failed program was:" >&5 | |
25413 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25414 | ||
25415 | ac_header_compiler=no | |
25416 | fi | |
8a7b1113 | 25417 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25418 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25419 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25420 | ||
25421 | # Is the header present? | |
25422 | echo "$as_me:$LINENO: checking sql.h presence" >&5 | |
25423 | echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6 | |
25424 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 25425 | #line $LINENO "configure" |
a848cd7e SC |
25426 | /* confdefs.h. */ |
25427 | _ACEOF | |
25428 | cat confdefs.h >>conftest.$ac_ext | |
25429 | cat >>conftest.$ac_ext <<_ACEOF | |
25430 | /* end confdefs.h. */ | |
25431 | #include <sql.h> | |
25432 | _ACEOF | |
25433 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25434 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25435 | ac_status=$? | |
25436 | grep -v '^ *+' conftest.er1 >conftest.err | |
25437 | rm -f conftest.er1 | |
25438 | cat conftest.err >&5 | |
25439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25440 | (exit $ac_status); } >/dev/null; then | |
25441 | if test -s conftest.err; then | |
25442 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
25443 | else |
25444 | ac_cpp_err= | |
25445 | fi | |
25446 | else | |
25447 | ac_cpp_err=yes | |
25448 | fi | |
25449 | if test -z "$ac_cpp_err"; then | |
25450 | ac_header_preproc=yes | |
25451 | else | |
25452 | echo "$as_me: failed program was:" >&5 | |
25453 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25454 | ||
25455 | ac_header_preproc=no | |
25456 | fi | |
25457 | rm -f conftest.err conftest.$ac_ext | |
25458 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25459 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25460 | ||
25461 | # So? What about this header? | |
8a7b1113 VZ |
25462 | case $ac_header_compiler:$ac_header_preproc in |
25463 | yes:no ) | |
a848cd7e SC |
25464 | { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
25465 | echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
25466 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
25467 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
25468 | ( | |
25469 | cat <<\_ASBOX | |
25470 | ## ------------------------------------ ## | |
25471 | ## Report this to bug-autoconf@gnu.org. ## | |
25472 | ## ------------------------------------ ## | |
25473 | _ASBOX | |
25474 | ) | | |
25475 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 25476 | ;; |
8a7b1113 | 25477 | no:yes ) |
a848cd7e SC |
25478 | { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5 |
25479 | echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
25480 | { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5 |
25481 | echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
25482 | { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5 |
25483 | echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
25484 | ( |
25485 | cat <<\_ASBOX | |
8a7b1113 VZ |
25486 | ## ------------------------------------ ## |
25487 | ## Report this to bug-autoconf@gnu.org. ## | |
25488 | ## ------------------------------------ ## | |
a848cd7e SC |
25489 | _ASBOX |
25490 | ) | | |
25491 | sed "s/^/$as_me: WARNING: /" >&2 | |
25492 | ;; | |
25493 | esac | |
25494 | echo "$as_me:$LINENO: checking for sql.h" >&5 | |
25495 | echo $ECHO_N "checking for sql.h... $ECHO_C" >&6 | |
25496 | if test "${ac_cv_header_sql_h+set}" = set; then | |
25497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25498 | else | |
25499 | ac_cv_header_sql_h=$ac_header_preproc | |
25500 | fi | |
25501 | echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5 | |
25502 | echo "${ECHO_T}$ac_cv_header_sql_h" >&6 | |
25503 | ||
25504 | fi | |
25505 | if test $ac_cv_header_sql_h = yes; then | |
25506 | found_sql_h=1 | |
25507 | fi | |
25508 | ||
25509 | ||
25510 | if test "x$found_sql_h" = "x1" ; then | |
25511 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5 | |
25512 | echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6 | |
25513 | if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then | |
25514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25515 | else | |
25516 | ac_check_lib_save_LIBS=$LIBS | |
25517 | LIBS="-liodbc $LIBS" | |
25518 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 25519 | #line $LINENO "configure" |
a848cd7e SC |
25520 | /* confdefs.h. */ |
25521 | _ACEOF | |
25522 | cat confdefs.h >>conftest.$ac_ext | |
25523 | cat >>conftest.$ac_ext <<_ACEOF | |
25524 | /* end confdefs.h. */ | |
25525 | ||
25526 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25527 | #ifdef __cplusplus | |
25528 | extern "C" | |
25529 | #endif | |
25530 | /* We use char because int might match the return type of a gcc2 | |
25531 | builtin and then its argument prototype would still apply. */ | |
25532 | char SQLAllocEnv (); | |
25533 | int | |
25534 | main () | |
25535 | { | |
25536 | SQLAllocEnv (); | |
25537 | ; | |
25538 | return 0; | |
25539 | } | |
25540 | _ACEOF | |
25541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 25543 | (eval $ac_link) 2>&5 |
a848cd7e | 25544 | ac_status=$? |
a848cd7e SC |
25545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25546 | (exit $ac_status); } && | |
8a7b1113 | 25547 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
25548 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25549 | (eval $ac_try) 2>&5 | |
25550 | ac_status=$? | |
25551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25552 | (exit $ac_status); }; }; then | |
25553 | ac_cv_lib_iodbc_SQLAllocEnv=yes | |
25554 | else | |
25555 | echo "$as_me: failed program was:" >&5 | |
25556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25557 | ||
25558 | ac_cv_lib_iodbc_SQLAllocEnv=no | |
25559 | fi | |
8a7b1113 | 25560 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
25561 | LIBS=$ac_check_lib_save_LIBS |
25562 | fi | |
25563 | echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5 | |
25564 | echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6 | |
25565 | if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then | |
25566 | ODBC_LINK=" -liodbc" | |
25567 | else | |
25568 | ||
25569 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5 | |
25570 | echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6 | |
25571 | if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then | |
25572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25573 | else | |
25574 | ac_check_lib_save_LIBS=$LIBS | |
25575 | LIBS="-lunixodbc $LIBS" | |
25576 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 25577 | #line $LINENO "configure" |
a848cd7e SC |
25578 | /* confdefs.h. */ |
25579 | _ACEOF | |
25580 | cat confdefs.h >>conftest.$ac_ext | |
25581 | cat >>conftest.$ac_ext <<_ACEOF | |
25582 | /* end confdefs.h. */ | |
25583 | ||
25584 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25585 | #ifdef __cplusplus | |
25586 | extern "C" | |
25587 | #endif | |
25588 | /* We use char because int might match the return type of a gcc2 | |
25589 | builtin and then its argument prototype would still apply. */ | |
25590 | char SQLAllocEnv (); | |
25591 | int | |
25592 | main () | |
25593 | { | |
25594 | SQLAllocEnv (); | |
25595 | ; | |
25596 | return 0; | |
25597 | } | |
25598 | _ACEOF | |
25599 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25600 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 25601 | (eval $ac_link) 2>&5 |
a848cd7e | 25602 | ac_status=$? |
a848cd7e SC |
25603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25604 | (exit $ac_status); } && | |
8a7b1113 | 25605 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
25606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25607 | (eval $ac_try) 2>&5 | |
25608 | ac_status=$? | |
25609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25610 | (exit $ac_status); }; }; then | |
25611 | ac_cv_lib_unixodbc_SQLAllocEnv=yes | |
25612 | else | |
25613 | echo "$as_me: failed program was:" >&5 | |
25614 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25615 | ||
25616 | ac_cv_lib_unixodbc_SQLAllocEnv=no | |
25617 | fi | |
8a7b1113 | 25618 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
25619 | LIBS=$ac_check_lib_save_LIBS |
25620 | fi | |
25621 | echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5 | |
25622 | echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6 | |
25623 | if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then | |
25624 | ODBC_LINK=" -lunixodbc" | |
25625 | else | |
25626 | ||
25627 | echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5 | |
25628 | echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6 | |
25629 | if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then | |
25630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25631 | else | |
25632 | ac_check_lib_save_LIBS=$LIBS | |
25633 | LIBS="-lodbc $LIBS" | |
25634 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 25635 | #line $LINENO "configure" |
a848cd7e SC |
25636 | /* confdefs.h. */ |
25637 | _ACEOF | |
25638 | cat confdefs.h >>conftest.$ac_ext | |
25639 | cat >>conftest.$ac_ext <<_ACEOF | |
25640 | /* end confdefs.h. */ | |
25641 | ||
25642 | /* Override any gcc2 internal prototype to avoid an error. */ | |
25643 | #ifdef __cplusplus | |
25644 | extern "C" | |
25645 | #endif | |
25646 | /* We use char because int might match the return type of a gcc2 | |
25647 | builtin and then its argument prototype would still apply. */ | |
25648 | char SQLAllocEnv (); | |
25649 | int | |
25650 | main () | |
25651 | { | |
25652 | SQLAllocEnv (); | |
25653 | ; | |
25654 | return 0; | |
25655 | } | |
25656 | _ACEOF | |
25657 | rm -f conftest.$ac_objext conftest$ac_exeext | |
25658 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 25659 | (eval $ac_link) 2>&5 |
a848cd7e | 25660 | ac_status=$? |
a848cd7e SC |
25661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25662 | (exit $ac_status); } && | |
8a7b1113 | 25663 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
25664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25665 | (eval $ac_try) 2>&5 | |
25666 | ac_status=$? | |
25667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25668 | (exit $ac_status); }; }; then | |
25669 | ac_cv_lib_odbc_SQLAllocEnv=yes | |
25670 | else | |
25671 | echo "$as_me: failed program was:" >&5 | |
25672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25673 | ||
25674 | ac_cv_lib_odbc_SQLAllocEnv=no | |
25675 | fi | |
8a7b1113 | 25676 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
25677 | LIBS=$ac_check_lib_save_LIBS |
25678 | fi | |
25679 | echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5 | |
25680 | echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6 | |
25681 | if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then | |
25682 | ODBC_LINK=" -lodbc" | |
25683 | fi | |
25684 | ||
25685 | ||
25686 | fi | |
25687 | ||
25688 | ||
25689 | fi | |
25690 | ||
25691 | fi | |
25692 | if test "x$ODBC_LINK" = "x" ; then | |
25693 | if test "$wxUSE_ODBC" = "sys" ; then | |
25694 | { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5 | |
25695 | echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;} | |
25696 | { (exit 1); exit 1; }; } | |
25697 | else | |
25698 | { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5 | |
25699 | echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;} | |
25700 | wxUSE_ODBC=builtin | |
25701 | fi | |
25702 | else | |
25703 | wxUSE_ODBC=sys | |
25704 | fi | |
25705 | fi | |
25706 | if test "$wxUSE_ODBC" != "no" ; then | |
25707 | cat >>confdefs.h <<\_ACEOF | |
25708 | #define wxUSE_ODBC 1 | |
25709 | _ACEOF | |
25710 | ||
25711 | if test "$wxUSE_ODBC" = "builtin" ; then | |
25712 | cat >>confdefs.h <<\_ACEOF | |
25713 | #define wxUSE_BUILTIN_IODBC 1 | |
25714 | _ACEOF | |
25715 | ||
25716 | fi | |
25717 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db" | |
25718 | ||
25719 | WXODBCFLAG="-D_IODBC_" | |
25720 | fi | |
25721 | fi | |
25722 | ||
25723 | if test "$wxUSE_REGEX" = "builtin" ; then | |
25724 | ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)" | |
25725 | fi | |
25726 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
25727 | ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)" | |
25728 | fi | |
25729 | ||
01cb68df | 25730 | |
a848cd7e SC |
25731 | if test "$wxUSE_DISPLAY" = "yes"; then |
25732 | if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1; then | |
25733 | echo "$as_me:$LINENO: checking for Xinerama" >&5 | |
25734 | echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6 | |
25735 | ||
25736 | ac_find_libraries= | |
25737 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25738 | do | |
25739 | for ac_extension in a so sl dylib; do | |
25740 | if test -f "$ac_dir/libXinerama.$ac_extension"; then | |
25741 | ac_find_libraries=$ac_dir | |
25742 | break 2 | |
25743 | fi | |
25744 | done | |
25745 | done | |
25746 | ||
25747 | if test "$ac_find_libraries" != "" ; then | |
25748 | ||
25749 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
25750 | result=$? | |
25751 | if test $result = 0; then | |
25752 | ac_path_to_link="" | |
25753 | else | |
25754 | ac_path_to_link=" -L$ac_find_libraries" | |
25755 | fi | |
25756 | ||
25757 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
25758 | LDFLAGS="$LDFLAGS $ac_path_to_link" | |
25759 | fi | |
25760 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama" | |
25761 | echo "$as_me:$LINENO: result: yes" >&5 | |
25762 | echo "${ECHO_T}yes" >&6 | |
25763 | ||
25764 | echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5 | |
25765 | echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6 | |
25766 | ||
25767 | ac_find_libraries= | |
25768 | for ac_dir in $SEARCH_LIB /usr/lib; | |
25769 | do | |
25770 | for ac_extension in a so sl dylib; do | |
25771 | if test -f "$ac_dir/libXxf86vm.$ac_extension"; then | |
25772 | ac_find_libraries=$ac_dir | |
25773 | break 2 | |
25774 | fi | |
25775 | done | |
25776 | done | |
25777 | ||
25778 | if test "$ac_find_libraries" != "" ; then | |
25779 | echo "$as_me:$LINENO: result: yes" >&5 | |
25780 | echo "${ECHO_T}yes" >&6 | |
25781 | ||
25782 | for ac_header in X11/extensions/xf86vmode.h | |
25783 | do | |
25784 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25785 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25789 | else | |
25790 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 25791 | #line $LINENO "configure" |
a848cd7e SC |
25792 | /* confdefs.h. */ |
25793 | _ACEOF | |
25794 | cat confdefs.h >>conftest.$ac_ext | |
25795 | cat >>conftest.$ac_ext <<_ACEOF | |
25796 | /* end confdefs.h. */ | |
25797 | ||
25798 | #if HAVE_X11_XLIB_H | |
25799 | #include <X11/Xlib.h> | |
25800 | #endif | |
25801 | ||
25802 | ||
25803 | #include <$ac_header> | |
25804 | _ACEOF | |
25805 | rm -f conftest.$ac_objext | |
25806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 25807 | (eval $ac_compile) 2>&5 |
a848cd7e | 25808 | ac_status=$? |
a848cd7e SC |
25809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25810 | (exit $ac_status); } && | |
8a7b1113 | 25811 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
25812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25813 | (eval $ac_try) 2>&5 | |
25814 | ac_status=$? | |
25815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25816 | (exit $ac_status); }; }; then | |
25817 | eval "$as_ac_Header=yes" | |
25818 | else | |
25819 | echo "$as_me: failed program was:" >&5 | |
25820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25821 | ||
25822 | eval "$as_ac_Header=no" | |
25823 | fi | |
8a7b1113 | 25824 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
25825 | fi |
25826 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25827 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25828 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25829 | cat >>confdefs.h <<_ACEOF | |
25830 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25831 | _ACEOF | |
25832 | ||
25833 | GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm" | |
25834 | ||
25835 | fi | |
25836 | ||
25837 | done | |
25838 | ||
25839 | else | |
25840 | echo "$as_me:$LINENO: result: no" >&5 | |
25841 | echo "${ECHO_T}no" >&6 | |
25842 | fi | |
25843 | ||
25844 | else | |
25845 | echo "$as_me:$LINENO: result: no" >&5 | |
25846 | echo "${ECHO_T}no" >&6 | |
dcc1b6ad VS |
25847 | { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5 |
25848 | echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;} | |
a848cd7e SC |
25849 | wxUSE_DISPLAY="no" |
25850 | fi | |
01cb68df RG |
25851 | elif test "$wxUSE_MSW" = 1; then |
25852 | ||
25853 | ||
25854 | for ac_header in multimon.h ddraw.h | |
25855 | do | |
25856 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
25857 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25858 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25859 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25860 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25862 | fi | |
25863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25865 | else | |
25866 | # Is the header compilable? | |
25867 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
25868 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
25869 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 25870 | #line $LINENO "configure" |
01cb68df RG |
25871 | /* confdefs.h. */ |
25872 | _ACEOF | |
25873 | cat confdefs.h >>conftest.$ac_ext | |
25874 | cat >>conftest.$ac_ext <<_ACEOF | |
25875 | /* end confdefs.h. */ | |
25876 | $ac_includes_default | |
25877 | #include <$ac_header> | |
25878 | _ACEOF | |
25879 | rm -f conftest.$ac_objext | |
25880 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 25881 | (eval $ac_compile) 2>&5 |
01cb68df | 25882 | ac_status=$? |
01cb68df RG |
25883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
25884 | (exit $ac_status); } && | |
8a7b1113 | 25885 | { ac_try='test -s conftest.$ac_objext' |
01cb68df RG |
25886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
25887 | (eval $ac_try) 2>&5 | |
25888 | ac_status=$? | |
25889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25890 | (exit $ac_status); }; }; then | |
25891 | ac_header_compiler=yes | |
25892 | else | |
25893 | echo "$as_me: failed program was:" >&5 | |
25894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25895 | ||
25896 | ac_header_compiler=no | |
25897 | fi | |
8a7b1113 | 25898 | rm -f conftest.$ac_objext conftest.$ac_ext |
01cb68df RG |
25899 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
25900 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
25901 | ||
25902 | # Is the header present? | |
25903 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
25904 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
25905 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 25906 | #line $LINENO "configure" |
01cb68df RG |
25907 | /* confdefs.h. */ |
25908 | _ACEOF | |
25909 | cat confdefs.h >>conftest.$ac_ext | |
25910 | cat >>conftest.$ac_ext <<_ACEOF | |
25911 | /* end confdefs.h. */ | |
25912 | #include <$ac_header> | |
25913 | _ACEOF | |
25914 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
25915 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
25916 | ac_status=$? | |
25917 | grep -v '^ *+' conftest.er1 >conftest.err | |
25918 | rm -f conftest.er1 | |
25919 | cat conftest.err >&5 | |
25920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
25921 | (exit $ac_status); } >/dev/null; then | |
25922 | if test -s conftest.err; then | |
25923 | ac_cpp_err=$ac_c_preproc_warn_flag | |
01cb68df RG |
25924 | else |
25925 | ac_cpp_err= | |
25926 | fi | |
25927 | else | |
25928 | ac_cpp_err=yes | |
25929 | fi | |
25930 | if test -z "$ac_cpp_err"; then | |
25931 | ac_header_preproc=yes | |
25932 | else | |
25933 | echo "$as_me: failed program was:" >&5 | |
25934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
25935 | ||
25936 | ac_header_preproc=no | |
25937 | fi | |
25938 | rm -f conftest.err conftest.$ac_ext | |
25939 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
25940 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
25941 | ||
25942 | # So? What about this header? | |
8a7b1113 VZ |
25943 | case $ac_header_compiler:$ac_header_preproc in |
25944 | yes:no ) | |
01cb68df RG |
25945 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
25946 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
25947 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
25948 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
25949 | ( | |
25950 | cat <<\_ASBOX | |
25951 | ## ------------------------------------ ## | |
25952 | ## Report this to bug-autoconf@gnu.org. ## | |
25953 | ## ------------------------------------ ## | |
25954 | _ASBOX | |
25955 | ) | | |
25956 | sed "s/^/$as_me: WARNING: /" >&2 | |
01cb68df | 25957 | ;; |
8a7b1113 | 25958 | no:yes ) |
01cb68df RG |
25959 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
25960 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
25961 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
25962 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
01cb68df RG |
25963 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
25964 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
01cb68df RG |
25965 | ( |
25966 | cat <<\_ASBOX | |
8a7b1113 VZ |
25967 | ## ------------------------------------ ## |
25968 | ## Report this to bug-autoconf@gnu.org. ## | |
25969 | ## ------------------------------------ ## | |
01cb68df RG |
25970 | _ASBOX |
25971 | ) | | |
25972 | sed "s/^/$as_me: WARNING: /" >&2 | |
25973 | ;; | |
25974 | esac | |
25975 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
25976 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
25977 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
25978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
25979 | else | |
8a7b1113 | 25980 | eval "$as_ac_Header=$ac_header_preproc" |
01cb68df RG |
25981 | fi |
25982 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
25983 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
25984 | ||
25985 | fi | |
25986 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
25987 | cat >>confdefs.h <<_ACEOF | |
25988 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
25989 | _ACEOF | |
25990 | ||
25991 | else | |
25992 | ||
25993 | wxUSE_DISPLAY="no" | |
dcc1b6ad VS |
25994 | { echo "$as_me:$LINENO: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&5 |
25995 | echo "$as_me: WARNING: ddraw.h or multimon.h not found; disabling wxDisplay" >&2;} | |
01cb68df RG |
25996 | |
25997 | fi | |
25998 | ||
25999 | done | |
26000 | ||
a848cd7e SC |
26001 | fi |
26002 | fi | |
26003 | ||
26004 | ||
26005 | USE_OPENGL=0 | |
26006 | if test "$wxUSE_OPENGL" = "yes"; then | |
26007 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
26008 | OPENGL_LIBS="-framework OpenGL -framework AGL" | |
26009 | elif test "$wxUSE_MSW" = 1; then | |
26010 | OPENGL_LIBS="-lopengl32 -lglu32" | |
26011 | else | |
26012 | ||
26013 | ||
26014 | ac_find_includes= | |
26015 | for ac_dir in $SEARCH_INCLUDE /usr/include; | |
26016 | do | |
26017 | if test -f "$ac_dir/GL/gl.h"; then | |
26018 | ac_find_includes=$ac_dir | |
26019 | break | |
26020 | fi | |
26021 | done | |
26022 | ||
26023 | if test "$ac_find_includes" != "" ; then | |
26024 | echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5 | |
26025 | echo "${ECHO_T}found in $ac_find_includes" >&6 | |
26026 | ||
26027 | if test "x$ac_find_includes" = "x/usr/include"; then | |
26028 | ac_path_to_include="" | |
26029 | else | |
26030 | echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null | |
26031 | result=$? | |
26032 | if test $result = 0; then | |
26033 | ac_path_to_include="" | |
26034 | else | |
26035 | ac_path_to_include=" -I$ac_find_includes" | |
26036 | fi | |
26037 | fi | |
26038 | ||
26039 | CPPFLAGS="$CPPFLAGS$ac_path_to_include" | |
26040 | fi | |
26041 | ||
26042 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
26043 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
26044 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
26045 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
26046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26047 | fi | |
26048 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
26049 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
26050 | else | |
26051 | # Is the header compilable? | |
26052 | echo "$as_me:$LINENO: checking GL/gl.h usability" >&5 | |
26053 | echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6 | |
26054 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 26055 | #line $LINENO "configure" |
a848cd7e SC |
26056 | /* confdefs.h. */ |
26057 | _ACEOF | |
26058 | cat confdefs.h >>conftest.$ac_ext | |
26059 | cat >>conftest.$ac_ext <<_ACEOF | |
26060 | /* end confdefs.h. */ | |
26061 | $ac_includes_default | |
26062 | #include <GL/gl.h> | |
26063 | _ACEOF | |
26064 | rm -f conftest.$ac_objext | |
26065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 26066 | (eval $ac_compile) 2>&5 |
a848cd7e | 26067 | ac_status=$? |
a848cd7e SC |
26068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26069 | (exit $ac_status); } && | |
8a7b1113 | 26070 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26071 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26072 | (eval $ac_try) 2>&5 | |
26073 | ac_status=$? | |
26074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26075 | (exit $ac_status); }; }; then | |
26076 | ac_header_compiler=yes | |
26077 | else | |
26078 | echo "$as_me: failed program was:" >&5 | |
26079 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26080 | ||
26081 | ac_header_compiler=no | |
26082 | fi | |
8a7b1113 | 26083 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26084 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
26085 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
26086 | ||
26087 | # Is the header present? | |
26088 | echo "$as_me:$LINENO: checking GL/gl.h presence" >&5 | |
26089 | echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6 | |
26090 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 26091 | #line $LINENO "configure" |
a848cd7e SC |
26092 | /* confdefs.h. */ |
26093 | _ACEOF | |
26094 | cat confdefs.h >>conftest.$ac_ext | |
26095 | cat >>conftest.$ac_ext <<_ACEOF | |
26096 | /* end confdefs.h. */ | |
26097 | #include <GL/gl.h> | |
26098 | _ACEOF | |
26099 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
26100 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
26101 | ac_status=$? | |
26102 | grep -v '^ *+' conftest.er1 >conftest.err | |
26103 | rm -f conftest.er1 | |
26104 | cat conftest.err >&5 | |
26105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26106 | (exit $ac_status); } >/dev/null; then | |
26107 | if test -s conftest.err; then | |
26108 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
26109 | else |
26110 | ac_cpp_err= | |
26111 | fi | |
26112 | else | |
26113 | ac_cpp_err=yes | |
26114 | fi | |
26115 | if test -z "$ac_cpp_err"; then | |
26116 | ac_header_preproc=yes | |
26117 | else | |
26118 | echo "$as_me: failed program was:" >&5 | |
26119 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26120 | ||
26121 | ac_header_preproc=no | |
26122 | fi | |
26123 | rm -f conftest.err conftest.$ac_ext | |
26124 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
26125 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
26126 | ||
26127 | # So? What about this header? | |
8a7b1113 VZ |
26128 | case $ac_header_compiler:$ac_header_preproc in |
26129 | yes:no ) | |
a848cd7e SC |
26130 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
26131 | echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
26132 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
26133 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
26134 | ( | |
26135 | cat <<\_ASBOX | |
26136 | ## ------------------------------------ ## | |
26137 | ## Report this to bug-autoconf@gnu.org. ## | |
26138 | ## ------------------------------------ ## | |
26139 | _ASBOX | |
26140 | ) | | |
26141 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 26142 | ;; |
8a7b1113 | 26143 | no:yes ) |
a848cd7e SC |
26144 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5 |
26145 | echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
26146 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5 |
26147 | echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
26148 | { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5 |
26149 | echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
26150 | ( |
26151 | cat <<\_ASBOX | |
8a7b1113 VZ |
26152 | ## ------------------------------------ ## |
26153 | ## Report this to bug-autoconf@gnu.org. ## | |
26154 | ## ------------------------------------ ## | |
a848cd7e SC |
26155 | _ASBOX |
26156 | ) | | |
26157 | sed "s/^/$as_me: WARNING: /" >&2 | |
26158 | ;; | |
26159 | esac | |
26160 | echo "$as_me:$LINENO: checking for GL/gl.h" >&5 | |
26161 | echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6 | |
26162 | if test "${ac_cv_header_GL_gl_h+set}" = set; then | |
26163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26164 | else | |
26165 | ac_cv_header_GL_gl_h=$ac_header_preproc | |
26166 | fi | |
26167 | echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5 | |
26168 | echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6 | |
26169 | ||
26170 | fi | |
26171 | if test $ac_cv_header_GL_gl_h = yes; then | |
26172 | ||
26173 | found_gl=0 | |
26174 | ||
26175 | echo "$as_me:$LINENO: checking for -lGL" >&5 | |
26176 | echo $ECHO_N "checking for -lGL... $ECHO_C" >&6 | |
26177 | ||
26178 | ac_find_libraries= | |
26179 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26180 | do | |
26181 | for ac_extension in a so sl dylib; do | |
26182 | if test -f "$ac_dir/libGL.$ac_extension"; then | |
26183 | ac_find_libraries=$ac_dir | |
26184 | break 2 | |
26185 | fi | |
26186 | done | |
26187 | done | |
26188 | ||
26189 | if test "$ac_find_libraries" != "" ; then | |
26190 | ||
26191 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
26192 | result=$? | |
26193 | if test $result = 0; then | |
26194 | ac_path_to_link="" | |
26195 | else | |
26196 | ac_path_to_link=" -L$ac_find_libraries" | |
26197 | fi | |
26198 | ||
26199 | if test "$ac_path_to_link" != " -L/usr/lib" ; then | |
26200 | LDFLAGS_GL="$ac_path_to_link" | |
26201 | fi | |
26202 | ||
26203 | ||
26204 | ac_find_libraries= | |
26205 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26206 | do | |
26207 | for ac_extension in a so sl dylib; do | |
26208 | if test -f "$ac_dir/libGLU.$ac_extension"; then | |
26209 | ac_find_libraries=$ac_dir | |
26210 | break 2 | |
26211 | fi | |
26212 | done | |
26213 | done | |
26214 | ||
26215 | if test "$ac_find_libraries" != "" ; then | |
26216 | ||
26217 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
26218 | result=$? | |
26219 | if test $result = 0; then | |
26220 | ac_path_to_link="" | |
26221 | else | |
26222 | ac_path_to_link=" -L$ac_find_libraries" | |
26223 | fi | |
26224 | ||
26225 | if test "$ac_path_to_link" != " -L/usr/lib" -a \ | |
26226 | "$ac_path_to_link" != "$LDFLAGS_GL"; then | |
26227 | LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link" | |
26228 | fi | |
26229 | ||
26230 | found_gl=1 | |
26231 | OPENGL_LIBS="-lGL -lGLU" | |
26232 | echo "$as_me:$LINENO: result: yes" >&5 | |
26233 | echo "${ECHO_T}yes" >&6 | |
26234 | fi | |
26235 | fi | |
26236 | ||
26237 | if test "$found_gl" != 1; then | |
26238 | echo "$as_me:$LINENO: result: no" >&5 | |
26239 | echo "${ECHO_T}no" >&6 | |
26240 | echo "$as_me:$LINENO: checking for -lMesaGL" >&5 | |
26241 | echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6 | |
26242 | ||
26243 | ac_find_libraries= | |
26244 | for ac_dir in $SEARCH_LIB /usr/lib; | |
26245 | do | |
26246 | for ac_extension in a so sl dylib; do | |
26247 | if test -f "$ac_dir/libMesaGL.$ac_extension"; then | |
26248 | ac_find_libraries=$ac_dir | |
26249 | break 2 | |
26250 | fi | |
26251 | done | |
26252 | done | |
26253 | ||
26254 | if test "$ac_find_libraries" != "" ; then | |
26255 | ||
26256 | echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null | |
26257 | result=$? | |
26258 | if test $result = 0; then | |
26259 | ac_path_to_link="" | |
26260 | else | |
26261 | ac_path_to_link=" -L$ac_find_libraries" | |
26262 | fi | |
26263 | ||
26264 | LDFLAGS_GL="$LDFLAGS$ac_path_to_link" | |
26265 | OPENGL_LIBS="-lMesaGL -lMesaGLU" | |
26266 | echo "$as_me:$LINENO: result: yes" >&5 | |
26267 | echo "${ECHO_T}yes" >&6 | |
26268 | else | |
26269 | echo "$as_me:$LINENO: result: no" >&5 | |
26270 | echo "${ECHO_T}no" >&6 | |
26271 | fi | |
26272 | fi | |
26273 | ||
26274 | fi | |
26275 | ||
26276 | ||
26277 | ||
26278 | if test "x$OPENGL_LIBS" = "x"; then | |
26279 | { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5 | |
26280 | echo "$as_me: error: OpenGL libraries not available" >&2;} | |
26281 | { (exit 1); exit 1; }; } | |
26282 | fi | |
26283 | fi | |
26284 | ||
26285 | if test "$wxUSE_OPENGL" = "yes"; then | |
26286 | USE_OPENGL=1 | |
26287 | cat >>confdefs.h <<\_ACEOF | |
26288 | #define wxUSE_OPENGL 1 | |
26289 | _ACEOF | |
26290 | ||
26291 | cat >>confdefs.h <<\_ACEOF | |
26292 | #define wxUSE_GLCANVAS 1 | |
26293 | _ACEOF | |
26294 | ||
26295 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf" | |
26296 | fi | |
26297 | fi | |
26298 | ||
26299 | if test -z "$TOOLKIT_VPATH" ; then | |
26300 | TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}" | |
26301 | fi | |
26302 | ||
26303 | if test -n "$TOOLKIT" ; then | |
26304 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__" | |
26305 | fi | |
26306 | ||
26307 | UNICODE=0 | |
26308 | lib_unicode_suffix= | |
26309 | if test "$wxUSE_UNICODE" = "yes"; then | |
26310 | lib_unicode_suffix=u | |
26311 | UNICODE=1 | |
26312 | fi | |
26313 | ||
26314 | lib_debug_suffix= | |
26315 | DEBUG_FLAG=0 | |
26316 | if test "$wxUSE_DEBUG_FLAG" = "yes"; then | |
26317 | lib_debug_suffix=d | |
26318 | DEBUG_FLAG=1 | |
26319 | fi | |
26320 | ||
26321 | DEBUG_INFO=0 | |
26322 | if test "$wxUSE_DEBUG_INFO" = "yes"; then | |
26323 | DEBUG_INFO=1 | |
26324 | fi | |
26325 | ||
26326 | WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"` | |
26327 | ||
26328 | TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}" | |
26329 | TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}" | |
26330 | ||
26331 | if test "$cross_compiling" = "yes"; then | |
26332 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}" | |
26333 | TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}" | |
26334 | HOST_SUFFIX="-${host_alias}" | |
26335 | fi | |
26336 | ||
26337 | WX_LIBRARY="wx_${TOOLCHAIN_NAME}" | |
26338 | WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}" | |
26339 | WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}" | |
26340 | WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}" | |
26341 | ||
26342 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
26343 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}" | |
26344 | ||
26345 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}" | |
26346 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
26347 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}" | |
26348 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
26349 | ||
26350 | case "${host}" in | |
26351 | *-*-cygwin* | *-*-mingw32* ) | |
26352 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
26353 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
26354 | ;; | |
26355 | ||
26356 | *-*-darwin* ) | |
26357 | ||
26358 | WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
26359 | WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}.${SO_SUFFIX}" | |
26360 | ||
26361 | WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${WX_CURRENT}.${SO_SUFFIX}" | |
26362 | WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}" | |
26363 | WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${WX_CURRENT}.${SO_SUFFIX}" | |
26364 | WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}" | |
26365 | ||
26366 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then | |
26367 | WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.${WX_CURRENT}.r" | |
26368 | WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.${WX_CURRENT}.rsrc" | |
26369 | fi | |
26370 | ;; | |
26371 | esac | |
26372 | ||
26373 | WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a" | |
26374 | WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a" | |
26375 | ||
26376 | WXCONFIG_LIBS="-l${WX_LIBRARY}" | |
26377 | WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a" | |
26378 | ||
26379 | if test "$wxUSE_OPENGL" = "yes"; then | |
26380 | WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}" | |
26381 | WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}" | |
26382 | fi | |
26383 | ||
26384 | ||
26385 | ||
26386 | if test "$wxUSE_SHARED" = "yes"; then | |
26387 | case "${host}" in | |
26388 | *-pc-msdosdjgpp ) | |
26389 | wxUSE_SHARED=no | |
26390 | { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5 | |
26391 | echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;} | |
26392 | ;; | |
26393 | esac | |
26394 | fi | |
26395 | ||
26396 | SHARED=0 | |
26397 | if test "$wxUSE_SHARED" = "yes"; then | |
26398 | SHARED=1 | |
26399 | ||
26400 | ||
26401 | found_versioning=no | |
26402 | ||
26403 | ||
26404 | if test $found_versioning = no ; then | |
26405 | echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5 | |
26406 | echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6 | |
26407 | if test "${wx_cv_version_script+set}" = set; then | |
26408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26409 | else | |
26410 | ||
26411 | echo "VER_1 { *; };" >conftest.sym | |
26412 | echo "int main() { return 0; }" >conftest.cpp | |
26413 | ||
26414 | if { ac_try=' | |
26415 | $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp | |
26416 | -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr' | |
26417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
26418 | (eval $ac_try) 2>&5 | |
26419 | ac_status=$? | |
26420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26421 | (exit $ac_status); }; } ; then | |
26422 | if test -s conftest.stderr ; then | |
26423 | wx_cv_version_script=no | |
26424 | else | |
26425 | wx_cv_version_script=yes | |
26426 | fi | |
26427 | else | |
26428 | wx_cv_version_script=no | |
26429 | fi | |
26430 | rm -f conftest.output conftest.stderr conftest.sym conftest.cpp | |
26431 | ||
26432 | fi | |
26433 | echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5 | |
26434 | echo "${ECHO_T}$wx_cv_version_script" >&6 | |
26435 | if test $wx_cv_version_script = yes ; then | |
26436 | LDFLAGS_VERSIONING="-Wl,--version-script,\$(top_builddir)version-script" | |
26437 | fi | |
26438 | fi | |
26439 | ||
26440 | ||
26441 | case "${host}" in | |
26442 | *-*-linux* | *-*-gnu* ) | |
26443 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
26444 | ;; | |
26445 | ||
26446 | *-*-solaris2* ) | |
26447 | if test "$GCC" = yes ; then | |
26448 | CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include" | |
26449 | ||
26450 | saveLdflags="$LDFLAGS" | |
26451 | LDFLAGS="$saveLdflags -Wl,-rpath,/" | |
26452 | echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5 | |
26453 | echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6 | |
26454 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 26455 | #line $LINENO "configure" |
a848cd7e SC |
26456 | /* confdefs.h. */ |
26457 | _ACEOF | |
26458 | cat confdefs.h >>conftest.$ac_ext | |
26459 | cat >>conftest.$ac_ext <<_ACEOF | |
26460 | /* end confdefs.h. */ | |
26461 | ||
26462 | int | |
26463 | main () | |
26464 | { | |
26465 | ||
26466 | ; | |
26467 | return 0; | |
26468 | } | |
26469 | _ACEOF | |
26470 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26471 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 26472 | (eval $ac_link) 2>&5 |
a848cd7e | 26473 | ac_status=$? |
a848cd7e SC |
26474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26475 | (exit $ac_status); } && | |
8a7b1113 | 26476 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
26477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26478 | (eval $ac_try) 2>&5 | |
26479 | ac_status=$? | |
26480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26481 | (exit $ac_status); }; }; then | |
26482 | ||
26483 | echo "$as_me:$LINENO: result: yes" >&5 | |
26484 | echo "${ECHO_T}yes" >&6 | |
26485 | SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(top_builddir)lib" | |
26486 | ||
26487 | else | |
26488 | echo "$as_me: failed program was:" >&5 | |
26489 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26490 | ||
26491 | ||
26492 | echo "$as_me:$LINENO: result: no" >&5 | |
26493 | echo "${ECHO_T}no" >&6 | |
26494 | echo "$as_me:$LINENO: checking if the linker accepts -R" >&5 | |
26495 | echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6 | |
26496 | LDFLAGS="$saveLdflags -Wl,-R,/" | |
26497 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 26498 | #line $LINENO "configure" |
a848cd7e SC |
26499 | /* confdefs.h. */ |
26500 | _ACEOF | |
26501 | cat confdefs.h >>conftest.$ac_ext | |
26502 | cat >>conftest.$ac_ext <<_ACEOF | |
26503 | /* end confdefs.h. */ | |
26504 | ||
26505 | int | |
26506 | main () | |
26507 | { | |
26508 | ||
26509 | ; | |
26510 | return 0; | |
26511 | } | |
26512 | _ACEOF | |
26513 | rm -f conftest.$ac_objext conftest$ac_exeext | |
26514 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 26515 | (eval $ac_link) 2>&5 |
a848cd7e | 26516 | ac_status=$? |
a848cd7e SC |
26517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26518 | (exit $ac_status); } && | |
8a7b1113 | 26519 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
26520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26521 | (eval $ac_try) 2>&5 | |
26522 | ac_status=$? | |
26523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26524 | (exit $ac_status); }; }; then | |
26525 | ||
26526 | echo "$as_me:$LINENO: result: yes" >&5 | |
26527 | echo "${ECHO_T}yes" >&6 | |
26528 | SAMPLES_RPATH_FLAG="-Wl,-R,\$(top_builddir)lib" | |
26529 | else | |
26530 | echo "$as_me: failed program was:" >&5 | |
26531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26532 | ||
26533 | ||
26534 | echo "$as_me:$LINENO: result: no" >&5 | |
26535 | echo "${ECHO_T}no" >&6 | |
26536 | ||
26537 | fi | |
8a7b1113 | 26538 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
26539 | |
26540 | fi | |
8a7b1113 | 26541 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
26542 | LDFLAGS="$saveLdflags" |
26543 | else | |
26544 | SHARED_LD="${CXX} -G -o" | |
26545 | PIC_FLAG="-KPIC" | |
26546 | SAMPLES_RPATH_FLAG="-R\$(top_builddir)lib" | |
26547 | fi | |
26548 | ;; | |
26549 | ||
26550 | powerpc-*-darwin* ) | |
26551 | SAMPLES_RPATH_POSTLINK="\$(top_builddir)change-install-names \$(LIBDIRNAME) \$(prefix) \$@" | |
26552 | cat <<EOF >change-install-names | |
26553 | #!/bin/sh | |
26554 | libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\` | |
26555 | inst_cmd="install_name_tool " | |
26556 | for i in \${libnames} ; do | |
26557 | inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}" | |
26558 | done | |
26559 | \${inst_cmd} \${3} | |
26560 | EOF | |
26561 | chmod +x change-install-names | |
26562 | ;; | |
26563 | ||
26564 | *-*-cygwin* | *-*-mingw32* ) | |
26565 | TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1" | |
26566 | ;; | |
26567 | ||
26568 | esac | |
26569 | ||
26570 | if test "x$WX_TARGET_LIBRARY" = "x"; then | |
26571 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}" | |
26572 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}" | |
26573 | fi | |
26574 | ||
26575 | WX_TARGET_LIBRARY_TYPE="so" | |
26576 | INSTALL_LIBRARY='$(INSTALL_PROGRAM)' | |
26577 | fi | |
26578 | ||
26579 | if test "$wxUSE_SHARED" = "no"; then | |
26580 | ||
26581 | if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then | |
26582 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
26583 | fi | |
26584 | ||
26585 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
26586 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall" | |
26587 | fi | |
26588 | ||
26589 | if test "$wxUSE_OPENGL" = "yes"; then | |
26590 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl" | |
26591 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}" | |
26592 | else | |
26593 | WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}" | |
26594 | fi | |
26595 | ||
26596 | WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}" | |
26597 | WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}" | |
26598 | ||
26599 | WX_TARGET_LIBRARY_TYPE="a" | |
26600 | INSTALL_LIBRARY='$(INSTALL_DATA)' | |
26601 | ||
26602 | STATIC_FLAG="yes" | |
26603 | else | |
26604 | STATIC_FLAG="no" | |
26605 | fi | |
26606 | ||
26607 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then | |
26608 | LIBWXMACRES="\$(top_builddir)lib/${WX_RESOURCES_MACOSX_ASCII}" | |
26609 | WX_ALL="${WX_ALL} ${LIBWXMACRES}" | |
26610 | WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res" | |
26611 | ||
26612 | # Extract the first word of "Rez", so it can be a program name with args. | |
26613 | set dummy Rez; ac_word=$2 | |
26614 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26615 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26616 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
26617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26618 | else | |
26619 | if test -n "$RESCOMP"; then | |
26620 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
26621 | else | |
26622 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26623 | for as_dir in $PATH | |
26624 | do | |
26625 | IFS=$as_save_IFS | |
26626 | test -z "$as_dir" && as_dir=. | |
26627 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26628 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26629 | ac_cv_prog_RESCOMP="Rez" | |
26630 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26631 | break 2 | |
26632 | fi | |
26633 | done | |
26634 | done | |
26635 | ||
26636 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
26637 | fi | |
26638 | fi | |
26639 | RESCOMP=$ac_cv_prog_RESCOMP | |
26640 | if test -n "$RESCOMP"; then | |
26641 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
26642 | echo "${ECHO_T}$RESCOMP" >&6 | |
26643 | else | |
26644 | echo "$as_me:$LINENO: result: no" >&5 | |
26645 | echo "${ECHO_T}no" >&6 | |
26646 | fi | |
26647 | ||
26648 | # Extract the first word of "DeRez", so it can be a program name with args. | |
26649 | set dummy DeRez; ac_word=$2 | |
26650 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26652 | if test "${ac_cv_prog_DEREZ+set}" = set; then | |
26653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26654 | else | |
26655 | if test -n "$DEREZ"; then | |
26656 | ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test. | |
26657 | else | |
26658 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26659 | for as_dir in $PATH | |
26660 | do | |
26661 | IFS=$as_save_IFS | |
26662 | test -z "$as_dir" && as_dir=. | |
26663 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26664 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26665 | ac_cv_prog_DEREZ="DeRez" | |
26666 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26667 | break 2 | |
26668 | fi | |
26669 | done | |
26670 | done | |
26671 | ||
26672 | test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez" | |
26673 | fi | |
26674 | fi | |
26675 | DEREZ=$ac_cv_prog_DEREZ | |
26676 | if test -n "$DEREZ"; then | |
26677 | echo "$as_me:$LINENO: result: $DEREZ" >&5 | |
26678 | echo "${ECHO_T}$DEREZ" >&6 | |
26679 | else | |
26680 | echo "$as_me:$LINENO: result: no" >&5 | |
26681 | echo "${ECHO_T}no" >&6 | |
26682 | fi | |
26683 | ||
26684 | # Extract the first word of "SetFile", so it can be a program name with args. | |
26685 | set dummy SetFile; ac_word=$2 | |
26686 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
26687 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
26688 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
26689 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26690 | else | |
26691 | if test -n "$SETFILE"; then | |
26692 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
26693 | else | |
26694 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
26695 | for as_dir in $PATH | |
26696 | do | |
26697 | IFS=$as_save_IFS | |
26698 | test -z "$as_dir" && as_dir=. | |
26699 | for ac_exec_ext in '' $ac_executable_extensions; do | |
26700 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
26701 | ac_cv_prog_SETFILE="SetFile" | |
26702 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
26703 | break 2 | |
26704 | fi | |
26705 | done | |
26706 | done | |
26707 | ||
26708 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
26709 | fi | |
26710 | fi | |
26711 | SETFILE=$ac_cv_prog_SETFILE | |
26712 | if test -n "$SETFILE"; then | |
26713 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
26714 | echo "${ECHO_T}$SETFILE" >&6 | |
26715 | else | |
26716 | echo "$as_me:$LINENO: result: no" >&5 | |
26717 | echo "${ECHO_T}no" >&6 | |
26718 | fi | |
26719 | ||
26720 | ||
26721 | MACSETFILE="\$(SETFILE)" | |
26722 | ||
26723 | if test "$wxUSE_MAC" = 1; then | |
26724 | MACRESCOMP="\$(RESCOMP) -d __DARWIN__ -t APPL Carbon.r ${LIBWXMACRES} -o" | |
26725 | ||
26726 | MACRESWXCONFIG="${RESCOMP} -d __DARWIN__ -t APPL Carbon.r \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
26727 | else | |
26728 | MACRESCOMP="echo -n | \$(RESCOMP) -d __DARWIN__ -t APPL ${LIBWXMACRES} -o" | |
26729 | MACRESWXCONFIG="echo -n \\\| ${RESCOMP} -d __DARWIN__ -t APPL \\\${exec_prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o" | |
26730 | fi | |
26731 | else | |
26732 | MACSETFILE="@#" | |
26733 | MACRESWXCONFIG="#" | |
26734 | ||
26735 | if test "$wxUSE_PM" = 1; then | |
26736 | MACRESCOMP="emxbind -ep" | |
26737 | else | |
26738 | MACRESCOMP="@#" | |
26739 | fi | |
26740 | fi | |
26741 | ||
26742 | ||
26743 | ||
26744 | echo "$as_me:$LINENO: checking for mode_t" >&5 | |
26745 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
26746 | if test "${ac_cv_type_mode_t+set}" = set; then | |
26747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26748 | else | |
26749 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 26750 | #line $LINENO "configure" |
a848cd7e SC |
26751 | /* confdefs.h. */ |
26752 | _ACEOF | |
26753 | cat confdefs.h >>conftest.$ac_ext | |
26754 | cat >>conftest.$ac_ext <<_ACEOF | |
26755 | /* end confdefs.h. */ | |
26756 | $ac_includes_default | |
26757 | int | |
26758 | main () | |
26759 | { | |
26760 | if ((mode_t *) 0) | |
26761 | return 0; | |
26762 | if (sizeof (mode_t)) | |
26763 | return 0; | |
26764 | ; | |
26765 | return 0; | |
26766 | } | |
26767 | _ACEOF | |
26768 | rm -f conftest.$ac_objext | |
26769 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 26770 | (eval $ac_compile) 2>&5 |
a848cd7e | 26771 | ac_status=$? |
a848cd7e SC |
26772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26773 | (exit $ac_status); } && | |
8a7b1113 | 26774 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26775 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26776 | (eval $ac_try) 2>&5 | |
26777 | ac_status=$? | |
26778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26779 | (exit $ac_status); }; }; then | |
26780 | ac_cv_type_mode_t=yes | |
26781 | else | |
26782 | echo "$as_me: failed program was:" >&5 | |
26783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26784 | ||
26785 | ac_cv_type_mode_t=no | |
26786 | fi | |
8a7b1113 | 26787 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26788 | fi |
26789 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 | |
26790 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
26791 | if test $ac_cv_type_mode_t = yes; then | |
26792 | : | |
26793 | else | |
26794 | ||
26795 | cat >>confdefs.h <<_ACEOF | |
26796 | #define mode_t int | |
26797 | _ACEOF | |
26798 | ||
26799 | fi | |
26800 | ||
26801 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
26802 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
26803 | if test "${ac_cv_type_off_t+set}" = set; then | |
26804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26805 | else | |
26806 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 26807 | #line $LINENO "configure" |
a848cd7e SC |
26808 | /* confdefs.h. */ |
26809 | _ACEOF | |
26810 | cat confdefs.h >>conftest.$ac_ext | |
26811 | cat >>conftest.$ac_ext <<_ACEOF | |
26812 | /* end confdefs.h. */ | |
26813 | $ac_includes_default | |
26814 | int | |
26815 | main () | |
26816 | { | |
26817 | if ((off_t *) 0) | |
26818 | return 0; | |
26819 | if (sizeof (off_t)) | |
26820 | return 0; | |
26821 | ; | |
26822 | return 0; | |
26823 | } | |
26824 | _ACEOF | |
26825 | rm -f conftest.$ac_objext | |
26826 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 26827 | (eval $ac_compile) 2>&5 |
a848cd7e | 26828 | ac_status=$? |
a848cd7e SC |
26829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26830 | (exit $ac_status); } && | |
8a7b1113 | 26831 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26833 | (eval $ac_try) 2>&5 | |
26834 | ac_status=$? | |
26835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26836 | (exit $ac_status); }; }; then | |
26837 | ac_cv_type_off_t=yes | |
26838 | else | |
26839 | echo "$as_me: failed program was:" >&5 | |
26840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26841 | ||
26842 | ac_cv_type_off_t=no | |
26843 | fi | |
8a7b1113 | 26844 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26845 | fi |
26846 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
26847 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
26848 | if test $ac_cv_type_off_t = yes; then | |
26849 | : | |
26850 | else | |
26851 | ||
26852 | cat >>confdefs.h <<_ACEOF | |
26853 | #define off_t long | |
26854 | _ACEOF | |
26855 | ||
26856 | fi | |
26857 | ||
26858 | echo "$as_me:$LINENO: checking for pid_t" >&5 | |
26859 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
26860 | if test "${ac_cv_type_pid_t+set}" = set; then | |
26861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26862 | else | |
26863 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 26864 | #line $LINENO "configure" |
a848cd7e SC |
26865 | /* confdefs.h. */ |
26866 | _ACEOF | |
26867 | cat confdefs.h >>conftest.$ac_ext | |
26868 | cat >>conftest.$ac_ext <<_ACEOF | |
26869 | /* end confdefs.h. */ | |
26870 | $ac_includes_default | |
26871 | int | |
26872 | main () | |
26873 | { | |
26874 | if ((pid_t *) 0) | |
26875 | return 0; | |
26876 | if (sizeof (pid_t)) | |
26877 | return 0; | |
26878 | ; | |
26879 | return 0; | |
26880 | } | |
26881 | _ACEOF | |
26882 | rm -f conftest.$ac_objext | |
26883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 26884 | (eval $ac_compile) 2>&5 |
a848cd7e | 26885 | ac_status=$? |
a848cd7e SC |
26886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26887 | (exit $ac_status); } && | |
8a7b1113 | 26888 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26890 | (eval $ac_try) 2>&5 | |
26891 | ac_status=$? | |
26892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26893 | (exit $ac_status); }; }; then | |
26894 | ac_cv_type_pid_t=yes | |
26895 | else | |
26896 | echo "$as_me: failed program was:" >&5 | |
26897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26898 | ||
26899 | ac_cv_type_pid_t=no | |
26900 | fi | |
8a7b1113 | 26901 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26902 | fi |
26903 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 | |
26904 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
26905 | if test $ac_cv_type_pid_t = yes; then | |
26906 | : | |
26907 | else | |
26908 | ||
26909 | cat >>confdefs.h <<_ACEOF | |
26910 | #define pid_t int | |
26911 | _ACEOF | |
26912 | ||
26913 | fi | |
26914 | ||
26915 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
26916 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
26917 | if test "${ac_cv_type_size_t+set}" = set; then | |
26918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26919 | else | |
26920 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 26921 | #line $LINENO "configure" |
a848cd7e SC |
26922 | /* confdefs.h. */ |
26923 | _ACEOF | |
26924 | cat confdefs.h >>conftest.$ac_ext | |
26925 | cat >>conftest.$ac_ext <<_ACEOF | |
26926 | /* end confdefs.h. */ | |
26927 | $ac_includes_default | |
26928 | int | |
26929 | main () | |
26930 | { | |
26931 | if ((size_t *) 0) | |
26932 | return 0; | |
26933 | if (sizeof (size_t)) | |
26934 | return 0; | |
26935 | ; | |
26936 | return 0; | |
26937 | } | |
26938 | _ACEOF | |
26939 | rm -f conftest.$ac_objext | |
26940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 26941 | (eval $ac_compile) 2>&5 |
a848cd7e | 26942 | ac_status=$? |
a848cd7e SC |
26943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
26944 | (exit $ac_status); } && | |
8a7b1113 | 26945 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
26946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
26947 | (eval $ac_try) 2>&5 | |
26948 | ac_status=$? | |
26949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
26950 | (exit $ac_status); }; }; then | |
26951 | ac_cv_type_size_t=yes | |
26952 | else | |
26953 | echo "$as_me: failed program was:" >&5 | |
26954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
26955 | ||
26956 | ac_cv_type_size_t=no | |
26957 | fi | |
8a7b1113 | 26958 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
26959 | fi |
26960 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
26961 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
26962 | if test $ac_cv_type_size_t = yes; then | |
26963 | : | |
26964 | else | |
26965 | ||
26966 | cat >>confdefs.h <<_ACEOF | |
26967 | #define size_t unsigned | |
26968 | _ACEOF | |
26969 | ||
26970 | fi | |
26971 | ||
26972 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 | |
26973 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
26974 | if test "${ac_cv_type_uid_t+set}" = set; then | |
26975 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
26976 | else | |
26977 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 26978 | #line $LINENO "configure" |
a848cd7e SC |
26979 | /* confdefs.h. */ |
26980 | _ACEOF | |
26981 | cat confdefs.h >>conftest.$ac_ext | |
26982 | cat >>conftest.$ac_ext <<_ACEOF | |
26983 | /* end confdefs.h. */ | |
26984 | #include <sys/types.h> | |
26985 | ||
26986 | _ACEOF | |
26987 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
26988 | $EGREP "uid_t" >/dev/null 2>&1; then | |
26989 | ac_cv_type_uid_t=yes | |
26990 | else | |
26991 | ac_cv_type_uid_t=no | |
26992 | fi | |
26993 | rm -f conftest* | |
26994 | ||
26995 | fi | |
26996 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 | |
26997 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
26998 | if test $ac_cv_type_uid_t = no; then | |
26999 | ||
27000 | cat >>confdefs.h <<\_ACEOF | |
27001 | #define uid_t int | |
27002 | _ACEOF | |
27003 | ||
27004 | ||
27005 | cat >>confdefs.h <<\_ACEOF | |
27006 | #define gid_t int | |
27007 | _ACEOF | |
27008 | ||
27009 | fi | |
27010 | ||
27011 | ||
27012 | ||
27013 | ||
27014 | ac_ext=cc | |
27015 | ac_cpp='$CXXCPP $CPPFLAGS' | |
27016 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27017 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27018 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27019 | ||
27020 | echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5 | |
27021 | echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6 | |
27022 | if test "${wx_cv_size_t_is_uint+set}" = set; then | |
27023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27024 | else | |
27025 | ||
27026 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27027 | #line $LINENO "configure" |
a848cd7e SC |
27028 | /* confdefs.h. */ |
27029 | _ACEOF | |
27030 | cat confdefs.h >>conftest.$ac_ext | |
27031 | cat >>conftest.$ac_ext <<_ACEOF | |
27032 | /* end confdefs.h. */ | |
27033 | #include <stddef.h> | |
27034 | int | |
27035 | main () | |
27036 | { | |
27037 | ||
27038 | return 0; } | |
27039 | ||
27040 | struct Foo { void foo(size_t); void foo(unsigned int); }; | |
27041 | ||
27042 | int bar() { | |
27043 | ||
27044 | ; | |
27045 | return 0; | |
27046 | } | |
27047 | _ACEOF | |
27048 | rm -f conftest.$ac_objext | |
27049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 27050 | (eval $ac_compile) 2>&5 |
a848cd7e | 27051 | ac_status=$? |
a848cd7e SC |
27052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27053 | (exit $ac_status); } && | |
8a7b1113 | 27054 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27055 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27056 | (eval $ac_try) 2>&5 | |
27057 | ac_status=$? | |
27058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27059 | (exit $ac_status); }; }; then | |
27060 | wx_cv_size_t_is_uint=no | |
27061 | else | |
27062 | echo "$as_me: failed program was:" >&5 | |
27063 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27064 | ||
27065 | wx_cv_size_t_is_uint=yes | |
27066 | ||
27067 | fi | |
8a7b1113 | 27068 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27069 | |
27070 | ||
27071 | fi | |
27072 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5 | |
27073 | echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6 | |
27074 | ||
27075 | if test "$wx_cv_size_t_is_uint" = "yes"; then | |
27076 | cat >>confdefs.h <<\_ACEOF | |
27077 | #define wxSIZE_T_IS_UINT 1 | |
27078 | _ACEOF | |
27079 | ||
27080 | else | |
27081 | echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5 | |
27082 | echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6 | |
27083 | if test "${wx_cv_size_t_is_ulong+set}" = set; then | |
27084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27085 | else | |
27086 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27087 | #line $LINENO "configure" |
a848cd7e SC |
27088 | /* confdefs.h. */ |
27089 | _ACEOF | |
27090 | cat confdefs.h >>conftest.$ac_ext | |
27091 | cat >>conftest.$ac_ext <<_ACEOF | |
27092 | /* end confdefs.h. */ | |
27093 | #include <stddef.h> | |
27094 | int | |
27095 | main () | |
27096 | { | |
27097 | ||
27098 | return 0; } | |
27099 | ||
27100 | struct Foo { void foo(size_t); void foo(unsigned long); }; | |
27101 | ||
27102 | int bar() { | |
27103 | ||
27104 | ; | |
27105 | return 0; | |
27106 | } | |
27107 | _ACEOF | |
27108 | rm -f conftest.$ac_objext | |
27109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 27110 | (eval $ac_compile) 2>&5 |
a848cd7e | 27111 | ac_status=$? |
a848cd7e SC |
27112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27113 | (exit $ac_status); } && | |
8a7b1113 | 27114 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27116 | (eval $ac_try) 2>&5 | |
27117 | ac_status=$? | |
27118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27119 | (exit $ac_status); }; }; then | |
27120 | wx_cv_size_t_is_ulong=no | |
27121 | else | |
27122 | echo "$as_me: failed program was:" >&5 | |
27123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27124 | ||
27125 | wx_cv_size_t_is_ulong=yes | |
27126 | ||
27127 | fi | |
8a7b1113 | 27128 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27129 | |
27130 | fi | |
27131 | echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5 | |
27132 | echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6 | |
27133 | ||
27134 | if test "$wx_cv_size_t_is_ulong" = "yes"; then | |
27135 | cat >>confdefs.h <<\_ACEOF | |
27136 | #define wxSIZE_T_IS_ULONG 1 | |
27137 | _ACEOF | |
27138 | ||
27139 | fi | |
27140 | fi | |
27141 | ||
27142 | ac_ext=c | |
27143 | ac_cpp='$CPP $CPPFLAGS' | |
27144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
27147 | ||
27148 | ||
27149 | ||
27150 | echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5 | |
27151 | echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6 | |
27152 | if test "${wx_cv_struct_pw_gecos+set}" = set; then | |
27153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27154 | else | |
27155 | ||
27156 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27157 | #line $LINENO "configure" |
a848cd7e SC |
27158 | /* confdefs.h. */ |
27159 | _ACEOF | |
27160 | cat confdefs.h >>conftest.$ac_ext | |
27161 | cat >>conftest.$ac_ext <<_ACEOF | |
27162 | /* end confdefs.h. */ | |
27163 | #include <pwd.h> | |
27164 | int | |
27165 | main () | |
27166 | { | |
27167 | ||
27168 | char *p; | |
27169 | struct passwd *pw; | |
27170 | p = pw->pw_gecos; | |
27171 | ||
27172 | ; | |
27173 | return 0; | |
27174 | } | |
27175 | _ACEOF | |
27176 | rm -f conftest.$ac_objext | |
27177 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 27178 | (eval $ac_compile) 2>&5 |
a848cd7e | 27179 | ac_status=$? |
a848cd7e SC |
27180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27181 | (exit $ac_status); } && | |
8a7b1113 | 27182 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27184 | (eval $ac_try) 2>&5 | |
27185 | ac_status=$? | |
27186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27187 | (exit $ac_status); }; }; then | |
27188 | ||
27189 | wx_cv_struct_pw_gecos=yes | |
27190 | ||
27191 | else | |
27192 | echo "$as_me: failed program was:" >&5 | |
27193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27194 | ||
27195 | ||
27196 | wx_cv_struct_pw_gecos=no | |
27197 | ||
27198 | ||
27199 | fi | |
8a7b1113 | 27200 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27201 | |
27202 | ||
27203 | fi | |
27204 | echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5 | |
27205 | echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6 | |
27206 | ||
27207 | if test "$wx_cv_struct_pw_gecos" = "yes"; then | |
27208 | cat >>confdefs.h <<\_ACEOF | |
27209 | #define HAVE_PW_GECOS 1 | |
27210 | _ACEOF | |
27211 | ||
27212 | fi | |
27213 | ||
27214 | ||
27215 | if test "$wx_cv_sizeof_wchar_t" != "0"; then | |
27216 | cat >>confdefs.h <<\_ACEOF | |
27217 | #define wxUSE_WCHAR_T 1 | |
27218 | _ACEOF | |
27219 | ||
27220 | ||
27221 | WCSLEN_FOUND=0 | |
27222 | WCHAR_LINK= | |
27223 | ||
27224 | for ac_func in wcslen | |
27225 | do | |
27226 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27227 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27228 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27229 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27231 | else | |
27232 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27233 | #line $LINENO "configure" |
a848cd7e SC |
27234 | /* confdefs.h. */ |
27235 | _ACEOF | |
27236 | cat confdefs.h >>conftest.$ac_ext | |
27237 | cat >>conftest.$ac_ext <<_ACEOF | |
27238 | /* end confdefs.h. */ | |
a848cd7e SC |
27239 | /* System header to define __stub macros and hopefully few prototypes, |
27240 | which can conflict with char $ac_func (); below. | |
27241 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27242 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
27243 | #ifdef __STDC__ |
27244 | # include <limits.h> | |
27245 | #else | |
27246 | # include <assert.h> | |
27247 | #endif | |
a848cd7e SC |
27248 | /* Override any gcc2 internal prototype to avoid an error. */ |
27249 | #ifdef __cplusplus | |
27250 | extern "C" | |
27251 | { | |
27252 | #endif | |
27253 | /* We use char because int might match the return type of a gcc2 | |
27254 | builtin and then its argument prototype would still apply. */ | |
27255 | char $ac_func (); | |
27256 | /* The GNU C library defines this for functions which it implements | |
27257 | to always fail with ENOSYS. Some functions are actually named | |
27258 | something starting with __ and the normal name is an alias. */ | |
27259 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27260 | choke me | |
27261 | #else | |
27262 | char (*f) () = $ac_func; | |
27263 | #endif | |
27264 | #ifdef __cplusplus | |
27265 | } | |
27266 | #endif | |
27267 | ||
27268 | int | |
27269 | main () | |
27270 | { | |
27271 | return f != $ac_func; | |
27272 | ; | |
27273 | return 0; | |
27274 | } | |
27275 | _ACEOF | |
27276 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27277 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 27278 | (eval $ac_link) 2>&5 |
a848cd7e | 27279 | ac_status=$? |
a848cd7e SC |
27280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27281 | (exit $ac_status); } && | |
8a7b1113 | 27282 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
27283 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27284 | (eval $ac_try) 2>&5 | |
27285 | ac_status=$? | |
27286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27287 | (exit $ac_status); }; }; then | |
27288 | eval "$as_ac_var=yes" | |
27289 | else | |
27290 | echo "$as_me: failed program was:" >&5 | |
27291 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27292 | ||
27293 | eval "$as_ac_var=no" | |
27294 | fi | |
8a7b1113 | 27295 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
27296 | fi |
27297 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27298 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27299 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27300 | cat >>confdefs.h <<_ACEOF | |
27301 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27302 | _ACEOF | |
27303 | WCSLEN_FOUND=1 | |
27304 | fi | |
27305 | done | |
27306 | ||
27307 | ||
27308 | if test "$WCSLEN_FOUND" = 0; then | |
27309 | if test "$TOOLKIT" = "MSW"; then | |
27310 | echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5 | |
27311 | echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6 | |
27312 | if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then | |
27313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27314 | else | |
27315 | ac_check_lib_save_LIBS=$LIBS | |
27316 | LIBS="-lmsvcrt $LIBS" | |
27317 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27318 | #line $LINENO "configure" |
a848cd7e SC |
27319 | /* confdefs.h. */ |
27320 | _ACEOF | |
27321 | cat confdefs.h >>conftest.$ac_ext | |
27322 | cat >>conftest.$ac_ext <<_ACEOF | |
27323 | /* end confdefs.h. */ | |
27324 | ||
27325 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27326 | #ifdef __cplusplus | |
27327 | extern "C" | |
27328 | #endif | |
27329 | /* We use char because int might match the return type of a gcc2 | |
27330 | builtin and then its argument prototype would still apply. */ | |
27331 | char wcslen (); | |
27332 | int | |
27333 | main () | |
27334 | { | |
27335 | wcslen (); | |
27336 | ; | |
27337 | return 0; | |
27338 | } | |
27339 | _ACEOF | |
27340 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27341 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 27342 | (eval $ac_link) 2>&5 |
a848cd7e | 27343 | ac_status=$? |
a848cd7e SC |
27344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27345 | (exit $ac_status); } && | |
8a7b1113 | 27346 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
27347 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27348 | (eval $ac_try) 2>&5 | |
27349 | ac_status=$? | |
27350 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27351 | (exit $ac_status); }; }; then | |
27352 | ac_cv_lib_msvcrt_wcslen=yes | |
27353 | else | |
27354 | echo "$as_me: failed program was:" >&5 | |
27355 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27356 | ||
27357 | ac_cv_lib_msvcrt_wcslen=no | |
27358 | fi | |
8a7b1113 | 27359 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
27360 | LIBS=$ac_check_lib_save_LIBS |
27361 | fi | |
27362 | echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5 | |
27363 | echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6 | |
27364 | if test $ac_cv_lib_msvcrt_wcslen = yes; then | |
27365 | WCHAR_OK=1 | |
27366 | fi | |
27367 | ||
27368 | else | |
27369 | echo "$as_me:$LINENO: checking for wcslen in -lw" >&5 | |
27370 | echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6 | |
27371 | if test "${ac_cv_lib_w_wcslen+set}" = set; then | |
27372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27373 | else | |
27374 | ac_check_lib_save_LIBS=$LIBS | |
27375 | LIBS="-lw $LIBS" | |
27376 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27377 | #line $LINENO "configure" |
a848cd7e SC |
27378 | /* confdefs.h. */ |
27379 | _ACEOF | |
27380 | cat confdefs.h >>conftest.$ac_ext | |
27381 | cat >>conftest.$ac_ext <<_ACEOF | |
27382 | /* end confdefs.h. */ | |
27383 | ||
27384 | /* Override any gcc2 internal prototype to avoid an error. */ | |
27385 | #ifdef __cplusplus | |
27386 | extern "C" | |
27387 | #endif | |
27388 | /* We use char because int might match the return type of a gcc2 | |
27389 | builtin and then its argument prototype would still apply. */ | |
27390 | char wcslen (); | |
27391 | int | |
27392 | main () | |
27393 | { | |
27394 | wcslen (); | |
27395 | ; | |
27396 | return 0; | |
27397 | } | |
27398 | _ACEOF | |
27399 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27400 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 27401 | (eval $ac_link) 2>&5 |
a848cd7e | 27402 | ac_status=$? |
a848cd7e SC |
27403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27404 | (exit $ac_status); } && | |
8a7b1113 | 27405 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
27406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27407 | (eval $ac_try) 2>&5 | |
27408 | ac_status=$? | |
27409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27410 | (exit $ac_status); }; }; then | |
27411 | ac_cv_lib_w_wcslen=yes | |
27412 | else | |
27413 | echo "$as_me: failed program was:" >&5 | |
27414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27415 | ||
27416 | ac_cv_lib_w_wcslen=no | |
27417 | fi | |
8a7b1113 | 27418 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
27419 | LIBS=$ac_check_lib_save_LIBS |
27420 | fi | |
27421 | echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5 | |
27422 | echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6 | |
27423 | if test $ac_cv_lib_w_wcslen = yes; then | |
27424 | ||
27425 | WCHAR_LINK=" -lw" | |
27426 | WCSLEN_FOUND=1 | |
27427 | ||
27428 | fi | |
27429 | ||
27430 | fi | |
27431 | fi | |
27432 | ||
27433 | if test "$WCSLEN_FOUND" = 1; then | |
27434 | cat >>confdefs.h <<\_ACEOF | |
27435 | #define HAVE_WCSLEN 1 | |
27436 | _ACEOF | |
27437 | ||
27438 | fi | |
27439 | ||
473276a9 VS |
27440 | if test "$USE_HPUX" = 1 -a "x$GCC" != "xyes"; then |
27441 | CPPFLAGS="$CPPFLAGS -D_INCLUDE__STDC_A1_SOURCE " | |
27442 | fi | |
27443 | ||
a848cd7e SC |
27444 | |
27445 | for ac_func in wcsrtombs | |
27446 | do | |
27447 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27448 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27449 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27450 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27452 | else | |
27453 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27454 | #line $LINENO "configure" |
a848cd7e SC |
27455 | /* confdefs.h. */ |
27456 | _ACEOF | |
27457 | cat confdefs.h >>conftest.$ac_ext | |
27458 | cat >>conftest.$ac_ext <<_ACEOF | |
27459 | /* end confdefs.h. */ | |
a848cd7e SC |
27460 | /* System header to define __stub macros and hopefully few prototypes, |
27461 | which can conflict with char $ac_func (); below. | |
27462 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27463 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
27464 | #ifdef __STDC__ |
27465 | # include <limits.h> | |
27466 | #else | |
27467 | # include <assert.h> | |
27468 | #endif | |
a848cd7e SC |
27469 | /* Override any gcc2 internal prototype to avoid an error. */ |
27470 | #ifdef __cplusplus | |
27471 | extern "C" | |
27472 | { | |
27473 | #endif | |
27474 | /* We use char because int might match the return type of a gcc2 | |
27475 | builtin and then its argument prototype would still apply. */ | |
27476 | char $ac_func (); | |
27477 | /* The GNU C library defines this for functions which it implements | |
27478 | to always fail with ENOSYS. Some functions are actually named | |
27479 | something starting with __ and the normal name is an alias. */ | |
27480 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27481 | choke me | |
27482 | #else | |
27483 | char (*f) () = $ac_func; | |
27484 | #endif | |
27485 | #ifdef __cplusplus | |
27486 | } | |
27487 | #endif | |
27488 | ||
27489 | int | |
27490 | main () | |
27491 | { | |
27492 | return f != $ac_func; | |
27493 | ; | |
27494 | return 0; | |
27495 | } | |
27496 | _ACEOF | |
27497 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27498 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 27499 | (eval $ac_link) 2>&5 |
a848cd7e | 27500 | ac_status=$? |
a848cd7e SC |
27501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27502 | (exit $ac_status); } && | |
8a7b1113 | 27503 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
27504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27505 | (eval $ac_try) 2>&5 | |
27506 | ac_status=$? | |
27507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27508 | (exit $ac_status); }; }; then | |
27509 | eval "$as_ac_var=yes" | |
27510 | else | |
27511 | echo "$as_me: failed program was:" >&5 | |
27512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27513 | ||
27514 | eval "$as_ac_var=no" | |
27515 | fi | |
8a7b1113 | 27516 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
27517 | fi |
27518 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27519 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27520 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27521 | cat >>confdefs.h <<_ACEOF | |
27522 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27523 | _ACEOF | |
27524 | ||
27525 | fi | |
27526 | done | |
27527 | ||
27528 | else | |
27529 | { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5 | |
27530 | echo "$as_me: WARNING: Wide character support is unavailable" >&2;} | |
27531 | fi | |
27532 | ||
27533 | ||
27534 | ||
27535 | ac_ext=cc | |
27536 | ac_cpp='$CXXCPP $CPPFLAGS' | |
27537 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27538 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27539 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27540 | ||
27541 | ||
27542 | ||
27543 | for ac_func in vsnprintf | |
27544 | do | |
27545 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27546 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27547 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27548 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27550 | else | |
27551 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27552 | #line $LINENO "configure" |
a848cd7e SC |
27553 | /* confdefs.h. */ |
27554 | _ACEOF | |
27555 | cat confdefs.h >>conftest.$ac_ext | |
27556 | cat >>conftest.$ac_ext <<_ACEOF | |
27557 | /* end confdefs.h. */ | |
a848cd7e SC |
27558 | /* System header to define __stub macros and hopefully few prototypes, |
27559 | which can conflict with char $ac_func (); below. | |
27560 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27561 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
27562 | #ifdef __STDC__ |
27563 | # include <limits.h> | |
27564 | #else | |
27565 | # include <assert.h> | |
27566 | #endif | |
a848cd7e SC |
27567 | /* Override any gcc2 internal prototype to avoid an error. */ |
27568 | #ifdef __cplusplus | |
27569 | extern "C" | |
27570 | { | |
27571 | #endif | |
27572 | /* We use char because int might match the return type of a gcc2 | |
27573 | builtin and then its argument prototype would still apply. */ | |
27574 | char $ac_func (); | |
27575 | /* The GNU C library defines this for functions which it implements | |
27576 | to always fail with ENOSYS. Some functions are actually named | |
27577 | something starting with __ and the normal name is an alias. */ | |
27578 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27579 | choke me | |
27580 | #else | |
27581 | char (*f) () = $ac_func; | |
27582 | #endif | |
27583 | #ifdef __cplusplus | |
27584 | } | |
27585 | #endif | |
27586 | ||
27587 | int | |
27588 | main () | |
27589 | { | |
27590 | return f != $ac_func; | |
27591 | ; | |
27592 | return 0; | |
27593 | } | |
27594 | _ACEOF | |
27595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 27597 | (eval $ac_link) 2>&5 |
a848cd7e | 27598 | ac_status=$? |
a848cd7e SC |
27599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27600 | (exit $ac_status); } && | |
8a7b1113 | 27601 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
27602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27603 | (eval $ac_try) 2>&5 | |
27604 | ac_status=$? | |
27605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27606 | (exit $ac_status); }; }; then | |
27607 | eval "$as_ac_var=yes" | |
27608 | else | |
27609 | echo "$as_me: failed program was:" >&5 | |
27610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27611 | ||
27612 | eval "$as_ac_var=no" | |
27613 | fi | |
8a7b1113 | 27614 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
27615 | fi |
27616 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27617 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27618 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27619 | cat >>confdefs.h <<_ACEOF | |
27620 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27621 | _ACEOF | |
27622 | ||
27623 | fi | |
27624 | done | |
27625 | ||
27626 | ||
27627 | if test "$ac_cv_func_vsnprintf" = "yes"; then | |
27628 | echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5 | |
27629 | echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6 | |
27630 | if test "${wx_cv_func_vsnprintf_decl+set}" = set; then | |
27631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27632 | else | |
27633 | ||
27634 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27635 | #line $LINENO "configure" |
a848cd7e SC |
27636 | /* confdefs.h. */ |
27637 | _ACEOF | |
27638 | cat confdefs.h >>conftest.$ac_ext | |
27639 | cat >>conftest.$ac_ext <<_ACEOF | |
27640 | /* end confdefs.h. */ | |
27641 | ||
27642 | #include <stdio.h> | |
27643 | #include <stdarg.h> | |
27644 | ||
27645 | int | |
27646 | main () | |
27647 | { | |
27648 | ||
27649 | char *buf; | |
27650 | va_list ap; | |
27651 | vsnprintf(buf, 10u, "%s", ap); | |
27652 | ||
27653 | ; | |
27654 | return 0; | |
27655 | } | |
27656 | _ACEOF | |
27657 | rm -f conftest.$ac_objext | |
27658 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 27659 | (eval $ac_compile) 2>&5 |
a848cd7e | 27660 | ac_status=$? |
a848cd7e SC |
27661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27662 | (exit $ac_status); } && | |
8a7b1113 | 27663 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27665 | (eval $ac_try) 2>&5 | |
27666 | ac_status=$? | |
27667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27668 | (exit $ac_status); }; }; then | |
27669 | wx_cv_func_vsnprintf_decl=yes | |
27670 | else | |
27671 | echo "$as_me: failed program was:" >&5 | |
27672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27673 | ||
27674 | wx_cv_func_vsnprintf_decl=no | |
27675 | ||
27676 | fi | |
8a7b1113 | 27677 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
27678 | |
27679 | ||
27680 | fi | |
27681 | echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5 | |
27682 | echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6 | |
27683 | ||
27684 | if test "$wx_cv_func_vsnprintf_decl" = "yes"; then | |
27685 | cat >>confdefs.h <<\_ACEOF | |
27686 | #define HAVE_VSNPRINTF_DECL 1 | |
27687 | _ACEOF | |
27688 | ||
27689 | fi | |
27690 | fi | |
27691 | ||
27692 | if test "$wxUSE_UNICODE" = yes; then | |
27693 | ||
27694 | ||
27695 | ||
27696 | for ac_func in fputwc wprintf vswprintf | |
27697 | do | |
27698 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
27699 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
27700 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
27701 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
27702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27703 | else | |
27704 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27705 | #line $LINENO "configure" |
a848cd7e SC |
27706 | /* confdefs.h. */ |
27707 | _ACEOF | |
27708 | cat confdefs.h >>conftest.$ac_ext | |
27709 | cat >>conftest.$ac_ext <<_ACEOF | |
27710 | /* end confdefs.h. */ | |
a848cd7e SC |
27711 | /* System header to define __stub macros and hopefully few prototypes, |
27712 | which can conflict with char $ac_func (); below. | |
27713 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
27714 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
27715 | #ifdef __STDC__ |
27716 | # include <limits.h> | |
27717 | #else | |
27718 | # include <assert.h> | |
27719 | #endif | |
a848cd7e SC |
27720 | /* Override any gcc2 internal prototype to avoid an error. */ |
27721 | #ifdef __cplusplus | |
27722 | extern "C" | |
27723 | { | |
27724 | #endif | |
27725 | /* We use char because int might match the return type of a gcc2 | |
27726 | builtin and then its argument prototype would still apply. */ | |
27727 | char $ac_func (); | |
27728 | /* The GNU C library defines this for functions which it implements | |
27729 | to always fail with ENOSYS. Some functions are actually named | |
27730 | something starting with __ and the normal name is an alias. */ | |
27731 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
27732 | choke me | |
27733 | #else | |
27734 | char (*f) () = $ac_func; | |
27735 | #endif | |
27736 | #ifdef __cplusplus | |
27737 | } | |
27738 | #endif | |
27739 | ||
27740 | int | |
27741 | main () | |
27742 | { | |
27743 | return f != $ac_func; | |
27744 | ; | |
27745 | return 0; | |
27746 | } | |
27747 | _ACEOF | |
27748 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27749 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 27750 | (eval $ac_link) 2>&5 |
a848cd7e | 27751 | ac_status=$? |
a848cd7e SC |
27752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27753 | (exit $ac_status); } && | |
8a7b1113 | 27754 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
27755 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27756 | (eval $ac_try) 2>&5 | |
27757 | ac_status=$? | |
27758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27759 | (exit $ac_status); }; }; then | |
27760 | eval "$as_ac_var=yes" | |
27761 | else | |
27762 | echo "$as_me: failed program was:" >&5 | |
27763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27764 | ||
27765 | eval "$as_ac_var=no" | |
27766 | fi | |
8a7b1113 | 27767 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
27768 | fi |
27769 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
27770 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
27771 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
27772 | cat >>confdefs.h <<_ACEOF | |
27773 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
27774 | _ACEOF | |
27775 | ||
27776 | fi | |
27777 | done | |
27778 | ||
27779 | ||
27780 | echo "$as_me:$LINENO: checking for _vsnwprintf" >&5 | |
27781 | echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6 | |
27782 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27783 | #line $LINENO "configure" |
a848cd7e SC |
27784 | /* confdefs.h. */ |
27785 | _ACEOF | |
27786 | cat confdefs.h >>conftest.$ac_ext | |
27787 | cat >>conftest.$ac_ext <<_ACEOF | |
27788 | /* end confdefs.h. */ | |
27789 | #include <wchar.h> | |
27790 | int | |
27791 | main () | |
27792 | { | |
27793 | &_vsnwprintf; | |
27794 | ; | |
27795 | return 0; | |
27796 | } | |
27797 | _ACEOF | |
27798 | rm -f conftest.$ac_objext | |
27799 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 27800 | (eval $ac_compile) 2>&5 |
a848cd7e | 27801 | ac_status=$? |
a848cd7e SC |
27802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27803 | (exit $ac_status); } && | |
8a7b1113 | 27804 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
27805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27806 | (eval $ac_try) 2>&5 | |
27807 | ac_status=$? | |
27808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27809 | (exit $ac_status); }; }; then | |
27810 | echo "$as_me:$LINENO: result: yes" >&5 | |
27811 | echo "${ECHO_T}yes" >&6 | |
27812 | cat >>confdefs.h <<\_ACEOF | |
27813 | #define HAVE__VSNWPRINTF 1 | |
27814 | _ACEOF | |
27815 | ||
27816 | else | |
27817 | echo "$as_me: failed program was:" >&5 | |
27818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27819 | ||
27820 | echo "$as_me:$LINENO: result: no" >&5 | |
27821 | echo "${ECHO_T}no" >&6 | |
27822 | fi | |
8a7b1113 | 27823 | rm -f conftest.$ac_objext conftest.$ac_ext; |
a848cd7e SC |
27824 | fi |
27825 | ||
27826 | ac_ext=c | |
27827 | ac_cpp='$CPP $CPPFLAGS' | |
27828 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27829 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27830 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
27831 | ||
27832 | ||
27833 | ||
27834 | ||
27835 | if test "$TOOLKIT" != "MSW"; then | |
27836 | ||
27837 | ||
27838 | ||
27839 | ||
27840 | ac_ext=cc | |
27841 | ac_cpp='$CXXCPP $CPPFLAGS' | |
27842 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
27843 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
27844 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
27845 | ||
27846 | ||
27847 | ||
27848 | ||
27849 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given. | |
27850 | if test "${with_libiconv_prefix+set}" = set; then | |
27851 | withval="$with_libiconv_prefix" | |
27852 | ||
27853 | for dir in `echo "$withval" | tr : ' '`; do | |
27854 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi | |
27855 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi | |
27856 | done | |
27857 | ||
27858 | fi; | |
27859 | ||
27860 | echo "$as_me:$LINENO: checking for iconv" >&5 | |
27861 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6 | |
27862 | if test "${am_cv_func_iconv+set}" = set; then | |
27863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27864 | else | |
27865 | ||
27866 | am_cv_func_iconv="no, consider installing GNU libiconv" | |
27867 | am_cv_lib_iconv=no | |
27868 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27869 | #line $LINENO "configure" |
a848cd7e SC |
27870 | /* confdefs.h. */ |
27871 | _ACEOF | |
27872 | cat confdefs.h >>conftest.$ac_ext | |
27873 | cat >>conftest.$ac_ext <<_ACEOF | |
27874 | /* end confdefs.h. */ | |
27875 | #include <stdlib.h> | |
27876 | #include <iconv.h> | |
27877 | int | |
27878 | main () | |
27879 | { | |
27880 | iconv_t cd = iconv_open("",""); | |
27881 | iconv(cd,NULL,NULL,NULL,NULL); | |
27882 | iconv_close(cd); | |
27883 | ; | |
27884 | return 0; | |
27885 | } | |
27886 | _ACEOF | |
27887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 27889 | (eval $ac_link) 2>&5 |
a848cd7e | 27890 | ac_status=$? |
a848cd7e SC |
27891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27892 | (exit $ac_status); } && | |
8a7b1113 | 27893 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
27894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27895 | (eval $ac_try) 2>&5 | |
27896 | ac_status=$? | |
27897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27898 | (exit $ac_status); }; }; then | |
27899 | am_cv_func_iconv=yes | |
27900 | else | |
27901 | echo "$as_me: failed program was:" >&5 | |
27902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27903 | ||
27904 | fi | |
8a7b1113 | 27905 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
27906 | if test "$am_cv_func_iconv" != yes; then |
27907 | am_save_LIBS="$LIBS" | |
27908 | LIBS="$LIBS -liconv" | |
27909 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27910 | #line $LINENO "configure" |
a848cd7e SC |
27911 | /* confdefs.h. */ |
27912 | _ACEOF | |
27913 | cat confdefs.h >>conftest.$ac_ext | |
27914 | cat >>conftest.$ac_ext <<_ACEOF | |
27915 | /* end confdefs.h. */ | |
27916 | #include <stdlib.h> | |
27917 | #include <iconv.h> | |
27918 | int | |
27919 | main () | |
27920 | { | |
27921 | iconv_t cd = iconv_open("",""); | |
27922 | iconv(cd,NULL,NULL,NULL,NULL); | |
27923 | iconv_close(cd); | |
27924 | ; | |
27925 | return 0; | |
27926 | } | |
27927 | _ACEOF | |
27928 | rm -f conftest.$ac_objext conftest$ac_exeext | |
27929 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 27930 | (eval $ac_link) 2>&5 |
a848cd7e | 27931 | ac_status=$? |
a848cd7e SC |
27932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27933 | (exit $ac_status); } && | |
8a7b1113 | 27934 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
27935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
27936 | (eval $ac_try) 2>&5 | |
27937 | ac_status=$? | |
27938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
27939 | (exit $ac_status); }; }; then | |
27940 | am_cv_lib_iconv=yes | |
27941 | am_cv_func_iconv=yes | |
27942 | else | |
27943 | echo "$as_me: failed program was:" >&5 | |
27944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
27945 | ||
27946 | fi | |
8a7b1113 | 27947 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
27948 | LIBS="$am_save_LIBS" |
27949 | fi | |
27950 | ||
27951 | fi | |
27952 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 | |
27953 | echo "${ECHO_T}$am_cv_func_iconv" >&6 | |
27954 | if test "$am_cv_func_iconv" = yes; then | |
27955 | ||
27956 | cat >>confdefs.h <<\_ACEOF | |
27957 | #define HAVE_ICONV 1 | |
27958 | _ACEOF | |
27959 | ||
27960 | echo "$as_me:$LINENO: checking if iconv needs const" >&5 | |
27961 | echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6 | |
27962 | if test "${wx_cv_func_iconv_const+set}" = set; then | |
27963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
27964 | else | |
27965 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 27966 | #line $LINENO "configure" |
a848cd7e SC |
27967 | /* confdefs.h. */ |
27968 | _ACEOF | |
27969 | cat confdefs.h >>conftest.$ac_ext | |
27970 | cat >>conftest.$ac_ext <<_ACEOF | |
27971 | /* end confdefs.h. */ | |
27972 | ||
27973 | #include <stdlib.h> | |
27974 | #include <iconv.h> | |
27975 | extern | |
27976 | #ifdef __cplusplus | |
27977 | "C" | |
27978 | #endif | |
27979 | #if defined(__STDC__) || defined(__cplusplus) | |
27980 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); | |
27981 | #else | |
27982 | size_t iconv(); | |
27983 | #endif | |
27984 | ||
27985 | int | |
27986 | main () | |
27987 | { | |
27988 | ||
27989 | ; | |
27990 | return 0; | |
27991 | } | |
27992 | _ACEOF | |
27993 | rm -f conftest.$ac_objext | |
27994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 27995 | (eval $ac_compile) 2>&5 |
a848cd7e | 27996 | ac_status=$? |
a848cd7e SC |
27997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
27998 | (exit $ac_status); } && | |
8a7b1113 | 27999 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28001 | (eval $ac_try) 2>&5 | |
28002 | ac_status=$? | |
28003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28004 | (exit $ac_status); }; }; then | |
28005 | wx_cv_func_iconv_const="no" | |
28006 | else | |
28007 | echo "$as_me: failed program was:" >&5 | |
28008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28009 | ||
28010 | wx_cv_func_iconv_const="yes" | |
28011 | ||
28012 | fi | |
8a7b1113 | 28013 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28014 | |
28015 | fi | |
28016 | echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5 | |
28017 | echo "${ECHO_T}$wx_cv_func_iconv_const" >&6 | |
28018 | ||
28019 | iconv_const= | |
28020 | if test "x$wx_cv_func_iconv_const" = "xyes"; then | |
28021 | iconv_const="const" | |
28022 | fi | |
28023 | ||
28024 | ||
28025 | cat >>confdefs.h <<_ACEOF | |
28026 | #define ICONV_CONST $iconv_const | |
28027 | _ACEOF | |
28028 | ||
28029 | fi | |
28030 | LIBICONV= | |
28031 | if test "$am_cv_lib_iconv" = yes; then | |
28032 | LIBICONV="-liconv" | |
28033 | fi | |
28034 | ||
28035 | ||
28036 | LIBS="$LIBICONV $LIBS" | |
28037 | ac_ext=c | |
28038 | ac_cpp='$CPP $CPPFLAGS' | |
28039 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28040 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28041 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28042 | ||
28043 | ||
28044 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then | |
28045 | ||
28046 | for ac_func in sigaction | |
28047 | do | |
28048 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28049 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28050 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28051 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28053 | else | |
28054 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 28055 | #line $LINENO "configure" |
a848cd7e SC |
28056 | /* confdefs.h. */ |
28057 | _ACEOF | |
28058 | cat confdefs.h >>conftest.$ac_ext | |
28059 | cat >>conftest.$ac_ext <<_ACEOF | |
28060 | /* end confdefs.h. */ | |
a848cd7e SC |
28061 | /* System header to define __stub macros and hopefully few prototypes, |
28062 | which can conflict with char $ac_func (); below. | |
28063 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28064 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
28065 | #ifdef __STDC__ |
28066 | # include <limits.h> | |
28067 | #else | |
28068 | # include <assert.h> | |
28069 | #endif | |
a848cd7e SC |
28070 | /* Override any gcc2 internal prototype to avoid an error. */ |
28071 | #ifdef __cplusplus | |
28072 | extern "C" | |
28073 | { | |
28074 | #endif | |
28075 | /* We use char because int might match the return type of a gcc2 | |
28076 | builtin and then its argument prototype would still apply. */ | |
28077 | char $ac_func (); | |
28078 | /* The GNU C library defines this for functions which it implements | |
28079 | to always fail with ENOSYS. Some functions are actually named | |
28080 | something starting with __ and the normal name is an alias. */ | |
28081 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28082 | choke me | |
28083 | #else | |
28084 | char (*f) () = $ac_func; | |
28085 | #endif | |
28086 | #ifdef __cplusplus | |
28087 | } | |
28088 | #endif | |
28089 | ||
28090 | int | |
28091 | main () | |
28092 | { | |
28093 | return f != $ac_func; | |
28094 | ; | |
28095 | return 0; | |
28096 | } | |
28097 | _ACEOF | |
28098 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28099 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 28100 | (eval $ac_link) 2>&5 |
a848cd7e | 28101 | ac_status=$? |
a848cd7e SC |
28102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28103 | (exit $ac_status); } && | |
8a7b1113 | 28104 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
28105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28106 | (eval $ac_try) 2>&5 | |
28107 | ac_status=$? | |
28108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28109 | (exit $ac_status); }; }; then | |
28110 | eval "$as_ac_var=yes" | |
28111 | else | |
28112 | echo "$as_me: failed program was:" >&5 | |
28113 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28114 | ||
28115 | eval "$as_ac_var=no" | |
28116 | fi | |
8a7b1113 | 28117 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
28118 | fi |
28119 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28120 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28121 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28122 | cat >>confdefs.h <<_ACEOF | |
28123 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28124 | _ACEOF | |
28125 | ||
28126 | fi | |
28127 | done | |
28128 | ||
28129 | ||
28130 | if test "$ac_cv_func_sigaction" = "no"; then | |
28131 | { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5 | |
28132 | echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;} | |
28133 | wxUSE_ON_FATAL_EXCEPTION=no | |
28134 | fi | |
28135 | ||
28136 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then | |
28137 | ||
28138 | ||
28139 | ac_ext=cc | |
28140 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28141 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28142 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28143 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28144 | ||
28145 | ||
28146 | echo "$as_me:$LINENO: checking for sa_handler type" >&5 | |
28147 | echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6 | |
28148 | if test "${wx_cv_type_sa_handler+set}" = set; then | |
28149 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28150 | else | |
28151 | ||
28152 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 28153 | #line $LINENO "configure" |
a848cd7e SC |
28154 | /* confdefs.h. */ |
28155 | _ACEOF | |
28156 | cat confdefs.h >>conftest.$ac_ext | |
28157 | cat >>conftest.$ac_ext <<_ACEOF | |
28158 | /* end confdefs.h. */ | |
28159 | #include <signal.h> | |
28160 | int | |
28161 | main () | |
28162 | { | |
28163 | ||
28164 | extern void testSigHandler(int); | |
28165 | ||
28166 | struct sigaction sa; | |
28167 | sa.sa_handler = testSigHandler; | |
28168 | ||
28169 | ; | |
28170 | return 0; | |
28171 | } | |
28172 | _ACEOF | |
28173 | rm -f conftest.$ac_objext | |
28174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 28175 | (eval $ac_compile) 2>&5 |
a848cd7e | 28176 | ac_status=$? |
a848cd7e SC |
28177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28178 | (exit $ac_status); } && | |
8a7b1113 | 28179 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28181 | (eval $ac_try) 2>&5 | |
28182 | ac_status=$? | |
28183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28184 | (exit $ac_status); }; }; then | |
28185 | ||
28186 | wx_cv_type_sa_handler=int | |
28187 | ||
28188 | else | |
28189 | echo "$as_me: failed program was:" >&5 | |
28190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28191 | ||
28192 | ||
28193 | wx_cv_type_sa_handler=void | |
28194 | ||
28195 | fi | |
8a7b1113 | 28196 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28197 | |
28198 | fi | |
28199 | echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5 | |
28200 | echo "${ECHO_T}$wx_cv_type_sa_handler" >&6 | |
28201 | ||
28202 | ac_ext=c | |
28203 | ac_cpp='$CPP $CPPFLAGS' | |
28204 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28205 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28206 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28207 | ||
28208 | ||
28209 | cat >>confdefs.h <<_ACEOF | |
28210 | #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler | |
28211 | _ACEOF | |
28212 | ||
28213 | fi | |
28214 | fi | |
28215 | ||
28216 | ||
28217 | ||
28218 | for ac_func in mkstemp mktemp | |
28219 | do | |
28220 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28221 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28222 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28223 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28225 | else | |
28226 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 28227 | #line $LINENO "configure" |
a848cd7e SC |
28228 | /* confdefs.h. */ |
28229 | _ACEOF | |
28230 | cat confdefs.h >>conftest.$ac_ext | |
28231 | cat >>conftest.$ac_ext <<_ACEOF | |
28232 | /* end confdefs.h. */ | |
a848cd7e SC |
28233 | /* System header to define __stub macros and hopefully few prototypes, |
28234 | which can conflict with char $ac_func (); below. | |
28235 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28236 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
28237 | #ifdef __STDC__ |
28238 | # include <limits.h> | |
28239 | #else | |
28240 | # include <assert.h> | |
28241 | #endif | |
a848cd7e SC |
28242 | /* Override any gcc2 internal prototype to avoid an error. */ |
28243 | #ifdef __cplusplus | |
28244 | extern "C" | |
28245 | { | |
28246 | #endif | |
28247 | /* We use char because int might match the return type of a gcc2 | |
28248 | builtin and then its argument prototype would still apply. */ | |
28249 | char $ac_func (); | |
28250 | /* The GNU C library defines this for functions which it implements | |
28251 | to always fail with ENOSYS. Some functions are actually named | |
28252 | something starting with __ and the normal name is an alias. */ | |
28253 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28254 | choke me | |
28255 | #else | |
28256 | char (*f) () = $ac_func; | |
28257 | #endif | |
28258 | #ifdef __cplusplus | |
28259 | } | |
28260 | #endif | |
28261 | ||
28262 | int | |
28263 | main () | |
28264 | { | |
28265 | return f != $ac_func; | |
28266 | ; | |
28267 | return 0; | |
28268 | } | |
28269 | _ACEOF | |
28270 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28271 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 28272 | (eval $ac_link) 2>&5 |
a848cd7e | 28273 | ac_status=$? |
a848cd7e SC |
28274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28275 | (exit $ac_status); } && | |
8a7b1113 | 28276 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
28277 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28278 | (eval $ac_try) 2>&5 | |
28279 | ac_status=$? | |
28280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28281 | (exit $ac_status); }; }; then | |
28282 | eval "$as_ac_var=yes" | |
28283 | else | |
28284 | echo "$as_me: failed program was:" >&5 | |
28285 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28286 | ||
28287 | eval "$as_ac_var=no" | |
28288 | fi | |
8a7b1113 | 28289 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
28290 | fi |
28291 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28292 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28293 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28294 | cat >>confdefs.h <<_ACEOF | |
28295 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28296 | _ACEOF | |
28297 | break | |
28298 | fi | |
28299 | done | |
28300 | ||
28301 | ||
28302 | echo "$as_me:$LINENO: checking for statfs" >&5 | |
28303 | echo $ECHO_N "checking for statfs... $ECHO_C" >&6 | |
28304 | if test "${wx_cv_func_statfs+set}" = set; then | |
28305 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28306 | else | |
28307 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 28308 | #line $LINENO "configure" |
a848cd7e SC |
28309 | /* confdefs.h. */ |
28310 | _ACEOF | |
28311 | cat confdefs.h >>conftest.$ac_ext | |
28312 | cat >>conftest.$ac_ext <<_ACEOF | |
28313 | /* end confdefs.h. */ | |
28314 | ||
28315 | #if defined(__BSD__) | |
28316 | #include <sys/param.h> | |
28317 | #include <sys/mount.h> | |
28318 | #else | |
28319 | #include <sys/vfs.h> | |
28320 | #endif | |
28321 | ||
28322 | int | |
28323 | main () | |
28324 | { | |
28325 | ||
28326 | long l; | |
28327 | struct statfs fs; | |
28328 | statfs("/", &fs); | |
28329 | l = fs.f_bsize; | |
28330 | l += fs.f_blocks; | |
28331 | l += fs.f_bavail; | |
28332 | ||
28333 | ; | |
28334 | return 0; | |
28335 | } | |
28336 | _ACEOF | |
28337 | rm -f conftest.$ac_objext | |
28338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 28339 | (eval $ac_compile) 2>&5 |
a848cd7e | 28340 | ac_status=$? |
a848cd7e SC |
28341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28342 | (exit $ac_status); } && | |
8a7b1113 | 28343 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28345 | (eval $ac_try) 2>&5 | |
28346 | ac_status=$? | |
28347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28348 | (exit $ac_status); }; }; then | |
28349 | ||
28350 | wx_cv_func_statfs=yes | |
28351 | ||
28352 | else | |
28353 | echo "$as_me: failed program was:" >&5 | |
28354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28355 | ||
28356 | ||
28357 | wx_cv_func_statfs=no | |
28358 | ||
28359 | ||
28360 | fi | |
8a7b1113 | 28361 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28362 | |
28363 | fi | |
28364 | echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5 | |
28365 | echo "${ECHO_T}$wx_cv_func_statfs" >&6 | |
28366 | ||
28367 | if test "$wx_cv_func_statfs" = "yes"; then | |
28368 | wx_cv_type_statvfs_t="struct statfs" | |
28369 | cat >>confdefs.h <<\_ACEOF | |
28370 | #define HAVE_STATFS 1 | |
28371 | _ACEOF | |
28372 | ||
28373 | else | |
28374 | echo "$as_me:$LINENO: checking for statvfs" >&5 | |
28375 | echo $ECHO_N "checking for statvfs... $ECHO_C" >&6 | |
28376 | if test "${wx_cv_func_statvfs+set}" = set; then | |
28377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28378 | else | |
28379 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 28380 | #line $LINENO "configure" |
a848cd7e SC |
28381 | /* confdefs.h. */ |
28382 | _ACEOF | |
28383 | cat confdefs.h >>conftest.$ac_ext | |
28384 | cat >>conftest.$ac_ext <<_ACEOF | |
28385 | /* end confdefs.h. */ | |
28386 | ||
28387 | #include <stddef.h> | |
28388 | #include <sys/statvfs.h> | |
28389 | ||
28390 | int | |
28391 | main () | |
28392 | { | |
28393 | ||
28394 | statvfs("/", NULL); | |
28395 | ||
28396 | ; | |
28397 | return 0; | |
28398 | } | |
28399 | _ACEOF | |
28400 | rm -f conftest.$ac_objext | |
28401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 28402 | (eval $ac_compile) 2>&5 |
a848cd7e | 28403 | ac_status=$? |
a848cd7e SC |
28404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28405 | (exit $ac_status); } && | |
8a7b1113 | 28406 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28407 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28408 | (eval $ac_try) 2>&5 | |
28409 | ac_status=$? | |
28410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28411 | (exit $ac_status); }; }; then | |
28412 | wx_cv_func_statvfs=yes | |
28413 | else | |
28414 | echo "$as_me: failed program was:" >&5 | |
28415 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28416 | ||
28417 | wx_cv_func_statvfs=no | |
28418 | ||
28419 | fi | |
8a7b1113 | 28420 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28421 | |
28422 | fi | |
28423 | echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5 | |
28424 | echo "${ECHO_T}$wx_cv_func_statvfs" >&6 | |
28425 | ||
28426 | if test "$wx_cv_func_statvfs" = "yes"; then | |
28427 | ||
28428 | ||
28429 | ac_ext=cc | |
28430 | ac_cpp='$CXXCPP $CPPFLAGS' | |
28431 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28432 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28433 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
28434 | ||
28435 | ||
28436 | echo "$as_me:$LINENO: checking for statvfs argument type" >&5 | |
28437 | echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6 | |
28438 | if test "${wx_cv_type_statvfs_t+set}" = set; then | |
28439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28440 | else | |
28441 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 28442 | #line $LINENO "configure" |
a848cd7e SC |
28443 | /* confdefs.h. */ |
28444 | _ACEOF | |
28445 | cat confdefs.h >>conftest.$ac_ext | |
28446 | cat >>conftest.$ac_ext <<_ACEOF | |
28447 | /* end confdefs.h. */ | |
28448 | ||
28449 | #include <sys/statvfs.h> | |
28450 | ||
28451 | int | |
28452 | main () | |
28453 | { | |
28454 | ||
28455 | long l; | |
28456 | statvfs_t fs; | |
28457 | statvfs("/", &fs); | |
28458 | l = fs.f_bsize; | |
28459 | l += fs.f_blocks; | |
28460 | l += fs.f_bavail; | |
28461 | ||
28462 | ; | |
28463 | return 0; | |
28464 | } | |
28465 | _ACEOF | |
28466 | rm -f conftest.$ac_objext | |
28467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 28468 | (eval $ac_compile) 2>&5 |
a848cd7e | 28469 | ac_status=$? |
a848cd7e SC |
28470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28471 | (exit $ac_status); } && | |
8a7b1113 | 28472 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28473 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28474 | (eval $ac_try) 2>&5 | |
28475 | ac_status=$? | |
28476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28477 | (exit $ac_status); }; }; then | |
28478 | wx_cv_type_statvfs_t=statvfs_t | |
28479 | else | |
28480 | echo "$as_me: failed program was:" >&5 | |
28481 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28482 | ||
28483 | ||
28484 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 28485 | #line $LINENO "configure" |
a848cd7e SC |
28486 | /* confdefs.h. */ |
28487 | _ACEOF | |
28488 | cat confdefs.h >>conftest.$ac_ext | |
28489 | cat >>conftest.$ac_ext <<_ACEOF | |
28490 | /* end confdefs.h. */ | |
28491 | ||
28492 | #include <sys/statvfs.h> | |
28493 | ||
28494 | int | |
28495 | main () | |
28496 | { | |
28497 | ||
28498 | long l; | |
28499 | struct statvfs fs; | |
28500 | statvfs("/", &fs); | |
28501 | l = fs.f_bsize; | |
28502 | l += fs.f_blocks; | |
28503 | l += fs.f_bavail; | |
28504 | ||
28505 | ; | |
28506 | return 0; | |
28507 | } | |
28508 | _ACEOF | |
28509 | rm -f conftest.$ac_objext | |
28510 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 28511 | (eval $ac_compile) 2>&5 |
a848cd7e | 28512 | ac_status=$? |
a848cd7e SC |
28513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28514 | (exit $ac_status); } && | |
8a7b1113 | 28515 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
28516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28517 | (eval $ac_try) 2>&5 | |
28518 | ac_status=$? | |
28519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28520 | (exit $ac_status); }; }; then | |
28521 | wx_cv_type_statvfs_t="struct statvfs" | |
28522 | else | |
28523 | echo "$as_me: failed program was:" >&5 | |
28524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28525 | ||
28526 | wx_cv_type_statvfs_t="unknown" | |
28527 | ||
28528 | fi | |
8a7b1113 | 28529 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28530 | |
28531 | ||
28532 | fi | |
8a7b1113 | 28533 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
28534 | |
28535 | fi | |
28536 | echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5 | |
28537 | echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6 | |
28538 | ||
28539 | ac_ext=c | |
28540 | ac_cpp='$CPP $CPPFLAGS' | |
28541 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
28542 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
28543 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
28544 | ||
28545 | ||
28546 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
28547 | cat >>confdefs.h <<\_ACEOF | |
28548 | #define HAVE_STATVFS 1 | |
28549 | _ACEOF | |
28550 | ||
28551 | fi | |
28552 | else | |
28553 | wx_cv_type_statvfs_t="unknown" | |
28554 | fi | |
28555 | fi | |
28556 | ||
28557 | if test "$wx_cv_type_statvfs_t" != "unknown"; then | |
28558 | cat >>confdefs.h <<_ACEOF | |
28559 | #define WX_STATFS_T $wx_cv_type_statvfs_t | |
28560 | _ACEOF | |
28561 | ||
28562 | else | |
28563 | { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5 | |
28564 | echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;} | |
28565 | fi | |
28566 | ||
28567 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
28568 | ||
28569 | ||
28570 | for ac_func in fcntl flock | |
28571 | do | |
28572 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28573 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28574 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28575 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28577 | else | |
28578 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 28579 | #line $LINENO "configure" |
a848cd7e SC |
28580 | /* confdefs.h. */ |
28581 | _ACEOF | |
28582 | cat confdefs.h >>conftest.$ac_ext | |
28583 | cat >>conftest.$ac_ext <<_ACEOF | |
28584 | /* end confdefs.h. */ | |
a848cd7e SC |
28585 | /* System header to define __stub macros and hopefully few prototypes, |
28586 | which can conflict with char $ac_func (); below. | |
28587 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28588 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
28589 | #ifdef __STDC__ |
28590 | # include <limits.h> | |
28591 | #else | |
28592 | # include <assert.h> | |
28593 | #endif | |
a848cd7e SC |
28594 | /* Override any gcc2 internal prototype to avoid an error. */ |
28595 | #ifdef __cplusplus | |
28596 | extern "C" | |
28597 | { | |
28598 | #endif | |
28599 | /* We use char because int might match the return type of a gcc2 | |
28600 | builtin and then its argument prototype would still apply. */ | |
28601 | char $ac_func (); | |
28602 | /* The GNU C library defines this for functions which it implements | |
28603 | to always fail with ENOSYS. Some functions are actually named | |
28604 | something starting with __ and the normal name is an alias. */ | |
28605 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28606 | choke me | |
28607 | #else | |
28608 | char (*f) () = $ac_func; | |
28609 | #endif | |
28610 | #ifdef __cplusplus | |
28611 | } | |
28612 | #endif | |
28613 | ||
28614 | int | |
28615 | main () | |
28616 | { | |
28617 | return f != $ac_func; | |
28618 | ; | |
28619 | return 0; | |
28620 | } | |
28621 | _ACEOF | |
28622 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28623 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 28624 | (eval $ac_link) 2>&5 |
a848cd7e | 28625 | ac_status=$? |
a848cd7e SC |
28626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28627 | (exit $ac_status); } && | |
8a7b1113 | 28628 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
28629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28630 | (eval $ac_try) 2>&5 | |
28631 | ac_status=$? | |
28632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28633 | (exit $ac_status); }; }; then | |
28634 | eval "$as_ac_var=yes" | |
28635 | else | |
28636 | echo "$as_me: failed program was:" >&5 | |
28637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28638 | ||
28639 | eval "$as_ac_var=no" | |
28640 | fi | |
8a7b1113 | 28641 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
28642 | fi |
28643 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28644 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28645 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28646 | cat >>confdefs.h <<_ACEOF | |
28647 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28648 | _ACEOF | |
28649 | break | |
28650 | fi | |
28651 | done | |
28652 | ||
28653 | ||
28654 | if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then | |
28655 | { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5 | |
28656 | echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;} | |
28657 | wxUSE_SNGLINST_CHECKER=no | |
28658 | fi | |
28659 | fi | |
28660 | ||
28661 | ||
28662 | for ac_func in timegm | |
28663 | do | |
28664 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28665 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28666 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28667 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28669 | else | |
28670 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 28671 | #line $LINENO "configure" |
a848cd7e SC |
28672 | /* confdefs.h. */ |
28673 | _ACEOF | |
28674 | cat confdefs.h >>conftest.$ac_ext | |
28675 | cat >>conftest.$ac_ext <<_ACEOF | |
28676 | /* end confdefs.h. */ | |
a848cd7e SC |
28677 | /* System header to define __stub macros and hopefully few prototypes, |
28678 | which can conflict with char $ac_func (); below. | |
28679 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28680 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
28681 | #ifdef __STDC__ |
28682 | # include <limits.h> | |
28683 | #else | |
28684 | # include <assert.h> | |
28685 | #endif | |
a848cd7e SC |
28686 | /* Override any gcc2 internal prototype to avoid an error. */ |
28687 | #ifdef __cplusplus | |
28688 | extern "C" | |
28689 | { | |
28690 | #endif | |
28691 | /* We use char because int might match the return type of a gcc2 | |
28692 | builtin and then its argument prototype would still apply. */ | |
28693 | char $ac_func (); | |
28694 | /* The GNU C library defines this for functions which it implements | |
28695 | to always fail with ENOSYS. Some functions are actually named | |
28696 | something starting with __ and the normal name is an alias. */ | |
28697 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28698 | choke me | |
28699 | #else | |
28700 | char (*f) () = $ac_func; | |
28701 | #endif | |
28702 | #ifdef __cplusplus | |
28703 | } | |
28704 | #endif | |
28705 | ||
28706 | int | |
28707 | main () | |
28708 | { | |
28709 | return f != $ac_func; | |
28710 | ; | |
28711 | return 0; | |
28712 | } | |
28713 | _ACEOF | |
28714 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28715 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 28716 | (eval $ac_link) 2>&5 |
a848cd7e | 28717 | ac_status=$? |
a848cd7e SC |
28718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28719 | (exit $ac_status); } && | |
8a7b1113 | 28720 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
28721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28722 | (eval $ac_try) 2>&5 | |
28723 | ac_status=$? | |
28724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28725 | (exit $ac_status); }; }; then | |
28726 | eval "$as_ac_var=yes" | |
28727 | else | |
28728 | echo "$as_me: failed program was:" >&5 | |
28729 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28730 | ||
28731 | eval "$as_ac_var=no" | |
28732 | fi | |
8a7b1113 | 28733 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
28734 | fi |
28735 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28736 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28737 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28738 | cat >>confdefs.h <<_ACEOF | |
28739 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28740 | _ACEOF | |
28741 | ||
28742 | fi | |
28743 | done | |
28744 | ||
28745 | ||
28746 | ||
28747 | ||
28748 | for ac_func in putenv setenv | |
28749 | do | |
28750 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28751 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28752 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28753 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28754 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28755 | else | |
28756 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 28757 | #line $LINENO "configure" |
a848cd7e SC |
28758 | /* confdefs.h. */ |
28759 | _ACEOF | |
28760 | cat confdefs.h >>conftest.$ac_ext | |
28761 | cat >>conftest.$ac_ext <<_ACEOF | |
28762 | /* end confdefs.h. */ | |
a848cd7e SC |
28763 | /* System header to define __stub macros and hopefully few prototypes, |
28764 | which can conflict with char $ac_func (); below. | |
28765 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28766 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
28767 | #ifdef __STDC__ |
28768 | # include <limits.h> | |
28769 | #else | |
28770 | # include <assert.h> | |
28771 | #endif | |
a848cd7e SC |
28772 | /* Override any gcc2 internal prototype to avoid an error. */ |
28773 | #ifdef __cplusplus | |
28774 | extern "C" | |
28775 | { | |
28776 | #endif | |
28777 | /* We use char because int might match the return type of a gcc2 | |
28778 | builtin and then its argument prototype would still apply. */ | |
28779 | char $ac_func (); | |
28780 | /* The GNU C library defines this for functions which it implements | |
28781 | to always fail with ENOSYS. Some functions are actually named | |
28782 | something starting with __ and the normal name is an alias. */ | |
28783 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28784 | choke me | |
28785 | #else | |
28786 | char (*f) () = $ac_func; | |
28787 | #endif | |
28788 | #ifdef __cplusplus | |
28789 | } | |
28790 | #endif | |
28791 | ||
28792 | int | |
28793 | main () | |
28794 | { | |
28795 | return f != $ac_func; | |
28796 | ; | |
28797 | return 0; | |
28798 | } | |
28799 | _ACEOF | |
28800 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 28802 | (eval $ac_link) 2>&5 |
a848cd7e | 28803 | ac_status=$? |
a848cd7e SC |
28804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28805 | (exit $ac_status); } && | |
8a7b1113 | 28806 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
28807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28808 | (eval $ac_try) 2>&5 | |
28809 | ac_status=$? | |
28810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28811 | (exit $ac_status); }; }; then | |
28812 | eval "$as_ac_var=yes" | |
28813 | else | |
28814 | echo "$as_me: failed program was:" >&5 | |
28815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28816 | ||
28817 | eval "$as_ac_var=no" | |
28818 | fi | |
8a7b1113 | 28819 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
28820 | fi |
28821 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28822 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28823 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28824 | cat >>confdefs.h <<_ACEOF | |
28825 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28826 | _ACEOF | |
28827 | break | |
28828 | fi | |
28829 | done | |
28830 | ||
28831 | ||
28832 | HAVE_SOME_SLEEP_FUNC=0 | |
28833 | if test "$USE_BEOS" = 1; then | |
28834 | cat >>confdefs.h <<\_ACEOF | |
28835 | #define HAVE_SLEEP 1 | |
28836 | _ACEOF | |
28837 | ||
28838 | HAVE_SOME_SLEEP_FUNC=1 | |
28839 | fi | |
28840 | ||
28841 | if test "$USE_DARWIN" = 1; then | |
28842 | cat >>confdefs.h <<\_ACEOF | |
28843 | #define HAVE_USLEEP 1 | |
28844 | _ACEOF | |
28845 | ||
28846 | HAVE_SOME_SLEEP_FUNC=1 | |
28847 | fi | |
28848 | ||
28849 | if test "$HAVE_SOME_SLEEP_FUNC" != 1; then | |
28850 | POSIX4_LINK= | |
28851 | ||
28852 | for ac_func in nanosleep | |
28853 | do | |
28854 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
28855 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
28856 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
28857 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
28858 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28859 | else | |
28860 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 28861 | #line $LINENO "configure" |
a848cd7e SC |
28862 | /* confdefs.h. */ |
28863 | _ACEOF | |
28864 | cat confdefs.h >>conftest.$ac_ext | |
28865 | cat >>conftest.$ac_ext <<_ACEOF | |
28866 | /* end confdefs.h. */ | |
a848cd7e SC |
28867 | /* System header to define __stub macros and hopefully few prototypes, |
28868 | which can conflict with char $ac_func (); below. | |
28869 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
28870 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
28871 | #ifdef __STDC__ |
28872 | # include <limits.h> | |
28873 | #else | |
28874 | # include <assert.h> | |
28875 | #endif | |
a848cd7e SC |
28876 | /* Override any gcc2 internal prototype to avoid an error. */ |
28877 | #ifdef __cplusplus | |
28878 | extern "C" | |
28879 | { | |
28880 | #endif | |
28881 | /* We use char because int might match the return type of a gcc2 | |
28882 | builtin and then its argument prototype would still apply. */ | |
28883 | char $ac_func (); | |
28884 | /* The GNU C library defines this for functions which it implements | |
28885 | to always fail with ENOSYS. Some functions are actually named | |
28886 | something starting with __ and the normal name is an alias. */ | |
28887 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
28888 | choke me | |
28889 | #else | |
28890 | char (*f) () = $ac_func; | |
28891 | #endif | |
28892 | #ifdef __cplusplus | |
28893 | } | |
28894 | #endif | |
28895 | ||
28896 | int | |
28897 | main () | |
28898 | { | |
28899 | return f != $ac_func; | |
28900 | ; | |
28901 | return 0; | |
28902 | } | |
28903 | _ACEOF | |
28904 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28905 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 28906 | (eval $ac_link) 2>&5 |
a848cd7e | 28907 | ac_status=$? |
a848cd7e SC |
28908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28909 | (exit $ac_status); } && | |
8a7b1113 | 28910 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
28911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28912 | (eval $ac_try) 2>&5 | |
28913 | ac_status=$? | |
28914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28915 | (exit $ac_status); }; }; then | |
28916 | eval "$as_ac_var=yes" | |
28917 | else | |
28918 | echo "$as_me: failed program was:" >&5 | |
28919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28920 | ||
28921 | eval "$as_ac_var=no" | |
28922 | fi | |
8a7b1113 | 28923 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
28924 | fi |
28925 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
28926 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
28927 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
28928 | cat >>confdefs.h <<_ACEOF | |
28929 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
28930 | _ACEOF | |
28931 | cat >>confdefs.h <<\_ACEOF | |
28932 | #define HAVE_NANOSLEEP 1 | |
28933 | _ACEOF | |
28934 | ||
28935 | else | |
28936 | ||
28937 | echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5 | |
28938 | echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6 | |
28939 | if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then | |
28940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
28941 | else | |
28942 | ac_check_lib_save_LIBS=$LIBS | |
28943 | LIBS="-lposix4 $LIBS" | |
28944 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 28945 | #line $LINENO "configure" |
a848cd7e SC |
28946 | /* confdefs.h. */ |
28947 | _ACEOF | |
28948 | cat confdefs.h >>conftest.$ac_ext | |
28949 | cat >>conftest.$ac_ext <<_ACEOF | |
28950 | /* end confdefs.h. */ | |
28951 | ||
28952 | /* Override any gcc2 internal prototype to avoid an error. */ | |
28953 | #ifdef __cplusplus | |
28954 | extern "C" | |
28955 | #endif | |
28956 | /* We use char because int might match the return type of a gcc2 | |
28957 | builtin and then its argument prototype would still apply. */ | |
28958 | char nanosleep (); | |
28959 | int | |
28960 | main () | |
28961 | { | |
28962 | nanosleep (); | |
28963 | ; | |
28964 | return 0; | |
28965 | } | |
28966 | _ACEOF | |
28967 | rm -f conftest.$ac_objext conftest$ac_exeext | |
28968 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 28969 | (eval $ac_link) 2>&5 |
a848cd7e | 28970 | ac_status=$? |
a848cd7e SC |
28971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
28972 | (exit $ac_status); } && | |
8a7b1113 | 28973 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
28974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
28975 | (eval $ac_try) 2>&5 | |
28976 | ac_status=$? | |
28977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
28978 | (exit $ac_status); }; }; then | |
28979 | ac_cv_lib_posix4_nanosleep=yes | |
28980 | else | |
28981 | echo "$as_me: failed program was:" >&5 | |
28982 | sed 's/^/| /' conftest.$ac_ext >&5 | |
28983 | ||
28984 | ac_cv_lib_posix4_nanosleep=no | |
28985 | fi | |
8a7b1113 | 28986 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
28987 | LIBS=$ac_check_lib_save_LIBS |
28988 | fi | |
28989 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5 | |
28990 | echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6 | |
28991 | if test $ac_cv_lib_posix4_nanosleep = yes; then | |
28992 | ||
28993 | cat >>confdefs.h <<\_ACEOF | |
28994 | #define HAVE_NANOSLEEP 1 | |
28995 | _ACEOF | |
28996 | ||
28997 | POSIX4_LINK=" -lposix4" | |
28998 | ||
28999 | else | |
29000 | ||
29001 | ||
29002 | for ac_func in usleep | |
29003 | do | |
29004 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29005 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29006 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29007 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29008 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29009 | else | |
29010 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29011 | #line $LINENO "configure" |
a848cd7e SC |
29012 | /* confdefs.h. */ |
29013 | _ACEOF | |
29014 | cat confdefs.h >>conftest.$ac_ext | |
29015 | cat >>conftest.$ac_ext <<_ACEOF | |
29016 | /* end confdefs.h. */ | |
a848cd7e SC |
29017 | /* System header to define __stub macros and hopefully few prototypes, |
29018 | which can conflict with char $ac_func (); below. | |
29019 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29020 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
29021 | #ifdef __STDC__ |
29022 | # include <limits.h> | |
29023 | #else | |
29024 | # include <assert.h> | |
29025 | #endif | |
a848cd7e SC |
29026 | /* Override any gcc2 internal prototype to avoid an error. */ |
29027 | #ifdef __cplusplus | |
29028 | extern "C" | |
29029 | { | |
29030 | #endif | |
29031 | /* We use char because int might match the return type of a gcc2 | |
29032 | builtin and then its argument prototype would still apply. */ | |
29033 | char $ac_func (); | |
29034 | /* The GNU C library defines this for functions which it implements | |
29035 | to always fail with ENOSYS. Some functions are actually named | |
29036 | something starting with __ and the normal name is an alias. */ | |
29037 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29038 | choke me | |
29039 | #else | |
29040 | char (*f) () = $ac_func; | |
29041 | #endif | |
29042 | #ifdef __cplusplus | |
29043 | } | |
29044 | #endif | |
29045 | ||
29046 | int | |
29047 | main () | |
29048 | { | |
29049 | return f != $ac_func; | |
29050 | ; | |
29051 | return 0; | |
29052 | } | |
29053 | _ACEOF | |
29054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29055 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 29056 | (eval $ac_link) 2>&5 |
a848cd7e | 29057 | ac_status=$? |
a848cd7e SC |
29058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29059 | (exit $ac_status); } && | |
8a7b1113 | 29060 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29062 | (eval $ac_try) 2>&5 | |
29063 | ac_status=$? | |
29064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29065 | (exit $ac_status); }; }; then | |
29066 | eval "$as_ac_var=yes" | |
29067 | else | |
29068 | echo "$as_me: failed program was:" >&5 | |
29069 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29070 | ||
29071 | eval "$as_ac_var=no" | |
29072 | fi | |
8a7b1113 | 29073 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29074 | fi |
29075 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29076 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29077 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29078 | cat >>confdefs.h <<_ACEOF | |
29079 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29080 | _ACEOF | |
29081 | cat >>confdefs.h <<\_ACEOF | |
29082 | #define HAVE_USLEEP 1 | |
29083 | _ACEOF | |
29084 | ||
29085 | else | |
29086 | { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5 | |
29087 | echo "$as_me: WARNING: wxSleep() function will not work" >&2;} | |
29088 | ||
29089 | fi | |
29090 | done | |
29091 | ||
29092 | ||
29093 | ||
29094 | fi | |
29095 | ||
29096 | ||
29097 | ||
29098 | fi | |
29099 | done | |
29100 | ||
29101 | fi | |
29102 | ||
29103 | ||
29104 | ||
29105 | for ac_func in uname gethostname | |
29106 | do | |
29107 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29108 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29109 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29110 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29111 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29112 | else | |
29113 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29114 | #line $LINENO "configure" |
a848cd7e SC |
29115 | /* confdefs.h. */ |
29116 | _ACEOF | |
29117 | cat confdefs.h >>conftest.$ac_ext | |
29118 | cat >>conftest.$ac_ext <<_ACEOF | |
29119 | /* end confdefs.h. */ | |
a848cd7e SC |
29120 | /* System header to define __stub macros and hopefully few prototypes, |
29121 | which can conflict with char $ac_func (); below. | |
29122 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29123 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
29124 | #ifdef __STDC__ |
29125 | # include <limits.h> | |
29126 | #else | |
29127 | # include <assert.h> | |
29128 | #endif | |
a848cd7e SC |
29129 | /* Override any gcc2 internal prototype to avoid an error. */ |
29130 | #ifdef __cplusplus | |
29131 | extern "C" | |
29132 | { | |
29133 | #endif | |
29134 | /* We use char because int might match the return type of a gcc2 | |
29135 | builtin and then its argument prototype would still apply. */ | |
29136 | char $ac_func (); | |
29137 | /* The GNU C library defines this for functions which it implements | |
29138 | to always fail with ENOSYS. Some functions are actually named | |
29139 | something starting with __ and the normal name is an alias. */ | |
29140 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29141 | choke me | |
29142 | #else | |
29143 | char (*f) () = $ac_func; | |
29144 | #endif | |
29145 | #ifdef __cplusplus | |
29146 | } | |
29147 | #endif | |
29148 | ||
29149 | int | |
29150 | main () | |
29151 | { | |
29152 | return f != $ac_func; | |
29153 | ; | |
29154 | return 0; | |
29155 | } | |
29156 | _ACEOF | |
29157 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29158 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 29159 | (eval $ac_link) 2>&5 |
a848cd7e | 29160 | ac_status=$? |
a848cd7e SC |
29161 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29162 | (exit $ac_status); } && | |
8a7b1113 | 29163 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29165 | (eval $ac_try) 2>&5 | |
29166 | ac_status=$? | |
29167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29168 | (exit $ac_status); }; }; then | |
29169 | eval "$as_ac_var=yes" | |
29170 | else | |
29171 | echo "$as_me: failed program was:" >&5 | |
29172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29173 | ||
29174 | eval "$as_ac_var=no" | |
29175 | fi | |
8a7b1113 | 29176 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29177 | fi |
29178 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29179 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29180 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29181 | cat >>confdefs.h <<_ACEOF | |
29182 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29183 | _ACEOF | |
29184 | break | |
29185 | fi | |
29186 | done | |
29187 | ||
29188 | ||
29189 | ||
29190 | ||
29191 | ac_ext=cc | |
29192 | ac_cpp='$CXXCPP $CPPFLAGS' | |
29193 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29194 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29195 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
29196 | ||
29197 | ||
29198 | ||
29199 | for ac_func in strtok_r | |
29200 | do | |
29201 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29202 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29203 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29204 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29206 | else | |
29207 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29208 | #line $LINENO "configure" |
a848cd7e SC |
29209 | /* confdefs.h. */ |
29210 | _ACEOF | |
29211 | cat confdefs.h >>conftest.$ac_ext | |
29212 | cat >>conftest.$ac_ext <<_ACEOF | |
29213 | /* end confdefs.h. */ | |
a848cd7e SC |
29214 | /* System header to define __stub macros and hopefully few prototypes, |
29215 | which can conflict with char $ac_func (); below. | |
29216 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29217 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
29218 | #ifdef __STDC__ |
29219 | # include <limits.h> | |
29220 | #else | |
29221 | # include <assert.h> | |
29222 | #endif | |
a848cd7e SC |
29223 | /* Override any gcc2 internal prototype to avoid an error. */ |
29224 | #ifdef __cplusplus | |
29225 | extern "C" | |
29226 | { | |
29227 | #endif | |
29228 | /* We use char because int might match the return type of a gcc2 | |
29229 | builtin and then its argument prototype would still apply. */ | |
29230 | char $ac_func (); | |
29231 | /* The GNU C library defines this for functions which it implements | |
29232 | to always fail with ENOSYS. Some functions are actually named | |
29233 | something starting with __ and the normal name is an alias. */ | |
29234 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29235 | choke me | |
29236 | #else | |
29237 | char (*f) () = $ac_func; | |
29238 | #endif | |
29239 | #ifdef __cplusplus | |
29240 | } | |
29241 | #endif | |
29242 | ||
29243 | int | |
29244 | main () | |
29245 | { | |
29246 | return f != $ac_func; | |
29247 | ; | |
29248 | return 0; | |
29249 | } | |
29250 | _ACEOF | |
29251 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29252 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 29253 | (eval $ac_link) 2>&5 |
a848cd7e | 29254 | ac_status=$? |
a848cd7e SC |
29255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29256 | (exit $ac_status); } && | |
8a7b1113 | 29257 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29259 | (eval $ac_try) 2>&5 | |
29260 | ac_status=$? | |
29261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29262 | (exit $ac_status); }; }; then | |
29263 | eval "$as_ac_var=yes" | |
29264 | else | |
29265 | echo "$as_me: failed program was:" >&5 | |
29266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29267 | ||
29268 | eval "$as_ac_var=no" | |
29269 | fi | |
8a7b1113 | 29270 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29271 | fi |
29272 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29273 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29274 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29275 | cat >>confdefs.h <<_ACEOF | |
29276 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29277 | _ACEOF | |
29278 | ||
29279 | fi | |
29280 | done | |
29281 | ||
29282 | ||
29283 | ac_ext=c | |
29284 | ac_cpp='$CPP $CPPFLAGS' | |
29285 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
29286 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
29287 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
29288 | ||
29289 | ||
29290 | INET_LINK= | |
29291 | ||
29292 | for ac_func in inet_addr | |
29293 | do | |
29294 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29295 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29296 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29297 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29299 | else | |
29300 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29301 | #line $LINENO "configure" |
a848cd7e SC |
29302 | /* confdefs.h. */ |
29303 | _ACEOF | |
29304 | cat confdefs.h >>conftest.$ac_ext | |
29305 | cat >>conftest.$ac_ext <<_ACEOF | |
29306 | /* end confdefs.h. */ | |
a848cd7e SC |
29307 | /* System header to define __stub macros and hopefully few prototypes, |
29308 | which can conflict with char $ac_func (); below. | |
29309 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29310 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
29311 | #ifdef __STDC__ |
29312 | # include <limits.h> | |
29313 | #else | |
29314 | # include <assert.h> | |
29315 | #endif | |
a848cd7e SC |
29316 | /* Override any gcc2 internal prototype to avoid an error. */ |
29317 | #ifdef __cplusplus | |
29318 | extern "C" | |
29319 | { | |
29320 | #endif | |
29321 | /* We use char because int might match the return type of a gcc2 | |
29322 | builtin and then its argument prototype would still apply. */ | |
29323 | char $ac_func (); | |
29324 | /* The GNU C library defines this for functions which it implements | |
29325 | to always fail with ENOSYS. Some functions are actually named | |
29326 | something starting with __ and the normal name is an alias. */ | |
29327 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29328 | choke me | |
29329 | #else | |
29330 | char (*f) () = $ac_func; | |
29331 | #endif | |
29332 | #ifdef __cplusplus | |
29333 | } | |
29334 | #endif | |
29335 | ||
29336 | int | |
29337 | main () | |
29338 | { | |
29339 | return f != $ac_func; | |
29340 | ; | |
29341 | return 0; | |
29342 | } | |
29343 | _ACEOF | |
29344 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29345 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 29346 | (eval $ac_link) 2>&5 |
a848cd7e | 29347 | ac_status=$? |
a848cd7e SC |
29348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29349 | (exit $ac_status); } && | |
8a7b1113 | 29350 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29352 | (eval $ac_try) 2>&5 | |
29353 | ac_status=$? | |
29354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29355 | (exit $ac_status); }; }; then | |
29356 | eval "$as_ac_var=yes" | |
29357 | else | |
29358 | echo "$as_me: failed program was:" >&5 | |
29359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29360 | ||
29361 | eval "$as_ac_var=no" | |
29362 | fi | |
8a7b1113 | 29363 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29364 | fi |
29365 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29366 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29367 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29368 | cat >>confdefs.h <<_ACEOF | |
29369 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29370 | _ACEOF | |
29371 | cat >>confdefs.h <<\_ACEOF | |
29372 | #define HAVE_INET_ADDR 1 | |
29373 | _ACEOF | |
29374 | ||
29375 | else | |
29376 | ||
29377 | echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5 | |
29378 | echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6 | |
29379 | if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then | |
29380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29381 | else | |
29382 | ac_check_lib_save_LIBS=$LIBS | |
29383 | LIBS="-lnsl $LIBS" | |
29384 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29385 | #line $LINENO "configure" |
a848cd7e SC |
29386 | /* confdefs.h. */ |
29387 | _ACEOF | |
29388 | cat confdefs.h >>conftest.$ac_ext | |
29389 | cat >>conftest.$ac_ext <<_ACEOF | |
29390 | /* end confdefs.h. */ | |
29391 | ||
29392 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29393 | #ifdef __cplusplus | |
29394 | extern "C" | |
29395 | #endif | |
29396 | /* We use char because int might match the return type of a gcc2 | |
29397 | builtin and then its argument prototype would still apply. */ | |
29398 | char inet_addr (); | |
29399 | int | |
29400 | main () | |
29401 | { | |
29402 | inet_addr (); | |
29403 | ; | |
29404 | return 0; | |
29405 | } | |
29406 | _ACEOF | |
29407 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 29409 | (eval $ac_link) 2>&5 |
a848cd7e | 29410 | ac_status=$? |
a848cd7e SC |
29411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29412 | (exit $ac_status); } && | |
8a7b1113 | 29413 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29415 | (eval $ac_try) 2>&5 | |
29416 | ac_status=$? | |
29417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29418 | (exit $ac_status); }; }; then | |
29419 | ac_cv_lib_nsl_inet_addr=yes | |
29420 | else | |
29421 | echo "$as_me: failed program was:" >&5 | |
29422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29423 | ||
29424 | ac_cv_lib_nsl_inet_addr=no | |
29425 | fi | |
8a7b1113 | 29426 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29427 | LIBS=$ac_check_lib_save_LIBS |
29428 | fi | |
29429 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5 | |
29430 | echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6 | |
29431 | if test $ac_cv_lib_nsl_inet_addr = yes; then | |
29432 | INET_LINK="nsl" | |
29433 | else | |
29434 | ||
29435 | echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5 | |
29436 | echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6 | |
29437 | if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then | |
29438 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29439 | else | |
29440 | ac_check_lib_save_LIBS=$LIBS | |
29441 | LIBS="-lresolv $LIBS" | |
29442 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29443 | #line $LINENO "configure" |
a848cd7e SC |
29444 | /* confdefs.h. */ |
29445 | _ACEOF | |
29446 | cat confdefs.h >>conftest.$ac_ext | |
29447 | cat >>conftest.$ac_ext <<_ACEOF | |
29448 | /* end confdefs.h. */ | |
29449 | ||
29450 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29451 | #ifdef __cplusplus | |
29452 | extern "C" | |
29453 | #endif | |
29454 | /* We use char because int might match the return type of a gcc2 | |
29455 | builtin and then its argument prototype would still apply. */ | |
29456 | char inet_addr (); | |
29457 | int | |
29458 | main () | |
29459 | { | |
29460 | inet_addr (); | |
29461 | ; | |
29462 | return 0; | |
29463 | } | |
29464 | _ACEOF | |
29465 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29466 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 29467 | (eval $ac_link) 2>&5 |
a848cd7e | 29468 | ac_status=$? |
a848cd7e SC |
29469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29470 | (exit $ac_status); } && | |
8a7b1113 | 29471 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29473 | (eval $ac_try) 2>&5 | |
29474 | ac_status=$? | |
29475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29476 | (exit $ac_status); }; }; then | |
29477 | ac_cv_lib_resolv_inet_addr=yes | |
29478 | else | |
29479 | echo "$as_me: failed program was:" >&5 | |
29480 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29481 | ||
29482 | ac_cv_lib_resolv_inet_addr=no | |
29483 | fi | |
8a7b1113 | 29484 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29485 | LIBS=$ac_check_lib_save_LIBS |
29486 | fi | |
29487 | echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5 | |
29488 | echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6 | |
29489 | if test $ac_cv_lib_resolv_inet_addr = yes; then | |
29490 | INET_LINK="resolv" | |
29491 | else | |
29492 | ||
29493 | echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5 | |
29494 | echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6 | |
29495 | if test "${ac_cv_lib_socket_inet_addr+set}" = set; then | |
29496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29497 | else | |
29498 | ac_check_lib_save_LIBS=$LIBS | |
29499 | LIBS="-lsocket $LIBS" | |
29500 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29501 | #line $LINENO "configure" |
a848cd7e SC |
29502 | /* confdefs.h. */ |
29503 | _ACEOF | |
29504 | cat confdefs.h >>conftest.$ac_ext | |
29505 | cat >>conftest.$ac_ext <<_ACEOF | |
29506 | /* end confdefs.h. */ | |
29507 | ||
29508 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29509 | #ifdef __cplusplus | |
29510 | extern "C" | |
29511 | #endif | |
29512 | /* We use char because int might match the return type of a gcc2 | |
29513 | builtin and then its argument prototype would still apply. */ | |
29514 | char inet_addr (); | |
29515 | int | |
29516 | main () | |
29517 | { | |
29518 | inet_addr (); | |
29519 | ; | |
29520 | return 0; | |
29521 | } | |
29522 | _ACEOF | |
29523 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29524 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 29525 | (eval $ac_link) 2>&5 |
a848cd7e | 29526 | ac_status=$? |
a848cd7e SC |
29527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29528 | (exit $ac_status); } && | |
8a7b1113 | 29529 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29530 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29531 | (eval $ac_try) 2>&5 | |
29532 | ac_status=$? | |
29533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29534 | (exit $ac_status); }; }; then | |
29535 | ac_cv_lib_socket_inet_addr=yes | |
29536 | else | |
29537 | echo "$as_me: failed program was:" >&5 | |
29538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29539 | ||
29540 | ac_cv_lib_socket_inet_addr=no | |
29541 | fi | |
8a7b1113 | 29542 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29543 | LIBS=$ac_check_lib_save_LIBS |
29544 | fi | |
29545 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5 | |
29546 | echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6 | |
29547 | if test $ac_cv_lib_socket_inet_addr = yes; then | |
29548 | INET_LINK="socket" | |
29549 | ||
29550 | fi | |
29551 | ||
29552 | ||
29553 | ||
29554 | fi | |
29555 | ||
29556 | ||
29557 | ||
29558 | fi | |
29559 | ||
29560 | ||
29561 | ||
29562 | fi | |
29563 | done | |
29564 | ||
29565 | ||
29566 | ||
29567 | for ac_func in inet_aton | |
29568 | do | |
29569 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
29570 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
29571 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
29572 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
29573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29574 | else | |
29575 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29576 | #line $LINENO "configure" |
a848cd7e SC |
29577 | /* confdefs.h. */ |
29578 | _ACEOF | |
29579 | cat confdefs.h >>conftest.$ac_ext | |
29580 | cat >>conftest.$ac_ext <<_ACEOF | |
29581 | /* end confdefs.h. */ | |
a848cd7e SC |
29582 | /* System header to define __stub macros and hopefully few prototypes, |
29583 | which can conflict with char $ac_func (); below. | |
29584 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
29585 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
29586 | #ifdef __STDC__ |
29587 | # include <limits.h> | |
29588 | #else | |
29589 | # include <assert.h> | |
29590 | #endif | |
a848cd7e SC |
29591 | /* Override any gcc2 internal prototype to avoid an error. */ |
29592 | #ifdef __cplusplus | |
29593 | extern "C" | |
29594 | { | |
29595 | #endif | |
29596 | /* We use char because int might match the return type of a gcc2 | |
29597 | builtin and then its argument prototype would still apply. */ | |
29598 | char $ac_func (); | |
29599 | /* The GNU C library defines this for functions which it implements | |
29600 | to always fail with ENOSYS. Some functions are actually named | |
29601 | something starting with __ and the normal name is an alias. */ | |
29602 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
29603 | choke me | |
29604 | #else | |
29605 | char (*f) () = $ac_func; | |
29606 | #endif | |
29607 | #ifdef __cplusplus | |
29608 | } | |
29609 | #endif | |
29610 | ||
29611 | int | |
29612 | main () | |
29613 | { | |
29614 | return f != $ac_func; | |
29615 | ; | |
29616 | return 0; | |
29617 | } | |
29618 | _ACEOF | |
29619 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29620 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 29621 | (eval $ac_link) 2>&5 |
a848cd7e | 29622 | ac_status=$? |
a848cd7e SC |
29623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29624 | (exit $ac_status); } && | |
8a7b1113 | 29625 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29627 | (eval $ac_try) 2>&5 | |
29628 | ac_status=$? | |
29629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29630 | (exit $ac_status); }; }; then | |
29631 | eval "$as_ac_var=yes" | |
29632 | else | |
29633 | echo "$as_me: failed program was:" >&5 | |
29634 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29635 | ||
29636 | eval "$as_ac_var=no" | |
29637 | fi | |
8a7b1113 | 29638 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29639 | fi |
29640 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
29641 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
29642 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
29643 | cat >>confdefs.h <<_ACEOF | |
29644 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
29645 | _ACEOF | |
29646 | cat >>confdefs.h <<\_ACEOF | |
29647 | #define HAVE_INET_ATON 1 | |
29648 | _ACEOF | |
29649 | ||
29650 | else | |
29651 | ||
29652 | as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh` | |
29653 | echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5 | |
29654 | echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6 | |
29655 | if eval "test \"\${$as_ac_Lib+set}\" = set"; then | |
29656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29657 | else | |
29658 | ac_check_lib_save_LIBS=$LIBS | |
29659 | LIBS="-l$INET_LINK $LIBS" | |
29660 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29661 | #line $LINENO "configure" |
a848cd7e SC |
29662 | /* confdefs.h. */ |
29663 | _ACEOF | |
29664 | cat confdefs.h >>conftest.$ac_ext | |
29665 | cat >>conftest.$ac_ext <<_ACEOF | |
29666 | /* end confdefs.h. */ | |
29667 | ||
29668 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29669 | #ifdef __cplusplus | |
29670 | extern "C" | |
29671 | #endif | |
29672 | /* We use char because int might match the return type of a gcc2 | |
29673 | builtin and then its argument prototype would still apply. */ | |
29674 | char inet_aton (); | |
29675 | int | |
29676 | main () | |
29677 | { | |
29678 | inet_aton (); | |
29679 | ; | |
29680 | return 0; | |
29681 | } | |
29682 | _ACEOF | |
29683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 29685 | (eval $ac_link) 2>&5 |
a848cd7e | 29686 | ac_status=$? |
a848cd7e SC |
29687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29688 | (exit $ac_status); } && | |
8a7b1113 | 29689 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29691 | (eval $ac_try) 2>&5 | |
29692 | ac_status=$? | |
29693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29694 | (exit $ac_status); }; }; then | |
29695 | eval "$as_ac_Lib=yes" | |
29696 | else | |
29697 | echo "$as_me: failed program was:" >&5 | |
29698 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29699 | ||
29700 | eval "$as_ac_Lib=no" | |
29701 | fi | |
8a7b1113 | 29702 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29703 | LIBS=$ac_check_lib_save_LIBS |
29704 | fi | |
29705 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5 | |
29706 | echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6 | |
29707 | if test `eval echo '${'$as_ac_Lib'}'` = yes; then | |
29708 | cat >>confdefs.h <<\_ACEOF | |
29709 | #define HAVE_INET_ATON 1 | |
29710 | _ACEOF | |
29711 | ||
29712 | fi | |
29713 | ||
29714 | ||
29715 | fi | |
29716 | done | |
29717 | ||
29718 | ||
29719 | if test "x$INET_LINK" != "x"; then | |
29720 | cat >>confdefs.h <<\_ACEOF | |
29721 | #define HAVE_INET_ADDR 1 | |
29722 | _ACEOF | |
29723 | ||
29724 | INET_LINK=" -l$INET_LINK" | |
29725 | fi | |
29726 | ||
29727 | fi | |
29728 | ||
29729 | ||
29730 | ||
29731 | EXTRALIBS_ESD= | |
29732 | echo "$as_me:$LINENO: checking for esd_close in -lesd" >&5 | |
29733 | echo $ECHO_N "checking for esd_close in -lesd... $ECHO_C" >&6 | |
29734 | if test "${ac_cv_lib_esd_esd_close+set}" = set; then | |
29735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29736 | else | |
29737 | ac_check_lib_save_LIBS=$LIBS | |
29738 | LIBS="-lesd $LIBS" | |
29739 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29740 | #line $LINENO "configure" |
a848cd7e SC |
29741 | /* confdefs.h. */ |
29742 | _ACEOF | |
29743 | cat confdefs.h >>conftest.$ac_ext | |
29744 | cat >>conftest.$ac_ext <<_ACEOF | |
29745 | /* end confdefs.h. */ | |
29746 | ||
29747 | /* Override any gcc2 internal prototype to avoid an error. */ | |
29748 | #ifdef __cplusplus | |
29749 | extern "C" | |
29750 | #endif | |
29751 | /* We use char because int might match the return type of a gcc2 | |
29752 | builtin and then its argument prototype would still apply. */ | |
29753 | char esd_close (); | |
29754 | int | |
29755 | main () | |
29756 | { | |
29757 | esd_close (); | |
29758 | ; | |
29759 | return 0; | |
29760 | } | |
29761 | _ACEOF | |
29762 | rm -f conftest.$ac_objext conftest$ac_exeext | |
29763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 29764 | (eval $ac_link) 2>&5 |
a848cd7e | 29765 | ac_status=$? |
a848cd7e SC |
29766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29767 | (exit $ac_status); } && | |
8a7b1113 | 29768 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
29769 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29770 | (eval $ac_try) 2>&5 | |
29771 | ac_status=$? | |
29772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29773 | (exit $ac_status); }; }; then | |
29774 | ac_cv_lib_esd_esd_close=yes | |
29775 | else | |
29776 | echo "$as_me: failed program was:" >&5 | |
29777 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29778 | ||
29779 | ac_cv_lib_esd_esd_close=no | |
29780 | fi | |
8a7b1113 | 29781 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
29782 | LIBS=$ac_check_lib_save_LIBS |
29783 | fi | |
29784 | echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_close" >&5 | |
29785 | echo "${ECHO_T}$ac_cv_lib_esd_esd_close" >&6 | |
29786 | if test $ac_cv_lib_esd_esd_close = yes; then | |
29787 | ||
29788 | ||
29789 | for ac_header in esd.h | |
29790 | do | |
29791 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
29792 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29793 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29794 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29795 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29797 | fi | |
29798 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29799 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29800 | else | |
29801 | # Is the header compilable? | |
29802 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
29803 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
29804 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29805 | #line $LINENO "configure" |
a848cd7e SC |
29806 | /* confdefs.h. */ |
29807 | _ACEOF | |
29808 | cat confdefs.h >>conftest.$ac_ext | |
29809 | cat >>conftest.$ac_ext <<_ACEOF | |
29810 | /* end confdefs.h. */ | |
29811 | $ac_includes_default | |
29812 | #include <$ac_header> | |
29813 | _ACEOF | |
29814 | rm -f conftest.$ac_objext | |
29815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 29816 | (eval $ac_compile) 2>&5 |
a848cd7e | 29817 | ac_status=$? |
a848cd7e SC |
29818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29819 | (exit $ac_status); } && | |
8a7b1113 | 29820 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
29821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29822 | (eval $ac_try) 2>&5 | |
29823 | ac_status=$? | |
29824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29825 | (exit $ac_status); }; }; then | |
29826 | ac_header_compiler=yes | |
29827 | else | |
29828 | echo "$as_me: failed program was:" >&5 | |
29829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29830 | ||
29831 | ac_header_compiler=no | |
29832 | fi | |
8a7b1113 | 29833 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29834 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
29835 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
29836 | ||
29837 | # Is the header present? | |
29838 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
29839 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
29840 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29841 | #line $LINENO "configure" |
a848cd7e SC |
29842 | /* confdefs.h. */ |
29843 | _ACEOF | |
29844 | cat confdefs.h >>conftest.$ac_ext | |
29845 | cat >>conftest.$ac_ext <<_ACEOF | |
29846 | /* end confdefs.h. */ | |
29847 | #include <$ac_header> | |
29848 | _ACEOF | |
29849 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
29850 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
29851 | ac_status=$? | |
29852 | grep -v '^ *+' conftest.er1 >conftest.err | |
29853 | rm -f conftest.er1 | |
29854 | cat conftest.err >&5 | |
29855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29856 | (exit $ac_status); } >/dev/null; then | |
29857 | if test -s conftest.err; then | |
29858 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
29859 | else |
29860 | ac_cpp_err= | |
29861 | fi | |
29862 | else | |
29863 | ac_cpp_err=yes | |
29864 | fi | |
29865 | if test -z "$ac_cpp_err"; then | |
29866 | ac_header_preproc=yes | |
29867 | else | |
29868 | echo "$as_me: failed program was:" >&5 | |
29869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29870 | ||
29871 | ac_header_preproc=no | |
29872 | fi | |
29873 | rm -f conftest.err conftest.$ac_ext | |
29874 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
29875 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
29876 | ||
29877 | # So? What about this header? | |
8a7b1113 VZ |
29878 | case $ac_header_compiler:$ac_header_preproc in |
29879 | yes:no ) | |
a848cd7e SC |
29880 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
29881 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
29882 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
29883 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
29884 | ( | |
29885 | cat <<\_ASBOX | |
29886 | ## ------------------------------------ ## | |
29887 | ## Report this to bug-autoconf@gnu.org. ## | |
29888 | ## ------------------------------------ ## | |
29889 | _ASBOX | |
29890 | ) | | |
29891 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 29892 | ;; |
8a7b1113 | 29893 | no:yes ) |
a848cd7e SC |
29894 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
29895 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
29896 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
29897 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
29898 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
29899 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
29900 | ( |
29901 | cat <<\_ASBOX | |
8a7b1113 VZ |
29902 | ## ------------------------------------ ## |
29903 | ## Report this to bug-autoconf@gnu.org. ## | |
29904 | ## ------------------------------------ ## | |
a848cd7e SC |
29905 | _ASBOX |
29906 | ) | | |
29907 | sed "s/^/$as_me: WARNING: /" >&2 | |
29908 | ;; | |
29909 | esac | |
29910 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
29911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
29912 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
29913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
29914 | else | |
8a7b1113 | 29915 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
29916 | fi |
29917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
29918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
29919 | ||
29920 | fi | |
29921 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
29922 | cat >>confdefs.h <<_ACEOF | |
29923 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
29924 | _ACEOF | |
29925 | ||
29926 | EXTRALIBS_ESD="-lesd" | |
29927 | ||
29928 | fi | |
29929 | ||
29930 | done | |
29931 | ||
29932 | ||
29933 | fi | |
29934 | ||
29935 | ||
29936 | ||
29937 | echo "$as_me:$LINENO: checking for known CD-ROM interface" >&5 | |
29938 | echo $ECHO_N "checking for known CD-ROM interface... $ECHO_C" >&6 | |
29939 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 29940 | #line $LINENO "configure" |
a848cd7e SC |
29941 | /* confdefs.h. */ |
29942 | _ACEOF | |
29943 | cat confdefs.h >>conftest.$ac_ext | |
29944 | cat >>conftest.$ac_ext <<_ACEOF | |
29945 | /* end confdefs.h. */ | |
29946 | #ifdef __linux__ | |
29947 | #include <linux/cdrom.h> | |
29948 | #else | |
29949 | /* For Solaris */ | |
29950 | #include <sys/cdio.h> | |
29951 | #endif | |
29952 | ||
29953 | int | |
29954 | main () | |
29955 | { | |
29956 | struct cdrom_tocentry entry, old_entry; | |
29957 | ; | |
29958 | return 0; | |
29959 | } | |
29960 | _ACEOF | |
29961 | rm -f conftest.$ac_objext | |
29962 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 29963 | (eval $ac_compile) 2>&5 |
a848cd7e | 29964 | ac_status=$? |
a848cd7e SC |
29965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
29966 | (exit $ac_status); } && | |
8a7b1113 | 29967 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
29968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
29969 | (eval $ac_try) 2>&5 | |
29970 | ac_status=$? | |
29971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
29972 | (exit $ac_status); }; }; then | |
29973 | echo "$as_me:$LINENO: result: yes" >&5 | |
29974 | echo "${ECHO_T}yes" >&6 | |
29975 | cat >>confdefs.h <<\_ACEOF | |
29976 | #define HAVE_KNOWN_CDROM_INTERFACE 1 | |
29977 | _ACEOF | |
29978 | ||
29979 | else | |
29980 | echo "$as_me: failed program was:" >&5 | |
29981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
29982 | ||
29983 | echo "$as_me:$LINENO: result: no" >&5 | |
29984 | echo "${ECHO_T}no" >&6 | |
29985 | fi | |
8a7b1113 | 29986 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
29987 | |
29988 | ||
29989 | cat >confcache <<\_ACEOF | |
29990 | # This file is a shell script that caches the results of configure | |
29991 | # tests run on this system so they can be shared between configure | |
29992 | # scripts and configure runs, see configure's option --config-cache. | |
29993 | # It is not useful on other systems. If it contains results you don't | |
29994 | # want to keep, you may remove or edit it. | |
29995 | # | |
29996 | # config.status only pays attention to the cache file if you give it | |
29997 | # the --recheck option to rerun configure. | |
29998 | # | |
29999 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
30000 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
30001 | # following values. | |
30002 | ||
30003 | _ACEOF | |
30004 | ||
30005 | # The following way of writing the cache mishandles newlines in values, | |
30006 | # but we know of no workaround that is simple, portable, and efficient. | |
30007 | # So, don't put newlines in cache variables' values. | |
30008 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
30009 | # and sets the high bit in the cache file unless we assign to the vars. | |
30010 | { | |
30011 | (set) 2>&1 | | |
30012 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
30013 | *ac_space=\ *) | |
30014 | # `set' does not quote correctly, so add quotes (double-quote | |
30015 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
30016 | sed -n \ | |
8a7b1113 VZ |
30017 | "s/'/'\\\\''/g; |
30018 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
30019 | ;; |
30020 | *) | |
30021 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
30022 | sed -n \ | |
8a7b1113 | 30023 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
30024 | ;; |
30025 | esac; | |
30026 | } | | |
30027 | sed ' | |
30028 | t clear | |
30029 | : clear | |
30030 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
30031 | t end | |
30032 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
30033 | : end' >>confcache | |
30034 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
30035 | if test -w $cache_file; then | |
30036 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
30037 | cat confcache >$cache_file | |
30038 | else | |
30039 | echo "not updating unwritable cache $cache_file" | |
30040 | fi | |
30041 | fi | |
30042 | rm -f confcache | |
30043 | ||
30044 | ||
30045 | CPP_MT_FLAG= | |
30046 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
30047 | ||
30048 | ||
30049 | THREADS_LINK= | |
30050 | THREADS_CFLAGS= | |
30051 | ||
30052 | if test "$wxUSE_THREADS" = "yes" ; then | |
30053 | if test "$USE_BEOS" = 1; then | |
30054 | { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5 | |
30055 | echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;} | |
30056 | wxUSE_THREADS="no" | |
30057 | fi | |
30058 | fi | |
30059 | ||
30060 | if test "$wxUSE_THREADS" = "yes" ; then | |
30061 | ||
30062 | ||
30063 | THREAD_OPTS="-pthread" | |
30064 | case "${host}" in | |
30065 | *-*-solaris2* | *-*-sunos4* ) | |
30066 | if test "x$GCC" = "xyes"; then | |
30067 | THREAD_OPTS="-pthreads $THREAD_OPTS" | |
30068 | else | |
30069 | THREAD_OPTS="-mt $THREAD_OPTS" | |
30070 | fi | |
30071 | ;; | |
30072 | *-*-freebsd*) | |
30073 | THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r" | |
30074 | ;; | |
30075 | *-*-darwin* | *-*-cygwin* ) | |
30076 | THREAD_OPTS="" | |
30077 | ;; | |
30078 | *-*-aix*) | |
30079 | THREAD_OPTS="pthreads" | |
30080 | ;; | |
30081 | *-hp-hpux* ) | |
30082 | if test "x$GCC" != "xyes"; then | |
30083 | THREAD_OPTS="" | |
30084 | fi | |
30085 | ;; | |
30086 | ||
30087 | *-*-irix* ) | |
30088 | if test "x$GCC" = "xyes"; then | |
30089 | THREAD_OPTS="" | |
30090 | fi | |
30091 | ;; | |
30092 | ||
30093 | *-*-*UnixWare*) | |
30094 | if test "x$GCC" != "xyes"; then | |
30095 | THREAD_OPTS="-Ethread" | |
30096 | fi | |
30097 | ;; | |
30098 | esac | |
30099 | ||
30100 | THREAD_OPTS="$THREAD_OPTS pthread none" | |
30101 | ||
30102 | THREADS_OK=no | |
30103 | for flag in $THREAD_OPTS; do | |
30104 | case $flag in | |
30105 | none) | |
30106 | echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5 | |
30107 | echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6 | |
30108 | ;; | |
30109 | ||
30110 | -*) | |
30111 | echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5 | |
30112 | echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6 | |
30113 | THREADS_CFLAGS="$flag" | |
30114 | ;; | |
30115 | ||
30116 | *) | |
30117 | echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5 | |
30118 | echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6 | |
30119 | THREADS_LINK="-l$flag" | |
30120 | ;; | |
30121 | esac | |
30122 | ||
30123 | save_LIBS="$LIBS" | |
30124 | save_CFLAGS="$CFLAGS" | |
30125 | LIBS="$THREADS_LINK $LIBS" | |
30126 | CFLAGS="$THREADS_CFLAGS $CFLAGS" | |
30127 | ||
30128 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 30129 | #line $LINENO "configure" |
a848cd7e SC |
30130 | /* confdefs.h. */ |
30131 | _ACEOF | |
30132 | cat confdefs.h >>conftest.$ac_ext | |
30133 | cat >>conftest.$ac_ext <<_ACEOF | |
30134 | /* end confdefs.h. */ | |
30135 | #include <pthread.h> | |
30136 | int | |
30137 | main () | |
30138 | { | |
30139 | pthread_create(0,0,0,0); | |
30140 | ; | |
30141 | return 0; | |
30142 | } | |
30143 | _ACEOF | |
30144 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30145 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 30146 | (eval $ac_link) 2>&5 |
a848cd7e | 30147 | ac_status=$? |
a848cd7e SC |
30148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30149 | (exit $ac_status); } && | |
8a7b1113 | 30150 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30152 | (eval $ac_try) 2>&5 | |
30153 | ac_status=$? | |
30154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30155 | (exit $ac_status); }; }; then | |
30156 | THREADS_OK=yes | |
30157 | else | |
30158 | echo "$as_me: failed program was:" >&5 | |
30159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30160 | ||
30161 | fi | |
8a7b1113 | 30162 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
30163 | |
30164 | LIBS="$save_LIBS" | |
30165 | CFLAGS="$save_CFLAGS" | |
30166 | ||
30167 | echo "$as_me:$LINENO: result: $THREADS_OK" >&5 | |
30168 | echo "${ECHO_T}$THREADS_OK" >&6 | |
30169 | if test "x$THREADS_OK" = "xyes"; then | |
30170 | break; | |
30171 | fi | |
30172 | ||
30173 | THREADS_LINK="" | |
30174 | THREADS_CFLAGS="" | |
30175 | done | |
30176 | ||
30177 | if test "x$THREADS_OK" != "xyes"; then | |
30178 | wxUSE_THREADS=no | |
30179 | { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5 | |
30180 | echo "$as_me: WARNING: No thread support on this system... disabled" >&2;} | |
30181 | else | |
30182 | LDFLAGS="$THREADS_CFLAGS $LDFLAGS" | |
30183 | LIBS="$THREADS_LINK $LIBS" | |
30184 | ||
30185 | echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5 | |
30186 | echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6 | |
30187 | flag=no | |
30188 | case "${host}" in | |
30189 | *-aix*) | |
30190 | LDFLAGS="-L/usr/lib/threads $LDFLAGS" | |
30191 | flag="-D_THREAD_SAFE" | |
30192 | ;; | |
30193 | *-freebsd*) | |
30194 | flag="-D_THREAD_SAFE" | |
30195 | ;; | |
30196 | *-hp-hpux* ) | |
30197 | flag="-D_REENTRANT" | |
30198 | if test "x$GCC" != "xyes"; then | |
30199 | flag="$flag -D_RWSTD_MULTI_THREAD" | |
473276a9 VS |
30200 | |
30201 | LIBS="$LIBS -lcma" | |
a848cd7e SC |
30202 | fi |
30203 | ;; | |
30204 | *solaris* | alpha*-osf*) | |
30205 | flag="-D_REENTRANT" | |
30206 | ;; | |
30207 | esac | |
30208 | echo "$as_me:$LINENO: result: ${flag}" >&5 | |
30209 | echo "${ECHO_T}${flag}" >&6 | |
30210 | if test "x$flag" != xno; then | |
30211 | THREADS_CFLAGS="$THREADS_CFLAGS $flag" | |
30212 | fi | |
30213 | ||
30214 | if test "x$THREADS_CFLAGS" != "x"; then | |
30215 | CFLAGS="$CFLAGS $THREADS_CFLAGS" | |
30216 | CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS" | |
30217 | fi | |
30218 | fi | |
30219 | fi | |
30220 | ||
30221 | if test "$wxUSE_THREADS" = "yes" ; then | |
30222 | ||
30223 | for ac_func in thr_setconcurrency | |
30224 | do | |
30225 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
30226 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
30227 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
30228 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
30229 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30230 | else | |
30231 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 30232 | #line $LINENO "configure" |
a848cd7e SC |
30233 | /* confdefs.h. */ |
30234 | _ACEOF | |
30235 | cat confdefs.h >>conftest.$ac_ext | |
30236 | cat >>conftest.$ac_ext <<_ACEOF | |
30237 | /* end confdefs.h. */ | |
a848cd7e SC |
30238 | /* System header to define __stub macros and hopefully few prototypes, |
30239 | which can conflict with char $ac_func (); below. | |
30240 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30241 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
30242 | #ifdef __STDC__ |
30243 | # include <limits.h> | |
30244 | #else | |
30245 | # include <assert.h> | |
30246 | #endif | |
a848cd7e SC |
30247 | /* Override any gcc2 internal prototype to avoid an error. */ |
30248 | #ifdef __cplusplus | |
30249 | extern "C" | |
30250 | { | |
30251 | #endif | |
30252 | /* We use char because int might match the return type of a gcc2 | |
30253 | builtin and then its argument prototype would still apply. */ | |
30254 | char $ac_func (); | |
30255 | /* The GNU C library defines this for functions which it implements | |
30256 | to always fail with ENOSYS. Some functions are actually named | |
30257 | something starting with __ and the normal name is an alias. */ | |
30258 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
30259 | choke me | |
30260 | #else | |
30261 | char (*f) () = $ac_func; | |
30262 | #endif | |
30263 | #ifdef __cplusplus | |
30264 | } | |
30265 | #endif | |
30266 | ||
30267 | int | |
30268 | main () | |
30269 | { | |
30270 | return f != $ac_func; | |
30271 | ; | |
30272 | return 0; | |
30273 | } | |
30274 | _ACEOF | |
30275 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30276 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 30277 | (eval $ac_link) 2>&5 |
a848cd7e | 30278 | ac_status=$? |
a848cd7e SC |
30279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30280 | (exit $ac_status); } && | |
8a7b1113 | 30281 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30283 | (eval $ac_try) 2>&5 | |
30284 | ac_status=$? | |
30285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30286 | (exit $ac_status); }; }; then | |
30287 | eval "$as_ac_var=yes" | |
30288 | else | |
30289 | echo "$as_me: failed program was:" >&5 | |
30290 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30291 | ||
30292 | eval "$as_ac_var=no" | |
30293 | fi | |
8a7b1113 | 30294 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
30295 | fi |
30296 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
30297 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
30298 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
30299 | cat >>confdefs.h <<_ACEOF | |
30300 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
30301 | _ACEOF | |
30302 | ||
30303 | fi | |
30304 | done | |
30305 | ||
30306 | ||
30307 | ||
30308 | for ac_header in sched.h | |
30309 | do | |
30310 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
30311 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30312 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30313 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30314 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30316 | fi | |
30317 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30318 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30319 | else | |
30320 | # Is the header compilable? | |
30321 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
30322 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
30323 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 30324 | #line $LINENO "configure" |
a848cd7e SC |
30325 | /* confdefs.h. */ |
30326 | _ACEOF | |
30327 | cat confdefs.h >>conftest.$ac_ext | |
30328 | cat >>conftest.$ac_ext <<_ACEOF | |
30329 | /* end confdefs.h. */ | |
30330 | $ac_includes_default | |
30331 | #include <$ac_header> | |
30332 | _ACEOF | |
30333 | rm -f conftest.$ac_objext | |
30334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 30335 | (eval $ac_compile) 2>&5 |
a848cd7e | 30336 | ac_status=$? |
a848cd7e SC |
30337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30338 | (exit $ac_status); } && | |
8a7b1113 | 30339 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
30340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30341 | (eval $ac_try) 2>&5 | |
30342 | ac_status=$? | |
30343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30344 | (exit $ac_status); }; }; then | |
30345 | ac_header_compiler=yes | |
30346 | else | |
30347 | echo "$as_me: failed program was:" >&5 | |
30348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30349 | ||
30350 | ac_header_compiler=no | |
30351 | fi | |
8a7b1113 | 30352 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
30353 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
30354 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
30355 | ||
30356 | # Is the header present? | |
30357 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
30358 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
30359 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 30360 | #line $LINENO "configure" |
a848cd7e SC |
30361 | /* confdefs.h. */ |
30362 | _ACEOF | |
30363 | cat confdefs.h >>conftest.$ac_ext | |
30364 | cat >>conftest.$ac_ext <<_ACEOF | |
30365 | /* end confdefs.h. */ | |
30366 | #include <$ac_header> | |
30367 | _ACEOF | |
30368 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
30369 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
30370 | ac_status=$? | |
30371 | grep -v '^ *+' conftest.er1 >conftest.err | |
30372 | rm -f conftest.er1 | |
30373 | cat conftest.err >&5 | |
30374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30375 | (exit $ac_status); } >/dev/null; then | |
30376 | if test -s conftest.err; then | |
30377 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
30378 | else |
30379 | ac_cpp_err= | |
30380 | fi | |
30381 | else | |
30382 | ac_cpp_err=yes | |
30383 | fi | |
30384 | if test -z "$ac_cpp_err"; then | |
30385 | ac_header_preproc=yes | |
30386 | else | |
30387 | echo "$as_me: failed program was:" >&5 | |
30388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30389 | ||
30390 | ac_header_preproc=no | |
30391 | fi | |
30392 | rm -f conftest.err conftest.$ac_ext | |
30393 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
30394 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
30395 | ||
30396 | # So? What about this header? | |
8a7b1113 VZ |
30397 | case $ac_header_compiler:$ac_header_preproc in |
30398 | yes:no ) | |
a848cd7e SC |
30399 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
30400 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
30401 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
30402 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
30403 | ( | |
30404 | cat <<\_ASBOX | |
30405 | ## ------------------------------------ ## | |
30406 | ## Report this to bug-autoconf@gnu.org. ## | |
30407 | ## ------------------------------------ ## | |
30408 | _ASBOX | |
30409 | ) | | |
30410 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 30411 | ;; |
8a7b1113 | 30412 | no:yes ) |
a848cd7e SC |
30413 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
30414 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
30415 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
30416 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
30417 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
30418 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
30419 | ( |
30420 | cat <<\_ASBOX | |
8a7b1113 VZ |
30421 | ## ------------------------------------ ## |
30422 | ## Report this to bug-autoconf@gnu.org. ## | |
30423 | ## ------------------------------------ ## | |
a848cd7e SC |
30424 | _ASBOX |
30425 | ) | | |
30426 | sed "s/^/$as_me: WARNING: /" >&2 | |
30427 | ;; | |
30428 | esac | |
30429 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
30430 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
30431 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
30432 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30433 | else | |
8a7b1113 | 30434 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
30435 | fi |
30436 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
30437 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
30438 | ||
30439 | fi | |
30440 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
30441 | cat >>confdefs.h <<_ACEOF | |
30442 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
30443 | _ACEOF | |
30444 | ||
30445 | fi | |
30446 | ||
30447 | done | |
30448 | ||
30449 | if test "$ac_cv_header_sched_h" = "yes"; then | |
30450 | echo "$as_me:$LINENO: checking for sched_yield" >&5 | |
30451 | echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6 | |
30452 | if test "${ac_cv_func_sched_yield+set}" = set; then | |
30453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30454 | else | |
30455 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 30456 | #line $LINENO "configure" |
a848cd7e SC |
30457 | /* confdefs.h. */ |
30458 | _ACEOF | |
30459 | cat confdefs.h >>conftest.$ac_ext | |
30460 | cat >>conftest.$ac_ext <<_ACEOF | |
30461 | /* end confdefs.h. */ | |
a848cd7e SC |
30462 | /* System header to define __stub macros and hopefully few prototypes, |
30463 | which can conflict with char sched_yield (); below. | |
30464 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30465 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
30466 | #ifdef __STDC__ |
30467 | # include <limits.h> | |
30468 | #else | |
30469 | # include <assert.h> | |
30470 | #endif | |
a848cd7e SC |
30471 | /* Override any gcc2 internal prototype to avoid an error. */ |
30472 | #ifdef __cplusplus | |
30473 | extern "C" | |
30474 | { | |
30475 | #endif | |
30476 | /* We use char because int might match the return type of a gcc2 | |
30477 | builtin and then its argument prototype would still apply. */ | |
30478 | char sched_yield (); | |
30479 | /* The GNU C library defines this for functions which it implements | |
30480 | to always fail with ENOSYS. Some functions are actually named | |
30481 | something starting with __ and the normal name is an alias. */ | |
30482 | #if defined (__stub_sched_yield) || defined (__stub___sched_yield) | |
30483 | choke me | |
30484 | #else | |
30485 | char (*f) () = sched_yield; | |
30486 | #endif | |
30487 | #ifdef __cplusplus | |
30488 | } | |
30489 | #endif | |
30490 | ||
30491 | int | |
30492 | main () | |
30493 | { | |
30494 | return f != sched_yield; | |
30495 | ; | |
30496 | return 0; | |
30497 | } | |
30498 | _ACEOF | |
30499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 30501 | (eval $ac_link) 2>&5 |
a848cd7e | 30502 | ac_status=$? |
a848cd7e SC |
30503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30504 | (exit $ac_status); } && | |
8a7b1113 | 30505 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30507 | (eval $ac_try) 2>&5 | |
30508 | ac_status=$? | |
30509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30510 | (exit $ac_status); }; }; then | |
30511 | ac_cv_func_sched_yield=yes | |
30512 | else | |
30513 | echo "$as_me: failed program was:" >&5 | |
30514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30515 | ||
30516 | ac_cv_func_sched_yield=no | |
30517 | fi | |
8a7b1113 | 30518 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
30519 | fi |
30520 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5 | |
30521 | echo "${ECHO_T}$ac_cv_func_sched_yield" >&6 | |
30522 | if test $ac_cv_func_sched_yield = yes; then | |
30523 | cat >>confdefs.h <<\_ACEOF | |
30524 | #define HAVE_SCHED_YIELD 1 | |
30525 | _ACEOF | |
30526 | ||
30527 | else | |
30528 | ||
30529 | echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5 | |
30530 | echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6 | |
30531 | if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then | |
30532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30533 | else | |
30534 | ac_check_lib_save_LIBS=$LIBS | |
30535 | LIBS="-lposix4 $LIBS" | |
30536 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 30537 | #line $LINENO "configure" |
a848cd7e SC |
30538 | /* confdefs.h. */ |
30539 | _ACEOF | |
30540 | cat confdefs.h >>conftest.$ac_ext | |
30541 | cat >>conftest.$ac_ext <<_ACEOF | |
30542 | /* end confdefs.h. */ | |
30543 | ||
30544 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30545 | #ifdef __cplusplus | |
30546 | extern "C" | |
30547 | #endif | |
30548 | /* We use char because int might match the return type of a gcc2 | |
30549 | builtin and then its argument prototype would still apply. */ | |
30550 | char sched_yield (); | |
30551 | int | |
30552 | main () | |
30553 | { | |
30554 | sched_yield (); | |
30555 | ; | |
30556 | return 0; | |
30557 | } | |
30558 | _ACEOF | |
30559 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30560 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 30561 | (eval $ac_link) 2>&5 |
a848cd7e | 30562 | ac_status=$? |
a848cd7e SC |
30563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30564 | (exit $ac_status); } && | |
8a7b1113 | 30565 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30567 | (eval $ac_try) 2>&5 | |
30568 | ac_status=$? | |
30569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30570 | (exit $ac_status); }; }; then | |
30571 | ac_cv_lib_posix4_sched_yield=yes | |
30572 | else | |
30573 | echo "$as_me: failed program was:" >&5 | |
30574 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30575 | ||
30576 | ac_cv_lib_posix4_sched_yield=no | |
30577 | fi | |
8a7b1113 | 30578 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
30579 | LIBS=$ac_check_lib_save_LIBS |
30580 | fi | |
30581 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5 | |
30582 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6 | |
30583 | if test $ac_cv_lib_posix4_sched_yield = yes; then | |
30584 | cat >>confdefs.h <<\_ACEOF | |
30585 | #define HAVE_SCHED_YIELD 1 | |
30586 | _ACEOF | |
30587 | POSIX4_LINK=" -lposix4" | |
30588 | else | |
30589 | { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5 | |
30590 | echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;} | |
30591 | ||
30592 | fi | |
30593 | ||
30594 | ||
30595 | ||
30596 | fi | |
30597 | ||
30598 | fi | |
30599 | ||
30600 | HAVE_PRIOR_FUNCS=0 | |
30601 | echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5 | |
30602 | echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6 | |
30603 | if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then | |
30604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30605 | else | |
30606 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 30607 | #line $LINENO "configure" |
a848cd7e SC |
30608 | /* confdefs.h. */ |
30609 | _ACEOF | |
30610 | cat confdefs.h >>conftest.$ac_ext | |
30611 | cat >>conftest.$ac_ext <<_ACEOF | |
30612 | /* end confdefs.h. */ | |
a848cd7e SC |
30613 | /* System header to define __stub macros and hopefully few prototypes, |
30614 | which can conflict with char pthread_attr_getschedpolicy (); below. | |
30615 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30616 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
30617 | #ifdef __STDC__ |
30618 | # include <limits.h> | |
30619 | #else | |
30620 | # include <assert.h> | |
30621 | #endif | |
a848cd7e SC |
30622 | /* Override any gcc2 internal prototype to avoid an error. */ |
30623 | #ifdef __cplusplus | |
30624 | extern "C" | |
30625 | { | |
30626 | #endif | |
30627 | /* We use char because int might match the return type of a gcc2 | |
30628 | builtin and then its argument prototype would still apply. */ | |
30629 | char pthread_attr_getschedpolicy (); | |
30630 | /* The GNU C library defines this for functions which it implements | |
30631 | to always fail with ENOSYS. Some functions are actually named | |
30632 | something starting with __ and the normal name is an alias. */ | |
30633 | #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy) | |
30634 | choke me | |
30635 | #else | |
30636 | char (*f) () = pthread_attr_getschedpolicy; | |
30637 | #endif | |
30638 | #ifdef __cplusplus | |
30639 | } | |
30640 | #endif | |
30641 | ||
30642 | int | |
30643 | main () | |
30644 | { | |
30645 | return f != pthread_attr_getschedpolicy; | |
30646 | ; | |
30647 | return 0; | |
30648 | } | |
30649 | _ACEOF | |
30650 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30651 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 30652 | (eval $ac_link) 2>&5 |
a848cd7e | 30653 | ac_status=$? |
a848cd7e SC |
30654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30655 | (exit $ac_status); } && | |
8a7b1113 | 30656 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30658 | (eval $ac_try) 2>&5 | |
30659 | ac_status=$? | |
30660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30661 | (exit $ac_status); }; }; then | |
30662 | ac_cv_func_pthread_attr_getschedpolicy=yes | |
30663 | else | |
30664 | echo "$as_me: failed program was:" >&5 | |
30665 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30666 | ||
30667 | ac_cv_func_pthread_attr_getschedpolicy=no | |
30668 | fi | |
8a7b1113 | 30669 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
30670 | fi |
30671 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5 | |
30672 | echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6 | |
30673 | if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then | |
30674 | echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5 | |
30675 | echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6 | |
30676 | if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then | |
30677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30678 | else | |
30679 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 30680 | #line $LINENO "configure" |
a848cd7e SC |
30681 | /* confdefs.h. */ |
30682 | _ACEOF | |
30683 | cat confdefs.h >>conftest.$ac_ext | |
30684 | cat >>conftest.$ac_ext <<_ACEOF | |
30685 | /* end confdefs.h. */ | |
a848cd7e SC |
30686 | /* System header to define __stub macros and hopefully few prototypes, |
30687 | which can conflict with char pthread_attr_setschedparam (); below. | |
30688 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30689 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
30690 | #ifdef __STDC__ |
30691 | # include <limits.h> | |
30692 | #else | |
30693 | # include <assert.h> | |
30694 | #endif | |
a848cd7e SC |
30695 | /* Override any gcc2 internal prototype to avoid an error. */ |
30696 | #ifdef __cplusplus | |
30697 | extern "C" | |
30698 | { | |
30699 | #endif | |
30700 | /* We use char because int might match the return type of a gcc2 | |
30701 | builtin and then its argument prototype would still apply. */ | |
30702 | char pthread_attr_setschedparam (); | |
30703 | /* The GNU C library defines this for functions which it implements | |
30704 | to always fail with ENOSYS. Some functions are actually named | |
30705 | something starting with __ and the normal name is an alias. */ | |
30706 | #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam) | |
30707 | choke me | |
30708 | #else | |
30709 | char (*f) () = pthread_attr_setschedparam; | |
30710 | #endif | |
30711 | #ifdef __cplusplus | |
30712 | } | |
30713 | #endif | |
30714 | ||
30715 | int | |
30716 | main () | |
30717 | { | |
30718 | return f != pthread_attr_setschedparam; | |
30719 | ; | |
30720 | return 0; | |
30721 | } | |
30722 | _ACEOF | |
30723 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 30725 | (eval $ac_link) 2>&5 |
a848cd7e | 30726 | ac_status=$? |
a848cd7e SC |
30727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30728 | (exit $ac_status); } && | |
8a7b1113 | 30729 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30731 | (eval $ac_try) 2>&5 | |
30732 | ac_status=$? | |
30733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30734 | (exit $ac_status); }; }; then | |
30735 | ac_cv_func_pthread_attr_setschedparam=yes | |
30736 | else | |
30737 | echo "$as_me: failed program was:" >&5 | |
30738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30739 | ||
30740 | ac_cv_func_pthread_attr_setschedparam=no | |
30741 | fi | |
8a7b1113 | 30742 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
30743 | fi |
30744 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5 | |
30745 | echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6 | |
30746 | if test $ac_cv_func_pthread_attr_setschedparam = yes; then | |
30747 | echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5 | |
30748 | echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6 | |
30749 | if test "${ac_cv_func_sched_get_priority_max+set}" = set; then | |
30750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30751 | else | |
30752 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 30753 | #line $LINENO "configure" |
a848cd7e SC |
30754 | /* confdefs.h. */ |
30755 | _ACEOF | |
30756 | cat confdefs.h >>conftest.$ac_ext | |
30757 | cat >>conftest.$ac_ext <<_ACEOF | |
30758 | /* end confdefs.h. */ | |
a848cd7e SC |
30759 | /* System header to define __stub macros and hopefully few prototypes, |
30760 | which can conflict with char sched_get_priority_max (); below. | |
30761 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30762 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
30763 | #ifdef __STDC__ |
30764 | # include <limits.h> | |
30765 | #else | |
30766 | # include <assert.h> | |
30767 | #endif | |
a848cd7e SC |
30768 | /* Override any gcc2 internal prototype to avoid an error. */ |
30769 | #ifdef __cplusplus | |
30770 | extern "C" | |
30771 | { | |
30772 | #endif | |
30773 | /* We use char because int might match the return type of a gcc2 | |
30774 | builtin and then its argument prototype would still apply. */ | |
30775 | char sched_get_priority_max (); | |
30776 | /* The GNU C library defines this for functions which it implements | |
30777 | to always fail with ENOSYS. Some functions are actually named | |
30778 | something starting with __ and the normal name is an alias. */ | |
30779 | #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max) | |
30780 | choke me | |
30781 | #else | |
30782 | char (*f) () = sched_get_priority_max; | |
30783 | #endif | |
30784 | #ifdef __cplusplus | |
30785 | } | |
30786 | #endif | |
30787 | ||
30788 | int | |
30789 | main () | |
30790 | { | |
30791 | return f != sched_get_priority_max; | |
30792 | ; | |
30793 | return 0; | |
30794 | } | |
30795 | _ACEOF | |
30796 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 30798 | (eval $ac_link) 2>&5 |
a848cd7e | 30799 | ac_status=$? |
a848cd7e SC |
30800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30801 | (exit $ac_status); } && | |
8a7b1113 | 30802 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30804 | (eval $ac_try) 2>&5 | |
30805 | ac_status=$? | |
30806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30807 | (exit $ac_status); }; }; then | |
30808 | ac_cv_func_sched_get_priority_max=yes | |
30809 | else | |
30810 | echo "$as_me: failed program was:" >&5 | |
30811 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30812 | ||
30813 | ac_cv_func_sched_get_priority_max=no | |
30814 | fi | |
8a7b1113 | 30815 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
30816 | fi |
30817 | echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5 | |
30818 | echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6 | |
30819 | if test $ac_cv_func_sched_get_priority_max = yes; then | |
30820 | HAVE_PRIOR_FUNCS=1 | |
30821 | else | |
30822 | echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5 | |
30823 | echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6 | |
30824 | if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then | |
30825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30826 | else | |
30827 | ac_check_lib_save_LIBS=$LIBS | |
30828 | LIBS="-lposix4 $LIBS" | |
30829 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 30830 | #line $LINENO "configure" |
a848cd7e SC |
30831 | /* confdefs.h. */ |
30832 | _ACEOF | |
30833 | cat confdefs.h >>conftest.$ac_ext | |
30834 | cat >>conftest.$ac_ext <<_ACEOF | |
30835 | /* end confdefs.h. */ | |
30836 | ||
30837 | /* Override any gcc2 internal prototype to avoid an error. */ | |
30838 | #ifdef __cplusplus | |
30839 | extern "C" | |
30840 | #endif | |
30841 | /* We use char because int might match the return type of a gcc2 | |
30842 | builtin and then its argument prototype would still apply. */ | |
30843 | char sched_get_priority_max (); | |
30844 | int | |
30845 | main () | |
30846 | { | |
30847 | sched_get_priority_max (); | |
30848 | ; | |
30849 | return 0; | |
30850 | } | |
30851 | _ACEOF | |
30852 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30853 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 30854 | (eval $ac_link) 2>&5 |
a848cd7e | 30855 | ac_status=$? |
a848cd7e SC |
30856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30857 | (exit $ac_status); } && | |
8a7b1113 | 30858 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30859 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30860 | (eval $ac_try) 2>&5 | |
30861 | ac_status=$? | |
30862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30863 | (exit $ac_status); }; }; then | |
30864 | ac_cv_lib_posix4_sched_get_priority_max=yes | |
30865 | else | |
30866 | echo "$as_me: failed program was:" >&5 | |
30867 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30868 | ||
30869 | ac_cv_lib_posix4_sched_get_priority_max=no | |
30870 | fi | |
8a7b1113 | 30871 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
30872 | LIBS=$ac_check_lib_save_LIBS |
30873 | fi | |
30874 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5 | |
30875 | echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6 | |
30876 | if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then | |
30877 | ||
30878 | HAVE_PRIOR_FUNCS=1 | |
30879 | POSIX4_LINK=" -lposix4" | |
30880 | ||
30881 | fi | |
30882 | ||
30883 | ||
30884 | fi | |
30885 | ||
30886 | ||
30887 | fi | |
30888 | ||
30889 | ||
30890 | fi | |
30891 | ||
30892 | ||
30893 | if test "$HAVE_PRIOR_FUNCS" = 1; then | |
30894 | cat >>confdefs.h <<\_ACEOF | |
30895 | #define HAVE_THREAD_PRIORITY_FUNCTIONS 1 | |
30896 | _ACEOF | |
30897 | ||
30898 | else | |
30899 | { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5 | |
30900 | echo "$as_me: WARNING: Setting thread priority will not work" >&2;} | |
30901 | fi | |
30902 | ||
30903 | echo "$as_me:$LINENO: checking for pthread_cancel" >&5 | |
30904 | echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6 | |
30905 | if test "${ac_cv_func_pthread_cancel+set}" = set; then | |
30906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30907 | else | |
30908 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 30909 | #line $LINENO "configure" |
a848cd7e SC |
30910 | /* confdefs.h. */ |
30911 | _ACEOF | |
30912 | cat confdefs.h >>conftest.$ac_ext | |
30913 | cat >>conftest.$ac_ext <<_ACEOF | |
30914 | /* end confdefs.h. */ | |
a848cd7e SC |
30915 | /* System header to define __stub macros and hopefully few prototypes, |
30916 | which can conflict with char pthread_cancel (); below. | |
30917 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
30918 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
30919 | #ifdef __STDC__ |
30920 | # include <limits.h> | |
30921 | #else | |
30922 | # include <assert.h> | |
30923 | #endif | |
a848cd7e SC |
30924 | /* Override any gcc2 internal prototype to avoid an error. */ |
30925 | #ifdef __cplusplus | |
30926 | extern "C" | |
30927 | { | |
30928 | #endif | |
30929 | /* We use char because int might match the return type of a gcc2 | |
30930 | builtin and then its argument prototype would still apply. */ | |
30931 | char pthread_cancel (); | |
30932 | /* The GNU C library defines this for functions which it implements | |
30933 | to always fail with ENOSYS. Some functions are actually named | |
30934 | something starting with __ and the normal name is an alias. */ | |
30935 | #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel) | |
30936 | choke me | |
30937 | #else | |
30938 | char (*f) () = pthread_cancel; | |
30939 | #endif | |
30940 | #ifdef __cplusplus | |
30941 | } | |
30942 | #endif | |
30943 | ||
30944 | int | |
30945 | main () | |
30946 | { | |
30947 | return f != pthread_cancel; | |
30948 | ; | |
30949 | return 0; | |
30950 | } | |
30951 | _ACEOF | |
30952 | rm -f conftest.$ac_objext conftest$ac_exeext | |
30953 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 30954 | (eval $ac_link) 2>&5 |
a848cd7e | 30955 | ac_status=$? |
a848cd7e SC |
30956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
30957 | (exit $ac_status); } && | |
8a7b1113 | 30958 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
30959 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
30960 | (eval $ac_try) 2>&5 | |
30961 | ac_status=$? | |
30962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
30963 | (exit $ac_status); }; }; then | |
30964 | ac_cv_func_pthread_cancel=yes | |
30965 | else | |
30966 | echo "$as_me: failed program was:" >&5 | |
30967 | sed 's/^/| /' conftest.$ac_ext >&5 | |
30968 | ||
30969 | ac_cv_func_pthread_cancel=no | |
30970 | fi | |
8a7b1113 | 30971 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
30972 | fi |
30973 | echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5 | |
30974 | echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6 | |
30975 | if test $ac_cv_func_pthread_cancel = yes; then | |
30976 | cat >>confdefs.h <<\_ACEOF | |
30977 | #define HAVE_PTHREAD_CANCEL 1 | |
30978 | _ACEOF | |
30979 | ||
30980 | else | |
30981 | { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5 | |
30982 | echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;} | |
30983 | fi | |
30984 | ||
30985 | ||
30986 | ||
30987 | ||
30988 | echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5 | |
30989 | echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6 | |
30990 | if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then | |
30991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
30992 | else | |
30993 | ||
30994 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 30995 | #line $LINENO "configure" |
a848cd7e SC |
30996 | /* confdefs.h. */ |
30997 | _ACEOF | |
30998 | cat confdefs.h >>conftest.$ac_ext | |
30999 | cat >>conftest.$ac_ext <<_ACEOF | |
31000 | /* end confdefs.h. */ | |
31001 | #include <pthread.h> | |
31002 | int | |
31003 | main () | |
31004 | { | |
31005 | ||
31006 | pthread_mutexattr_t attr; | |
31007 | pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); | |
31008 | ||
31009 | ; | |
31010 | return 0; | |
31011 | } | |
31012 | _ACEOF | |
31013 | rm -f conftest.$ac_objext | |
31014 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 31015 | (eval $ac_compile) 2>&5 |
a848cd7e | 31016 | ac_status=$? |
a848cd7e SC |
31017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31018 | (exit $ac_status); } && | |
8a7b1113 | 31019 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
31020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31021 | (eval $ac_try) 2>&5 | |
31022 | ac_status=$? | |
31023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31024 | (exit $ac_status); }; }; then | |
31025 | ||
31026 | wx_cv_type_pthread_mutexattr_t=yes | |
31027 | ||
31028 | else | |
31029 | echo "$as_me: failed program was:" >&5 | |
31030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31031 | ||
31032 | ||
31033 | wx_cv_type_pthread_mutexattr_t=no | |
31034 | ||
31035 | ||
31036 | fi | |
8a7b1113 | 31037 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31038 | |
31039 | fi | |
31040 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5 | |
31041 | echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6 | |
31042 | ||
31043 | if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then | |
31044 | cat >>confdefs.h <<\_ACEOF | |
31045 | #define HAVE_PTHREAD_MUTEXATTR_T 1 | |
31046 | _ACEOF | |
31047 | ||
31048 | else | |
31049 | echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5 | |
31050 | echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6 | |
31051 | if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then | |
31052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31053 | else | |
31054 | ||
31055 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 31056 | #line $LINENO "configure" |
a848cd7e SC |
31057 | /* confdefs.h. */ |
31058 | _ACEOF | |
31059 | cat confdefs.h >>conftest.$ac_ext | |
31060 | cat >>conftest.$ac_ext <<_ACEOF | |
31061 | /* end confdefs.h. */ | |
31062 | #include <pthread.h> | |
31063 | int | |
31064 | main () | |
31065 | { | |
31066 | ||
31067 | pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | |
31068 | ||
31069 | ; | |
31070 | return 0; | |
31071 | } | |
31072 | _ACEOF | |
31073 | rm -f conftest.$ac_objext | |
31074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 31075 | (eval $ac_compile) 2>&5 |
a848cd7e | 31076 | ac_status=$? |
a848cd7e SC |
31077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31078 | (exit $ac_status); } && | |
8a7b1113 | 31079 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
31080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31081 | (eval $ac_try) 2>&5 | |
31082 | ac_status=$? | |
31083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31084 | (exit $ac_status); }; }; then | |
31085 | ||
31086 | wx_cv_type_pthread_rec_mutex_init=yes | |
31087 | ||
31088 | else | |
31089 | echo "$as_me: failed program was:" >&5 | |
31090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31091 | ||
31092 | ||
31093 | wx_cv_type_pthread_rec_mutex_init=no | |
31094 | ||
31095 | ||
31096 | fi | |
8a7b1113 | 31097 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31098 | |
31099 | fi | |
31100 | echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5 | |
31101 | echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6 | |
31102 | if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then | |
31103 | cat >>confdefs.h <<\_ACEOF | |
31104 | #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1 | |
31105 | _ACEOF | |
31106 | ||
31107 | else | |
31108 | { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5 | |
31109 | echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;} | |
31110 | fi | |
31111 | fi | |
31112 | fi | |
31113 | ||
31114 | else | |
31115 | if test "$wxUSE_THREADS" = "yes" ; then | |
31116 | case "${host}" in | |
31117 | *-*-mingw32* ) | |
31118 | echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5 | |
31119 | echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6 | |
31120 | if test "${wx_cv_cflags_mthread+set}" = set; then | |
31121 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31122 | else | |
31123 | ||
31124 | CFLAGS_OLD="$CFLAGS" | |
31125 | CFLAGS="$CFLAGS -mthreads" | |
31126 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 31127 | #line $LINENO "configure" |
a848cd7e SC |
31128 | /* confdefs.h. */ |
31129 | _ACEOF | |
31130 | cat confdefs.h >>conftest.$ac_ext | |
31131 | cat >>conftest.$ac_ext <<_ACEOF | |
31132 | /* end confdefs.h. */ | |
31133 | ||
31134 | int | |
31135 | main () | |
31136 | { | |
31137 | ||
31138 | ; | |
31139 | return 0; | |
31140 | } | |
31141 | _ACEOF | |
31142 | rm -f conftest.$ac_objext | |
31143 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 31144 | (eval $ac_compile) 2>&5 |
a848cd7e | 31145 | ac_status=$? |
a848cd7e SC |
31146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31147 | (exit $ac_status); } && | |
8a7b1113 | 31148 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
31149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31150 | (eval $ac_try) 2>&5 | |
31151 | ac_status=$? | |
31152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31153 | (exit $ac_status); }; }; then | |
31154 | wx_cv_cflags_mthread=yes | |
31155 | else | |
31156 | echo "$as_me: failed program was:" >&5 | |
31157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31158 | ||
31159 | wx_cv_cflags_mthread=no | |
31160 | ||
31161 | fi | |
8a7b1113 | 31162 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31163 | |
31164 | ||
31165 | fi | |
31166 | echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5 | |
31167 | echo "${ECHO_T}$wx_cv_cflags_mthread" >&6 | |
31168 | ||
31169 | if test "$wx_cv_cflags_mthread" = "yes"; then | |
31170 | CXXFLAGS="$CXXFLAGS -mthreads" | |
31171 | TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -mthreads" | |
31172 | LDFLAGS="$LDFLAGS -mthreads" | |
31173 | else | |
31174 | CFLAGS="$CFLAGS_OLD" | |
31175 | fi | |
31176 | ;; | |
31177 | *-pc-os2*emx ) | |
31178 | CFLAGS="$CFLAGS -Zmt -D__ST_MT_ERRNO__" | |
31179 | CXXFLAGS="$CXXFLAGS -Zmt -D__ST_MT_ERRNO__" | |
31180 | LDFLAGS="$LDFLAGS -Zmt" | |
31181 | ;; | |
31182 | esac | |
31183 | fi | |
31184 | fi | |
31185 | ||
31186 | if test "$wxUSE_THREADS" = "yes"; then | |
31187 | cat >>confdefs.h <<\_ACEOF | |
31188 | #define wxUSE_THREADS 1 | |
31189 | _ACEOF | |
31190 | ||
31191 | ||
31192 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread" | |
31193 | else | |
31194 | if test "$ac_cv_func_strtok_r" = "yes"; then | |
31195 | echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5 | |
31196 | echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6 | |
31197 | if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then | |
31198 | TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT" | |
31199 | echo "$as_me:$LINENO: result: yes" >&5 | |
31200 | echo "${ECHO_T}yes" >&6 | |
31201 | else | |
31202 | echo "$as_me:$LINENO: result: no" >&5 | |
31203 | echo "${ECHO_T}no" >&6 | |
31204 | fi | |
31205 | fi | |
31206 | fi | |
31207 | ||
31208 | if test "$WXGTK20" = 1 ; then | |
31209 | cat >>confdefs.h <<_ACEOF | |
31210 | #define __WXGTK20__ $WXGTK20 | |
31211 | _ACEOF | |
31212 | ||
31213 | WXGTK12=1 | |
31214 | fi | |
31215 | ||
31216 | if test "$WXGTK12" = 1 ; then | |
31217 | cat >>confdefs.h <<_ACEOF | |
31218 | #define __WXGTK12__ $WXGTK12 | |
31219 | _ACEOF | |
31220 | ||
31221 | fi | |
31222 | ||
31223 | if test "$WXGTK127" = 1 ; then | |
31224 | cat >>confdefs.h <<_ACEOF | |
31225 | #define __WXGTK127__ $WXGTK127 | |
31226 | _ACEOF | |
31227 | ||
31228 | fi | |
31229 | ||
31230 | if test "$WXGPE" = 1 ; then | |
31231 | cat >>confdefs.h <<_ACEOF | |
31232 | #define __WXGPE__ $WXGPE | |
31233 | _ACEOF | |
31234 | ||
31235 | fi | |
31236 | ||
31237 | WXDEBUG= | |
31238 | ||
31239 | if test "$wxUSE_DEBUG_INFO" = "yes" ; then | |
31240 | WXDEBUG="-g" | |
31241 | wxUSE_OPTIMISE=no | |
31242 | fi | |
31243 | ||
31244 | if test "$wxUSE_DEBUG_GDB" = "yes" ; then | |
31245 | wxUSE_DEBUG_INFO=yes | |
31246 | WXDEBUG="-ggdb" | |
31247 | fi | |
31248 | ||
31249 | if test "$wxUSE_DEBUG_FLAG" = "yes" ; then | |
31250 | cat >>confdefs.h <<\_ACEOF | |
31251 | #define WXDEBUG 1 | |
31252 | _ACEOF | |
31253 | ||
31254 | WXDEBUG_DEFINE="-D__WXDEBUG__" | |
31255 | else | |
31256 | if test "$wxUSE_GTK" = 1 ; then | |
31257 | WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS" | |
31258 | fi | |
31259 | fi | |
31260 | ||
31261 | if test "$wxUSE_MEM_TRACING" = "yes" ; then | |
31262 | cat >>confdefs.h <<\_ACEOF | |
31263 | #define wxUSE_MEMORY_TRACING 1 | |
31264 | _ACEOF | |
31265 | ||
31266 | cat >>confdefs.h <<\_ACEOF | |
31267 | #define wxUSE_GLOBAL_MEMORY_OPERATORS 1 | |
31268 | _ACEOF | |
31269 | ||
31270 | cat >>confdefs.h <<\_ACEOF | |
31271 | #define wxUSE_DEBUG_NEW_ALWAYS 1 | |
31272 | _ACEOF | |
31273 | ||
31274 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck" | |
31275 | fi | |
31276 | ||
31277 | if test "$wxUSE_DMALLOC" = "yes" ; then | |
31278 | DMALLOC_LIBS="-ldmalloc" | |
31279 | fi | |
31280 | ||
31281 | PROFILE= | |
31282 | if test "$wxUSE_PROFILE" = "yes" ; then | |
31283 | PROFILE=" -pg" | |
31284 | fi | |
31285 | ||
31286 | CODE_GEN_FLAGS= | |
31287 | CODE_GEN_FLAGS_CXX= | |
31288 | if test "$GCC" = "yes" ; then | |
31289 | if test "$wxUSE_NO_RTTI" = "yes" ; then | |
31290 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti" | |
31291 | fi | |
31292 | if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then | |
31293 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions" | |
31294 | fi | |
31295 | if test "$wxUSE_PERMISSIVE" = "yes" ; then | |
31296 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive" | |
31297 | fi | |
31298 | ||
31299 | case "${host}" in | |
31300 | powerpc*-*-aix* ) | |
31301 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc" | |
31302 | ;; | |
31303 | *-hppa* ) | |
31304 | CODE_GEN_FLAGS="$CODE_GEN_FLAGS -ffunction-sections" | |
31305 | ;; | |
31306 | esac | |
31307 | fi | |
31308 | ||
31309 | OPTIMISE= | |
31310 | if test "$wxUSE_OPTIMISE" = "no" ; then | |
31311 | if test "$GCC" = yes ; then | |
31312 | OPTIMISE="-O0" | |
31313 | fi | |
31314 | else | |
31315 | if test "$GCC" = yes ; then | |
31316 | OPTIMISE="-O2" | |
31317 | ||
31318 | case "${host}" in | |
31319 | i586-*-*|i686-*-* ) | |
31320 | OPTIMISE="${OPTIMISE} " | |
31321 | ;; | |
31322 | esac | |
31323 | else | |
31324 | OPTIMISE="-O" | |
31325 | fi | |
31326 | fi | |
31327 | ||
31328 | ||
31329 | if test "x$WXWIN_COMPATIBILITY_2_2" = "xyes"; then | |
31330 | cat >>confdefs.h <<\_ACEOF | |
31331 | #define WXWIN_COMPATIBILITY_2_2 1 | |
31332 | _ACEOF | |
31333 | ||
31334 | ||
31335 | WXWIN_COMPATIBILITY_2_4="yes" | |
31336 | fi | |
31337 | ||
31338 | if test "x$WXWIN_COMPATIBILITY_2_4" != "xno"; then | |
31339 | cat >>confdefs.h <<\_ACEOF | |
31340 | #define WXWIN_COMPATIBILITY_2_4 1 | |
31341 | _ACEOF | |
31342 | ||
31343 | fi | |
31344 | ||
31345 | ||
31346 | if test "$wxUSE_GUI" = "yes"; then | |
31347 | cat >>confdefs.h <<\_ACEOF | |
31348 | #define wxUSE_GUI 1 | |
31349 | _ACEOF | |
31350 | ||
31351 | ||
31352 | else | |
31353 | cat >>confdefs.h <<\_ACEOF | |
31354 | #define wxUSE_NOGUI 1 | |
31355 | _ACEOF | |
31356 | ||
31357 | fi | |
31358 | ||
31359 | ||
31360 | if test "$wxUSE_UNIX" = "yes"; then | |
31361 | cat >>confdefs.h <<\_ACEOF | |
31362 | #define wxUSE_UNIX 1 | |
31363 | _ACEOF | |
31364 | ||
31365 | fi | |
31366 | ||
31367 | ||
31368 | if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then | |
31369 | ||
31370 | HAVE_DL_FUNCS=0 | |
31371 | HAVE_SHL_FUNCS=0 | |
31372 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
31373 | if test "$USE_DARWIN" = 1; then | |
31374 | HAVE_DL_FUNCS=1 | |
31375 | else | |
31376 | ||
31377 | for ac_func in dlopen | |
31378 | do | |
31379 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31380 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31381 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31382 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31384 | else | |
31385 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 31386 | #line $LINENO "configure" |
a848cd7e SC |
31387 | /* confdefs.h. */ |
31388 | _ACEOF | |
31389 | cat confdefs.h >>conftest.$ac_ext | |
31390 | cat >>conftest.$ac_ext <<_ACEOF | |
31391 | /* end confdefs.h. */ | |
a848cd7e SC |
31392 | /* System header to define __stub macros and hopefully few prototypes, |
31393 | which can conflict with char $ac_func (); below. | |
31394 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31395 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
31396 | #ifdef __STDC__ |
31397 | # include <limits.h> | |
31398 | #else | |
31399 | # include <assert.h> | |
31400 | #endif | |
a848cd7e SC |
31401 | /* Override any gcc2 internal prototype to avoid an error. */ |
31402 | #ifdef __cplusplus | |
31403 | extern "C" | |
31404 | { | |
31405 | #endif | |
31406 | /* We use char because int might match the return type of a gcc2 | |
31407 | builtin and then its argument prototype would still apply. */ | |
31408 | char $ac_func (); | |
31409 | /* The GNU C library defines this for functions which it implements | |
31410 | to always fail with ENOSYS. Some functions are actually named | |
31411 | something starting with __ and the normal name is an alias. */ | |
31412 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31413 | choke me | |
31414 | #else | |
31415 | char (*f) () = $ac_func; | |
31416 | #endif | |
31417 | #ifdef __cplusplus | |
31418 | } | |
31419 | #endif | |
31420 | ||
31421 | int | |
31422 | main () | |
31423 | { | |
31424 | return f != $ac_func; | |
31425 | ; | |
31426 | return 0; | |
31427 | } | |
31428 | _ACEOF | |
31429 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31430 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 31431 | (eval $ac_link) 2>&5 |
a848cd7e | 31432 | ac_status=$? |
a848cd7e SC |
31433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31434 | (exit $ac_status); } && | |
8a7b1113 | 31435 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
31436 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31437 | (eval $ac_try) 2>&5 | |
31438 | ac_status=$? | |
31439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31440 | (exit $ac_status); }; }; then | |
31441 | eval "$as_ac_var=yes" | |
31442 | else | |
31443 | echo "$as_me: failed program was:" >&5 | |
31444 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31445 | ||
31446 | eval "$as_ac_var=no" | |
31447 | fi | |
8a7b1113 | 31448 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31449 | fi |
31450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31451 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31452 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31453 | cat >>confdefs.h <<_ACEOF | |
31454 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31455 | _ACEOF | |
31456 | ||
31457 | cat >>confdefs.h <<\_ACEOF | |
31458 | #define HAVE_DLOPEN 1 | |
31459 | _ACEOF | |
31460 | ||
31461 | HAVE_DL_FUNCS=1 | |
31462 | ||
31463 | else | |
31464 | ||
31465 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
31466 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
31467 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
31468 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31469 | else | |
31470 | ac_check_lib_save_LIBS=$LIBS | |
31471 | LIBS="-ldl $LIBS" | |
31472 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 31473 | #line $LINENO "configure" |
a848cd7e SC |
31474 | /* confdefs.h. */ |
31475 | _ACEOF | |
31476 | cat confdefs.h >>conftest.$ac_ext | |
31477 | cat >>conftest.$ac_ext <<_ACEOF | |
31478 | /* end confdefs.h. */ | |
31479 | ||
31480 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31481 | #ifdef __cplusplus | |
31482 | extern "C" | |
31483 | #endif | |
31484 | /* We use char because int might match the return type of a gcc2 | |
31485 | builtin and then its argument prototype would still apply. */ | |
31486 | char dlopen (); | |
31487 | int | |
31488 | main () | |
31489 | { | |
31490 | dlopen (); | |
31491 | ; | |
31492 | return 0; | |
31493 | } | |
31494 | _ACEOF | |
31495 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31496 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 31497 | (eval $ac_link) 2>&5 |
a848cd7e | 31498 | ac_status=$? |
a848cd7e SC |
31499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31500 | (exit $ac_status); } && | |
8a7b1113 | 31501 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
31502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31503 | (eval $ac_try) 2>&5 | |
31504 | ac_status=$? | |
31505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31506 | (exit $ac_status); }; }; then | |
31507 | ac_cv_lib_dl_dlopen=yes | |
31508 | else | |
31509 | echo "$as_me: failed program was:" >&5 | |
31510 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31511 | ||
31512 | ac_cv_lib_dl_dlopen=no | |
31513 | fi | |
8a7b1113 | 31514 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31515 | LIBS=$ac_check_lib_save_LIBS |
31516 | fi | |
31517 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
31518 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
31519 | if test $ac_cv_lib_dl_dlopen = yes; then | |
31520 | ||
31521 | cat >>confdefs.h <<\_ACEOF | |
31522 | #define HAVE_DLOPEN 1 | |
31523 | _ACEOF | |
31524 | ||
31525 | HAVE_DL_FUNCS=1 | |
31526 | DL_LINK=" -ldl$DL_LINK" | |
31527 | ||
31528 | else | |
31529 | ||
31530 | ||
31531 | for ac_func in shl_load | |
31532 | do | |
31533 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31534 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31535 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31536 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31538 | else | |
31539 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 31540 | #line $LINENO "configure" |
a848cd7e SC |
31541 | /* confdefs.h. */ |
31542 | _ACEOF | |
31543 | cat confdefs.h >>conftest.$ac_ext | |
31544 | cat >>conftest.$ac_ext <<_ACEOF | |
31545 | /* end confdefs.h. */ | |
a848cd7e SC |
31546 | /* System header to define __stub macros and hopefully few prototypes, |
31547 | which can conflict with char $ac_func (); below. | |
31548 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31549 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
31550 | #ifdef __STDC__ |
31551 | # include <limits.h> | |
31552 | #else | |
31553 | # include <assert.h> | |
31554 | #endif | |
a848cd7e SC |
31555 | /* Override any gcc2 internal prototype to avoid an error. */ |
31556 | #ifdef __cplusplus | |
31557 | extern "C" | |
31558 | { | |
31559 | #endif | |
31560 | /* We use char because int might match the return type of a gcc2 | |
31561 | builtin and then its argument prototype would still apply. */ | |
31562 | char $ac_func (); | |
31563 | /* The GNU C library defines this for functions which it implements | |
31564 | to always fail with ENOSYS. Some functions are actually named | |
31565 | something starting with __ and the normal name is an alias. */ | |
31566 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31567 | choke me | |
31568 | #else | |
31569 | char (*f) () = $ac_func; | |
31570 | #endif | |
31571 | #ifdef __cplusplus | |
31572 | } | |
31573 | #endif | |
31574 | ||
31575 | int | |
31576 | main () | |
31577 | { | |
31578 | return f != $ac_func; | |
31579 | ; | |
31580 | return 0; | |
31581 | } | |
31582 | _ACEOF | |
31583 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31584 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 31585 | (eval $ac_link) 2>&5 |
a848cd7e | 31586 | ac_status=$? |
a848cd7e SC |
31587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31588 | (exit $ac_status); } && | |
8a7b1113 | 31589 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
31590 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31591 | (eval $ac_try) 2>&5 | |
31592 | ac_status=$? | |
31593 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31594 | (exit $ac_status); }; }; then | |
31595 | eval "$as_ac_var=yes" | |
31596 | else | |
31597 | echo "$as_me: failed program was:" >&5 | |
31598 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31599 | ||
31600 | eval "$as_ac_var=no" | |
31601 | fi | |
8a7b1113 | 31602 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31603 | fi |
31604 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31605 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31606 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31607 | cat >>confdefs.h <<_ACEOF | |
31608 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31609 | _ACEOF | |
31610 | ||
31611 | cat >>confdefs.h <<\_ACEOF | |
31612 | #define HAVE_SHL_LOAD 1 | |
31613 | _ACEOF | |
31614 | ||
31615 | HAVE_SHL_FUNCS=1 | |
31616 | ||
31617 | else | |
31618 | ||
31619 | echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5 | |
31620 | echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6 | |
31621 | if test "${ac_cv_lib_shl_load_dld+set}" = set; then | |
31622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31623 | else | |
31624 | ac_check_lib_save_LIBS=$LIBS | |
31625 | LIBS="-lshl_load $LIBS" | |
31626 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 31627 | #line $LINENO "configure" |
a848cd7e SC |
31628 | /* confdefs.h. */ |
31629 | _ACEOF | |
31630 | cat confdefs.h >>conftest.$ac_ext | |
31631 | cat >>conftest.$ac_ext <<_ACEOF | |
31632 | /* end confdefs.h. */ | |
31633 | ||
31634 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31635 | #ifdef __cplusplus | |
31636 | extern "C" | |
31637 | #endif | |
31638 | /* We use char because int might match the return type of a gcc2 | |
31639 | builtin and then its argument prototype would still apply. */ | |
31640 | char dld (); | |
31641 | int | |
31642 | main () | |
31643 | { | |
31644 | dld (); | |
31645 | ; | |
31646 | return 0; | |
31647 | } | |
31648 | _ACEOF | |
31649 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31650 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 31651 | (eval $ac_link) 2>&5 |
a848cd7e | 31652 | ac_status=$? |
a848cd7e SC |
31653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31654 | (exit $ac_status); } && | |
8a7b1113 | 31655 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
31656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31657 | (eval $ac_try) 2>&5 | |
31658 | ac_status=$? | |
31659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31660 | (exit $ac_status); }; }; then | |
31661 | ac_cv_lib_shl_load_dld=yes | |
31662 | else | |
31663 | echo "$as_me: failed program was:" >&5 | |
31664 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31665 | ||
31666 | ac_cv_lib_shl_load_dld=no | |
31667 | fi | |
8a7b1113 | 31668 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31669 | LIBS=$ac_check_lib_save_LIBS |
31670 | fi | |
31671 | echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5 | |
31672 | echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6 | |
31673 | if test $ac_cv_lib_shl_load_dld = yes; then | |
31674 | ||
31675 | HAVE_SHL_FUNCS=1 | |
31676 | DL_LINK=" -ldld$DL_LINK" | |
31677 | ||
31678 | fi | |
31679 | ||
31680 | ||
31681 | fi | |
31682 | done | |
31683 | ||
31684 | ||
31685 | fi | |
31686 | ||
31687 | ||
31688 | fi | |
31689 | done | |
31690 | ||
31691 | ||
31692 | if test "$HAVE_DL_FUNCS" = 1; then | |
31693 | ||
31694 | for ac_func in dlerror | |
31695 | do | |
31696 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
31697 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
31698 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
31699 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
31700 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31701 | else | |
31702 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 31703 | #line $LINENO "configure" |
a848cd7e SC |
31704 | /* confdefs.h. */ |
31705 | _ACEOF | |
31706 | cat confdefs.h >>conftest.$ac_ext | |
31707 | cat >>conftest.$ac_ext <<_ACEOF | |
31708 | /* end confdefs.h. */ | |
a848cd7e SC |
31709 | /* System header to define __stub macros and hopefully few prototypes, |
31710 | which can conflict with char $ac_func (); below. | |
31711 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
31712 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
31713 | #ifdef __STDC__ |
31714 | # include <limits.h> | |
31715 | #else | |
31716 | # include <assert.h> | |
31717 | #endif | |
a848cd7e SC |
31718 | /* Override any gcc2 internal prototype to avoid an error. */ |
31719 | #ifdef __cplusplus | |
31720 | extern "C" | |
31721 | { | |
31722 | #endif | |
31723 | /* We use char because int might match the return type of a gcc2 | |
31724 | builtin and then its argument prototype would still apply. */ | |
31725 | char $ac_func (); | |
31726 | /* The GNU C library defines this for functions which it implements | |
31727 | to always fail with ENOSYS. Some functions are actually named | |
31728 | something starting with __ and the normal name is an alias. */ | |
31729 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
31730 | choke me | |
31731 | #else | |
31732 | char (*f) () = $ac_func; | |
31733 | #endif | |
31734 | #ifdef __cplusplus | |
31735 | } | |
31736 | #endif | |
31737 | ||
31738 | int | |
31739 | main () | |
31740 | { | |
31741 | return f != $ac_func; | |
31742 | ; | |
31743 | return 0; | |
31744 | } | |
31745 | _ACEOF | |
31746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 31748 | (eval $ac_link) 2>&5 |
a848cd7e | 31749 | ac_status=$? |
a848cd7e SC |
31750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31751 | (exit $ac_status); } && | |
8a7b1113 | 31752 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
31753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31754 | (eval $ac_try) 2>&5 | |
31755 | ac_status=$? | |
31756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31757 | (exit $ac_status); }; }; then | |
31758 | eval "$as_ac_var=yes" | |
31759 | else | |
31760 | echo "$as_me: failed program was:" >&5 | |
31761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31762 | ||
31763 | eval "$as_ac_var=no" | |
31764 | fi | |
8a7b1113 | 31765 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31766 | fi |
31767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
31768 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
31769 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
31770 | cat >>confdefs.h <<_ACEOF | |
31771 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
31772 | _ACEOF | |
31773 | cat >>confdefs.h <<\_ACEOF | |
31774 | #define HAVE_DLERROR 1 | |
31775 | _ACEOF | |
31776 | ||
31777 | else | |
31778 | ||
31779 | echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5 | |
31780 | echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6 | |
31781 | if test "${ac_cv_lib_dl_dlerror+set}" = set; then | |
31782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31783 | else | |
31784 | ac_check_lib_save_LIBS=$LIBS | |
31785 | LIBS="-ldl $LIBS" | |
31786 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 31787 | #line $LINENO "configure" |
a848cd7e SC |
31788 | /* confdefs.h. */ |
31789 | _ACEOF | |
31790 | cat confdefs.h >>conftest.$ac_ext | |
31791 | cat >>conftest.$ac_ext <<_ACEOF | |
31792 | /* end confdefs.h. */ | |
31793 | ||
31794 | /* Override any gcc2 internal prototype to avoid an error. */ | |
31795 | #ifdef __cplusplus | |
31796 | extern "C" | |
31797 | #endif | |
31798 | /* We use char because int might match the return type of a gcc2 | |
31799 | builtin and then its argument prototype would still apply. */ | |
31800 | char dlerror (); | |
31801 | int | |
31802 | main () | |
31803 | { | |
31804 | dlerror (); | |
31805 | ; | |
31806 | return 0; | |
31807 | } | |
31808 | _ACEOF | |
31809 | rm -f conftest.$ac_objext conftest$ac_exeext | |
31810 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 31811 | (eval $ac_link) 2>&5 |
a848cd7e | 31812 | ac_status=$? |
a848cd7e SC |
31813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31814 | (exit $ac_status); } && | |
8a7b1113 | 31815 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
31816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31817 | (eval $ac_try) 2>&5 | |
31818 | ac_status=$? | |
31819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31820 | (exit $ac_status); }; }; then | |
31821 | ac_cv_lib_dl_dlerror=yes | |
31822 | else | |
31823 | echo "$as_me: failed program was:" >&5 | |
31824 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31825 | ||
31826 | ac_cv_lib_dl_dlerror=no | |
31827 | fi | |
8a7b1113 | 31828 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
31829 | LIBS=$ac_check_lib_save_LIBS |
31830 | fi | |
31831 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5 | |
31832 | echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6 | |
31833 | if test $ac_cv_lib_dl_dlerror = yes; then | |
31834 | cat >>confdefs.h <<\_ACEOF | |
31835 | #define HAVE_DLERROR 1 | |
31836 | _ACEOF | |
31837 | ||
31838 | fi | |
31839 | ||
31840 | ||
31841 | ||
31842 | fi | |
31843 | done | |
31844 | ||
31845 | fi | |
31846 | fi | |
31847 | ||
31848 | if test "$HAVE_DL_FUNCS" = 0; then | |
31849 | if test "$HAVE_SHL_FUNCS" = 0; then | |
31850 | if test "$USE_UNIX" = 1; then | |
31851 | { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5 | |
31852 | echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;} | |
31853 | wxUSE_DYNAMIC_LOADER=no | |
31854 | wxUSE_DYNLIB_CLASS=no | |
31855 | else | |
31856 | { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5 | |
31857 | echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;} | |
31858 | fi | |
31859 | fi | |
31860 | fi | |
31861 | fi | |
31862 | fi | |
31863 | ||
31864 | if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then | |
31865 | cat >>confdefs.h <<\_ACEOF | |
31866 | #define wxUSE_DYNAMIC_LOADER 1 | |
31867 | _ACEOF | |
31868 | ||
31869 | fi | |
31870 | if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then | |
31871 | cat >>confdefs.h <<\_ACEOF | |
31872 | #define wxUSE_DYNLIB_CLASS 1 | |
31873 | _ACEOF | |
31874 | ||
31875 | fi | |
31876 | ||
31877 | ||
31878 | ||
31879 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
31880 | if test "$wxUSE_SHARED" = "no" ; then | |
31881 | { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5 | |
31882 | echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;} | |
31883 | wxUSE_PLUGINS=no | |
31884 | fi | |
31885 | if test "$wxUSE_MONOLITHIC" = "yes" ; then | |
31886 | { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5 | |
31887 | echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;} | |
31888 | wxUSE_PLUGINS=no | |
31889 | fi | |
31890 | if test "$wxUSE_DYNLIB_CLASS" = "no" ; then | |
31891 | { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5 | |
31892 | echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;} | |
31893 | wxUSE_PLUGINS=no | |
31894 | fi | |
31895 | if test "$wxUSE_PLUGINS" = "yes" ; then | |
31896 | cat >>confdefs.h <<\_ACEOF | |
31897 | #define wxUSE_PLUGINS 1 | |
31898 | _ACEOF | |
31899 | ||
31900 | fi | |
31901 | fi | |
31902 | ||
31903 | ||
31904 | if test "$wxUSE_STL" = "yes"; then | |
31905 | cat >>confdefs.h <<\_ACEOF | |
31906 | #define wxUSE_STL 1 | |
31907 | _ACEOF | |
31908 | ||
31909 | fi | |
31910 | ||
31911 | if test "$wxUSE_APPLE_IEEE" = "yes"; then | |
31912 | cat >>confdefs.h <<\_ACEOF | |
31913 | #define wxUSE_APPLE_IEEE 1 | |
31914 | _ACEOF | |
31915 | ||
31916 | fi | |
31917 | ||
31918 | if test "$wxUSE_TIMER" = "yes"; then | |
31919 | cat >>confdefs.h <<\_ACEOF | |
31920 | #define wxUSE_TIMER 1 | |
31921 | _ACEOF | |
31922 | ||
31923 | fi | |
31924 | ||
31925 | WITH_PLUGIN_SDL=0 | |
31926 | if test "$wxUSE_SOUND" = "yes"; then | |
31927 | if test "$USE_UNIX" = "1" ; then | |
31928 | ||
31929 | for ac_header in sys/soundcard.h | |
31930 | do | |
31931 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
31932 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31933 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
31934 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
31935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
31936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
31937 | fi | |
31938 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
31939 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
31940 | else | |
31941 | # Is the header compilable? | |
31942 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
31943 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
31944 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 31945 | #line $LINENO "configure" |
a848cd7e SC |
31946 | /* confdefs.h. */ |
31947 | _ACEOF | |
31948 | cat confdefs.h >>conftest.$ac_ext | |
31949 | cat >>conftest.$ac_ext <<_ACEOF | |
31950 | /* end confdefs.h. */ | |
31951 | $ac_includes_default | |
31952 | #include <$ac_header> | |
31953 | _ACEOF | |
31954 | rm -f conftest.$ac_objext | |
31955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 31956 | (eval $ac_compile) 2>&5 |
a848cd7e | 31957 | ac_status=$? |
a848cd7e SC |
31958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
31959 | (exit $ac_status); } && | |
8a7b1113 | 31960 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
31961 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
31962 | (eval $ac_try) 2>&5 | |
31963 | ac_status=$? | |
31964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31965 | (exit $ac_status); }; }; then | |
31966 | ac_header_compiler=yes | |
31967 | else | |
31968 | echo "$as_me: failed program was:" >&5 | |
31969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
31970 | ||
31971 | ac_header_compiler=no | |
31972 | fi | |
8a7b1113 | 31973 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
31974 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
31975 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
31976 | ||
31977 | # Is the header present? | |
31978 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
31979 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
31980 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 31981 | #line $LINENO "configure" |
a848cd7e SC |
31982 | /* confdefs.h. */ |
31983 | _ACEOF | |
31984 | cat confdefs.h >>conftest.$ac_ext | |
31985 | cat >>conftest.$ac_ext <<_ACEOF | |
31986 | /* end confdefs.h. */ | |
31987 | #include <$ac_header> | |
31988 | _ACEOF | |
31989 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
31990 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
31991 | ac_status=$? | |
31992 | grep -v '^ *+' conftest.er1 >conftest.err | |
31993 | rm -f conftest.er1 | |
31994 | cat conftest.err >&5 | |
31995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
31996 | (exit $ac_status); } >/dev/null; then | |
31997 | if test -s conftest.err; then | |
31998 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
31999 | else |
32000 | ac_cpp_err= | |
32001 | fi | |
32002 | else | |
32003 | ac_cpp_err=yes | |
32004 | fi | |
32005 | if test -z "$ac_cpp_err"; then | |
32006 | ac_header_preproc=yes | |
32007 | else | |
32008 | echo "$as_me: failed program was:" >&5 | |
32009 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32010 | ||
32011 | ac_header_preproc=no | |
32012 | fi | |
32013 | rm -f conftest.err conftest.$ac_ext | |
32014 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
32015 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
32016 | ||
32017 | # So? What about this header? | |
8a7b1113 VZ |
32018 | case $ac_header_compiler:$ac_header_preproc in |
32019 | yes:no ) | |
a848cd7e SC |
32020 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
32021 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
32022 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32023 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
32024 | ( | |
32025 | cat <<\_ASBOX | |
32026 | ## ------------------------------------ ## | |
32027 | ## Report this to bug-autoconf@gnu.org. ## | |
32028 | ## ------------------------------------ ## | |
32029 | _ASBOX | |
32030 | ) | | |
32031 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 32032 | ;; |
8a7b1113 | 32033 | no:yes ) |
a848cd7e SC |
32034 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
32035 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
32036 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
32037 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
32038 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
32039 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
32040 | ( |
32041 | cat <<\_ASBOX | |
8a7b1113 VZ |
32042 | ## ------------------------------------ ## |
32043 | ## Report this to bug-autoconf@gnu.org. ## | |
32044 | ## ------------------------------------ ## | |
a848cd7e SC |
32045 | _ASBOX |
32046 | ) | | |
32047 | sed "s/^/$as_me: WARNING: /" >&2 | |
32048 | ;; | |
32049 | esac | |
32050 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
32051 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
32052 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
32053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32054 | else | |
8a7b1113 | 32055 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
32056 | fi |
32057 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
32058 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
32059 | ||
32060 | fi | |
32061 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
32062 | cat >>confdefs.h <<_ACEOF | |
32063 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
32064 | _ACEOF | |
32065 | ||
32066 | fi | |
32067 | ||
32068 | done | |
32069 | ||
32070 | ||
32071 | if test "$wxUSE_LIBSDL" != "no"; then | |
32072 | ||
32073 | # Check whether --with-sdl-prefix or --without-sdl-prefix was given. | |
32074 | if test "${with_sdl_prefix+set}" = set; then | |
32075 | withval="$with_sdl_prefix" | |
32076 | sdl_prefix="$withval" | |
32077 | else | |
32078 | sdl_prefix="" | |
32079 | fi; | |
32080 | ||
32081 | # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. | |
32082 | if test "${with_sdl_exec_prefix+set}" = set; then | |
32083 | withval="$with_sdl_exec_prefix" | |
32084 | sdl_exec_prefix="$withval" | |
32085 | else | |
32086 | sdl_exec_prefix="" | |
32087 | fi; | |
32088 | # Check whether --enable-sdltest or --disable-sdltest was given. | |
32089 | if test "${enable_sdltest+set}" = set; then | |
32090 | enableval="$enable_sdltest" | |
32091 | ||
32092 | else | |
32093 | enable_sdltest=yes | |
32094 | fi; | |
32095 | ||
32096 | if test x$sdl_exec_prefix != x ; then | |
32097 | sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" | |
32098 | if test x${SDL_CONFIG+set} != xset ; then | |
32099 | SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config | |
32100 | fi | |
32101 | fi | |
32102 | if test x$sdl_prefix != x ; then | |
32103 | sdl_args="$sdl_args --prefix=$sdl_prefix" | |
32104 | if test x${SDL_CONFIG+set} != xset ; then | |
32105 | SDL_CONFIG=$sdl_prefix/bin/sdl-config | |
32106 | fi | |
32107 | fi | |
32108 | ||
32109 | ||
32110 | PATH="$prefix/bin:$prefix/usr/bin:$PATH" | |
32111 | # Extract the first word of "sdl-config", so it can be a program name with args. | |
32112 | set dummy sdl-config; ac_word=$2 | |
32113 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
32114 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
32115 | if test "${ac_cv_path_SDL_CONFIG+set}" = set; then | |
32116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32117 | else | |
32118 | case $SDL_CONFIG in | |
32119 | [\\/]* | ?:[\\/]*) | |
32120 | ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. | |
32121 | ;; | |
32122 | *) | |
32123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
32124 | for as_dir in $PATH | |
32125 | do | |
32126 | IFS=$as_save_IFS | |
32127 | test -z "$as_dir" && as_dir=. | |
32128 | for ac_exec_ext in '' $ac_executable_extensions; do | |
32129 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
32130 | ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
32131 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
32132 | break 2 | |
32133 | fi | |
32134 | done | |
32135 | done | |
32136 | ||
32137 | test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" | |
32138 | ;; | |
32139 | esac | |
32140 | fi | |
32141 | SDL_CONFIG=$ac_cv_path_SDL_CONFIG | |
32142 | ||
32143 | if test -n "$SDL_CONFIG"; then | |
32144 | echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 | |
32145 | echo "${ECHO_T}$SDL_CONFIG" >&6 | |
32146 | else | |
32147 | echo "$as_me:$LINENO: result: no" >&5 | |
32148 | echo "${ECHO_T}no" >&6 | |
32149 | fi | |
32150 | ||
32151 | min_sdl_version=1.2.0 | |
32152 | echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 | |
32153 | echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 | |
32154 | no_sdl="" | |
32155 | if test "$SDL_CONFIG" = "no" ; then | |
32156 | no_sdl=yes | |
32157 | else | |
32158 | SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` | |
32159 | SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` | |
32160 | ||
32161 | sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ | |
32162 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
32163 | sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ | |
32164 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
32165 | sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ | |
32166 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
32167 | if test "x$enable_sdltest" = "xyes" ; then | |
32168 | ac_save_CFLAGS="$CFLAGS" | |
32169 | ac_save_LIBS="$LIBS" | |
32170 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
32171 | LIBS="$LIBS $SDL_LIBS" | |
32172 | rm -f conf.sdltest | |
32173 | if test "$cross_compiling" = yes; then | |
32174 | echo $ac_n "cross compiling; assumed OK... $ac_c" | |
32175 | else | |
32176 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 32177 | #line $LINENO "configure" |
a848cd7e SC |
32178 | /* confdefs.h. */ |
32179 | _ACEOF | |
32180 | cat confdefs.h >>conftest.$ac_ext | |
32181 | cat >>conftest.$ac_ext <<_ACEOF | |
32182 | /* end confdefs.h. */ | |
32183 | ||
32184 | #include <stdio.h> | |
32185 | #include <stdlib.h> | |
32186 | #include <string.h> | |
32187 | #include "SDL.h" | |
32188 | ||
32189 | char* | |
32190 | my_strdup (char *str) | |
32191 | { | |
32192 | char *new_str; | |
32193 | ||
32194 | if (str) | |
32195 | { | |
32196 | new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); | |
32197 | strcpy (new_str, str); | |
32198 | } | |
32199 | else | |
32200 | new_str = NULL; | |
32201 | ||
32202 | return new_str; | |
32203 | } | |
32204 | ||
32205 | int main (int argc, char *argv[]) | |
32206 | { | |
32207 | int major, minor, micro; | |
32208 | char *tmp_version; | |
32209 | ||
32210 | /* This hangs on some systems (?) | |
32211 | system ("touch conf.sdltest"); | |
32212 | */ | |
32213 | { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } | |
32214 | ||
32215 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | |
32216 | tmp_version = my_strdup("$min_sdl_version"); | |
32217 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | |
32218 | printf("%s, bad version string\n", "$min_sdl_version"); | |
32219 | exit(1); | |
32220 | } | |
32221 | ||
32222 | if (($sdl_major_version > major) || | |
32223 | (($sdl_major_version == major) && ($sdl_minor_version > minor)) || | |
32224 | (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) | |
32225 | { | |
32226 | return 0; | |
32227 | } | |
32228 | else | |
32229 | { | |
32230 | printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); | |
32231 | printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); | |
32232 | printf("*** best to upgrade to the required version.\n"); | |
32233 | printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); | |
32234 | printf("*** to point to the correct copy of sdl-config, and remove the file\n"); | |
32235 | printf("*** config.cache before re-running configure\n"); | |
32236 | return 1; | |
32237 | } | |
32238 | } | |
32239 | ||
32240 | ||
32241 | _ACEOF | |
32242 | rm -f conftest$ac_exeext | |
32243 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
32244 | (eval $ac_link) 2>&5 | |
32245 | ac_status=$? | |
32246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32247 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
32248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
32249 | (eval $ac_try) 2>&5 | |
32250 | ac_status=$? | |
32251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32252 | (exit $ac_status); }; }; then | |
32253 | : | |
32254 | else | |
32255 | echo "$as_me: program exited with status $ac_status" >&5 | |
32256 | echo "$as_me: failed program was:" >&5 | |
32257 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32258 | ||
32259 | ( exit $ac_status ) | |
32260 | no_sdl=yes | |
32261 | fi | |
8a7b1113 | 32262 | rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32263 | fi |
32264 | CFLAGS="$ac_save_CFLAGS" | |
32265 | LIBS="$ac_save_LIBS" | |
32266 | fi | |
32267 | fi | |
32268 | if test "x$no_sdl" = x ; then | |
32269 | echo "$as_me:$LINENO: result: yes" >&5 | |
32270 | echo "${ECHO_T}yes" >&6 | |
32271 | ||
32272 | EXTRALIBS_SDL="$SDL_LIBS" | |
32273 | CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" | |
32274 | cat >>confdefs.h <<\_ACEOF | |
32275 | #define wxUSE_LIBSDL 1 | |
32276 | _ACEOF | |
32277 | ||
32278 | ||
32279 | else | |
32280 | echo "$as_me:$LINENO: result: no" >&5 | |
32281 | echo "${ECHO_T}no" >&6 | |
32282 | if test "$SDL_CONFIG" = "no" ; then | |
32283 | echo "*** The sdl-config script installed by SDL could not be found" | |
32284 | echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" | |
32285 | echo "*** your path, or set the SDL_CONFIG environment variable to the" | |
32286 | echo "*** full path to sdl-config." | |
32287 | else | |
32288 | if test -f conf.sdltest ; then | |
32289 | : | |
32290 | else | |
32291 | echo "*** Could not run SDL test program, checking why..." | |
32292 | CFLAGS="$CFLAGS $SDL_CFLAGS" | |
32293 | LIBS="$LIBS $SDL_LIBS" | |
32294 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 32295 | #line $LINENO "configure" |
a848cd7e SC |
32296 | /* confdefs.h. */ |
32297 | _ACEOF | |
32298 | cat confdefs.h >>conftest.$ac_ext | |
32299 | cat >>conftest.$ac_ext <<_ACEOF | |
32300 | /* end confdefs.h. */ | |
32301 | ||
32302 | #include <stdio.h> | |
32303 | #include "SDL.h" | |
32304 | ||
32305 | int main(int argc, char *argv[]) | |
32306 | { return 0; } | |
32307 | #undef main | |
32308 | #define main K_and_R_C_main | |
32309 | ||
32310 | int | |
32311 | main () | |
32312 | { | |
32313 | return 0; | |
32314 | ; | |
32315 | return 0; | |
32316 | } | |
32317 | _ACEOF | |
32318 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32319 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 32320 | (eval $ac_link) 2>&5 |
a848cd7e | 32321 | ac_status=$? |
a848cd7e SC |
32322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32323 | (exit $ac_status); } && | |
8a7b1113 | 32324 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
32325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32326 | (eval $ac_try) 2>&5 | |
32327 | ac_status=$? | |
32328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32329 | (exit $ac_status); }; }; then | |
32330 | echo "*** The test program compiled, but did not run. This usually means" | |
32331 | echo "*** that the run-time linker is not finding SDL or finding the wrong" | |
32332 | echo "*** version of SDL. If it is not finding SDL, you'll need to set your" | |
32333 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | |
32334 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | |
32335 | echo "*** is required on your system" | |
32336 | echo "***" | |
32337 | echo "*** If you have an old version installed, it is best to remove it, although" | |
32338 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | |
32339 | else | |
32340 | echo "$as_me: failed program was:" >&5 | |
32341 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32342 | ||
32343 | echo "*** The test program failed to compile or link. See the file config.log for the" | |
32344 | echo "*** exact error that occured. This usually means SDL was incorrectly installed" | |
32345 | echo "*** or that you have moved SDL since it was installed. In the latter case, you" | |
32346 | echo "*** may want to edit the sdl-config script: $SDL_CONFIG" | |
32347 | fi | |
8a7b1113 | 32348 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
32349 | CFLAGS="$ac_save_CFLAGS" |
32350 | LIBS="$ac_save_LIBS" | |
32351 | fi | |
32352 | fi | |
32353 | SDL_CFLAGS="" | |
32354 | SDL_LIBS="" | |
32355 | wxUSE_LIBSDL="no" | |
32356 | fi | |
32357 | ||
32358 | ||
32359 | rm -f conf.sdltest | |
32360 | ||
32361 | if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then | |
32362 | WITH_PLUGIN_SDL=1 | |
32363 | fi | |
32364 | fi | |
32365 | fi | |
32366 | ||
32367 | cat >>confdefs.h <<\_ACEOF | |
32368 | #define wxUSE_SOUND 1 | |
32369 | _ACEOF | |
32370 | ||
32371 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound" | |
32372 | fi | |
32373 | ||
32374 | if test "$wxUSE_CMDLINE_PARSER" = "yes"; then | |
32375 | cat >>confdefs.h <<\_ACEOF | |
32376 | #define wxUSE_CMDLINE_PARSER 1 | |
32377 | _ACEOF | |
32378 | ||
32379 | fi | |
32380 | ||
32381 | if test "$wxUSE_STOPWATCH" = "yes"; then | |
32382 | cat >>confdefs.h <<\_ACEOF | |
32383 | #define wxUSE_STOPWATCH 1 | |
32384 | _ACEOF | |
32385 | ||
32386 | fi | |
32387 | ||
32388 | if test "$wxUSE_DATETIME" = "yes"; then | |
32389 | cat >>confdefs.h <<\_ACEOF | |
32390 | #define wxUSE_DATETIME 1 | |
32391 | _ACEOF | |
32392 | ||
32393 | fi | |
32394 | ||
32395 | if test "$wxUSE_FILE" = "yes"; then | |
32396 | cat >>confdefs.h <<\_ACEOF | |
32397 | #define wxUSE_FILE 1 | |
32398 | _ACEOF | |
32399 | ||
32400 | fi | |
32401 | ||
32402 | if test "$wxUSE_FFILE" = "yes"; then | |
32403 | cat >>confdefs.h <<\_ACEOF | |
32404 | #define wxUSE_FFILE 1 | |
32405 | _ACEOF | |
32406 | ||
32407 | fi | |
32408 | ||
32409 | if test "$wxUSE_FILESYSTEM" = "yes"; then | |
32410 | cat >>confdefs.h <<\_ACEOF | |
32411 | #define wxUSE_FILESYSTEM 1 | |
32412 | _ACEOF | |
32413 | ||
32414 | fi | |
32415 | ||
32416 | if test "$wxUSE_FS_ZIP" = "yes"; then | |
32417 | cat >>confdefs.h <<\_ACEOF | |
32418 | #define wxUSE_FS_ZIP 1 | |
32419 | _ACEOF | |
32420 | ||
32421 | fi | |
32422 | ||
32423 | if test "$wxUSE_ZIPSTREAM" = "yes"; then | |
32424 | cat >>confdefs.h <<\_ACEOF | |
32425 | #define wxUSE_ZIPSTREAM 1 | |
32426 | _ACEOF | |
32427 | ||
32428 | fi | |
32429 | ||
a848cd7e SC |
32430 | if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then |
32431 | cat >>confdefs.h <<\_ACEOF | |
32432 | #define wxUSE_ON_FATAL_EXCEPTION 1 | |
32433 | _ACEOF | |
32434 | ||
32435 | fi | |
32436 | ||
32437 | if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then | |
32438 | cat >>confdefs.h <<\_ACEOF | |
32439 | #define wxUSE_SNGLINST_CHECKER 1 | |
32440 | _ACEOF | |
32441 | ||
32442 | fi | |
32443 | ||
32444 | if test "$wxUSE_BUSYINFO" = "yes"; then | |
32445 | cat >>confdefs.h <<\_ACEOF | |
32446 | #define wxUSE_BUSYINFO 1 | |
32447 | _ACEOF | |
32448 | ||
32449 | fi | |
32450 | ||
32451 | if test "$wxUSE_STD_IOSTREAM" = "yes"; then | |
32452 | cat >>confdefs.h <<\_ACEOF | |
32453 | #define wxUSE_STD_IOSTREAM 1 | |
32454 | _ACEOF | |
32455 | ||
32456 | fi | |
32457 | ||
32458 | if test "$wxUSE_TEXTBUFFER" = "yes"; then | |
32459 | cat >>confdefs.h <<\_ACEOF | |
32460 | #define wxUSE_TEXTBUFFER 1 | |
32461 | _ACEOF | |
32462 | ||
32463 | fi | |
32464 | ||
32465 | if test "$wxUSE_TEXTFILE" = "yes"; then | |
32466 | if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then | |
32467 | { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5 | |
32468 | echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;} | |
32469 | else | |
32470 | cat >>confdefs.h <<\_ACEOF | |
32471 | #define wxUSE_TEXTFILE 1 | |
32472 | _ACEOF | |
32473 | ||
32474 | fi | |
32475 | fi | |
32476 | ||
32477 | if test "$wxUSE_CONFIG" = "yes" ; then | |
32478 | if test "$wxUSE_TEXTFILE" != "yes"; then | |
32479 | { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5 | |
32480 | echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;} | |
32481 | else | |
32482 | cat >>confdefs.h <<\_ACEOF | |
32483 | #define wxUSE_CONFIG 1 | |
32484 | _ACEOF | |
32485 | ||
32486 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config" | |
32487 | fi | |
32488 | fi | |
32489 | ||
32490 | if test "$wxUSE_INTL" = "yes" ; then | |
32491 | if test "$wxUSE_FILE" != "yes"; then | |
32492 | { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5 | |
32493 | echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;} | |
32494 | else | |
32495 | cat >>confdefs.h <<\_ACEOF | |
32496 | #define wxUSE_INTL 1 | |
32497 | _ACEOF | |
32498 | ||
32499 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat" | |
32500 | GUIDIST="$GUIDIST INTL_DIST" | |
32501 | fi | |
32502 | fi | |
32503 | ||
32504 | if test "$wxUSE_LOG" = "yes"; then | |
32505 | cat >>confdefs.h <<\_ACEOF | |
32506 | #define wxUSE_LOG 1 | |
32507 | _ACEOF | |
32508 | ||
32509 | ||
32510 | if test "$wxUSE_LOGGUI" = "yes"; then | |
32511 | cat >>confdefs.h <<\_ACEOF | |
32512 | #define wxUSE_LOGGUI 1 | |
32513 | _ACEOF | |
32514 | ||
32515 | fi | |
32516 | ||
32517 | if test "$wxUSE_LOGWINDOW" = "yes"; then | |
32518 | cat >>confdefs.h <<\_ACEOF | |
32519 | #define wxUSE_LOGWINDOW 1 | |
32520 | _ACEOF | |
32521 | ||
32522 | fi | |
32523 | ||
32524 | if test "$wxUSE_LOGDIALOG" = "yes"; then | |
32525 | cat >>confdefs.h <<\_ACEOF | |
32526 | #define wxUSE_LOG_DIALOG 1 | |
32527 | _ACEOF | |
32528 | ||
32529 | fi | |
32530 | fi | |
32531 | ||
32532 | if test "$wxUSE_LONGLONG" = "yes"; then | |
32533 | cat >>confdefs.h <<\_ACEOF | |
32534 | #define wxUSE_LONGLONG 1 | |
32535 | _ACEOF | |
32536 | ||
32537 | fi | |
32538 | ||
32539 | if test "$wxUSE_GEOMETRY" = "yes"; then | |
32540 | cat >>confdefs.h <<\_ACEOF | |
32541 | #define wxUSE_GEOMETRY 1 | |
32542 | _ACEOF | |
32543 | ||
32544 | fi | |
32545 | ||
32546 | if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then | |
32547 | cat >>confdefs.h <<\_ACEOF | |
32548 | #define wxUSE_DIALUP_MANAGER 1 | |
32549 | _ACEOF | |
32550 | ||
32551 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup" | |
32552 | fi | |
32553 | ||
32554 | if test "$wxUSE_STREAMS" = "yes" ; then | |
32555 | cat >>confdefs.h <<\_ACEOF | |
32556 | #define wxUSE_STREAMS 1 | |
32557 | _ACEOF | |
32558 | ||
32559 | fi | |
32560 | ||
32561 | ||
32562 | if test "$wxUSE_DATETIME" = "yes"; then | |
32563 | ||
32564 | for ac_func in strptime | |
32565 | do | |
32566 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32567 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32568 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32569 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32570 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32571 | else | |
32572 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 32573 | #line $LINENO "configure" |
a848cd7e SC |
32574 | /* confdefs.h. */ |
32575 | _ACEOF | |
32576 | cat confdefs.h >>conftest.$ac_ext | |
32577 | cat >>conftest.$ac_ext <<_ACEOF | |
32578 | /* end confdefs.h. */ | |
a848cd7e SC |
32579 | /* System header to define __stub macros and hopefully few prototypes, |
32580 | which can conflict with char $ac_func (); below. | |
32581 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32582 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
32583 | #ifdef __STDC__ |
32584 | # include <limits.h> | |
32585 | #else | |
32586 | # include <assert.h> | |
32587 | #endif | |
a848cd7e SC |
32588 | /* Override any gcc2 internal prototype to avoid an error. */ |
32589 | #ifdef __cplusplus | |
32590 | extern "C" | |
32591 | { | |
32592 | #endif | |
32593 | /* We use char because int might match the return type of a gcc2 | |
32594 | builtin and then its argument prototype would still apply. */ | |
32595 | char $ac_func (); | |
32596 | /* The GNU C library defines this for functions which it implements | |
32597 | to always fail with ENOSYS. Some functions are actually named | |
32598 | something starting with __ and the normal name is an alias. */ | |
32599 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32600 | choke me | |
32601 | #else | |
32602 | char (*f) () = $ac_func; | |
32603 | #endif | |
32604 | #ifdef __cplusplus | |
32605 | } | |
32606 | #endif | |
32607 | ||
32608 | int | |
32609 | main () | |
32610 | { | |
32611 | return f != $ac_func; | |
32612 | ; | |
32613 | return 0; | |
32614 | } | |
32615 | _ACEOF | |
32616 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32617 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 32618 | (eval $ac_link) 2>&5 |
a848cd7e | 32619 | ac_status=$? |
a848cd7e SC |
32620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32621 | (exit $ac_status); } && | |
8a7b1113 | 32622 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
32623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32624 | (eval $ac_try) 2>&5 | |
32625 | ac_status=$? | |
32626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32627 | (exit $ac_status); }; }; then | |
32628 | eval "$as_ac_var=yes" | |
32629 | else | |
32630 | echo "$as_me: failed program was:" >&5 | |
32631 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32632 | ||
32633 | eval "$as_ac_var=no" | |
32634 | fi | |
8a7b1113 | 32635 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
32636 | fi |
32637 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32638 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32639 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32640 | cat >>confdefs.h <<_ACEOF | |
32641 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32642 | _ACEOF | |
32643 | ||
32644 | fi | |
32645 | done | |
32646 | ||
32647 | ||
32648 | echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5 | |
32649 | echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6 | |
32650 | if test "${wx_cv_var_timezone+set}" = set; then | |
32651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32652 | else | |
32653 | ||
32654 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 32655 | #line $LINENO "configure" |
a848cd7e SC |
32656 | /* confdefs.h. */ |
32657 | _ACEOF | |
32658 | cat confdefs.h >>conftest.$ac_ext | |
32659 | cat >>conftest.$ac_ext <<_ACEOF | |
32660 | /* end confdefs.h. */ | |
32661 | ||
32662 | #include <time.h> | |
32663 | ||
32664 | int | |
32665 | main () | |
32666 | { | |
32667 | ||
32668 | int tz; | |
32669 | tz = timezone; | |
32670 | ||
32671 | ; | |
32672 | return 0; | |
32673 | } | |
32674 | _ACEOF | |
32675 | rm -f conftest.$ac_objext | |
32676 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 32677 | (eval $ac_compile) 2>&5 |
a848cd7e | 32678 | ac_status=$? |
a848cd7e SC |
32679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32680 | (exit $ac_status); } && | |
8a7b1113 | 32681 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
32682 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32683 | (eval $ac_try) 2>&5 | |
32684 | ac_status=$? | |
32685 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32686 | (exit $ac_status); }; }; then | |
32687 | ||
32688 | wx_cv_var_timezone=timezone | |
32689 | ||
32690 | else | |
32691 | echo "$as_me: failed program was:" >&5 | |
32692 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32693 | ||
32694 | ||
32695 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 32696 | #line $LINENO "configure" |
a848cd7e SC |
32697 | /* confdefs.h. */ |
32698 | _ACEOF | |
32699 | cat confdefs.h >>conftest.$ac_ext | |
32700 | cat >>conftest.$ac_ext <<_ACEOF | |
32701 | /* end confdefs.h. */ | |
32702 | ||
32703 | #include <time.h> | |
32704 | ||
32705 | int | |
32706 | main () | |
32707 | { | |
32708 | ||
32709 | int tz; | |
32710 | tz = _timezone; | |
32711 | ||
32712 | ; | |
32713 | return 0; | |
32714 | } | |
32715 | _ACEOF | |
32716 | rm -f conftest.$ac_objext | |
32717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 32718 | (eval $ac_compile) 2>&5 |
a848cd7e | 32719 | ac_status=$? |
a848cd7e SC |
32720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32721 | (exit $ac_status); } && | |
8a7b1113 | 32722 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
32723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32724 | (eval $ac_try) 2>&5 | |
32725 | ac_status=$? | |
32726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32727 | (exit $ac_status); }; }; then | |
32728 | ||
32729 | wx_cv_var_timezone=_timezone | |
32730 | ||
32731 | else | |
32732 | echo "$as_me: failed program was:" >&5 | |
32733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32734 | ||
32735 | ||
32736 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 32737 | #line $LINENO "configure" |
a848cd7e SC |
32738 | /* confdefs.h. */ |
32739 | _ACEOF | |
32740 | cat confdefs.h >>conftest.$ac_ext | |
32741 | cat >>conftest.$ac_ext <<_ACEOF | |
32742 | /* end confdefs.h. */ | |
32743 | ||
32744 | #include <time.h> | |
32745 | ||
32746 | int | |
32747 | main () | |
32748 | { | |
32749 | ||
32750 | int tz; | |
32751 | tz = __timezone; | |
32752 | ||
32753 | ; | |
32754 | return 0; | |
32755 | } | |
32756 | _ACEOF | |
32757 | rm -f conftest.$ac_objext | |
32758 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 32759 | (eval $ac_compile) 2>&5 |
a848cd7e | 32760 | ac_status=$? |
a848cd7e SC |
32761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32762 | (exit $ac_status); } && | |
8a7b1113 | 32763 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
32764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32765 | (eval $ac_try) 2>&5 | |
32766 | ac_status=$? | |
32767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32768 | (exit $ac_status); }; }; then | |
32769 | ||
32770 | wx_cv_var_timezone=__timezone | |
32771 | ||
32772 | else | |
32773 | echo "$as_me: failed program was:" >&5 | |
32774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32775 | ||
32776 | ||
32777 | if test "$USE_DOS" = 0 ; then | |
32778 | { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5 | |
32779 | echo "$as_me: WARNING: no timezone variable" >&2;} | |
32780 | fi | |
32781 | ||
32782 | ||
32783 | fi | |
8a7b1113 | 32784 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32785 | |
32786 | ||
32787 | fi | |
8a7b1113 | 32788 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32789 | |
32790 | ||
32791 | fi | |
8a7b1113 | 32792 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32793 | |
32794 | ||
32795 | fi | |
32796 | echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5 | |
32797 | echo "${ECHO_T}$wx_cv_var_timezone" >&6 | |
32798 | ||
32799 | if test "x$wx_cv_var_timezone" != x ; then | |
32800 | cat >>confdefs.h <<_ACEOF | |
32801 | #define WX_TIMEZONE $wx_cv_var_timezone | |
32802 | _ACEOF | |
32803 | ||
32804 | fi | |
32805 | ||
32806 | ||
32807 | for ac_func in localtime | |
32808 | do | |
32809 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32810 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32811 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32812 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32814 | else | |
32815 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 32816 | #line $LINENO "configure" |
a848cd7e SC |
32817 | /* confdefs.h. */ |
32818 | _ACEOF | |
32819 | cat confdefs.h >>conftest.$ac_ext | |
32820 | cat >>conftest.$ac_ext <<_ACEOF | |
32821 | /* end confdefs.h. */ | |
a848cd7e SC |
32822 | /* System header to define __stub macros and hopefully few prototypes, |
32823 | which can conflict with char $ac_func (); below. | |
32824 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32825 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
32826 | #ifdef __STDC__ |
32827 | # include <limits.h> | |
32828 | #else | |
32829 | # include <assert.h> | |
32830 | #endif | |
a848cd7e SC |
32831 | /* Override any gcc2 internal prototype to avoid an error. */ |
32832 | #ifdef __cplusplus | |
32833 | extern "C" | |
32834 | { | |
32835 | #endif | |
32836 | /* We use char because int might match the return type of a gcc2 | |
32837 | builtin and then its argument prototype would still apply. */ | |
32838 | char $ac_func (); | |
32839 | /* The GNU C library defines this for functions which it implements | |
32840 | to always fail with ENOSYS. Some functions are actually named | |
32841 | something starting with __ and the normal name is an alias. */ | |
32842 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32843 | choke me | |
32844 | #else | |
32845 | char (*f) () = $ac_func; | |
32846 | #endif | |
32847 | #ifdef __cplusplus | |
32848 | } | |
32849 | #endif | |
32850 | ||
32851 | int | |
32852 | main () | |
32853 | { | |
32854 | return f != $ac_func; | |
32855 | ; | |
32856 | return 0; | |
32857 | } | |
32858 | _ACEOF | |
32859 | rm -f conftest.$ac_objext conftest$ac_exeext | |
32860 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 32861 | (eval $ac_link) 2>&5 |
a848cd7e | 32862 | ac_status=$? |
a848cd7e SC |
32863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32864 | (exit $ac_status); } && | |
8a7b1113 | 32865 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
32866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32867 | (eval $ac_try) 2>&5 | |
32868 | ac_status=$? | |
32869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32870 | (exit $ac_status); }; }; then | |
32871 | eval "$as_ac_var=yes" | |
32872 | else | |
32873 | echo "$as_me: failed program was:" >&5 | |
32874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32875 | ||
32876 | eval "$as_ac_var=no" | |
32877 | fi | |
8a7b1113 | 32878 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
32879 | fi |
32880 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
32881 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
32882 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
32883 | cat >>confdefs.h <<_ACEOF | |
32884 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
32885 | _ACEOF | |
32886 | ||
32887 | fi | |
32888 | done | |
32889 | ||
32890 | ||
32891 | if test "$ac_cv_func_localtime" = "yes"; then | |
32892 | echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5 | |
32893 | echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6 | |
32894 | if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then | |
32895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32896 | else | |
32897 | ||
32898 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 32899 | #line $LINENO "configure" |
a848cd7e SC |
32900 | /* confdefs.h. */ |
32901 | _ACEOF | |
32902 | cat confdefs.h >>conftest.$ac_ext | |
32903 | cat >>conftest.$ac_ext <<_ACEOF | |
32904 | /* end confdefs.h. */ | |
32905 | ||
32906 | #include <time.h> | |
32907 | ||
32908 | int | |
32909 | main () | |
32910 | { | |
32911 | ||
32912 | struct tm tm; | |
32913 | tm.tm_gmtoff++; | |
32914 | ||
32915 | ; | |
32916 | return 0; | |
32917 | } | |
32918 | _ACEOF | |
32919 | rm -f conftest.$ac_objext | |
32920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 32921 | (eval $ac_compile) 2>&5 |
a848cd7e | 32922 | ac_status=$? |
a848cd7e SC |
32923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
32924 | (exit $ac_status); } && | |
8a7b1113 | 32925 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
32926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
32927 | (eval $ac_try) 2>&5 | |
32928 | ac_status=$? | |
32929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
32930 | (exit $ac_status); }; }; then | |
32931 | ||
32932 | wx_cv_struct_tm_has_gmtoff=yes | |
32933 | ||
32934 | else | |
32935 | echo "$as_me: failed program was:" >&5 | |
32936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
32937 | ||
32938 | wx_cv_struct_tm_has_gmtoff=no | |
32939 | ||
32940 | fi | |
8a7b1113 | 32941 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
32942 | |
32943 | fi | |
32944 | echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5 | |
32945 | echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6 | |
32946 | fi | |
32947 | ||
32948 | if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then | |
32949 | cat >>confdefs.h <<\_ACEOF | |
32950 | #define WX_GMTOFF_IN_TM 1 | |
32951 | _ACEOF | |
32952 | ||
32953 | fi | |
32954 | ||
32955 | ||
32956 | ||
32957 | for ac_func in gettimeofday ftime | |
32958 | do | |
32959 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
32960 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
32961 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
32962 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
32963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
32964 | else | |
32965 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 32966 | #line $LINENO "configure" |
a848cd7e SC |
32967 | /* confdefs.h. */ |
32968 | _ACEOF | |
32969 | cat confdefs.h >>conftest.$ac_ext | |
32970 | cat >>conftest.$ac_ext <<_ACEOF | |
32971 | /* end confdefs.h. */ | |
a848cd7e SC |
32972 | /* System header to define __stub macros and hopefully few prototypes, |
32973 | which can conflict with char $ac_func (); below. | |
32974 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
32975 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
32976 | #ifdef __STDC__ |
32977 | # include <limits.h> | |
32978 | #else | |
32979 | # include <assert.h> | |
32980 | #endif | |
a848cd7e SC |
32981 | /* Override any gcc2 internal prototype to avoid an error. */ |
32982 | #ifdef __cplusplus | |
32983 | extern "C" | |
32984 | { | |
32985 | #endif | |
32986 | /* We use char because int might match the return type of a gcc2 | |
32987 | builtin and then its argument prototype would still apply. */ | |
32988 | char $ac_func (); | |
32989 | /* The GNU C library defines this for functions which it implements | |
32990 | to always fail with ENOSYS. Some functions are actually named | |
32991 | something starting with __ and the normal name is an alias. */ | |
32992 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
32993 | choke me | |
32994 | #else | |
32995 | char (*f) () = $ac_func; | |
32996 | #endif | |
32997 | #ifdef __cplusplus | |
32998 | } | |
32999 | #endif | |
33000 | ||
33001 | int | |
33002 | main () | |
33003 | { | |
33004 | return f != $ac_func; | |
33005 | ; | |
33006 | return 0; | |
33007 | } | |
33008 | _ACEOF | |
33009 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33010 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 33011 | (eval $ac_link) 2>&5 |
a848cd7e | 33012 | ac_status=$? |
a848cd7e SC |
33013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33014 | (exit $ac_status); } && | |
8a7b1113 | 33015 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
33016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33017 | (eval $ac_try) 2>&5 | |
33018 | ac_status=$? | |
33019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33020 | (exit $ac_status); }; }; then | |
33021 | eval "$as_ac_var=yes" | |
33022 | else | |
33023 | echo "$as_me: failed program was:" >&5 | |
33024 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33025 | ||
33026 | eval "$as_ac_var=no" | |
33027 | fi | |
8a7b1113 | 33028 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
33029 | fi |
33030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
33031 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
33032 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
33033 | cat >>confdefs.h <<_ACEOF | |
33034 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
33035 | _ACEOF | |
33036 | break | |
33037 | fi | |
33038 | done | |
33039 | ||
33040 | ||
33041 | if test "$ac_cv_func_gettimeofday" = "yes"; then | |
33042 | echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5 | |
33043 | echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6 | |
33044 | if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then | |
33045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33046 | else | |
33047 | ||
33048 | ||
33049 | ||
33050 | ac_ext=cc | |
33051 | ac_cpp='$CXXCPP $CPPFLAGS' | |
33052 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33053 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33054 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
33055 | ||
33056 | ||
33057 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 33058 | #line $LINENO "configure" |
a848cd7e SC |
33059 | /* confdefs.h. */ |
33060 | _ACEOF | |
33061 | cat confdefs.h >>conftest.$ac_ext | |
33062 | cat >>conftest.$ac_ext <<_ACEOF | |
33063 | /* end confdefs.h. */ | |
33064 | ||
33065 | #include <sys/time.h> | |
33066 | #include <unistd.h> | |
33067 | ||
33068 | int | |
33069 | main () | |
33070 | { | |
33071 | ||
33072 | struct timeval tv; | |
33073 | gettimeofday(&tv, NULL); | |
33074 | ||
33075 | ; | |
33076 | return 0; | |
33077 | } | |
33078 | _ACEOF | |
33079 | rm -f conftest.$ac_objext | |
33080 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 33081 | (eval $ac_compile) 2>&5 |
a848cd7e | 33082 | ac_status=$? |
a848cd7e SC |
33083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33084 | (exit $ac_status); } && | |
8a7b1113 | 33085 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
33086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33087 | (eval $ac_try) 2>&5 | |
33088 | ac_status=$? | |
33089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33090 | (exit $ac_status); }; }; then | |
33091 | wx_cv_func_gettimeofday_has_2_args=yes | |
33092 | else | |
33093 | echo "$as_me: failed program was:" >&5 | |
33094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33095 | ||
33096 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 33097 | #line $LINENO "configure" |
a848cd7e SC |
33098 | /* confdefs.h. */ |
33099 | _ACEOF | |
33100 | cat confdefs.h >>conftest.$ac_ext | |
33101 | cat >>conftest.$ac_ext <<_ACEOF | |
33102 | /* end confdefs.h. */ | |
33103 | ||
33104 | #include <sys/time.h> | |
33105 | #include <unistd.h> | |
33106 | ||
33107 | int | |
33108 | main () | |
33109 | { | |
33110 | ||
33111 | struct timeval tv; | |
33112 | gettimeofday(&tv); | |
33113 | ||
33114 | ; | |
33115 | return 0; | |
33116 | } | |
33117 | _ACEOF | |
33118 | rm -f conftest.$ac_objext | |
33119 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 33120 | (eval $ac_compile) 2>&5 |
a848cd7e | 33121 | ac_status=$? |
a848cd7e SC |
33122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33123 | (exit $ac_status); } && | |
8a7b1113 | 33124 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
33125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33126 | (eval $ac_try) 2>&5 | |
33127 | ac_status=$? | |
33128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33129 | (exit $ac_status); }; }; then | |
33130 | wx_cv_func_gettimeofday_has_2_args=no | |
33131 | else | |
33132 | echo "$as_me: failed program was:" >&5 | |
33133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33134 | ||
33135 | ||
33136 | { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5 | |
33137 | echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;} | |
33138 | wx_cv_func_gettimeofday_has_2_args=unknown | |
33139 | ||
33140 | ||
33141 | fi | |
8a7b1113 | 33142 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33143 | |
33144 | fi | |
8a7b1113 | 33145 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33146 | ac_ext=c |
33147 | ac_cpp='$CPP $CPPFLAGS' | |
33148 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
33149 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
33150 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
33151 | ||
33152 | ||
33153 | fi | |
33154 | echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5 | |
33155 | echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6 | |
33156 | ||
33157 | if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then | |
33158 | cat >>confdefs.h <<\_ACEOF | |
33159 | #define WX_GETTIMEOFDAY_NO_TZ 1 | |
33160 | _ACEOF | |
33161 | ||
33162 | fi | |
33163 | fi | |
33164 | ||
33165 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest" | |
33166 | fi | |
33167 | ||
33168 | ||
33169 | if test "$wxUSE_SOCKETS" = "yes"; then | |
33170 | if test "$wxUSE_MGL" = "1"; then | |
33171 | { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5 | |
33172 | echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;} | |
33173 | wxUSE_SOCKETS="no" | |
33174 | fi | |
33175 | fi | |
33176 | ||
33177 | if test "$wxUSE_SOCKETS" = "yes"; then | |
33178 | if test "$TOOLKIT" != "MSW"; then | |
33179 | echo "$as_me:$LINENO: checking for socket" >&5 | |
33180 | echo $ECHO_N "checking for socket... $ECHO_C" >&6 | |
33181 | if test "${ac_cv_func_socket+set}" = set; then | |
33182 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33183 | else | |
33184 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 33185 | #line $LINENO "configure" |
a848cd7e SC |
33186 | /* confdefs.h. */ |
33187 | _ACEOF | |
33188 | cat confdefs.h >>conftest.$ac_ext | |
33189 | cat >>conftest.$ac_ext <<_ACEOF | |
33190 | /* end confdefs.h. */ | |
a848cd7e SC |
33191 | /* System header to define __stub macros and hopefully few prototypes, |
33192 | which can conflict with char socket (); below. | |
33193 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
33194 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
33195 | #ifdef __STDC__ |
33196 | # include <limits.h> | |
33197 | #else | |
33198 | # include <assert.h> | |
33199 | #endif | |
a848cd7e SC |
33200 | /* Override any gcc2 internal prototype to avoid an error. */ |
33201 | #ifdef __cplusplus | |
33202 | extern "C" | |
33203 | { | |
33204 | #endif | |
33205 | /* We use char because int might match the return type of a gcc2 | |
33206 | builtin and then its argument prototype would still apply. */ | |
33207 | char socket (); | |
33208 | /* The GNU C library defines this for functions which it implements | |
33209 | to always fail with ENOSYS. Some functions are actually named | |
33210 | something starting with __ and the normal name is an alias. */ | |
33211 | #if defined (__stub_socket) || defined (__stub___socket) | |
33212 | choke me | |
33213 | #else | |
33214 | char (*f) () = socket; | |
33215 | #endif | |
33216 | #ifdef __cplusplus | |
33217 | } | |
33218 | #endif | |
33219 | ||
33220 | int | |
33221 | main () | |
33222 | { | |
33223 | return f != socket; | |
33224 | ; | |
33225 | return 0; | |
33226 | } | |
33227 | _ACEOF | |
33228 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33229 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 33230 | (eval $ac_link) 2>&5 |
a848cd7e | 33231 | ac_status=$? |
a848cd7e SC |
33232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33233 | (exit $ac_status); } && | |
8a7b1113 | 33234 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
33235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33236 | (eval $ac_try) 2>&5 | |
33237 | ac_status=$? | |
33238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33239 | (exit $ac_status); }; }; then | |
33240 | ac_cv_func_socket=yes | |
33241 | else | |
33242 | echo "$as_me: failed program was:" >&5 | |
33243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33244 | ||
33245 | ac_cv_func_socket=no | |
33246 | fi | |
8a7b1113 | 33247 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
33248 | fi |
33249 | echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 | |
33250 | echo "${ECHO_T}$ac_cv_func_socket" >&6 | |
33251 | if test $ac_cv_func_socket = yes; then | |
33252 | : | |
33253 | else | |
33254 | ||
33255 | echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 | |
33256 | echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6 | |
33257 | if test "${ac_cv_lib_socket_socket+set}" = set; then | |
33258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33259 | else | |
33260 | ac_check_lib_save_LIBS=$LIBS | |
33261 | LIBS="-lsocket $LIBS" | |
33262 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 33263 | #line $LINENO "configure" |
a848cd7e SC |
33264 | /* confdefs.h. */ |
33265 | _ACEOF | |
33266 | cat confdefs.h >>conftest.$ac_ext | |
33267 | cat >>conftest.$ac_ext <<_ACEOF | |
33268 | /* end confdefs.h. */ | |
33269 | ||
33270 | /* Override any gcc2 internal prototype to avoid an error. */ | |
33271 | #ifdef __cplusplus | |
33272 | extern "C" | |
33273 | #endif | |
33274 | /* We use char because int might match the return type of a gcc2 | |
33275 | builtin and then its argument prototype would still apply. */ | |
33276 | char socket (); | |
33277 | int | |
33278 | main () | |
33279 | { | |
33280 | socket (); | |
33281 | ; | |
33282 | return 0; | |
33283 | } | |
33284 | _ACEOF | |
33285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33286 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 33287 | (eval $ac_link) 2>&5 |
a848cd7e | 33288 | ac_status=$? |
a848cd7e SC |
33289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33290 | (exit $ac_status); } && | |
8a7b1113 | 33291 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
33292 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33293 | (eval $ac_try) 2>&5 | |
33294 | ac_status=$? | |
33295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33296 | (exit $ac_status); }; }; then | |
33297 | ac_cv_lib_socket_socket=yes | |
33298 | else | |
33299 | echo "$as_me: failed program was:" >&5 | |
33300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33301 | ||
33302 | ac_cv_lib_socket_socket=no | |
33303 | fi | |
8a7b1113 | 33304 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
33305 | LIBS=$ac_check_lib_save_LIBS |
33306 | fi | |
33307 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 | |
33308 | echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6 | |
33309 | if test $ac_cv_lib_socket_socket = yes; then | |
33310 | if test "$INET_LINK" != " -lsocket"; then | |
33311 | INET_LINK="$INET_LINK -lsocket" | |
33312 | fi | |
33313 | else | |
33314 | ||
33315 | { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5 | |
33316 | echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;} | |
33317 | wxUSE_SOCKETS=no | |
33318 | ||
33319 | ||
33320 | fi | |
33321 | ||
33322 | ||
33323 | ||
33324 | fi | |
33325 | ||
33326 | fi | |
33327 | fi | |
33328 | ||
33329 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
33330 | if test "$TOOLKIT" != "MSW"; then | |
33331 | echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5 | |
33332 | echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6 | |
33333 | if test "${wx_cv_type_getsockname3+set}" = set; then | |
33334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33335 | else | |
33336 | ||
33337 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 33338 | #line $LINENO "configure" |
a848cd7e SC |
33339 | /* confdefs.h. */ |
33340 | _ACEOF | |
33341 | cat confdefs.h >>conftest.$ac_ext | |
33342 | cat >>conftest.$ac_ext <<_ACEOF | |
33343 | /* end confdefs.h. */ | |
33344 | ||
33345 | #include <sys/types.h> | |
33346 | #include <sys/socket.h> | |
33347 | ||
33348 | int | |
33349 | main () | |
33350 | { | |
33351 | ||
33352 | socklen_t len; | |
33353 | getsockname(0, 0, &len); | |
33354 | ||
33355 | ; | |
33356 | return 0; | |
33357 | } | |
33358 | _ACEOF | |
33359 | rm -f conftest.$ac_objext | |
33360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 33361 | (eval $ac_compile) 2>&5 |
a848cd7e | 33362 | ac_status=$? |
a848cd7e SC |
33363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33364 | (exit $ac_status); } && | |
8a7b1113 | 33365 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
33366 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33367 | (eval $ac_try) 2>&5 | |
33368 | ac_status=$? | |
33369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33370 | (exit $ac_status); }; }; then | |
33371 | wx_cv_type_getsockname3=socklen_t | |
33372 | else | |
33373 | echo "$as_me: failed program was:" >&5 | |
33374 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33375 | ||
33376 | ||
33377 | CFLAGS_OLD="$CFLAGS" | |
33378 | if test "$GCC" = yes ; then | |
33379 | CFLAGS="$CFLAGS -Werror" | |
33380 | fi | |
33381 | ||
33382 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 33383 | #line $LINENO "configure" |
a848cd7e SC |
33384 | /* confdefs.h. */ |
33385 | _ACEOF | |
33386 | cat confdefs.h >>conftest.$ac_ext | |
33387 | cat >>conftest.$ac_ext <<_ACEOF | |
33388 | /* end confdefs.h. */ | |
33389 | ||
33390 | #include <sys/types.h> | |
33391 | #include <sys/socket.h> | |
33392 | ||
33393 | int | |
33394 | main () | |
33395 | { | |
33396 | ||
33397 | size_t len; | |
33398 | getsockname(0, 0, &len); | |
33399 | ||
33400 | ; | |
33401 | return 0; | |
33402 | } | |
33403 | _ACEOF | |
33404 | rm -f conftest.$ac_objext | |
33405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 33406 | (eval $ac_compile) 2>&5 |
a848cd7e | 33407 | ac_status=$? |
a848cd7e SC |
33408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33409 | (exit $ac_status); } && | |
8a7b1113 | 33410 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
33411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33412 | (eval $ac_try) 2>&5 | |
33413 | ac_status=$? | |
33414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33415 | (exit $ac_status); }; }; then | |
33416 | wx_cv_type_getsockname3=size_t | |
33417 | else | |
33418 | echo "$as_me: failed program was:" >&5 | |
33419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33420 | ||
33421 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 33422 | #line $LINENO "configure" |
a848cd7e SC |
33423 | /* confdefs.h. */ |
33424 | _ACEOF | |
33425 | cat confdefs.h >>conftest.$ac_ext | |
33426 | cat >>conftest.$ac_ext <<_ACEOF | |
33427 | /* end confdefs.h. */ | |
33428 | ||
33429 | #include <sys/types.h> | |
33430 | #include <sys/socket.h> | |
33431 | ||
33432 | int | |
33433 | main () | |
33434 | { | |
33435 | ||
33436 | int len; | |
33437 | getsockname(0, 0, &len); | |
33438 | ||
33439 | ; | |
33440 | return 0; | |
33441 | } | |
33442 | _ACEOF | |
33443 | rm -f conftest.$ac_objext | |
33444 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 33445 | (eval $ac_compile) 2>&5 |
a848cd7e | 33446 | ac_status=$? |
a848cd7e SC |
33447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33448 | (exit $ac_status); } && | |
8a7b1113 | 33449 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
33450 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33451 | (eval $ac_try) 2>&5 | |
33452 | ac_status=$? | |
33453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33454 | (exit $ac_status); }; }; then | |
33455 | wx_cv_type_getsockname3=int | |
33456 | else | |
33457 | echo "$as_me: failed program was:" >&5 | |
33458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33459 | ||
33460 | wx_cv_type_getsockname3=unknown | |
33461 | ||
33462 | fi | |
8a7b1113 | 33463 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33464 | |
33465 | fi | |
8a7b1113 | 33466 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33467 | |
33468 | CFLAGS="$CFLAGS_OLD" | |
33469 | ||
33470 | ||
33471 | fi | |
8a7b1113 | 33472 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33473 | |
33474 | fi | |
33475 | echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5 | |
33476 | echo "${ECHO_T}$wx_cv_type_getsockname3" >&6 | |
33477 | ||
33478 | if test "$wx_cv_type_getsockname3" = "unknown"; then | |
33479 | wxUSE_SOCKETS=no | |
33480 | { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5 | |
33481 | echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;} | |
33482 | else | |
33483 | cat >>confdefs.h <<_ACEOF | |
33484 | #define SOCKLEN_T $wx_cv_type_getsockname3 | |
33485 | _ACEOF | |
33486 | ||
33487 | fi | |
33488 | fi | |
33489 | fi | |
33490 | ||
33491 | if test "$wxUSE_SOCKETS" = "yes" ; then | |
33492 | cat >>confdefs.h <<\_ACEOF | |
33493 | #define wxUSE_SOCKETS 1 | |
33494 | _ACEOF | |
33495 | ||
33496 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets" | |
33497 | fi | |
33498 | ||
33499 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
33500 | if test "$wxUSE_SOCKETS" != "yes"; then | |
33501 | { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5 | |
33502 | echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;} | |
33503 | wxUSE_PROTOCOL=no | |
33504 | fi | |
33505 | fi | |
33506 | ||
33507 | if test "$wxUSE_PROTOCOL" = "yes"; then | |
33508 | cat >>confdefs.h <<\_ACEOF | |
33509 | #define wxUSE_PROTOCOL 1 | |
33510 | _ACEOF | |
33511 | ||
33512 | ||
33513 | if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then | |
33514 | cat >>confdefs.h <<\_ACEOF | |
33515 | #define wxUSE_PROTOCOL_HTTP 1 | |
33516 | _ACEOF | |
33517 | ||
33518 | fi | |
33519 | if test "$wxUSE_PROTOCOL_FTP" = "yes"; then | |
33520 | cat >>confdefs.h <<\_ACEOF | |
33521 | #define wxUSE_PROTOCOL_FTP 1 | |
33522 | _ACEOF | |
33523 | ||
33524 | fi | |
33525 | if test "$wxUSE_PROTOCOL_FILE" = "yes"; then | |
33526 | cat >>confdefs.h <<\_ACEOF | |
33527 | #define wxUSE_PROTOCOL_FILE 1 | |
33528 | _ACEOF | |
33529 | ||
33530 | fi | |
33531 | else | |
33532 | if test "$wxUSE_FS_INET" = "yes"; then | |
33533 | { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5 | |
33534 | echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;} | |
33535 | wxUSE_FS_INET="no" | |
33536 | fi | |
33537 | fi | |
33538 | ||
33539 | if test "$wxUSE_URL" = "yes"; then | |
33540 | if test "$wxUSE_PROTOCOL" != "yes"; then | |
33541 | { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5 | |
33542 | echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;} | |
33543 | wxUSE_URL=no | |
33544 | fi | |
33545 | if test "$wxUSE_URL" = "yes"; then | |
33546 | cat >>confdefs.h <<\_ACEOF | |
33547 | #define wxUSE_URL 1 | |
33548 | _ACEOF | |
33549 | ||
33550 | fi | |
33551 | fi | |
33552 | ||
33553 | if test "$wxUSE_FS_INET" = "yes"; then | |
33554 | cat >>confdefs.h <<\_ACEOF | |
33555 | #define wxUSE_FS_INET 1 | |
33556 | _ACEOF | |
33557 | ||
33558 | fi | |
33559 | ||
33560 | ||
33561 | if test "$wxUSE_GUI" = "yes"; then | |
33562 | ||
33563 | if test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then | |
33564 | { echo "$as_me:$LINENO: WARNING: Joystick not yet supported under Mac OS X... disabled" >&5 | |
33565 | echo "$as_me: WARNING: Joystick not yet supported under Mac OS X... disabled" >&2;} | |
33566 | wxUSE_JOYSTICK=no | |
33567 | fi | |
33568 | ||
33569 | if test "$TOOLKIT" != "MSW"; then | |
33570 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
33571 | ||
33572 | for ac_header in linux/joystick.h | |
33573 | do | |
33574 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33575 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33576 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33578 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33580 | fi | |
33581 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33582 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33583 | else | |
33584 | # Is the header compilable? | |
33585 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33586 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33587 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 33588 | #line $LINENO "configure" |
a848cd7e SC |
33589 | /* confdefs.h. */ |
33590 | _ACEOF | |
33591 | cat confdefs.h >>conftest.$ac_ext | |
33592 | cat >>conftest.$ac_ext <<_ACEOF | |
33593 | /* end confdefs.h. */ | |
33594 | $ac_includes_default | |
33595 | #include <$ac_header> | |
33596 | _ACEOF | |
33597 | rm -f conftest.$ac_objext | |
33598 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 33599 | (eval $ac_compile) 2>&5 |
a848cd7e | 33600 | ac_status=$? |
a848cd7e SC |
33601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33602 | (exit $ac_status); } && | |
8a7b1113 | 33603 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
33604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33605 | (eval $ac_try) 2>&5 | |
33606 | ac_status=$? | |
33607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33608 | (exit $ac_status); }; }; then | |
33609 | ac_header_compiler=yes | |
33610 | else | |
33611 | echo "$as_me: failed program was:" >&5 | |
33612 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33613 | ||
33614 | ac_header_compiler=no | |
33615 | fi | |
8a7b1113 | 33616 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33617 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33618 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33619 | ||
33620 | # Is the header present? | |
33621 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33622 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33623 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 33624 | #line $LINENO "configure" |
a848cd7e SC |
33625 | /* confdefs.h. */ |
33626 | _ACEOF | |
33627 | cat confdefs.h >>conftest.$ac_ext | |
33628 | cat >>conftest.$ac_ext <<_ACEOF | |
33629 | /* end confdefs.h. */ | |
33630 | #include <$ac_header> | |
33631 | _ACEOF | |
33632 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33633 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33634 | ac_status=$? | |
33635 | grep -v '^ *+' conftest.er1 >conftest.err | |
33636 | rm -f conftest.er1 | |
33637 | cat conftest.err >&5 | |
33638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33639 | (exit $ac_status); } >/dev/null; then | |
33640 | if test -s conftest.err; then | |
33641 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
33642 | else |
33643 | ac_cpp_err= | |
33644 | fi | |
33645 | else | |
33646 | ac_cpp_err=yes | |
33647 | fi | |
33648 | if test -z "$ac_cpp_err"; then | |
33649 | ac_header_preproc=yes | |
33650 | else | |
33651 | echo "$as_me: failed program was:" >&5 | |
33652 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33653 | ||
33654 | ac_header_preproc=no | |
33655 | fi | |
33656 | rm -f conftest.err conftest.$ac_ext | |
33657 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
33658 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
33659 | ||
33660 | # So? What about this header? | |
8a7b1113 VZ |
33661 | case $ac_header_compiler:$ac_header_preproc in |
33662 | yes:no ) | |
a848cd7e SC |
33663 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
33664 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
33665 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33666 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
33667 | ( | |
33668 | cat <<\_ASBOX | |
33669 | ## ------------------------------------ ## | |
33670 | ## Report this to bug-autoconf@gnu.org. ## | |
33671 | ## ------------------------------------ ## | |
33672 | _ASBOX | |
33673 | ) | | |
33674 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 33675 | ;; |
8a7b1113 | 33676 | no:yes ) |
a848cd7e SC |
33677 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
33678 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
33679 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
33680 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
33681 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
33682 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
33683 | ( |
33684 | cat <<\_ASBOX | |
8a7b1113 VZ |
33685 | ## ------------------------------------ ## |
33686 | ## Report this to bug-autoconf@gnu.org. ## | |
33687 | ## ------------------------------------ ## | |
a848cd7e SC |
33688 | _ASBOX |
33689 | ) | | |
33690 | sed "s/^/$as_me: WARNING: /" >&2 | |
33691 | ;; | |
33692 | esac | |
33693 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33694 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33695 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33697 | else | |
8a7b1113 | 33698 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
33699 | fi |
33700 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33701 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33702 | ||
33703 | fi | |
33704 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
33705 | cat >>confdefs.h <<_ACEOF | |
33706 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
33707 | _ACEOF | |
33708 | ||
33709 | fi | |
33710 | ||
33711 | done | |
33712 | ||
33713 | if test "$ac_cv_header_linux_joystick_h" != "yes"; then | |
33714 | wxUSE_JOYSTICK=no | |
33715 | { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5 | |
33716 | echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;} | |
33717 | fi | |
33718 | fi | |
33719 | fi | |
33720 | ||
33721 | if test "$wxUSE_JOYSTICK" = "yes"; then | |
33722 | cat >>confdefs.h <<\_ACEOF | |
33723 | #define wxUSE_JOYSTICK 1 | |
33724 | _ACEOF | |
33725 | ||
33726 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest" | |
33727 | fi | |
33728 | fi | |
33729 | ||
33730 | ||
33731 | ||
33732 | if test "$wxUSE_FONTMAP" = "yes" ; then | |
33733 | cat >>confdefs.h <<\_ACEOF | |
33734 | #define wxUSE_FONTMAP 1 | |
33735 | _ACEOF | |
33736 | ||
33737 | fi | |
33738 | ||
33739 | if test "$wxUSE_UNICODE" = "yes" ; then | |
33740 | cat >>confdefs.h <<\_ACEOF | |
33741 | #define wxUSE_UNICODE 1 | |
33742 | _ACEOF | |
33743 | ||
33744 | ||
33745 | if test "$USE_WIN32" != 1; then | |
33746 | wxUSE_UNICODE_MSLU=no | |
33747 | fi | |
33748 | ||
33749 | if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then | |
33750 | echo "$as_me:$LINENO: checking for main in -lunicows" >&5 | |
33751 | echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6 | |
33752 | if test "${ac_cv_lib_unicows_main+set}" = set; then | |
33753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33754 | else | |
33755 | ac_check_lib_save_LIBS=$LIBS | |
33756 | LIBS="-lunicows $LIBS" | |
33757 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 33758 | #line $LINENO "configure" |
a848cd7e SC |
33759 | /* confdefs.h. */ |
33760 | _ACEOF | |
33761 | cat confdefs.h >>conftest.$ac_ext | |
33762 | cat >>conftest.$ac_ext <<_ACEOF | |
33763 | /* end confdefs.h. */ | |
33764 | ||
33765 | ||
33766 | int | |
33767 | main () | |
33768 | { | |
33769 | main (); | |
33770 | ; | |
33771 | return 0; | |
33772 | } | |
33773 | _ACEOF | |
33774 | rm -f conftest.$ac_objext conftest$ac_exeext | |
33775 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 33776 | (eval $ac_link) 2>&5 |
a848cd7e | 33777 | ac_status=$? |
a848cd7e SC |
33778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33779 | (exit $ac_status); } && | |
8a7b1113 | 33780 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
33781 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33782 | (eval $ac_try) 2>&5 | |
33783 | ac_status=$? | |
33784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33785 | (exit $ac_status); }; }; then | |
33786 | ac_cv_lib_unicows_main=yes | |
33787 | else | |
33788 | echo "$as_me: failed program was:" >&5 | |
33789 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33790 | ||
33791 | ac_cv_lib_unicows_main=no | |
33792 | fi | |
8a7b1113 | 33793 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
33794 | LIBS=$ac_check_lib_save_LIBS |
33795 | fi | |
33796 | echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5 | |
33797 | echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6 | |
33798 | if test $ac_cv_lib_unicows_main = yes; then | |
33799 | ||
33800 | cat >>confdefs.h <<\_ACEOF | |
33801 | #define wxUSE_UNICODE_MSLU 1 | |
33802 | _ACEOF | |
33803 | ||
33804 | ||
33805 | else | |
33806 | ||
33807 | { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
33808 | Applications will only run on Windows NT/2000/XP!" >&5 | |
33809 | echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled. | |
33810 | Applications will only run on Windows NT/2000/XP!" >&2;} | |
33811 | wxUSE_UNICODE_MSLU=no | |
33812 | ||
33813 | fi | |
33814 | ||
33815 | fi | |
33816 | fi | |
33817 | ||
33818 | if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then | |
33819 | cat >>confdefs.h <<\_ACEOF | |
33820 | #define wxUSE_EXPERIMENTAL_PRINTF 1 | |
33821 | _ACEOF | |
33822 | ||
33823 | fi | |
33824 | ||
33825 | ||
33826 | if test "$wxUSE_POSTSCRIPT" = "yes" ; then | |
33827 | cat >>confdefs.h <<\_ACEOF | |
33828 | #define wxUSE_POSTSCRIPT 1 | |
33829 | _ACEOF | |
33830 | ||
33831 | fi | |
33832 | ||
33833 | cat >>confdefs.h <<\_ACEOF | |
33834 | #define wxUSE_AFM_FOR_POSTSCRIPT 1 | |
33835 | _ACEOF | |
33836 | ||
33837 | ||
33838 | cat >>confdefs.h <<\_ACEOF | |
33839 | #define wxUSE_NORMALIZED_PS_FONTS 1 | |
33840 | _ACEOF | |
33841 | ||
33842 | ||
33843 | ||
33844 | if test "$wxUSE_CONSTRAINTS" = "yes"; then | |
33845 | cat >>confdefs.h <<\_ACEOF | |
33846 | #define wxUSE_CONSTRAINTS 1 | |
33847 | _ACEOF | |
33848 | ||
33849 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout" | |
33850 | fi | |
33851 | ||
8a7b1113 VZ |
33852 | if test "$wxUSE_MDI" = "yes"; then |
33853 | cat >>confdefs.h <<\_ACEOF | |
33854 | #define wxUSE_MDI 1 | |
33855 | _ACEOF | |
33856 | ||
33857 | ||
33858 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
33859 | cat >>confdefs.h <<\_ACEOF | |
a848cd7e SC |
33860 | #define wxUSE_MDI_ARCHITECTURE 1 |
33861 | _ACEOF | |
33862 | ||
8a7b1113 VZ |
33863 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi" |
33864 | fi | |
a848cd7e SC |
33865 | fi |
33866 | ||
33867 | if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then | |
33868 | cat >>confdefs.h <<\_ACEOF | |
33869 | #define wxUSE_DOC_VIEW_ARCHITECTURE 1 | |
33870 | _ACEOF | |
33871 | ||
33872 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview" | |
33873 | if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then | |
33874 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi" | |
33875 | fi | |
33876 | fi | |
33877 | ||
33878 | if test "$wxUSE_HELP" = "yes"; then | |
33879 | cat >>confdefs.h <<\_ACEOF | |
33880 | #define wxUSE_HELP 1 | |
33881 | _ACEOF | |
33882 | ||
33883 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help" | |
33884 | ||
33885 | if test "$wxUSE_MSW" = 1; then | |
33886 | if test "$wxUSE_MS_HTML_HELP" = "yes"; then | |
33887 | cat >>confdefs.h <<\_ACEOF | |
33888 | #define wxUSE_MS_HTML_HELP 1 | |
33889 | _ACEOF | |
33890 | ||
33891 | fi | |
33892 | fi | |
33893 | ||
33894 | if test "$wxUSE_WXHTML_HELP" = "yes"; then | |
33895 | if test "$wxUSE_HTML" = "yes"; then | |
33896 | cat >>confdefs.h <<\_ACEOF | |
33897 | #define wxUSE_WXHTML_HELP 1 | |
33898 | _ACEOF | |
33899 | ||
33900 | else | |
33901 | { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5 | |
33902 | echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;} | |
33903 | wxUSE_WXHTML_HELP=no | |
33904 | fi | |
33905 | fi | |
33906 | fi | |
33907 | ||
33908 | if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then | |
33909 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
33910 | { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5 | |
33911 | echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;} | |
33912 | else | |
33913 | cat >>confdefs.h <<\_ACEOF | |
33914 | #define wxUSE_PRINTING_ARCHITECTURE 1 | |
33915 | _ACEOF | |
33916 | ||
33917 | fi | |
33918 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing" | |
33919 | fi | |
33920 | ||
33921 | if test "$wxUSE_PROLOGIO" = "yes" -o "$wxUSE_RESOURCES" = "yes"; then | |
33922 | { { echo "$as_me:$LINENO: error: wxExpr and old-style resources are now available in contrib only" >&5 | |
33923 | echo "$as_me: error: wxExpr and old-style resources are now available in contrib only" >&2;} | |
33924 | { (exit 1); exit 1; }; } | |
33925 | fi | |
33926 | ||
33927 | ||
33928 | if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \ | |
33929 | -o "$wxUSE_CLIPBOARD" = "yes" \ | |
33930 | -o "$wxUSE_OLE" = "yes" \ | |
33931 | -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then | |
33932 | ||
33933 | for ac_header in ole2.h | |
33934 | do | |
33935 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
33936 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33937 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
33938 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
33939 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
33940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
33941 | fi | |
33942 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
33943 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
33944 | else | |
33945 | # Is the header compilable? | |
33946 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
33947 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
33948 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 33949 | #line $LINENO "configure" |
a848cd7e SC |
33950 | /* confdefs.h. */ |
33951 | _ACEOF | |
33952 | cat confdefs.h >>conftest.$ac_ext | |
33953 | cat >>conftest.$ac_ext <<_ACEOF | |
33954 | /* end confdefs.h. */ | |
33955 | $ac_includes_default | |
33956 | #include <$ac_header> | |
33957 | _ACEOF | |
33958 | rm -f conftest.$ac_objext | |
33959 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 33960 | (eval $ac_compile) 2>&5 |
a848cd7e | 33961 | ac_status=$? |
a848cd7e SC |
33962 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
33963 | (exit $ac_status); } && | |
8a7b1113 | 33964 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
33965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
33966 | (eval $ac_try) 2>&5 | |
33967 | ac_status=$? | |
33968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
33969 | (exit $ac_status); }; }; then | |
33970 | ac_header_compiler=yes | |
33971 | else | |
33972 | echo "$as_me: failed program was:" >&5 | |
33973 | sed 's/^/| /' conftest.$ac_ext >&5 | |
33974 | ||
33975 | ac_header_compiler=no | |
33976 | fi | |
8a7b1113 | 33977 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
33978 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
33979 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
33980 | ||
33981 | # Is the header present? | |
33982 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
33983 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
33984 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 33985 | #line $LINENO "configure" |
a848cd7e SC |
33986 | /* confdefs.h. */ |
33987 | _ACEOF | |
33988 | cat confdefs.h >>conftest.$ac_ext | |
33989 | cat >>conftest.$ac_ext <<_ACEOF | |
33990 | /* end confdefs.h. */ | |
33991 | #include <$ac_header> | |
33992 | _ACEOF | |
33993 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
33994 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
33995 | ac_status=$? | |
33996 | grep -v '^ *+' conftest.er1 >conftest.err | |
33997 | rm -f conftest.er1 | |
33998 | cat conftest.err >&5 | |
33999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34000 | (exit $ac_status); } >/dev/null; then | |
34001 | if test -s conftest.err; then | |
34002 | ac_cpp_err=$ac_c_preproc_warn_flag | |
a848cd7e SC |
34003 | else |
34004 | ac_cpp_err= | |
34005 | fi | |
34006 | else | |
34007 | ac_cpp_err=yes | |
34008 | fi | |
34009 | if test -z "$ac_cpp_err"; then | |
34010 | ac_header_preproc=yes | |
34011 | else | |
34012 | echo "$as_me: failed program was:" >&5 | |
34013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34014 | ||
34015 | ac_header_preproc=no | |
34016 | fi | |
34017 | rm -f conftest.err conftest.$ac_ext | |
34018 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
34019 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
34020 | ||
34021 | # So? What about this header? | |
8a7b1113 VZ |
34022 | case $ac_header_compiler:$ac_header_preproc in |
34023 | yes:no ) | |
a848cd7e SC |
34024 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
34025 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8a7b1113 VZ |
34026 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34027 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
34028 | ( | |
34029 | cat <<\_ASBOX | |
34030 | ## ------------------------------------ ## | |
34031 | ## Report this to bug-autoconf@gnu.org. ## | |
34032 | ## ------------------------------------ ## | |
34033 | _ASBOX | |
34034 | ) | | |
34035 | sed "s/^/$as_me: WARNING: /" >&2 | |
a848cd7e | 34036 | ;; |
8a7b1113 | 34037 | no:yes ) |
a848cd7e SC |
34038 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
34039 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8a7b1113 VZ |
34040 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
34041 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
a848cd7e SC |
34042 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
34043 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
a848cd7e SC |
34044 | ( |
34045 | cat <<\_ASBOX | |
8a7b1113 VZ |
34046 | ## ------------------------------------ ## |
34047 | ## Report this to bug-autoconf@gnu.org. ## | |
34048 | ## ------------------------------------ ## | |
a848cd7e SC |
34049 | _ASBOX |
34050 | ) | | |
34051 | sed "s/^/$as_me: WARNING: /" >&2 | |
34052 | ;; | |
34053 | esac | |
34054 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
34055 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
34056 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
34057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34058 | else | |
8a7b1113 | 34059 | eval "$as_ac_Header=$ac_header_preproc" |
a848cd7e SC |
34060 | fi |
34061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
34062 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
34063 | ||
34064 | fi | |
34065 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
34066 | cat >>confdefs.h <<_ACEOF | |
34067 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
34068 | _ACEOF | |
34069 | ||
34070 | fi | |
34071 | ||
34072 | done | |
34073 | ||
34074 | ||
34075 | if test "$ac_cv_header_ole2_h" = "yes" ; then | |
34076 | if test "$GCC" = yes ; then | |
34077 | ||
34078 | ||
34079 | ac_ext=cc | |
34080 | ac_cpp='$CXXCPP $CPPFLAGS' | |
34081 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34082 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34083 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
34084 | ||
34085 | ||
34086 | echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5 | |
34087 | echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6 | |
34088 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 34089 | #line $LINENO "configure" |
a848cd7e SC |
34090 | /* confdefs.h. */ |
34091 | _ACEOF | |
34092 | cat confdefs.h >>conftest.$ac_ext | |
34093 | cat >>conftest.$ac_ext <<_ACEOF | |
34094 | /* end confdefs.h. */ | |
34095 | #include <windows.h> | |
34096 | #include <ole2.h> | |
34097 | int | |
34098 | main () | |
34099 | { | |
34100 | ||
34101 | ; | |
34102 | return 0; | |
34103 | } | |
34104 | _ACEOF | |
34105 | rm -f conftest.$ac_objext | |
34106 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 34107 | (eval $ac_compile) 2>&5 |
a848cd7e | 34108 | ac_status=$? |
a848cd7e SC |
34109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
34110 | (exit $ac_status); } && | |
8a7b1113 | 34111 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
34112 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
34113 | (eval $ac_try) 2>&5 | |
34114 | ac_status=$? | |
34115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
34116 | (exit $ac_status); }; }; then | |
34117 | echo "$as_me:$LINENO: result: no" >&5 | |
34118 | echo "${ECHO_T}no" >&6 | |
34119 | else | |
34120 | echo "$as_me: failed program was:" >&5 | |
34121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
34122 | ||
34123 | echo "$as_me:$LINENO: result: yes" >&5 | |
34124 | echo "${ECHO_T}yes" >&6 | |
34125 | CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks" | |
34126 | fi | |
8a7b1113 | 34127 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
34128 | ac_ext=c |
34129 | ac_cpp='$CPP $CPPFLAGS' | |
34130 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
34131 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
34132 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
34133 | ||
34134 | ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)" | |
34135 | LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS" | |
34136 | if test "$wxUSE_OLE" = "yes" ; then | |
34137 | cat >>confdefs.h <<\_ACEOF | |
34138 | #define wxUSE_OLE 1 | |
34139 | _ACEOF | |
34140 | ||
34141 | fi | |
34142 | fi | |
34143 | ||
34144 | if test "$wxUSE_DATAOBJ" = "yes" ; then | |
34145 | cat >>confdefs.h <<\_ACEOF | |
34146 | #define wxUSE_DATAOBJ 1 | |
34147 | _ACEOF | |
34148 | ||
34149 | fi | |
34150 | else | |
34151 | { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5 | |
34152 | echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;} | |
34153 | ||
34154 | wxUSE_CLIPBOARD=no | |
34155 | wxUSE_DRAG_AND_DROP=no | |
34156 | wxUSE_DATAOBJ=no | |
34157 | wxUSE_OLE=no | |
34158 | fi | |
34159 | ||
34160 | if test "$wxUSE_METAFILE" = "yes"; then | |
34161 | cat >>confdefs.h <<\_ACEOF | |
34162 | #define wxUSE_METAFILE 1 | |
34163 | _ACEOF | |
34164 | ||
34165 | ||
34166 | cat >>confdefs.h <<\_ACEOF | |
34167 | #define wxUSE_ENH_METAFILE 1 | |
34168 | _ACEOF | |
34169 | ||
34170 | fi | |
34171 | fi | |
34172 | ||
34173 | if test "$wxUSE_IPC" = "yes"; then | |
34174 | if test "$wxUSE_SOCKETS" != "yes"; then | |
34175 | { echo "$as_me:$LINENO: WARNING: wxWindows IPC classes require sockets... disabled" >&5 | |
34176 | echo "$as_me: WARNING: wxWindows IPC classes require sockets... disabled" >&2;} | |
34177 | fi | |
34178 | ||
34179 | cat >>confdefs.h <<\_ACEOF | |
34180 | #define wxUSE_IPC 1 | |
34181 | _ACEOF | |
34182 | ||
34183 | fi | |
34184 | ||
34185 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
34186 | if test "$wxUSE_MGL" = 1; then | |
34187 | { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under MGL... disabled" >&5 | |
34188 | echo "$as_me: WARNING: Clipboard not yet supported under MGL... disabled" >&2;} | |
34189 | wxUSE_CLIPBOARD=no | |
34190 | fi | |
34191 | ||
34192 | if test "$wxUSE_CLIPBOARD" = "yes"; then | |
34193 | cat >>confdefs.h <<\_ACEOF | |
34194 | #define wxUSE_CLIPBOARD 1 | |
34195 | _ACEOF | |
34196 | ||
34197 | ||
34198 | cat >>confdefs.h <<\_ACEOF | |
34199 | #define wxUSE_DATAOBJ 1 | |
34200 | _ACEOF | |
34201 | ||
34202 | fi | |
34203 | fi | |
34204 | ||
34205 | if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then | |
34206 | if test "$wxUSE_GTK" = 1; then | |
34207 | if test "$WXGTK12" != 1; then | |
34208 | { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5 | |
34209 | echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;} | |
34210 | wxUSE_DRAG_AND_DROP=no | |
34211 | fi | |
34212 | fi | |
34213 | ||
34214 | if test "$wxUSE_MOTIF" = 1; then | |
34215 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under Motif... disabled" >&5 | |
34216 | echo "$as_me: WARNING: Drag and drop not yet supported under Motif... disabled" >&2;} | |
34217 | wxUSE_DRAG_AND_DROP=no | |
34218 | fi | |
34219 | ||
34220 | if test "$wxUSE_X11" = 1; then | |
34221 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under X11... disabled" >&5 | |
34222 | echo "$as_me: WARNING: Drag and drop not yet supported under X11... disabled" >&2;} | |
34223 | wxUSE_DRAG_AND_DROP=no | |
34224 | fi | |
34225 | ||
34226 | if test "$wxUSE_MGL" = 1; then | |
34227 | { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under MGL... disabled" >&5 | |
34228 | echo "$as_me: WARNING: Drag and drop not yet supported under MGL... disabled" >&2;} | |
34229 | wxUSE_DRAG_AND_DROP=no | |
34230 | fi | |
34231 | ||
34232 | if test "$wxUSE_DRAG_AND_DROP" = "yes"; then | |
34233 | cat >>confdefs.h <<\_ACEOF | |
34234 | #define wxUSE_DRAG_AND_DROP 1 | |
34235 | _ACEOF | |
34236 | ||
34237 | fi | |
34238 | ||
34239 | fi | |
34240 | ||
34241 | if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then | |
34242 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd" | |
34243 | fi | |
34244 | ||
34245 | if test "$wxUSE_SPLINES" = "yes" ; then | |
34246 | cat >>confdefs.h <<\_ACEOF | |
34247 | #define wxUSE_SPLINES 1 | |
34248 | _ACEOF | |
34249 | ||
34250 | fi | |
34251 | ||
34252 | ||
34253 | USES_CONTROLS=0 | |
34254 | if test "$wxUSE_CONTROLS" = "yes"; then | |
34255 | USES_CONTROLS=1 | |
34256 | fi | |
34257 | ||
34258 | if test "$wxUSE_ACCEL" = "yes"; then | |
34259 | cat >>confdefs.h <<\_ACEOF | |
34260 | #define wxUSE_ACCEL 1 | |
34261 | _ACEOF | |
34262 | ||
34263 | USES_CONTROLS=1 | |
34264 | fi | |
34265 | ||
34266 | if test "$wxUSE_BUTTON" = "yes"; then | |
34267 | cat >>confdefs.h <<\_ACEOF | |
34268 | #define wxUSE_BUTTON 1 | |
34269 | _ACEOF | |
34270 | ||
34271 | USES_CONTROLS=1 | |
34272 | fi | |
34273 | ||
34274 | if test "$wxUSE_BMPBUTTON" = "yes"; then | |
34275 | cat >>confdefs.h <<\_ACEOF | |
34276 | #define wxUSE_BMPBUTTON 1 | |
34277 | _ACEOF | |
34278 | ||
34279 | USES_CONTROLS=1 | |
34280 | fi | |
34281 | ||
34282 | if test "$wxUSE_CALCTRL" = "yes"; then | |
34283 | cat >>confdefs.h <<\_ACEOF | |
34284 | #define wxUSE_CALENDARCTRL 1 | |
34285 | _ACEOF | |
34286 | ||
34287 | USES_CONTROLS=1 | |
34288 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar" | |
34289 | fi | |
34290 | ||
34291 | if test "$wxUSE_CARET" = "yes"; then | |
34292 | cat >>confdefs.h <<\_ACEOF | |
34293 | #define wxUSE_CARET 1 | |
34294 | _ACEOF | |
34295 | ||
34296 | USES_CONTROLS=1 | |
34297 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret" | |
34298 | fi | |
34299 | ||
34300 | if test "$wxUSE_COMBOBOX" = "yes"; then | |
34301 | cat >>confdefs.h <<\_ACEOF | |
34302 | #define wxUSE_COMBOBOX 1 | |
34303 | _ACEOF | |
34304 | ||
34305 | USES_CONTROLS=1 | |
34306 | fi | |
34307 | ||
34308 | if test "$wxUSE_CHOICE" = "yes"; then | |
34309 | cat >>confdefs.h <<\_ACEOF | |
34310 | #define wxUSE_CHOICE 1 | |
34311 | _ACEOF | |
34312 | ||
34313 | USES_CONTROLS=1 | |
34314 | fi | |
34315 | ||
34316 | if test "$wxUSE_CHECKBOX" = "yes"; then | |
34317 | cat >>confdefs.h <<\_ACEOF | |
34318 | #define wxUSE_CHECKBOX 1 | |
34319 | _ACEOF | |
34320 | ||
34321 | USES_CONTROLS=1 | |
34322 | fi | |
34323 | ||
34324 | if test "$wxUSE_CHECKLST" = "yes"; then | |
34325 | cat >>confdefs.h <<\_ACEOF | |
34326 | #define wxUSE_CHECKLISTBOX 1 | |
34327 | _ACEOF | |
34328 | ||
34329 | USES_CONTROLS=1 | |
34330 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst" | |
34331 | fi | |
34332 | ||
34333 | if test "$wxUSE_DISPLAY" = "yes"; then | |
34334 | cat >>confdefs.h <<\_ACEOF | |
34335 | #define wxUSE_DISPLAY 1 | |
34336 | _ACEOF | |
34337 | ||
34338 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display" | |
34339 | fi | |
34340 | ||
34341 | if test "$wxUSE_GAUGE" = "yes"; then | |
34342 | cat >>confdefs.h <<\_ACEOF | |
34343 | #define wxUSE_GAUGE 1 | |
34344 | _ACEOF | |
34345 | ||
34346 | USES_CONTROLS=1 | |
34347 | fi | |
34348 | ||
34349 | if test "$wxUSE_GRID" = "yes"; then | |
34350 | cat >>confdefs.h <<\_ACEOF | |
34351 | #define wxUSE_GRID 1 | |
34352 | _ACEOF | |
34353 | ||
34354 | USES_CONTROLS=1 | |
34355 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid" | |
34356 | fi | |
34357 | ||
34358 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
34359 | cat >>confdefs.h <<\_ACEOF | |
34360 | #define wxUSE_IMAGLIST 1 | |
34361 | _ACEOF | |
34362 | ||
34363 | fi | |
34364 | ||
34365 | if test "$wxUSE_LISTBOOK" = "yes"; then | |
34366 | cat >>confdefs.h <<\_ACEOF | |
34367 | #define wxUSE_LISTBOOK 1 | |
34368 | _ACEOF | |
34369 | ||
34370 | USES_CONTROLS=1 | |
34371 | fi | |
34372 | ||
34373 | if test "$wxUSE_LISTBOX" = "yes"; then | |
34374 | cat >>confdefs.h <<\_ACEOF | |
34375 | #define wxUSE_LISTBOX 1 | |
34376 | _ACEOF | |
34377 | ||
34378 | USES_CONTROLS=1 | |
34379 | fi | |
34380 | ||
34381 | if test "$wxUSE_LISTCTRL" = "yes"; then | |
34382 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
34383 | cat >>confdefs.h <<\_ACEOF | |
34384 | #define wxUSE_LISTCTRL 1 | |
34385 | _ACEOF | |
34386 | ||
34387 | USES_CONTROLS=1 | |
34388 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl" | |
34389 | else | |
34390 | { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5 | |
34391 | echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;} | |
34392 | fi | |
34393 | fi | |
34394 | ||
34395 | if test "$wxUSE_NOTEBOOK" = "yes"; then | |
34396 | cat >>confdefs.h <<\_ACEOF | |
34397 | #define wxUSE_NOTEBOOK 1 | |
34398 | _ACEOF | |
34399 | ||
34400 | USES_CONTROLS=1 | |
34401 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook" | |
34402 | fi | |
34403 | ||
34404 | ||
34405 | if test "$wxUSE_RADIOBOX" = "yes"; then | |
34406 | cat >>confdefs.h <<\_ACEOF | |
34407 | #define wxUSE_RADIOBOX 1 | |
34408 | _ACEOF | |
34409 | ||
34410 | USES_CONTROLS=1 | |
34411 | fi | |
34412 | ||
34413 | if test "$wxUSE_RADIOBTN" = "yes"; then | |
34414 | cat >>confdefs.h <<\_ACEOF | |
34415 | #define wxUSE_RADIOBTN 1 | |
34416 | _ACEOF | |
34417 | ||
34418 | USES_CONTROLS=1 | |
34419 | fi | |
34420 | ||
34421 | if test "$wxUSE_SASH" = "yes"; then | |
34422 | cat >>confdefs.h <<\_ACEOF | |
34423 | #define wxUSE_SASH 1 | |
34424 | _ACEOF | |
34425 | ||
34426 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest" | |
34427 | fi | |
34428 | ||
34429 | if test "$wxUSE_SCROLLBAR" = "yes"; then | |
34430 | cat >>confdefs.h <<\_ACEOF | |
34431 | #define wxUSE_SCROLLBAR 1 | |
34432 | _ACEOF | |
34433 | ||
34434 | USES_CONTROLS=1 | |
34435 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub" | |
34436 | fi | |
34437 | ||
34438 | if test "$wxUSE_SLIDER" = "yes"; then | |
34439 | cat >>confdefs.h <<\_ACEOF | |
34440 | #define wxUSE_SLIDER 1 | |
34441 | _ACEOF | |
34442 | ||
34443 | USES_CONTROLS=1 | |
34444 | fi | |
34445 | ||
34446 | if test "$wxUSE_SPINBTN" = "yes"; then | |
34447 | cat >>confdefs.h <<\_ACEOF | |
34448 | #define wxUSE_SPINBTN 1 | |
34449 | _ACEOF | |
34450 | ||
34451 | USES_CONTROLS=1 | |
34452 | fi | |
34453 | ||
34454 | if test "$wxUSE_SPINCTRL" = "yes"; then | |
34455 | cat >>confdefs.h <<\_ACEOF | |
34456 | #define wxUSE_SPINCTRL 1 | |
34457 | _ACEOF | |
34458 | ||
34459 | USES_CONTROLS=1 | |
34460 | fi | |
34461 | ||
34462 | if test "$wxUSE_SPLITTER" = "yes"; then | |
34463 | cat >>confdefs.h <<\_ACEOF | |
34464 | #define wxUSE_SPLITTER 1 | |
34465 | _ACEOF | |
34466 | ||
34467 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter" | |
34468 | fi | |
34469 | ||
34470 | if test "$wxUSE_STATBMP" = "yes"; then | |
34471 | cat >>confdefs.h <<\_ACEOF | |
34472 | #define wxUSE_STATBMP 1 | |
34473 | _ACEOF | |
34474 | ||
34475 | USES_CONTROLS=1 | |
34476 | fi | |
34477 | ||
34478 | if test "$wxUSE_STATBOX" = "yes"; then | |
34479 | cat >>confdefs.h <<\_ACEOF | |
34480 | #define wxUSE_STATBOX 1 | |
34481 | _ACEOF | |
34482 | ||
34483 | USES_CONTROLS=1 | |
34484 | fi | |
34485 | ||
34486 | if test "$wxUSE_STATTEXT" = "yes"; then | |
34487 | cat >>confdefs.h <<\_ACEOF | |
34488 | #define wxUSE_STATTEXT 1 | |
34489 | _ACEOF | |
34490 | ||
34491 | USES_CONTROLS=1 | |
34492 | fi | |
34493 | ||
34494 | if test "$wxUSE_STATLINE" = "yes"; then | |
34495 | cat >>confdefs.h <<\_ACEOF | |
34496 | #define wxUSE_STATLINE 1 | |
34497 | _ACEOF | |
34498 | ||
34499 | USES_CONTROLS=1 | |
34500 | fi | |
34501 | ||
34502 | if test "$wxUSE_STATUSBAR" = "yes"; then | |
34503 | cat >>confdefs.h <<\_ACEOF | |
34504 | #define wxUSE_STATUSBAR 1 | |
34505 | _ACEOF | |
34506 | ||
34507 | USES_CONTROLS=1 | |
34508 | ||
34509 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar" | |
34510 | fi | |
34511 | ||
34512 | if test "$wxUSE_TABDIALOG" = "yes"; then | |
34513 | cat >>confdefs.h <<\_ACEOF | |
34514 | #define wxUSE_TAB_DIALOG 1 | |
34515 | _ACEOF | |
34516 | ||
34517 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab" | |
34518 | fi | |
34519 | ||
34520 | if test "$wxUSE_TEXTCTRL" = "yes"; then | |
34521 | cat >>confdefs.h <<\_ACEOF | |
34522 | #define wxUSE_TEXTCTRL 1 | |
34523 | _ACEOF | |
34524 | ||
34525 | USES_CONTROLS=1 | |
34526 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text" | |
34527 | fi | |
34528 | ||
34529 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
34530 | if test "$wxUSE_COCOA" = 1 ; then | |
34531 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5 | |
34532 | echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;} | |
34533 | wxUSE_TOGGLEBTN=no | |
34534 | fi | |
34535 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
34536 | { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&5 | |
34537 | echo "$as_me: WARNING: Toggle button not yet supported under wxUniversal... disabled" >&2;} | |
34538 | wxUSE_TOGGLEBTN=no | |
34539 | fi | |
34540 | ||
34541 | if test "$wxUSE_TOGGLEBTN" = "yes"; then | |
34542 | cat >>confdefs.h <<\_ACEOF | |
34543 | #define wxUSE_TOGGLEBTN 1 | |
34544 | _ACEOF | |
34545 | ||
34546 | USES_CONTROLS=1 | |
34547 | fi | |
34548 | fi | |
34549 | ||
34550 | if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then | |
34551 | cat >>confdefs.h <<\_ACEOF | |
34552 | #define wxUSE_TOOLBAR_SIMPLE 1 | |
34553 | _ACEOF | |
34554 | ||
34555 | wxUSE_TOOLBAR="yes" | |
34556 | USES_CONTROLS=1 | |
34557 | fi | |
34558 | ||
34559 | if test "$wxUSE_TOOLBAR" = "yes"; then | |
34560 | cat >>confdefs.h <<\_ACEOF | |
34561 | #define wxUSE_TOOLBAR 1 | |
34562 | _ACEOF | |
34563 | ||
34564 | USES_CONTROLS=1 | |
34565 | ||
34566 | if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then | |
34567 | wxUSE_TOOLBAR_NATIVE="yes" | |
34568 | fi | |
34569 | ||
34570 | if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then | |
34571 | cat >>confdefs.h <<\_ACEOF | |
34572 | #define wxUSE_TOOLBAR_NATIVE 1 | |
34573 | _ACEOF | |
34574 | ||
34575 | USES_CONTROLS=1 | |
34576 | fi | |
34577 | ||
34578 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar" | |
34579 | fi | |
34580 | ||
34581 | if test "$wxUSE_TOOLTIPS" = "yes"; then | |
34582 | if test "$wxUSE_MOTIF" = 1; then | |
34583 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5 | |
34584 | echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;} | |
34585 | else | |
34586 | if test "$wxUSE_UNIVERSAL" = "yes"; then | |
34587 | { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5 | |
34588 | echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;} | |
34589 | else | |
34590 | cat >>confdefs.h <<\_ACEOF | |
34591 | #define wxUSE_TOOLTIPS 1 | |
34592 | _ACEOF | |
34593 | ||
34594 | fi | |
34595 | fi | |
34596 | fi | |
34597 | ||
34598 | if test "$wxUSE_TREECTRL" = "yes"; then | |
34599 | if test "$wxUSE_IMAGLIST" = "yes"; then | |
34600 | cat >>confdefs.h <<\_ACEOF | |
34601 | #define wxUSE_TREECTRL 1 | |
34602 | _ACEOF | |
34603 | ||
34604 | USES_CONTROLS=1 | |
34605 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl" | |
34606 | else | |
34607 | { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5 | |
34608 | echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;} | |
34609 | fi | |
34610 | fi | |
34611 | ||
34612 | if test "$wxUSE_POPUPWIN" = "yes"; then | |
34613 | if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then | |
34614 | { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5 | |
34615 | echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;} | |
34616 | else | |
34617 | if test "$wxUSE_PM" = 1; then | |
34618 | { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5 | |
34619 | echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;} | |
34620 | else | |
34621 | cat >>confdefs.h <<\_ACEOF | |
34622 | #define wxUSE_POPUPWIN 1 | |
34623 | _ACEOF | |
34624 | ||
34625 | ||
34626 | USES_CONTROLS=1 | |
34627 | fi | |
34628 | fi | |
34629 | fi | |
34630 | ||
34631 | if test "$wxUSE_TIPWINDOW" = "yes"; then | |
34632 | if test "$wxUSE_PM" = 1; then | |
34633 | { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5 | |
34634 | echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;} | |
34635 | else | |
34636 | cat >>confdefs.h <<\_ACEOF | |
34637 | #define wxUSE_TIPWINDOW 1 | |
34638 | _ACEOF | |
34639 | ||
34640 | fi | |
34641 | fi | |
34642 | ||
34643 | if test "$USES_CONTROLS" = 1; then | |
34644 | cat >>confdefs.h <<\_ACEOF | |
34645 | #define wxUSE_CONTROLS 1 | |
34646 | _ACEOF | |
34647 | ||
34648 | fi | |
34649 | ||
34650 | ||
34651 | if test "$wxUSE_ACCESSIBILITY" = "yes"; then | |
34652 | cat >>confdefs.h <<\_ACEOF | |
34653 | #define wxUSE_ACCESSIBILITY 1 | |
34654 | _ACEOF | |
34655 | ||
34656 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access" | |
34657 | fi | |
34658 | ||
34659 | if test "$wxUSE_DRAGIMAGE" = "yes"; then | |
34660 | cat >>confdefs.h <<\_ACEOF | |
34661 | #define wxUSE_DRAGIMAGE 1 | |
34662 | _ACEOF | |
34663 | ||
34664 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag" | |
34665 | fi | |
34666 | ||
34667 | if test "$wxUSE_EXCEPTIONS" = "yes"; then | |
34668 | cat >>confdefs.h <<\_ACEOF | |
34669 | #define wxUSE_EXCEPTIONS 1 | |
34670 | _ACEOF | |
34671 | ||
34672 | fi | |
34673 | ||
34674 | USE_HTML=0 | |
34675 | if test "$wxUSE_HTML" = "yes"; then | |
34676 | cat >>confdefs.h <<\_ACEOF | |
34677 | #define wxUSE_HTML 1 | |
34678 | _ACEOF | |
34679 | ||
34680 | USE_HTML=1 | |
34681 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox" | |
34682 | fi | |
34683 | ||
34684 | if test "$wxUSE_MENUS" = "yes"; then | |
34685 | cat >>confdefs.h <<\_ACEOF | |
34686 | #define wxUSE_MENUS 1 | |
34687 | _ACEOF | |
34688 | ||
34689 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu" | |
34690 | fi | |
34691 | ||
34692 | if test "$wxUSE_METAFILE" = "yes"; then | |
34693 | cat >>confdefs.h <<\_ACEOF | |
34694 | #define wxUSE_METAFILE 1 | |
34695 | _ACEOF | |
34696 | ||
34697 | fi | |
34698 | ||
34699 | if test "$wxUSE_MIMETYPE" = "yes"; then | |
34700 | cat >>confdefs.h <<\_ACEOF | |
34701 | #define wxUSE_MIMETYPE 1 | |
34702 | _ACEOF | |
34703 | ||
34704 | fi | |
34705 | ||
34706 | if test "$wxUSE_MINIFRAME" = "yes"; then | |
34707 | cat >>confdefs.h <<\_ACEOF | |
34708 | #define wxUSE_MINIFRAME 1 | |
34709 | _ACEOF | |
34710 | ||
34711 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram" | |
34712 | fi | |
34713 | ||
34714 | if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then | |
34715 | cat >>confdefs.h <<\_ACEOF | |
34716 | #define wxUSE_SYSTEM_OPTIONS 1 | |
34717 | _ACEOF | |
34718 | ||
34719 | if test "$TOOLKIT" = "MSW" -o "$TOOLKIT" = "GTK" -o "$TOOLKIT" = "X11" -o \ | |
34720 | "$TOOLKIT" = "MOTIF"; then | |
34721 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar" | |
34722 | fi | |
34723 | fi | |
34724 | ||
34725 | ||
34726 | if test "$wxUSE_VALIDATORS" = "yes"; then | |
34727 | cat >>confdefs.h <<\_ACEOF | |
34728 | #define wxUSE_VALIDATORS 1 | |
34729 | _ACEOF | |
34730 | ||
34731 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate" | |
34732 | fi | |
34733 | ||
34734 | if test "$wxUSE_PALETTE" = "yes" ; then | |
34735 | cat >>confdefs.h <<\_ACEOF | |
34736 | #define wxUSE_PALETTE 1 | |
34737 | _ACEOF | |
34738 | ||
34739 | fi | |
34740 | ||
34741 | if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then | |
34742 | LIBS=" -lunicows $LIBS" | |
34743 | fi | |
34744 | ||
34745 | ||
34746 | if test "$wxUSE_IMAGE" = "yes" ; then | |
34747 | cat >>confdefs.h <<\_ACEOF | |
34748 | #define wxUSE_IMAGE 1 | |
34749 | _ACEOF | |
34750 | ||
34751 | ||
34752 | if test "$wxUSE_GIF" = "yes" ; then | |
34753 | cat >>confdefs.h <<\_ACEOF | |
34754 | #define wxUSE_GIF 1 | |
34755 | _ACEOF | |
34756 | ||
34757 | fi | |
34758 | ||
34759 | if test "$wxUSE_PCX" = "yes" ; then | |
34760 | cat >>confdefs.h <<\_ACEOF | |
34761 | #define wxUSE_PCX 1 | |
34762 | _ACEOF | |
34763 | ||
34764 | fi | |
34765 | ||
34766 | if test "$wxUSE_IFF" = "yes" ; then | |
34767 | cat >>confdefs.h <<\_ACEOF | |
34768 | #define wxUSE_IFF 1 | |
34769 | _ACEOF | |
34770 | ||
34771 | fi | |
34772 | ||
34773 | if test "$wxUSE_PNM" = "yes" ; then | |
34774 | cat >>confdefs.h <<\_ACEOF | |
34775 | #define wxUSE_PNM 1 | |
34776 | _ACEOF | |
34777 | ||
34778 | fi | |
34779 | ||
34780 | if test "$wxUSE_XPM" = "yes" ; then | |
34781 | cat >>confdefs.h <<\_ACEOF | |
34782 | #define wxUSE_XPM 1 | |
34783 | _ACEOF | |
34784 | ||
34785 | fi | |
34786 | ||
34787 | if test "$wxUSE_ICO_CUR" = "yes" ; then | |
34788 | cat >>confdefs.h <<\_ACEOF | |
34789 | #define wxUSE_ICO_CUR 1 | |
34790 | _ACEOF | |
34791 | ||
34792 | fi | |
34793 | fi | |
34794 | ||
34795 | ||
34796 | if test "$wxUSE_CHOICEDLG" = "yes"; then | |
34797 | cat >>confdefs.h <<\_ACEOF | |
34798 | #define wxUSE_CHOICEDLG 1 | |
34799 | _ACEOF | |
34800 | ||
34801 | fi | |
34802 | ||
34803 | if test "$wxUSE_COLOURDLG" = "yes"; then | |
34804 | cat >>confdefs.h <<\_ACEOF | |
34805 | #define wxUSE_COLOURDLG 1 | |
34806 | _ACEOF | |
34807 | ||
34808 | fi | |
34809 | ||
34810 | if test "$wxUSE_FILEDLG" = "yes"; then | |
34811 | cat >>confdefs.h <<\_ACEOF | |
34812 | #define wxUSE_FILEDLG 1 | |
34813 | _ACEOF | |
34814 | ||
34815 | fi | |
34816 | ||
34817 | if test "$wxUSE_FINDREPLDLG" = "yes"; then | |
34818 | cat >>confdefs.h <<\_ACEOF | |
34819 | #define wxUSE_FINDREPLDLG 1 | |
34820 | _ACEOF | |
34821 | ||
34822 | fi | |
34823 | ||
34824 | if test "$wxUSE_FONTDLG" = "yes"; then | |
34825 | cat >>confdefs.h <<\_ACEOF | |
34826 | #define wxUSE_FONTDLG 1 | |
34827 | _ACEOF | |
34828 | ||
34829 | fi | |
34830 | ||
34831 | if test "$wxUSE_DIRDLG" = "yes"; then | |
34832 | if test "$wxUSE_TREECTRL" != "yes"; then | |
34833 | { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5 | |
34834 | echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;} | |
34835 | else | |
34836 | cat >>confdefs.h <<\_ACEOF | |
34837 | #define wxUSE_DIRDLG 1 | |
34838 | _ACEOF | |
34839 | ||
34840 | fi | |
34841 | fi | |
34842 | ||
34843 | if test "$wxUSE_MSGDLG" = "yes"; then | |
34844 | cat >>confdefs.h <<\_ACEOF | |
34845 | #define wxUSE_MSGDLG 1 | |
34846 | _ACEOF | |
34847 | ||
34848 | fi | |
34849 | ||
34850 | if test "$wxUSE_NUMBERDLG" = "yes"; then | |
34851 | cat >>confdefs.h <<\_ACEOF | |
34852 | #define wxUSE_NUMBERDLG 1 | |
34853 | _ACEOF | |
34854 | ||
34855 | fi | |
34856 | ||
34857 | if test "$wxUSE_PROGRESSDLG" = "yes"; then | |
34858 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
34859 | { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5 | |
34860 | echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;} | |
34861 | else | |
34862 | cat >>confdefs.h <<\_ACEOF | |
34863 | #define wxUSE_PROGRESSDLG 1 | |
34864 | _ACEOF | |
34865 | ||
34866 | fi | |
34867 | fi | |
34868 | ||
34869 | if test "$wxUSE_SPLASH" = "yes"; then | |
34870 | cat >>confdefs.h <<\_ACEOF | |
34871 | #define wxUSE_SPLASH 1 | |
34872 | _ACEOF | |
34873 | ||
34874 | fi | |
34875 | ||
34876 | if test "$wxUSE_STARTUP_TIPS" = "yes"; then | |
34877 | if test "$wxUSE_CONSTRAINTS" != "yes"; then | |
34878 | { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5 | |
34879 | echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;} | |
34880 | else | |
34881 | cat >>confdefs.h <<\_ACEOF | |
34882 | #define wxUSE_STARTUP_TIPS 1 | |
34883 | _ACEOF | |
34884 | ||
34885 | fi | |
34886 | fi | |
34887 | ||
34888 | if test "$wxUSE_TEXTDLG" = "yes"; then | |
34889 | cat >>confdefs.h <<\_ACEOF | |
34890 | #define wxUSE_TEXTDLG 1 | |
34891 | _ACEOF | |
34892 | ||
34893 | fi | |
34894 | ||
34895 | if test "$wxUSE_WIZARDDLG" = "yes"; then | |
34896 | cat >>confdefs.h <<\_ACEOF | |
34897 | #define wxUSE_WIZARDDLG 1 | |
34898 | _ACEOF | |
34899 | ||
34900 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard" | |
34901 | fi | |
34902 | ||
34903 | ||
34904 | if test "$cross_compiling" = "yes"; then | |
34905 | OSINFO="\"$host\"" | |
34906 | else | |
34907 | OSINFO=`uname -s -r -m` | |
34908 | OSINFO="\"$OSINFO\"" | |
34909 | fi | |
34910 | ||
34911 | cat >>confdefs.h <<_ACEOF | |
34912 | #define WXWIN_OS_DESCRIPTION $OSINFO | |
34913 | _ACEOF | |
34914 | ||
34915 | ||
34916 | ||
34917 | if test "x$prefix" != "xNONE"; then | |
34918 | wxPREFIX=$prefix | |
34919 | else | |
34920 | wxPREFIX=$ac_default_prefix | |
34921 | fi | |
34922 | ||
34923 | cat >>confdefs.h <<_ACEOF | |
34924 | #define wxINSTALL_PREFIX "$wxPREFIX" | |
34925 | _ACEOF | |
34926 | ||
34927 | ||
34928 | top_builddir_wxconfig=`pwd` | |
34929 | ||
34930 | ||
34931 | ||
34932 | CORE_BASE_LIBS="net base" | |
34933 | CORE_GUI_LIBS="adv core" | |
34934 | ||
34935 | if test "$wxUSE_XML" = "yes" ; then | |
34936 | CORE_BASE_LIBS="xml $CORE_BASE_LIBS" | |
34937 | fi | |
34938 | if test "$wxUSE_ODBC" != "no" ; then | |
34939 | CORE_BASE_LIBS="odbc $CORE_BASE_LIBS" | |
34940 | CORE_GUI_LIBS="dbgrid $CORE_GUI_LIBS" | |
34941 | fi | |
34942 | if test "$wxUSE_HTML" = "yes" ; then | |
34943 | CORE_GUI_LIBS="html $CORE_GUI_LIBS" | |
34944 | fi | |
34945 | ||
34946 | if test "$wxUSE_GUI" != "yes"; then | |
34947 | CORE_GUI_LIBS="" | |
34948 | fi | |
34949 | ||
34950 | ||
34951 | ||
34952 | ||
34953 | ||
34954 | ||
34955 | ||
34956 | ||
34957 | if test "$wxUSE_MAC" = 1 ; then | |
34958 | LDFLAGS="$LDFLAGS -framework Carbon -framework System" | |
34959 | fi | |
34960 | if test "$wxUSE_COCOA" = 1 ; then | |
34961 | LDFLAGS="$LDFLAGS -framework Cocoa -framework System" | |
34962 | fi | |
34963 | ||
34964 | ||
34965 | LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS" | |
34966 | ||
34967 | have_cos=0 | |
34968 | have_floor=0 | |
34969 | ||
34970 | for ac_func in cos | |
34971 | do | |
34972 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
34973 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
34974 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
34975 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
34976 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
34977 | else | |
34978 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 34979 | #line $LINENO "configure" |
a848cd7e SC |
34980 | /* confdefs.h. */ |
34981 | _ACEOF | |
34982 | cat confdefs.h >>conftest.$ac_ext | |
34983 | cat >>conftest.$ac_ext <<_ACEOF | |
34984 | /* end confdefs.h. */ | |
a848cd7e SC |
34985 | /* System header to define __stub macros and hopefully few prototypes, |
34986 | which can conflict with char $ac_func (); below. | |
34987 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
34988 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
34989 | #ifdef __STDC__ |
34990 | # include <limits.h> | |
34991 | #else | |
34992 | # include <assert.h> | |
34993 | #endif | |
a848cd7e SC |
34994 | /* Override any gcc2 internal prototype to avoid an error. */ |
34995 | #ifdef __cplusplus | |
34996 | extern "C" | |
34997 | { | |
34998 | #endif | |
34999 | /* We use char because int might match the return type of a gcc2 | |
35000 | builtin and then its argument prototype would still apply. */ | |
35001 | char $ac_func (); | |
35002 | /* The GNU C library defines this for functions which it implements | |
35003 | to always fail with ENOSYS. Some functions are actually named | |
35004 | something starting with __ and the normal name is an alias. */ | |
35005 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35006 | choke me | |
35007 | #else | |
35008 | char (*f) () = $ac_func; | |
35009 | #endif | |
35010 | #ifdef __cplusplus | |
35011 | } | |
35012 | #endif | |
35013 | ||
35014 | int | |
35015 | main () | |
35016 | { | |
35017 | return f != $ac_func; | |
35018 | ; | |
35019 | return 0; | |
35020 | } | |
35021 | _ACEOF | |
35022 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35023 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 35024 | (eval $ac_link) 2>&5 |
a848cd7e | 35025 | ac_status=$? |
a848cd7e SC |
35026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35027 | (exit $ac_status); } && | |
8a7b1113 | 35028 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
35029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35030 | (eval $ac_try) 2>&5 | |
35031 | ac_status=$? | |
35032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35033 | (exit $ac_status); }; }; then | |
35034 | eval "$as_ac_var=yes" | |
35035 | else | |
35036 | echo "$as_me: failed program was:" >&5 | |
35037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35038 | ||
35039 | eval "$as_ac_var=no" | |
35040 | fi | |
8a7b1113 | 35041 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
35042 | fi |
35043 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35044 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35045 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35046 | cat >>confdefs.h <<_ACEOF | |
35047 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35048 | _ACEOF | |
35049 | have_cos=1 | |
35050 | fi | |
35051 | done | |
35052 | ||
35053 | ||
35054 | for ac_func in floor | |
35055 | do | |
35056 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35057 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35058 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35059 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35061 | else | |
35062 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 35063 | #line $LINENO "configure" |
a848cd7e SC |
35064 | /* confdefs.h. */ |
35065 | _ACEOF | |
35066 | cat confdefs.h >>conftest.$ac_ext | |
35067 | cat >>conftest.$ac_ext <<_ACEOF | |
35068 | /* end confdefs.h. */ | |
a848cd7e SC |
35069 | /* System header to define __stub macros and hopefully few prototypes, |
35070 | which can conflict with char $ac_func (); below. | |
35071 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35072 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
35073 | #ifdef __STDC__ |
35074 | # include <limits.h> | |
35075 | #else | |
35076 | # include <assert.h> | |
35077 | #endif | |
a848cd7e SC |
35078 | /* Override any gcc2 internal prototype to avoid an error. */ |
35079 | #ifdef __cplusplus | |
35080 | extern "C" | |
35081 | { | |
35082 | #endif | |
35083 | /* We use char because int might match the return type of a gcc2 | |
35084 | builtin and then its argument prototype would still apply. */ | |
35085 | char $ac_func (); | |
35086 | /* The GNU C library defines this for functions which it implements | |
35087 | to always fail with ENOSYS. Some functions are actually named | |
35088 | something starting with __ and the normal name is an alias. */ | |
35089 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35090 | choke me | |
35091 | #else | |
35092 | char (*f) () = $ac_func; | |
35093 | #endif | |
35094 | #ifdef __cplusplus | |
35095 | } | |
35096 | #endif | |
35097 | ||
35098 | int | |
35099 | main () | |
35100 | { | |
35101 | return f != $ac_func; | |
35102 | ; | |
35103 | return 0; | |
35104 | } | |
35105 | _ACEOF | |
35106 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35107 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 35108 | (eval $ac_link) 2>&5 |
a848cd7e | 35109 | ac_status=$? |
a848cd7e SC |
35110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35111 | (exit $ac_status); } && | |
8a7b1113 | 35112 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
35113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35114 | (eval $ac_try) 2>&5 | |
35115 | ac_status=$? | |
35116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35117 | (exit $ac_status); }; }; then | |
35118 | eval "$as_ac_var=yes" | |
35119 | else | |
35120 | echo "$as_me: failed program was:" >&5 | |
35121 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35122 | ||
35123 | eval "$as_ac_var=no" | |
35124 | fi | |
8a7b1113 | 35125 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
35126 | fi |
35127 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35128 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35129 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35130 | cat >>confdefs.h <<_ACEOF | |
35131 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35132 | _ACEOF | |
35133 | have_floor=1 | |
35134 | fi | |
35135 | done | |
35136 | ||
35137 | echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5 | |
35138 | echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6 | |
35139 | if test "$have_cos" = 1 -a "$have_floor" = 1; then | |
35140 | echo "$as_me:$LINENO: result: yes" >&5 | |
35141 | echo "${ECHO_T}yes" >&6 | |
35142 | else | |
35143 | echo "$as_me:$LINENO: result: no" >&5 | |
35144 | echo "${ECHO_T}no" >&6 | |
35145 | LIBS="$LIBS -lm" | |
35146 | # use different functions to avoid configure caching | |
35147 | have_sin=0 | |
35148 | have_ceil=0 | |
35149 | ||
35150 | for ac_func in sin | |
35151 | do | |
35152 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35153 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35154 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35155 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35156 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35157 | else | |
35158 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 35159 | #line $LINENO "configure" |
a848cd7e SC |
35160 | /* confdefs.h. */ |
35161 | _ACEOF | |
35162 | cat confdefs.h >>conftest.$ac_ext | |
35163 | cat >>conftest.$ac_ext <<_ACEOF | |
35164 | /* end confdefs.h. */ | |
a848cd7e SC |
35165 | /* System header to define __stub macros and hopefully few prototypes, |
35166 | which can conflict with char $ac_func (); below. | |
35167 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35168 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
35169 | #ifdef __STDC__ |
35170 | # include <limits.h> | |
35171 | #else | |
35172 | # include <assert.h> | |
35173 | #endif | |
a848cd7e SC |
35174 | /* Override any gcc2 internal prototype to avoid an error. */ |
35175 | #ifdef __cplusplus | |
35176 | extern "C" | |
35177 | { | |
35178 | #endif | |
35179 | /* We use char because int might match the return type of a gcc2 | |
35180 | builtin and then its argument prototype would still apply. */ | |
35181 | char $ac_func (); | |
35182 | /* The GNU C library defines this for functions which it implements | |
35183 | to always fail with ENOSYS. Some functions are actually named | |
35184 | something starting with __ and the normal name is an alias. */ | |
35185 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35186 | choke me | |
35187 | #else | |
35188 | char (*f) () = $ac_func; | |
35189 | #endif | |
35190 | #ifdef __cplusplus | |
35191 | } | |
35192 | #endif | |
35193 | ||
35194 | int | |
35195 | main () | |
35196 | { | |
35197 | return f != $ac_func; | |
35198 | ; | |
35199 | return 0; | |
35200 | } | |
35201 | _ACEOF | |
35202 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35203 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 35204 | (eval $ac_link) 2>&5 |
a848cd7e | 35205 | ac_status=$? |
a848cd7e SC |
35206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35207 | (exit $ac_status); } && | |
8a7b1113 | 35208 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
35209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35210 | (eval $ac_try) 2>&5 | |
35211 | ac_status=$? | |
35212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35213 | (exit $ac_status); }; }; then | |
35214 | eval "$as_ac_var=yes" | |
35215 | else | |
35216 | echo "$as_me: failed program was:" >&5 | |
35217 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35218 | ||
35219 | eval "$as_ac_var=no" | |
35220 | fi | |
8a7b1113 | 35221 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
35222 | fi |
35223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35224 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35225 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35226 | cat >>confdefs.h <<_ACEOF | |
35227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35228 | _ACEOF | |
35229 | have_sin=1 | |
35230 | fi | |
35231 | done | |
35232 | ||
35233 | ||
35234 | for ac_func in ceil | |
35235 | do | |
35236 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
35237 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
35238 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
35239 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
35240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35241 | else | |
35242 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 35243 | #line $LINENO "configure" |
a848cd7e SC |
35244 | /* confdefs.h. */ |
35245 | _ACEOF | |
35246 | cat confdefs.h >>conftest.$ac_ext | |
35247 | cat >>conftest.$ac_ext <<_ACEOF | |
35248 | /* end confdefs.h. */ | |
a848cd7e SC |
35249 | /* System header to define __stub macros and hopefully few prototypes, |
35250 | which can conflict with char $ac_func (); below. | |
35251 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
35252 | <limits.h> exists even on freestanding compilers. */ | |
a848cd7e SC |
35253 | #ifdef __STDC__ |
35254 | # include <limits.h> | |
35255 | #else | |
35256 | # include <assert.h> | |
35257 | #endif | |
a848cd7e SC |
35258 | /* Override any gcc2 internal prototype to avoid an error. */ |
35259 | #ifdef __cplusplus | |
35260 | extern "C" | |
35261 | { | |
35262 | #endif | |
35263 | /* We use char because int might match the return type of a gcc2 | |
35264 | builtin and then its argument prototype would still apply. */ | |
35265 | char $ac_func (); | |
35266 | /* The GNU C library defines this for functions which it implements | |
35267 | to always fail with ENOSYS. Some functions are actually named | |
35268 | something starting with __ and the normal name is an alias. */ | |
35269 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
35270 | choke me | |
35271 | #else | |
35272 | char (*f) () = $ac_func; | |
35273 | #endif | |
35274 | #ifdef __cplusplus | |
35275 | } | |
35276 | #endif | |
35277 | ||
35278 | int | |
35279 | main () | |
35280 | { | |
35281 | return f != $ac_func; | |
35282 | ; | |
35283 | return 0; | |
35284 | } | |
35285 | _ACEOF | |
35286 | rm -f conftest.$ac_objext conftest$ac_exeext | |
35287 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8a7b1113 | 35288 | (eval $ac_link) 2>&5 |
a848cd7e | 35289 | ac_status=$? |
a848cd7e SC |
35290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35291 | (exit $ac_status); } && | |
8a7b1113 | 35292 | { ac_try='test -s conftest$ac_exeext' |
a848cd7e SC |
35293 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
35294 | (eval $ac_try) 2>&5 | |
35295 | ac_status=$? | |
35296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35297 | (exit $ac_status); }; }; then | |
35298 | eval "$as_ac_var=yes" | |
35299 | else | |
35300 | echo "$as_me: failed program was:" >&5 | |
35301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
35302 | ||
35303 | eval "$as_ac_var=no" | |
35304 | fi | |
8a7b1113 | 35305 | rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext |
a848cd7e SC |
35306 | fi |
35307 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
35308 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
35309 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
35310 | cat >>confdefs.h <<_ACEOF | |
35311 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
35312 | _ACEOF | |
35313 | have_ceil=1 | |
35314 | fi | |
35315 | done | |
35316 | ||
35317 | echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5 | |
35318 | echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6 | |
35319 | if test "$have_sin" = 1 -a "$have_ceil" = 1; then | |
35320 | echo "$as_me:$LINENO: result: yes" >&5 | |
35321 | echo "${ECHO_T}yes" >&6 | |
35322 | else | |
35323 | echo "$as_me:$LINENO: result: no" >&5 | |
35324 | echo "${ECHO_T}no" >&6 | |
35325 | # not sure we should warn the user, crash, etc. | |
35326 | fi | |
35327 | fi | |
35328 | ||
35329 | if test "$wxUSE_GUI" = "yes"; then | |
35330 | ||
35331 | ||
35332 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \ | |
35333 | drawing dynamic erase event exec font image \ | |
35334 | minimal propsize rotate shaped widgets render" | |
35335 | ||
35336 | if test "$wxUSE_MONOLITHIC" != "yes"; then | |
35337 | SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console" | |
35338 | fi | |
35339 | else | |
35340 | SAMPLES_SUBDIRS="console" | |
35341 | fi | |
35342 | ||
35343 | ||
35344 | INCLUDES="-I\${top_builddir}lib/wx/include/${TOOLCHAIN_NAME} \ | |
35345 | -I\${top_srcdir}/include $TOOLKIT_INCLUDE" | |
35346 | ||
35347 | if test "$GXX" = yes ; then | |
35348 | CXXWARNINGS="-Wall" | |
35349 | fi | |
35350 | ||
35351 | EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE" | |
35352 | ||
35353 | CPPFLAGS=`echo $WXDEBUG_DEFINE $INCLUDES $CPPFLAGS | sed 's/ \\+/ /g'` | |
35354 | CFLAGS=`echo $CODE_GEN_FLAGS $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'` | |
35355 | CXXFLAGS=`echo $CODE_GEN_FLAGS $CODE_GEN_FLAGS_CXX $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'` | |
35356 | ||
35357 | ||
35358 | LIBS=`echo $LIBS | sed 's/ \+/ /g'` | |
35359 | EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS" | |
35360 | EXTRALIBS_XML="$EXPAT_LINK" | |
35361 | EXTRALIBS_HTML="$MSPACK_LINK" | |
35362 | EXTRALIBS_ODBC="$ODBC_LINK" | |
35363 | if test "$wxUSE_GUI" = "yes"; then | |
35364 | EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK | sed 's/ \+/ /g'` | |
35365 | fi | |
35366 | if test "$wxUSE_OPENGL" = "yes"; then | |
35367 | EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS" | |
35368 | fi | |
35369 | ||
35370 | LDFLAGS="$LDFLAGS $PROFILE" | |
35371 | ||
35372 | if test "$wxUSE_GTK" = 1; then | |
35373 | WXCONFIG_INCLUDE= | |
35374 | else | |
35375 | WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE" | |
35376 | fi | |
35377 | ||
35378 | WXCONFIG_EXTRALIBS="$LIBS" | |
35379 | ||
35380 | if test "$wxUSE_REGEX" = "builtin" ; then | |
35381 | wxconfig_3rdparty="$wxconfig_3rdparty regex${lib_unicode_suffix}" | |
35382 | fi | |
35383 | if test "$wxUSE_EXPAT" = "builtin" ; then | |
35384 | wxconfig_3rdparty="$wxconfig_3rdparty expat" | |
35385 | fi | |
35386 | if test "$wxUSE_ODBC" = "builtin" ; then | |
35387 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
35388 | fi | |
35389 | if test "$wxUSE_LIBTIFF" = "builtin" ; then | |
35390 | wxconfig_3rdparty="$wxconfig_3rdparty tiff" | |
35391 | fi | |
35392 | if test "$wxUSE_LIBJPEG" = "builtin" ; then | |
35393 | wxconfig_3rdparty="$wxconfig_3rdparty jpeg" | |
35394 | fi | |
35395 | if test "$wxUSE_LIBPNG" = "builtin" ; then | |
35396 | wxconfig_3rdparty="$wxconfig_3rdparty png" | |
35397 | fi | |
35398 | if test "$wxUSE_ZLIB" = "builtin" ; then | |
35399 | wxconfig_3rdparty="$wxconfig_3rdparty zlib" | |
35400 | fi | |
35401 | if test "$wxUSE_ODBC" = "builtin" ; then | |
35402 | wxconfig_3rdparty="$wxconfig_3rdparty odbc" | |
35403 | fi | |
35404 | ||
35405 | for i in $wxconfig_3rdparty ; do | |
35406 | WXCONFIG_EXTRALIBS="$WXCONFIG_EXTRALIBS -lwx${i}${lib_debug_suffix}${HOST_SUFFIX}" | |
35407 | done | |
35408 | ||
35409 | ||
35410 | if test "x$wxUSE_UNIVERSAL" = "xyes" ; then | |
35411 | WXUNIV=1 | |
35412 | else | |
35413 | WXUNIV=0 | |
35414 | fi | |
35415 | ||
35416 | ||
35417 | ||
35418 | ||
35419 | ||
35420 | ||
35421 | ||
35422 | ||
35423 | ||
35424 | if test $wxUSE_MONOLITHIC = "yes" ; then | |
35425 | MONOLITHIC=1 | |
35426 | else | |
35427 | MONOLITHIC=0 | |
35428 | fi | |
35429 | ||
35430 | if test $wxUSE_PLUGINS = "yes" ; then | |
35431 | USE_PLUGINS=1 | |
35432 | else | |
35433 | USE_PLUGINS=0 | |
35434 | fi | |
35435 | ||
35436 | if test $wxUSE_ODBC != "no" ; then | |
35437 | USE_ODBC=1 | |
35438 | else | |
35439 | USE_ODBC=0 | |
35440 | fi | |
35441 | ||
35442 | if test $wxUSE_OFFICIAL_BUILD = "yes" ; then | |
35443 | OFFICIAL_BUILD=1 | |
35444 | else | |
35445 | OFFICIAL_BUILD=0 | |
35446 | fi | |
35447 | ||
35448 | ||
35449 | ||
35450 | ||
35451 | ||
35452 | ||
35453 | ||
35454 | ||
35455 | ||
35456 | ||
35457 | ||
35458 | ||
35459 | ||
35460 | ||
35461 | ||
35462 | ||
35463 | ||
35464 | ||
35465 | ||
35466 | ||
35467 | ||
35468 | TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"` | |
35469 | ||
35470 | ||
35471 | ||
35472 | ||
35473 | ||
35474 | ||
35475 | ||
35476 | ||
35477 | ||
35478 | if test "x$BAKEFILE_HOST" = "x"; then | |
35479 | BAKEFILE_HOST="${host}" | |
35480 | fi | |
35481 | ||
35482 | if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then | |
35483 | ||
35484 | if test -n "$ac_tool_prefix"; then | |
35485 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
35486 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
35487 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35488 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35489 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
35490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35491 | else | |
35492 | if test -n "$RANLIB"; then | |
35493 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
35494 | else | |
35495 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35496 | for as_dir in $PATH | |
35497 | do | |
35498 | IFS=$as_save_IFS | |
35499 | test -z "$as_dir" && as_dir=. | |
35500 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35501 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35502 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
35503 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35504 | break 2 | |
35505 | fi | |
35506 | done | |
35507 | done | |
35508 | ||
35509 | fi | |
35510 | fi | |
35511 | RANLIB=$ac_cv_prog_RANLIB | |
35512 | if test -n "$RANLIB"; then | |
35513 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
35514 | echo "${ECHO_T}$RANLIB" >&6 | |
35515 | else | |
35516 | echo "$as_me:$LINENO: result: no" >&5 | |
35517 | echo "${ECHO_T}no" >&6 | |
35518 | fi | |
35519 | ||
35520 | fi | |
35521 | if test -z "$ac_cv_prog_RANLIB"; then | |
35522 | ac_ct_RANLIB=$RANLIB | |
35523 | # Extract the first word of "ranlib", so it can be a program name with args. | |
35524 | set dummy ranlib; ac_word=$2 | |
35525 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35526 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35527 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
35528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35529 | else | |
35530 | if test -n "$ac_ct_RANLIB"; then | |
35531 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
35532 | else | |
35533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35534 | for as_dir in $PATH | |
35535 | do | |
35536 | IFS=$as_save_IFS | |
35537 | test -z "$as_dir" && as_dir=. | |
35538 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35539 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35540 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
35541 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35542 | break 2 | |
35543 | fi | |
35544 | done | |
35545 | done | |
35546 | ||
35547 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
35548 | fi | |
35549 | fi | |
35550 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
35551 | if test -n "$ac_ct_RANLIB"; then | |
35552 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
35553 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
35554 | else | |
35555 | echo "$as_me:$LINENO: result: no" >&5 | |
35556 | echo "${ECHO_T}no" >&6 | |
35557 | fi | |
35558 | ||
35559 | RANLIB=$ac_ct_RANLIB | |
35560 | else | |
35561 | RANLIB="$ac_cv_prog_RANLIB" | |
35562 | fi | |
35563 | ||
35564 | # Find a good install program. We prefer a C program (faster), | |
35565 | # so one script is as good as another. But avoid the broken or | |
35566 | # incompatible versions: | |
35567 | # SysV /etc/install, /usr/sbin/install | |
35568 | # SunOS /usr/etc/install | |
35569 | # IRIX /sbin/install | |
35570 | # AIX /bin/install | |
35571 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
35572 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
35573 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
35574 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
a848cd7e SC |
35575 | # ./install, which can be erroneously created by make from ./install.sh. |
35576 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
35577 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
35578 | if test -z "$INSTALL"; then | |
35579 | if test "${ac_cv_path_install+set}" = set; then | |
35580 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35581 | else | |
35582 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35583 | for as_dir in $PATH | |
35584 | do | |
35585 | IFS=$as_save_IFS | |
35586 | test -z "$as_dir" && as_dir=. | |
35587 | # Account for people who put trailing slashes in PATH elements. | |
35588 | case $as_dir/ in | |
35589 | ./ | .// | /cC/* | \ | |
35590 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
a848cd7e SC |
35591 | /usr/ucb/* ) ;; |
35592 | *) | |
35593 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
35594 | # Don't use installbsd from OSF since it installs stuff as root | |
35595 | # by default. | |
35596 | for ac_prog in ginstall scoinst install; do | |
35597 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8a7b1113 VZ |
35598 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then |
35599 | if test $ac_prog = install && | |
35600 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
35601 | # AIX install. It has an incompatible calling convention. | |
35602 | : | |
35603 | elif test $ac_prog = install && | |
35604 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
35605 | # program-specific install script used by HP pwplus--don't use. | |
35606 | : | |
35607 | else | |
35608 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
35609 | break 3 | |
35610 | fi | |
35611 | fi | |
a848cd7e SC |
35612 | done |
35613 | done | |
35614 | ;; | |
35615 | esac | |
35616 | done | |
35617 | ||
35618 | ||
35619 | fi | |
35620 | if test "${ac_cv_path_install+set}" = set; then | |
35621 | INSTALL=$ac_cv_path_install | |
35622 | else | |
35623 | # As a last resort, use the slow shell script. We don't cache a | |
35624 | # path for INSTALL within a source directory, because that will | |
35625 | # break other packages using the cache if that directory is | |
35626 | # removed, or if the path is relative. | |
35627 | INSTALL=$ac_install_sh | |
35628 | fi | |
35629 | fi | |
35630 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
35631 | echo "${ECHO_T}$INSTALL" >&6 | |
35632 | ||
35633 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
35634 | # It thinks the first close brace ends the variable substitution. | |
35635 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
35636 | ||
35637 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
35638 | ||
35639 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
35640 | ||
35641 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
35642 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
35643 | LN_S=$as_ln_s | |
35644 | if test "$LN_S" = "ln -s"; then | |
35645 | echo "$as_me:$LINENO: result: yes" >&5 | |
35646 | echo "${ECHO_T}yes" >&6 | |
35647 | else | |
35648 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
35649 | echo "${ECHO_T}no, using $LN_S" >&6 | |
35650 | fi | |
35651 | ||
35652 | ||
35653 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
35654 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
8a7b1113 | 35655 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
a848cd7e SC |
35656 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
35657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35658 | else | |
35659 | cat >conftest.make <<\_ACEOF | |
35660 | all: | |
35661 | @echo 'ac_maketemp="$(MAKE)"' | |
35662 | _ACEOF | |
35663 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
35664 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
35665 | if test -n "$ac_maketemp"; then | |
35666 | eval ac_cv_prog_make_${ac_make}_set=yes | |
35667 | else | |
35668 | eval ac_cv_prog_make_${ac_make}_set=no | |
35669 | fi | |
35670 | rm -f conftest.make | |
35671 | fi | |
35672 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
35673 | echo "$as_me:$LINENO: result: yes" >&5 | |
35674 | echo "${ECHO_T}yes" >&6 | |
35675 | SET_MAKE= | |
35676 | else | |
35677 | echo "$as_me:$LINENO: result: no" >&5 | |
35678 | echo "${ECHO_T}no" >&6 | |
35679 | SET_MAKE="MAKE=${MAKE-make}" | |
35680 | fi | |
35681 | ||
35682 | ||
35683 | ||
35684 | if test -n "$ac_tool_prefix"; then | |
35685 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
35686 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
35687 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35688 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35689 | if test "${ac_cv_prog_AR+set}" = set; then | |
35690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35691 | else | |
35692 | if test -n "$AR"; then | |
35693 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
35694 | else | |
35695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35696 | for as_dir in $PATH | |
35697 | do | |
35698 | IFS=$as_save_IFS | |
35699 | test -z "$as_dir" && as_dir=. | |
35700 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35701 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35702 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
35703 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35704 | break 2 | |
35705 | fi | |
35706 | done | |
35707 | done | |
35708 | ||
35709 | fi | |
35710 | fi | |
35711 | AR=$ac_cv_prog_AR | |
35712 | if test -n "$AR"; then | |
35713 | echo "$as_me:$LINENO: result: $AR" >&5 | |
35714 | echo "${ECHO_T}$AR" >&6 | |
35715 | else | |
35716 | echo "$as_me:$LINENO: result: no" >&5 | |
35717 | echo "${ECHO_T}no" >&6 | |
35718 | fi | |
35719 | ||
35720 | fi | |
35721 | if test -z "$ac_cv_prog_AR"; then | |
35722 | ac_ct_AR=$AR | |
35723 | # Extract the first word of "ar", so it can be a program name with args. | |
35724 | set dummy ar; ac_word=$2 | |
35725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35727 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
35728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35729 | else | |
35730 | if test -n "$ac_ct_AR"; then | |
35731 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
35732 | else | |
35733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35734 | for as_dir in $PATH | |
35735 | do | |
35736 | IFS=$as_save_IFS | |
35737 | test -z "$as_dir" && as_dir=. | |
35738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35740 | ac_cv_prog_ac_ct_AR="ar" | |
35741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35742 | break 2 | |
35743 | fi | |
35744 | done | |
35745 | done | |
35746 | ||
35747 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar" | |
35748 | fi | |
35749 | fi | |
35750 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
35751 | if test -n "$ac_ct_AR"; then | |
35752 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
35753 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
35754 | else | |
35755 | echo "$as_me:$LINENO: result: no" >&5 | |
35756 | echo "${ECHO_T}no" >&6 | |
35757 | fi | |
35758 | ||
35759 | AR=$ac_ct_AR | |
35760 | else | |
35761 | AR="$ac_cv_prog_AR" | |
35762 | fi | |
35763 | ||
35764 | if test -n "$ac_tool_prefix"; then | |
35765 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
35766 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
35767 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35768 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35769 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
35770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35771 | else | |
35772 | if test -n "$STRIP"; then | |
35773 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
35774 | else | |
35775 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35776 | for as_dir in $PATH | |
35777 | do | |
35778 | IFS=$as_save_IFS | |
35779 | test -z "$as_dir" && as_dir=. | |
35780 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35781 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35782 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
35783 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35784 | break 2 | |
35785 | fi | |
35786 | done | |
35787 | done | |
35788 | ||
35789 | fi | |
35790 | fi | |
35791 | STRIP=$ac_cv_prog_STRIP | |
35792 | if test -n "$STRIP"; then | |
35793 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
35794 | echo "${ECHO_T}$STRIP" >&6 | |
35795 | else | |
35796 | echo "$as_me:$LINENO: result: no" >&5 | |
35797 | echo "${ECHO_T}no" >&6 | |
35798 | fi | |
35799 | ||
35800 | fi | |
35801 | if test -z "$ac_cv_prog_STRIP"; then | |
35802 | ac_ct_STRIP=$STRIP | |
35803 | # Extract the first word of "strip", so it can be a program name with args. | |
35804 | set dummy strip; ac_word=$2 | |
35805 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35806 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35807 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
35808 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35809 | else | |
35810 | if test -n "$ac_ct_STRIP"; then | |
35811 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
35812 | else | |
35813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35814 | for as_dir in $PATH | |
35815 | do | |
35816 | IFS=$as_save_IFS | |
35817 | test -z "$as_dir" && as_dir=. | |
35818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35819 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35820 | ac_cv_prog_ac_ct_STRIP="strip" | |
35821 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35822 | break 2 | |
35823 | fi | |
35824 | done | |
35825 | done | |
35826 | ||
35827 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
35828 | fi | |
35829 | fi | |
35830 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
35831 | if test -n "$ac_ct_STRIP"; then | |
35832 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
35833 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
35834 | else | |
35835 | echo "$as_me:$LINENO: result: no" >&5 | |
35836 | echo "${ECHO_T}no" >&6 | |
35837 | fi | |
35838 | ||
35839 | STRIP=$ac_ct_STRIP | |
35840 | else | |
35841 | STRIP="$ac_cv_prog_STRIP" | |
35842 | fi | |
35843 | ||
35844 | if test -n "$ac_tool_prefix"; then | |
35845 | # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args. | |
35846 | set dummy ${ac_tool_prefix}nm; ac_word=$2 | |
35847 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35848 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35849 | if test "${ac_cv_prog_NM+set}" = set; then | |
35850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35851 | else | |
35852 | if test -n "$NM"; then | |
35853 | ac_cv_prog_NM="$NM" # Let the user override the test. | |
35854 | else | |
35855 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35856 | for as_dir in $PATH | |
35857 | do | |
35858 | IFS=$as_save_IFS | |
35859 | test -z "$as_dir" && as_dir=. | |
35860 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35861 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35862 | ac_cv_prog_NM="${ac_tool_prefix}nm" | |
35863 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35864 | break 2 | |
35865 | fi | |
35866 | done | |
35867 | done | |
35868 | ||
35869 | fi | |
35870 | fi | |
35871 | NM=$ac_cv_prog_NM | |
35872 | if test -n "$NM"; then | |
35873 | echo "$as_me:$LINENO: result: $NM" >&5 | |
35874 | echo "${ECHO_T}$NM" >&6 | |
35875 | else | |
35876 | echo "$as_me:$LINENO: result: no" >&5 | |
35877 | echo "${ECHO_T}no" >&6 | |
35878 | fi | |
35879 | ||
35880 | fi | |
35881 | if test -z "$ac_cv_prog_NM"; then | |
35882 | ac_ct_NM=$NM | |
35883 | # Extract the first word of "nm", so it can be a program name with args. | |
35884 | set dummy nm; ac_word=$2 | |
35885 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
35886 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
35887 | if test "${ac_cv_prog_ac_ct_NM+set}" = set; then | |
35888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35889 | else | |
35890 | if test -n "$ac_ct_NM"; then | |
35891 | ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. | |
35892 | else | |
35893 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
35894 | for as_dir in $PATH | |
35895 | do | |
35896 | IFS=$as_save_IFS | |
35897 | test -z "$as_dir" && as_dir=. | |
35898 | for ac_exec_ext in '' $ac_executable_extensions; do | |
35899 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
35900 | ac_cv_prog_ac_ct_NM="nm" | |
35901 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
35902 | break 2 | |
35903 | fi | |
35904 | done | |
35905 | done | |
35906 | ||
35907 | test -z "$ac_cv_prog_ac_ct_NM" && ac_cv_prog_ac_ct_NM=":" | |
35908 | fi | |
35909 | fi | |
35910 | ac_ct_NM=$ac_cv_prog_ac_ct_NM | |
35911 | if test -n "$ac_ct_NM"; then | |
35912 | echo "$as_me:$LINENO: result: $ac_ct_NM" >&5 | |
35913 | echo "${ECHO_T}$ac_ct_NM" >&6 | |
35914 | else | |
35915 | echo "$as_me:$LINENO: result: no" >&5 | |
35916 | echo "${ECHO_T}no" >&6 | |
35917 | fi | |
35918 | ||
35919 | NM=$ac_ct_NM | |
35920 | else | |
35921 | NM="$ac_cv_prog_NM" | |
35922 | fi | |
35923 | ||
35924 | ||
35925 | case ${BAKEFILE_HOST} in | |
35926 | *-hp-hpux* ) | |
35927 | INSTALL_DIR="mkdir" | |
35928 | ;; | |
35929 | *) INSTALL_DIR="$INSTALL -d" | |
35930 | ;; | |
35931 | esac | |
35932 | ||
35933 | ||
35934 | LDFLAGS_GUI= | |
35935 | case ${BAKEFILE_HOST} in | |
35936 | *-*-cygwin* | *-*-mingw32* ) | |
35937 | LDFLAGS_GUI="-mwindows" | |
35938 | esac | |
35939 | ||
35940 | ||
35941 | fi | |
35942 | ||
35943 | echo "$as_me:$LINENO: checking if make is GNU make" >&5 | |
35944 | echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6 | |
35945 | if test "${bakefile_cv_prog_makeisgnu+set}" = set; then | |
35946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
35947 | else | |
35948 | ||
35949 | if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null | | |
35950 | egrep -s GNU > /dev/null); then | |
35951 | bakefile_cv_prog_makeisgnu="yes" | |
35952 | else | |
35953 | bakefile_cv_prog_makeisgnu="no" | |
35954 | fi | |
35955 | ||
35956 | fi | |
35957 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5 | |
35958 | echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6 | |
35959 | ||
35960 | if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then | |
35961 | IF_GNU_MAKE="" | |
35962 | else | |
35963 | IF_GNU_MAKE="#" | |
35964 | fi | |
35965 | ||
35966 | ||
35967 | ||
35968 | PLATFORM_UNIX=0 | |
35969 | PLATFORM_WIN32=0 | |
35970 | PLATFORM_MSDOS=0 | |
35971 | PLATFORM_MAC=0 | |
35972 | PLATFORM_MACOSX=0 | |
35973 | PLATFORM_OS2=0 | |
35974 | ||
35975 | if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then | |
35976 | case "${BAKEFILE_HOST}" in | |
35977 | *-*-cygwin* | *-*-mingw32* ) | |
35978 | PLATFORM_WIN32=1 | |
35979 | ;; | |
35980 | *-pc-msdosdjgpp ) | |
35981 | PLATFORM_MSDOS=1 | |
35982 | ;; | |
35983 | *-pc-os2_emx | *-pc-os2-emx ) | |
35984 | PLATFORM_OS2=1 | |
35985 | ;; | |
35986 | powerpc-*-darwin* ) | |
35987 | PLATFORM_MAC=1 | |
35988 | PLATFORM_MACOSX=1 | |
35989 | ;; | |
35990 | * ) | |
35991 | PLATFORM_UNIX=1 | |
35992 | ;; | |
35993 | esac | |
35994 | else | |
35995 | case "$BAKEFILE_FORCE_PLATFORM" in | |
35996 | win32 ) | |
35997 | PLATFORM_WIN32=1 | |
35998 | ;; | |
35999 | msdos ) | |
36000 | PLATFORM_MSDOS=1 | |
36001 | ;; | |
36002 | os2 ) | |
36003 | PLATFORM_OS2=1 | |
36004 | ;; | |
36005 | darwin ) | |
36006 | PLATFORM_MAC=1 | |
36007 | PLATFORM_MACOSX=1 | |
36008 | ;; | |
36009 | unix ) | |
36010 | PLATFORM_UNIX=1 | |
36011 | ;; | |
36012 | * ) | |
36013 | { { echo "$as_me:$LINENO: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&5 | |
36014 | echo "$as_me: error: Unknown platform: $BAKEFILE_FORCE_PLATFORM" >&2;} | |
36015 | { (exit 1); exit 1; }; } | |
36016 | ;; | |
36017 | esac | |
36018 | fi | |
36019 | ||
36020 | ||
36021 | ||
36022 | ||
36023 | ||
36024 | ||
36025 | ||
36026 | ||
36027 | ||
36028 | # Check whether --enable-omf or --disable-omf was given. | |
36029 | if test "${enable_omf+set}" = set; then | |
36030 | enableval="$enable_omf" | |
36031 | bk_os2_use_omf="$enableval" | |
36032 | fi; | |
36033 | ||
36034 | case "${BAKEFILE_HOST}" in | |
36035 | *-*-darwin* ) | |
36036 | CFLAGS="$CFLAGS -fno-common" | |
36037 | CXXFLAGS="$CXXFLAGS -fno-common" | |
36038 | ;; | |
36039 | ||
36040 | *-pc-os2_emx | *-pc-os2-emx ) | |
36041 | if test "x$bk_os2_use_omf" = "xyes" ; then | |
36042 | AR=emxomfar | |
36043 | RANLIB=: | |
36044 | LDFLAGS="-Zomf $LDFLAGS" | |
36045 | CFLAGS="-Zomf $CFLAGS" | |
36046 | CXXFLAGS="-Zomf $CXXFLAGS" | |
36047 | OS2_LIBEXT="lib" | |
36048 | else | |
36049 | OS2_LIBEXT="a" | |
36050 | fi | |
36051 | ;; | |
36052 | esac | |
36053 | ||
36054 | ||
36055 | SO_SUFFIX="so" | |
36056 | SO_SUFFIX_MODULE="so" | |
36057 | EXEEXT="" | |
36058 | LIBPREFIX="lib" | |
36059 | LIBEXT=".a" | |
36060 | DLLPREFIX="lib" | |
36061 | DLLPREFIX_MODULE="" | |
36062 | DLLIMP_SUFFIX="" | |
36063 | ||
36064 | case "${BAKEFILE_HOST}" in | |
36065 | *-hp-hpux* ) | |
36066 | SO_SUFFIX="sl" | |
36067 | SO_SUFFIX_MODULE="sl" | |
36068 | ;; | |
36069 | *-*-aix* ) | |
36070 | SO_SUFFIX="a" | |
36071 | SO_SUFFIX_MODULE="a" | |
36072 | ;; | |
36073 | *-*-cygwin* | *-*-mingw32* ) | |
36074 | SO_SUFFIX="dll" | |
36075 | SO_SUFFIX_MODULE="dll" | |
36076 | DLLIMP_SUFFIX="dll.a" | |
36077 | EXEEXT=".exe" | |
36078 | DLLPREFIX="" | |
36079 | ;; | |
36080 | *-pc-msdosdjgpp ) | |
36081 | EXEEXT=".exe" | |
36082 | DLLPREFIX="" | |
36083 | ;; | |
36084 | *-pc-os2_emx | *-pc-os2-emx ) | |
36085 | SO_SUFFIX="dll" | |
36086 | SO_SUFFIX_MODULE="dll" | |
36087 | DLLIMP_SUFFIX=$OS2_LIBEXT | |
36088 | EXEEXT=".exe" | |
36089 | DLLPREFIX="" | |
36090 | LIBPREFIX="" | |
36091 | LIBEXT=".$OS2_LIBEXT" | |
36092 | ;; | |
36093 | powerpc-*-darwin* ) | |
36094 | SO_SUFFIX="dylib" | |
36095 | SO_SUFFIX_MODULE="bundle" | |
36096 | ;; | |
36097 | esac | |
36098 | ||
36099 | if test "x$DLLIMP_SUFFIX" = "x" ; then | |
36100 | DLLIMP_SUFFIX="$SO_SUFFIX" | |
36101 | fi | |
36102 | ||
36103 | ||
36104 | ||
36105 | ||
36106 | ||
36107 | ||
36108 | ||
36109 | ||
36110 | ||
36111 | ||
36112 | ||
36113 | SHARED_LD_CC="\$(CC) -shared -o" | |
36114 | SHARED_LD_CXX="\$(CXX) -shared -o" | |
36115 | ||
36116 | if test "x$GCC" = "xyes"; then | |
36117 | PIC_FLAG="-fPIC" | |
36118 | fi | |
36119 | ||
36120 | case "${BAKEFILE_HOST}" in | |
36121 | *-hp-hpux* ) | |
36122 | if test "x$GCC" = "xyes"; then | |
36123 | SHARED_LD_CC="${CC} -shared ${PIC_FLAG} -o" | |
36124 | SHARED_LD_CXX="${CXX} -shared ${PIC_FLAG} -o" | |
36125 | else | |
36126 | LDFLAGS="$LDFLAGS -L/usr/lib" | |
36127 | ||
36128 | SHARED_LD_CC="${CC} -b -o" | |
36129 | SHARED_LD_CXX="${CXX} -b -o" | |
36130 | PIC_FLAG="+Z" | |
36131 | fi | |
36132 | ;; | |
36133 | ||
36134 | *-*-linux* ) | |
36135 | if test "x$GCC" != "xyes"; then | |
36136 | echo "$as_me:$LINENO: checking for Intel compiler" >&5 | |
36137 | echo $ECHO_N "checking for Intel compiler... $ECHO_C" >&6 | |
36138 | if test "${bakefile_cv_prog_icc+set}" = set; then | |
36139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36140 | else | |
36141 | ||
36142 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 36143 | #line $LINENO "configure" |
a848cd7e SC |
36144 | /* confdefs.h. */ |
36145 | _ACEOF | |
36146 | cat confdefs.h >>conftest.$ac_ext | |
36147 | cat >>conftest.$ac_ext <<_ACEOF | |
36148 | /* end confdefs.h. */ | |
36149 | ||
36150 | int | |
36151 | main () | |
36152 | { | |
36153 | ||
36154 | #ifndef __INTEL_COMPILER | |
36155 | #error Not icc | |
36156 | #endif | |
36157 | ||
36158 | ; | |
36159 | return 0; | |
36160 | } | |
36161 | _ACEOF | |
36162 | rm -f conftest.$ac_objext | |
36163 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 36164 | (eval $ac_compile) 2>&5 |
a848cd7e | 36165 | ac_status=$? |
a848cd7e SC |
36166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36167 | (exit $ac_status); } && | |
8a7b1113 | 36168 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
36169 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36170 | (eval $ac_try) 2>&5 | |
36171 | ac_status=$? | |
36172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36173 | (exit $ac_status); }; }; then | |
36174 | bakefile_cv_prog_icc=yes | |
36175 | else | |
36176 | echo "$as_me: failed program was:" >&5 | |
36177 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36178 | ||
36179 | bakefile_cv_prog_icc=no | |
36180 | ||
36181 | fi | |
8a7b1113 | 36182 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36183 | |
36184 | fi | |
36185 | echo "$as_me:$LINENO: result: $bakefile_cv_prog_icc" >&5 | |
36186 | echo "${ECHO_T}$bakefile_cv_prog_icc" >&6 | |
36187 | if test "$bakefile_cv_prog_icc" = "yes"; then | |
36188 | PIC_FLAG="-KPIC" | |
36189 | fi | |
36190 | fi | |
36191 | ;; | |
36192 | ||
36193 | *-*-solaris2* ) | |
36194 | if test "x$GCC" != xyes ; then | |
36195 | SHARED_LD_CC="${CC} -G -o" | |
36196 | SHARED_LD_CXX="${CXX} -G -o" | |
36197 | PIC_FLAG="-KPIC" | |
36198 | fi | |
36199 | ;; | |
36200 | ||
36201 | *-*-darwin* ) | |
36202 | ||
36203 | echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5 | |
36204 | echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6 | |
36205 | if test "${wx_cv_gcc31+set}" = set; then | |
36206 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36207 | else | |
36208 | ||
36209 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 36210 | #line $LINENO "configure" |
a848cd7e SC |
36211 | /* confdefs.h. */ |
36212 | _ACEOF | |
36213 | cat confdefs.h >>conftest.$ac_ext | |
36214 | cat >>conftest.$ac_ext <<_ACEOF | |
36215 | /* end confdefs.h. */ | |
36216 | ||
36217 | int | |
36218 | main () | |
36219 | { | |
36220 | ||
36221 | #if (__GNUC__ < 3) || \ | |
36222 | ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1)) | |
36223 | #error old gcc | |
36224 | #endif | |
36225 | ||
36226 | ; | |
36227 | return 0; | |
36228 | } | |
36229 | _ACEOF | |
36230 | rm -f conftest.$ac_objext | |
36231 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 36232 | (eval $ac_compile) 2>&5 |
a848cd7e | 36233 | ac_status=$? |
a848cd7e SC |
36234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
36235 | (exit $ac_status); } && | |
8a7b1113 | 36236 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
36237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
36238 | (eval $ac_try) 2>&5 | |
36239 | ac_status=$? | |
36240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
36241 | (exit $ac_status); }; }; then | |
36242 | ||
36243 | wx_cv_gcc31=yes | |
36244 | ||
36245 | else | |
36246 | echo "$as_me: failed program was:" >&5 | |
36247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
36248 | ||
36249 | ||
36250 | wx_cv_gcc31=no | |
36251 | ||
36252 | ||
36253 | fi | |
8a7b1113 | 36254 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
36255 | |
36256 | fi | |
36257 | echo "$as_me:$LINENO: result: $wx_cv_gcc31" >&5 | |
36258 | echo "${ECHO_T}$wx_cv_gcc31" >&6 | |
36259 | if test "$wx_cv_gcc31" = "no"; then | |
473276a9 VS |
36260 | |
36261 | D='$' | |
36262 | cat <<EOF >shared-ld-sh | |
a848cd7e SC |
36263 | #!/bin/sh |
36264 | #----------------------------------------------------------------------------- | |
36265 | #-- Name: distrib/mac/shared-ld-sh | |
36266 | #-- Purpose: Link a mach-o dynamic shared library for Darwin / Mac OS X | |
36267 | #-- Author: Gilles Depeyrot | |
36268 | #-- Copyright: (c) 2002 Gilles Depeyrot | |
36269 | #-- Licence: any use permitted | |
36270 | #----------------------------------------------------------------------------- | |
36271 | ||
36272 | verbose=0 | |
36273 | args="" | |
36274 | objects="" | |
36275 | linking_flag="-dynamiclib" | |
36276 | ||
473276a9 VS |
36277 | while test ${D}# -gt 0; do |
36278 | case ${D}1 in | |
a848cd7e SC |
36279 | |
36280 | -v) | |
36281 | verbose=1 | |
36282 | ;; | |
36283 | ||
36284 | -o|-compatibility_version|-current_version|-framework|-undefined|-install_name) | |
36285 | # collect these options and values | |
473276a9 | 36286 | args="${D}{args} ${D}1 ${D}2" |
a848cd7e SC |
36287 | shift |
36288 | ;; | |
36289 | ||
36290 | -l*|-L*|-flat_namespace|-headerpad_max_install_names) | |
36291 | # collect these options | |
473276a9 | 36292 | args="${D}{args} ${D}1" |
a848cd7e SC |
36293 | ;; |
36294 | ||
36295 | -dynamiclib|-bundle) | |
473276a9 | 36296 | linking_flag="${D}1" |
a848cd7e SC |
36297 | ;; |
36298 | ||
36299 | -*) | |
473276a9 | 36300 | echo "shared-ld: unhandled option '${D}1'" |
a848cd7e SC |
36301 | exit 1 |
36302 | ;; | |
36303 | ||
36304 | *.o | *.a | *.dylib) | |
36305 | # collect object files | |
473276a9 | 36306 | objects="${D}{objects} ${D}1" |
a848cd7e SC |
36307 | ;; |
36308 | ||
36309 | *) | |
473276a9 | 36310 | echo "shared-ld: unhandled argument '${D}1'" |
a848cd7e SC |
36311 | exit 1 |
36312 | ;; | |
36313 | ||
36314 | esac | |
36315 | shift | |
36316 | done | |
36317 | ||
36318 | # | |
36319 | # Link one module containing all the others | |
36320 | # | |
473276a9 VS |
36321 | if test ${D}{verbose} = 1; then |
36322 | echo "c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o" | |
a848cd7e | 36323 | fi |
473276a9 VS |
36324 | c++ -r -keep_private_externs -nostdlib ${D}{objects} -o master.${D}${D}.o |
36325 | status=${D}? | |
36326 | if test ${D}{status} != 0; then | |
36327 | exit ${D}{status} | |
a848cd7e SC |
36328 | fi |
36329 | ||
36330 | # | |
36331 | # Link the shared library from the single module created | |
36332 | # | |
473276a9 VS |
36333 | if test ${D}{verbose} = 1; then |
36334 | echo "cc ${D}{linking_flag} master.${D}${D}.o ${D}{args}" | |
a848cd7e | 36335 | fi |
473276a9 VS |
36336 | c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args} |
36337 | status=${D}? | |
36338 | if test ${D}{status} != 0; then | |
36339 | exit ${D}{status} | |
a848cd7e SC |
36340 | fi |
36341 | ||
36342 | # | |
36343 | # Remove intermediate module | |
36344 | # | |
473276a9 | 36345 | rm -f master.${D}${D}.o |
a848cd7e SC |
36346 | |
36347 | exit 0 | |
36348 | EOF | |
473276a9 | 36349 | |
a848cd7e SC |
36350 | chmod +x shared-ld-sh |
36351 | ||
36352 | SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o" | |
36353 | SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o" | |
36354 | SHARED_LD_CXX="$SHARED_LD_CC" | |
36355 | SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC" | |
36356 | else | |
36357 | SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o" | |
36358 | SHARED_LD_MODULE_CC="\${CC} -bundle -single_module -headerpad_max_install_names -o" | |
36359 | SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o" | |
36360 | SHARED_LD_MODULE_CXX="\${CXX} -bundle -single_module -headerpad_max_install_names -o" | |
36361 | fi | |
36362 | ||
36363 | PIC_FLAG="-dynamic -fPIC" | |
36364 | ;; | |
36365 | ||
36366 | *-*-aix* ) | |
36367 | if test "x$GCC" != "xyes"; then | |
36368 | # Extract the first word of "makeC++SharedLib", so it can be a program name with args. | |
36369 | set dummy makeC++SharedLib; ac_word=$2 | |
36370 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
36371 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
36372 | if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then | |
36373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
36374 | else | |
36375 | if test -n "$AIX_CXX_LD"; then | |
36376 | ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test. | |
36377 | else | |
36378 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
36379 | for as_dir in $PATH | |
36380 | do | |
36381 | IFS=$as_save_IFS | |
36382 | test -z "$as_dir" && as_dir=. | |
36383 | for ac_exec_ext in '' $ac_executable_extensions; do | |
36384 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
36385 | ac_cv_prog_AIX_CXX_LD="makeC++SharedLib" | |
36386 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
36387 | break 2 | |
36388 | fi | |
36389 | done | |
36390 | done | |
36391 | ||
36392 | test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib" | |
36393 | fi | |
36394 | fi | |
36395 | AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD | |
36396 | if test -n "$AIX_CXX_LD"; then | |
36397 | echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5 | |
36398 | echo "${ECHO_T}$AIX_CXX_LD" >&6 | |
36399 | else | |
36400 | echo "$as_me:$LINENO: result: no" >&5 | |
36401 | echo "${ECHO_T}no" >&6 | |
36402 | fi | |
36403 | ||
36404 | SHARED_LD_CC="$AIX_CC_LD -p 0 -o" | |
36405 | SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o" | |
36406 | fi | |
36407 | ;; | |
36408 | ||
36409 | *-*-beos* ) | |
36410 | SHARED_LD_CC="${LD} -shared -o" | |
36411 | SHARED_LD_CXX="${LD} -shared -o" | |
36412 | ;; | |
36413 | ||
36414 | *-*-irix* ) | |
36415 | if test "x$GCC" != "xyes"; then | |
36416 | PIC_FLAG="-KPIC" | |
36417 | fi | |
36418 | ;; | |
36419 | ||
36420 | *-*-cygwin* | *-*-mingw32* ) | |
36421 | PIC_FLAG="" | |
36422 | ;; | |
36423 | ||
36424 | *-pc-os2_emx | *-pc-os2-emx ) | |
473276a9 VS |
36425 | SHARED_LD_CC="`pwd`/dllar.sh -o" |
36426 | SHARED_LD_CXX="`pwd`/dllar.sh -o" | |
a848cd7e | 36427 | PIC_FLAG="" |
473276a9 VS |
36428 | |
36429 | D='$' | |
36430 | cat <<EOF >dllar.sh | |
36431 | #!/bin/sh | |
36432 | # | |
36433 | # dllar - a tool to build both a .dll and an .a file | |
36434 | # from a set of object (.o) files for EMX/OS2. | |
36435 | # | |
36436 | # Written by Andrew Zabolotny, bit@freya.etu.ru | |
36437 | # Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de | |
36438 | # | |
36439 | # This script will accept a set of files on the command line. | |
36440 | # All the public symbols from the .o files will be exported into | |
36441 | # a .DEF file, then linker will be run (through gcc) against them to | |
36442 | # build a shared library consisting of all given .o files. All libraries | |
36443 | # (.a) will be first decompressed into component .o files then act as | |
36444 | # described above. You can optionally give a description (-d "description") | |
36445 | # which will be put into .DLL. To see the list of accepted options (as well | |
36446 | # as command-line format) simply run this program without options. The .DLL | |
36447 | # is built to be imported by name (there is no guarantee that new versions | |
36448 | # of the library you build will have same ordinals for same symbols). | |
36449 | # | |
36450 | # dllar is free software; you can redistribute it and/or modify | |
36451 | # it under the terms of the GNU General Public License as published by | |
36452 | # the Free Software Foundation; either version 2, or (at your option) | |
36453 | # any later version. | |
36454 | # | |
36455 | # dllar is distributed in the hope that it will be useful, | |
36456 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
36457 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
36458 | # GNU General Public License for more details. | |
36459 | # | |
36460 | # You should have received a copy of the GNU General Public License | |
36461 | # along with dllar; see the file COPYING. If not, write to the Free | |
36462 | # Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
36463 | # 02111-1307, USA. | |
36464 | ||
36465 | # To successfuly run this program you will need: | |
36466 | # - Current drive should have LFN support (HPFS, ext2, network, etc) | |
36467 | # (Sometimes dllar generates filenames which won't fit 8.3 scheme) | |
36468 | # - gcc | |
36469 | # (used to build the .dll) | |
36470 | # - emxexp | |
36471 | # (used to create .def file from .o files) | |
36472 | # - emximp | |
36473 | # (used to create .a file from .def file) | |
36474 | # - GNU text utilites (cat, sort, uniq) | |
36475 | # used to process emxexp output | |
36476 | # - GNU file utilities (mv, rm) | |
36477 | # - GNU sed | |
36478 | # - lxlite (optional, see flag below) | |
36479 | # (used for general .dll cleanup) | |
36480 | # | |
36481 | ||
36482 | flag_USE_LXLITE=1; | |
36483 | ||
36484 | # | |
36485 | # helper functions | |
36486 | # basnam, variant of basename, which does _not_ remove the path, _iff_ | |
36487 | # second argument (suffix to remove) is given | |
36488 | basnam(){ | |
36489 | case ${D}# in | |
36490 | 1) | |
36491 | echo ${D}1 | sed 's/.*\///' | sed 's/.*\\//' | |
36492 | ;; | |
36493 | 2) | |
36494 | echo ${D}1 | sed 's/'${D}2'${D}//' | |
36495 | ;; | |
36496 | *) | |
36497 | echo "error in basnam ${D}*" | |
36498 | exit 8 | |
36499 | ;; | |
36500 | esac | |
36501 | } | |
36502 | ||
36503 | # Cleanup temporary files and output | |
36504 | CleanUp() { | |
36505 | cd ${D}curDir | |
36506 | for i in ${D}inputFiles ; do | |
36507 | case ${D}i in | |
36508 | *!) | |
36509 | rm -rf \`basnam ${D}i !\` | |
36510 | ;; | |
36511 | *) | |
36512 | ;; | |
36513 | esac | |
36514 | done | |
36515 | ||
36516 | # Kill result in case of failure as there is just to many stupid make/nmake | |
36517 | # things out there which doesn't do this. | |
36518 | if ${D}# -eq 0 ; then | |
36519 | rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile | |
36520 | fi | |
36521 | } | |
36522 | ||
36523 | # Print usage and exit script with rc=1. | |
36524 | PrintHelp() { | |
36525 | echo 'Usage: dllar -o[utput] output_file -i[mport] importlib_name' | |
36526 | echo ' -d[escription] "dll descrption" -cc "CC" -f[lags] "CFLAGS"' | |
36527 | echo ' -ord[inals] -exclude "symbol(s)"' | |
36528 | echo ' -libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}" -nocrt[dll] -nolxl[ite]' | |
36529 | echo ' *.o *.a' | |
36530 | echo '*> "output_file" should have no extension.' | |
36531 | echo ' If it has the .o, .a or .dll extension, it is automatically removed.' | |
36532 | echo ' The import library name is derived from this and is set to "name".a,' | |
36533 | echo ' unless overridden by -import' | |
36534 | echo '*> "importlib_name" should have no extension.' | |
36535 | echo ' If it has the .o, or .a extension, it is automatically removed.' | |
36536 | echo ' This name is used as the import library name and may be longer and' | |
36537 | echo ' more descriptive than the DLL name which has to follow the old ' | |
36538 | echo ' 8.3 convention of FAT.' | |
36539 | echo '*> "cc" is used to use another GCC executable. (default: gcc.exe)' | |
36540 | echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)' | |
36541 | echo ' These flags will be put at the start of GCC command line.' | |
36542 | echo '*> -ordinals tells dllar to export entries by ordinals. Be careful.' | |
36543 | echo '*> -exclude defines symbols which will not be exported. You can define' | |
36544 | echo ' multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".' | |
36545 | echo ' If the last character of a symbol is "*", all symbols beginning' | |
36546 | echo ' with the prefix before "*" will be exclude, (see _GLOBAL* above).' | |
36547 | echo '*> -libflags can be used to add INITGLOBAL/INITINSTANCE and/or' | |
36548 | echo ' TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.' | |
36549 | echo '*> -nocrtdll switch will disable linking the library against emx''s' | |
36550 | echo ' C runtime DLLs.' | |
36551 | echo '*> -nolxlite switch will disable running lxlite on the resulting DLL.' | |
36552 | echo '*> All other switches (for example -L./ or -lmylib) will be passed' | |
36553 | echo ' unchanged to GCC at the end of command line.' | |
36554 | echo '*> If you create a DLL from a library and you do not specify -o,' | |
36555 | echo ' the basename for DLL and import library will be set to library name,' | |
36556 | echo ' the initial library will be renamed to 'name'_s.a (_s for static)' | |
36557 | echo ' i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial' | |
36558 | echo ' library will be renamed into gcc_s.a.' | |
36559 | echo '--------' | |
36560 | echo 'Example:' | |
36561 | echo ' dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord' | |
36562 | echo ' -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"' | |
36563 | CleanUp | |
36564 | exit 1 | |
36565 | } | |
36566 | ||
36567 | # Execute a command. | |
36568 | # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script. | |
36569 | # @Uses Whatever CleanUp() uses. | |
36570 | doCommand() { | |
36571 | echo "${D}*" | |
36572 | eval ${D}* | |
36573 | rcCmd=${D}? | |
36574 | ||
36575 | if ${D}rcCmd -ne 0 ; then | |
36576 | echo "command failed, exit code="${D}rcCmd | |
36577 | CleanUp | |
36578 | exit ${D}rcCmd | |
36579 | fi | |
36580 | } | |
36581 | ||
36582 | # main routine | |
36583 | # setup globals | |
36584 | cmdLine=${D}* | |
36585 | outFile="" | |
36586 | outimpFile="" | |
36587 | inputFiles="" | |
36588 | description="" | |
36589 | CC=gcc.exe | |
36590 | CFLAGS="-s -Zcrtdll" | |
36591 | EXTRA_CFLAGS="" | |
36592 | EXPORT_BY_ORDINALS=0 | |
36593 | exclude_symbols="" | |
36594 | library_flags="" | |
36595 | curDir=\`pwd\` | |
36596 | curDirS=curDir | |
36597 | case ${D}curDirS in | |
36598 | */) | |
36599 | ;; | |
36600 | *) | |
36601 | curDirS=${D}{curDirS}"/" | |
36602 | ;; | |
36603 | esac | |
36604 | # Parse commandline | |
36605 | libsToLink=0 | |
36606 | while ${D}1 ; do | |
36607 | case ${D}1 in | |
36608 | -ord*) | |
36609 | EXPORT_BY_ORDINALS=1; | |
36610 | ;; | |
36611 | -o*) | |
36612 | shift | |
36613 | outFile=${D}1 | |
36614 | ;; | |
36615 | -i*) | |
36616 | shift | |
36617 | outimpFile=${D}1 | |
36618 | ;; | |
36619 | -d*) | |
36620 | shift | |
36621 | description=${D}1 | |
36622 | ;; | |
36623 | -f*) | |
36624 | shift | |
36625 | CFLAGS=${D}1 | |
36626 | ;; | |
36627 | -c*) | |
36628 | shift | |
36629 | CC=${D}1 | |
36630 | ;; | |
36631 | -h*) | |
36632 | PrintHelp | |
36633 | ;; | |
36634 | -ex*) | |
36635 | shift | |
36636 | exclude_symbols=${D}{exclude_symbols}${D}1" " | |
36637 | ;; | |
36638 | -libf*) | |
36639 | shift | |
36640 | library_flags=${D}{library_flags}${D}1" " | |
36641 | ;; | |
36642 | -nocrt*) | |
36643 | CFLAGS="-s" | |
36644 | ;; | |
36645 | -nolxl*) | |
36646 | flag_USE_LXLITE=0 | |
36647 | ;; | |
36648 | -* | /*) | |
36649 | case ${D}1 in | |
36650 | -L* | -l*) | |
36651 | libsToLink=1 | |
36652 | ;; | |
36653 | *) | |
36654 | ;; | |
36655 | esac | |
36656 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
36657 | ;; | |
36658 | *) | |
36659 | found=0; | |
36660 | if ${D}libsToLink -ne 0 ; then | |
36661 | EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1 | |
36662 | else | |
36663 | for file in ${D}1 ; do | |
36664 | if -f ${D}file ; then | |
36665 | inputFiles="${D}{inputFiles} ${D}file" | |
36666 | found=1 | |
36667 | fi | |
36668 | done | |
36669 | if ${D}found -eq 0 ; then | |
36670 | echo "ERROR: No file(s) found: "${D}1 | |
36671 | exit 8 | |
36672 | fi | |
36673 | fi | |
36674 | ;; | |
36675 | esac | |
36676 | shift | |
36677 | done # iterate cmdline words | |
36678 | ||
36679 | # | |
36680 | if -z "${D}inputFiles" ; then | |
36681 | echo "dllar: no input files" | |
36682 | PrintHelp | |
36683 | fi | |
36684 | ||
36685 | # Now extract all .o files from .a files | |
36686 | newInputFiles="" | |
36687 | for file in ${D}inputFiles ; do | |
36688 | case ${D}file in | |
36689 | *.a | *.lib) | |
36690 | case ${D}file in | |
36691 | *.a) | |
36692 | suffix=".a" | |
36693 | AR="ar" | |
36694 | ;; | |
36695 | *.lib) | |
36696 | suffix=".lib" | |
36697 | AR="emxomfar" | |
36698 | EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf" | |
36699 | ;; | |
36700 | *) | |
36701 | ;; | |
36702 | esac | |
36703 | dirname=\`basnam ${D}file ${D}suffix\`"_%" | |
36704 | mkdir ${D}dirname | |
36705 | if ${D}? -ne 0 ; then | |
36706 | echo "Failed to create subdirectory ./${D}dirname" | |
36707 | CleanUp | |
36708 | exit 8; | |
36709 | fi | |
36710 | # Append '!' to indicate archive | |
36711 | newInputFiles="${D}newInputFiles ${D}{dirname}!" | |
36712 | doCommand "cd ${D}dirname; ${D}AR x ../${D}file" | |
36713 | cd ${D}curDir | |
36714 | found=0; | |
36715 | for subfile in ${D}dirname/*.o* ; do | |
36716 | if -f ${D}subfile ; then | |
36717 | found=1 | |
36718 | if -s ${D}subfile ; then | |
36719 | # FIXME: This should be: is file size > 32 byte, _not_ > 0! | |
36720 | newInputFiles="${D}newInputFiles ${D}subfile" | |
36721 | fi | |
36722 | fi | |
36723 | done | |
36724 | if ${D}found -eq 0 ; then | |
36725 | echo "WARNING: there are no files in archive \'${D}file\'" | |
36726 | fi | |
36727 | ;; | |
36728 | *) | |
36729 | newInputFiles="${D}{newInputFiles} ${D}file" | |
36730 | ;; | |
36731 | esac | |
36732 | done | |
36733 | inputFiles="${D}newInputFiles" | |
36734 | ||
36735 | # Output filename(s). | |
36736 | do_backup=0; | |
36737 | if -z ${D}outFile ; then | |
36738 | do_backup=1; | |
36739 | set outFile ${D}inputFiles; outFile=${D}2 | |
36740 | fi | |
36741 | ||
36742 | # If it is an archive, remove the '!' and the '_%' suffixes | |
36743 | case ${D}outFile in | |
36744 | *_%!) | |
36745 | outFile=\`basnam ${D}outFile _%!\` | |
36746 | ;; | |
36747 | *) | |
36748 | ;; | |
36749 | esac | |
36750 | case ${D}outFile in | |
36751 | *.dll) | |
36752 | outFile=\`basnam ${D}outFile .dll\` | |
36753 | ;; | |
36754 | *.DLL) | |
36755 | outFile=\`basnam ${D}outFile .DLL\` | |
36756 | ;; | |
36757 | *.o) | |
36758 | outFile=\`basnam ${D}outFile .o\` | |
36759 | ;; | |
36760 | *.obj) | |
36761 | outFile=\`basnam ${D}outFile .obj\` | |
36762 | ;; | |
36763 | *.a) | |
36764 | outFile=\`basnam ${D}outFile .a\` | |
36765 | ;; | |
36766 | *.lib) | |
36767 | outFile=\`basnam ${D}outFile .lib\` | |
36768 | ;; | |
36769 | *) | |
36770 | ;; | |
36771 | esac | |
36772 | case ${D}outimpFile in | |
36773 | *.a) | |
36774 | outimpFile=\`basnam ${D}outimpFile .a\` | |
36775 | ;; | |
36776 | *.lib) | |
36777 | outimpFile=\`basnam ${D}outimpFile .lib\` | |
36778 | ;; | |
36779 | *) | |
36780 | ;; | |
36781 | esac | |
36782 | if -z ${D}outimpFile ; then | |
36783 | outimpFile=${D}outFile | |
36784 | fi | |
36785 | defFile="${D}{outFile}.def" | |
36786 | arcFile="${D}{outimpFile}.a" | |
36787 | arcFile2="${D}{outimpFile}.lib" | |
36788 | dllFile="${D}outFile" | |
36789 | # Add suffix to dllFile later, first we need a version to use as | |
36790 | # name in .def file. | |
36791 | ||
36792 | if ${D}do_backup -ne 0 ; then | |
36793 | if -f ${D}arcFile ; then | |
36794 | doCommand "mv ${D}arcFile ${D}{outFile}_s.a" | |
36795 | fi | |
36796 | if -f ${D}arcFile2 ; then | |
36797 | doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib" | |
36798 | fi | |
36799 | fi | |
36800 | ||
36801 | # Extract public symbols from all the object files. | |
36802 | tmpdefFile=${D}{defFile}_% | |
36803 | rm -f ${D}tmpdefFile | |
36804 | for file in ${D}inputFiles ; do | |
36805 | case ${D}file in | |
36806 | *!) | |
36807 | ;; | |
36808 | *) | |
36809 | doCommand "emxexp -u ${D}file >> ${D}tmpdefFile" | |
36810 | ;; | |
36811 | esac | |
36812 | done | |
36813 | ||
36814 | # Create the def file. | |
36815 | rm -f ${D}defFile | |
36816 | echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile | |
36817 | dllFile="${D}dllFile.dll" | |
36818 | if -n ${D}description ; then | |
36819 | echo "DESCRIPTION \"${D}{description}\"" >> ${D}defFile | |
36820 | fi | |
36821 | echo "EXPORTS" >> ${D}defFile | |
36822 | ||
36823 | doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%" | |
36824 | grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile | |
36825 | ||
36826 | # Checks if the export is ok or not. | |
36827 | for word in ${D}exclude_symbols; do | |
36828 | grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}% | |
36829 | mv ${D}{tmpdefFile}% ${D}tmpdefFile | |
36830 | done | |
36831 | ||
36832 | ||
36833 | if ${D}EXPORT_BY_ORDINALS -ne 0 ; then | |
36834 | sed "=" < ${D}tmpdefFile | \ | |
36835 | sed ' | |
36836 | N | |
36837 | : loop | |
36838 | s/^\(0-9\+\)\(^;*\)\(;.*\)\?/\2 @\1 NONAME/ | |
36839 | t loop | |
36840 | ' > ${D}{tmpdefFile}% | |
36841 | grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile | |
36842 | else | |
36843 | rm -f ${D}{tmpdefFile}% | |
36844 | fi | |
36845 | cat ${D}tmpdefFile >> ${D}defFile | |
36846 | rm -f ${D}tmpdefFile | |
36847 | ||
36848 | # Do linking, create implib, and apply lxlite. | |
36849 | gccCmdl=""; | |
36850 | for file in ${D}inputFiles ; do | |
36851 | case ${D}file in | |
36852 | *!) | |
36853 | ;; | |
36854 | *) | |
36855 | gccCmdl="${D}gccCmdl ${D}file" | |
36856 | ;; | |
36857 | esac | |
36858 | done | |
36859 | doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS" | |
36860 | touch "${D}{outFile}.dll" | |
36861 | ||
36862 | doCommand "emximp -o ${D}arcFile ${D}defFile" | |
36863 | if ${D}flag_USE_LXLITE -ne 0 ; then | |
36864 | add_flags=""; | |
36865 | if ${D}EXPORT_BY_ORDINALS -ne 0 ; then | |
36866 | add_flags="-ynd" | |
36867 | fi | |
36868 | doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile" | |
36869 | fi | |
36870 | doCommand "emxomf -s -l ${D}arcFile" | |
36871 | ||
36872 | # Successful exit. | |
36873 | CleanUp 1 | |
36874 | exit 0 | |
36875 | EOF | |
36876 | ||
36877 | chmod +x dllar.sh | |
a848cd7e SC |
36878 | ;; |
36879 | ||
36880 | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \ | |
36881 | *-*-sunos4* | \ | |
36882 | *-*-osf* | \ | |
36883 | *-*-dgux5* | \ | |
36884 | *-*-sysv5* ) | |
36885 | ;; | |
36886 | ||
36887 | *) | |
36888 | { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5 | |
36889 | echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;} | |
36890 | { (exit 1); exit 1; }; } | |
36891 | esac | |
36892 | ||
36893 | if test "x$SHARED_LD_MODULE_CC" = "x" ; then | |
36894 | SHARED_LD_MODULE_CC="$SHARED_LD_CC" | |
36895 | fi | |
36896 | if test "x$SHARED_LD_MODULE_CXX" = "x" ; then | |
36897 | SHARED_LD_MODULE_CXX="$SHARED_LD_CXX" | |
36898 | fi | |
36899 | ||
36900 | ||
36901 | ||
36902 | ||
36903 | ||
36904 | ||
36905 | ||
36906 | ||
36907 | USE_SOVERSION=0 | |
36908 | USE_SOVERLINUX=0 | |
36909 | USE_SOVERSOLARIS=0 | |
36910 | USE_SOSYMLINKS=0 | |
36911 | USE_MACVERSION=0 | |
36912 | SONAME_FLAG= | |
36913 | ||
36914 | case "${BAKEFILE_HOST}" in | |
36915 | *-*-linux* ) | |
36916 | SONAME_FLAG="-Wl,-soname," | |
36917 | USE_SOVERSION=1 | |
36918 | USE_SOVERLINUX=1 | |
36919 | USE_SOSYMLINKS=1 | |
36920 | ;; | |
36921 | ||
36922 | *-*-solaris2* ) | |
36923 | SONAME_FLAG="-h " | |
36924 | USE_SOVERSION=1 | |
36925 | USE_SOVERSOLARIS=1 | |
36926 | USE_SOSYMLINKS=1 | |
36927 | ;; | |
36928 | ||
36929 | *-*-darwin* ) | |
36930 | USE_MACVERSION=1 | |
36931 | USE_SOVERSION=1 | |
36932 | USE_SOSYMLINKS=1 | |
36933 | ;; | |
36934 | esac | |
36935 | ||
36936 | ||
36937 | ||
36938 | ||
36939 | ||
36940 | ||
36941 | ||
36942 | ||
36943 | ||
36944 | echo "$as_me:$LINENO: checking for dependency tracking method" >&5 | |
36945 | echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6 | |
36946 | DEPS_TRACKING=0 | |
36947 | ||
36948 | if test "x$GCC" = "xyes"; then | |
36949 | DEPSMODE=gcc | |
36950 | DEPS_TRACKING=1 | |
36951 | case "${BAKEFILE_HOST}" in | |
36952 | powerpc-*-darwin* ) | |
36953 | DEPSFLAG_GCC="-no-cpp-precomp -MMD" | |
36954 | ;; | |
36955 | * ) | |
36956 | DEPSFLAG_GCC="-MMD" | |
36957 | ;; | |
36958 | esac | |
36959 | echo "$as_me:$LINENO: result: gcc" >&5 | |
36960 | echo "${ECHO_T}gcc" >&6 | |
36961 | else | |
36962 | echo "$as_me:$LINENO: result: none" >&5 | |
36963 | echo "${ECHO_T}none" >&6 | |
36964 | fi | |
36965 | ||
36966 | if test $DEPS_TRACKING = 1 ; then | |
473276a9 VS |
36967 | |
36968 | D='$' | |
36969 | cat <<EOF >bk-deps | |
a848cd7e SC |
36970 | #!/bin/sh |
36971 | ||
36972 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
36973 | # script. It is used to track C/C++ files dependencies in portable way. | |
36974 | # | |
36975 | # Permission is given to use this file in any way. | |
36976 | ||
473276a9 | 36977 | DEPSMODE=${DEPSMODE} |
a848cd7e | 36978 | DEPSDIR=.deps |
473276a9 | 36979 | DEPSFLAG_GCC="${DEPSFLAG_GCC}" |
a848cd7e | 36980 | |
473276a9 | 36981 | mkdir -p ${D}DEPSDIR |
a848cd7e | 36982 | |
473276a9 VS |
36983 | if test ${D}DEPSMODE = gcc ; then |
36984 | ${D}* ${D}{DEPSFLAG_GCC} | |
36985 | status=${D}? | |
36986 | if test ${D}{status} != 0 ; then | |
36987 | exit ${D}{status} | |
a848cd7e SC |
36988 | fi |
36989 | # move created file to the location we want it in: | |
473276a9 VS |
36990 | while test ${D}# -gt 0; do |
36991 | case "${D}1" in | |
a848cd7e SC |
36992 | -o ) |
36993 | shift | |
473276a9 | 36994 | objfile=${D}1 |
a848cd7e SC |
36995 | ;; |
36996 | -* ) | |
36997 | ;; | |
36998 | * ) | |
473276a9 | 36999 | srcfile=${D}1 |
a848cd7e SC |
37000 | ;; |
37001 | esac | |
37002 | shift | |
37003 | done | |
473276a9 VS |
37004 | depfile=\`basename ${D}srcfile | sed -e 's/\..*${D}/.d/g'\` |
37005 | depobjname=\`echo ${D}depfile |sed -e 's/\.d/.o/g'\` | |
37006 | if test -f ${D}depfile ; then | |
37007 | sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
37008 | rm -f ${D}depfile | |
a848cd7e | 37009 | else |
473276a9 VS |
37010 | depfile=\`basename ${D}objfile | sed -e 's/\..*${D}/.d/g'\` |
37011 | if test -f ${D}depfile ; then | |
37012 | sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d | |
37013 | rm -f ${D}depfile | |
a848cd7e SC |
37014 | fi |
37015 | fi | |
37016 | exit 0 | |
37017 | else | |
473276a9 VS |
37018 | ${D}* |
37019 | exit ${D}? | |
a848cd7e SC |
37020 | fi |
37021 | EOF | |
473276a9 | 37022 | |
a848cd7e SC |
37023 | chmod +x bk-deps |
37024 | fi | |
37025 | ||
37026 | ||
37027 | ||
37028 | ||
37029 | RESCOMP= | |
37030 | SETFILE= | |
37031 | ||
37032 | case ${BAKEFILE_HOST} in | |
37033 | *-*-cygwin* | *-*-mingw32* ) | |
37034 | if test "$build" != "$host" ; then | |
37035 | RESCOMP=$host_alias-windres | |
37036 | else | |
37037 | # Extract the first word of "windres", so it can be a program name with args. | |
37038 | set dummy windres; ac_word=$2 | |
37039 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37040 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37041 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
37042 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37043 | else | |
37044 | if test -n "$RESCOMP"; then | |
37045 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
37046 | else | |
37047 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37048 | for as_dir in $PATH | |
37049 | do | |
37050 | IFS=$as_save_IFS | |
37051 | test -z "$as_dir" && as_dir=. | |
37052 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37053 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37054 | ac_cv_prog_RESCOMP="windres" | |
37055 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37056 | break 2 | |
37057 | fi | |
37058 | done | |
37059 | done | |
37060 | ||
37061 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="windres" | |
37062 | fi | |
37063 | fi | |
37064 | RESCOMP=$ac_cv_prog_RESCOMP | |
37065 | if test -n "$RESCOMP"; then | |
37066 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
37067 | echo "${ECHO_T}$RESCOMP" >&6 | |
37068 | else | |
37069 | echo "$as_me:$LINENO: result: no" >&5 | |
37070 | echo "${ECHO_T}no" >&6 | |
37071 | fi | |
37072 | ||
37073 | fi | |
37074 | ;; | |
37075 | ||
37076 | *-*-darwin* ) | |
37077 | # Extract the first word of "Rez", so it can be a program name with args. | |
37078 | set dummy Rez; ac_word=$2 | |
37079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37081 | if test "${ac_cv_prog_RESCOMP+set}" = set; then | |
37082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37083 | else | |
37084 | if test -n "$RESCOMP"; then | |
37085 | ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test. | |
37086 | else | |
37087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37088 | for as_dir in $PATH | |
37089 | do | |
37090 | IFS=$as_save_IFS | |
37091 | test -z "$as_dir" && as_dir=. | |
37092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37093 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37094 | ac_cv_prog_RESCOMP="Rez" | |
37095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37096 | break 2 | |
37097 | fi | |
37098 | done | |
37099 | done | |
37100 | ||
37101 | test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez" | |
37102 | fi | |
37103 | fi | |
37104 | RESCOMP=$ac_cv_prog_RESCOMP | |
37105 | if test -n "$RESCOMP"; then | |
37106 | echo "$as_me:$LINENO: result: $RESCOMP" >&5 | |
37107 | echo "${ECHO_T}$RESCOMP" >&6 | |
37108 | else | |
37109 | echo "$as_me:$LINENO: result: no" >&5 | |
37110 | echo "${ECHO_T}no" >&6 | |
37111 | fi | |
37112 | ||
37113 | # Extract the first word of "SetFile", so it can be a program name with args. | |
37114 | set dummy SetFile; ac_word=$2 | |
37115 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
37116 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
37117 | if test "${ac_cv_prog_SETFILE+set}" = set; then | |
37118 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
37119 | else | |
37120 | if test -n "$SETFILE"; then | |
37121 | ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test. | |
37122 | else | |
37123 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
37124 | for as_dir in $PATH | |
37125 | do | |
37126 | IFS=$as_save_IFS | |
37127 | test -z "$as_dir" && as_dir=. | |
37128 | for ac_exec_ext in '' $ac_executable_extensions; do | |
37129 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
37130 | ac_cv_prog_SETFILE="SetFile" | |
37131 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
37132 | break 2 | |
37133 | fi | |
37134 | done | |
37135 | done | |
37136 | ||
37137 | test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile" | |
37138 | fi | |
37139 | fi | |
37140 | SETFILE=$ac_cv_prog_SETFILE | |
37141 | if test -n "$SETFILE"; then | |
37142 | echo "$as_me:$LINENO: result: $SETFILE" >&5 | |
37143 | echo "${ECHO_T}$SETFILE" >&6 | |
37144 | else | |
37145 | echo "$as_me:$LINENO: result: no" >&5 | |
37146 | echo "${ECHO_T}no" >&6 | |
37147 | fi | |
37148 | ||
37149 | ;; | |
37150 | esac | |
37151 | ||
37152 | ||
37153 | ||
37154 | ||
37155 | ||
37156 | ||
dcc1b6ad VS |
37157 | BAKEFILE_AUTOCONF_INC_M4_VERSION="0.1.4" |
37158 | ||
37159 | ||
a848cd7e | 37160 | |
a848cd7e SC |
37161 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. |
37162 | if test "${enable_precomp_headers+set}" = set; then | |
37163 | enableval="$enable_precomp_headers" | |
37164 | bk_use_pch="$enableval" | |
37165 | fi; | |
37166 | ||
37167 | GCC_PCH=0 | |
37168 | ||
37169 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
37170 | if test "x$GCC" = "xyes"; then | |
37171 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
37172 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
37173 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 37174 | #line $LINENO "configure" |
a848cd7e SC |
37175 | /* confdefs.h. */ |
37176 | _ACEOF | |
37177 | cat confdefs.h >>conftest.$ac_ext | |
37178 | cat >>conftest.$ac_ext <<_ACEOF | |
37179 | /* end confdefs.h. */ | |
37180 | ||
37181 | int | |
37182 | main () | |
37183 | { | |
37184 | ||
37185 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
37186 | #error "no pch support" | |
37187 | #endif | |
37188 | #if (__GNUC__ < 3) | |
37189 | #error "no pch support" | |
37190 | #endif | |
37191 | #if (__GNUC__ == 3) && \ | |
37192 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
37193 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
37194 | #error "no pch support" | |
37195 | #endif | |
37196 | ||
37197 | ; | |
37198 | return 0; | |
37199 | } | |
37200 | _ACEOF | |
37201 | rm -f conftest.$ac_objext | |
37202 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 37203 | (eval $ac_compile) 2>&5 |
a848cd7e | 37204 | ac_status=$? |
a848cd7e SC |
37205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37206 | (exit $ac_status); } && | |
8a7b1113 | 37207 | { ac_try='test -s conftest.$ac_objext' |
a848cd7e SC |
37208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37209 | (eval $ac_try) 2>&5 | |
37210 | ac_status=$? | |
37211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37212 | (exit $ac_status); }; }; then | |
37213 | ||
37214 | echo "$as_me:$LINENO: result: yes" >&5 | |
37215 | echo "${ECHO_T}yes" >&6 | |
37216 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
37217 | GCC_PCH=1 | |
37218 | ||
37219 | else | |
37220 | echo "$as_me: failed program was:" >&5 | |
37221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37222 | ||
37223 | ||
37224 | echo "$as_me:$LINENO: result: no" >&5 | |
37225 | echo "${ECHO_T}no" >&6 | |
37226 | ||
37227 | fi | |
8a7b1113 | 37228 | rm -f conftest.$ac_objext conftest.$ac_ext |
a848cd7e SC |
37229 | if test $GCC_PCH = 1 ; then |
37230 | cat <<EOF >bk-make-pch | |
37231 | #!/bin/sh | |
37232 | ||
37233 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
37234 | # script. It is used to generated precompiled headers. | |
37235 | # | |
37236 | # Permission is given to use this file in any way. | |
37237 | ||
37238 | outfile="\${1}" | |
37239 | header="\${2}" | |
37240 | shift | |
37241 | shift | |
37242 | ||
37243 | compiler= | |
37244 | headerfile= | |
37245 | while test \${#} -gt 0; do | |
37246 | case "\${1}" in | |
37247 | -I* ) | |
37248 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
37249 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
37250 | headerfile="\${incdir}/\${header}" | |
37251 | fi | |
37252 | ;; | |
37253 | esac | |
37254 | compiler="\${compiler} \${1}" | |
37255 | shift | |
37256 | done | |
37257 | ||
37258 | if test "x\${headerfile}" = "x" ; then | |
37259 | echo "error: can't find header \${header} in include paths" >2 | |
37260 | else | |
37261 | if test -f \${outfile} ; then | |
37262 | rm -f \${outfile} | |
37263 | else | |
37264 | mkdir -p \`dirname \${outfile}\` | |
37265 | fi | |
37266 | depsfile=".deps/\`basename \${outfile}\`.d" | |
37267 | mkdir -p .deps | |
37268 | # can do this because gcc is >= 3.4: | |
37269 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
37270 | exit \${?} | |
37271 | fi | |
37272 | EOF | |
37273 | chmod +x bk-make-pch | |
37274 | fi | |
37275 | fi | |
37276 | fi | |
37277 | ||
37278 | ||
37279 | ||
37280 | ||
37281 | ||
dcc1b6ad VS |
37282 | |
37283 | ||
37284 | # Check whether --enable-precomp-headers or --disable-precomp-headers was given. | |
37285 | if test "${enable_precomp_headers+set}" = set; then | |
37286 | enableval="$enable_precomp_headers" | |
37287 | bk_use_pch="$enableval" | |
37288 | fi; | |
37289 | ||
37290 | GCC_PCH=0 | |
37291 | ||
37292 | if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then | |
37293 | if test "x$GCC" = "xyes"; then | |
37294 | echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5 | |
37295 | echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6 | |
37296 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 37297 | #line $LINENO "configure" |
dcc1b6ad VS |
37298 | /* confdefs.h. */ |
37299 | _ACEOF | |
37300 | cat confdefs.h >>conftest.$ac_ext | |
37301 | cat >>conftest.$ac_ext <<_ACEOF | |
37302 | /* end confdefs.h. */ | |
37303 | ||
37304 | int | |
37305 | main () | |
37306 | { | |
37307 | ||
37308 | #if !defined(__GNUC__) || !defined(__GNUC_MINOR__) | |
37309 | #error "no pch support" | |
37310 | #endif | |
37311 | #if (__GNUC__ < 3) | |
37312 | #error "no pch support" | |
37313 | #endif | |
37314 | #if (__GNUC__ == 3) && \ | |
37315 | ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \ | |
37316 | ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) | |
37317 | #error "no pch support" | |
37318 | #endif | |
37319 | ||
37320 | ; | |
37321 | return 0; | |
37322 | } | |
37323 | _ACEOF | |
37324 | rm -f conftest.$ac_objext | |
37325 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 37326 | (eval $ac_compile) 2>&5 |
dcc1b6ad | 37327 | ac_status=$? |
dcc1b6ad VS |
37328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
37329 | (exit $ac_status); } && | |
8a7b1113 | 37330 | { ac_try='test -s conftest.$ac_objext' |
dcc1b6ad VS |
37331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
37332 | (eval $ac_try) 2>&5 | |
37333 | ac_status=$? | |
37334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
37335 | (exit $ac_status); }; }; then | |
37336 | ||
37337 | echo "$as_me:$LINENO: result: yes" >&5 | |
37338 | echo "${ECHO_T}yes" >&6 | |
37339 | CPPFLAGS="-fpch-deps $CPPFLAGS" | |
37340 | GCC_PCH=1 | |
37341 | ||
37342 | else | |
37343 | echo "$as_me: failed program was:" >&5 | |
37344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
37345 | ||
37346 | ||
37347 | echo "$as_me:$LINENO: result: no" >&5 | |
37348 | echo "${ECHO_T}no" >&6 | |
37349 | ||
37350 | fi | |
8a7b1113 | 37351 | rm -f conftest.$ac_objext conftest.$ac_ext |
dcc1b6ad VS |
37352 | if test $GCC_PCH = 1 ; then |
37353 | cat <<EOF >bk-make-pch | |
37354 | #!/bin/sh | |
37355 | ||
37356 | # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf | |
37357 | # script. It is used to generated precompiled headers. | |
37358 | # | |
37359 | # Permission is given to use this file in any way. | |
37360 | ||
37361 | outfile="\${1}" | |
37362 | header="\${2}" | |
37363 | shift | |
37364 | shift | |
37365 | ||
37366 | compiler= | |
37367 | headerfile= | |
37368 | while test \${#} -gt 0; do | |
37369 | case "\${1}" in | |
37370 | -I* ) | |
37371 | incdir=\`echo \${1} | sed -e 's/-I\(.*\)/\1/g'\` | |
37372 | if test "x\${headerfile}" = "x" -a -f "\${incdir}/\${header}" ; then | |
37373 | headerfile="\${incdir}/\${header}" | |
37374 | fi | |
37375 | ;; | |
37376 | esac | |
37377 | compiler="\${compiler} \${1}" | |
37378 | shift | |
37379 | done | |
37380 | ||
37381 | if test "x\${headerfile}" = "x" ; then | |
37382 | echo "error: can't find header \${header} in include paths" >2 | |
37383 | else | |
37384 | if test -f \${outfile} ; then | |
37385 | rm -f \${outfile} | |
37386 | else | |
37387 | mkdir -p \`dirname \${outfile}\` | |
37388 | fi | |
37389 | depsfile=".deps/\`basename \${outfile}\`.d" | |
37390 | mkdir -p .deps | |
37391 | # can do this because gcc is >= 3.4: | |
37392 | \${compiler} -o \${outfile} -MMD -MF "\${depsfile}" "\${headerfile}" | |
37393 | exit \${?} | |
37394 | fi | |
37395 | EOF | |
37396 | chmod +x bk-make-pch | |
37397 | fi | |
37398 | fi | |
37399 | fi | |
37400 | ||
37401 | ||
37402 | ||
37403 | ||
a848cd7e SC |
37404 | COND_BUILD_DEBUG="#" |
37405 | if test "x$BUILD" = "xdebug" ; then | |
37406 | COND_BUILD_DEBUG="" | |
37407 | fi | |
37408 | ||
37409 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
37410 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
37411 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
37412 | fi | |
37413 | ||
37414 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
37415 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
37416 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
37417 | fi | |
37418 | ||
37419 | COND_BUILD_DEBUG_UNICODE_0="#" | |
37420 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
37421 | COND_BUILD_DEBUG_UNICODE_0="" | |
37422 | fi | |
37423 | ||
37424 | COND_BUILD_DEBUG_UNICODE_1="#" | |
37425 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
37426 | COND_BUILD_DEBUG_UNICODE_1="" | |
37427 | fi | |
37428 | ||
37429 | COND_BUILD_RELEASE="#" | |
37430 | if test "x$BUILD" = "xrelease" ; then | |
37431 | COND_BUILD_RELEASE="" | |
37432 | fi | |
37433 | ||
37434 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
37435 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
37436 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
37437 | fi | |
37438 | ||
37439 | COND_BUILD_RELEASE_UNICODE_0="#" | |
37440 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
37441 | COND_BUILD_RELEASE_UNICODE_0="" | |
37442 | fi | |
37443 | ||
37444 | COND_BUILD_RELEASE_UNICODE_1="#" | |
37445 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
37446 | COND_BUILD_RELEASE_UNICODE_1="" | |
37447 | fi | |
37448 | ||
37449 | COND_DEBUG_FLAG_1="#" | |
37450 | if test "x$DEBUG_FLAG" = "x1" ; then | |
37451 | COND_DEBUG_FLAG_1="" | |
37452 | fi | |
37453 | ||
37454 | COND_DEBUG_INFO_0="#" | |
37455 | if test "x$DEBUG_INFO" = "x0" ; then | |
37456 | COND_DEBUG_INFO_0="" | |
37457 | fi | |
37458 | ||
37459 | COND_DEBUG_INFO_1="#" | |
37460 | if test "x$DEBUG_INFO" = "x1" ; then | |
37461 | COND_DEBUG_INFO_1="" | |
37462 | fi | |
37463 | ||
37464 | COND_DEPS_TRACKING_0="#" | |
37465 | if test "x$DEPS_TRACKING" = "x0" ; then | |
37466 | COND_DEPS_TRACKING_0="" | |
37467 | fi | |
37468 | ||
37469 | COND_DEPS_TRACKING_1="#" | |
37470 | if test "x$DEPS_TRACKING" = "x1" ; then | |
37471 | COND_DEPS_TRACKING_1="" | |
37472 | fi | |
37473 | ||
37474 | COND_GCC_PCH_1="#" | |
37475 | if test "x$GCC_PCH" = "x1" ; then | |
37476 | COND_GCC_PCH_1="" | |
37477 | fi | |
37478 | ||
37479 | COND_MONOLITHIC_0="#" | |
37480 | if test "x$MONOLITHIC" = "x0" ; then | |
37481 | COND_MONOLITHIC_0="" | |
37482 | fi | |
37483 | ||
37484 | COND_MONOLITHIC_0_SHARED_0="#" | |
37485 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
37486 | COND_MONOLITHIC_0_SHARED_0="" | |
37487 | fi | |
37488 | ||
37489 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
37490 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
37491 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
37492 | fi | |
37493 | ||
37494 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
37495 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
37496 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
37497 | fi | |
37498 | ||
37499 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
37500 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
37501 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
37502 | fi | |
37503 | ||
37504 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
37505 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
37506 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
37507 | fi | |
37508 | ||
37509 | COND_MONOLITHIC_0_SHARED_1="#" | |
37510 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
37511 | COND_MONOLITHIC_0_SHARED_1="" | |
37512 | fi | |
37513 | ||
37514 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
37515 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
37516 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
37517 | fi | |
37518 | ||
37519 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
37520 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
37521 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
37522 | fi | |
37523 | ||
37524 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
37525 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
37526 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
37527 | fi | |
37528 | ||
37529 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
37530 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
37531 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
37532 | fi | |
37533 | ||
37534 | COND_MONOLITHIC_0_USE_ODBC_1="#" | |
37535 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
37536 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
37537 | fi | |
37538 | ||
37539 | COND_MONOLITHIC_1="#" | |
37540 | if test "x$MONOLITHIC" = "x1" ; then | |
37541 | COND_MONOLITHIC_1="" | |
37542 | fi | |
37543 | ||
37544 | COND_MONOLITHIC_1_SHARED_0="#" | |
37545 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
37546 | COND_MONOLITHIC_1_SHARED_0="" | |
37547 | fi | |
37548 | ||
37549 | COND_MONOLITHIC_1_SHARED_1="#" | |
37550 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
37551 | COND_MONOLITHIC_1_SHARED_1="" | |
37552 | fi | |
37553 | ||
37554 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
37555 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
37556 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
37557 | fi | |
37558 | ||
37559 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
37560 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
37561 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
37562 | fi | |
37563 | ||
37564 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
37565 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
37566 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
37567 | fi | |
37568 | ||
37569 | COND_PLATFORM_MACOSX_1="#" | |
37570 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
37571 | COND_PLATFORM_MACOSX_1="" | |
37572 | fi | |
37573 | ||
37574 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
37575 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
37576 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
37577 | fi | |
37578 | ||
37579 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
37580 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
37581 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
37582 | fi | |
37583 | ||
37584 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
37585 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
37586 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
37587 | fi | |
37588 | ||
37589 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" | |
37590 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
37591 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
37592 | fi | |
37593 | ||
37594 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
37595 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
37596 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
37597 | fi | |
37598 | ||
37599 | COND_PLATFORM_MAC_1="#" | |
37600 | if test "x$PLATFORM_MAC" = "x1" ; then | |
37601 | COND_PLATFORM_MAC_1="" | |
37602 | fi | |
37603 | ||
37604 | COND_PLATFORM_OS2_1="#" | |
37605 | if test "x$PLATFORM_OS2" = "x1" ; then | |
37606 | COND_PLATFORM_OS2_1="" | |
37607 | fi | |
37608 | ||
37609 | COND_PLATFORM_UNIX_0="#" | |
37610 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
37611 | COND_PLATFORM_UNIX_0="" | |
37612 | fi | |
37613 | ||
37614 | COND_PLATFORM_UNIX_1="#" | |
37615 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
37616 | COND_PLATFORM_UNIX_1="" | |
37617 | fi | |
37618 | ||
37619 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
37620 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
37621 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
37622 | fi | |
37623 | ||
37624 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
37625 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
37626 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
37627 | fi | |
37628 | ||
37629 | COND_PLATFORM_WIN32_0="#" | |
37630 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
37631 | COND_PLATFORM_WIN32_0="" | |
37632 | fi | |
37633 | ||
37634 | COND_PLATFORM_WIN32_1="#" | |
37635 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
37636 | COND_PLATFORM_WIN32_1="" | |
37637 | fi | |
37638 | ||
37639 | COND_SHARED_0="#" | |
37640 | if test "x$SHARED" = "x0" ; then | |
37641 | COND_SHARED_0="" | |
37642 | fi | |
37643 | ||
37644 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
37645 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
37646 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
37647 | fi | |
37648 | ||
37649 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
37650 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
37651 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
37652 | fi | |
37653 | ||
37654 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
37655 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
37656 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
37657 | fi | |
37658 | ||
37659 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
37660 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
37661 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
37662 | fi | |
37663 | ||
37664 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
37665 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
37666 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
37667 | fi | |
37668 | ||
37669 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
37670 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
37671 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
37672 | fi | |
37673 | ||
37674 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
37675 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
37676 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
37677 | fi | |
37678 | ||
37679 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
37680 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
37681 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
37682 | fi | |
37683 | ||
37684 | COND_SHARED_1="#" | |
37685 | if test "x$SHARED" = "x1" ; then | |
37686 | COND_SHARED_1="" | |
37687 | fi | |
37688 | ||
37689 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
37690 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
37691 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
37692 | fi | |
37693 | ||
37694 | COND_TOOLKIT_COCOA="#" | |
37695 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
37696 | COND_TOOLKIT_COCOA="" | |
37697 | fi | |
37698 | ||
37699 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
37700 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
37701 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
37702 | fi | |
37703 | ||
37704 | COND_TOOLKIT_GTK="#" | |
37705 | if test "x$TOOLKIT" = "xGTK" ; then | |
37706 | COND_TOOLKIT_GTK="" | |
37707 | fi | |
37708 | ||
37709 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
37710 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
37711 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
37712 | fi | |
37713 | ||
37714 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
37715 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
37716 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
37717 | fi | |
37718 | ||
37719 | COND_TOOLKIT_MAC="#" | |
37720 | if test "x$TOOLKIT" = "xMAC" ; then | |
37721 | COND_TOOLKIT_MAC="" | |
37722 | fi | |
37723 | ||
37724 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
37725 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
37726 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
37727 | fi | |
37728 | ||
37729 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
37730 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
37731 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
37732 | fi | |
37733 | ||
37734 | COND_TOOLKIT_MGL="#" | |
37735 | if test "x$TOOLKIT" = "xMGL" ; then | |
37736 | COND_TOOLKIT_MGL="" | |
37737 | fi | |
37738 | ||
37739 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
37740 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
37741 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
37742 | fi | |
37743 | ||
37744 | COND_TOOLKIT_MOTIF="#" | |
37745 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
37746 | COND_TOOLKIT_MOTIF="" | |
37747 | fi | |
37748 | ||
37749 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
37750 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
37751 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
37752 | fi | |
37753 | ||
37754 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
37755 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
37756 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
37757 | fi | |
37758 | ||
37759 | COND_TOOLKIT_MSW="#" | |
37760 | if test "x$TOOLKIT" = "xMSW" ; then | |
37761 | COND_TOOLKIT_MSW="" | |
37762 | fi | |
37763 | ||
37764 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
37765 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
37766 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
37767 | fi | |
37768 | ||
37769 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
37770 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
37771 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
37772 | fi | |
37773 | ||
37774 | COND_TOOLKIT_PM="#" | |
37775 | if test "x$TOOLKIT" = "xPM" ; then | |
37776 | COND_TOOLKIT_PM="" | |
37777 | fi | |
37778 | ||
37779 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
37780 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
37781 | COND_TOOLKIT_PM_USE_GUI_1="" | |
37782 | fi | |
37783 | ||
37784 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
37785 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
37786 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
37787 | fi | |
37788 | ||
3fd9c298 DE |
37789 | COND_TOOLKIT_WINCE="#" |
37790 | if test "x$TOOLKIT" = "xWINCE" ; then | |
37791 | COND_TOOLKIT_WINCE="" | |
37792 | fi | |
37793 | ||
37794 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
37795 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
37796 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
37797 | fi | |
37798 | ||
37799 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
37800 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
37801 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
37802 | fi | |
37803 | ||
a848cd7e SC |
37804 | COND_TOOLKIT_X11="#" |
37805 | if test "x$TOOLKIT" = "xX11" ; then | |
37806 | COND_TOOLKIT_X11="" | |
37807 | fi | |
37808 | ||
37809 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
37810 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
37811 | COND_TOOLKIT_X11_USE_GUI_1="" | |
37812 | fi | |
37813 | ||
37814 | COND_UNICODE_1="#" | |
37815 | if test "x$UNICODE" = "x1" ; then | |
37816 | COND_UNICODE_1="" | |
37817 | fi | |
37818 | ||
37819 | COND_USE_EXCEPTIONS_0="#" | |
37820 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
37821 | COND_USE_EXCEPTIONS_0="" | |
37822 | fi | |
37823 | ||
37824 | COND_USE_EXCEPTIONS_1="#" | |
37825 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
37826 | COND_USE_EXCEPTIONS_1="" | |
37827 | fi | |
37828 | ||
37829 | COND_USE_GUI_0="#" | |
37830 | if test "x$USE_GUI" = "x0" ; then | |
37831 | COND_USE_GUI_0="" | |
37832 | fi | |
37833 | ||
37834 | COND_USE_GUI_1="#" | |
37835 | if test "x$USE_GUI" = "x1" ; then | |
37836 | COND_USE_GUI_1="" | |
37837 | fi | |
37838 | ||
37839 | COND_USE_GUI_1_WXUNIV_0="#" | |
37840 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
37841 | COND_USE_GUI_1_WXUNIV_0="" | |
37842 | fi | |
37843 | ||
37844 | COND_USE_GUI_1_WXUNIV_1="#" | |
37845 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
37846 | COND_USE_GUI_1_WXUNIV_1="" | |
37847 | fi | |
37848 | ||
37849 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
37850 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
37851 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
37852 | fi | |
37853 | ||
37854 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
37855 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
37856 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
37857 | fi | |
37858 | ||
37859 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
37860 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
37861 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
37862 | fi | |
37863 | ||
37864 | COND_USE_ODBC_1="#" | |
37865 | if test "x$USE_ODBC" = "x1" ; then | |
37866 | COND_USE_ODBC_1="" | |
37867 | fi | |
37868 | ||
37869 | COND_USE_PLUGINS_0="#" | |
37870 | if test "x$USE_PLUGINS" = "x0" ; then | |
37871 | COND_USE_PLUGINS_0="" | |
37872 | fi | |
37873 | ||
37874 | COND_USE_SOSYMLINKS_1="#" | |
37875 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
37876 | COND_USE_SOSYMLINKS_1="" | |
37877 | fi | |
37878 | ||
37879 | COND_USE_SOVERLINUX_1="#" | |
37880 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
37881 | COND_USE_SOVERLINUX_1="" | |
37882 | fi | |
37883 | ||
37884 | COND_USE_SOVERSION_0="#" | |
37885 | if test "x$USE_SOVERSION" = "x0" ; then | |
37886 | COND_USE_SOVERSION_0="" | |
37887 | fi | |
37888 | ||
37889 | COND_USE_SOVERSOLARIS_1="#" | |
37890 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
37891 | COND_USE_SOVERSOLARIS_1="" | |
37892 | fi | |
37893 | ||
37894 | COND_WITH_PLUGIN_SDL_1="#" | |
37895 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
37896 | COND_WITH_PLUGIN_SDL_1="" | |
37897 | fi | |
37898 | ||
37899 | COND_WITH_SDL_1="#" | |
37900 | if test "x$WITH_SDL" = "x1" ; then | |
37901 | COND_WITH_SDL_1="" | |
37902 | fi | |
37903 | ||
37904 | COND_WXUNIV_1="#" | |
37905 | if test "x$WXUNIV" = "x1" ; then | |
37906 | COND_WXUNIV_1="" | |
37907 | fi | |
37908 | ||
37909 | COND_WXUSE_EXPAT_BUILTIN="#" | |
37910 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
37911 | COND_WXUSE_EXPAT_BUILTIN="" | |
37912 | fi | |
37913 | ||
37914 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
37915 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
37916 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
37917 | fi | |
37918 | ||
37919 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
37920 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
37921 | COND_WXUSE_LIBPNG_BUILTIN="" | |
37922 | fi | |
37923 | ||
37924 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
37925 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
37926 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
37927 | fi | |
37928 | ||
37929 | COND_WXUSE_ODBC_BUILTIN="#" | |
37930 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
37931 | COND_WXUSE_ODBC_BUILTIN="" | |
37932 | fi | |
37933 | ||
37934 | COND_WXUSE_REGEX_BUILTIN="#" | |
37935 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
37936 | COND_WXUSE_REGEX_BUILTIN="" | |
37937 | fi | |
37938 | ||
37939 | COND_WXUSE_ZLIB_BUILTIN="#" | |
37940 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
37941 | COND_WXUSE_ZLIB_BUILTIN="" | |
37942 | fi | |
37943 | ||
dcc1b6ad VS |
37944 | COND_BUILD_DEBUG="#" |
37945 | if test "x$BUILD" = "xdebug" ; then | |
37946 | COND_BUILD_DEBUG="" | |
37947 | fi | |
37948 | ||
37949 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#" | |
37950 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then | |
37951 | COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="" | |
37952 | fi | |
37953 | ||
37954 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#" | |
37955 | if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then | |
37956 | COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="" | |
37957 | fi | |
37958 | ||
37959 | COND_BUILD_DEBUG_UNICODE_0="#" | |
37960 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then | |
37961 | COND_BUILD_DEBUG_UNICODE_0="" | |
37962 | fi | |
37963 | ||
37964 | COND_BUILD_DEBUG_UNICODE_1="#" | |
37965 | if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then | |
37966 | COND_BUILD_DEBUG_UNICODE_1="" | |
37967 | fi | |
37968 | ||
37969 | COND_BUILD_RELEASE="#" | |
37970 | if test "x$BUILD" = "xrelease" ; then | |
37971 | COND_BUILD_RELEASE="" | |
37972 | fi | |
37973 | ||
37974 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#" | |
37975 | if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then | |
37976 | COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="" | |
37977 | fi | |
37978 | ||
37979 | COND_BUILD_RELEASE_UNICODE_0="#" | |
37980 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then | |
37981 | COND_BUILD_RELEASE_UNICODE_0="" | |
37982 | fi | |
37983 | ||
37984 | COND_BUILD_RELEASE_UNICODE_1="#" | |
37985 | if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then | |
37986 | COND_BUILD_RELEASE_UNICODE_1="" | |
37987 | fi | |
37988 | ||
37989 | COND_DEBUG_FLAG_1="#" | |
37990 | if test "x$DEBUG_FLAG" = "x1" ; then | |
37991 | COND_DEBUG_FLAG_1="" | |
37992 | fi | |
37993 | ||
37994 | COND_DEBUG_INFO_0="#" | |
37995 | if test "x$DEBUG_INFO" = "x0" ; then | |
37996 | COND_DEBUG_INFO_0="" | |
37997 | fi | |
37998 | ||
37999 | COND_DEBUG_INFO_1="#" | |
38000 | if test "x$DEBUG_INFO" = "x1" ; then | |
38001 | COND_DEBUG_INFO_1="" | |
38002 | fi | |
38003 | ||
38004 | COND_DEPS_TRACKING_0="#" | |
38005 | if test "x$DEPS_TRACKING" = "x0" ; then | |
38006 | COND_DEPS_TRACKING_0="" | |
38007 | fi | |
38008 | ||
38009 | COND_DEPS_TRACKING_1="#" | |
38010 | if test "x$DEPS_TRACKING" = "x1" ; then | |
38011 | COND_DEPS_TRACKING_1="" | |
38012 | fi | |
38013 | ||
38014 | COND_GCC_PCH_1="#" | |
38015 | if test "x$GCC_PCH" = "x1" ; then | |
38016 | COND_GCC_PCH_1="" | |
38017 | fi | |
38018 | ||
38019 | COND_MONOLITHIC_0="#" | |
38020 | if test "x$MONOLITHIC" = "x0" ; then | |
38021 | COND_MONOLITHIC_0="" | |
38022 | fi | |
38023 | ||
38024 | COND_MONOLITHIC_0_SHARED_0="#" | |
38025 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then | |
38026 | COND_MONOLITHIC_0_SHARED_0="" | |
38027 | fi | |
38028 | ||
38029 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#" | |
38030 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then | |
38031 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="" | |
38032 | fi | |
38033 | ||
38034 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#" | |
38035 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
38036 | COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="" | |
38037 | fi | |
38038 | ||
38039 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="#" | |
38040 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_HTML" = "x1" ; then | |
38041 | COND_MONOLITHIC_0_SHARED_0_USE_HTML_1="" | |
38042 | fi | |
38043 | ||
38044 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#" | |
38045 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
38046 | COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="" | |
38047 | fi | |
38048 | ||
38049 | COND_MONOLITHIC_0_SHARED_1="#" | |
38050 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then | |
38051 | COND_MONOLITHIC_0_SHARED_1="" | |
38052 | fi | |
38053 | ||
38054 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#" | |
38055 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then | |
38056 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="" | |
38057 | fi | |
38058 | ||
38059 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#" | |
38060 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
38061 | COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="" | |
38062 | fi | |
38063 | ||
38064 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="#" | |
38065 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_HTML" = "x1" ; then | |
38066 | COND_MONOLITHIC_0_SHARED_1_USE_HTML_1="" | |
38067 | fi | |
38068 | ||
38069 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#" | |
38070 | if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then | |
38071 | COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="" | |
38072 | fi | |
38073 | ||
38074 | COND_MONOLITHIC_0_USE_ODBC_1="#" | |
38075 | if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then | |
38076 | COND_MONOLITHIC_0_USE_ODBC_1="" | |
38077 | fi | |
38078 | ||
38079 | COND_MONOLITHIC_1="#" | |
38080 | if test "x$MONOLITHIC" = "x1" ; then | |
38081 | COND_MONOLITHIC_1="" | |
38082 | fi | |
38083 | ||
38084 | COND_MONOLITHIC_1_SHARED_0="#" | |
38085 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then | |
38086 | COND_MONOLITHIC_1_SHARED_0="" | |
38087 | fi | |
38088 | ||
38089 | COND_MONOLITHIC_1_SHARED_1="#" | |
38090 | if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then | |
38091 | COND_MONOLITHIC_1_SHARED_1="" | |
38092 | fi | |
38093 | ||
38094 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#" | |
38095 | if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then | |
38096 | COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="" | |
38097 | fi | |
38098 | ||
38099 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#" | |
38100 | if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then | |
38101 | COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="" | |
38102 | fi | |
38103 | ||
38104 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#" | |
38105 | if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then | |
38106 | COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="" | |
38107 | fi | |
38108 | ||
38109 | COND_PLATFORM_MACOSX_1="#" | |
38110 | if test "x$PLATFORM_MACOSX" = "x1" ; then | |
38111 | COND_PLATFORM_MACOSX_1="" | |
38112 | fi | |
38113 | ||
38114 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#" | |
38115 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then | |
38116 | COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="" | |
38117 | fi | |
38118 | ||
38119 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#" | |
38120 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then | |
38121 | COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="" | |
38122 | fi | |
38123 | ||
38124 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#" | |
38125 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then | |
38126 | COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="" | |
38127 | fi | |
38128 | ||
38129 | COND_PLATFORM_MACOSX_1_USE_GUI_1="#" | |
38130 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
38131 | COND_PLATFORM_MACOSX_1_USE_GUI_1="" | |
38132 | fi | |
38133 | ||
38134 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#" | |
38135 | if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then | |
38136 | COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="" | |
38137 | fi | |
38138 | ||
38139 | COND_PLATFORM_MAC_1="#" | |
38140 | if test "x$PLATFORM_MAC" = "x1" ; then | |
38141 | COND_PLATFORM_MAC_1="" | |
38142 | fi | |
38143 | ||
38144 | COND_PLATFORM_OS2_1="#" | |
38145 | if test "x$PLATFORM_OS2" = "x1" ; then | |
38146 | COND_PLATFORM_OS2_1="" | |
38147 | fi | |
38148 | ||
38149 | COND_PLATFORM_UNIX_0="#" | |
38150 | if test "x$PLATFORM_UNIX" = "x0" ; then | |
38151 | COND_PLATFORM_UNIX_0="" | |
38152 | fi | |
38153 | ||
38154 | COND_PLATFORM_UNIX_1="#" | |
38155 | if test "x$PLATFORM_UNIX" = "x1" ; then | |
38156 | COND_PLATFORM_UNIX_1="" | |
38157 | fi | |
38158 | ||
38159 | COND_PLATFORM_UNIX_1_USE_GUI_1="#" | |
38160 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then | |
38161 | COND_PLATFORM_UNIX_1_USE_GUI_1="" | |
38162 | fi | |
38163 | ||
38164 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#" | |
38165 | if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then | |
38166 | COND_PLATFORM_UNIX_1_USE_PLUGINS_0="" | |
38167 | fi | |
38168 | ||
38169 | COND_PLATFORM_WIN32_0="#" | |
38170 | if test "x$PLATFORM_WIN32" = "x0" ; then | |
38171 | COND_PLATFORM_WIN32_0="" | |
38172 | fi | |
38173 | ||
38174 | COND_PLATFORM_WIN32_1="#" | |
38175 | if test "x$PLATFORM_WIN32" = "x1" ; then | |
38176 | COND_PLATFORM_WIN32_1="" | |
38177 | fi | |
38178 | ||
38179 | COND_SHARED_0="#" | |
38180 | if test "x$SHARED" = "x0" ; then | |
38181 | COND_SHARED_0="" | |
38182 | fi | |
38183 | ||
38184 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#" | |
38185 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
38186 | COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="" | |
38187 | fi | |
38188 | ||
38189 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
38190 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
38191 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
38192 | fi | |
38193 | ||
38194 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
38195 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
38196 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
38197 | fi | |
38198 | ||
38199 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
38200 | if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
38201 | COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
38202 | fi | |
38203 | ||
38204 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#" | |
38205 | if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
38206 | COND_SHARED_0_WXUSE_EXPAT_BUILTIN="" | |
38207 | fi | |
38208 | ||
38209 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="#" | |
38210 | if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then | |
38211 | COND_SHARED_0_WXUSE_ODBC_BUILTIN="" | |
38212 | fi | |
38213 | ||
38214 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="#" | |
38215 | if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then | |
38216 | COND_SHARED_0_WXUSE_REGEX_BUILTIN="" | |
38217 | fi | |
38218 | ||
38219 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#" | |
38220 | if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
38221 | COND_SHARED_0_WXUSE_ZLIB_BUILTIN="" | |
38222 | fi | |
38223 | ||
38224 | COND_SHARED_1="#" | |
38225 | if test "x$SHARED" = "x1" ; then | |
38226 | COND_SHARED_1="" | |
38227 | fi | |
38228 | ||
38229 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#" | |
38230 | if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then | |
38231 | COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="" | |
38232 | fi | |
38233 | ||
38234 | COND_TOOLKIT_COCOA="#" | |
38235 | if test "x$TOOLKIT" = "xCOCOA" ; then | |
38236 | COND_TOOLKIT_COCOA="" | |
38237 | fi | |
38238 | ||
38239 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#" | |
38240 | if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38241 | COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="" | |
38242 | fi | |
38243 | ||
38244 | COND_TOOLKIT_GTK="#" | |
38245 | if test "x$TOOLKIT" = "xGTK" ; then | |
38246 | COND_TOOLKIT_GTK="" | |
38247 | fi | |
38248 | ||
38249 | COND_TOOLKIT_GTK_USE_GUI_1="#" | |
38250 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then | |
38251 | COND_TOOLKIT_GTK_USE_GUI_1="" | |
38252 | fi | |
38253 | ||
38254 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="#" | |
38255 | if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38256 | COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0="" | |
38257 | fi | |
38258 | ||
38259 | COND_TOOLKIT_MAC="#" | |
38260 | if test "x$TOOLKIT" = "xMAC" ; then | |
38261 | COND_TOOLKIT_MAC="" | |
38262 | fi | |
38263 | ||
38264 | COND_TOOLKIT_MAC_USE_GUI_1="#" | |
38265 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then | |
38266 | COND_TOOLKIT_MAC_USE_GUI_1="" | |
38267 | fi | |
38268 | ||
38269 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#" | |
38270 | if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38271 | COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="" | |
38272 | fi | |
38273 | ||
38274 | COND_TOOLKIT_MGL="#" | |
38275 | if test "x$TOOLKIT" = "xMGL" ; then | |
38276 | COND_TOOLKIT_MGL="" | |
38277 | fi | |
38278 | ||
38279 | COND_TOOLKIT_MGL_USE_GUI_1="#" | |
38280 | if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then | |
38281 | COND_TOOLKIT_MGL_USE_GUI_1="" | |
38282 | fi | |
38283 | ||
38284 | COND_TOOLKIT_MOTIF="#" | |
38285 | if test "x$TOOLKIT" = "xMOTIF" ; then | |
38286 | COND_TOOLKIT_MOTIF="" | |
38287 | fi | |
38288 | ||
38289 | COND_TOOLKIT_MOTIF_USE_GUI_1="#" | |
38290 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then | |
38291 | COND_TOOLKIT_MOTIF_USE_GUI_1="" | |
38292 | fi | |
38293 | ||
38294 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#" | |
38295 | if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38296 | COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="" | |
38297 | fi | |
38298 | ||
38299 | COND_TOOLKIT_MSW="#" | |
38300 | if test "x$TOOLKIT" = "xMSW" ; then | |
38301 | COND_TOOLKIT_MSW="" | |
38302 | fi | |
38303 | ||
38304 | COND_TOOLKIT_MSW_USE_GUI_1="#" | |
38305 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then | |
38306 | COND_TOOLKIT_MSW_USE_GUI_1="" | |
38307 | fi | |
38308 | ||
38309 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#" | |
38310 | if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38311 | COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="" | |
38312 | fi | |
38313 | ||
38314 | COND_TOOLKIT_PM="#" | |
38315 | if test "x$TOOLKIT" = "xPM" ; then | |
38316 | COND_TOOLKIT_PM="" | |
38317 | fi | |
38318 | ||
38319 | COND_TOOLKIT_PM_USE_GUI_1="#" | |
38320 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then | |
38321 | COND_TOOLKIT_PM_USE_GUI_1="" | |
38322 | fi | |
38323 | ||
38324 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#" | |
38325 | if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38326 | COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="" | |
38327 | fi | |
38328 | ||
38329 | COND_TOOLKIT_WINCE="#" | |
38330 | if test "x$TOOLKIT" = "xWINCE" ; then | |
38331 | COND_TOOLKIT_WINCE="" | |
38332 | fi | |
38333 | ||
38334 | COND_TOOLKIT_WINCE_USE_GUI_1="#" | |
38335 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then | |
38336 | COND_TOOLKIT_WINCE_USE_GUI_1="" | |
38337 | fi | |
38338 | ||
38339 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#" | |
38340 | if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38341 | COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="" | |
38342 | fi | |
38343 | ||
38344 | COND_TOOLKIT_X11="#" | |
38345 | if test "x$TOOLKIT" = "xX11" ; then | |
38346 | COND_TOOLKIT_X11="" | |
38347 | fi | |
38348 | ||
38349 | COND_TOOLKIT_X11_USE_GUI_1="#" | |
38350 | if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then | |
38351 | COND_TOOLKIT_X11_USE_GUI_1="" | |
38352 | fi | |
38353 | ||
38354 | COND_UNICODE_1="#" | |
38355 | if test "x$UNICODE" = "x1" ; then | |
38356 | COND_UNICODE_1="" | |
38357 | fi | |
38358 | ||
38359 | COND_USE_EXCEPTIONS_0="#" | |
38360 | if test "x$USE_EXCEPTIONS" = "x0" ; then | |
38361 | COND_USE_EXCEPTIONS_0="" | |
38362 | fi | |
38363 | ||
38364 | COND_USE_EXCEPTIONS_1="#" | |
38365 | if test "x$USE_EXCEPTIONS" = "x1" ; then | |
38366 | COND_USE_EXCEPTIONS_1="" | |
38367 | fi | |
38368 | ||
38369 | COND_USE_GUI_0="#" | |
38370 | if test "x$USE_GUI" = "x0" ; then | |
38371 | COND_USE_GUI_0="" | |
38372 | fi | |
38373 | ||
38374 | COND_USE_GUI_1="#" | |
38375 | if test "x$USE_GUI" = "x1" ; then | |
38376 | COND_USE_GUI_1="" | |
38377 | fi | |
38378 | ||
38379 | COND_USE_GUI_1_WXUNIV_0="#" | |
38380 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then | |
38381 | COND_USE_GUI_1_WXUNIV_0="" | |
38382 | fi | |
38383 | ||
38384 | COND_USE_GUI_1_WXUNIV_1="#" | |
38385 | if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then | |
38386 | COND_USE_GUI_1_WXUNIV_1="" | |
38387 | fi | |
38388 | ||
38389 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#" | |
38390 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
38391 | COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="" | |
38392 | fi | |
38393 | ||
38394 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#" | |
38395 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
38396 | COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="" | |
38397 | fi | |
38398 | ||
38399 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#" | |
38400 | if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
38401 | COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="" | |
38402 | fi | |
38403 | ||
38404 | COND_USE_ODBC_1="#" | |
38405 | if test "x$USE_ODBC" = "x1" ; then | |
38406 | COND_USE_ODBC_1="" | |
38407 | fi | |
38408 | ||
38409 | COND_USE_PLUGINS_0="#" | |
38410 | if test "x$USE_PLUGINS" = "x0" ; then | |
38411 | COND_USE_PLUGINS_0="" | |
38412 | fi | |
38413 | ||
38414 | COND_USE_SOSYMLINKS_1="#" | |
38415 | if test "x$USE_SOSYMLINKS" = "x1" ; then | |
38416 | COND_USE_SOSYMLINKS_1="" | |
38417 | fi | |
38418 | ||
38419 | COND_USE_SOVERLINUX_1="#" | |
38420 | if test "x$USE_SOVERLINUX" = "x1" ; then | |
38421 | COND_USE_SOVERLINUX_1="" | |
38422 | fi | |
38423 | ||
38424 | COND_USE_SOVERSION_0="#" | |
38425 | if test "x$USE_SOVERSION" = "x0" ; then | |
38426 | COND_USE_SOVERSION_0="" | |
38427 | fi | |
38428 | ||
38429 | COND_USE_SOVERSOLARIS_1="#" | |
38430 | if test "x$USE_SOVERSOLARIS" = "x1" ; then | |
38431 | COND_USE_SOVERSOLARIS_1="" | |
38432 | fi | |
38433 | ||
38434 | COND_WITH_PLUGIN_SDL_1="#" | |
38435 | if test "x$WITH_PLUGIN_SDL" = "x1" ; then | |
38436 | COND_WITH_PLUGIN_SDL_1="" | |
38437 | fi | |
38438 | ||
38439 | COND_WXUNIV_1="#" | |
38440 | if test "x$WXUNIV" = "x1" ; then | |
38441 | COND_WXUNIV_1="" | |
38442 | fi | |
38443 | ||
38444 | COND_WXUSE_EXPAT_BUILTIN="#" | |
38445 | if test "x$wxUSE_EXPAT" = "xbuiltin" ; then | |
38446 | COND_WXUSE_EXPAT_BUILTIN="" | |
38447 | fi | |
38448 | ||
38449 | COND_WXUSE_LIBJPEG_BUILTIN="#" | |
38450 | if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then | |
38451 | COND_WXUSE_LIBJPEG_BUILTIN="" | |
38452 | fi | |
38453 | ||
38454 | COND_WXUSE_LIBPNG_BUILTIN="#" | |
38455 | if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then | |
38456 | COND_WXUSE_LIBPNG_BUILTIN="" | |
38457 | fi | |
38458 | ||
38459 | COND_WXUSE_LIBTIFF_BUILTIN="#" | |
38460 | if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then | |
38461 | COND_WXUSE_LIBTIFF_BUILTIN="" | |
38462 | fi | |
38463 | ||
38464 | COND_WXUSE_ODBC_BUILTIN="#" | |
38465 | if test "x$wxUSE_ODBC" = "xbuiltin" ; then | |
38466 | COND_WXUSE_ODBC_BUILTIN="" | |
38467 | fi | |
38468 | ||
38469 | COND_WXUSE_REGEX_BUILTIN="#" | |
38470 | if test "x$wxUSE_REGEX" = "xbuiltin" ; then | |
38471 | COND_WXUSE_REGEX_BUILTIN="" | |
38472 | fi | |
38473 | ||
38474 | COND_WXUSE_ZLIB_BUILTIN="#" | |
38475 | if test "x$wxUSE_ZLIB" = "xbuiltin" ; then | |
38476 | COND_WXUSE_ZLIB_BUILTIN="" | |
38477 | fi | |
38478 | ||
a848cd7e SC |
38479 | |
38480 | ||
38481 | ||
38482 | ||
38483 | if test $GCC_PCH = 1 ; then | |
38484 | CODE_GEN_FLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CODE_GEN_FLAGS" | |
38485 | CPPFLAGS="-DWX_PRECOMP -DNO_GCC_PRAGMA $CPPFLAGS" | |
38486 | else | |
38487 | case "${host}" in | |
38488 | powerpc-*-darwin* ) | |
38489 | CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS" | |
38490 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
38491 | ;; | |
bea8e651 MB |
38492 | *-*-mingw32* ) |
38493 | if test "$wxUSE_STL" = "yes"; then | |
38494 | echo "$as_me:$LINENO: checking If this MinGW version needs -DNO_GCC_PRAGMA" >&5 | |
38495 | echo $ECHO_N "checking If this MinGW version needs -DNO_GCC_PRAGMA... $ECHO_C" >&6 | |
38496 | cat >conftest.$ac_ext <<_ACEOF | |
8a7b1113 | 38497 | #line $LINENO "configure" |
bea8e651 MB |
38498 | /* confdefs.h. */ |
38499 | _ACEOF | |
38500 | cat confdefs.h >>conftest.$ac_ext | |
38501 | cat >>conftest.$ac_ext <<_ACEOF | |
38502 | /* end confdefs.h. */ | |
38503 | ||
38504 | int | |
38505 | main () | |
38506 | { | |
38507 | #if !(__GNUC__ == 3 && __GNUC_MINOR__ >= 2) | |
38508 | #error "Not GCC 3.2 or greater" | |
38509 | #endif | |
38510 | ||
38511 | ; | |
38512 | return 0; | |
38513 | } | |
38514 | _ACEOF | |
38515 | rm -f conftest.$ac_objext | |
38516 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8a7b1113 | 38517 | (eval $ac_compile) 2>&5 |
bea8e651 | 38518 | ac_status=$? |
bea8e651 MB |
38519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
38520 | (exit $ac_status); } && | |
8a7b1113 | 38521 | { ac_try='test -s conftest.$ac_objext' |
bea8e651 MB |
38522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
38523 | (eval $ac_try) 2>&5 | |
38524 | ac_status=$? | |
38525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
38526 | (exit $ac_status); }; }; then | |
38527 | CODE_GEN_FLAGS="-DNO_GCC_PRAGMA $CODE_GEN_FLAGS" | |
38528 | CPPFLAGS="-DNO_GCC_PRAGMA $CPPFLAGS" | |
38529 | echo "$as_me:$LINENO: result: yes" >&5 | |
38530 | echo "${ECHO_T}yes" >&6 | |
38531 | else | |
38532 | echo "$as_me: failed program was:" >&5 | |
38533 | sed 's/^/| /' conftest.$ac_ext >&5 | |
38534 | ||
38535 | echo "$as_me:$LINENO: result: no" >&5 | |
38536 | echo "${ECHO_T}no" >&6 | |
38537 | fi | |
8a7b1113 | 38538 | rm -f conftest.$ac_objext conftest.$ac_ext |
bea8e651 MB |
38539 | fi |
38540 | ;; | |
a848cd7e SC |
38541 | esac |
38542 | fi | |
38543 | ||
38544 | ||
38545 | SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`" | |
38546 | ||
38547 | ||
38548 | ||
38549 | ||
38550 | ||
38551 | ||
38552 | ||
38553 | ||
38554 | ||
38555 | ||
38556 | ||
38557 | ||
38558 | ||
38559 | ||
38560 | ||
38561 | ||
38562 | ||
38563 | ||
38564 | ||
38565 | ||
38566 | ||
38567 | ||
38568 | ||
38569 | ||
38570 | ||
38571 | ||
38572 | ||
38573 | ||
38574 | ||
38575 | ||
38576 | ||
38577 | ||
38578 | ||
38579 | ||
38580 | ||
38581 | ||
38582 | ||
38583 | ||
38584 | ||
38585 | ||
38586 | ||
38587 | ||
38588 | ||
38589 | ||
38590 | ||
38591 | ||
38592 | ||
38593 | ||
38594 | ||
38595 | ||
38596 | ||
38597 | ||
38598 | ||
38599 | ||
38600 | ||
38601 | ||
38602 | ||
38603 | ||
38604 | ||
38605 | ||
38606 | ||
38607 | ||
38608 | ||
38609 | ||
38610 | ||
38611 | ||
38612 | ||
38613 | ||
38614 | ||
38615 | ||
38616 | ||
38617 | ||
38618 | ||
38619 | ||
38620 | ||
38621 | ||
38622 | ||
38623 | ||
38624 | ||
38625 | ||
38626 | ||
38627 | ||
38628 | ||
38629 | ||
38630 | ||
38631 | ||
38632 | ||
38633 | ||
38634 | ||
38635 | ||
38636 | ||
38637 | ||
38638 | ||
38639 | ||
38640 | ||
38641 | ||
38642 | ||
38643 | ||
38644 | ||
38645 | ||
38646 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
38647 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
8a7b1113 | 38648 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` |
a848cd7e SC |
38649 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then |
38650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38651 | else | |
38652 | cat >conftest.make <<\_ACEOF | |
38653 | all: | |
38654 | @echo 'ac_maketemp="$(MAKE)"' | |
38655 | _ACEOF | |
38656 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
38657 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
38658 | if test -n "$ac_maketemp"; then | |
38659 | eval ac_cv_prog_make_${ac_make}_set=yes | |
38660 | else | |
38661 | eval ac_cv_prog_make_${ac_make}_set=no | |
38662 | fi | |
38663 | rm -f conftest.make | |
38664 | fi | |
38665 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
38666 | echo "$as_me:$LINENO: result: yes" >&5 | |
38667 | echo "${ECHO_T}yes" >&6 | |
38668 | SET_MAKE= | |
38669 | else | |
38670 | echo "$as_me:$LINENO: result: no" >&5 | |
38671 | echo "${ECHO_T}no" >&6 | |
38672 | SET_MAKE="MAKE=${MAKE-make}" | |
38673 | fi | |
38674 | ||
38675 | ||
38676 | if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then | |
38677 | mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h | |
38678 | fi | |
38679 | ||
38680 | ac_config_headers="$ac_config_headers setup.h" | |
38681 | ||
38682 | ||
38683 | ac_config_files="$ac_config_files wx-config version-script Makefile" | |
38684 | ||
38685 | ||
38686 | ac_config_commands="$ac_config_commands default" | |
38687 | ||
38688 | ||
38689 | ||
38690 | if test "$wxUSE_GUI" = "yes"; then | |
38691 | SUBDIRS="samples demos utils contrib" | |
38692 | else SUBDIRS="samples utils" | |
38693 | fi | |
38694 | ||
38695 | ||
38696 | ||
38697 | # Check whether --with-cppunit-prefix or --without-cppunit-prefix was given. | |
38698 | if test "${with_cppunit_prefix+set}" = set; then | |
38699 | withval="$with_cppunit_prefix" | |
38700 | cppunit_config_prefix="$withval" | |
38701 | else | |
38702 | cppunit_config_prefix="" | |
38703 | fi; | |
38704 | ||
38705 | # Check whether --with-cppunit-exec-prefix or --without-cppunit-exec-prefix was given. | |
38706 | if test "${with_cppunit_exec_prefix+set}" = set; then | |
38707 | withval="$with_cppunit_exec_prefix" | |
38708 | cppunit_config_exec_prefix="$withval" | |
38709 | else | |
38710 | cppunit_config_exec_prefix="" | |
38711 | fi; | |
38712 | ||
38713 | if test x$cppunit_config_exec_prefix != x ; then | |
38714 | cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix" | |
38715 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
38716 | CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config | |
38717 | fi | |
38718 | fi | |
38719 | if test x$cppunit_config_prefix != x ; then | |
38720 | cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix" | |
38721 | if test x${CPPUNIT_CONFIG+set} != xset ; then | |
38722 | CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config | |
38723 | fi | |
38724 | fi | |
38725 | ||
38726 | # Extract the first word of "cppunit-config", so it can be a program name with args. | |
38727 | set dummy cppunit-config; ac_word=$2 | |
38728 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
38729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
38730 | if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then | |
38731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
38732 | else | |
38733 | case $CPPUNIT_CONFIG in | |
38734 | [\\/]* | ?:[\\/]*) | |
38735 | ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path. | |
38736 | ;; | |
38737 | *) | |
38738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
38739 | for as_dir in $PATH | |
38740 | do | |
38741 | IFS=$as_save_IFS | |
38742 | test -z "$as_dir" && as_dir=. | |
38743 | for ac_exec_ext in '' $ac_executable_extensions; do | |
38744 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
38745 | ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
38746 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
38747 | break 2 | |
38748 | fi | |
38749 | done | |
38750 | done | |
38751 | ||
38752 | test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no" | |
38753 | ;; | |
38754 | esac | |
38755 | fi | |
38756 | CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG | |
38757 | ||
38758 | if test -n "$CPPUNIT_CONFIG"; then | |
38759 | echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5 | |
38760 | echo "${ECHO_T}$CPPUNIT_CONFIG" >&6 | |
38761 | else | |
38762 | echo "$as_me:$LINENO: result: no" >&5 | |
38763 | echo "${ECHO_T}no" >&6 | |
38764 | fi | |
38765 | ||
38766 | cppunit_version_min=1.8.0 | |
38767 | ||
38768 | echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5 | |
38769 | echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6 | |
38770 | no_cppunit="" | |
38771 | if test "$CPPUNIT_CONFIG" = "no" ; then | |
38772 | no_cppunit=yes | |
c2218763 VS |
38773 | echo "$as_me:$LINENO: result: no" >&5 |
38774 | echo "${ECHO_T}no" >&6 | |
a848cd7e SC |
38775 | else |
38776 | CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags` | |
38777 | CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs` | |
38778 | cppunit_version=`$CPPUNIT_CONFIG --version` | |
38779 | ||
38780 | cppunit_major_version=`echo $cppunit_version | \ | |
38781 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
38782 | cppunit_minor_version=`echo $cppunit_version | \ | |
38783 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
38784 | cppunit_micro_version=`echo $cppunit_version | \ | |
38785 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
38786 | ||
38787 | cppunit_major_min=`echo $cppunit_version_min | \ | |
38788 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | |
38789 | cppunit_minor_min=`echo $cppunit_version_min | \ | |
38790 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | |
38791 | cppunit_micro_min=`echo $cppunit_version_min | \ | |
38792 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | |
38793 | ||
38794 | cppunit_version_proper=`expr \ | |
38795 | $cppunit_major_version \> $cppunit_major_min \| \ | |
38796 | $cppunit_major_version \= $cppunit_major_min \& \ | |
38797 | $cppunit_minor_version \> $cppunit_minor_min \| \ | |
38798 | $cppunit_major_version \= $cppunit_major_min \& \ | |
38799 | $cppunit_minor_version \= $cppunit_minor_min \& \ | |
38800 | $cppunit_micro_version \>= $cppunit_micro_min ` | |
38801 | ||
38802 | if test "$cppunit_version_proper" = "1" ; then | |
38803 | echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5 | |
38804 | echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6 | |
38805 | else | |
38806 | echo "$as_me:$LINENO: result: no" >&5 | |
38807 | echo "${ECHO_T}no" >&6 | |
38808 | no_cppunit=yes | |
38809 | fi | |
38810 | fi | |
38811 | ||
38812 | if test "x$no_cppunit" = x ; then | |
c2218763 | 38813 | SUBDIRS="$SUBDIRS tests" |
a848cd7e SC |
38814 | else |
38815 | CPPUNIT_CFLAGS="" | |
38816 | CPPUNIT_LIBS="" | |
c2218763 | 38817 | : |
a848cd7e SC |
38818 | fi |
38819 | ||
38820 | ||
38821 | ||
38822 | ||
38823 | ||
38824 | for subdir in `echo $SUBDIRS`; do | |
38825 | if test -d ${srcdir}/${subdir} ; then | |
38826 | if test "$wxUSE_GUI" = "yes"; then | |
38827 | if test ${subdir} = "samples"; then | |
38828 | makefiles="samples/Makefile.in $makefiles" | |
38829 | for sample in `echo $SAMPLES_SUBDIRS`; do | |
38830 | if test -d $srcdir/samples/$sample; then | |
38831 | makefiles="samples/$sample/Makefile.in $makefiles" | |
38832 | fi | |
38833 | done | |
38834 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
38835 | fi | |
38836 | else if test ${subdir} = "samples"; then | |
38837 | makefiles="samples/Makefile.in samples/console/Makefile.in" | |
38838 | elif test ${subdir} = "utils"; then | |
38839 | makefiles="utils/HelpGen/Makefile.in \ | |
38840 | utils/HelpGen/src/Makefile.in \ | |
38841 | utils/tex2rtf/Makefile.in \ | |
38842 | utils/tex2rtf/src/Makefile.in" | |
38843 | else makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)` | |
38844 | fi | |
38845 | fi | |
38846 | ||
38847 | for mkin in $makefiles ; do | |
38848 | mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'` | |
38849 | ac_config_files="$ac_config_files $mk" | |
38850 | ||
38851 | done | |
38852 | fi | |
38853 | done | |
38854 | ||
38855 | ||
38856 | cat >confcache <<\_ACEOF | |
38857 | # This file is a shell script that caches the results of configure | |
38858 | # tests run on this system so they can be shared between configure | |
38859 | # scripts and configure runs, see configure's option --config-cache. | |
38860 | # It is not useful on other systems. If it contains results you don't | |
38861 | # want to keep, you may remove or edit it. | |
38862 | # | |
38863 | # config.status only pays attention to the cache file if you give it | |
38864 | # the --recheck option to rerun configure. | |
38865 | # | |
38866 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
38867 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
38868 | # following values. | |
38869 | ||
38870 | _ACEOF | |
38871 | ||
38872 | # The following way of writing the cache mishandles newlines in values, | |
38873 | # but we know of no workaround that is simple, portable, and efficient. | |
38874 | # So, don't put newlines in cache variables' values. | |
38875 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
38876 | # and sets the high bit in the cache file unless we assign to the vars. | |
38877 | { | |
38878 | (set) 2>&1 | | |
38879 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
38880 | *ac_space=\ *) | |
38881 | # `set' does not quote correctly, so add quotes (double-quote | |
38882 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
38883 | sed -n \ | |
8a7b1113 VZ |
38884 | "s/'/'\\\\''/g; |
38885 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
a848cd7e SC |
38886 | ;; |
38887 | *) | |
38888 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
38889 | sed -n \ | |
8a7b1113 | 38890 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
a848cd7e SC |
38891 | ;; |
38892 | esac; | |
38893 | } | | |
38894 | sed ' | |
38895 | t clear | |
38896 | : clear | |
38897 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
38898 | t end | |
38899 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
38900 | : end' >>confcache | |
38901 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
38902 | if test -w $cache_file; then | |
38903 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
38904 | cat confcache >$cache_file | |
38905 | else | |
38906 | echo "not updating unwritable cache $cache_file" | |
38907 | fi | |
38908 | fi | |
38909 | rm -f confcache | |
38910 | ||
38911 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
38912 | # Let make expand exec_prefix. | |
38913 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
38914 | ||
38915 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
38916 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
38917 | # trailing colons and then remove the whole line if VPATH becomes empty | |
38918 | # (actually we leave an empty line to preserve line numbers). | |
38919 | if test "x$srcdir" = x.; then | |
8a7b1113 | 38920 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
a848cd7e SC |
38921 | s/:*\$(srcdir):*/:/; |
38922 | s/:*\${srcdir}:*/:/; | |
38923 | s/:*@srcdir@:*/:/; | |
8a7b1113 | 38924 | s/^\([^=]*=[ ]*\):*/\1/; |
a848cd7e | 38925 | s/:*$//; |
8a7b1113 | 38926 | s/^[^=]*=[ ]*$//; |
a848cd7e SC |
38927 | }' |
38928 | fi | |
38929 | ||
38930 | DEFS=-DHAVE_CONFIG_H | |
38931 | ||
38932 | ac_libobjs= | |
38933 | ac_ltlibobjs= | |
38934 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
38935 | # 1. Remove the extension, and $U if already installed. | |
38936 | ac_i=`echo "$ac_i" | | |
8a7b1113 | 38937 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
a848cd7e SC |
38938 | # 2. Add them. |
38939 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
38940 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
38941 | done | |
38942 | LIBOBJS=$ac_libobjs | |
38943 | ||
38944 | LTLIBOBJS=$ac_ltlibobjs | |
38945 | ||
38946 | ||
38947 | ||
38948 | : ${CONFIG_STATUS=./config.status} | |
38949 | ac_clean_files_save=$ac_clean_files | |
38950 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
38951 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
38952 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
38953 | cat >$CONFIG_STATUS <<_ACEOF | |
38954 | #! $SHELL | |
38955 | # Generated by $as_me. | |
38956 | # Run this file to recreate the current configuration. | |
38957 | # Compiler output produced by configure, useful for debugging | |
38958 | # configure, is in config.log if it exists. | |
38959 | ||
38960 | debug=false | |
38961 | ac_cs_recheck=false | |
38962 | ac_cs_silent=false | |
38963 | SHELL=\${CONFIG_SHELL-$SHELL} | |
38964 | _ACEOF | |
38965 | ||
38966 | cat >>$CONFIG_STATUS <<\_ACEOF | |
38967 | ## --------------------- ## | |
38968 | ## M4sh Initialization. ## | |
38969 | ## --------------------- ## | |
38970 | ||
38971 | # Be Bourne compatible | |
38972 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
38973 | emulate sh | |
38974 | NULLCMD=: | |
38975 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
38976 | # is contrary to our usage. Disable this feature. | |
38977 | alias -g '${1+"$@"}'='"$@"' | |
38978 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
38979 | set -o posix | |
38980 | fi | |
a848cd7e SC |
38981 | |
38982 | # Support unset when possible. | |
8a7b1113 | 38983 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then |
a848cd7e SC |
38984 | as_unset=unset |
38985 | else | |
38986 | as_unset=false | |
38987 | fi | |
38988 | ||
38989 | ||
38990 | # Work around bugs in pre-3.0 UWIN ksh. | |
38991 | $as_unset ENV MAIL MAILPATH | |
38992 | PS1='$ ' | |
38993 | PS2='> ' | |
38994 | PS4='+ ' | |
38995 | ||
38996 | # NLS nuisances. | |
38997 | for as_var in \ | |
38998 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
38999 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
39000 | LC_TELEPHONE LC_TIME | |
39001 | do | |
8a7b1113 | 39002 | if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then |
a848cd7e SC |
39003 | eval $as_var=C; export $as_var |
39004 | else | |
39005 | $as_unset $as_var | |
39006 | fi | |
39007 | done | |
39008 | ||
39009 | # Required to use basename. | |
39010 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
39011 | as_expr=expr | |
39012 | else | |
39013 | as_expr=false | |
39014 | fi | |
39015 | ||
39016 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
39017 | as_basename=basename | |
39018 | else | |
39019 | as_basename=false | |
39020 | fi | |
39021 | ||
39022 | ||
39023 | # Name of the executable. | |
39024 | as_me=`$as_basename "$0" || | |
39025 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
39026 | X"$0" : 'X\(//\)$' \| \ | |
39027 | X"$0" : 'X\(/\)$' \| \ | |
39028 | . : '\(.\)' 2>/dev/null || | |
39029 | echo X/"$0" | | |
39030 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
39031 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
39032 | /^X\/\(\/\).*/{ s//\1/; q; } | |
39033 | s/.*/./; q'` | |
39034 | ||
39035 | ||
39036 | # PATH needs CR, and LINENO needs CR and PATH. | |
39037 | # Avoid depending upon Character Ranges. | |
39038 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
39039 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
39040 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
39041 | as_cr_digits='0123456789' | |
39042 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
39043 | ||
39044 | # The user is always right. | |
39045 | if test "${PATH_SEPARATOR+set}" != set; then | |
39046 | echo "#! /bin/sh" >conf$$.sh | |
39047 | echo "exit 0" >>conf$$.sh | |
39048 | chmod +x conf$$.sh | |
39049 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
39050 | PATH_SEPARATOR=';' | |
39051 | else | |
39052 | PATH_SEPARATOR=: | |
39053 | fi | |
39054 | rm -f conf$$.sh | |
39055 | fi | |
39056 | ||
39057 | ||
39058 | as_lineno_1=$LINENO | |
39059 | as_lineno_2=$LINENO | |
39060 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
39061 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
39062 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
39063 | # Find who we are. Look in the path if we contain no path at all | |
39064 | # relative or not. | |
39065 | case $0 in | |
39066 | *[\\/]* ) as_myself=$0 ;; | |
39067 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39068 | for as_dir in $PATH | |
39069 | do | |
39070 | IFS=$as_save_IFS | |
39071 | test -z "$as_dir" && as_dir=. | |
39072 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
39073 | done | |
39074 | ||
39075 | ;; | |
39076 | esac | |
39077 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
39078 | # in which case we are not to be found in the path. | |
39079 | if test "x$as_myself" = x; then | |
39080 | as_myself=$0 | |
39081 | fi | |
39082 | if test ! -f "$as_myself"; then | |
39083 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
39084 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
39085 | { (exit 1); exit 1; }; } | |
39086 | fi | |
39087 | case $CONFIG_SHELL in | |
39088 | '') | |
39089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
39090 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
39091 | do | |
39092 | IFS=$as_save_IFS | |
39093 | test -z "$as_dir" && as_dir=. | |
39094 | for as_base in sh bash ksh sh5; do | |
39095 | case $as_dir in | |
39096 | /*) | |
39097 | if ("$as_dir/$as_base" -c ' | |
39098 | as_lineno_1=$LINENO | |
39099 | as_lineno_2=$LINENO | |
39100 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
39101 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
39102 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
39103 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
39104 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
39105 | CONFIG_SHELL=$as_dir/$as_base | |
39106 | export CONFIG_SHELL | |
39107 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
39108 | fi;; | |
39109 | esac | |
39110 | done | |
39111 | done | |
39112 | ;; | |
39113 | esac | |
39114 | ||
39115 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
39116 | # uniformly replaced by the line number. The first 'sed' inserts a | |
39117 | # line-number line before each line; the second 'sed' does the real | |
39118 | # work. The second script uses 'N' to pair each line-number line | |
39119 | # with the numbered line, and appends trailing '-' during | |
39120 | # substitution so that $LINENO is not a special case at line end. | |
39121 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
39122 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
39123 | sed '=' <$as_myself | | |
39124 | sed ' | |
39125 | N | |
39126 | s,$,-, | |
39127 | : loop | |
39128 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
39129 | t loop | |
39130 | s,-$,, | |
39131 | s,^['$as_cr_digits']*\n,, | |
39132 | ' >$as_me.lineno && | |
39133 | chmod +x $as_me.lineno || | |
39134 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
39135 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
39136 | { (exit 1); exit 1; }; } | |
39137 | ||
39138 | # Don't try to exec as it changes $[0], causing all sort of problems | |
39139 | # (the dirname of $[0] is not the place where we might find the | |
39140 | # original and so on. Autoconf is especially sensible to this). | |
39141 | . ./$as_me.lineno | |
39142 | # Exit status is that of the last command. | |
39143 | exit | |
39144 | } | |
39145 | ||
39146 | ||
39147 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
39148 | *c*,-n*) ECHO_N= ECHO_C=' | |
39149 | ' ECHO_T=' ' ;; | |
39150 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
39151 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
39152 | esac | |
39153 | ||
39154 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
39155 | as_expr=expr | |
39156 | else | |
39157 | as_expr=false | |
39158 | fi | |
39159 | ||
39160 | rm -f conf$$ conf$$.exe conf$$.file | |
39161 | echo >conf$$.file | |
39162 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
39163 | # We could just check for DJGPP; but this test a) works b) is more generic | |
39164 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
39165 | if test -f conf$$.exe; then | |
39166 | # Don't use ln at all; we don't have any links | |
39167 | as_ln_s='cp -p' | |
39168 | else | |
39169 | as_ln_s='ln -s' | |
39170 | fi | |
39171 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
39172 | as_ln_s=ln | |
39173 | else | |
39174 | as_ln_s='cp -p' | |
39175 | fi | |
39176 | rm -f conf$$ conf$$.exe conf$$.file | |
39177 | ||
39178 | if mkdir -p . 2>/dev/null; then | |
39179 | as_mkdir_p=: | |
39180 | else | |
a848cd7e SC |
39181 | as_mkdir_p=false |
39182 | fi | |
39183 | ||
39184 | as_executable_p="test -f" | |
39185 | ||
39186 | # Sed expression to map a string onto a valid CPP name. | |
8a7b1113 | 39187 | as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" |
a848cd7e SC |
39188 | |
39189 | # Sed expression to map a string onto a valid variable name. | |
8a7b1113 | 39190 | as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" |
a848cd7e SC |
39191 | |
39192 | ||
39193 | # IFS | |
39194 | # We need space, tab and new line, in precisely that order. | |
39195 | as_nl=' | |
39196 | ' | |
39197 | IFS=" $as_nl" | |
39198 | ||
39199 | # CDPATH. | |
39200 | $as_unset CDPATH | |
39201 | ||
39202 | exec 6>&1 | |
39203 | ||
39204 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
39205 | # report actual input values of CONFIG_FILES etc. instead of their | |
39206 | # values after options handling. Logging --version etc. is OK. | |
39207 | exec 5>>config.log | |
39208 | { | |
39209 | echo | |
39210 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
39211 | ## Running $as_me. ## | |
39212 | _ASBOX | |
39213 | } >&5 | |
39214 | cat >&5 <<_CSEOF | |
39215 | ||
39216 | This file was extended by wxWindows $as_me 2.5.1, which was | |
8a7b1113 | 39217 | generated by GNU Autoconf 2.57. Invocation command line was |
a848cd7e SC |
39218 | |
39219 | CONFIG_FILES = $CONFIG_FILES | |
39220 | CONFIG_HEADERS = $CONFIG_HEADERS | |
39221 | CONFIG_LINKS = $CONFIG_LINKS | |
39222 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
39223 | $ $0 $@ | |
39224 | ||
39225 | _CSEOF | |
39226 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
39227 | echo >&5 | |
39228 | _ACEOF | |
39229 | ||
39230 | # Files that config.status was made for. | |
39231 | if test -n "$ac_config_files"; then | |
39232 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
39233 | fi | |
39234 | ||
39235 | if test -n "$ac_config_headers"; then | |
39236 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
39237 | fi | |
39238 | ||
39239 | if test -n "$ac_config_links"; then | |
39240 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
39241 | fi | |
39242 | ||
39243 | if test -n "$ac_config_commands"; then | |
39244 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
39245 | fi | |
39246 | ||
39247 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39248 | ||
39249 | ac_cs_usage="\ | |
39250 | \`$as_me' instantiates files from templates according to the | |
39251 | current configuration. | |
39252 | ||
39253 | Usage: $0 [OPTIONS] [FILE]... | |
39254 | ||
39255 | -h, --help print this help, then exit | |
39256 | -V, --version print version number, then exit | |
39257 | -q, --quiet do not print progress messages | |
39258 | -d, --debug don't remove temporary files | |
39259 | --recheck update $as_me by reconfiguring in the same conditions | |
39260 | --file=FILE[:TEMPLATE] | |
8a7b1113 | 39261 | instantiate the configuration file FILE |
a848cd7e | 39262 | --header=FILE[:TEMPLATE] |
8a7b1113 | 39263 | instantiate the configuration header FILE |
a848cd7e SC |
39264 | |
39265 | Configuration files: | |
39266 | $config_files | |
39267 | ||
39268 | Configuration headers: | |
39269 | $config_headers | |
39270 | ||
39271 | Configuration commands: | |
39272 | $config_commands | |
39273 | ||
39274 | Report bugs to <bug-autoconf@gnu.org>." | |
39275 | _ACEOF | |
39276 | ||
39277 | cat >>$CONFIG_STATUS <<_ACEOF | |
39278 | ac_cs_version="\\ | |
39279 | wxWindows config.status 2.5.1 | |
8a7b1113 | 39280 | configured by $0, generated by GNU Autoconf 2.57, |
a848cd7e SC |
39281 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
39282 | ||
8a7b1113 VZ |
39283 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
39284 | Free Software Foundation, Inc. | |
a848cd7e SC |
39285 | This config.status script is free software; the Free Software Foundation |
39286 | gives unlimited permission to copy, distribute and modify it." | |
39287 | srcdir=$srcdir | |
39288 | INSTALL="$INSTALL" | |
39289 | _ACEOF | |
39290 | ||
39291 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39292 | # If no file are specified by the user, then we need to provide default | |
39293 | # value. By we need to know if files were specified by the user. | |
39294 | ac_need_defaults=: | |
39295 | while test $# != 0 | |
39296 | do | |
39297 | case $1 in | |
39298 | --*=*) | |
39299 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
39300 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
39301 | ac_shift=: | |
39302 | ;; | |
39303 | -*) | |
39304 | ac_option=$1 | |
39305 | ac_optarg=$2 | |
39306 | ac_shift=shift | |
39307 | ;; | |
39308 | *) # This is not an option, so the user has probably given explicit | |
39309 | # arguments. | |
39310 | ac_option=$1 | |
39311 | ac_need_defaults=false;; | |
39312 | esac | |
39313 | ||
39314 | case $ac_option in | |
39315 | # Handling of the options. | |
39316 | _ACEOF | |
39317 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39318 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
39319 | ac_cs_recheck=: ;; | |
39320 | --version | --vers* | -V ) | |
39321 | echo "$ac_cs_version"; exit 0 ;; | |
39322 | --he | --h) | |
39323 | # Conflict between --help and --header | |
39324 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
39325 | Try \`$0 --help' for more information." >&5 | |
39326 | echo "$as_me: error: ambiguous option: $1 | |
39327 | Try \`$0 --help' for more information." >&2;} | |
39328 | { (exit 1); exit 1; }; };; | |
39329 | --help | --hel | -h ) | |
39330 | echo "$ac_cs_usage"; exit 0 ;; | |
39331 | --debug | --d* | -d ) | |
39332 | debug=: ;; | |
39333 | --file | --fil | --fi | --f ) | |
39334 | $ac_shift | |
39335 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
39336 | ac_need_defaults=false;; | |
39337 | --header | --heade | --head | --hea ) | |
39338 | $ac_shift | |
39339 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
39340 | ac_need_defaults=false;; | |
39341 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
39342 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
39343 | ac_cs_silent=: ;; | |
39344 | ||
39345 | # This is an error. | |
39346 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
39347 | Try \`$0 --help' for more information." >&5 | |
39348 | echo "$as_me: error: unrecognized option: $1 | |
39349 | Try \`$0 --help' for more information." >&2;} | |
39350 | { (exit 1); exit 1; }; } ;; | |
39351 | ||
39352 | *) ac_config_targets="$ac_config_targets $1" ;; | |
39353 | ||
39354 | esac | |
39355 | shift | |
39356 | done | |
39357 | ||
39358 | ac_configure_extra_args= | |
39359 | ||
39360 | if $ac_cs_silent; then | |
39361 | exec 6>/dev/null | |
39362 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
39363 | fi | |
39364 | ||
39365 | _ACEOF | |
39366 | cat >>$CONFIG_STATUS <<_ACEOF | |
39367 | if \$ac_cs_recheck; then | |
39368 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
39369 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
39370 | fi | |
39371 | ||
39372 | _ACEOF | |
39373 | ||
39374 | cat >>$CONFIG_STATUS <<_ACEOF | |
39375 | # | |
39376 | # INIT-COMMANDS section. | |
39377 | # | |
39378 | ||
39379 | ||
39380 | TOOLCHAIN_NAME="${TOOLCHAIN_NAME}" | |
39381 | LN_S="${LN_S}" | |
39382 | ||
39383 | ||
39384 | ||
39385 | _ACEOF | |
39386 | ||
39387 | ||
39388 | ||
39389 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39390 | for ac_config_target in $ac_config_targets | |
39391 | do | |
39392 | case "$ac_config_target" in | |
39393 | # Handling of arguments. | |
39394 | "wx-config" ) CONFIG_FILES="$CONFIG_FILES wx-config" ;; | |
39395 | "version-script" ) CONFIG_FILES="$CONFIG_FILES version-script" ;; | |
39396 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
39397 | "$mk" ) CONFIG_FILES="$CONFIG_FILES $mk" ;; | |
39398 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
39399 | "setup.h" ) CONFIG_HEADERS="$CONFIG_HEADERS setup.h" ;; | |
39400 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
39401 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
39402 | { (exit 1); exit 1; }; };; | |
39403 | esac | |
39404 | done | |
39405 | ||
39406 | # If the user did not use the arguments to specify the items to instantiate, | |
39407 | # then the envvar interface is used. Set only those that are not. | |
39408 | # We use the long form for the default assignment because of an extremely | |
39409 | # bizarre bug on SunOS 4.1.3. | |
39410 | if $ac_need_defaults; then | |
39411 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
39412 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
39413 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
39414 | fi | |
39415 | ||
39416 | # Have a temporary directory for convenience. Make it in the build tree | |
39417 | # simply because there is no reason to put it here, and in addition, | |
39418 | # creating and moving files from /tmp can sometimes cause problems. | |
39419 | # Create a temporary directory, and hook for its removal unless debugging. | |
39420 | $debug || | |
39421 | { | |
39422 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
39423 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
39424 | } | |
39425 | ||
39426 | # Create a (secure) tmp directory for tmp files. | |
39427 | ||
39428 | { | |
39429 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
39430 | test -n "$tmp" && test -d "$tmp" | |
39431 | } || | |
39432 | { | |
39433 | tmp=./confstat$$-$RANDOM | |
39434 | (umask 077 && mkdir $tmp) | |
39435 | } || | |
39436 | { | |
39437 | echo "$me: cannot create a temporary directory in ." >&2 | |
39438 | { (exit 1); exit 1; } | |
39439 | } | |
39440 | ||
39441 | _ACEOF | |
39442 | ||
39443 | cat >>$CONFIG_STATUS <<_ACEOF | |
39444 | ||
39445 | # | |
39446 | # CONFIG_FILES section. | |
39447 | # | |
39448 | ||
39449 | # No need to generate the scripts if there are no CONFIG_FILES. | |
39450 | # This happens for instance when ./config.status config.h | |
39451 | if test -n "\$CONFIG_FILES"; then | |
39452 | # Protect against being on the right side of a sed subst in config.status. | |
39453 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
39454 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
39455 | s,@SHELL@,$SHELL,;t t | |
39456 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
39457 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
39458 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
39459 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
39460 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
39461 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
39462 | s,@exec_prefix@,$exec_prefix,;t t | |
39463 | s,@prefix@,$prefix,;t t | |
39464 | s,@program_transform_name@,$program_transform_name,;t t | |
39465 | s,@bindir@,$bindir,;t t | |
39466 | s,@sbindir@,$sbindir,;t t | |
39467 | s,@libexecdir@,$libexecdir,;t t | |
39468 | s,@datadir@,$datadir,;t t | |
39469 | s,@sysconfdir@,$sysconfdir,;t t | |
39470 | s,@sharedstatedir@,$sharedstatedir,;t t | |
39471 | s,@localstatedir@,$localstatedir,;t t | |
39472 | s,@libdir@,$libdir,;t t | |
39473 | s,@includedir@,$includedir,;t t | |
39474 | s,@oldincludedir@,$oldincludedir,;t t | |
39475 | s,@infodir@,$infodir,;t t | |
39476 | s,@mandir@,$mandir,;t t | |
39477 | s,@build_alias@,$build_alias,;t t | |
39478 | s,@host_alias@,$host_alias,;t t | |
39479 | s,@target_alias@,$target_alias,;t t | |
39480 | s,@DEFS@,$DEFS,;t t | |
39481 | s,@ECHO_C@,$ECHO_C,;t t | |
39482 | s,@ECHO_N@,$ECHO_N,;t t | |
39483 | s,@ECHO_T@,$ECHO_T,;t t | |
39484 | s,@LIBS@,$LIBS,;t t | |
39485 | s,@build@,$build,;t t | |
39486 | s,@build_cpu@,$build_cpu,;t t | |
39487 | s,@build_vendor@,$build_vendor,;t t | |
39488 | s,@build_os@,$build_os,;t t | |
39489 | s,@host@,$host,;t t | |
39490 | s,@host_cpu@,$host_cpu,;t t | |
39491 | s,@host_vendor@,$host_vendor,;t t | |
39492 | s,@host_os@,$host_os,;t t | |
39493 | s,@target@,$target,;t t | |
39494 | s,@target_cpu@,$target_cpu,;t t | |
39495 | s,@target_vendor@,$target_vendor,;t t | |
39496 | s,@target_os@,$target_os,;t t | |
39497 | s,@CC@,$CC,;t t | |
39498 | s,@CFLAGS@,$CFLAGS,;t t | |
39499 | s,@LDFLAGS@,$LDFLAGS,;t t | |
39500 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
39501 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
39502 | s,@EXEEXT@,$EXEEXT,;t t | |
39503 | s,@OBJEXT@,$OBJEXT,;t t | |
39504 | s,@CPP@,$CPP,;t t | |
39505 | s,@EGREP@,$EGREP,;t t | |
39506 | s,@CXX@,$CXX,;t t | |
39507 | s,@CXXFLAGS@,$CXXFLAGS,;t t | |
39508 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | |
39509 | s,@RANLIB@,$RANLIB,;t t | |
39510 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
39511 | s,@AR@,$AR,;t t | |
39512 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
39513 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
39514 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
39515 | s,@STRIP@,$STRIP,;t t | |
39516 | s,@IF_GNU_MAKE@,$IF_GNU_MAKE,;t t | |
39517 | s,@LN_S@,$LN_S,;t t | |
39518 | s,@CXXCPP@,$CXXCPP,;t t | |
39519 | s,@subdirs@,$subdirs,;t t | |
39520 | s,@PKG_CONFIG@,$PKG_CONFIG,;t t | |
39521 | s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t | |
39522 | s,@GTK_LIBS@,$GTK_LIBS,;t t | |
39523 | s,@GTK_CONFIG@,$GTK_CONFIG,;t t | |
39524 | s,@PANGOFT2_CFLAGS@,$PANGOFT2_CFLAGS,;t t | |
39525 | s,@PANGOFT2_LIBS@,$PANGOFT2_LIBS,;t t | |
39526 | s,@X_CFLAGS@,$X_CFLAGS,;t t | |
39527 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t | |
39528 | s,@X_LIBS@,$X_LIBS,;t t | |
39529 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t | |
39530 | s,@PANGOX_CFLAGS@,$PANGOX_CFLAGS,;t t | |
39531 | s,@PANGOX_LIBS@,$PANGOX_LIBS,;t t | |
39532 | s,@PANGOXFT_CFLAGS@,$PANGOXFT_CFLAGS,;t t | |
39533 | s,@PANGOXFT_LIBS@,$PANGOXFT_LIBS,;t t | |
39534 | s,@RESCOMP@,$RESCOMP,;t t | |
39535 | s,@DEREZ@,$DEREZ,;t t | |
39536 | s,@SETFILE@,$SETFILE,;t t | |
39537 | s,@LIBICONV@,$LIBICONV,;t t | |
39538 | s,@EXTRALIBS_ESD@,$EXTRALIBS_ESD,;t t | |
39539 | s,@SDL_CONFIG@,$SDL_CONFIG,;t t | |
39540 | s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t | |
39541 | s,@SDL_LIBS@,$SDL_LIBS,;t t | |
39542 | s,@CORE_BASE_LIBS@,$CORE_BASE_LIBS,;t t | |
39543 | s,@CORE_GUI_LIBS@,$CORE_GUI_LIBS,;t t | |
39544 | s,@wxUSE_ZLIB@,$wxUSE_ZLIB,;t t | |
39545 | s,@wxUSE_REGEX@,$wxUSE_REGEX,;t t | |
39546 | s,@wxUSE_EXPAT@,$wxUSE_EXPAT,;t t | |
39547 | s,@wxUSE_ODBC@,$wxUSE_ODBC,;t t | |
39548 | s,@wxUSE_LIBJPEG@,$wxUSE_LIBJPEG,;t t | |
39549 | s,@wxUSE_LIBPNG@,$wxUSE_LIBPNG,;t t | |
39550 | s,@wxUSE_LIBTIFF@,$wxUSE_LIBTIFF,;t t | |
39551 | s,@VENDOR@,$VENDOR,;t t | |
39552 | s,@OFFICIAL_BUILD@,$OFFICIAL_BUILD,;t t | |
39553 | s,@WXUNIV@,$WXUNIV,;t t | |
39554 | s,@MONOLITHIC@,$MONOLITHIC,;t t | |
39555 | s,@USE_PLUGINS@,$USE_PLUGINS,;t t | |
39556 | s,@EXTRALIBS@,$EXTRALIBS,;t t | |
39557 | s,@EXTRALIBS_XML@,$EXTRALIBS_XML,;t t | |
39558 | s,@EXTRALIBS_HTML@,$EXTRALIBS_HTML,;t t | |
39559 | s,@EXTRALIBS_ODBC@,$EXTRALIBS_ODBC,;t t | |
39560 | s,@EXTRALIBS_GUI@,$EXTRALIBS_GUI,;t t | |
39561 | s,@EXTRALIBS_OPENGL@,$EXTRALIBS_OPENGL,;t t | |
39562 | s,@EXTRALIBS_SDL@,$EXTRALIBS_SDL,;t t | |
39563 | s,@WITH_PLUGIN_SDL@,$WITH_PLUGIN_SDL,;t t | |
39564 | s,@UNICODE@,$UNICODE,;t t | |
39565 | s,@BUILD@,$BUILD,;t t | |
39566 | s,@DEBUG_INFO@,$DEBUG_INFO,;t t | |
39567 | s,@DEBUG_FLAG@,$DEBUG_FLAG,;t t | |
39568 | s,@SHARED@,$SHARED,;t t | |
39569 | s,@TOOLKIT_LOWERCASE@,$TOOLKIT_LOWERCASE,;t t | |
39570 | s,@TOOLKIT_VERSION@,$TOOLKIT_VERSION,;t t | |
39571 | s,@SAMPLES_RPATH_FLAG@,$SAMPLES_RPATH_FLAG,;t t | |
39572 | s,@SAMPLES_RPATH_POSTLINK@,$SAMPLES_RPATH_POSTLINK,;t t | |
39573 | s,@HOST_SUFFIX@,$HOST_SUFFIX,;t t | |
39574 | s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t | |
39575 | s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t | |
39576 | s,@SET_MAKE@,$SET_MAKE,;t t | |
39577 | s,@MAKE_SET@,$MAKE_SET,;t t | |
39578 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
39579 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
39580 | s,@NM@,$NM,;t t | |
39581 | s,@ac_ct_NM@,$ac_ct_NM,;t t | |
39582 | s,@INSTALL_DIR@,$INSTALL_DIR,;t t | |
39583 | s,@LDFLAGS_GUI@,$LDFLAGS_GUI,;t t | |
39584 | s,@PLATFORM_UNIX@,$PLATFORM_UNIX,;t t | |
39585 | s,@PLATFORM_WIN32@,$PLATFORM_WIN32,;t t | |
39586 | s,@PLATFORM_MSDOS@,$PLATFORM_MSDOS,;t t | |
39587 | s,@PLATFORM_MAC@,$PLATFORM_MAC,;t t | |
39588 | s,@PLATFORM_MACOSX@,$PLATFORM_MACOSX,;t t | |
39589 | s,@PLATFORM_OS2@,$PLATFORM_OS2,;t t | |
39590 | s,@SO_SUFFIX@,$SO_SUFFIX,;t t | |
39591 | s,@SO_SUFFIX_MODULE@,$SO_SUFFIX_MODULE,;t t | |
39592 | s,@DLLIMP_SUFFIX@,$DLLIMP_SUFFIX,;t t | |
39593 | s,@LIBPREFIX@,$LIBPREFIX,;t t | |
39594 | s,@LIBEXT@,$LIBEXT,;t t | |
39595 | s,@DLLPREFIX@,$DLLPREFIX,;t t | |
39596 | s,@DLLPREFIX_MODULE@,$DLLPREFIX_MODULE,;t t | |
39597 | s,@AIX_CXX_LD@,$AIX_CXX_LD,;t t | |
39598 | s,@SHARED_LD_CC@,$SHARED_LD_CC,;t t | |
39599 | s,@SHARED_LD_CXX@,$SHARED_LD_CXX,;t t | |
39600 | s,@SHARED_LD_MODULE_CC@,$SHARED_LD_MODULE_CC,;t t | |
39601 | s,@SHARED_LD_MODULE_CXX@,$SHARED_LD_MODULE_CXX,;t t | |
39602 | s,@PIC_FLAG@,$PIC_FLAG,;t t | |
39603 | s,@USE_SOVERSION@,$USE_SOVERSION,;t t | |
39604 | s,@USE_SOVERLINUX@,$USE_SOVERLINUX,;t t | |
39605 | s,@USE_SOVERSOLARIS@,$USE_SOVERSOLARIS,;t t | |
39606 | s,@USE_MACVERSION@,$USE_MACVERSION,;t t | |
39607 | s,@USE_SOSYMLINKS@,$USE_SOSYMLINKS,;t t | |
39608 | s,@SONAME_FLAG@,$SONAME_FLAG,;t t | |
39609 | s,@DEPS_TRACKING@,$DEPS_TRACKING,;t t | |
39610 | s,@GCC_PCH@,$GCC_PCH,;t t | |
39611 | s,@COND_BUILD_DEBUG@,$COND_BUILD_DEBUG,;t t | |
39612 | s,@COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT,;t t | |
39613 | s,@COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT@,$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT,;t t | |
39614 | s,@COND_BUILD_DEBUG_UNICODE_0@,$COND_BUILD_DEBUG_UNICODE_0,;t t | |
39615 | s,@COND_BUILD_DEBUG_UNICODE_1@,$COND_BUILD_DEBUG_UNICODE_1,;t t | |
39616 | s,@COND_BUILD_RELEASE@,$COND_BUILD_RELEASE,;t t | |
39617 | s,@COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT@,$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT,;t t | |
39618 | s,@COND_BUILD_RELEASE_UNICODE_0@,$COND_BUILD_RELEASE_UNICODE_0,;t t | |
39619 | s,@COND_BUILD_RELEASE_UNICODE_1@,$COND_BUILD_RELEASE_UNICODE_1,;t t | |
39620 | s,@COND_DEBUG_FLAG_1@,$COND_DEBUG_FLAG_1,;t t | |
39621 | s,@COND_DEBUG_INFO_0@,$COND_DEBUG_INFO_0,;t t | |
39622 | s,@COND_DEBUG_INFO_1@,$COND_DEBUG_INFO_1,;t t | |
39623 | s,@COND_DEPS_TRACKING_0@,$COND_DEPS_TRACKING_0,;t t | |
39624 | s,@COND_DEPS_TRACKING_1@,$COND_DEPS_TRACKING_1,;t t | |
39625 | s,@COND_GCC_PCH_1@,$COND_GCC_PCH_1,;t t | |
39626 | s,@COND_MONOLITHIC_0@,$COND_MONOLITHIC_0,;t t | |
39627 | s,@COND_MONOLITHIC_0_SHARED_0@,$COND_MONOLITHIC_0_SHARED_0,;t t | |
39628 | s,@COND_MONOLITHIC_0_SHARED_0_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1,;t t | |
39629 | 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 | |
39630 | s,@COND_MONOLITHIC_0_SHARED_0_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_0_USE_HTML_1,;t t | |
39631 | s,@COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1,;t t | |
39632 | s,@COND_MONOLITHIC_0_SHARED_1@,$COND_MONOLITHIC_0_SHARED_1,;t t | |
39633 | s,@COND_MONOLITHIC_0_SHARED_1_USE_GUI_1@,$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1,;t t | |
39634 | 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 | |
39635 | s,@COND_MONOLITHIC_0_SHARED_1_USE_HTML_1@,$COND_MONOLITHIC_0_SHARED_1_USE_HTML_1,;t t | |
39636 | s,@COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1@,$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1,;t t | |
39637 | s,@COND_MONOLITHIC_0_USE_ODBC_1@,$COND_MONOLITHIC_0_USE_ODBC_1,;t t | |
39638 | s,@COND_MONOLITHIC_1@,$COND_MONOLITHIC_1,;t t | |
39639 | s,@COND_MONOLITHIC_1_SHARED_0@,$COND_MONOLITHIC_1_SHARED_0,;t t | |
39640 | s,@COND_MONOLITHIC_1_SHARED_1@,$COND_MONOLITHIC_1_SHARED_1,;t t | |
39641 | s,@COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1,;t t | |
39642 | s,@COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1@,$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1,;t t | |
39643 | s,@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1,;t t | |
39644 | s,@COND_PLATFORM_MACOSX_1@,$COND_PLATFORM_MACOSX_1,;t t | |
39645 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA@,$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA,;t t | |
39646 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_GTK@,$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK,;t t | |
39647 | s,@COND_PLATFORM_MACOSX_1_TOOLKIT_MAC@,$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC,;t t | |
39648 | s,@COND_PLATFORM_MACOSX_1_USE_GUI_1@,$COND_PLATFORM_MACOSX_1_USE_GUI_1,;t t | |
39649 | s,@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@,$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1,;t t | |
39650 | s,@COND_PLATFORM_MAC_1@,$COND_PLATFORM_MAC_1,;t t | |
39651 | s,@COND_PLATFORM_OS2_1@,$COND_PLATFORM_OS2_1,;t t | |
39652 | s,@COND_PLATFORM_UNIX_0@,$COND_PLATFORM_UNIX_0,;t t | |
39653 | s,@COND_PLATFORM_UNIX_1@,$COND_PLATFORM_UNIX_1,;t t | |
39654 | s,@COND_PLATFORM_UNIX_1_USE_GUI_1@,$COND_PLATFORM_UNIX_1_USE_GUI_1,;t t | |
39655 | s,@COND_PLATFORM_UNIX_1_USE_PLUGINS_0@,$COND_PLATFORM_UNIX_1_USE_PLUGINS_0,;t t | |
39656 | s,@COND_PLATFORM_WIN32_0@,$COND_PLATFORM_WIN32_0,;t t | |
39657 | s,@COND_PLATFORM_WIN32_1@,$COND_PLATFORM_WIN32_1,;t t | |
39658 | s,@COND_SHARED_0@,$COND_SHARED_0,;t t | |
39659 | s,@COND_SHARED_0_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1,;t t | |
39660 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
39661 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
39662 | s,@COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
39663 | s,@COND_SHARED_0_WXUSE_EXPAT_BUILTIN@,$COND_SHARED_0_WXUSE_EXPAT_BUILTIN,;t t | |
39664 | s,@COND_SHARED_0_WXUSE_ODBC_BUILTIN@,$COND_SHARED_0_WXUSE_ODBC_BUILTIN,;t t | |
39665 | s,@COND_SHARED_0_WXUSE_REGEX_BUILTIN@,$COND_SHARED_0_WXUSE_REGEX_BUILTIN,;t t | |
39666 | s,@COND_SHARED_0_WXUSE_ZLIB_BUILTIN@,$COND_SHARED_0_WXUSE_ZLIB_BUILTIN,;t t | |
39667 | s,@COND_SHARED_1@,$COND_SHARED_1,;t t | |
39668 | s,@COND_SHARED_1_USE_GUI_1_USE_OPENGL_1@,$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1,;t t | |
39669 | s,@COND_TOOLKIT_COCOA@,$COND_TOOLKIT_COCOA,;t t | |
39670 | s,@COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0,;t t | |
39671 | s,@COND_TOOLKIT_GTK@,$COND_TOOLKIT_GTK,;t t | |
39672 | s,@COND_TOOLKIT_GTK_USE_GUI_1@,$COND_TOOLKIT_GTK_USE_GUI_1,;t t | |
39673 | s,@COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_GTK_USE_GUI_1_WXUNIV_0,;t t | |
39674 | s,@COND_TOOLKIT_MAC@,$COND_TOOLKIT_MAC,;t t | |
39675 | s,@COND_TOOLKIT_MAC_USE_GUI_1@,$COND_TOOLKIT_MAC_USE_GUI_1,;t t | |
39676 | s,@COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0,;t t | |
39677 | s,@COND_TOOLKIT_MGL@,$COND_TOOLKIT_MGL,;t t | |
39678 | s,@COND_TOOLKIT_MGL_USE_GUI_1@,$COND_TOOLKIT_MGL_USE_GUI_1,;t t | |
39679 | s,@COND_TOOLKIT_MOTIF@,$COND_TOOLKIT_MOTIF,;t t | |
39680 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1@,$COND_TOOLKIT_MOTIF_USE_GUI_1,;t t | |
39681 | s,@COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0,;t t | |
39682 | s,@COND_TOOLKIT_MSW@,$COND_TOOLKIT_MSW,;t t | |
39683 | s,@COND_TOOLKIT_MSW_USE_GUI_1@,$COND_TOOLKIT_MSW_USE_GUI_1,;t t | |
39684 | s,@COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0,;t t | |
39685 | s,@COND_TOOLKIT_PM@,$COND_TOOLKIT_PM,;t t | |
39686 | s,@COND_TOOLKIT_PM_USE_GUI_1@,$COND_TOOLKIT_PM_USE_GUI_1,;t t | |
39687 | s,@COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0,;t t | |
3fd9c298 DE |
39688 | s,@COND_TOOLKIT_WINCE@,$COND_TOOLKIT_WINCE,;t t |
39689 | s,@COND_TOOLKIT_WINCE_USE_GUI_1@,$COND_TOOLKIT_WINCE_USE_GUI_1,;t t | |
39690 | s,@COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0@,$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0,;t t | |
a848cd7e SC |
39691 | s,@COND_TOOLKIT_X11@,$COND_TOOLKIT_X11,;t t |
39692 | s,@COND_TOOLKIT_X11_USE_GUI_1@,$COND_TOOLKIT_X11_USE_GUI_1,;t t | |
39693 | s,@COND_UNICODE_1@,$COND_UNICODE_1,;t t | |
39694 | s,@COND_USE_EXCEPTIONS_0@,$COND_USE_EXCEPTIONS_0,;t t | |
39695 | s,@COND_USE_EXCEPTIONS_1@,$COND_USE_EXCEPTIONS_1,;t t | |
39696 | s,@COND_USE_GUI_0@,$COND_USE_GUI_0,;t t | |
39697 | s,@COND_USE_GUI_1@,$COND_USE_GUI_1,;t t | |
39698 | s,@COND_USE_GUI_1_WXUNIV_0@,$COND_USE_GUI_1_WXUNIV_0,;t t | |
39699 | s,@COND_USE_GUI_1_WXUNIV_1@,$COND_USE_GUI_1_WXUNIV_1,;t t | |
39700 | s,@COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN,;t t | |
39701 | s,@COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN,;t t | |
39702 | s,@COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN@,$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN,;t t | |
39703 | s,@COND_USE_ODBC_1@,$COND_USE_ODBC_1,;t t | |
39704 | s,@COND_USE_PLUGINS_0@,$COND_USE_PLUGINS_0,;t t | |
39705 | s,@COND_USE_SOSYMLINKS_1@,$COND_USE_SOSYMLINKS_1,;t t | |
39706 | s,@COND_USE_SOVERLINUX_1@,$COND_USE_SOVERLINUX_1,;t t | |
39707 | s,@COND_USE_SOVERSION_0@,$COND_USE_SOVERSION_0,;t t | |
39708 | s,@COND_USE_SOVERSOLARIS_1@,$COND_USE_SOVERSOLARIS_1,;t t | |
39709 | s,@COND_WITH_PLUGIN_SDL_1@,$COND_WITH_PLUGIN_SDL_1,;t t | |
39710 | s,@COND_WITH_SDL_1@,$COND_WITH_SDL_1,;t t | |
39711 | s,@COND_WXUNIV_1@,$COND_WXUNIV_1,;t t | |
39712 | s,@COND_WXUSE_EXPAT_BUILTIN@,$COND_WXUSE_EXPAT_BUILTIN,;t t | |
39713 | s,@COND_WXUSE_LIBJPEG_BUILTIN@,$COND_WXUSE_LIBJPEG_BUILTIN,;t t | |
39714 | s,@COND_WXUSE_LIBPNG_BUILTIN@,$COND_WXUSE_LIBPNG_BUILTIN,;t t | |
39715 | s,@COND_WXUSE_LIBTIFF_BUILTIN@,$COND_WXUSE_LIBTIFF_BUILTIN,;t t | |
39716 | s,@COND_WXUSE_ODBC_BUILTIN@,$COND_WXUSE_ODBC_BUILTIN,;t t | |
39717 | s,@COND_WXUSE_REGEX_BUILTIN@,$COND_WXUSE_REGEX_BUILTIN,;t t | |
39718 | s,@COND_WXUSE_ZLIB_BUILTIN@,$COND_WXUSE_ZLIB_BUILTIN,;t t | |
39719 | s,@PATH_IFS@,$PATH_IFS,;t t | |
39720 | s,@WX_MAJOR_VERSION_NUMBER@,$WX_MAJOR_VERSION_NUMBER,;t t | |
39721 | s,@WX_MINOR_VERSION_NUMBER@,$WX_MINOR_VERSION_NUMBER,;t t | |
39722 | s,@WX_RELEASE_NUMBER@,$WX_RELEASE_NUMBER,;t t | |
39723 | s,@WX_LIBRARY_NAME_STATIC@,$WX_LIBRARY_NAME_STATIC,;t t | |
39724 | s,@WX_LIBRARY_NAME_SHARED@,$WX_LIBRARY_NAME_SHARED,;t t | |
39725 | s,@WX_LIBRARY_BASENAME_NOGUI@,$WX_LIBRARY_BASENAME_NOGUI,;t t | |
39726 | s,@WX_LIBRARY_BASENAME_GUI@,$WX_LIBRARY_BASENAME_GUI,;t t | |
39727 | s,@WX_LIBRARY_IMPORTLIB@,$WX_LIBRARY_IMPORTLIB,;t t | |
39728 | s,@WX_TARGET_LIBRARY@,$WX_TARGET_LIBRARY,;t t | |
39729 | s,@WX_LIBRARY_LINK1@,$WX_LIBRARY_LINK1,;t t | |
39730 | s,@WX_LIBRARY_LINK2@,$WX_LIBRARY_LINK2,;t t | |
39731 | s,@PROGRAM_EXT@,$PROGRAM_EXT,;t t | |
39732 | s,@WX_LIBRARY_NAME_STATIC_GL@,$WX_LIBRARY_NAME_STATIC_GL,;t t | |
39733 | s,@WX_LIBRARY_NAME_SHARED_GL@,$WX_LIBRARY_NAME_SHARED_GL,;t t | |
39734 | s,@WX_TARGET_LIBRARY_GL@,$WX_TARGET_LIBRARY_GL,;t t | |
39735 | s,@WX_LIBRARY_LINK1_GL@,$WX_LIBRARY_LINK1_GL,;t t | |
39736 | s,@WX_LIBRARY_LINK2_GL@,$WX_LIBRARY_LINK2_GL,;t t | |
39737 | s,@WX_ALL@,$WX_ALL,;t t | |
39738 | s,@WX_ALL_INSTALLED@,$WX_ALL_INSTALLED,;t t | |
39739 | s,@SHARED_LD@,$SHARED_LD,;t t | |
39740 | s,@WX_TARGET_LIBRARY_TYPE@,$WX_TARGET_LIBRARY_TYPE,;t t | |
39741 | s,@STATIC_FLAG@,$STATIC_FLAG,;t t | |
39742 | s,@WXDEBUG_DEFINE@,$WXDEBUG_DEFINE,;t t | |
39743 | s,@USE_GUI@,$USE_GUI,;t t | |
39744 | s,@AFMINSTALL@,$AFMINSTALL,;t t | |
39745 | s,@WIN32INSTALL@,$WIN32INSTALL,;t t | |
39746 | s,@TOOLKIT@,$TOOLKIT,;t t | |
39747 | s,@TOOLKIT_DIR@,$TOOLKIT_DIR,;t t | |
39748 | s,@TOOLKIT_VPATH@,$TOOLKIT_VPATH,;t t | |
39749 | s,@TOOLCHAIN_NAME@,$TOOLCHAIN_NAME,;t t | |
39750 | s,@TOOLCHAIN_DEFS@,$TOOLCHAIN_DEFS,;t t | |
39751 | s,@TOOLCHAIN_DLL_DEFS@,$TOOLCHAIN_DLL_DEFS,;t t | |
39752 | s,@top_builddir_wxconfig@,$top_builddir_wxconfig,;t t | |
39753 | s,@cross_compiling@,$cross_compiling,;t t | |
39754 | s,@WXCONFIG_EXTRALIBS@,$WXCONFIG_EXTRALIBS,;t t | |
39755 | s,@WXCONFIG_LIBS@,$WXCONFIG_LIBS,;t t | |
39756 | s,@WXCONFIG_LIBS_GL@,$WXCONFIG_LIBS_GL,;t t | |
39757 | s,@WXCONFIG_LIBS_STATIC@,$WXCONFIG_LIBS_STATIC,;t t | |
39758 | s,@WXCONFIG_LIBS_STATIC_GL@,$WXCONFIG_LIBS_STATIC_GL,;t t | |
39759 | s,@WXCONFIG_INCLUDE@,$WXCONFIG_INCLUDE,;t t | |
39760 | s,@WXCONFIG_RPATH@,$WXCONFIG_RPATH,;t t | |
39761 | s,@WXCONFIG_LDFLAGS_GUI@,$WXCONFIG_LDFLAGS_GUI,;t t | |
39762 | s,@WX_LARGEFILE_FLAGS@,$WX_LARGEFILE_FLAGS,;t t | |
39763 | s,@CODE_GEN_FLAGS@,$CODE_GEN_FLAGS,;t t | |
39764 | s,@CODE_GEN_FLAGS_CXX@,$CODE_GEN_FLAGS_CXX,;t t | |
39765 | s,@ALL_OBJECTS@,$ALL_OBJECTS,;t t | |
39766 | s,@ALL_HEADERS@,$ALL_HEADERS,;t t | |
39767 | s,@ALL_SOURCES@,$ALL_SOURCES,;t t | |
39768 | s,@GUIDIST@,$GUIDIST,;t t | |
39769 | s,@PORT_FILES@,$PORT_FILES,;t t | |
39770 | s,@DISTDIR@,$DISTDIR,;t t | |
39771 | s,@SAMPLES_SUBDIRS@,$SAMPLES_SUBDIRS,;t t | |
39772 | s,@LDFLAGS_GL@,$LDFLAGS_GL,;t t | |
39773 | s,@LDFLAGS_VERSIONING@,$LDFLAGS_VERSIONING,;t t | |
39774 | s,@LDFLAGS_EXE@,$LDFLAGS_EXE,;t t | |
39775 | s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t | |
39776 | s,@DMALLOC_LIBS@,$DMALLOC_LIBS,;t t | |
39777 | s,@WX_VERSION_TAG@,$WX_VERSION_TAG,;t t | |
39778 | s,@RESFLAGS@,$RESFLAGS,;t t | |
39779 | s,@RESPROGRAMOBJ@,$RESPROGRAMOBJ,;t t | |
39780 | s,@WX_RESOURCES_MACOSX_ASCII@,$WX_RESOURCES_MACOSX_ASCII,;t t | |
39781 | s,@WX_RESOURCES_MACOSX_DATA@,$WX_RESOURCES_MACOSX_DATA,;t t | |
39782 | s,@LIBWXMACRES@,$LIBWXMACRES,;t t | |
39783 | s,@MACRESCOMP@,$MACRESCOMP,;t t | |
39784 | s,@MACSETFILE@,$MACSETFILE,;t t | |
39785 | s,@MACRESWXCONFIG@,$MACRESWXCONFIG,;t t | |
39786 | s,@GCC@,$GCC,;t t | |
39787 | s,@GCC_SEARCHES_USR_LOCAL_INCLUDE@,$GCC_SEARCHES_USR_LOCAL_INCLUDE,;t t | |
39788 | s,@DLLTOOL@,$DLLTOOL,;t t | |
39789 | s,@AS@,$AS,;t t | |
39790 | s,@LD@,$LD,;t t | |
39791 | s,@MAKEINFO@,$MAKEINFO,;t t | |
39792 | s,@INSTALL_LIBRARY@,$INSTALL_LIBRARY,;t t | |
39793 | s,@CPPUNIT_CONFIG@,$CPPUNIT_CONFIG,;t t | |
39794 | s,@LIBOBJS@,$LIBOBJS,;t t | |
39795 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
39796 | CEOF | |
39797 | ||
39798 | _ACEOF | |
39799 | ||
39800 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39801 | # Split the substitutions into bite-sized pieces for seds with | |
39802 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
39803 | ac_max_sed_lines=48 | |
39804 | ac_sed_frag=1 # Number of current file. | |
39805 | ac_beg=1 # First line for current file. | |
39806 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
39807 | ac_more_lines=: | |
39808 | ac_sed_cmds= | |
39809 | while $ac_more_lines; do | |
39810 | if test $ac_beg -gt 1; then | |
39811 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
39812 | else | |
39813 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
39814 | fi | |
39815 | if test ! -s $tmp/subs.frag; then | |
39816 | ac_more_lines=false | |
39817 | else | |
39818 | # The purpose of the label and of the branching condition is to | |
39819 | # speed up the sed processing (if there are no `@' at all, there | |
39820 | # is no need to browse any of the substitutions). | |
39821 | # These are the two extra sed commands mentioned above. | |
39822 | (echo ':t | |
39823 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
39824 | if test -z "$ac_sed_cmds"; then | |
8a7b1113 | 39825 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e | 39826 | else |
8a7b1113 | 39827 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" |
a848cd7e SC |
39828 | fi |
39829 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
39830 | ac_beg=$ac_end | |
39831 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
39832 | fi | |
39833 | done | |
39834 | if test -z "$ac_sed_cmds"; then | |
39835 | ac_sed_cmds=cat | |
39836 | fi | |
39837 | fi # test -n "$CONFIG_FILES" | |
39838 | ||
39839 | _ACEOF | |
39840 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39841 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
39842 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
39843 | case $ac_file in | |
39844 | - | *:- | *:-:* ) # input from stdin | |
8a7b1113 VZ |
39845 | cat >$tmp/stdin |
39846 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
39847 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 39848 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8a7b1113 | 39849 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
39850 | * ) ac_file_in=$ac_file.in ;; |
39851 | esac | |
39852 | ||
39853 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
39854 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
39855 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a7b1113 VZ |
39856 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
39857 | X"$ac_file" : 'X\(//\)$' \| \ | |
39858 | X"$ac_file" : 'X\(/\)' \| \ | |
39859 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
39860 | echo X"$ac_file" | |
39861 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
39862 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
39863 | /^X\(\/\/\)$/{ s//\1/; q; } | |
39864 | /^X\(\/\).*/{ s//\1/; q; } | |
39865 | s/.*/./; q'` | |
39866 | { if $as_mkdir_p; then | |
39867 | mkdir -p "$ac_dir" | |
39868 | else | |
39869 | as_dir="$ac_dir" | |
39870 | as_dirs= | |
39871 | while test ! -d "$as_dir"; do | |
39872 | as_dirs="$as_dir $as_dirs" | |
39873 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
39874 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a7b1113 VZ |
39875 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
39876 | X"$as_dir" : 'X\(//\)$' \| \ | |
39877 | X"$as_dir" : 'X\(/\)' \| \ | |
39878 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
39879 | echo X"$as_dir" | |
39880 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
39881 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
39882 | /^X\(\/\/\)$/{ s//\1/; q; } | |
39883 | /^X\(\/\).*/{ s//\1/; q; } | |
39884 | s/.*/./; q'` | |
39885 | done | |
39886 | test ! -n "$as_dirs" || mkdir $as_dirs | |
39887 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
39888 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
39889 | { (exit 1); exit 1; }; }; } | |
39890 | ||
39891 | ac_builddir=. | |
39892 | ||
39893 | if test "$ac_dir" != .; then | |
39894 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
39895 | # A "../" for each directory in $ac_dir_suffix. | |
39896 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
39897 | else | |
39898 | ac_dir_suffix= ac_top_builddir= | |
39899 | fi | |
39900 | ||
39901 | case $srcdir in | |
39902 | .) # No --srcdir option. We are building in place. | |
39903 | ac_srcdir=. | |
39904 | if test -z "$ac_top_builddir"; then | |
39905 | ac_top_srcdir=. | |
39906 | else | |
39907 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
39908 | fi ;; | |
39909 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
39910 | ac_srcdir=$srcdir$ac_dir_suffix; | |
39911 | ac_top_srcdir=$srcdir ;; | |
39912 | *) # Relative path. | |
39913 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
39914 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
39915 | esac | |
8a7b1113 VZ |
39916 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
39917 | # absolute. | |
39918 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
39919 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
39920 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
39921 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
a848cd7e SC |
39922 | |
39923 | ||
39924 | case $INSTALL in | |
39925 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
39926 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
39927 | esac | |
39928 | ||
dcc1b6ad VS |
39929 | if test x"$ac_file" != x-; then |
39930 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
39931 | echo "$as_me: creating $ac_file" >&6;} | |
39932 | rm -f "$ac_file" | |
39933 | fi | |
a848cd7e SC |
39934 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
39935 | # use $as_me), people would be surprised to read: | |
39936 | # /* config.h. Generated by config.status. */ | |
39937 | if test x"$ac_file" = x-; then | |
39938 | configure_input= | |
39939 | else | |
39940 | configure_input="$ac_file. " | |
39941 | fi | |
39942 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
8a7b1113 | 39943 | sed 's,.*/,,'` by configure." |
a848cd7e SC |
39944 | |
39945 | # First look for the input files in the build tree, otherwise in the | |
39946 | # src tree. | |
39947 | ac_file_inputs=`IFS=: | |
39948 | for f in $ac_file_in; do | |
39949 | case $f in | |
39950 | -) echo $tmp/stdin ;; | |
39951 | [\\/$]*) | |
8a7b1113 VZ |
39952 | # Absolute (can't be DOS-style, as IFS=:) |
39953 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
39954 | echo "$as_me: error: cannot find input file: $f" >&2;} |
39955 | { (exit 1); exit 1; }; } | |
8a7b1113 | 39956 | echo $f;; |
a848cd7e | 39957 | *) # Relative |
8a7b1113 VZ |
39958 | if test -f "$f"; then |
39959 | # Build tree | |
39960 | echo $f | |
39961 | elif test -f "$srcdir/$f"; then | |
39962 | # Source tree | |
39963 | echo $srcdir/$f | |
39964 | else | |
39965 | # /dev/null tree | |
39966 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
39967 | echo "$as_me: error: cannot find input file: $f" >&2;} |
39968 | { (exit 1); exit 1; }; } | |
8a7b1113 | 39969 | fi;; |
a848cd7e SC |
39970 | esac |
39971 | done` || { (exit 1); exit 1; } | |
39972 | _ACEOF | |
39973 | cat >>$CONFIG_STATUS <<_ACEOF | |
39974 | sed "$ac_vpsub | |
39975 | $extrasub | |
39976 | _ACEOF | |
39977 | cat >>$CONFIG_STATUS <<\_ACEOF | |
39978 | :t | |
39979 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
39980 | s,@configure_input@,$configure_input,;t t | |
39981 | s,@srcdir@,$ac_srcdir,;t t | |
39982 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
39983 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
39984 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
39985 | s,@builddir@,$ac_builddir,;t t | |
39986 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
39987 | s,@top_builddir@,$ac_top_builddir,;t t | |
39988 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
39989 | s,@INSTALL@,$ac_INSTALL,;t t | |
39990 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
39991 | rm -f $tmp/stdin | |
39992 | if test x"$ac_file" != x-; then | |
39993 | mv $tmp/out $ac_file | |
39994 | else | |
39995 | cat $tmp/out | |
39996 | rm -f $tmp/out | |
39997 | fi | |
39998 | ||
39999 | done | |
40000 | _ACEOF | |
40001 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40002 | ||
40003 | # | |
40004 | # CONFIG_HEADER section. | |
40005 | # | |
40006 | ||
40007 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
40008 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
40009 | # | |
40010 | # ac_d sets the value in "#define NAME VALUE" lines. | |
8a7b1113 VZ |
40011 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
40012 | ac_dB='[ ].*$,\1#\2' | |
a848cd7e SC |
40013 | ac_dC=' ' |
40014 | ac_dD=',;t' | |
40015 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
8a7b1113 | 40016 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
a848cd7e SC |
40017 | ac_uB='$,\1#\2define\3' |
40018 | ac_uC=' ' | |
40019 | ac_uD=',;t' | |
40020 | ||
40021 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
40022 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
40023 | case $ac_file in | |
40024 | - | *:- | *:-:* ) # input from stdin | |
8a7b1113 VZ |
40025 | cat >$tmp/stdin |
40026 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
40027 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
a848cd7e | 40028 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
8a7b1113 | 40029 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
a848cd7e SC |
40030 | * ) ac_file_in=$ac_file.in ;; |
40031 | esac | |
40032 | ||
40033 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
40034 | echo "$as_me: creating $ac_file" >&6;} | |
40035 | ||
40036 | # First look for the input files in the build tree, otherwise in the | |
40037 | # src tree. | |
40038 | ac_file_inputs=`IFS=: | |
40039 | for f in $ac_file_in; do | |
40040 | case $f in | |
40041 | -) echo $tmp/stdin ;; | |
40042 | [\\/$]*) | |
8a7b1113 VZ |
40043 | # Absolute (can't be DOS-style, as IFS=:) |
40044 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
40045 | echo "$as_me: error: cannot find input file: $f" >&2;} |
40046 | { (exit 1); exit 1; }; } | |
8a7b1113 | 40047 | echo $f;; |
a848cd7e | 40048 | *) # Relative |
8a7b1113 VZ |
40049 | if test -f "$f"; then |
40050 | # Build tree | |
40051 | echo $f | |
40052 | elif test -f "$srcdir/$f"; then | |
40053 | # Source tree | |
40054 | echo $srcdir/$f | |
40055 | else | |
40056 | # /dev/null tree | |
40057 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
a848cd7e SC |
40058 | echo "$as_me: error: cannot find input file: $f" >&2;} |
40059 | { (exit 1); exit 1; }; } | |
8a7b1113 | 40060 | fi;; |
a848cd7e SC |
40061 | esac |
40062 | done` || { (exit 1); exit 1; } | |
40063 | # Remove the trailing spaces. | |
8a7b1113 | 40064 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
a848cd7e SC |
40065 | |
40066 | _ACEOF | |
40067 | ||
40068 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
40069 | # `conftest.undefs', that substitutes the proper values into | |
40070 | # config.h.in to produce config.h. The first handles `#define' | |
40071 | # templates, and the second `#undef' templates. | |
40072 | # And first: Protect against being on the right side of a sed subst in | |
40073 | # config.status. Protect against being in an unquoted here document | |
40074 | # in config.status. | |
40075 | rm -f conftest.defines conftest.undefs | |
40076 | # Using a here document instead of a string reduces the quoting nightmare. | |
40077 | # Putting comments in sed scripts is not portable. | |
40078 | # | |
40079 | # `end' is used to avoid that the second main sed command (meant for | |
40080 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
40081 | # See the Autoconf documentation for `clear'. | |
40082 | cat >confdef2sed.sed <<\_ACEOF | |
40083 | s/[\\&,]/\\&/g | |
40084 | s,[\\$`],\\&,g | |
40085 | t clear | |
40086 | : clear | |
8a7b1113 | 40087 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
a848cd7e | 40088 | t end |
8a7b1113 | 40089 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
a848cd7e SC |
40090 | : end |
40091 | _ACEOF | |
40092 | # If some macros were called several times there might be several times | |
40093 | # the same #defines, which is useless. Nevertheless, we may not want to | |
40094 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
40095 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
40096 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
40097 | rm -f confdef2sed.sed | |
40098 | ||
40099 | # This sed command replaces #undef with comments. This is necessary, for | |
40100 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
40101 | # on some systems where configure will not decide to define it. | |
40102 | cat >>conftest.undefs <<\_ACEOF | |
8a7b1113 | 40103 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
a848cd7e SC |
40104 | _ACEOF |
40105 | ||
40106 | # Break up conftest.defines because some shells have a limit on the size | |
40107 | # of here documents, and old seds have small limits too (100 cmds). | |
40108 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
8a7b1113 | 40109 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
a848cd7e SC |
40110 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
40111 | echo ' :' >>$CONFIG_STATUS | |
40112 | rm -f conftest.tail | |
40113 | while grep . conftest.defines >/dev/null | |
40114 | do | |
40115 | # Write a limited-size here document to $tmp/defines.sed. | |
40116 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
40117 | # Speed up: don't consider the non `#define' lines. | |
8a7b1113 | 40118 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
a848cd7e SC |
40119 | # Work around the forget-to-reset-the-flag bug. |
40120 | echo 't clr' >>$CONFIG_STATUS | |
40121 | echo ': clr' >>$CONFIG_STATUS | |
40122 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
40123 | echo 'CEOF | |
40124 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
40125 | rm -f $tmp/in | |
40126 | mv $tmp/out $tmp/in | |
40127 | ' >>$CONFIG_STATUS | |
40128 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
40129 | rm -f conftest.defines | |
40130 | mv conftest.tail conftest.defines | |
40131 | done | |
40132 | rm -f conftest.defines | |
40133 | echo ' fi # grep' >>$CONFIG_STATUS | |
40134 | echo >>$CONFIG_STATUS | |
40135 | ||
40136 | # Break up conftest.undefs because some shells have a limit on the size | |
40137 | # of here documents, and old seds have small limits too (100 cmds). | |
40138 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
40139 | rm -f conftest.tail | |
40140 | while grep . conftest.undefs >/dev/null | |
40141 | do | |
40142 | # Write a limited-size here document to $tmp/undefs.sed. | |
40143 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
40144 | # Speed up: don't consider the non `#undef' | |
8a7b1113 | 40145 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
a848cd7e SC |
40146 | # Work around the forget-to-reset-the-flag bug. |
40147 | echo 't clr' >>$CONFIG_STATUS | |
40148 | echo ': clr' >>$CONFIG_STATUS | |
40149 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
40150 | echo 'CEOF | |
40151 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
40152 | rm -f $tmp/in | |
40153 | mv $tmp/out $tmp/in | |
40154 | ' >>$CONFIG_STATUS | |
40155 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
40156 | rm -f conftest.undefs | |
40157 | mv conftest.tail conftest.undefs | |
40158 | done | |
40159 | rm -f conftest.undefs | |
40160 | ||
40161 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40162 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
40163 | # use $as_me), people would be surprised to read: | |
40164 | # /* config.h. Generated by config.status. */ | |
40165 | if test x"$ac_file" = x-; then | |
40166 | echo "/* Generated by configure. */" >$tmp/config.h | |
40167 | else | |
40168 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
40169 | fi | |
40170 | cat $tmp/in >>$tmp/config.h | |
40171 | rm -f $tmp/in | |
40172 | if test x"$ac_file" != x-; then | |
40173 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
40174 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
40175 | echo "$as_me: $ac_file is unchanged" >&6;} | |
40176 | else | |
40177 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
40178 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a7b1113 VZ |
40179 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
40180 | X"$ac_file" : 'X\(//\)$' \| \ | |
40181 | X"$ac_file" : 'X\(/\)' \| \ | |
40182 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
40183 | echo X"$ac_file" | |
40184 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40185 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40186 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40187 | /^X\(\/\).*/{ s//\1/; q; } | |
40188 | s/.*/./; q'` | |
40189 | { if $as_mkdir_p; then | |
40190 | mkdir -p "$ac_dir" | |
40191 | else | |
40192 | as_dir="$ac_dir" | |
40193 | as_dirs= | |
40194 | while test ! -d "$as_dir"; do | |
40195 | as_dirs="$as_dir $as_dirs" | |
40196 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
40197 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a7b1113 VZ |
40198 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
40199 | X"$as_dir" : 'X\(//\)$' \| \ | |
40200 | X"$as_dir" : 'X\(/\)' \| \ | |
40201 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
40202 | echo X"$as_dir" | |
40203 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40204 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40205 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40206 | /^X\(\/\).*/{ s//\1/; q; } | |
40207 | s/.*/./; q'` | |
40208 | done | |
40209 | test ! -n "$as_dirs" || mkdir $as_dirs | |
40210 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
40211 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
40212 | { (exit 1); exit 1; }; }; } | |
40213 | ||
40214 | rm -f $ac_file | |
40215 | mv $tmp/config.h $ac_file | |
40216 | fi | |
40217 | else | |
40218 | cat $tmp/config.h | |
40219 | rm -f $tmp/config.h | |
40220 | fi | |
40221 | done | |
40222 | _ACEOF | |
40223 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40224 | ||
40225 | # | |
40226 | # CONFIG_COMMANDS section. | |
40227 | # | |
40228 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
40229 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
40230 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
40231 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
40232 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a7b1113 VZ |
40233 | X"$ac_dest" : 'X\(//\)[^/]' \| \ |
40234 | X"$ac_dest" : 'X\(//\)$' \| \ | |
40235 | X"$ac_dest" : 'X\(/\)' \| \ | |
40236 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
40237 | echo X"$ac_dest" | |
40238 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40239 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40240 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40241 | /^X\(\/\).*/{ s//\1/; q; } | |
40242 | s/.*/./; q'` | |
a848cd7e SC |
40243 | ac_builddir=. |
40244 | ||
40245 | if test "$ac_dir" != .; then | |
40246 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
40247 | # A "../" for each directory in $ac_dir_suffix. | |
40248 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
40249 | else | |
40250 | ac_dir_suffix= ac_top_builddir= | |
40251 | fi | |
40252 | ||
40253 | case $srcdir in | |
40254 | .) # No --srcdir option. We are building in place. | |
40255 | ac_srcdir=. | |
40256 | if test -z "$ac_top_builddir"; then | |
40257 | ac_top_srcdir=. | |
40258 | else | |
40259 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
40260 | fi ;; | |
40261 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
40262 | ac_srcdir=$srcdir$ac_dir_suffix; | |
40263 | ac_top_srcdir=$srcdir ;; | |
40264 | *) # Relative path. | |
40265 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
40266 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
40267 | esac | |
8a7b1113 VZ |
40268 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
40269 | # absolute. | |
40270 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
40271 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
40272 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
40273 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
a848cd7e SC |
40274 | |
40275 | ||
40276 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
40277 | echo "$as_me: executing $ac_dest commands" >&6;} | |
40278 | case $ac_dest in | |
40279 | default ) | |
40280 | if test ! -h wx-config; then | |
40281 | chmod +x wx-config | |
40282 | mv wx-config wx${TOOLCHAIN_NAME}-config | |
40283 | ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config | |
40284 | fi | |
40285 | ||
40286 | if test ! -d lib; then | |
40287 | mkdir lib | |
40288 | fi | |
40289 | if test ! -d lib/wx; then | |
40290 | mkdir lib/wx | |
40291 | fi | |
40292 | if test ! -d lib/wx/include; then | |
40293 | mkdir lib/wx/include | |
40294 | fi | |
40295 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then | |
40296 | mkdir lib/wx/include/${TOOLCHAIN_NAME} | |
40297 | fi | |
40298 | if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then | |
40299 | mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx | |
40300 | fi | |
40301 | if test -f setup.h; then | |
40302 | mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h | |
40303 | fi | |
40304 | ;; | |
40305 | esac | |
40306 | done | |
40307 | _ACEOF | |
40308 | ||
40309 | cat >>$CONFIG_STATUS <<\_ACEOF | |
40310 | ||
40311 | { (exit 0); exit 0; } | |
40312 | _ACEOF | |
40313 | chmod +x $CONFIG_STATUS | |
40314 | ac_clean_files=$ac_clean_files_save | |
40315 | ||
40316 | ||
40317 | # configure is writing to config.log, and then calls config.status. | |
40318 | # config.status does its own redirection, appending to config.log. | |
40319 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
40320 | # by configure, so config.status won't be able to write to it; its | |
40321 | # output is simply discarded. So we exec the FD to /dev/null, | |
40322 | # effectively closing config.log, so it can be properly (re)opened and | |
40323 | # appended to by config.status. When coming back to configure, we | |
40324 | # need to make the FD available again. | |
40325 | if test "$no_create" != yes; then | |
40326 | ac_cs_success=: | |
40327 | ac_config_status_args= | |
40328 | test "$silent" = yes && | |
40329 | ac_config_status_args="$ac_config_status_args --quiet" | |
40330 | exec 5>/dev/null | |
40331 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
40332 | exec 5>>config.log | |
40333 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
40334 | # would make configure fail if this is the last instruction. | |
40335 | $ac_cs_success || { (exit 1); exit 1; } | |
40336 | fi | |
40337 | ||
40338 | # | |
40339 | # CONFIG_SUBDIRS section. | |
40340 | # | |
40341 | if test "$no_recursion" != yes; then | |
40342 | ||
40343 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
40344 | ac_sub_configure_args= | |
40345 | ac_prev= | |
40346 | for ac_arg in $ac_configure_args; do | |
40347 | if test -n "$ac_prev"; then | |
40348 | ac_prev= | |
40349 | continue | |
40350 | fi | |
40351 | case $ac_arg in | |
40352 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
40353 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
40354 | ac_prev=cache_file ;; | |
40355 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
40356 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
40357 | | --c=*) | |
40358 | ;; | |
40359 | --config-cache | -C) | |
40360 | ;; | |
40361 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
40362 | ac_prev=srcdir ;; | |
40363 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
40364 | ;; | |
40365 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
40366 | ac_prev=prefix ;; | |
40367 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
40368 | ;; | |
40369 | *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;; | |
40370 | esac | |
40371 | done | |
40372 | ||
40373 | # Always prepend --prefix to ensure using the same prefix | |
40374 | # in subdir configurations. | |
40375 | ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args" | |
40376 | ||
40377 | ac_popdir=`pwd` | |
40378 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
40379 | ||
40380 | # Do not complain, so a configure script can configure whichever | |
40381 | # parts of a large source tree are present. | |
40382 | test -d $srcdir/$ac_dir || continue | |
40383 | ||
40384 | { echo "$as_me:$LINENO: configuring in $ac_dir" >&5 | |
40385 | echo "$as_me: configuring in $ac_dir" >&6;} | |
40386 | { if $as_mkdir_p; then | |
40387 | mkdir -p "$ac_dir" | |
40388 | else | |
40389 | as_dir="$ac_dir" | |
40390 | as_dirs= | |
40391 | while test ! -d "$as_dir"; do | |
40392 | as_dirs="$as_dir $as_dirs" | |
40393 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
40394 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8a7b1113 VZ |
40395 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
40396 | X"$as_dir" : 'X\(//\)$' \| \ | |
40397 | X"$as_dir" : 'X\(/\)' \| \ | |
40398 | . : '\(.\)' 2>/dev/null || | |
a848cd7e SC |
40399 | echo X"$as_dir" | |
40400 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
40401 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
40402 | /^X\(\/\/\)$/{ s//\1/; q; } | |
40403 | /^X\(\/\).*/{ s//\1/; q; } | |
40404 | s/.*/./; q'` | |
40405 | done | |
40406 | test ! -n "$as_dirs" || mkdir $as_dirs | |
40407 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
40408 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
40409 | { (exit 1); exit 1; }; }; } | |
40410 | ||
40411 | ac_builddir=. | |
40412 | ||
40413 | if test "$ac_dir" != .; then | |
40414 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
40415 | # A "../" for each directory in $ac_dir_suffix. | |
40416 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
40417 | else | |
40418 | ac_dir_suffix= ac_top_builddir= | |
40419 | fi | |
40420 | ||
40421 | case $srcdir in | |
40422 | .) # No --srcdir option. We are building in place. | |
40423 | ac_srcdir=. | |
40424 | if test -z "$ac_top_builddir"; then | |
40425 | ac_top_srcdir=. | |
40426 | else | |
40427 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
40428 | fi ;; | |
40429 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
40430 | ac_srcdir=$srcdir$ac_dir_suffix; | |
40431 | ac_top_srcdir=$srcdir ;; | |
40432 | *) # Relative path. | |
40433 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
40434 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
40435 | esac | |
8a7b1113 VZ |
40436 | # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be |
40437 | # absolute. | |
40438 | ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
40439 | ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
40440 | ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
40441 | ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
a848cd7e SC |
40442 | |
40443 | ||
40444 | cd $ac_dir | |
40445 | ||
40446 | # Check for guested configure; otherwise get Cygnus style configure. | |
40447 | if test -f $ac_srcdir/configure.gnu; then | |
40448 | ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'" | |
40449 | elif test -f $ac_srcdir/configure; then | |
40450 | ac_sub_configure="$SHELL '$ac_srcdir/configure'" | |
40451 | elif test -f $ac_srcdir/configure.in; then | |
40452 | ac_sub_configure=$ac_configure | |
40453 | else | |
40454 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
40455 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
40456 | ac_sub_configure= | |
40457 | fi | |
40458 | ||
40459 | # The recursion is here. | |
40460 | if test -n "$ac_sub_configure"; then | |
40461 | # Make the cache file name correct relative to the subdirectory. | |
40462 | case $cache_file in | |
40463 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
40464 | *) # Relative path. | |
8a7b1113 | 40465 | ac_sub_cache_file=$ac_top_builddir$cache_file ;; |
a848cd7e SC |
40466 | esac |
40467 | ||
40468 | { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
40469 | echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
40470 | # The eval makes quoting arguments work. | |
40471 | eval $ac_sub_configure $ac_sub_configure_args \ | |
8a7b1113 VZ |
40472 | --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir || |
40473 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
a848cd7e SC |
40474 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} |
40475 | { (exit 1); exit 1; }; } | |
40476 | fi | |
40477 | ||
dcc1b6ad | 40478 | cd $ac_popdir |
a848cd7e SC |
40479 | done |
40480 | fi | |
40481 | ||
40482 | ||
40483 | echo | |
40484 | echo "Configured wxWindows ${WX_VERSION} for \`${host}'" | |
40485 | echo "" | |
40486 | echo " Which GUI toolkit should wxWindows use? ${TOOLKIT_LOWERCASE:-base only}" | |
40487 | echo " Should wxWindows be compiled into single library? ${wxUSE_MONOLITHIC:-yes}" | |
40488 | ||
40489 | echo " Should wxWindows be compiled in debug mode? ${wxUSE_DEBUG:-no}" | |
40490 | echo " Should wxWindows be linked as a shared library? ${wxUSE_SHARED:-no}" | |
40491 | echo " Should wxWindows be compiled in Unicode mode? ${wxUSE_UNICODE:-no}" | |
40492 | ||
40493 | echo " What level of wxWindows compatibility should be enabled?" | |
40494 | echo " wxWindows 2.2 ${WXWIN_COMPATIBILITY_2_2:-no}" | |
40495 | echo " wxWindows 2.4 ${WXWIN_COMPATIBILITY_2_4:-yes}" | |
40496 | ||
40497 | echo " Which libraries should wxWindows use?" | |
40498 | echo " jpeg ${wxUSE_LIBJPEG-none}" | |
40499 | echo " png ${wxUSE_LIBPNG-none}" | |
40500 | echo " regex ${wxUSE_REGEX}" | |
40501 | echo " tiff ${wxUSE_LIBTIFF-none}" | |
40502 | if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then | |
40503 | echo " xpm ${wxUSE_LIBXPM-none}" | |
40504 | fi | |
40505 | echo " zlib ${wxUSE_ZLIB}" | |
40506 | echo " odbc ${wxUSE_ODBC}" | |
40507 | echo " expat ${wxUSE_EXPAT}" | |
40508 | echo " libmspack ${wxUSE_LIBMSPACK}" | |
40509 | echo " sdl ${wxUSE_LIBSDL}" | |
40510 | ||
40511 | echo "" | |
40512 |