+ ac_save_LIBS="$LIBS"
+LIBS="-lc $LIBS"
+cat > conftest.$ac_ext <<EOF
+#line 1288 "configure"
+#include "confdefs.h"
+/* Override any gcc2 internal prototype to avoid an error. */
+/* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+char gettext();
+
+int main() {
+gettext()
+; return 0; }
+EOF
+if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=yes"
+else
+ echo "configure: failed program was:" >&5
+ cat conftest.$ac_ext >&5
+ rm -rf conftest*
+ eval "ac_cv_lib_$ac_lib_var=no"
+fi
+rm -f conftest*
+LIBS="$ac_save_LIBS"
+
+fi
+if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
+ echo "$ac_t""yes" 1>&6
+ cat >> confdefs.h <<\EOF
+#define wxHAVE_GLIBC2 1
+EOF
+
+else
+ echo "$ac_t""no" 1>&6
+fi
+
+fi
+
+cat >> confdefs.h <<\EOF
+#define __UNIX__ 1
+EOF
+
+
+
+
+
+DEBUG_CONFIGURE=0
+if test $DEBUG_CONFIGURE = 1; then
+ DEFAULT_wxUSE_THREADS=yes
+
+ DEFAULT_wxUSE_OPTIMISE=no
+ DEFAULT_wxUSE_PROFILE=no
+ DEFAULT_wxUSE_DEBUG_FLAG=yes
+ DEFAULT_wxUSE_DEBUG_INFO=yes
+ DEFAULT_wxUSE_DEBUG_GDB=yes
+ DEFAULT_wxUSE_MEM_TRACING=no
+ DEFAULT_wxUSE_DMALLOC=no
+ DEFAULT_wxUSE_APPLE_IEEE=no
+
+ DEFAULT_wxUSE_LOG=yes
+
+ DEFAULT_wxUSE_GUI=yes
+
+ DEFAULT_wxUSE_ZLIB=no
+ DEFAULT_wxUSE_LIBPNG=no
+ DEFAULT_wxUSE_LIBGIF=no
+ DEFAULT_wxUSE_LIBJPEG=no
+ DEFAULT_wxUSE_ODBC=no
+
+ DEFAULT_wxUSE_FILE=no
+ DEFAULT_wxUSE_TEXTFILE=no
+ DEFAULT_wxUSE_TIMEDATE=no
+ DEFAULT_wxUSE_INTL=no
+ DEFAULT_wxUSE_CONFIG=no
+ DEFAULT_wxUSE_STREAMS=no
+ DEFAULT_wxUSE_SOCKETS=no
+ DEFAULT_wxUSE_SERIAL=no
+ DEFAULT_wxUSE_JOYSTICK=no
+ DEFAULT_wxUSE_DYNLIB_CLASS=no
+ DEFAULT_wxUSE_LONGLONG=no
+
+ DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
+ DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
+ DEFAULT_wxUSE_POSTSCRIPT=no
+
+ DEFAULT_wxUSE_X_RESOURCES=no
+ DEFAULT_wxUSE_CLIPBOARD=no
+ DEFAULT_wxUSE_TOOLTIPS=no
+ DEFAULT_wxUSE_DRAG_AND_DROP=no
+ DEFAULT_wxUSE_SPLINES=no
+
+ DEFAULT_wxUSE_MDI_ARCHITECTURE=no
+ DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
+ DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
+
+ DEFAULT_wxUSE_PROLOGIO=no
+ DEFAULT_wxUSE_RESOURCES=no
+ DEFAULT_wxUSE_CONSTRAINTS=no
+ DEFAULT_wxUSE_IPC=no
+ DEFAULT_wxUSE_HELP=no
+ DEFAULT_wxUSE_WXTREE=no
+ DEFAULT_wxUSE_METAFILE=no
+
+ DEFAULT_wxUSE_COMMONDLGS=no
+ DEFAULT_wxUSE_MINIFRAME=no
+ DEFAULT_wxUSE_VALIDATORS=yes
+
+ DEFAULT_wxUSE_ACCEL=no
+ DEFAULT_wxUSE_CARET=no
+ DEFAULT_wxUSE_BMPBUTTON=no
+ DEFAULT_wxUSE_CHECKBOX=no
+ DEFAULT_wxUSE_CHECKLST=no
+ DEFAULT_wxUSE_COMBOBOX=no
+ DEFAULT_wxUSE_GAUGE=no
+ DEFAULT_wxUSE_GRID=no
+ DEFAULT_wxUSE_IMAGLIST=no
+ DEFAULT_wxUSE_LISTBOX=no
+ DEFAULT_wxUSE_LISTCTRL=no
+ DEFAULT_wxUSE_NOTEBOOK=no
+ DEFAULT_wxUSE_RADIOBOX=no
+ DEFAULT_wxUSE_RADIOBTN=no
+ DEFAULT_wxUSE_SASHWINDOW=no
+ DEFAULT_wxUSE_SCROLLBAR=no
+ DEFAULT_wxUSE_SLIDER=no
+ DEFAULT_wxUSE_SPINBTN=no
+ DEFAULT_wxUSE_SPLITTER=no
+ DEFAULT_wxUSE_STATBMP=no
+ DEFAULT_wxUSE_STATBOX=no
+ DEFAULT_wxUSE_STATLINE=no
+ DEFAULT_wxUSE_STATUSBAR=yes
+ DEFAULT_wxUSE_TABDIALOG=no
+ DEFAULT_wxUSE_TOOLBAR=no
+ DEFAULT_wxUSE_TREECTRL=no
+
+ DEFAULT_wxUSE_UNICODE=no
+ DEFAULT_wxUSE_WCSRTOMBS=no
+else
+ DEFAULT_wxUSE_THREADS=yes
+
+ DEFAULT_wxUSE_OPTIMISE=yes
+ DEFAULT_wxUSE_PROFILE=no
+ DEFAULT_wxUSE_DEBUG_FLAG=no
+ DEFAULT_wxUSE_DEBUG_INFO=no
+ DEFAULT_wxUSE_DEBUG_GDB=no
+ DEFAULT_wxUSE_MEM_TRACING=no
+ DEFAULT_wxUSE_DMALLOC=no
+ DEFAULT_wxUSE_APPLE_IEEE=yes
+
+ DEFAULT_wxUSE_LOG=yes
+
+ DEFAULT_wxUSE_GUI=yes
+
+ DEFAULT_wxUSE_ZLIB=yes
+ DEFAULT_wxUSE_LIBPNG=yes
+ DEFAULT_wxUSE_LIBGIF=yes
+ DEFAULT_wxUSE_LIBJPEG=yes
+ DEFAULT_wxUSE_ODBC=no
+
+ DEFAULT_wxUSE_FILE=yes
+ DEFAULT_wxUSE_TEXTFILE=yes
+ DEFAULT_wxUSE_TIMEDATE=yes
+ DEFAULT_wxUSE_INTL=yes
+ DEFAULT_wxUSE_CONFIG=yes
+ DEFAULT_wxUSE_STREAMS=yes
+ DEFAULT_wxUSE_SOCKETS=yes
+ DEFAULT_wxUSE_SERIAL=yes
+ DEFAULT_wxUSE_JOYSTICK=yes
+ DEFAULT_wxUSE_DYNLIB_CLASS=yes
+ DEFAULT_wxUSE_LONGLONG=no
+
+ DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
+ DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
+ DEFAULT_wxUSE_POSTSCRIPT=yes
+
+ DEFAULT_wxUSE_X_RESOURCES=no
+ DEFAULT_wxUSE_CLIPBOARD=yes
+ DEFAULT_wxUSE_TOOLTIPS=yes
+ DEFAULT_wxUSE_DRAG_AND_DROP=yes
+ DEFAULT_wxUSE_SPLINES=yes
+
+ DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
+ DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
+ DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
+
+ DEFAULT_wxUSE_PROLOGIO=yes
+ DEFAULT_wxUSE_RESOURCES=yes
+ DEFAULT_wxUSE_CONSTRAINTS=yes
+ DEFAULT_wxUSE_IPC=yes
+ DEFAULT_wxUSE_HELP=yes
+ DEFAULT_wxUSE_WXTREE=yes
+ DEFAULT_wxUSE_METAFILE=yes
+
+ DEFAULT_wxUSE_COMMONDLGS=yes
+ DEFAULT_wxUSE_MINIFRAME=yes
+ DEFAULT_wxUSE_VALIDATORS=yes
+
+ DEFAULT_wxUSE_ACCEL=yes
+ DEFAULT_wxUSE_CARET=yes
+ DEFAULT_wxUSE_BMPBUTTON=yes
+ DEFAULT_wxUSE_CHECKBOX=yes
+ DEFAULT_wxUSE_CHECKLST=yes
+ DEFAULT_wxUSE_COMBOBOX=yes
+ DEFAULT_wxUSE_GAUGE=yes
+ DEFAULT_wxUSE_GRID=yes
+ DEFAULT_wxUSE_IMAGLIST=yes
+ DEFAULT_wxUSE_LISTBOX=yes
+ DEFAULT_wxUSE_LISTCTRL=yes
+ DEFAULT_wxUSE_NOTEBOOK=yes
+ DEFAULT_wxUSE_RADIOBOX=yes
+ DEFAULT_wxUSE_RADIOBTN=yes
+ DEFAULT_wxUSE_SASHWINDOW=yes
+ DEFAULT_wxUSE_SCROLLBAR=yes
+ DEFAULT_wxUSE_SLIDER=yes
+ DEFAULT_wxUSE_SPINBTN=yes
+ DEFAULT_wxUSE_SPLITTER=yes
+ DEFAULT_wxUSE_STATBMP=yes
+ DEFAULT_wxUSE_STATBOX=yes
+ DEFAULT_wxUSE_STATLINE=yes
+ DEFAULT_wxUSE_STATUSBAR=yes
+ DEFAULT_wxUSE_TABDIALOG=no
+ DEFAULT_wxUSE_TOOLBAR=yes
+ DEFAULT_wxUSE_TREECTRL=yes
+
+ DEFAULT_wxUSE_UNICODE=no
+ DEFAULT_wxUSE_WCSRTOMBS=no
+fi
+
+
+
+# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
+if test "${with_gtk_prefix+set}" = set; then
+ withval="$with_gtk_prefix"
+ gtk_config_prefix="$withval"
+else
+ gtk_config_prefix=""
+fi
+
+# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
+if test "${with_gtk_exec_prefix+set}" = set; then
+ withval="$with_gtk_exec_prefix"
+ gtk_config_exec_prefix="$withval"
+else
+ gtk_config_exec_prefix=""
+fi
+
+# Check whether --with-gtk or --without-gtk was given.
+if test "${with_gtk+set}" = set; then
+ withval="$with_gtk"
+ wxUSE_GTK="$withval"
+else
+ wxUSE_GTK=0
+fi
+
+# Check whether --with-motif or --without-motif was given.
+if test "${with_motif+set}" = set; then
+ withval="$with_motif"
+ wxUSE_MOTIF="$withval"
+else
+ wxUSE_MOTIF=0
+fi
+
+# Check whether --with-cygwin or --without-cygwin was given.
+if test "${with_cygwin+set}" = set; then
+ withval="$with_cygwin"
+ wxUSE_CYGWIN="$withval"
+else
+ wxUSE_CYGWIN=0
+fi
+
+# Check whether --with-mingw or --without-mingw was given.
+if test "${with_mingw+set}" = set; then
+ withval="$with_mingw"
+ wxUSE_MINGW="$withval"
+else
+ wxUSE_MINGW=0
+fi
+
+
+# Check whether --with-dmalloc or --without-dmalloc was given.
+if test "${with_dmalloc+set}" = set; then
+ withval="$with_dmalloc"
+ wxUSE_DMALLOC="$withval"
+else
+ wxUSE_DMALLOC=$DEFAULT_wxUSE_DMALLOC
+fi
+
+# Check whether --with-zlib or --without-zlib was given.
+if test "${with_zlib+set}" = set; then
+ withval="$with_zlib"
+ wxUSE_ZLIB="$withval"
+else
+ wxUSE_ZLIB=$DEFAULT_wxUSE_ZLIB
+fi
+
+# Check whether --with-libpng or --without-libpng was given.
+if test "${with_libpng+set}" = set; then
+ withval="$with_libpng"
+ wxUSE_LIBPNG="$withval"
+else
+ wxUSE_LIBPNG=$DEFAULT_wxUSE_LIBPNG
+fi
+
+# Check whether --with-libgif or --without-libgif was given.
+if test "${with_libgif+set}" = set; then
+ withval="$with_libgif"
+ wxUSE_LIBGIF="${withval}"
+else
+ wxUSE_LIBGIF=$DEFAULT_wxUSE_LIBGIF
+fi
+
+# Check whether --with-libjpeg or --without-libjpeg was given.
+if test "${with_libjpeg+set}" = set; then
+ withval="$with_libjpeg"
+ wxUSE_LIBJPEG="${withval}"
+else
+ wxUSE_LIBJPEG=$DEFAULT_wxUSE_LIBJPEG
+fi
+
+# Check whether --with-opengl or --without-opengl was given.
+if test "${with_opengl+set}" = set; then
+ withval="$with_opengl"
+ wxUSE_OPENGL="$withval"
+else
+ wxUSE_OPENGL=$DEFAULT_wxUSE_OPENGL
+fi
+
+# Check whether --with-odbc or --without-odbc was given.
+if test "${with_odbc+set}" = set; then
+ withval="$with_odbc"
+ wxUSE_ODBC="$withval"
+else
+ wxUSE_ODBC=$DEFAULT_wxUSE_ODBC
+fi
+
+
+
+
+# Check whether --enable-optimise or --disable-optimise was given.
+if test "${enable_optimise+set}" = set; then
+ enableval="$enable_optimise"
+ wxUSE_OPTIMISE="$enableval"
+else
+ wxUSE_OPTIMISE=$DEFAULT_wxUSE_OPTIMISE
+fi
+
+# Check whether --enable-optimize or --disable-optimize was given.
+if test "${enable_optimize+set}" = set; then
+ enableval="$enable_optimize"
+ wxUSE_OPTIMISE="$enableval"
+else
+ wxUSE_OPTIMISE=$DEFAULT_wxUSE_OPTIMISE
+fi
+
+# Check whether --enable-debug_flag or --disable-debug_flag was given.
+if test "${enable_debug_flag+set}" = set; then
+ enableval="$enable_debug_flag"
+ wxUSE_DEBUG_FLAG="$enableval"
+else
+ wxUSE_DEBUG_FLAG=$DEFAULT_wxUSE_DEBUG_FLAG
+fi
+
+# Check whether --enable-debug_info or --disable-debug_info was given.
+if test "${enable_debug_info+set}" = set; then
+ enableval="$enable_debug_info"
+ wxUSE_DEBUG_INFO="$enableval"
+else
+ wxUSE_DEBUG_INFO=$DEFAULT_wxUSE_DEBUG_INFO
+fi
+
+# Check whether --enable-debug_gdb or --disable-debug_gdb was given.
+if test "${enable_debug_gdb+set}" = set; then
+ enableval="$enable_debug_gdb"
+ wxUSE_DEBUG_GDB="$enableval"
+else
+ wxUSE_DEBUG_GDB=$DEFAULT_wxUSE_DEBUG_GDB
+fi
+
+# Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
+if test "${enable_debug_cntxt+set}" = set; then
+ enableval="$enable_debug_cntxt"
+ cat >> confdefs.h <<\EOF
+#define wxUSE_DEBUG_CONTEXT 1
+EOF
+
+fi
+
+# Check whether --enable-mem_tracing or --disable-mem_tracing was given.
+if test "${enable_mem_tracing+set}" = set; then
+ enableval="$enable_mem_tracing"
+ wxUSE_MEM_TRACING="$enableval"
+else
+ wxUSE_MEM_TRACING=$DEFAULT_wxUSE_MEM_TRACING
+fi
+
+# Check whether --enable-profile or --disable-profile was given.
+if test "${enable_profile+set}" = set; then
+ enableval="$enable_profile"
+ wxUSE_PROFILE="$enableval"
+else
+ wxUSE_PROFILE=$DEFAULT_wxUSE_PROFILE
+fi
+
+
+
+# Check whether --enable-gui or --disable-gui was given.
+if test "${enable_gui+set}" = set; then
+ enableval="$enable_gui"
+ wxUSE_GUI="$enableval"
+else
+ wxUSE_GUI=$DEFAULT_wxUSE_GUI
+fi
+
+
+
+# Check whether --enable-intl or --disable-intl was given.
+if test "${enable_intl+set}" = set; then
+ enableval="$enable_intl"
+ wxUSE_INTL="$enableval"
+else
+ wxUSE_INTL=$DEFAULT_wxUSE_INTL
+fi
+
+# Check whether --enable-config or --disable-config was given.
+if test "${enable_config+set}" = set; then
+ enableval="$enable_config"
+ wxUSE_CONFIG="$enableval"
+else
+ wxUSE_CONFIG=$DEFAULT_wxUSE_CONFIG
+fi
+
+# Check whether --enable-sockets or --disable-sockets was given.
+if test "${enable_sockets+set}" = set; then
+ enableval="$enable_sockets"
+ wxUSE_SOCKETS="$enableval"
+else
+ wxUSE_SOCKETS=$DEFAULT_wxUSE_SOCKETS
+fi
+
+# Check whether --enable-ipc or --disable-ipc was given.
+if test "${enable_ipc+set}" = set; then
+ enableval="$enable_ipc"
+ wxUSE_IPC="$enableval"
+else
+ wxUSE_IPC=$DEFAULT_wxUSE_IPC
+fi
+
+# Check whether --enable-apple_ieee or --disable-apple_ieee was given.
+if test "${enable_apple_ieee+set}" = set; then
+ enableval="$enable_apple_ieee"
+ wxUSE_APPLE_IEEE="$enableval"
+else
+ wxUSE_APPLE_IEEE=$DEFAULT_wxUSE_APPLE_IEEE
+fi
+
+# Check whether --enable-timedate or --disable-timedate was given.
+if test "${enable_timedate+set}" = set; then
+ enableval="$enable_timedate"
+ wxUSE_TIMEDATE="$enableval"
+else
+ wxUSE_TIMEDATE=$DEFAULT_wxUSE_TIMEDATE
+fi
+
+# Check whether --enable-fraction or --disable-fraction was given.
+if test "${enable_fraction+set}" = set; then
+ enableval="$enable_fraction"
+ wxUSE_FRACTION="$enableval"
+else
+ wxUSE_FRACTION=$DEFAULT_wxUSE_FRACTION
+fi
+
+# Check whether --enable-dynlib or --disable-dynlib was given.
+if test "${enable_dynlib+set}" = set; then
+ enableval="$enable_dynlib"
+ wxUSE_DYNLIB_CLASS="$enableval"
+else
+ wxUSE_DYNLIB_CLASS=$DEFAULT_wxUSE_DYNLIB_CLASS
+fi
+
+# Check whether --enable-longlong or --disable-longlong was given.
+if test "${enable_longlong+set}" = set; then
+ enableval="$enable_longlong"
+ wxUSE_LONGLONG="${enableval}"
+else
+ wxUSE_LONGLONG=$DEFAULT_wxUSE_LONGLONG
+fi
+
+# Check whether --enable-log or --disable-log was given.
+if test "${enable_log+set}" = set; then
+ enableval="$enable_log"
+ wxUSE_LOG="$enableval"
+else
+ wxUSE_LOG=$DEFAULT_wxUSE_LOG
+fi
+
+# Check whether --enable-streams or --disable-streams was given.
+if test "${enable_streams+set}" = set; then
+ enableval="$enable_streams"
+ wxUSE_STREAMS="$enableval"
+else
+ wxUSE_STREAMS=$DEFAULT_wxUSE_STREAMS
+fi
+
+# Check whether --enable-file or --disable-file was given.
+if test "${enable_file+set}" = set; then
+ enableval="$enable_file"
+ wxUSE_FILE="$enableval"
+else
+ wxUSE_FILE=$DEFAULT_wxUSE_FILE
+fi
+
+# Check whether --enable-textfile or --disable-textfile was given.
+if test "${enable_textfile+set}" = set; then
+ enableval="$enable_textfile"
+ wxUSE_TEXTFILE="$enableval"
+else
+ wxUSE_TEXTFILE=$DEFAULT_wxUSE_TEXTFILE
+fi
+
+# Check whether --enable-unicode or --disable-unicode was given.
+if test "${enable_unicode+set}" = set; then
+ enableval="$enable_unicode"
+ wxUSE_UNICODE="$enableval"
+else
+ wxUSE_UNICODE=$DEFAULT_wxUSE_UNICODE
+fi
+
+# Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
+if test "${enable_wcsrtombs+set}" = set; then
+ enableval="$enable_wcsrtombs"
+ wxUSE_WCSRTOMBS="$enableval"