home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2233.zip / wxOS2-2_3_3.zip / wxWindows-2.3.3 / configure < prev    next >
Text File  |  2002-08-28  |  671KB  |  21,950 lines

  1. #! /bin/sh
  2.  
  3. # From configure.in Id: configure.in
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59. # Configure paths for GTK+
  60. # Owen Taylor     1997-2001
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69. # Configure paths for GTK+
  70. # Owen Taylor     97-11-3
  71.  
  72.  
  73.  
  74. # Guess values for system-dependent variables and create Makefiles.
  75. # Generated automatically using autoconf version 2.13 
  76. # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
  77. #
  78. # This configure script is free software; the Free Software Foundation
  79. # gives unlimited permission to copy, distribute and modify it.
  80.  
  81. # Defaults:
  82. ac_help=
  83. ac_default_prefix=/usr/local
  84. # Any additions from configure.in:
  85. ac_help="$ac_help
  86.   --enable-gui            use GUI classes"
  87. ac_help="$ac_help
  88.   --enable-universal      use wxWindows GUI controls instead of native ones"
  89. ac_help="$ac_help
  90.   --with-gtk              use GTK+"
  91. ac_help="$ac_help
  92.   --with-motif            use Motif/Lesstif"
  93. ac_help="$ac_help
  94.   --with-mac              use Mac OS X"
  95. ac_help="$ac_help
  96.   --with-wine             use WINE"
  97. ac_help="$ac_help
  98.   --with-msw              use MS-Windows"
  99. ac_help="$ac_help
  100.   --with-pm               use OS/2 Presentation Manager"
  101. ac_help="$ac_help
  102.   --with-mgl              use SciTech MGL"
  103. ac_help="$ac_help
  104.   --with-microwin         use MicroWindows"
  105. ac_help="$ac_help
  106.   --with-x11              use X11"
  107. ac_help="$ac_help
  108.   --enable-nanox          use NanoX"
  109. ac_help="$ac_help
  110.   --enable-gtk2           use GTK+ 2.0 if available (EXPERIMENTAL)"
  111. ac_help="$ac_help
  112.   --with-libpng           use libpng (PNG image format)"
  113. ac_help="$ac_help
  114.   --with-libjpeg          use libjpeg (JPEG file format)"
  115. ac_help="$ac_help
  116.   --with-libtiff          use libtiff (TIFF file format)"
  117. ac_help="$ac_help
  118.   --with-opengl           use OpenGL (or Mesa)"
  119. ac_help="$ac_help
  120.   --with-dmalloc          use dmalloc library (http://dmalloc.com/)"
  121. ac_help="$ac_help
  122.   --with-regex            enable support for wxRegEx class"
  123. ac_help="$ac_help
  124.   --with-zlib             use zlib for LZW compression"
  125. ac_help="$ac_help
  126.   --with-odbc             use the IODBC and wxODBC classes"
  127. ac_help="$ac_help
  128.   --enable-shared         create shared library code"
  129. ac_help="$ac_help
  130.   --enable-soname         set the DT_SONAME field in ELF shared libraries"
  131. ac_help="$ac_help
  132.   --enable-optimise       create optimised code"
  133. ac_help="$ac_help
  134.   --enable-debug          same as debug_flag and debug_info"
  135. ac_help="$ac_help
  136.   --enable-precomp        enable use of precompiled headers (Mac OS X)"
  137. ac_help="$ac_help
  138.   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)"
  139. ac_help="$ac_help
  140.   --enable-debug_info     create code with debugging information"
  141. ac_help="$ac_help
  142.   --enable-debug_gdb      create code with extra GDB debugging information"
  143. ac_help="$ac_help
  144.   --enable-debug_cntxt    use wxDebugContext"
  145. ac_help="$ac_help
  146.   --enable-mem_tracing    create code with memory tracing"
  147. ac_help="$ac_help
  148.   --enable-profile        create code with profiling information"
  149. ac_help="$ac_help
  150.   --enable-no_rtti        create code without RTTI information"
  151. ac_help="$ac_help
  152.   --enable-no_exceptions  create code without C++ exceptions handling"
  153. ac_help="$ac_help
  154.   --enable-permissive     compile code disregarding strict ANSI"
  155. ac_help="$ac_help
  156.   --enable-no_deps        create code without dependency information"
  157. ac_help="$ac_help
  158.   --enable-compat20       enable wxWindows 2.0 compatibility"
  159. ac_help="$ac_help
  160.   --disable-compat22      disable wxWindows 2.2 compatibility"
  161. ac_help="$ac_help
  162.   --enable-rpath=DIR      output the rpath flag from wx-config"
  163. ac_help="$ac_help
  164.   --enable-intl           use internationalization system"
  165. ac_help="$ac_help
  166.   --enable-config         use wxConfig (and derived) classes"
  167. ac_help="$ac_help
  168.   --enable-protocols      use wxProtocol and derived classes"
  169. ac_help="$ac_help
  170.   --enable-ftp            use wxFTP (requires wxProtocol"
  171. ac_help="$ac_help
  172.   --enable-http           use wxHTTP (requires wxProtocol"
  173. ac_help="$ac_help
  174.   --enable-fileproto      use wxFileProto class (requires wxProtocol"
  175. ac_help="$ac_help
  176.   --enable-sockets        use socket/network classes"
  177. ac_help="$ac_help
  178.   --enable-ipc            use interprocess communication (wxSocket etc.)"
  179. ac_help="$ac_help
  180.   --enable-cmdline        use wxCmdLineParser class"
  181. ac_help="$ac_help
  182.   --enable-datetime       use wxDateTime class"
  183. ac_help="$ac_help
  184.   --enable-timedate       use obsolete wxDate/wxTime classes"
  185. ac_help="$ac_help
  186.   --enable-stopwatch      use wxStopWatch class"
  187. ac_help="$ac_help
  188.   --enable-dialupman      use dialup network classes"
  189. ac_help="$ac_help
  190.   --enable-apple_ieee     use the Apple IEEE codec"
  191. ac_help="$ac_help
  192.   --enable-timer          use wxTimer class"
  193. ac_help="$ac_help
  194.   --enable-wave           use wxWave class"
  195. ac_help="$ac_help
  196.   --enable-fraction       use wxFraction class"
  197. ac_help="$ac_help
  198.   --enable-dynlib         use wxLibrary class for DLL loading"
  199. ac_help="$ac_help
  200.   --enable-dynamicloader  use (new) wxDynamicLibrary class"
  201. ac_help="$ac_help
  202.   --enable-longlong       use wxLongLong class"
  203. ac_help="$ac_help
  204.   --enable-geometry       use geometry class"
  205. ac_help="$ac_help
  206.   --enable-log            use logging system"
  207. ac_help="$ac_help
  208.   --enable-streams        use wxStream etc classes"
  209. ac_help="$ac_help
  210.   --enable-file           use wxFile classes"
  211. ac_help="$ac_help
  212.   --enable-ffile          use wxFFile classes"
  213. ac_help="$ac_help
  214.   --enable-textbuf        use wxTextBuffer class"
  215. ac_help="$ac_help
  216.   --enable-textfile       use wxTextFile class"
  217. ac_help="$ac_help
  218.   --enable-fontmap        use font encodings conversion classes"
  219. ac_help="$ac_help
  220.   --enable-unicode        compile wxString with Unicode support"
  221. ac_help="$ac_help
  222.   --enable-mslu           use MS Layer for Unicode on Windows 9x (win32 only)"
  223. ac_help="$ac_help
  224.   --enable-wxprintfv      use wxWindows implementation of vprintf()"
  225. ac_help="$ac_help
  226.   --enable-std_iostreams  use standard C++ stream classes"
  227. ac_help="$ac_help
  228.   --enable-filesystem     use virtual file systems classes"
  229. ac_help="$ac_help
  230.   --enable-fs_inet        use virtual HTTP/FTP filesystems"
  231. ac_help="$ac_help
  232.   --enable-fs_zip         use virtual ZIP filesystems"
  233. ac_help="$ac_help
  234.   --enable-zipstream      use wxZipInputStream"
  235. ac_help="$ac_help
  236.   --enable-catch_segvs    catch signals and pass them to wxApp::OnFatalException"
  237. ac_help="$ac_help
  238.   --enable-snglinst       use wxSingleInstanceChecker class"
  239. ac_help="$ac_help
  240.   --enable-mimetype       use wxMimeTypesManager"
  241. ac_help="$ac_help
  242.   --enable-sysoptions     use wxSystemOptions"
  243. ac_help="$ac_help
  244.   --enable-url            use wxURL class"
  245. ac_help="$ac_help
  246.   --enable-protocol       use wxProtocol class"
  247. ac_help="$ac_help
  248.   --enable-protocol-http  HTTP support in wxProtocol"
  249. ac_help="$ac_help
  250.   --enable-protocol-ftp   FTP support in wxProtocol"
  251. ac_help="$ac_help
  252.   --enable-protocol-file  FILE support in wxProtocol"
  253. ac_help="$ac_help
  254.   --enable-threads        use threads"
  255. ac_help="$ac_help
  256.   --enable-docview        use document view architecture"
  257. ac_help="$ac_help
  258.   --enable-help           use help subsystem"
  259. ac_help="$ac_help
  260.   --enable-mshtmlhelp     use MS HTML Help (win32)"
  261. ac_help="$ac_help
  262.   --enable-html           use wxHTML sub-library"
  263. ac_help="$ac_help
  264.   --enable-htmlhelp       use wxHTML-based help"
  265. ac_help="$ac_help
  266.   --enable-constraints    use layout-constraints system"
  267. ac_help="$ac_help
  268.   --enable-printarch      use printing architecture"
  269. ac_help="$ac_help
  270.   --enable-mdi            use multiple document interface architecture"
  271. ac_help="$ac_help
  272.   --enable-loggui         use standard GUI logger"
  273. ac_help="$ac_help
  274.   --enable-logwin         use wxLogWindow"
  275. ac_help="$ac_help
  276.   --enable-logdialog      use wxLogDialog"
  277. ac_help="$ac_help
  278.   --enable-postscript     use wxPostscriptDC device context (default for gtk+)"
  279. ac_help="$ac_help
  280.   --enable-prologio       use Prolog IO library"
  281. ac_help="$ac_help
  282.   --enable-resources      use wxWindows resources"
  283. ac_help="$ac_help
  284.   --enable-xresources     use X resources for save (default for gtk+)"
  285. ac_help="$ac_help
  286.   --enable-clipboard      use wxClipboard classes"
  287. ac_help="$ac_help
  288.   --enable-dnd            use Drag'n'Drop classes"
  289. ac_help="$ac_help
  290.   --enable-metafile       use win32 metafiles"
  291. ac_help="$ac_help
  292.   --enable-treelayout     use wxTreeLayout classes"
  293. ac_help="$ac_help
  294.   --enable-controls       use all usual controls"
  295. ac_help="$ac_help
  296.   --enable-accel          use accelerators"
  297. ac_help="$ac_help
  298.   --enable-button         use wxButton class"
  299. ac_help="$ac_help
  300.   --enable-bmpbutton      use wxBitmapButton class"
  301. ac_help="$ac_help
  302.   --enable-calendar       use wxCalendarCtrl class"
  303. ac_help="$ac_help
  304.   --enable-caret          use wxCaret class"
  305. ac_help="$ac_help
  306.   --enable-checkbox       use wxCheckBox class"
  307. ac_help="$ac_help
  308.   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class"
  309. ac_help="$ac_help
  310.   --enable-choice         use wxChoice class"
  311. ac_help="$ac_help
  312.   --enable-combobox       use wxComboBox classes"
  313. ac_help="$ac_help
  314.   --enable-gauge          use wxGauge class"
  315. ac_help="$ac_help
  316.   --enable-grid           use wxGrid class"
  317. ac_help="$ac_help
  318.   --enable-newgrid        use new wxGrid class"
  319. ac_help="$ac_help
  320.   --enable-imaglist       use wxImageList class"
  321. ac_help="$ac_help
  322.   --enable-listbox        use wxListBox class"
  323. ac_help="$ac_help
  324.   --enable-listctrl       use wxListCtrl class"
  325. ac_help="$ac_help
  326.   --enable-notebook       use wxNotebook class"
  327. ac_help="$ac_help
  328.   --enable-propsheet      use wxPropertySheet class"
  329. ac_help="$ac_help
  330.   --enable-radiobox       use wxRadioBox class"
  331. ac_help="$ac_help
  332.   --enable-radiobtn       use wxRadioButton class"
  333. ac_help="$ac_help
  334.   --enable-sash           use wxSashWindow class"
  335. ac_help="$ac_help
  336.   --enable-scrollbar      use wxScrollBar class and scrollable windows"
  337. ac_help="$ac_help
  338.   --enable-slider         use wxSlider class"
  339. ac_help="$ac_help
  340.   --enable-spinbtn        use wxSpinButton class"
  341. ac_help="$ac_help
  342.   --enable-spinctrl       use wxSpinCtrl class"
  343. ac_help="$ac_help
  344.   --enable-splitter       use wxSplitterWindow class"
  345. ac_help="$ac_help
  346.   --enable-statbmp        use wxStaticBitmap class"
  347. ac_help="$ac_help
  348.   --enable-statbox        use wxStaticBox class"
  349. ac_help="$ac_help
  350.   --enable-statline       use wxStaticLine class"
  351. ac_help="$ac_help
  352.   --enable-stattext       use wxStaticText class"
  353. ac_help="$ac_help
  354.   --enable-statusbar      use wxStatusBar class"
  355. ac_help="$ac_help
  356.   --enable-tabdialog      use wxTabControl class"
  357. ac_help="$ac_help
  358.   --enable-textctrl       use wxTextCtrl class"
  359. ac_help="$ac_help
  360.   --enable-togglebtn      use wxToggleButton class"
  361. ac_help="$ac_help
  362.   --enable-toolbar        use wxToolBar class"
  363. ac_help="$ac_help
  364.   --enable-tbarnative     use native wxToolBar class"
  365. ac_help="$ac_help
  366.   --enable-tbarsmpl       use wxToolBarSimple class"
  367. ac_help="$ac_help
  368.   --enable-treectrl       use wxTreeCtrl class"
  369. ac_help="$ac_help
  370.   --enable-tipwindow      use wxTipWindow class"
  371. ac_help="$ac_help
  372.   --enable-popupwin       use wxPopUpWindow class"
  373. ac_help="$ac_help
  374.   --enable-commondlg      use all common dialogs"
  375. ac_help="$ac_help
  376.   --enable-choicedlg      use wxChoiceDialog"
  377. ac_help="$ac_help
  378.   --enable-coldlg         use wxColourDialog"
  379. ac_help="$ac_help
  380.   --enable-filedlg        use wxFileDialog"
  381. ac_help="$ac_help
  382.   --enable-finddlg        use wxFindReplaceDialog"
  383. ac_help="$ac_help
  384.   --enable-fontdlg        use wxFontDialog"
  385. ac_help="$ac_help
  386.   --enable-dirdlg         use wxDirDialog"
  387. ac_help="$ac_help
  388.   --enable-msgdlg         use wxMessageDialog"
  389. ac_help="$ac_help
  390.   --enable-numberdlg      use wxNumberEntryDialog"
  391. ac_help="$ac_help
  392.   --enable-splash         use wxSplashScreen"
  393. ac_help="$ac_help
  394.   --enable-textdlg        use wxTextDialog"
  395. ac_help="$ac_help
  396.   --enable-tipdlg         use startup tips"
  397. ac_help="$ac_help
  398.   --enable-progressdlg    use wxProgressDialog"
  399. ac_help="$ac_help
  400.   --enable-wizarddlg      use wxWizard"
  401. ac_help="$ac_help
  402.   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes"
  403. ac_help="$ac_help
  404.   --enable-miniframe      use wxMiniFrame class"
  405. ac_help="$ac_help
  406.   --enable-tooltips       use wxToolTip class"
  407. ac_help="$ac_help
  408.   --enable-splines        use spline drawing code"
  409. ac_help="$ac_help
  410.   --enable-validators     use wxValidator and derived classes"
  411. ac_help="$ac_help
  412.   --enable-busyinfo       use wxBusyInfo"
  413. ac_help="$ac_help
  414.   --enable-joystick       use wxJoystick (Linux only)"
  415. ac_help="$ac_help
  416.   --enable-metafiles      use wxMetaFile (Windows only)"
  417. ac_help="$ac_help
  418.   --enable-dragimage      use wxDragImage"
  419. ac_help="$ac_help
  420.   --enable-palette        use wxPalette class"
  421. ac_help="$ac_help
  422.   --enable-image          use wxImage class"
  423. ac_help="$ac_help
  424.   --enable-gif            use gif images (GIF file format)"
  425. ac_help="$ac_help
  426.   --enable-pcx            use pcx images (PCX file format)"
  427. ac_help="$ac_help
  428.   --enable-iff            use iff images (IFF file format)"
  429. ac_help="$ac_help
  430.   --enable-pnm            use pnm images (PNM file format)"
  431. ac_help="$ac_help
  432.   --enable-xpm            use xpm images (XPM file format)"
  433. ac_help="$ac_help
  434.   --enable-icocur         use Windows ICO and CUR formats"
  435. ac_help="$ac_help
  436.   --disable-largefile     omit support for large files"
  437. ac_help="$ac_help
  438.   --disable-gtktest       do not try to compile and run a test GTK+ program"
  439. ac_help="$ac_help
  440.   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
  441. ac_help="$ac_help
  442.   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
  443. ac_help="$ac_help
  444.   --disable-gtktest       Do not try to compile and run a test GTK program"
  445. ac_help="$ac_help
  446.   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
  447. ac_help="$ac_help
  448.   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
  449. ac_help="$ac_help
  450.   --disable-gtktest       Do not try to compile and run a test GTK program"
  451. ac_help="$ac_help
  452.   --with-x                use the X Window System"
  453. ac_help="$ac_help
  454.   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib"
  455.  
  456. # Initialize some variables set by options.
  457. # The variables have the same names as the options, with
  458. # dashes changed to underlines.
  459. build=NONE
  460. cache_file=./config.cache
  461. exec_prefix=NONE
  462. host=NONE
  463. no_create=
  464. nonopt=NONE
  465. no_recursion=
  466. prefix=NONE
  467. program_prefix=NONE
  468. program_suffix=NONE
  469. program_transform_name=s,x,x,
  470. silent=
  471. site=
  472. srcdir=
  473. target=NONE
  474. verbose=
  475. x_includes=NONE
  476. x_libraries=NONE
  477. bindir='${exec_prefix}/bin'
  478. sbindir='${exec_prefix}/sbin'
  479. libexecdir='${exec_prefix}/libexec'
  480. datadir='${prefix}/share'
  481. sysconfdir='${prefix}/etc'
  482. sharedstatedir='${prefix}/com'
  483. localstatedir='${prefix}/var'
  484. libdir='${exec_prefix}/lib'
  485. includedir='${prefix}/include'
  486. oldincludedir='/usr/include'
  487. infodir='${prefix}/info'
  488. mandir='${prefix}/man'
  489.  
  490. # Initialize some other variables.
  491. subdirs=
  492. MFLAGS= MAKEFLAGS=
  493. SHELL=${CONFIG_SHELL-/bin/sh}
  494. # Maximum number of lines to put in a shell here document.
  495. ac_max_here_lines=12
  496.  
  497. ac_prev=
  498. for ac_option
  499. do
  500.  
  501.   # If the previous option needs an argument, assign it.
  502.   if test -n "$ac_prev"; then
  503.     eval "$ac_prev=\$ac_option"
  504.     ac_prev=
  505.     continue
  506.   fi
  507.  
  508.   case "$ac_option" in
  509.   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  510.   *) ac_optarg= ;;
  511.   esac
  512.  
  513.   # Accept the important Cygnus configure options, so we can diagnose typos.
  514.  
  515.   case "$ac_option" in
  516.  
  517.   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  518.     ac_prev=bindir ;;
  519.   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  520.     bindir="$ac_optarg" ;;
  521.  
  522.   -build | --build | --buil | --bui | --bu)
  523.     ac_prev=build ;;
  524.   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  525.     build="$ac_optarg" ;;
  526.  
  527.   -cache-file | --cache-file | --cache-fil | --cache-fi \
  528.   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  529.     ac_prev=cache_file ;;
  530.   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  531.   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  532.     cache_file="$ac_optarg" ;;
  533.  
  534.   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  535.     ac_prev=datadir ;;
  536.   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  537.   | --da=*)
  538.     datadir="$ac_optarg" ;;
  539.  
  540.   -disable-* | --disable-*)
  541.     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  542.     # Reject names that are not valid shell variable names.
  543.     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  544.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  545.     fi
  546.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  547.     eval "enable_${ac_feature}=no" ;;
  548.  
  549.   -enable-* | --enable-*)
  550.     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  551.     # Reject names that are not valid shell variable names.
  552.     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  553.       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  554.     fi
  555.     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  556.     case "$ac_option" in
  557.       *=*) ;;
  558.       *) ac_optarg=yes ;;
  559.     esac
  560.     eval "enable_${ac_feature}='$ac_optarg'" ;;
  561.  
  562.   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  563.   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  564.   | --exec | --exe | --ex)
  565.     ac_prev=exec_prefix ;;
  566.   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  567.   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  568.   | --exec=* | --exe=* | --ex=*)
  569.     exec_prefix="$ac_optarg" ;;
  570.  
  571.   -gas | --gas | --ga | --g)
  572.     # Obsolete; use --with-gas.
  573.     with_gas=yes ;;
  574.  
  575.   -help | --help | --hel | --he)
  576.     # Omit some internal or obsolete options to make the list less imposing.
  577.     # This message is too long to be a string in the A/UX 3.1 sh.
  578.     cat << EOF
  579. Usage: configure [options] [host]
  580. Options: [defaults in brackets after descriptions]
  581. Configuration:
  582.   --cache-file=FILE       cache test results in FILE
  583.   --help                  print this message
  584.   --no-create             do not create output files
  585.   --quiet, --silent       do not print \`checking...' messages
  586.   --version               print the version of autoconf that created configure
  587. Directory and file names:
  588.   --prefix=PREFIX         install architecture-independent files in PREFIX
  589.                           [$ac_default_prefix]
  590.   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  591.                           [same as prefix]
  592.   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  593.   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  594.   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  595.   --datadir=DIR           read-only architecture-independent data in DIR
  596.                           [PREFIX/share]
  597.   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  598.   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  599.                           [PREFIX/com]
  600.   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  601.   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  602.   --includedir=DIR        C header files in DIR [PREFIX/include]
  603.   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  604.   --infodir=DIR           info documentation in DIR [PREFIX/info]
  605.   --mandir=DIR            man documentation in DIR [PREFIX/man]
  606.   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  607.   --program-prefix=PREFIX prepend PREFIX to installed program names
  608.   --program-suffix=SUFFIX append SUFFIX to installed program names
  609.   --program-transform-name=PROGRAM
  610.                           run sed PROGRAM on installed program names
  611. EOF
  612.     cat << EOF
  613. Host type:
  614.   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  615.   --host=HOST             configure for HOST [guessed]
  616.   --target=TARGET         configure for TARGET [TARGET=HOST]
  617. Features and packages:
  618.   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  619.   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  620.   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  621.   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  622.   --x-includes=DIR        X include files are in DIR
  623.   --x-libraries=DIR       X library files are in DIR
  624. EOF
  625.     if test -n "$ac_help"; then
  626.       echo "--enable and --with options recognized:$ac_help"
  627.     fi
  628.     exit 0 ;;
  629.  
  630.   -host | --host | --hos | --ho)
  631.     ac_prev=host ;;
  632.   -host=* | --host=* | --hos=* | --ho=*)
  633.     host="$ac_optarg" ;;
  634.  
  635.   -includedir | --includedir | --includedi | --included | --include \
  636.   | --includ | --inclu | --incl | --inc)
  637.     ac_prev=includedir ;;
  638.   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  639.   | --includ=* | --inclu=* | --incl=* | --inc=*)
  640.     includedir="$ac_optarg" ;;
  641.  
  642.   -infodir | --infodir | --infodi | --infod | --info | --inf)
  643.     ac_prev=infodir ;;
  644.   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  645.     infodir="$ac_optarg" ;;
  646.  
  647.   -libdir | --libdir | --libdi | --libd)
  648.     ac_prev=libdir ;;
  649.   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  650.     libdir="$ac_optarg" ;;
  651.  
  652.   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  653.   | --libexe | --libex | --libe)
  654.     ac_prev=libexecdir ;;
  655.   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  656.   | --libexe=* | --libex=* | --libe=*)
  657.     libexecdir="$ac_optarg" ;;
  658.  
  659.   -localstatedir | --localstatedir | --localstatedi | --localstated \
  660.   | --localstate | --localstat | --localsta | --localst \
  661.   | --locals | --local | --loca | --loc | --lo)
  662.     ac_prev=localstatedir ;;
  663.   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  664.   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  665.   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  666.     localstatedir="$ac_optarg" ;;
  667.  
  668.   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  669.     ac_prev=mandir ;;
  670.   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  671.     mandir="$ac_optarg" ;;
  672.  
  673.   -nfp | --nfp | --nf)
  674.     # Obsolete; use --without-fp.
  675.     with_fp=no ;;
  676.  
  677.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  678.   | --no-cr | --no-c)
  679.     no_create=yes ;;
  680.  
  681.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  682.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  683.     no_recursion=yes ;;
  684.  
  685.   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  686.   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  687.   | --oldin | --oldi | --old | --ol | --o)
  688.     ac_prev=oldincludedir ;;
  689.   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  690.   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  691.   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  692.     oldincludedir="$ac_optarg" ;;
  693.  
  694.   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  695.     ac_prev=prefix ;;
  696.   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  697.     prefix="$ac_optarg" ;;
  698.  
  699.   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  700.   | --program-pre | --program-pr | --program-p)
  701.     ac_prev=program_prefix ;;
  702.   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  703.   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  704.     program_prefix="$ac_optarg" ;;
  705.  
  706.   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  707.   | --program-suf | --program-su | --program-s)
  708.     ac_prev=program_suffix ;;
  709.   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  710.   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  711.     program_suffix="$ac_optarg" ;;
  712.  
  713.   -program-transform-name | --program-transform-name \
  714.   | --program-transform-nam | --program-transform-na \
  715.   | --program-transform-n | --program-transform- \
  716.   | --program-transform | --program-transfor \
  717.   | --program-transfo | --program-transf \
  718.   | --program-trans | --program-tran \
  719.   | --progr-tra | --program-tr | --program-t)
  720.     ac_prev=program_transform_name ;;
  721.   -program-transform-name=* | --program-transform-name=* \
  722.   | --program-transform-nam=* | --program-transform-na=* \
  723.   | --program-transform-n=* | --program-transform-=* \
  724.   | --program-transform=* | --program-transfor=* \
  725.   | --program-transfo=* | --program-transf=* \
  726.   | --program-trans=* | --program-tran=* \
  727.   | --progr-tra=* | --program-tr=* | --program-t=*)
  728.     program_transform_name="$ac_optarg" ;;
  729.  
  730.   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  731.   | -silent | --silent | --silen | --sile | --sil)
  732.     silent=yes ;;
  733.  
  734.   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  735.     ac_prev=sbindir ;;
  736.   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  737.   | --sbi=* | --sb=*)
  738.     sbindir="$ac_optarg" ;;
  739.  
  740.   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  741.   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  742.   | --sharedst | --shareds | --shared | --share | --shar \
  743.   | --sha | --sh)
  744.     ac_prev=sharedstatedir ;;
  745.   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  746.   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  747.   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  748.   | --sha=* | --sh=*)
  749.     sharedstatedir="$ac_optarg" ;;
  750.  
  751.   -site | --site | --sit)
  752.     ac_prev=site ;;
  753.   -site=* | --site=* | --sit=*)
  754.     site="$ac_optarg" ;;
  755.  
  756.   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  757.     ac_prev=srcdir ;;
  758.   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  759.     srcdir="$ac_optarg" ;;
  760.  
  761.   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  762.   | --syscon | --sysco | --sysc | --sys | --sy)
  763.     ac_prev=sysconfdir ;;
  764.   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  765.   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  766.     sysconfdir="$ac_optarg" ;;
  767.  
  768.   -target | --target | --targe | --targ | --tar | --ta | --t)
  769.     ac_prev=target ;;
  770.   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  771.     target="$ac_optarg" ;;
  772.  
  773.   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  774.     verbose=yes ;;
  775.  
  776.   -version | --version | --versio | --versi | --vers)
  777.     echo "configure generated by autoconf version 2.13"
  778.     exit 0 ;;
  779.  
  780.   -with-* | --with-*)
  781.     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  782.     # Reject names that are not valid shell variable names.
  783.     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  784.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  785.     fi
  786.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  787.     case "$ac_option" in
  788.       *=*) ;;
  789.       *) ac_optarg=yes ;;
  790.     esac
  791.     eval "with_${ac_package}='$ac_optarg'" ;;
  792.  
  793.   -without-* | --without-*)
  794.     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  795.     # Reject names that are not valid shell variable names.
  796.     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  797.       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  798.     fi
  799.     ac_package=`echo $ac_package| sed 's/-/_/g'`
  800.     eval "with_${ac_package}=no" ;;
  801.  
  802.   --x)
  803.     # Obsolete; use --with-x.
  804.     with_x=yes ;;
  805.  
  806.   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  807.   | --x-incl | --x-inc | --x-in | --x-i)
  808.     ac_prev=x_includes ;;
  809.   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  810.   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  811.     x_includes="$ac_optarg" ;;
  812.  
  813.   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  814.   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  815.     ac_prev=x_libraries ;;
  816.   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  817.   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  818.     x_libraries="$ac_optarg" ;;
  819.  
  820.   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  821.     ;;
  822.  
  823.   *)
  824.     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  825.       echo "configure: warning: $ac_option: invalid host type" 1>&2
  826.     fi
  827.     if test "x$nonopt" != xNONE; then
  828.       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  829.     fi
  830.     nonopt="$ac_option"
  831.     ;;
  832.  
  833.   esac
  834. done
  835.  
  836. if test -n "$ac_prev"; then
  837.   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  838. fi
  839.  
  840. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  841.  
  842. # File descriptor usage:
  843. # 0 standard input
  844. # 1 file creation
  845. # 2 errors and warnings
  846. # 3 some systems may open it to /dev/tty
  847. # 4 used on the Kubota Titan
  848. # 6 checking for... messages and results
  849. # 5 compiler messages saved in config.log
  850. if test "$silent" = yes; then
  851.   exec 6>/dev/null
  852. else
  853.   exec 6>&1
  854. fi
  855. exec 5>./config.log
  856.  
  857. echo "\
  858. This file contains any messages produced by compilers while
  859. running configure, to aid debugging if configure makes a mistake.
  860. " 1>&5
  861.  
  862. # Strip out --no-create and --no-recursion so they do not pile up.
  863. # Also quote any args containing shell metacharacters.
  864. ac_configure_args=
  865. for ac_arg
  866. do
  867.   case "$ac_arg" in
  868.   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  869.   | --no-cr | --no-c) ;;
  870.   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  871.   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  872.   *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  873.   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  874.   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  875.   esac
  876. done
  877.  
  878. # NLS nuisances.
  879. # Only set these to C if already set.  These must not be set unconditionally
  880. # because not all systems understand e.g. LANG=C (notably SCO).
  881. # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  882. # Non-C LC_CTYPE values break the ctype check.
  883. if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  884. if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  885. if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  886. if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  887.  
  888. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  889. rm -rf conftest* confdefs.h
  890. # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  891. echo > confdefs.h
  892.  
  893. # A filename unique to this package, relative to the directory that
  894. # configure is in, which we can look for to find out if srcdir is correct.
  895. ac_unique_file=wx-config.in
  896.  
  897. # Find the source files, if location was not specified.
  898. if test -z "$srcdir"; then
  899.   ac_srcdir_defaulted=yes
  900.   # Try the directory containing this script, then its parent.
  901.   ac_prog=$0
  902.   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  903.   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  904.   srcdir=$ac_confdir
  905.   if test ! -r $srcdir/$ac_unique_file; then
  906.     srcdir=..
  907.   fi
  908. else
  909.   ac_srcdir_defaulted=no
  910. fi
  911. if test ! -r $srcdir/$ac_unique_file; then
  912.   if test "$ac_srcdir_defaulted" = yes; then
  913.     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  914.   else
  915.     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  916.   fi
  917. fi
  918. srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  919.  
  920. # Prefer explicitly selected file to automatically selected ones.
  921. if test -z "$CONFIG_SITE"; then
  922.   if test "x$prefix" != xNONE; then
  923.     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  924.   else
  925.     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  926.   fi
  927. fi
  928. for ac_site_file in $CONFIG_SITE; do
  929.   if test -r "$ac_site_file"; then
  930.     echo "loading site script $ac_site_file"
  931.     . "$ac_site_file"
  932.   fi
  933. done
  934.  
  935. if test -r "$cache_file"; then
  936.   echo "loading cache $cache_file"
  937.   . $cache_file
  938. else
  939.   echo "creating cache $cache_file"
  940.   > $cache_file
  941. fi
  942.  
  943. ac_ext=c
  944. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  945. ac_cpp='$CPP $CPPFLAGS'
  946. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  947. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  948. cross_compiling=$ac_cv_prog_cc_cross
  949.  
  950. ac_exeext=
  951. ac_objext=o
  952. if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  953.   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  954.   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  955.     ac_n= ac_c='
  956. ' ac_t='    '
  957.   else
  958.     ac_n=-n ac_c= ac_t=
  959.   fi
  960. else
  961.   ac_n= ac_c='\c' ac_t=
  962. fi
  963.  
  964. echo $ac_n "checking for path separator""... $ac_c" 1>&6
  965. echo "configure:966: checking for path separator" >&5
  966. # Filter path to get backslahes into forwardslashes
  967. case "`uname -s 2> /dev/null`" in
  968. OS/2)
  969.   : ${CC=gcc.exe}
  970.   : ${MAKE=make}
  971.   : ${CXX=gcc.exe}
  972.   : ${CPP="gcc.exe -E"}
  973.   : ${CFLAGS="-O2 -m486 -Zmt"}
  974.   : ${CXXFLAGS="-O2 -m486 -Zmt"}
  975.   : ${LDFLAGS="-s -Zmt -Zcrtdll -Zsysv-signals -Zbin-files"}
  976.   : ${CONFIG_SHELL=sh.exe}
  977.   : ${AR="ar.exe"}
  978.   : ${LD="ld.exe"}
  979.   : ${NM=nm.exe}
  980.   : ${RANLIB="ar.exe s"}
  981.   SHELL=${CONFIG_SHELL}
  982.   PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
  983.   PATH_IFS=';'
  984.   ac_cv_emxos2=yes
  985.   ;;
  986. *)
  987.   PATH_IFS=':'
  988.   ;;
  989. esac
  990. echo "$ac_t""${PATH_IFS}" 1>&6
  991.  
  992. echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
  993. echo "configure:994: checking for Cygwin environment" >&5
  994. if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
  995.   echo $ac_n "(cached) $ac_c" 1>&6
  996. else
  997.   cat > conftest.$ac_ext <<EOF
  998. #line 999 "configure"
  999. #include "confdefs.h"
  1000.  
  1001. int main() {
  1002.  
  1003. #ifndef __CYGWIN__
  1004. #define __CYGWIN__ __CYGWIN32__
  1005. #endif
  1006. return __CYGWIN__;
  1007. ; return 0; }
  1008. EOF
  1009. if { (eval echo configure:1010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1010.   rm -rf conftest*
  1011.   ac_cv_cygwin=yes
  1012. else
  1013.   echo "configure: failed program was:" >&5
  1014.   cat conftest.$ac_ext >&5
  1015.   rm -rf conftest*
  1016.   ac_cv_cygwin=no
  1017. fi
  1018. rm -f conftest*
  1019. rm -f conftest*
  1020. fi
  1021.  
  1022. echo "$ac_t""$ac_cv_cygwin" 1>&6
  1023. CYGWIN=
  1024. test "$ac_cv_cygwin" = yes && CYGWIN=yes
  1025. echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
  1026. echo "configure:1027: checking for mingw32 environment" >&5
  1027. if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
  1028.   echo $ac_n "(cached) $ac_c" 1>&6
  1029. else
  1030.   cat > conftest.$ac_ext <<EOF
  1031. #line 1032 "configure"
  1032. #include "confdefs.h"
  1033.  
  1034. int main() {
  1035. return __MINGW32__;
  1036. ; return 0; }
  1037. EOF
  1038. if { (eval echo configure:1039: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1039.   rm -rf conftest*
  1040.   ac_cv_mingw32=yes
  1041. else
  1042.   echo "configure: failed program was:" >&5
  1043.   cat conftest.$ac_ext >&5
  1044.   rm -rf conftest*
  1045.   ac_cv_mingw32=no
  1046. fi
  1047. rm -f conftest*
  1048. rm -f conftest*
  1049. fi
  1050.  
  1051. echo "$ac_t""$ac_cv_mingw32" 1>&6
  1052. MINGW32=
  1053. test "$ac_cv_mingw32" = yes && MINGW32=yes
  1054. echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
  1055. echo "configure:1056: checking for EMX/OS2 environment" >&5
  1056. if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
  1057.   echo $ac_n "(cached) $ac_c" 1>&6
  1058. else
  1059.   : ${CC=gcc.exe}
  1060. cat > conftest.$ac_ext <<EOF
  1061. #line 1062 "configure"
  1062. #include "confdefs.h"
  1063.  
  1064. int main() {
  1065. return __EMX__;
  1066. ; return 0; }
  1067. EOF
  1068. if { (eval echo configure:1069: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  1069.   rm -rf conftest*
  1070.   ac_cv_emxos2=yes
  1071. else
  1072.   echo "configure: failed program was:" >&5
  1073.   cat conftest.$ac_ext >&5
  1074.   rm -rf conftest*
  1075.   ac_cv_emxos2=no
  1076. fi
  1077. rm -f conftest*
  1078. rm -f conftest*
  1079. fi
  1080.  
  1081. echo "$ac_t""$ac_cv_emxos2" 1>&6
  1082. if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
  1083.   echo $ac_n "(cached) $ac_c" 1>&6
  1084. else
  1085.   if test "$ac_cv_emxos2" = yes ; then
  1086.   ac_cv_libpre=
  1087. else
  1088.   ac_cv_libpre=lib
  1089. fi
  1090.  
  1091. fi
  1092.  
  1093. EMXOS2=
  1094. test "$ac_cv_emxos2" = yes && EMXOS2=yes
  1095.  
  1096.  
  1097.  
  1098. echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
  1099. echo "configure:1100: checking for executable suffix" >&5
  1100. if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  1101.   echo $ac_n "(cached) $ac_c" 1>&6
  1102. else
  1103.   if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
  1104.   ac_cv_exeext=.exe
  1105. else
  1106.   rm -f conftest*
  1107.   echo 'int main () { return 0; }' > conftest.$ac_ext
  1108.   ac_cv_exeext=
  1109.   if { (eval echo configure:1110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
  1110.     for file in conftest.*; do
  1111.       case $file in
  1112.       *.c | *.o | *.obj) ;;
  1113.       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
  1114.       esac
  1115.     done
  1116.   else
  1117.     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
  1118.   fi
  1119.   rm -f conftest*
  1120.   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
  1121. fi
  1122. fi
  1123.  
  1124. EXEEXT=""
  1125. test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
  1126. echo "$ac_t""${ac_cv_exeext}" 1>&6
  1127. ac_exeext=$EXEEXT
  1128.  
  1129.  
  1130.  
  1131. ac_aux_dir=
  1132. for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  1133.   if test -f $ac_dir/install-sh; then
  1134.     ac_aux_dir=$ac_dir
  1135.     ac_install_sh="$ac_aux_dir/install-sh -c"
  1136.     break
  1137.   elif test -f $ac_dir/install.sh; then
  1138.     ac_aux_dir=$ac_dir
  1139.     ac_install_sh="$ac_aux_dir/install.sh -c"
  1140.     break
  1141.   fi
  1142. done
  1143. if test -z "$ac_aux_dir"; then
  1144.   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  1145. fi
  1146. ac_config_guess=$ac_aux_dir/config.guess
  1147. ac_config_sub=$ac_aux_dir/config.sub
  1148. ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  1149.  
  1150.  
  1151. # Do some error checking and defaulting for the host and target type.
  1152. # The inputs are:
  1153. #    configure --host=HOST --target=TARGET --build=BUILD NONOPT
  1154. #
  1155. # The rules are:
  1156. # 1. You are not allowed to specify --host, --target, and nonopt at the
  1157. #    same time.
  1158. # 2. Host defaults to nonopt.
  1159. # 3. If nonopt is not specified, then host defaults to the current host,
  1160. #    as determined by config.guess.
  1161. # 4. Target and build default to nonopt.
  1162. # 5. If nonopt is not specified, then target and build default to host.
  1163.  
  1164. # The aliases save the names the user supplied, while $host etc.
  1165. # will get canonicalized.
  1166. case $host---$target---$nonopt in
  1167. NONE---*---* | *---NONE---* | *---*---NONE) ;;
  1168. *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
  1169. esac
  1170.  
  1171.  
  1172. # Make sure we can run config.sub.
  1173. if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
  1174. else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
  1175. fi
  1176.  
  1177. echo $ac_n "checking host system type""... $ac_c" 1>&6
  1178. echo "configure:1179: checking host system type" >&5
  1179.  
  1180. host_alias=$host
  1181. case "$host_alias" in
  1182. NONE)
  1183.   case $nonopt in
  1184.   NONE)
  1185.     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
  1186.     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
  1187.     fi ;;
  1188.   *) host_alias=$nonopt ;;
  1189.   esac ;;
  1190. esac
  1191.  
  1192. host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
  1193. host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1194. host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1195. host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1196. echo "$ac_t""$host" 1>&6
  1197.  
  1198. echo $ac_n "checking target system type""... $ac_c" 1>&6
  1199. echo "configure:1200: checking target system type" >&5
  1200.  
  1201. target_alias=$target
  1202. case "$target_alias" in
  1203. NONE)
  1204.   case $nonopt in
  1205.   NONE) target_alias=$host_alias ;;
  1206.   *) target_alias=$nonopt ;;
  1207.   esac ;;
  1208. esac
  1209.  
  1210. target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
  1211. target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1212. target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1213. target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1214. echo "$ac_t""$target" 1>&6
  1215.  
  1216. echo $ac_n "checking build system type""... $ac_c" 1>&6
  1217. echo "configure:1218: checking build system type" >&5
  1218.  
  1219. build_alias=$build
  1220. case "$build_alias" in
  1221. NONE)
  1222.   case $nonopt in
  1223.   NONE) build_alias=$host_alias ;;
  1224.   *) build_alias=$nonopt ;;
  1225.   esac ;;
  1226. esac
  1227.  
  1228. build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
  1229. build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  1230. build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  1231. build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  1232. echo "$ac_t""$build" 1>&6
  1233.  
  1234. test "$host_alias" != "$target_alias" &&
  1235.   test "$program_prefix$program_suffix$program_transform_name" = \
  1236.     NONENONEs,x,x, &&
  1237.   program_prefix=${target_alias}-
  1238.  
  1239.  
  1240.  
  1241. WX_MAJOR_VERSION_NUMBER=2
  1242. WX_MINOR_VERSION_NUMBER=3
  1243. WX_RELEASE_NUMBER=3
  1244.  
  1245. WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
  1246. WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
  1247.  
  1248. WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
  1249.  
  1250. WX_CURRENT=2
  1251. WX_REVISION=0
  1252. WX_AGE=0
  1253.  
  1254.  
  1255.  
  1256. USE_UNIX=1
  1257. USE_WIN32=0
  1258. USE_DOS=0
  1259. USE_BEOS=0
  1260. USE_MAC=0
  1261.  
  1262. USE_LINUX=
  1263. USE_SGI=
  1264. USE_HPUX=
  1265. USE_SYSV=
  1266. USE_SVR4=
  1267. USE_AIX=
  1268. USE_SUN=
  1269. USE_SOLARIS=
  1270. USE_SUNOS=
  1271. USE_ALPHA=
  1272. USE_OSF=
  1273. USE_BSD=
  1274. USE_DARWIN=
  1275. USE_FREEBSD=
  1276. USE_OPENBSD=
  1277. USE_NETBSD=
  1278. USE_VMS=
  1279. USE_ULTRIX=
  1280. USE_DATA_GENERAL=
  1281.  
  1282. NEEDS_D_REENTRANT_FOR_R_FUNCS=0
  1283.  
  1284. ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
  1285.  
  1286. DEFAULT_wxUSE_GTK=0
  1287. DEFAULT_wxUSE_MAC=0
  1288. DEFAULT_wxUSE_MGL=0
  1289. DEFAULT_wxUSE_MICROWIN=0
  1290. DEFAULT_wxUSE_MOTIF=0
  1291. DEFAULT_wxUSE_MSW=0
  1292. DEFAULT_wxUSE_PM=0
  1293. DEFAULT_wxUSE_WINE=0
  1294. DEFAULT_wxUSE_X11=0
  1295.  
  1296. DEFAULT_DEFAULT_wxUSE_GTK=0
  1297. DEFAULT_DEFAULT_wxUSE_MAC=0
  1298. DEFAULT_DEFAULT_wxUSE_MGL=0
  1299. DEFAULT_DEFAULT_wxUSE_MICROWIN=0
  1300. DEFAULT_DEFAULT_wxUSE_MOTIF=0
  1301. DEFAULT_DEFAULT_wxUSE_MSW=0
  1302. DEFAULT_DEFAULT_wxUSE_PM=0
  1303. DEFAULT_DEFAULT_wxUSE_WINE=0
  1304. DEFAULT_DEFAULT_wxUSE_X11=0
  1305.  
  1306. PROGRAM_EXT=
  1307. SO_SUFFIX=so
  1308.  
  1309. case "${host}" in
  1310.   *-hp-hpux* )
  1311.     USE_HPUX=1
  1312.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1313.     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
  1314.     SO_SUFFIX=sl
  1315.     cat >> confdefs.h <<\EOF
  1316. #define __HPUX__ 1
  1317. EOF
  1318.  
  1319.   ;;
  1320.   *-*-linux* )
  1321.     USE_LINUX=1
  1322.     cat >> confdefs.h <<\EOF
  1323. #define __LINUX__ 1
  1324. EOF
  1325.  
  1326.     TMP=`uname -m`
  1327.     if test "x$TMP" = "xalpha"; then
  1328.       USE_ALPHA=1
  1329.       cat >> confdefs.h <<\EOF
  1330. #define __ALPHA__ 1
  1331. EOF
  1332.  
  1333.     fi
  1334.     DEFAULT_DEFAULT_wxUSE_GTK=1
  1335.   ;;
  1336.   *-*-irix5* | *-*-irix6* )
  1337.     USE_SGI=1
  1338.     USE_SVR4=1
  1339.     cat >> confdefs.h <<\EOF
  1340. #define __SGI__ 1
  1341. EOF
  1342.  
  1343.     cat >> confdefs.h <<\EOF
  1344. #define __SVR4__ 1
  1345. EOF
  1346.  
  1347.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1348.   ;;
  1349.   *-*-solaris2* )
  1350.     USE_SUN=1
  1351.     USE_SOLARIS=1
  1352.     USE_SVR4=1
  1353.     cat >> confdefs.h <<\EOF
  1354. #define __SUN__ 1
  1355. EOF
  1356.  
  1357.     cat >> confdefs.h <<\EOF
  1358. #define __SOLARIS__ 1
  1359. EOF
  1360.  
  1361.     cat >> confdefs.h <<\EOF
  1362. #define __SVR4__ 1
  1363. EOF
  1364.  
  1365.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1366.     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
  1367.   ;;
  1368.   *-*-sunos4* )
  1369.     USE_SUN=1
  1370.     USE_SUNOS=1
  1371.     USE_BSD=1
  1372.     cat >> confdefs.h <<\EOF
  1373. #define __SUN__ 1
  1374. EOF
  1375.  
  1376.     cat >> confdefs.h <<\EOF
  1377. #define __SUNOS__ 1
  1378. EOF
  1379.  
  1380.     cat >> confdefs.h <<\EOF
  1381. #define __BSD__ 1
  1382. EOF
  1383.  
  1384.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1385.   ;;
  1386.   *-*-freebsd*)
  1387.     USE_BSD=1
  1388.     USE_FREEBSD=1
  1389.     cat >> confdefs.h <<\EOF
  1390. #define __FREEBSD__ 1
  1391. EOF
  1392.  
  1393.     cat >> confdefs.h <<\EOF
  1394. #define __BSD__ 1
  1395. EOF
  1396.  
  1397.     DEFAULT_DEFAULT_wxUSE_GTK=1
  1398.   ;;
  1399.   *-*-openbsd*)
  1400.     USE_BSD=1
  1401.     USE_OPENBSD=1
  1402.     cat >> confdefs.h <<\EOF
  1403. #define __FREEBSD__ 1
  1404. EOF
  1405.  
  1406.     cat >> confdefs.h <<\EOF
  1407. #define __OPENBSD__ 1
  1408. EOF
  1409.  
  1410.     DEFAULT_DEFAULT_wxUSE_GTK=1
  1411.   ;;
  1412.   *-*-netbsd*)
  1413.     USE_BSD=1
  1414.     USE_NETBSD=1
  1415.     cat >> confdefs.h <<\EOF
  1416. #define __FREEBSD__ 1
  1417. EOF
  1418.  
  1419.     cat >> confdefs.h <<\EOF
  1420. #define __NETBSD__ 1
  1421. EOF
  1422.  
  1423.     DEFAULT_DEFAULT_wxUSE_GTK=1
  1424.   ;;
  1425.   *-*-osf* )
  1426.     USE_ALPHA=1
  1427.     USE_OSF=1
  1428.     cat >> confdefs.h <<\EOF
  1429. #define __ALPHA__ 1
  1430. EOF
  1431.  
  1432.     cat >> confdefs.h <<\EOF
  1433. #define __OSF__ 1
  1434. EOF
  1435.  
  1436.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1437.     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
  1438.   ;;
  1439.   *-*-dgux5* )
  1440.     USE_ALPHA=1
  1441.     USE_SVR4=1
  1442.     cat >> confdefs.h <<\EOF
  1443. #define __ALPHA__ 1
  1444. EOF
  1445.  
  1446.     cat >> confdefs.h <<\EOF
  1447. #define __SVR4__ 1
  1448. EOF
  1449.  
  1450.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1451.   ;;
  1452.   *-*-sysv5* )
  1453.     USE_SYSV=1
  1454.     USE_SVR4=1
  1455.     cat >> confdefs.h <<\EOF
  1456. #define __SYSV__ 1
  1457. EOF
  1458.  
  1459.     cat >> confdefs.h <<\EOF
  1460. #define __SVR4__ 1
  1461. EOF
  1462.  
  1463.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1464.   ;;
  1465.   *-*-aix* )
  1466.     USE_AIX=1
  1467.     USE_SYSV=1
  1468.     USE_SVR4=1
  1469.             SO_SUFFIX=a
  1470.     cat >> confdefs.h <<\EOF
  1471. #define __AIX__ 1
  1472. EOF
  1473.  
  1474.     cat >> confdefs.h <<\EOF
  1475. #define __SYSV__ 1
  1476. EOF
  1477.  
  1478.     cat >> confdefs.h <<\EOF
  1479. #define __SVR4__ 1
  1480. EOF
  1481.  
  1482.     DEFAULT_DEFAULT_wxUSE_MOTIF=1
  1483.   ;;
  1484.  
  1485.   *-*-cygwin* | *-*-mingw32* )
  1486.                 SO_SUFFIX=dll
  1487.     PROGRAM_EXT=".exe"
  1488.     RESCOMP=windres
  1489.     DEFAULT_DEFAULT_wxUSE_MSW=1
  1490.   ;;
  1491.  
  1492.   *-pc-msdosdjgpp )
  1493.     USE_UNIX=0
  1494.     USE_DOS=1
  1495.     cat >> confdefs.h <<\EOF
  1496. #define __DOS__ 1
  1497. EOF
  1498.  
  1499.     PROGRAM_EXT=".exe"
  1500.     DEFAULT_DEFAULT_wxUSE_MGL=1
  1501.         LIBS="$LIBS -lstdc++"
  1502.   ;;
  1503.  
  1504.   *-pc-os2_emx | *-pc-os2-emx )
  1505.     cat >> confdefs.h <<\EOF
  1506. #define __EMX__ 1
  1507. EOF
  1508.  
  1509.     PROGRAM_EXT=".exe"
  1510.     DEFAULT_DEFAULT_wxUSE_PM=1
  1511.   ;;
  1512.  
  1513.   powerpc-*-darwin* )
  1514.         USE_BSD=1
  1515.     USE_DARWIN=1
  1516.     SO_SUFFIX=dylib
  1517.     cat >> confdefs.h <<\EOF
  1518. #define __BSD__ 1
  1519. EOF
  1520.  
  1521.     cat >> confdefs.h <<\EOF
  1522. #define __DARWIN__ 1
  1523. EOF
  1524.  
  1525.     cat >> confdefs.h <<\EOF
  1526. #define __POWERPC__ 1
  1527. EOF
  1528.  
  1529.     DEFAULT_DEFAULT_wxUSE_MAC=1
  1530.   ;;
  1531.  
  1532.   *-*-beos* )
  1533.         USE_BEOS=1
  1534.     cat >> confdefs.h <<\EOF
  1535. #define __BEOS__ 1
  1536. EOF
  1537.  
  1538.   ;;
  1539.  
  1540.   *)
  1541.     { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
  1542. esac
  1543.  
  1544.  
  1545.  
  1546.  
  1547.           wx_arg_cache_file="configarg.cache"
  1548.           echo "loading argument cache $wx_arg_cache_file"
  1549.           rm -f ${wx_arg_cache_file}.tmp
  1550.           touch ${wx_arg_cache_file}.tmp
  1551.           touch ${wx_arg_cache_file}
  1552.         
  1553.  
  1554. DEBUG_CONFIGURE=0
  1555. if test $DEBUG_CONFIGURE = 1; then
  1556.   DEFAULT_wxUSE_UNIVERSAL=no
  1557.  
  1558.   DEFAULT_wxUSE_NANOX=no
  1559.  
  1560.   DEFAULT_wxUSE_THREADS=yes
  1561.  
  1562.   DEFAULT_wxUSE_SHARED=yes
  1563.   DEFAULT_wxUSE_SONAME=no
  1564.   DEFAULT_wxUSE_OPTIMISE=no
  1565.   DEFAULT_wxUSE_PROFILE=no
  1566.   DEFAULT_wxUSE_NO_DEPS=no
  1567.   DEFAULT_wxUSE_NO_RTTI=no
  1568.   DEFAULT_wxUSE_NO_EXCEPTIONS=no
  1569.   DEFAULT_wxUSE_PERMISSIVE=no
  1570.   DEFAULT_wxUSE_DEBUG_FLAG=yes
  1571.   DEFAULT_wxUSE_DEBUG_INFO=yes
  1572.   DEFAULT_wxUSE_DEBUG_GDB=yes
  1573.   DEFAULT_wxUSE_MEM_TRACING=no
  1574.   DEFAULT_wxUSE_DEBUG_CONTEXT=no
  1575.   DEFAULT_wxUSE_DMALLOC=no
  1576.   DEFAULT_wxUSE_PRECOMP=no
  1577.   DEFAULT_wxUSE_APPLE_IEEE=no
  1578.  
  1579.   DEFAULT_wxUSE_LOG=yes
  1580.   DEFAULT_wxUSE_LOGWINDOW=no
  1581.   DEFAULT_wxUSE_LOGGUI=no
  1582.   DEFAULT_wxUSE_LOGDIALOG=no
  1583.  
  1584.   DEFAULT_wxUSE_GUI=yes
  1585.   DEFAULT_wxUSE_CONTROLS=no
  1586.  
  1587.   DEFAULT_wxUSE_REGEX=no
  1588.   DEFAULT_wxUSE_ZLIB=no
  1589.   DEFAULT_wxUSE_LIBPNG=no
  1590.   DEFAULT_wxUSE_LIBJPEG=no
  1591.   DEFAULT_wxUSE_LIBTIFF=no
  1592.   DEFAULT_wxUSE_ODBC=no
  1593.   DEFAULT_wxUSE_OPENGL=no
  1594.  
  1595.   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
  1596.   DEFAULT_wxUSE_SNGLINST_CHECKER=no
  1597.   DEFAULT_wxUSE_STD_IOSTREAM=no
  1598.   DEFAULT_wxUSE_CMDLINE_PARSER=no
  1599.   DEFAULT_wxUSE_DATETIME=no
  1600.   DEFAULT_wxUSE_TIMEDATE=no
  1601.   DEFAULT_wxUSE_TIMER=no
  1602.   DEFAULT_wxUSE_STOPWATCH=no
  1603.   DEFAULT_wxUSE_FILE=no
  1604.   DEFAULT_wxUSE_FFILE=no
  1605.   DEFAULT_wxUSE_TEXTBUFFER=no
  1606.   DEFAULT_wxUSE_TEXTFILE=no
  1607.   DEFAULT_wxUSE_WAVE=no
  1608.   DEFAULT_wxUSE_INTL=no
  1609.   DEFAULT_wxUSE_CONFIG=no
  1610.   DEFAULT_wxUSE_FONTMAP=no
  1611.   DEFAULT_wxUSE_STREAMS=no
  1612.   DEFAULT_wxUSE_SOCKETS=no
  1613.   DEFAULT_wxUSE_DIALUP_MANAGER=no
  1614.   DEFAULT_wxUSE_JOYSTICK=no
  1615.   DEFAULT_wxUSE_DYNLIB_CLASS=no
  1616.   DEFAULT_wxUSE_DYNAMIC_LOADER=no
  1617.   DEFAULT_wxUSE_LONGLONG=no
  1618.   DEFAULT_wxUSE_GEOMETRY=no
  1619.  
  1620.   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
  1621.   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
  1622.   DEFAULT_wxUSE_POSTSCRIPT=no
  1623.  
  1624.   DEFAULT_wxUSE_X_RESOURCES=no
  1625.   DEFAULT_wxUSE_CLIPBOARD=no
  1626.   DEFAULT_wxUSE_TOOLTIPS=no
  1627.   DEFAULT_wxUSE_DRAG_AND_DROP=no
  1628.   DEFAULT_wxUSE_DRAGIMAGE=no
  1629.   DEFAULT_wxUSE_SPLINES=no
  1630.  
  1631.   DEFAULT_wxUSE_MDI_ARCHITECTURE=no
  1632.   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
  1633.   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
  1634.  
  1635.   DEFAULT_wxUSE_PROLOGIO=no
  1636.   DEFAULT_wxUSE_RESOURCES=no
  1637.   DEFAULT_wxUSE_CONSTRAINTS=no
  1638.   DEFAULT_wxUSE_IPC=no
  1639.   DEFAULT_wxUSE_HELP=no
  1640.   DEFAULT_wxUSE_MS_HTML_HELP=no
  1641.   DEFAULT_wxUSE_WXHTML_HELP=no
  1642.   DEFAULT_wxUSE_TREELAYOUT=no
  1643.   DEFAULT_wxUSE_METAFILE=no
  1644.   DEFAULT_wxUSE_MIMETYPE=no
  1645.   DEFAULT_wxUSE_SYSTEM_OPTIONS=no
  1646.   DEFAULT_wxUSE_PROTOCOL=no
  1647.   DEFAULT_wxUSE_PROTOCOL_HTTP=no
  1648.   DEFAULT_wxUSE_PROTOCOL_FTP=no
  1649.   DEFAULT_wxUSE_PROTOCOL_FILE=no
  1650.   DEFAULT_wxUSE_URL=no
  1651.  
  1652.   DEFAULT_wxUSE_COMMONDLGS=no
  1653.   DEFAULT_wxUSE_CHOICEDLG=no
  1654.   DEFAULT_wxUSE_COLOURDLG=no
  1655.   DEFAULT_wxUSE_DIRDLG=no
  1656.   DEFAULT_wxUSE_FILEDLG=no
  1657.   DEFAULT_wxUSE_FINDREPLDLG=no
  1658.   DEFAULT_wxUSE_FONTDLG=no
  1659.   DEFAULT_wxUSE_MSGDLG=no
  1660.   DEFAULT_wxUSE_NUMBERDLG=no
  1661.   DEFAULT_wxUSE_TEXTDLG=no
  1662.   DEFAULT_wxUSE_SPLASH=no
  1663.   DEFAULT_wxUSE_STARTUP_TIPS=no
  1664.   DEFAULT_wxUSE_PROGRESSDLG=no
  1665.   DEFAULT_wxUSE_WIZARDDLG=no
  1666.  
  1667.   DEFAULT_wxUSE_MENUS=no
  1668.   DEFAULT_wxUSE_MINIFRAME=no
  1669.   DEFAULT_wxUSE_HTML=no
  1670.   DEFAULT_wxUSE_FILESYSTEM=no
  1671.   DEFAULT_wxUSE_FS_INET=no
  1672.   DEFAULT_wxUSE_FS_ZIP=no
  1673.   DEFAULT_wxUSE_BUSYINFO=no
  1674.   DEFAULT_wxUSE_ZIPSTREAM=no
  1675.   DEFAULT_wxUSE_VALIDATORS=no
  1676.  
  1677.   DEFAULT_wxUSE_ACCEL=no
  1678.   DEFAULT_wxUSE_BUTTON=no
  1679.   DEFAULT_wxUSE_BMPBUTTON=no
  1680.   DEFAULT_wxUSE_CALCTRL=no
  1681.   DEFAULT_wxUSE_CARET=no
  1682.   DEFAULT_wxUSE_CHECKBOX=no
  1683.   DEFAULT_wxUSE_CHECKLST=no
  1684.   DEFAULT_wxUSE_CHOICE=no
  1685.   DEFAULT_wxUSE_COMBOBOX=no
  1686.   DEFAULT_wxUSE_GAUGE=no
  1687.   DEFAULT_wxUSE_GRID=no
  1688.   DEFAULT_wxUSE_NEW_GRID=no
  1689.   DEFAULT_wxUSE_IMAGLIST=no
  1690.   DEFAULT_wxUSE_LISTBOX=no
  1691.   DEFAULT_wxUSE_LISTCTRL=no
  1692.   DEFAULT_wxUSE_NOTEBOOK=no
  1693.   DEFAULT_wxUSE_PROPSHEET=no
  1694.   DEFAULT_wxUSE_RADIOBOX=no
  1695.   DEFAULT_wxUSE_RADIOBTN=no
  1696.   DEFAULT_wxUSE_SASH=no
  1697.   DEFAULT_wxUSE_SCROLLBAR=no
  1698.   DEFAULT_wxUSE_SLIDER=no
  1699.   DEFAULT_wxUSE_SPINBTN=no
  1700.   DEFAULT_wxUSE_SPINCTRL=no
  1701.   DEFAULT_wxUSE_SPLITTER=no
  1702.   DEFAULT_wxUSE_STATBMP=no
  1703.   DEFAULT_wxUSE_STATBOX=no
  1704.   DEFAULT_wxUSE_STATLINE=no
  1705.   DEFAULT_wxUSE_STATTEXT=no
  1706.   DEFAULT_wxUSE_STATUSBAR=yes
  1707.   DEFAULT_wxUSE_TABDIALOG=no
  1708.   DEFAULT_wxUSE_TEXTCTRL=no
  1709.   DEFAULT_wxUSE_TOGGLEBTN=no
  1710.   DEFAULT_wxUSE_TOOLBAR=no
  1711.   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
  1712.   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
  1713.   DEFAULT_wxUSE_TREECTRL=no
  1714.   DEFAULT_wxUSE_POPUPWIN=no
  1715.   DEFAULT_wxUSE_TIPWINDOW=no
  1716.  
  1717.   DEFAULT_wxUSE_UNICODE=no
  1718.   DEFAULT_wxUSE_UNICODE_MSLU=no
  1719.   DEFAULT_wxUSE_WCSRTOMBS=no
  1720.  
  1721.   DEFAULT_wxUSE_PALETTE=no
  1722.   DEFAULT_wxUSE_IMAGE=no
  1723.   DEFAULT_wxUSE_GIF=no
  1724.   DEFAULT_wxUSE_PCX=no
  1725.   DEFAULT_wxUSE_PNM=no
  1726.   DEFAULT_wxUSE_IFF=no
  1727.   DEFAULT_wxUSE_XPM=no
  1728.   DEFAULT_wxUSE_ICO_CUR=no
  1729. else
  1730.   DEFAULT_wxUSE_UNIVERSAL=no
  1731.  
  1732.   DEFAULT_wxUSE_NANOX=no
  1733.  
  1734.   DEFAULT_wxUSE_THREADS=yes
  1735.  
  1736.   DEFAULT_wxUSE_SHARED=yes
  1737.   DEFAULT_wxUSE_SONAME=no
  1738.   DEFAULT_wxUSE_OPTIMISE=yes
  1739.   DEFAULT_wxUSE_PROFILE=no
  1740.   DEFAULT_wxUSE_NO_DEPS=no
  1741.   DEFAULT_wxUSE_NO_RTTI=no
  1742.   DEFAULT_wxUSE_NO_EXCEPTIONS=no
  1743.   DEFAULT_wxUSE_PERMISSIVE=no
  1744.   DEFAULT_wxUSE_DEBUG_FLAG=no
  1745.   DEFAULT_wxUSE_DEBUG_INFO=no
  1746.   DEFAULT_wxUSE_DEBUG_GDB=no
  1747.   DEFAULT_wxUSE_MEM_TRACING=no
  1748.   DEFAULT_wxUSE_DEBUG_CONTEXT=no
  1749.   DEFAULT_wxUSE_DMALLOC=no
  1750.   DEFAULT_wxUSE_PRECOMP=no
  1751.   DEFAULT_wxUSE_APPLE_IEEE=yes
  1752.  
  1753.   DEFAULT_wxUSE_LOG=yes
  1754.   DEFAULT_wxUSE_LOGWINDOW=yes
  1755.   DEFAULT_wxUSE_LOGGUI=yes
  1756.   DEFAULT_wxUSE_LOGDIALOG=yes
  1757.  
  1758.   DEFAULT_wxUSE_GUI=yes
  1759.  
  1760.   DEFAULT_wxUSE_REGEX=yes
  1761.   DEFAULT_wxUSE_ZLIB=yes
  1762.   DEFAULT_wxUSE_LIBPNG=yes
  1763.   DEFAULT_wxUSE_LIBJPEG=yes
  1764.   DEFAULT_wxUSE_LIBTIFF=yes
  1765.   DEFAULT_wxUSE_ODBC=no
  1766.   DEFAULT_wxUSE_OPENGL=no
  1767.  
  1768.   DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
  1769.   DEFAULT_wxUSE_SNGLINST_CHECKER=yes
  1770.   DEFAULT_wxUSE_STD_IOSTREAM=no
  1771.   DEFAULT_wxUSE_CMDLINE_PARSER=yes
  1772.   DEFAULT_wxUSE_DATETIME=yes
  1773.   DEFAULT_wxUSE_TIMEDATE=no
  1774.   DEFAULT_wxUSE_TIMER=yes
  1775.   DEFAULT_wxUSE_STOPWATCH=yes
  1776.   DEFAULT_wxUSE_FILE=yes
  1777.   DEFAULT_wxUSE_FFILE=yes
  1778.   DEFAULT_wxUSE_TEXTBUFFER=yes
  1779.   DEFAULT_wxUSE_TEXTFILE=yes
  1780.   DEFAULT_wxUSE_WAVE=no
  1781.   DEFAULT_wxUSE_INTL=yes
  1782.   DEFAULT_wxUSE_CONFIG=yes
  1783.   DEFAULT_wxUSE_FONTMAP=yes
  1784.   DEFAULT_wxUSE_STREAMS=yes
  1785.   DEFAULT_wxUSE_SOCKETS=yes
  1786.   DEFAULT_wxUSE_DIALUP_MANAGER=yes
  1787.   DEFAULT_wxUSE_JOYSTICK=yes
  1788.   DEFAULT_wxUSE_DYNLIB_CLASS=yes
  1789.   DEFAULT_wxUSE_DYNAMIC_LOADER=yes
  1790.   DEFAULT_wxUSE_LONGLONG=yes
  1791.   DEFAULT_wxUSE_GEOMETRY=yes
  1792.  
  1793.   DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
  1794.   DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
  1795.   DEFAULT_wxUSE_POSTSCRIPT=yes
  1796.  
  1797.   DEFAULT_wxUSE_X_RESOURCES=no
  1798.   DEFAULT_wxUSE_CLIPBOARD=yes
  1799.   DEFAULT_wxUSE_TOOLTIPS=yes
  1800.   DEFAULT_wxUSE_DRAG_AND_DROP=yes
  1801.   DEFAULT_wxUSE_DRAGIMAGE=yes
  1802.   DEFAULT_wxUSE_SPLINES=yes
  1803.  
  1804.   DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
  1805.   DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
  1806.   DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
  1807.  
  1808.   DEFAULT_wxUSE_PROLOGIO=yes
  1809.   DEFAULT_wxUSE_RESOURCES=yes
  1810.   DEFAULT_wxUSE_CONSTRAINTS=yes
  1811.   DEFAULT_wxUSE_IPC=yes
  1812.   DEFAULT_wxUSE_HELP=yes
  1813.   DEFAULT_wxUSE_MS_HTML_HELP=yes
  1814.   DEFAULT_wxUSE_WXHTML_HELP=yes
  1815.   DEFAULT_wxUSE_TREELAYOUT=yes
  1816.   DEFAULT_wxUSE_METAFILE=yes
  1817.   DEFAULT_wxUSE_MIMETYPE=yes
  1818.   DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
  1819.   DEFAULT_wxUSE_PROTOCOL=yes
  1820.   DEFAULT_wxUSE_PROTOCOL_HTTP=yes
  1821.   DEFAULT_wxUSE_PROTOCOL_FTP=yes
  1822.   DEFAULT_wxUSE_PROTOCOL_FILE=yes
  1823.   DEFAULT_wxUSE_URL=yes
  1824.  
  1825.   DEFAULT_wxUSE_COMMONDLGS=yes
  1826.   DEFAULT_wxUSE_CHOICEDLG=yes
  1827.   DEFAULT_wxUSE_COLOURDLG=yes
  1828.   DEFAULT_wxUSE_DIRDLG=yes
  1829.   DEFAULT_wxUSE_FILEDLG=yes
  1830.   DEFAULT_wxUSE_FINDREPLDLG=yes
  1831.   DEFAULT_wxUSE_FONTDLG=yes
  1832.   DEFAULT_wxUSE_MSGDLG=yes
  1833.   DEFAULT_wxUSE_NUMBERDLG=yes
  1834.   DEFAULT_wxUSE_TEXTDLG=yes
  1835.   DEFAULT_wxUSE_SPLASH=yes
  1836.   DEFAULT_wxUSE_STARTUP_TIPS=yes
  1837.   DEFAULT_wxUSE_PROGRESSDLG=yes
  1838.   DEFAULT_wxUSE_WIZARDDLG=yes
  1839.  
  1840.   DEFAULT_wxUSE_MENUS=yes
  1841.   DEFAULT_wxUSE_MINIFRAME=yes
  1842.   DEFAULT_wxUSE_HTML=yes
  1843.   DEFAULT_wxUSE_FILESYSTEM=yes
  1844.   DEFAULT_wxUSE_FS_INET=yes
  1845.   DEFAULT_wxUSE_FS_ZIP=yes
  1846.   DEFAULT_wxUSE_BUSYINFO=yes
  1847.   DEFAULT_wxUSE_ZIPSTREAM=yes
  1848.   DEFAULT_wxUSE_VALIDATORS=yes
  1849.  
  1850.   DEFAULT_wxUSE_ACCEL=yes
  1851.   DEFAULT_wxUSE_BUTTON=yes
  1852.   DEFAULT_wxUSE_BMPBUTTON=yes
  1853.   DEFAULT_wxUSE_CALCTRL=yes
  1854.   DEFAULT_wxUSE_CARET=yes
  1855.   DEFAULT_wxUSE_CHECKBOX=yes
  1856.   DEFAULT_wxUSE_CHECKLST=yes
  1857.   DEFAULT_wxUSE_CHOICE=yes
  1858.   DEFAULT_wxUSE_COMBOBOX=yes
  1859.   DEFAULT_wxUSE_GAUGE=yes
  1860.   DEFAULT_wxUSE_GRID=yes
  1861.   DEFAULT_wxUSE_NEW_GRID=yes
  1862.   DEFAULT_wxUSE_IMAGLIST=yes
  1863.   DEFAULT_wxUSE_LISTBOX=yes
  1864.   DEFAULT_wxUSE_LISTCTRL=yes
  1865.   DEFAULT_wxUSE_NOTEBOOK=yes
  1866.   DEFAULT_wxUSE_PROPSHEET=yes
  1867.   DEFAULT_wxUSE_RADIOBOX=yes
  1868.   DEFAULT_wxUSE_RADIOBTN=yes
  1869.   DEFAULT_wxUSE_SASH=yes
  1870.   DEFAULT_wxUSE_SCROLLBAR=yes
  1871.   DEFAULT_wxUSE_SLIDER=yes
  1872.   DEFAULT_wxUSE_SPINBTN=yes
  1873.   DEFAULT_wxUSE_SPINCTRL=yes
  1874.   DEFAULT_wxUSE_SPLITTER=yes
  1875.   DEFAULT_wxUSE_STATBMP=yes
  1876.   DEFAULT_wxUSE_STATBOX=yes
  1877.   DEFAULT_wxUSE_STATLINE=yes
  1878.   DEFAULT_wxUSE_STATTEXT=yes
  1879.   DEFAULT_wxUSE_STATUSBAR=yes
  1880.   DEFAULT_wxUSE_TABDIALOG=no
  1881.   DEFAULT_wxUSE_TEXTCTRL=yes
  1882.   DEFAULT_wxUSE_TOGGLEBTN=yes
  1883.   DEFAULT_wxUSE_TOOLBAR=yes
  1884.   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
  1885.   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
  1886.   DEFAULT_wxUSE_TREECTRL=yes
  1887.   DEFAULT_wxUSE_POPUPWIN=yes
  1888.   DEFAULT_wxUSE_TIPWINDOW=yes
  1889.  
  1890.   DEFAULT_wxUSE_UNICODE=no
  1891.   DEFAULT_wxUSE_UNICODE_MSLU=yes
  1892.   DEFAULT_wxUSE_WCSRTOMBS=no
  1893.  
  1894.   DEFAULT_wxUSE_PALETTE=yes
  1895.   DEFAULT_wxUSE_IMAGE=yes
  1896.   DEFAULT_wxUSE_GIF=yes
  1897.   DEFAULT_wxUSE_PCX=yes
  1898.   DEFAULT_wxUSE_IFF=no
  1899.   DEFAULT_wxUSE_PNM=yes
  1900.   DEFAULT_wxUSE_XPM=yes
  1901.   DEFAULT_wxUSE_ICO_CUR=yes
  1902. fi
  1903.  
  1904.  
  1905.  
  1906. for toolkit in `echo $ALL_TOOLKITS`; do
  1907.   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
  1908.   if test "x$LINE" != "x" ; then
  1909.     has_toolkit_in_cache=1
  1910.     eval "DEFAULT_$LINE"
  1911.     eval "CACHE_$toolkit=1"
  1912.   fi
  1913. done
  1914.  
  1915.  
  1916.  
  1917.           echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
  1918. echo "configure:1919: checking for --enable-gui" >&5
  1919.           no_cache=0
  1920.           # Check whether --enable-gui or --disable-gui was given.
  1921. if test "${enable_gui+set}" = set; then
  1922.   enableval="$enable_gui"
  1923.   
  1924.                           if test "$enableval" = yes; then
  1925.                             ac_cv_use_gui='wxUSE_GUI=yes'
  1926.                           else
  1927.                             ac_cv_use_gui='wxUSE_GUI=no'
  1928.                           fi
  1929.                         
  1930. else
  1931.   
  1932.                           LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
  1933.                           if test "x$LINE" != x ; then
  1934.                             eval "DEFAULT_$LINE"
  1935.                           else
  1936.                             no_cache=1
  1937.                           fi
  1938.  
  1939.                           ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
  1940.                         
  1941. fi
  1942.  
  1943.  
  1944.           eval "$ac_cv_use_gui"
  1945.           if test "$no_cache" != 1; then
  1946.             echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
  1947.           fi
  1948.  
  1949.           if test "$wxUSE_GUI" = yes; then
  1950.             echo "$ac_t""yes" 1>&6
  1951.           else
  1952.             echo "$ac_t""no" 1>&6
  1953.           fi
  1954.         
  1955.  
  1956. if test "$wxUSE_GUI" = "yes"; then
  1957.  
  1958.  
  1959.           echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
  1960. echo "configure:1961: checking for --enable-universal" >&5
  1961.           no_cache=0
  1962.           # Check whether --enable-universal or --disable-universal was given.
  1963. if test "${enable_universal+set}" = set; then
  1964.   enableval="$enable_universal"
  1965.   
  1966.                           if test "$enableval" = yes; then
  1967.                             ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
  1968.                           else
  1969.                             ac_cv_use_universal='wxUSE_UNIVERSAL=no'
  1970.                           fi
  1971.                         
  1972. else
  1973.   
  1974.                           LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
  1975.                           if test "x$LINE" != x ; then
  1976.                             eval "DEFAULT_$LINE"
  1977.                           else
  1978.                             no_cache=1
  1979.                           fi
  1980.  
  1981.                           ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
  1982.                         
  1983. fi
  1984.  
  1985.  
  1986.           eval "$ac_cv_use_universal"
  1987.           if test "$no_cache" != 1; then
  1988.             echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
  1989.           fi
  1990.  
  1991.           if test "$wxUSE_UNIVERSAL" = yes; then
  1992.             echo "$ac_t""yes" 1>&6
  1993.           else
  1994.             echo "$ac_t""no" 1>&6
  1995.           fi
  1996.         
  1997. # Check whether --with-gtk or --without-gtk was given.
  1998. if test "${with_gtk+set}" = set; then
  1999.   withval="$with_gtk"
  2000.   wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
  2001. fi
  2002.  
  2003. # Check whether --with-motif or --without-motif was given.
  2004. if test "${with_motif+set}" = set; then
  2005.   withval="$with_motif"
  2006.   wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
  2007. fi
  2008.  
  2009. # Check whether --with-mac or --without-mac was given.
  2010. if test "${with_mac+set}" = set; then
  2011.   withval="$with_mac"
  2012.   wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
  2013. fi
  2014.  
  2015. # Check whether --with-wine or --without-wine was given.
  2016. if test "${with_wine+set}" = set; then
  2017.   withval="$with_wine"
  2018.   wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
  2019. fi
  2020.  
  2021. # Check whether --with-msw or --without-msw was given.
  2022. if test "${with_msw+set}" = set; then
  2023.   withval="$with_msw"
  2024.   wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
  2025. fi
  2026.  
  2027. # Check whether --with-pm or --without-pm was given.
  2028. if test "${with_pm+set}" = set; then
  2029.   withval="$with_pm"
  2030.   wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
  2031. fi
  2032.  
  2033. # Check whether --with-mgl or --without-mgl was given.
  2034. if test "${with_mgl+set}" = set; then
  2035.   withval="$with_mgl"
  2036.   wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
  2037. fi
  2038.  
  2039. # Check whether --with-microwin or --without-microwin was given.
  2040. if test "${with_microwin+set}" = set; then
  2041.   withval="$with_microwin"
  2042.   wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
  2043. fi
  2044.  
  2045. # Check whether --with-x11 or --without-x11 was given.
  2046. if test "${with_x11+set}" = set; then
  2047.   withval="$with_x11"
  2048.   wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
  2049. fi
  2050.  
  2051.  
  2052.           echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
  2053. echo "configure:2054: checking for --enable-nanox" >&5
  2054.           no_cache=0
  2055.           # Check whether --enable-nanox or --disable-nanox was given.
  2056. if test "${enable_nanox+set}" = set; then
  2057.   enableval="$enable_nanox"
  2058.   
  2059.                           if test "$enableval" = yes; then
  2060.                             ac_cv_use_nanox='wxUSE_NANOX=yes'
  2061.                           else
  2062.                             ac_cv_use_nanox='wxUSE_NANOX=no'
  2063.                           fi
  2064.                         
  2065. else
  2066.   
  2067.                           LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
  2068.                           if test "x$LINE" != x ; then
  2069.                             eval "DEFAULT_$LINE"
  2070.                           else
  2071.                             no_cache=1
  2072.                           fi
  2073.  
  2074.                           ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
  2075.                         
  2076. fi
  2077.  
  2078.  
  2079.           eval "$ac_cv_use_nanox"
  2080.           if test "$no_cache" != 1; then
  2081.             echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
  2082.           fi
  2083.  
  2084.           if test "$wxUSE_NANOX" = yes; then
  2085.             echo "$ac_t""yes" 1>&6
  2086.           else
  2087.             echo "$ac_t""no" 1>&6
  2088.           fi
  2089.         
  2090.  
  2091.  
  2092.           echo $ac_n "checking for --enable-gtk2""... $ac_c" 1>&6
  2093. echo "configure:2094: checking for --enable-gtk2" >&5
  2094.           no_cache=0
  2095.           # Check whether --enable-gtk2 or --disable-gtk2 was given.
  2096. if test "${enable_gtk2+set}" = set; then
  2097.   enableval="$enable_gtk2"
  2098.   
  2099.                           if test "$enableval" = yes; then
  2100.                             ac_cv_use_gtk2='wxUSE_GTK2=yes'
  2101.                           else
  2102.                             ac_cv_use_gtk2='wxUSE_GTK2=no'
  2103.                           fi
  2104.                         
  2105. else
  2106.   
  2107.                           LINE=`grep "wxUSE_GTK2" ${wx_arg_cache_file}`
  2108.                           if test "x$LINE" != x ; then
  2109.                             eval "DEFAULT_$LINE"
  2110.                           else
  2111.                             no_cache=1
  2112.                           fi
  2113.  
  2114.                           ac_cv_use_gtk2='wxUSE_GTK2='$DEFAULT_wxUSE_GTK2
  2115.                         
  2116. fi
  2117.  
  2118.  
  2119.           eval "$ac_cv_use_gtk2"
  2120.           if test "$no_cache" != 1; then
  2121.             echo $ac_cv_use_gtk2 >> ${wx_arg_cache_file}.tmp
  2122.           fi
  2123.  
  2124.           if test "$wxUSE_GTK2" = yes; then
  2125.             echo "$ac_t""yes" 1>&6
  2126.           else
  2127.             echo "$ac_t""no" 1>&6
  2128.           fi
  2129.         
  2130.  
  2131.  
  2132.           echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
  2133. echo "configure:2134: checking for --with-libpng" >&5
  2134.           no_cache=0
  2135.           # Check whether --with-libpng or --without-libpng was given.
  2136. if test "${with_libpng+set}" = set; then
  2137.   withval="$with_libpng"
  2138.   
  2139.                         if test "$withval" = yes; then
  2140.                           ac_cv_use_libpng='wxUSE_LIBPNG=yes'
  2141.                         elif test "$withval" = no; then
  2142.                           ac_cv_use_libpng='wxUSE_LIBPNG=no'
  2143.                         elif test "$withval" = sys; then
  2144.                           ac_cv_use_libpng='wxUSE_LIBPNG=sys'
  2145.                         elif test "$withval" = builtin; then
  2146.                           ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
  2147.                         else
  2148.                           { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2149.                         fi
  2150.                       
  2151. else
  2152.   
  2153.                         LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
  2154.                         if test "x$LINE" != x ; then
  2155.                           eval "DEFAULT_$LINE"
  2156.                         else
  2157.                           no_cache=1
  2158.                         fi
  2159.  
  2160.                         ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
  2161.                       
  2162. fi
  2163.  
  2164.  
  2165.           eval "$ac_cv_use_libpng"
  2166.           if test "$no_cache" != 1; then
  2167.             echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
  2168.           fi
  2169.  
  2170.           if test "$wxUSE_LIBPNG" = yes; then
  2171.             echo "$ac_t""yes" 1>&6
  2172.           elif test "$wxUSE_LIBPNG" = no; then
  2173.             echo "$ac_t""no" 1>&6
  2174.           elif test "$wxUSE_LIBPNG" = sys; then
  2175.             echo "$ac_t""system version" 1>&6
  2176.           elif test "$wxUSE_LIBPNG" = builtin; then
  2177.             echo "$ac_t""builtin version" 1>&6
  2178.           else
  2179.             { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2180.           fi
  2181.         
  2182.  
  2183.           echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
  2184. echo "configure:2185: checking for --with-libjpeg" >&5
  2185.           no_cache=0
  2186.           # Check whether --with-libjpeg or --without-libjpeg was given.
  2187. if test "${with_libjpeg+set}" = set; then
  2188.   withval="$with_libjpeg"
  2189.   
  2190.                         if test "$withval" = yes; then
  2191.                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
  2192.                         elif test "$withval" = no; then
  2193.                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
  2194.                         elif test "$withval" = sys; then
  2195.                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
  2196.                         elif test "$withval" = builtin; then
  2197.                           ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
  2198.                         else
  2199.                           { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2200.                         fi
  2201.                       
  2202. else
  2203.   
  2204.                         LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
  2205.                         if test "x$LINE" != x ; then
  2206.                           eval "DEFAULT_$LINE"
  2207.                         else
  2208.                           no_cache=1
  2209.                         fi
  2210.  
  2211.                         ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
  2212.                       
  2213. fi
  2214.  
  2215.  
  2216.           eval "$ac_cv_use_libjpeg"
  2217.           if test "$no_cache" != 1; then
  2218.             echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
  2219.           fi
  2220.  
  2221.           if test "$wxUSE_LIBJPEG" = yes; then
  2222.             echo "$ac_t""yes" 1>&6
  2223.           elif test "$wxUSE_LIBJPEG" = no; then
  2224.             echo "$ac_t""no" 1>&6
  2225.           elif test "$wxUSE_LIBJPEG" = sys; then
  2226.             echo "$ac_t""system version" 1>&6
  2227.           elif test "$wxUSE_LIBJPEG" = builtin; then
  2228.             echo "$ac_t""builtin version" 1>&6
  2229.           else
  2230.             { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2231.           fi
  2232.         
  2233.  
  2234.           echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
  2235. echo "configure:2236: checking for --with-libtiff" >&5
  2236.           no_cache=0
  2237.           # Check whether --with-libtiff or --without-libtiff was given.
  2238. if test "${with_libtiff+set}" = set; then
  2239.   withval="$with_libtiff"
  2240.   
  2241.                         if test "$withval" = yes; then
  2242.                           ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
  2243.                         elif test "$withval" = no; then
  2244.                           ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
  2245.                         elif test "$withval" = sys; then
  2246.                           ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
  2247.                         elif test "$withval" = builtin; then
  2248.                           ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
  2249.                         else
  2250.                           { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2251.                         fi
  2252.                       
  2253. else
  2254.   
  2255.                         LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
  2256.                         if test "x$LINE" != x ; then
  2257.                           eval "DEFAULT_$LINE"
  2258.                         else
  2259.                           no_cache=1
  2260.                         fi
  2261.  
  2262.                         ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
  2263.                       
  2264. fi
  2265.  
  2266.  
  2267.           eval "$ac_cv_use_libtiff"
  2268.           if test "$no_cache" != 1; then
  2269.             echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
  2270.           fi
  2271.  
  2272.           if test "$wxUSE_LIBTIFF" = yes; then
  2273.             echo "$ac_t""yes" 1>&6
  2274.           elif test "$wxUSE_LIBTIFF" = no; then
  2275.             echo "$ac_t""no" 1>&6
  2276.           elif test "$wxUSE_LIBTIFF" = sys; then
  2277.             echo "$ac_t""system version" 1>&6
  2278.           elif test "$wxUSE_LIBTIFF" = builtin; then
  2279.             echo "$ac_t""builtin version" 1>&6
  2280.           else
  2281.             { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2282.           fi
  2283.         
  2284.  
  2285.           echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
  2286. echo "configure:2287: checking for --with-opengl" >&5
  2287.           no_cache=0
  2288.           # Check whether --with-opengl or --without-opengl was given.
  2289. if test "${with_opengl+set}" = set; then
  2290.   withval="$with_opengl"
  2291.   
  2292.                         if test "$withval" = yes; then
  2293.                           ac_cv_use_opengl='wxUSE_OPENGL=yes'
  2294.                         else
  2295.                           ac_cv_use_opengl='wxUSE_OPENGL=no'
  2296.                         fi
  2297.                       
  2298. else
  2299.   
  2300.                         LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
  2301.                         if test "x$LINE" != x ; then
  2302.                           eval "DEFAULT_$LINE"
  2303.                         else
  2304.                           no_cache=1
  2305.                         fi
  2306.  
  2307.                         ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
  2308.                       
  2309. fi
  2310.  
  2311.  
  2312.           eval "$ac_cv_use_opengl"
  2313.           if test "$no_cache" != 1; then
  2314.             echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
  2315.           fi
  2316.  
  2317.           if test "$wxUSE_OPENGL" = yes; then
  2318.             echo "$ac_t""yes" 1>&6
  2319.           else
  2320.             echo "$ac_t""no" 1>&6
  2321.           fi
  2322.         
  2323.  
  2324. fi
  2325.  
  2326.  
  2327.           echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
  2328. echo "configure:2329: checking for --with-dmalloc" >&5
  2329.           no_cache=0
  2330.           # Check whether --with-dmalloc or --without-dmalloc was given.
  2331. if test "${with_dmalloc+set}" = set; then
  2332.   withval="$with_dmalloc"
  2333.   
  2334.                         if test "$withval" = yes; then
  2335.                           ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
  2336.                         else
  2337.                           ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
  2338.                         fi
  2339.                       
  2340. else
  2341.   
  2342.                         LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
  2343.                         if test "x$LINE" != x ; then
  2344.                           eval "DEFAULT_$LINE"
  2345.                         else
  2346.                           no_cache=1
  2347.                         fi
  2348.  
  2349.                         ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
  2350.                       
  2351. fi
  2352.  
  2353.  
  2354.           eval "$ac_cv_use_dmalloc"
  2355.           if test "$no_cache" != 1; then
  2356.             echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
  2357.           fi
  2358.  
  2359.           if test "$wxUSE_DMALLOC" = yes; then
  2360.             echo "$ac_t""yes" 1>&6
  2361.           else
  2362.             echo "$ac_t""no" 1>&6
  2363.           fi
  2364.         
  2365.  
  2366.           echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
  2367. echo "configure:2368: checking for --with-regex" >&5
  2368.           no_cache=0
  2369.           # Check whether --with-regex or --without-regex was given.
  2370. if test "${with_regex+set}" = set; then
  2371.   withval="$with_regex"
  2372.   
  2373.                         if test "$withval" = yes; then
  2374.                           ac_cv_use_regex='wxUSE_REGEX=yes'
  2375.                         elif test "$withval" = no; then
  2376.                           ac_cv_use_regex='wxUSE_REGEX=no'
  2377.                         elif test "$withval" = sys; then
  2378.                           ac_cv_use_regex='wxUSE_REGEX=sys'
  2379.                         elif test "$withval" = builtin; then
  2380.                           ac_cv_use_regex='wxUSE_REGEX=builtin'
  2381.                         else
  2382.                           { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2383.                         fi
  2384.                       
  2385. else
  2386.   
  2387.                         LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
  2388.                         if test "x$LINE" != x ; then
  2389.                           eval "DEFAULT_$LINE"
  2390.                         else
  2391.                           no_cache=1
  2392.                         fi
  2393.  
  2394.                         ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
  2395.                       
  2396. fi
  2397.  
  2398.  
  2399.           eval "$ac_cv_use_regex"
  2400.           if test "$no_cache" != 1; then
  2401.             echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
  2402.           fi
  2403.  
  2404.           if test "$wxUSE_REGEX" = yes; then
  2405.             echo "$ac_t""yes" 1>&6
  2406.           elif test "$wxUSE_REGEX" = no; then
  2407.             echo "$ac_t""no" 1>&6
  2408.           elif test "$wxUSE_REGEX" = sys; then
  2409.             echo "$ac_t""system version" 1>&6
  2410.           elif test "$wxUSE_REGEX" = builtin; then
  2411.             echo "$ac_t""builtin version" 1>&6
  2412.           else
  2413.             { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2414.           fi
  2415.         
  2416.  
  2417.           echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
  2418. echo "configure:2419: checking for --with-zlib" >&5
  2419.           no_cache=0
  2420.           # Check whether --with-zlib or --without-zlib was given.
  2421. if test "${with_zlib+set}" = set; then
  2422.   withval="$with_zlib"
  2423.   
  2424.                         if test "$withval" = yes; then
  2425.                           ac_cv_use_zlib='wxUSE_ZLIB=yes'
  2426.                         elif test "$withval" = no; then
  2427.                           ac_cv_use_zlib='wxUSE_ZLIB=no'
  2428.                         elif test "$withval" = sys; then
  2429.                           ac_cv_use_zlib='wxUSE_ZLIB=sys'
  2430.                         elif test "$withval" = builtin; then
  2431.                           ac_cv_use_zlib='wxUSE_ZLIB=builtin'
  2432.                         else
  2433.                           { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2434.                         fi
  2435.                       
  2436. else
  2437.   
  2438.                         LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
  2439.                         if test "x$LINE" != x ; then
  2440.                           eval "DEFAULT_$LINE"
  2441.                         else
  2442.                           no_cache=1
  2443.                         fi
  2444.  
  2445.                         ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
  2446.                       
  2447. fi
  2448.  
  2449.  
  2450.           eval "$ac_cv_use_zlib"
  2451.           if test "$no_cache" != 1; then
  2452.             echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
  2453.           fi
  2454.  
  2455.           if test "$wxUSE_ZLIB" = yes; then
  2456.             echo "$ac_t""yes" 1>&6
  2457.           elif test "$wxUSE_ZLIB" = no; then
  2458.             echo "$ac_t""no" 1>&6
  2459.           elif test "$wxUSE_ZLIB" = sys; then
  2460.             echo "$ac_t""system version" 1>&6
  2461.           elif test "$wxUSE_ZLIB" = builtin; then
  2462.             echo "$ac_t""builtin version" 1>&6
  2463.           else
  2464.             { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
  2465.           fi
  2466.         
  2467.  
  2468.           echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
  2469. echo "configure:2470: checking for --with-odbc" >&5
  2470.           no_cache=0
  2471.           # Check whether --with-odbc or --without-odbc was given.
  2472. if test "${with_odbc+set}" = set; then
  2473.   withval="$with_odbc"
  2474.   
  2475.                         if test "$withval" = yes; then
  2476.                           ac_cv_use_odbc='wxUSE_ODBC=yes'
  2477.                         else
  2478.                           ac_cv_use_odbc='wxUSE_ODBC=no'
  2479.                         fi
  2480.                       
  2481. else
  2482.   
  2483.                         LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
  2484.                         if test "x$LINE" != x ; then
  2485.                           eval "DEFAULT_$LINE"
  2486.                         else
  2487.                           no_cache=1
  2488.                         fi
  2489.  
  2490.                         ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
  2491.                       
  2492. fi
  2493.  
  2494.  
  2495.           eval "$ac_cv_use_odbc"
  2496.           if test "$no_cache" != 1; then
  2497.             echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
  2498.           fi
  2499.  
  2500.           if test "$wxUSE_ODBC" = yes; then
  2501.             echo "$ac_t""yes" 1>&6
  2502.           else
  2503.             echo "$ac_t""no" 1>&6
  2504.           fi
  2505.         
  2506.  
  2507.  
  2508.  
  2509.           echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
  2510. echo "configure:2511: checking for --enable-shared" >&5
  2511.           no_cache=0
  2512.           # Check whether --enable-shared or --disable-shared was given.
  2513. if test "${enable_shared+set}" = set; then
  2514.   enableval="$enable_shared"
  2515.   
  2516.                           if test "$enableval" = yes; then
  2517.                             ac_cv_use_shared='wxUSE_SHARED=yes'
  2518.                           else
  2519.                             ac_cv_use_shared='wxUSE_SHARED=no'
  2520.                           fi
  2521.                         
  2522. else
  2523.   
  2524.                           LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
  2525.                           if test "x$LINE" != x ; then
  2526.                             eval "DEFAULT_$LINE"
  2527.                           else
  2528.                             no_cache=1
  2529.                           fi
  2530.  
  2531.                           ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
  2532.                         
  2533. fi
  2534.  
  2535.  
  2536.           eval "$ac_cv_use_shared"
  2537.           if test "$no_cache" != 1; then
  2538.             echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
  2539.           fi
  2540.  
  2541.           if test "$wxUSE_SHARED" = yes; then
  2542.             echo "$ac_t""yes" 1>&6
  2543.           else
  2544.             echo "$ac_t""no" 1>&6
  2545.           fi
  2546.         
  2547.  
  2548.           echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
  2549. echo "configure:2550: checking for --enable-soname" >&5
  2550.           no_cache=0
  2551.           # Check whether --enable-soname or --disable-soname was given.
  2552. if test "${enable_soname+set}" = set; then
  2553.   enableval="$enable_soname"
  2554.   
  2555.                           if test "$enableval" = yes; then
  2556.                             ac_cv_use_soname='wxUSE_SONAME=yes'
  2557.                           else
  2558.                             ac_cv_use_soname='wxUSE_SONAME=no'
  2559.                           fi
  2560.                         
  2561. else
  2562.   
  2563.                           LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
  2564.                           if test "x$LINE" != x ; then
  2565.                             eval "DEFAULT_$LINE"
  2566.                           else
  2567.                             no_cache=1
  2568.                           fi
  2569.  
  2570.                           ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
  2571.                         
  2572. fi
  2573.  
  2574.  
  2575.           eval "$ac_cv_use_soname"
  2576.           if test "$no_cache" != 1; then
  2577.             echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
  2578.           fi
  2579.  
  2580.           if test "$wxUSE_SONAME" = yes; then
  2581.             echo "$ac_t""yes" 1>&6
  2582.           else
  2583.             echo "$ac_t""no" 1>&6
  2584.           fi
  2585.         
  2586.  
  2587.           echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
  2588. echo "configure:2589: checking for --enable-optimise" >&5
  2589.           no_cache=0
  2590.           # Check whether --enable-optimise or --disable-optimise was given.
  2591. if test "${enable_optimise+set}" = set; then
  2592.   enableval="$enable_optimise"
  2593.   
  2594.                           if test "$enableval" = yes; then
  2595.                             ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
  2596.                           else
  2597.                             ac_cv_use_optimise='wxUSE_OPTIMISE=no'
  2598.                           fi
  2599.                         
  2600. else
  2601.   
  2602.                           LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
  2603.                           if test "x$LINE" != x ; then
  2604.                             eval "DEFAULT_$LINE"
  2605.                           else
  2606.                             no_cache=1
  2607.                           fi
  2608.  
  2609.                           ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
  2610.                         
  2611. fi
  2612.  
  2613.  
  2614.           eval "$ac_cv_use_optimise"
  2615.           if test "$no_cache" != 1; then
  2616.             echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
  2617.           fi
  2618.  
  2619.           if test "$wxUSE_OPTIMISE" = yes; then
  2620.             echo "$ac_t""yes" 1>&6
  2621.           else
  2622.             echo "$ac_t""no" 1>&6
  2623.           fi
  2624.         
  2625.  
  2626.           echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
  2627. echo "configure:2628: checking for --enable-debug" >&5
  2628.           no_cache=0
  2629.           # Check whether --enable-debug or --disable-debug was given.
  2630. if test "${enable_debug+set}" = set; then
  2631.   enableval="$enable_debug"
  2632.   
  2633.                           if test "$enableval" = yes; then
  2634.                             ac_cv_use_debug='wxUSE_DEBUG=yes'
  2635.                           else
  2636.                             ac_cv_use_debug='wxUSE_DEBUG=no'
  2637.                           fi
  2638.                         
  2639. else
  2640.   
  2641.                           LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
  2642.                           if test "x$LINE" != x ; then
  2643.                             eval "DEFAULT_$LINE"
  2644.                           else
  2645.                             no_cache=1
  2646.                           fi
  2647.  
  2648.                           ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
  2649.                         
  2650. fi
  2651.  
  2652.  
  2653.           eval "$ac_cv_use_debug"
  2654.           if test "$no_cache" != 1; then
  2655.             echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
  2656.           fi
  2657.  
  2658.           if test "$wxUSE_DEBUG" = yes; then
  2659.             echo "$ac_t""yes" 1>&6
  2660.           else
  2661.             echo "$ac_t""no" 1>&6
  2662.           fi
  2663.         
  2664.  
  2665.  
  2666.           echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
  2667. echo "configure:2668: checking for --enable-precomp" >&5
  2668.           no_cache=0
  2669.           # Check whether --enable-precomp or --disable-precomp was given.
  2670. if test "${enable_precomp+set}" = set; then
  2671.   enableval="$enable_precomp"
  2672.   
  2673.                           if test "$enableval" = yes; then
  2674.                             ac_cv_use_precomp='wxUSE_PRECOMP=yes'
  2675.                           else
  2676.                             ac_cv_use_precomp='wxUSE_PRECOMP=no'
  2677.                           fi
  2678.                         
  2679. else
  2680.   
  2681.                           LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
  2682.                           if test "x$LINE" != x ; then
  2683.                             eval "DEFAULT_$LINE"
  2684.                           else
  2685.                             no_cache=1
  2686.                           fi
  2687.  
  2688.                           ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
  2689.                         
  2690. fi
  2691.  
  2692.  
  2693.           eval "$ac_cv_use_precomp"
  2694.           if test "$no_cache" != 1; then
  2695.             echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
  2696.           fi
  2697.  
  2698.           if test "$wxUSE_PRECOMP" = yes; then
  2699.             echo "$ac_t""yes" 1>&6
  2700.           else
  2701.             echo "$ac_t""no" 1>&6
  2702.           fi
  2703.         
  2704.  
  2705. if test "$wxUSE_DEBUG" = "yes"; then
  2706.   DEFAULT_wxUSE_DEBUG_FLAG=yes
  2707.   DEFAULT_wxUSE_DEBUG_INFO=yes
  2708. elif test "$wxUSE_DEBUG" = "no"; then
  2709.   DEFAULT_wxUSE_DEBUG_FLAG=no
  2710.   DEFAULT_wxUSE_DEBUG_INFO=no
  2711. fi
  2712.  
  2713.  
  2714.           echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
  2715. echo "configure:2716: checking for --enable-debug_flag" >&5
  2716.           no_cache=0
  2717.           # Check whether --enable-debug_flag or --disable-debug_flag was given.
  2718. if test "${enable_debug_flag+set}" = set; then
  2719.   enableval="$enable_debug_flag"
  2720.   
  2721.                           if test "$enableval" = yes; then
  2722.                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
  2723.                           else
  2724.                             ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
  2725.                           fi
  2726.                         
  2727. else
  2728.   
  2729.                           LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
  2730.                           if test "x$LINE" != x ; then
  2731.                             eval "DEFAULT_$LINE"
  2732.                           else
  2733.                             no_cache=1
  2734.                           fi
  2735.  
  2736.                           ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
  2737.                         
  2738. fi
  2739.  
  2740.  
  2741.           eval "$ac_cv_use_debug_flag"
  2742.           if test "$no_cache" != 1; then
  2743.             echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
  2744.           fi
  2745.  
  2746.           if test "$wxUSE_DEBUG_FLAG" = yes; then
  2747.             echo "$ac_t""yes" 1>&6
  2748.           else
  2749.             echo "$ac_t""no" 1>&6
  2750.           fi
  2751.         
  2752.  
  2753.           echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
  2754. echo "configure:2755: checking for --enable-debug_info" >&5
  2755.           no_cache=0
  2756.           # Check whether --enable-debug_info or --disable-debug_info was given.
  2757. if test "${enable_debug_info+set}" = set; then
  2758.   enableval="$enable_debug_info"
  2759.   
  2760.                           if test "$enableval" = yes; then
  2761.                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
  2762.                           else
  2763.                             ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
  2764.                           fi
  2765.                         
  2766. else
  2767.   
  2768.                           LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
  2769.                           if test "x$LINE" != x ; then
  2770.                             eval "DEFAULT_$LINE"
  2771.                           else
  2772.                             no_cache=1
  2773.                           fi
  2774.  
  2775.                           ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
  2776.                         
  2777. fi
  2778.  
  2779.  
  2780.           eval "$ac_cv_use_debug_info"
  2781.           if test "$no_cache" != 1; then
  2782.             echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
  2783.           fi
  2784.  
  2785.           if test "$wxUSE_DEBUG_INFO" = yes; then
  2786.             echo "$ac_t""yes" 1>&6
  2787.           else
  2788.             echo "$ac_t""no" 1>&6
  2789.           fi
  2790.         
  2791.  
  2792.           echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
  2793. echo "configure:2794: checking for --enable-debug_gdb" >&5
  2794.           no_cache=0
  2795.           # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
  2796. if test "${enable_debug_gdb+set}" = set; then
  2797.   enableval="$enable_debug_gdb"
  2798.   
  2799.                           if test "$enableval" = yes; then
  2800.                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
  2801.                           else
  2802.                             ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
  2803.                           fi
  2804.                         
  2805. else
  2806.   
  2807.                           LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
  2808.                           if test "x$LINE" != x ; then
  2809.                             eval "DEFAULT_$LINE"
  2810.                           else
  2811.                             no_cache=1
  2812.                           fi
  2813.  
  2814.                           ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
  2815.                         
  2816. fi
  2817.  
  2818.  
  2819.           eval "$ac_cv_use_debug_gdb"
  2820.           if test "$no_cache" != 1; then
  2821.             echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
  2822.           fi
  2823.  
  2824.           if test "$wxUSE_DEBUG_GDB" = yes; then
  2825.             echo "$ac_t""yes" 1>&6
  2826.           else
  2827.             echo "$ac_t""no" 1>&6
  2828.           fi
  2829.         
  2830.  
  2831.           echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
  2832. echo "configure:2833: checking for --enable-debug_cntxt" >&5
  2833.           no_cache=0
  2834.           # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
  2835. if test "${enable_debug_cntxt+set}" = set; then
  2836.   enableval="$enable_debug_cntxt"
  2837.   
  2838.                           if test "$enableval" = yes; then
  2839.                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
  2840.                           else
  2841.                             ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
  2842.                           fi
  2843.                         
  2844. else
  2845.   
  2846.                           LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
  2847.                           if test "x$LINE" != x ; then
  2848.                             eval "DEFAULT_$LINE"
  2849.                           else
  2850.                             no_cache=1
  2851.                           fi
  2852.  
  2853.                           ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
  2854.                         
  2855. fi
  2856.  
  2857.  
  2858.           eval "$ac_cv_use_debug_cntxt"
  2859.           if test "$no_cache" != 1; then
  2860.             echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
  2861.           fi
  2862.  
  2863.           if test "$wxUSE_DEBUG_CONTEXT" = yes; then
  2864.             echo "$ac_t""yes" 1>&6
  2865.           else
  2866.             echo "$ac_t""no" 1>&6
  2867.           fi
  2868.         
  2869.  
  2870.           echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
  2871. echo "configure:2872: checking for --enable-mem_tracing" >&5
  2872.           no_cache=0
  2873.           # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
  2874. if test "${enable_mem_tracing+set}" = set; then
  2875.   enableval="$enable_mem_tracing"
  2876.   
  2877.                           if test "$enableval" = yes; then
  2878.                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
  2879.                           else
  2880.                             ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
  2881.                           fi
  2882.                         
  2883. else
  2884.   
  2885.                           LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
  2886.                           if test "x$LINE" != x ; then
  2887.                             eval "DEFAULT_$LINE"
  2888.                           else
  2889.                             no_cache=1
  2890.                           fi
  2891.  
  2892.                           ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
  2893.                         
  2894. fi
  2895.  
  2896.  
  2897.           eval "$ac_cv_use_mem_tracing"
  2898.           if test "$no_cache" != 1; then
  2899.             echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
  2900.           fi
  2901.  
  2902.           if test "$wxUSE_MEM_TRACING" = yes; then
  2903.             echo "$ac_t""yes" 1>&6
  2904.           else
  2905.             echo "$ac_t""no" 1>&6
  2906.           fi
  2907.         
  2908.  
  2909.           echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
  2910. echo "configure:2911: checking for --enable-profile" >&5
  2911.           no_cache=0
  2912.           # Check whether --enable-profile or --disable-profile was given.
  2913. if test "${enable_profile+set}" = set; then
  2914.   enableval="$enable_profile"
  2915.   
  2916.                           if test "$enableval" = yes; then
  2917.                             ac_cv_use_profile='wxUSE_PROFILE=yes'
  2918.                           else
  2919.                             ac_cv_use_profile='wxUSE_PROFILE=no'
  2920.                           fi
  2921.                         
  2922. else
  2923.   
  2924.                           LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
  2925.                           if test "x$LINE" != x ; then
  2926.                             eval "DEFAULT_$LINE"
  2927.                           else
  2928.                             no_cache=1
  2929.                           fi
  2930.  
  2931.                           ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
  2932.                         
  2933. fi
  2934.  
  2935.  
  2936.           eval "$ac_cv_use_profile"
  2937.           if test "$no_cache" != 1; then
  2938.             echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
  2939.           fi
  2940.  
  2941.           if test "$wxUSE_PROFILE" = yes; then
  2942.             echo "$ac_t""yes" 1>&6
  2943.           else
  2944.             echo "$ac_t""no" 1>&6
  2945.           fi
  2946.         
  2947.  
  2948.           echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
  2949. echo "configure:2950: checking for --enable-no_rtti" >&5
  2950.           no_cache=0
  2951.           # Check whether --enable-no_rtti or --disable-no_rtti was given.
  2952. if test "${enable_no_rtti+set}" = set; then
  2953.   enableval="$enable_no_rtti"
  2954.   
  2955.                           if test "$enableval" = yes; then
  2956.                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
  2957.                           else
  2958.                             ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
  2959.                           fi
  2960.                         
  2961. else
  2962.   
  2963.                           LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
  2964.                           if test "x$LINE" != x ; then
  2965.                             eval "DEFAULT_$LINE"
  2966.                           else
  2967.                             no_cache=1
  2968.                           fi
  2969.  
  2970.                           ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
  2971.                         
  2972. fi
  2973.  
  2974.  
  2975.           eval "$ac_cv_use_no_rtti"
  2976.           if test "$no_cache" != 1; then
  2977.             echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
  2978.           fi
  2979.  
  2980.           if test "$wxUSE_NO_RTTI" = yes; then
  2981.             echo "$ac_t""yes" 1>&6
  2982.           else
  2983.             echo "$ac_t""no" 1>&6
  2984.           fi
  2985.         
  2986.  
  2987.           echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
  2988. echo "configure:2989: checking for --enable-no_exceptions" >&5
  2989.           no_cache=0
  2990.           # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
  2991. if test "${enable_no_exceptions+set}" = set; then
  2992.   enableval="$enable_no_exceptions"
  2993.   
  2994.                           if test "$enableval" = yes; then
  2995.                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
  2996.                           else
  2997.                             ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
  2998.                           fi
  2999.                         
  3000. else
  3001.   
  3002.                           LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
  3003.                           if test "x$LINE" != x ; then
  3004.                             eval "DEFAULT_$LINE"
  3005.                           else
  3006.                             no_cache=1
  3007.                           fi
  3008.  
  3009.                           ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
  3010.                         
  3011. fi
  3012.  
  3013.  
  3014.           eval "$ac_cv_use_no_exceptions"
  3015.           if test "$no_cache" != 1; then
  3016.             echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
  3017.           fi
  3018.  
  3019.           if test "$wxUSE_NO_EXCEPTIONS" = yes; then
  3020.             echo "$ac_t""yes" 1>&6
  3021.           else
  3022.             echo "$ac_t""no" 1>&6
  3023.           fi
  3024.         
  3025.  
  3026.           echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
  3027. echo "configure:3028: checking for --enable-permissive" >&5
  3028.           no_cache=0
  3029.           # Check whether --enable-permissive or --disable-permissive was given.
  3030. if test "${enable_permissive+set}" = set; then
  3031.   enableval="$enable_permissive"
  3032.   
  3033.                           if test "$enableval" = yes; then
  3034.                             ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
  3035.                           else
  3036.                             ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
  3037.                           fi
  3038.                         
  3039. else
  3040.   
  3041.                           LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
  3042.                           if test "x$LINE" != x ; then
  3043.                             eval "DEFAULT_$LINE"
  3044.                           else
  3045.                             no_cache=1
  3046.                           fi
  3047.  
  3048.                           ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
  3049.                         
  3050. fi
  3051.  
  3052.  
  3053.           eval "$ac_cv_use_permissive"
  3054.           if test "$no_cache" != 1; then
  3055.             echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
  3056.           fi
  3057.  
  3058.           if test "$wxUSE_PERMISSIVE" = yes; then
  3059.             echo "$ac_t""yes" 1>&6
  3060.           else
  3061.             echo "$ac_t""no" 1>&6
  3062.           fi
  3063.         
  3064.  
  3065.           echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
  3066. echo "configure:3067: checking for --enable-no_deps" >&5
  3067.           no_cache=0
  3068.           # Check whether --enable-no_deps or --disable-no_deps was given.
  3069. if test "${enable_no_deps+set}" = set; then
  3070.   enableval="$enable_no_deps"
  3071.   
  3072.                           if test "$enableval" = yes; then
  3073.                             ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
  3074.                           else
  3075.                             ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
  3076.                           fi
  3077.                         
  3078. else
  3079.   
  3080.                           LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
  3081.                           if test "x$LINE" != x ; then
  3082.                             eval "DEFAULT_$LINE"
  3083.                           else
  3084.                             no_cache=1
  3085.                           fi
  3086.  
  3087.                           ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
  3088.                         
  3089. fi
  3090.  
  3091.  
  3092.           eval "$ac_cv_use_no_deps"
  3093.           if test "$no_cache" != 1; then
  3094.             echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
  3095.           fi
  3096.  
  3097.           if test "$wxUSE_NO_DEPS" = yes; then
  3098.             echo "$ac_t""yes" 1>&6
  3099.           else
  3100.             echo "$ac_t""no" 1>&6
  3101.           fi
  3102.         
  3103.  
  3104.  
  3105.           echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
  3106. echo "configure:3107: checking for --enable-compat20" >&5
  3107.           no_cache=0
  3108.           # Check whether --enable-compat20 or --disable-compat20 was given.
  3109. if test "${enable_compat20+set}" = set; then
  3110.   enableval="$enable_compat20"
  3111.   
  3112.                           if test "$enableval" = yes; then
  3113.                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
  3114.                           else
  3115.                             ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
  3116.                           fi
  3117.                         
  3118. else
  3119.   
  3120.                           LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
  3121.                           if test "x$LINE" != x ; then
  3122.                             eval "DEFAULT_$LINE"
  3123.                           else
  3124.                             no_cache=1
  3125.                           fi
  3126.  
  3127.                           ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
  3128.                         
  3129. fi
  3130.  
  3131.  
  3132.           eval "$ac_cv_use_compat20"
  3133.           if test "$no_cache" != 1; then
  3134.             echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
  3135.           fi
  3136.  
  3137.           if test "$WXWIN_COMPATIBILITY_2" = yes; then
  3138.             echo "$ac_t""yes" 1>&6
  3139.           else
  3140.             echo "$ac_t""no" 1>&6
  3141.           fi
  3142.         
  3143.  
  3144.           echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
  3145. echo "configure:3146: checking for --enable-compat22" >&5
  3146.           no_cache=0
  3147.           # Check whether --enable-compat22 or --disable-compat22 was given.
  3148. if test "${enable_compat22+set}" = set; then
  3149.   enableval="$enable_compat22"
  3150.   
  3151.                           if test "$enableval" = yes; then
  3152.                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
  3153.                           else
  3154.                             ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
  3155.                           fi
  3156.                         
  3157. else
  3158.   
  3159.                           LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
  3160.                           if test "x$LINE" != x ; then
  3161.                             eval "DEFAULT_$LINE"
  3162.                           else
  3163.                             no_cache=1
  3164.                           fi
  3165.  
  3166.                           ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
  3167.                         
  3168. fi
  3169.  
  3170.  
  3171.           eval "$ac_cv_use_compat22"
  3172.           if test "$no_cache" != 1; then
  3173.             echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
  3174.           fi
  3175.  
  3176.           if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
  3177.             echo "$ac_t""yes" 1>&6
  3178.           else
  3179.             echo "$ac_t""no" 1>&6
  3180.           fi
  3181.         
  3182.  
  3183. # Check whether --enable-rpath or --disable-rpath was given.
  3184. if test "${enable_rpath+set}" = set; then
  3185.   enableval="$enable_rpath"
  3186.   wxRPATH_DIR="$enableval"
  3187. fi
  3188.  
  3189.  
  3190. if test "$wxRPATH_DIR" != "" -a "$wxRPATH_DIR" != "disable"; then
  3191.    WXCONFIG_RPATH="-Wl,-rpath -Wl,$wxRPATH_DIR"
  3192. fi
  3193.  
  3194.  
  3195.  
  3196.  
  3197.           echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
  3198. echo "configure:3199: checking for --enable-intl" >&5
  3199.           no_cache=0
  3200.           # Check whether --enable-intl or --disable-intl was given.
  3201. if test "${enable_intl+set}" = set; then
  3202.   enableval="$enable_intl"
  3203.   
  3204.                           if test "$enableval" = yes; then
  3205.                             ac_cv_use_intl='wxUSE_INTL=yes'
  3206.                           else
  3207.                             ac_cv_use_intl='wxUSE_INTL=no'
  3208.                           fi
  3209.                         
  3210. else
  3211.   
  3212.                           LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
  3213.                           if test "x$LINE" != x ; then
  3214.                             eval "DEFAULT_$LINE"
  3215.                           else
  3216.                             no_cache=1
  3217.                           fi
  3218.  
  3219.                           ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
  3220.                         
  3221. fi
  3222.  
  3223.  
  3224.           eval "$ac_cv_use_intl"
  3225.           if test "$no_cache" != 1; then
  3226.             echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
  3227.           fi
  3228.  
  3229.           if test "$wxUSE_INTL" = yes; then
  3230.             echo "$ac_t""yes" 1>&6
  3231.           else
  3232.             echo "$ac_t""no" 1>&6
  3233.           fi
  3234.         
  3235.  
  3236.           echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
  3237. echo "configure:3238: checking for --enable-config" >&5
  3238.           no_cache=0
  3239.           # Check whether --enable-config or --disable-config was given.
  3240. if test "${enable_config+set}" = set; then
  3241.   enableval="$enable_config"
  3242.   
  3243.                           if test "$enableval" = yes; then
  3244.                             ac_cv_use_config='wxUSE_CONFIG=yes'
  3245.                           else
  3246.                             ac_cv_use_config='wxUSE_CONFIG=no'
  3247.                           fi
  3248.                         
  3249. else
  3250.   
  3251.                           LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
  3252.                           if test "x$LINE" != x ; then
  3253.                             eval "DEFAULT_$LINE"
  3254.                           else
  3255.                             no_cache=1
  3256.                           fi
  3257.  
  3258.                           ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
  3259.                         
  3260. fi
  3261.  
  3262.  
  3263.           eval "$ac_cv_use_config"
  3264.           if test "$no_cache" != 1; then
  3265.             echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
  3266.           fi
  3267.  
  3268.           if test "$wxUSE_CONFIG" = yes; then
  3269.             echo "$ac_t""yes" 1>&6
  3270.           else
  3271.             echo "$ac_t""no" 1>&6
  3272.           fi
  3273.         
  3274.  
  3275.  
  3276.           echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
  3277. echo "configure:3278: checking for --enable-protocols" >&5
  3278.           no_cache=0
  3279.           # Check whether --enable-protocols or --disable-protocols was given.
  3280. if test "${enable_protocols+set}" = set; then
  3281.   enableval="$enable_protocols"
  3282.   
  3283.                           if test "$enableval" = yes; then
  3284.                             ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
  3285.                           else
  3286.                             ac_cv_use_protocols='wxUSE_PROTOCOL=no'
  3287.                           fi
  3288.                         
  3289. else
  3290.   
  3291.                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
  3292.                           if test "x$LINE" != x ; then
  3293.                             eval "DEFAULT_$LINE"
  3294.                           else
  3295.                             no_cache=1
  3296.                           fi
  3297.  
  3298.                           ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
  3299.                         
  3300. fi
  3301.  
  3302.  
  3303.           eval "$ac_cv_use_protocols"
  3304.           if test "$no_cache" != 1; then
  3305.             echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
  3306.           fi
  3307.  
  3308.           if test "$wxUSE_PROTOCOL" = yes; then
  3309.             echo "$ac_t""yes" 1>&6
  3310.           else
  3311.             echo "$ac_t""no" 1>&6
  3312.           fi
  3313.         
  3314.  
  3315.           echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
  3316. echo "configure:3317: checking for --enable-ftp" >&5
  3317.           no_cache=0
  3318.           # Check whether --enable-ftp or --disable-ftp was given.
  3319. if test "${enable_ftp+set}" = set; then
  3320.   enableval="$enable_ftp"
  3321.   
  3322.                           if test "$enableval" = yes; then
  3323.                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
  3324.                           else
  3325.                             ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
  3326.                           fi
  3327.                         
  3328. else
  3329.   
  3330.                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
  3331.                           if test "x$LINE" != x ; then
  3332.                             eval "DEFAULT_$LINE"
  3333.                           else
  3334.                             no_cache=1
  3335.                           fi
  3336.  
  3337.                           ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
  3338.                         
  3339. fi
  3340.  
  3341.  
  3342.           eval "$ac_cv_use_ftp"
  3343.           if test "$no_cache" != 1; then
  3344.             echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
  3345.           fi
  3346.  
  3347.           if test "$wxUSE_PROTOCOL_FTP" = yes; then
  3348.             echo "$ac_t""yes" 1>&6
  3349.           else
  3350.             echo "$ac_t""no" 1>&6
  3351.           fi
  3352.         
  3353.  
  3354.           echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
  3355. echo "configure:3356: checking for --enable-http" >&5
  3356.           no_cache=0
  3357.           # Check whether --enable-http or --disable-http was given.
  3358. if test "${enable_http+set}" = set; then
  3359.   enableval="$enable_http"
  3360.   
  3361.                           if test "$enableval" = yes; then
  3362.                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
  3363.                           else
  3364.                             ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
  3365.                           fi
  3366.                         
  3367. else
  3368.   
  3369.                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
  3370.                           if test "x$LINE" != x ; then
  3371.                             eval "DEFAULT_$LINE"
  3372.                           else
  3373.                             no_cache=1
  3374.                           fi
  3375.  
  3376.                           ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
  3377.                         
  3378. fi
  3379.  
  3380.  
  3381.           eval "$ac_cv_use_http"
  3382.           if test "$no_cache" != 1; then
  3383.             echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
  3384.           fi
  3385.  
  3386.           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
  3387.             echo "$ac_t""yes" 1>&6
  3388.           else
  3389.             echo "$ac_t""no" 1>&6
  3390.           fi
  3391.         
  3392.  
  3393.           echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
  3394. echo "configure:3395: checking for --enable-fileproto" >&5
  3395.           no_cache=0
  3396.           # Check whether --enable-fileproto or --disable-fileproto was given.
  3397. if test "${enable_fileproto+set}" = set; then
  3398.   enableval="$enable_fileproto"
  3399.   
  3400.                           if test "$enableval" = yes; then
  3401.                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
  3402.                           else
  3403.                             ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
  3404.                           fi
  3405.                         
  3406. else
  3407.   
  3408.                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${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_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
  3416.                         
  3417. fi
  3418.  
  3419.  
  3420.           eval "$ac_cv_use_fileproto"
  3421.           if test "$no_cache" != 1; then
  3422.             echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
  3423.           fi
  3424.  
  3425.           if test "$wxUSE_PROTOCOL_FILE" = yes; then
  3426.             echo "$ac_t""yes" 1>&6
  3427.           else
  3428.             echo "$ac_t""no" 1>&6
  3429.           fi
  3430.         
  3431.  
  3432.           echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
  3433. echo "configure:3434: checking for --enable-sockets" >&5
  3434.           no_cache=0
  3435.           # Check whether --enable-sockets or --disable-sockets was given.
  3436. if test "${enable_sockets+set}" = set; then
  3437.   enableval="$enable_sockets"
  3438.   
  3439.                           if test "$enableval" = yes; then
  3440.                             ac_cv_use_sockets='wxUSE_SOCKETS=yes'
  3441.                           else
  3442.                             ac_cv_use_sockets='wxUSE_SOCKETS=no'
  3443.                           fi
  3444.                         
  3445. else
  3446.   
  3447.                           LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
  3448.                           if test "x$LINE" != x ; then
  3449.                             eval "DEFAULT_$LINE"
  3450.                           else
  3451.                             no_cache=1
  3452.                           fi
  3453.  
  3454.                           ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
  3455.                         
  3456. fi
  3457.  
  3458.  
  3459.           eval "$ac_cv_use_sockets"
  3460.           if test "$no_cache" != 1; then
  3461.             echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
  3462.           fi
  3463.  
  3464.           if test "$wxUSE_SOCKETS" = yes; then
  3465.             echo "$ac_t""yes" 1>&6
  3466.           else
  3467.             echo "$ac_t""no" 1>&6
  3468.           fi
  3469.         
  3470.  
  3471.  
  3472.           echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
  3473. echo "configure:3474: checking for --enable-ipc" >&5
  3474.           no_cache=0
  3475.           # Check whether --enable-ipc or --disable-ipc was given.
  3476. if test "${enable_ipc+set}" = set; then
  3477.   enableval="$enable_ipc"
  3478.   
  3479.                           if test "$enableval" = yes; then
  3480.                             ac_cv_use_ipc='wxUSE_IPC=yes'
  3481.                           else
  3482.                             ac_cv_use_ipc='wxUSE_IPC=no'
  3483.                           fi
  3484.                         
  3485. else
  3486.   
  3487.                           LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
  3488.                           if test "x$LINE" != x ; then
  3489.                             eval "DEFAULT_$LINE"
  3490.                           else
  3491.                             no_cache=1
  3492.                           fi
  3493.  
  3494.                           ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
  3495.                         
  3496. fi
  3497.  
  3498.  
  3499.           eval "$ac_cv_use_ipc"
  3500.           if test "$no_cache" != 1; then
  3501.             echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
  3502.           fi
  3503.  
  3504.           if test "$wxUSE_IPC" = yes; then
  3505.             echo "$ac_t""yes" 1>&6
  3506.           else
  3507.             echo "$ac_t""no" 1>&6
  3508.           fi
  3509.         
  3510.  
  3511.  
  3512.           echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
  3513. echo "configure:3514: checking for --enable-cmdline" >&5
  3514.           no_cache=0
  3515.           # Check whether --enable-cmdline or --disable-cmdline was given.
  3516. if test "${enable_cmdline+set}" = set; then
  3517.   enableval="$enable_cmdline"
  3518.   
  3519.                           if test "$enableval" = yes; then
  3520.                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
  3521.                           else
  3522.                             ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
  3523.                           fi
  3524.                         
  3525. else
  3526.   
  3527.                           LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
  3528.                           if test "x$LINE" != x ; then
  3529.                             eval "DEFAULT_$LINE"
  3530.                           else
  3531.                             no_cache=1
  3532.                           fi
  3533.  
  3534.                           ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
  3535.                         
  3536. fi
  3537.  
  3538.  
  3539.           eval "$ac_cv_use_cmdline"
  3540.           if test "$no_cache" != 1; then
  3541.             echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
  3542.           fi
  3543.  
  3544.           if test "$wxUSE_CMDLINE_PARSER" = yes; then
  3545.             echo "$ac_t""yes" 1>&6
  3546.           else
  3547.             echo "$ac_t""no" 1>&6
  3548.           fi
  3549.         
  3550.  
  3551.           echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
  3552. echo "configure:3553: checking for --enable-datetime" >&5
  3553.           no_cache=0
  3554.           # Check whether --enable-datetime or --disable-datetime was given.
  3555. if test "${enable_datetime+set}" = set; then
  3556.   enableval="$enable_datetime"
  3557.   
  3558.                           if test "$enableval" = yes; then
  3559.                             ac_cv_use_datetime='wxUSE_DATETIME=yes'
  3560.                           else
  3561.                             ac_cv_use_datetime='wxUSE_DATETIME=no'
  3562.                           fi
  3563.                         
  3564. else
  3565.   
  3566.                           LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
  3567.                           if test "x$LINE" != x ; then
  3568.                             eval "DEFAULT_$LINE"
  3569.                           else
  3570.                             no_cache=1
  3571.                           fi
  3572.  
  3573.                           ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
  3574.                         
  3575. fi
  3576.  
  3577.  
  3578.           eval "$ac_cv_use_datetime"
  3579.           if test "$no_cache" != 1; then
  3580.             echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
  3581.           fi
  3582.  
  3583.           if test "$wxUSE_DATETIME" = yes; then
  3584.             echo "$ac_t""yes" 1>&6
  3585.           else
  3586.             echo "$ac_t""no" 1>&6
  3587.           fi
  3588.         
  3589.  
  3590.           echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
  3591. echo "configure:3592: checking for --enable-timedate" >&5
  3592.           no_cache=0
  3593.           # Check whether --enable-timedate or --disable-timedate was given.
  3594. if test "${enable_timedate+set}" = set; then
  3595.   enableval="$enable_timedate"
  3596.   
  3597.                           if test "$enableval" = yes; then
  3598.                             ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
  3599.                           else
  3600.                             ac_cv_use_timedate='wxUSE_TIMEDATE=no'
  3601.                           fi
  3602.                         
  3603. else
  3604.   
  3605.                           LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
  3606.                           if test "x$LINE" != x ; then
  3607.                             eval "DEFAULT_$LINE"
  3608.                           else
  3609.                             no_cache=1
  3610.                           fi
  3611.  
  3612.                           ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
  3613.                         
  3614. fi
  3615.  
  3616.  
  3617.           eval "$ac_cv_use_timedate"
  3618.           if test "$no_cache" != 1; then
  3619.             echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
  3620.           fi
  3621.  
  3622.           if test "$wxUSE_TIMEDATE" = yes; then
  3623.             echo "$ac_t""yes" 1>&6
  3624.           else
  3625.             echo "$ac_t""no" 1>&6
  3626.           fi
  3627.         
  3628.  
  3629.           echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
  3630. echo "configure:3631: checking for --enable-stopwatch" >&5
  3631.           no_cache=0
  3632.           # Check whether --enable-stopwatch or --disable-stopwatch was given.
  3633. if test "${enable_stopwatch+set}" = set; then
  3634.   enableval="$enable_stopwatch"
  3635.   
  3636.                           if test "$enableval" = yes; then
  3637.                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
  3638.                           else
  3639.                             ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
  3640.                           fi
  3641.                         
  3642. else
  3643.   
  3644.                           LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
  3645.                           if test "x$LINE" != x ; then
  3646.                             eval "DEFAULT_$LINE"
  3647.                           else
  3648.                             no_cache=1
  3649.                           fi
  3650.  
  3651.                           ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
  3652.                         
  3653. fi
  3654.  
  3655.  
  3656.           eval "$ac_cv_use_stopwatch"
  3657.           if test "$no_cache" != 1; then
  3658.             echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
  3659.           fi
  3660.  
  3661.           if test "$wxUSE_STOPWATCH" = yes; then
  3662.             echo "$ac_t""yes" 1>&6
  3663.           else
  3664.             echo "$ac_t""no" 1>&6
  3665.           fi
  3666.         
  3667.  
  3668.           echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
  3669. echo "configure:3670: checking for --enable-dialupman" >&5
  3670.           no_cache=0
  3671.           # Check whether --enable-dialupman or --disable-dialupman was given.
  3672. if test "${enable_dialupman+set}" = set; then
  3673.   enableval="$enable_dialupman"
  3674.   
  3675.                           if test "$enableval" = yes; then
  3676.                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
  3677.                           else
  3678.                             ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
  3679.                           fi
  3680.                         
  3681. else
  3682.   
  3683.                           LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
  3684.                           if test "x$LINE" != x ; then
  3685.                             eval "DEFAULT_$LINE"
  3686.                           else
  3687.                             no_cache=1
  3688.                           fi
  3689.  
  3690.                           ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
  3691.                         
  3692. fi
  3693.  
  3694.  
  3695.           eval "$ac_cv_use_dialupman"
  3696.           if test "$no_cache" != 1; then
  3697.             echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
  3698.           fi
  3699.  
  3700.           if test "$wxUSE_DIALUP_MANAGER" = yes; then
  3701.             echo "$ac_t""yes" 1>&6
  3702.           else
  3703.             echo "$ac_t""no" 1>&6
  3704.           fi
  3705.         
  3706.  
  3707.           echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
  3708. echo "configure:3709: checking for --enable-apple_ieee" >&5
  3709.           no_cache=0
  3710.           # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
  3711. if test "${enable_apple_ieee+set}" = set; then
  3712.   enableval="$enable_apple_ieee"
  3713.   
  3714.                           if test "$enableval" = yes; then
  3715.                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
  3716.                           else
  3717.                             ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
  3718.                           fi
  3719.                         
  3720. else
  3721.   
  3722.                           LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
  3723.                           if test "x$LINE" != x ; then
  3724.                             eval "DEFAULT_$LINE"
  3725.                           else
  3726.                             no_cache=1
  3727.                           fi
  3728.  
  3729.                           ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
  3730.                         
  3731. fi
  3732.  
  3733.  
  3734.           eval "$ac_cv_use_apple_ieee"
  3735.           if test "$no_cache" != 1; then
  3736.             echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
  3737.           fi
  3738.  
  3739.           if test "$wxUSE_APPLE_IEEE" = yes; then
  3740.             echo "$ac_t""yes" 1>&6
  3741.           else
  3742.             echo "$ac_t""no" 1>&6
  3743.           fi
  3744.         
  3745.  
  3746.           echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
  3747. echo "configure:3748: checking for --enable-timer" >&5
  3748.           no_cache=0
  3749.           # Check whether --enable-timer or --disable-timer was given.
  3750. if test "${enable_timer+set}" = set; then
  3751.   enableval="$enable_timer"
  3752.   
  3753.                           if test "$enableval" = yes; then
  3754.                             ac_cv_use_timer='wxUSE_TIMER=yes'
  3755.                           else
  3756.                             ac_cv_use_timer='wxUSE_TIMER=no'
  3757.                           fi
  3758.                         
  3759. else
  3760.   
  3761.                           LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
  3762.                           if test "x$LINE" != x ; then
  3763.                             eval "DEFAULT_$LINE"
  3764.                           else
  3765.                             no_cache=1
  3766.                           fi
  3767.  
  3768.                           ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
  3769.                         
  3770. fi
  3771.  
  3772.  
  3773.           eval "$ac_cv_use_timer"
  3774.           if test "$no_cache" != 1; then
  3775.             echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
  3776.           fi
  3777.  
  3778.           if test "$wxUSE_TIMER" = yes; then
  3779.             echo "$ac_t""yes" 1>&6
  3780.           else
  3781.             echo "$ac_t""no" 1>&6
  3782.           fi
  3783.         
  3784.  
  3785.           echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
  3786. echo "configure:3787: checking for --enable-wave" >&5
  3787.           no_cache=0
  3788.           # Check whether --enable-wave or --disable-wave was given.
  3789. if test "${enable_wave+set}" = set; then
  3790.   enableval="$enable_wave"
  3791.   
  3792.                           if test "$enableval" = yes; then
  3793.                             ac_cv_use_wave='wxUSE_WAVE=yes'
  3794.                           else
  3795.                             ac_cv_use_wave='wxUSE_WAVE=no'
  3796.                           fi
  3797.                         
  3798. else
  3799.   
  3800.                           LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
  3801.                           if test "x$LINE" != x ; then
  3802.                             eval "DEFAULT_$LINE"
  3803.                           else
  3804.                             no_cache=1
  3805.                           fi
  3806.  
  3807.                           ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
  3808.                         
  3809. fi
  3810.  
  3811.  
  3812.           eval "$ac_cv_use_wave"
  3813.           if test "$no_cache" != 1; then
  3814.             echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
  3815.           fi
  3816.  
  3817.           if test "$wxUSE_WAVE" = yes; then
  3818.             echo "$ac_t""yes" 1>&6
  3819.           else
  3820.             echo "$ac_t""no" 1>&6
  3821.           fi
  3822.         
  3823.  
  3824.           echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
  3825. echo "configure:3826: checking for --enable-fraction" >&5
  3826.           no_cache=0
  3827.           # Check whether --enable-fraction or --disable-fraction was given.
  3828. if test "${enable_fraction+set}" = set; then
  3829.   enableval="$enable_fraction"
  3830.   
  3831.                           if test "$enableval" = yes; then
  3832.                             ac_cv_use_fraction='wxUSE_FRACTION=yes'
  3833.                           else
  3834.                             ac_cv_use_fraction='wxUSE_FRACTION=no'
  3835.                           fi
  3836.                         
  3837. else
  3838.   
  3839.                           LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
  3840.                           if test "x$LINE" != x ; then
  3841.                             eval "DEFAULT_$LINE"
  3842.                           else
  3843.                             no_cache=1
  3844.                           fi
  3845.  
  3846.                           ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
  3847.                         
  3848. fi
  3849.  
  3850.  
  3851.           eval "$ac_cv_use_fraction"
  3852.           if test "$no_cache" != 1; then
  3853.             echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
  3854.           fi
  3855.  
  3856.           if test "$wxUSE_FRACTION" = yes; then
  3857.             echo "$ac_t""yes" 1>&6
  3858.           else
  3859.             echo "$ac_t""no" 1>&6
  3860.           fi
  3861.         
  3862.  
  3863.           echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
  3864. echo "configure:3865: checking for --enable-dynlib" >&5
  3865.           no_cache=0
  3866.           # Check whether --enable-dynlib or --disable-dynlib was given.
  3867. if test "${enable_dynlib+set}" = set; then
  3868.   enableval="$enable_dynlib"
  3869.   
  3870.                           if test "$enableval" = yes; then
  3871.                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
  3872.                           else
  3873.                             ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
  3874.                           fi
  3875.                         
  3876. else
  3877.   
  3878.                           LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
  3879.                           if test "x$LINE" != x ; then
  3880.                             eval "DEFAULT_$LINE"
  3881.                           else
  3882.                             no_cache=1
  3883.                           fi
  3884.  
  3885.                           ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
  3886.                         
  3887. fi
  3888.  
  3889.  
  3890.           eval "$ac_cv_use_dynlib"
  3891.           if test "$no_cache" != 1; then
  3892.             echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
  3893.           fi
  3894.  
  3895.           if test "$wxUSE_DYNLIB_CLASS" = yes; then
  3896.             echo "$ac_t""yes" 1>&6
  3897.           else
  3898.             echo "$ac_t""no" 1>&6
  3899.           fi
  3900.         
  3901.  
  3902.           echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
  3903. echo "configure:3904: checking for --enable-dynamicloader" >&5
  3904.           no_cache=0
  3905.           # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
  3906. if test "${enable_dynamicloader+set}" = set; then
  3907.   enableval="$enable_dynamicloader"
  3908.   
  3909.                           if test "$enableval" = yes; then
  3910.                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
  3911.                           else
  3912.                             ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
  3913.                           fi
  3914.                         
  3915. else
  3916.   
  3917.                           LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
  3918.                           if test "x$LINE" != x ; then
  3919.                             eval "DEFAULT_$LINE"
  3920.                           else
  3921.                             no_cache=1
  3922.                           fi
  3923.  
  3924.                           ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
  3925.                         
  3926. fi
  3927.  
  3928.  
  3929.           eval "$ac_cv_use_dynamicloader"
  3930.           if test "$no_cache" != 1; then
  3931.             echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
  3932.           fi
  3933.  
  3934.           if test "$wxUSE_DYNAMIC_LOADER" = yes; then
  3935.             echo "$ac_t""yes" 1>&6
  3936.           else
  3937.             echo "$ac_t""no" 1>&6
  3938.           fi
  3939.         
  3940.  
  3941.           echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
  3942. echo "configure:3943: checking for --enable-longlong" >&5
  3943.           no_cache=0
  3944.           # Check whether --enable-longlong or --disable-longlong was given.
  3945. if test "${enable_longlong+set}" = set; then
  3946.   enableval="$enable_longlong"
  3947.   
  3948.                           if test "$enableval" = yes; then
  3949.                             ac_cv_use_longlong='wxUSE_LONGLONG=yes'
  3950.                           else
  3951.                             ac_cv_use_longlong='wxUSE_LONGLONG=no'
  3952.                           fi
  3953.                         
  3954. else
  3955.   
  3956.                           LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
  3957.                           if test "x$LINE" != x ; then
  3958.                             eval "DEFAULT_$LINE"
  3959.                           else
  3960.                             no_cache=1
  3961.                           fi
  3962.  
  3963.                           ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
  3964.                         
  3965. fi
  3966.  
  3967.  
  3968.           eval "$ac_cv_use_longlong"
  3969.           if test "$no_cache" != 1; then
  3970.             echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
  3971.           fi
  3972.  
  3973.           if test "$wxUSE_LONGLONG" = yes; then
  3974.             echo "$ac_t""yes" 1>&6
  3975.           else
  3976.             echo "$ac_t""no" 1>&6
  3977.           fi
  3978.         
  3979.  
  3980.           echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
  3981. echo "configure:3982: checking for --enable-geometry" >&5
  3982.           no_cache=0
  3983.           # Check whether --enable-geometry or --disable-geometry was given.
  3984. if test "${enable_geometry+set}" = set; then
  3985.   enableval="$enable_geometry"
  3986.   
  3987.                           if test "$enableval" = yes; then
  3988.                             ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
  3989.                           else
  3990.                             ac_cv_use_geometry='wxUSE_GEOMETRY=no'
  3991.                           fi
  3992.                         
  3993. else
  3994.   
  3995.                           LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
  3996.                           if test "x$LINE" != x ; then
  3997.                             eval "DEFAULT_$LINE"
  3998.                           else
  3999.                             no_cache=1
  4000.                           fi
  4001.  
  4002.                           ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
  4003.                         
  4004. fi
  4005.  
  4006.  
  4007.           eval "$ac_cv_use_geometry"
  4008.           if test "$no_cache" != 1; then
  4009.             echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
  4010.           fi
  4011.  
  4012.           if test "$wxUSE_GEOMETRY" = yes; then
  4013.             echo "$ac_t""yes" 1>&6
  4014.           else
  4015.             echo "$ac_t""no" 1>&6
  4016.           fi
  4017.         
  4018.  
  4019.           echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
  4020. echo "configure:4021: checking for --enable-log" >&5
  4021.           no_cache=0
  4022.           # Check whether --enable-log or --disable-log was given.
  4023. if test "${enable_log+set}" = set; then
  4024.   enableval="$enable_log"
  4025.   
  4026.                           if test "$enableval" = yes; then
  4027.                             ac_cv_use_log='wxUSE_LOG=yes'
  4028.                           else
  4029.                             ac_cv_use_log='wxUSE_LOG=no'
  4030.                           fi
  4031.                         
  4032. else
  4033.   
  4034.                           LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
  4035.                           if test "x$LINE" != x ; then
  4036.                             eval "DEFAULT_$LINE"
  4037.                           else
  4038.                             no_cache=1
  4039.                           fi
  4040.  
  4041.                           ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
  4042.                         
  4043. fi
  4044.  
  4045.  
  4046.           eval "$ac_cv_use_log"
  4047.           if test "$no_cache" != 1; then
  4048.             echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
  4049.           fi
  4050.  
  4051.           if test "$wxUSE_LOG" = yes; then
  4052.             echo "$ac_t""yes" 1>&6
  4053.           else
  4054.             echo "$ac_t""no" 1>&6
  4055.           fi
  4056.         
  4057.  
  4058.           echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
  4059. echo "configure:4060: checking for --enable-streams" >&5
  4060.           no_cache=0
  4061.           # Check whether --enable-streams or --disable-streams was given.
  4062. if test "${enable_streams+set}" = set; then
  4063.   enableval="$enable_streams"
  4064.   
  4065.                           if test "$enableval" = yes; then
  4066.                             ac_cv_use_streams='wxUSE_STREAMS=yes'
  4067.                           else
  4068.                             ac_cv_use_streams='wxUSE_STREAMS=no'
  4069.                           fi
  4070.                         
  4071. else
  4072.   
  4073.                           LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
  4074.                           if test "x$LINE" != x ; then
  4075.                             eval "DEFAULT_$LINE"
  4076.                           else
  4077.                             no_cache=1
  4078.                           fi
  4079.  
  4080.                           ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
  4081.                         
  4082. fi
  4083.  
  4084.  
  4085.           eval "$ac_cv_use_streams"
  4086.           if test "$no_cache" != 1; then
  4087.             echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
  4088.           fi
  4089.  
  4090.           if test "$wxUSE_STREAMS" = yes; then
  4091.             echo "$ac_t""yes" 1>&6
  4092.           else
  4093.             echo "$ac_t""no" 1>&6
  4094.           fi
  4095.         
  4096.  
  4097.           echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
  4098. echo "configure:4099: checking for --enable-file" >&5
  4099.           no_cache=0
  4100.           # Check whether --enable-file or --disable-file was given.
  4101. if test "${enable_file+set}" = set; then
  4102.   enableval="$enable_file"
  4103.   
  4104.                           if test "$enableval" = yes; then
  4105.                             ac_cv_use_file='wxUSE_FILE=yes'
  4106.                           else
  4107.                             ac_cv_use_file='wxUSE_FILE=no'
  4108.                           fi
  4109.                         
  4110. else
  4111.   
  4112.                           LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
  4113.                           if test "x$LINE" != x ; then
  4114.                             eval "DEFAULT_$LINE"
  4115.                           else
  4116.                             no_cache=1
  4117.                           fi
  4118.  
  4119.                           ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
  4120.                         
  4121. fi
  4122.  
  4123.  
  4124.           eval "$ac_cv_use_file"
  4125.           if test "$no_cache" != 1; then
  4126.             echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
  4127.           fi
  4128.  
  4129.           if test "$wxUSE_FILE" = yes; then
  4130.             echo "$ac_t""yes" 1>&6
  4131.           else
  4132.             echo "$ac_t""no" 1>&6
  4133.           fi
  4134.         
  4135.  
  4136.           echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
  4137. echo "configure:4138: checking for --enable-ffile" >&5
  4138.           no_cache=0
  4139.           # Check whether --enable-ffile or --disable-ffile was given.
  4140. if test "${enable_ffile+set}" = set; then
  4141.   enableval="$enable_ffile"
  4142.   
  4143.                           if test "$enableval" = yes; then
  4144.                             ac_cv_use_ffile='wxUSE_FFILE=yes'
  4145.                           else
  4146.                             ac_cv_use_ffile='wxUSE_FFILE=no'
  4147.                           fi
  4148.                         
  4149. else
  4150.   
  4151.                           LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
  4152.                           if test "x$LINE" != x ; then
  4153.                             eval "DEFAULT_$LINE"
  4154.                           else
  4155.                             no_cache=1
  4156.                           fi
  4157.  
  4158.                           ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
  4159.                         
  4160. fi
  4161.  
  4162.  
  4163.           eval "$ac_cv_use_ffile"
  4164.           if test "$no_cache" != 1; then
  4165.             echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
  4166.           fi
  4167.  
  4168.           if test "$wxUSE_FFILE" = yes; then
  4169.             echo "$ac_t""yes" 1>&6
  4170.           else
  4171.             echo "$ac_t""no" 1>&6
  4172.           fi
  4173.         
  4174.  
  4175.           echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
  4176. echo "configure:4177: checking for --enable-textbuf" >&5
  4177.           no_cache=0
  4178.           # Check whether --enable-textbuf or --disable-textbuf was given.
  4179. if test "${enable_textbuf+set}" = set; then
  4180.   enableval="$enable_textbuf"
  4181.   
  4182.                           if test "$enableval" = yes; then
  4183.                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
  4184.                           else
  4185.                             ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
  4186.                           fi
  4187.                         
  4188. else
  4189.   
  4190.                           LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
  4191.                           if test "x$LINE" != x ; then
  4192.                             eval "DEFAULT_$LINE"
  4193.                           else
  4194.                             no_cache=1
  4195.                           fi
  4196.  
  4197.                           ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
  4198.                         
  4199. fi
  4200.  
  4201.  
  4202.           eval "$ac_cv_use_textbuf"
  4203.           if test "$no_cache" != 1; then
  4204.             echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
  4205.           fi
  4206.  
  4207.           if test "$wxUSE_TEXTBUFFER" = yes; then
  4208.             echo "$ac_t""yes" 1>&6
  4209.           else
  4210.             echo "$ac_t""no" 1>&6
  4211.           fi
  4212.         
  4213.  
  4214.           echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
  4215. echo "configure:4216: checking for --enable-textfile" >&5
  4216.           no_cache=0
  4217.           # Check whether --enable-textfile or --disable-textfile was given.
  4218. if test "${enable_textfile+set}" = set; then
  4219.   enableval="$enable_textfile"
  4220.   
  4221.                           if test "$enableval" = yes; then
  4222.                             ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
  4223.                           else
  4224.                             ac_cv_use_textfile='wxUSE_TEXTFILE=no'
  4225.                           fi
  4226.                         
  4227. else
  4228.   
  4229.                           LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
  4230.                           if test "x$LINE" != x ; then
  4231.                             eval "DEFAULT_$LINE"
  4232.                           else
  4233.                             no_cache=1
  4234.                           fi
  4235.  
  4236.                           ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
  4237.                         
  4238. fi
  4239.  
  4240.  
  4241.           eval "$ac_cv_use_textfile"
  4242.           if test "$no_cache" != 1; then
  4243.             echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
  4244.           fi
  4245.  
  4246.           if test "$wxUSE_TEXTFILE" = yes; then
  4247.             echo "$ac_t""yes" 1>&6
  4248.           else
  4249.             echo "$ac_t""no" 1>&6
  4250.           fi
  4251.         
  4252.  
  4253.           echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
  4254. echo "configure:4255: checking for --enable-fontmap" >&5
  4255.           no_cache=0
  4256.           # Check whether --enable-fontmap or --disable-fontmap was given.
  4257. if test "${enable_fontmap+set}" = set; then
  4258.   enableval="$enable_fontmap"
  4259.   
  4260.                           if test "$enableval" = yes; then
  4261.                             ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
  4262.                           else
  4263.                             ac_cv_use_fontmap='wxUSE_FONTMAP=no'
  4264.                           fi
  4265.                         
  4266. else
  4267.   
  4268.                           LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
  4269.                           if test "x$LINE" != x ; then
  4270.                             eval "DEFAULT_$LINE"
  4271.                           else
  4272.                             no_cache=1
  4273.                           fi
  4274.  
  4275.                           ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
  4276.                         
  4277. fi
  4278.  
  4279.  
  4280.           eval "$ac_cv_use_fontmap"
  4281.           if test "$no_cache" != 1; then
  4282.             echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
  4283.           fi
  4284.  
  4285.           if test "$wxUSE_FONTMAP" = yes; then
  4286.             echo "$ac_t""yes" 1>&6
  4287.           else
  4288.             echo "$ac_t""no" 1>&6
  4289.           fi
  4290.         
  4291.  
  4292.           echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
  4293. echo "configure:4294: checking for --enable-unicode" >&5
  4294.           no_cache=0
  4295.           # Check whether --enable-unicode or --disable-unicode was given.
  4296. if test "${enable_unicode+set}" = set; then
  4297.   enableval="$enable_unicode"
  4298.   
  4299.                           if test "$enableval" = yes; then
  4300.                             ac_cv_use_unicode='wxUSE_UNICODE=yes'
  4301.                           else
  4302.                             ac_cv_use_unicode='wxUSE_UNICODE=no'
  4303.                           fi
  4304.                         
  4305. else
  4306.   
  4307.                           LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
  4308.                           if test "x$LINE" != x ; then
  4309.                             eval "DEFAULT_$LINE"
  4310.                           else
  4311.                             no_cache=1
  4312.                           fi
  4313.  
  4314.                           ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
  4315.                         
  4316. fi
  4317.  
  4318.  
  4319.           eval "$ac_cv_use_unicode"
  4320.           if test "$no_cache" != 1; then
  4321.             echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
  4322.           fi
  4323.  
  4324.           if test "$wxUSE_UNICODE" = yes; then
  4325.             echo "$ac_t""yes" 1>&6
  4326.           else
  4327.             echo "$ac_t""no" 1>&6
  4328.           fi
  4329.         
  4330.  
  4331.           echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
  4332. echo "configure:4333: checking for --enable-mslu" >&5
  4333.           no_cache=0
  4334.           # Check whether --enable-mslu or --disable-mslu was given.
  4335. if test "${enable_mslu+set}" = set; then
  4336.   enableval="$enable_mslu"
  4337.   
  4338.                           if test "$enableval" = yes; then
  4339.                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
  4340.                           else
  4341.                             ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
  4342.                           fi
  4343.                         
  4344. else
  4345.   
  4346.                           LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
  4347.                           if test "x$LINE" != x ; then
  4348.                             eval "DEFAULT_$LINE"
  4349.                           else
  4350.                             no_cache=1
  4351.                           fi
  4352.  
  4353.                           ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
  4354.                         
  4355. fi
  4356.  
  4357.  
  4358.           eval "$ac_cv_use_mslu"
  4359.           if test "$no_cache" != 1; then
  4360.             echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
  4361.           fi
  4362.  
  4363.           if test "$wxUSE_UNICODE_MSLU" = yes; then
  4364.             echo "$ac_t""yes" 1>&6
  4365.           else
  4366.             echo "$ac_t""no" 1>&6
  4367.           fi
  4368.         
  4369.  
  4370.           echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
  4371. echo "configure:4372: checking for --enable-wxprintfv" >&5
  4372.           no_cache=0
  4373.           # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
  4374. if test "${enable_wxprintfv+set}" = set; then
  4375.   enableval="$enable_wxprintfv"
  4376.   
  4377.                           if test "$enableval" = yes; then
  4378.                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
  4379.                           else
  4380.                             ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
  4381.                           fi
  4382.                         
  4383. else
  4384.   
  4385.                           LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
  4386.                           if test "x$LINE" != x ; then
  4387.                             eval "DEFAULT_$LINE"
  4388.                           else
  4389.                             no_cache=1
  4390.                           fi
  4391.  
  4392.                           ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
  4393.                         
  4394. fi
  4395.  
  4396.  
  4397.           eval "$ac_cv_use_wxprintfv"
  4398.           if test "$no_cache" != 1; then
  4399.             echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
  4400.           fi
  4401.  
  4402.           if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
  4403.             echo "$ac_t""yes" 1>&6
  4404.           else
  4405.             echo "$ac_t""no" 1>&6
  4406.           fi
  4407.         
  4408.  
  4409.           echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
  4410. echo "configure:4411: checking for --enable-std_iostreams" >&5
  4411.           no_cache=0
  4412.           # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
  4413. if test "${enable_std_iostreams+set}" = set; then
  4414.   enableval="$enable_std_iostreams"
  4415.   
  4416.                           if test "$enableval" = yes; then
  4417.                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
  4418.                           else
  4419.                             ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
  4420.                           fi
  4421.                         
  4422. else
  4423.   
  4424.                           LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
  4425.                           if test "x$LINE" != x ; then
  4426.                             eval "DEFAULT_$LINE"
  4427.                           else
  4428.                             no_cache=1
  4429.                           fi
  4430.  
  4431.                           ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
  4432.                         
  4433. fi
  4434.  
  4435.  
  4436.           eval "$ac_cv_use_std_iostreams"
  4437.           if test "$no_cache" != 1; then
  4438.             echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
  4439.           fi
  4440.  
  4441.           if test "$wxUSE_STD_IOSTREAM" = yes; then
  4442.             echo "$ac_t""yes" 1>&6
  4443.           else
  4444.             echo "$ac_t""no" 1>&6
  4445.           fi
  4446.         
  4447.  
  4448.           echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
  4449. echo "configure:4450: checking for --enable-filesystem" >&5
  4450.           no_cache=0
  4451.           # Check whether --enable-filesystem or --disable-filesystem was given.
  4452. if test "${enable_filesystem+set}" = set; then
  4453.   enableval="$enable_filesystem"
  4454.   
  4455.                           if test "$enableval" = yes; then
  4456.                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
  4457.                           else
  4458.                             ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
  4459.                           fi
  4460.                         
  4461. else
  4462.   
  4463.                           LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
  4464.                           if test "x$LINE" != x ; then
  4465.                             eval "DEFAULT_$LINE"
  4466.                           else
  4467.                             no_cache=1
  4468.                           fi
  4469.  
  4470.                           ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
  4471.                         
  4472. fi
  4473.  
  4474.  
  4475.           eval "$ac_cv_use_filesystem"
  4476.           if test "$no_cache" != 1; then
  4477.             echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
  4478.           fi
  4479.  
  4480.           if test "$wxUSE_FILESYSTEM" = yes; then
  4481.             echo "$ac_t""yes" 1>&6
  4482.           else
  4483.             echo "$ac_t""no" 1>&6
  4484.           fi
  4485.         
  4486.  
  4487.           echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
  4488. echo "configure:4489: checking for --enable-fs_inet" >&5
  4489.           no_cache=0
  4490.           # Check whether --enable-fs_inet or --disable-fs_inet was given.
  4491. if test "${enable_fs_inet+set}" = set; then
  4492.   enableval="$enable_fs_inet"
  4493.   
  4494.                           if test "$enableval" = yes; then
  4495.                             ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
  4496.                           else
  4497.                             ac_cv_use_fs_inet='wxUSE_FS_INET=no'
  4498.                           fi
  4499.                         
  4500. else
  4501.   
  4502.                           LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
  4503.                           if test "x$LINE" != x ; then
  4504.                             eval "DEFAULT_$LINE"
  4505.                           else
  4506.                             no_cache=1
  4507.                           fi
  4508.  
  4509.                           ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
  4510.                         
  4511. fi
  4512.  
  4513.  
  4514.           eval "$ac_cv_use_fs_inet"
  4515.           if test "$no_cache" != 1; then
  4516.             echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
  4517.           fi
  4518.  
  4519.           if test "$wxUSE_FS_INET" = yes; then
  4520.             echo "$ac_t""yes" 1>&6
  4521.           else
  4522.             echo "$ac_t""no" 1>&6
  4523.           fi
  4524.         
  4525.  
  4526.           echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
  4527. echo "configure:4528: checking for --enable-fs_zip" >&5
  4528.           no_cache=0
  4529.           # Check whether --enable-fs_zip or --disable-fs_zip was given.
  4530. if test "${enable_fs_zip+set}" = set; then
  4531.   enableval="$enable_fs_zip"
  4532.   
  4533.                           if test "$enableval" = yes; then
  4534.                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
  4535.                           else
  4536.                             ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
  4537.                           fi
  4538.                         
  4539. else
  4540.   
  4541.                           LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
  4542.                           if test "x$LINE" != x ; then
  4543.                             eval "DEFAULT_$LINE"
  4544.                           else
  4545.                             no_cache=1
  4546.                           fi
  4547.  
  4548.                           ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
  4549.                         
  4550. fi
  4551.  
  4552.  
  4553.           eval "$ac_cv_use_fs_zip"
  4554.           if test "$no_cache" != 1; then
  4555.             echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
  4556.           fi
  4557.  
  4558.           if test "$wxUSE_FS_ZIP" = yes; then
  4559.             echo "$ac_t""yes" 1>&6
  4560.           else
  4561.             echo "$ac_t""no" 1>&6
  4562.           fi
  4563.         
  4564.  
  4565.           echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
  4566. echo "configure:4567: checking for --enable-zipstream" >&5
  4567.           no_cache=0
  4568.           # Check whether --enable-zipstream or --disable-zipstream was given.
  4569. if test "${enable_zipstream+set}" = set; then
  4570.   enableval="$enable_zipstream"
  4571.   
  4572.                           if test "$enableval" = yes; then
  4573.                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
  4574.                           else
  4575.                             ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
  4576.                           fi
  4577.                         
  4578. else
  4579.   
  4580.                           LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
  4581.                           if test "x$LINE" != x ; then
  4582.                             eval "DEFAULT_$LINE"
  4583.                           else
  4584.                             no_cache=1
  4585.                           fi
  4586.  
  4587.                           ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
  4588.                         
  4589. fi
  4590.  
  4591.  
  4592.           eval "$ac_cv_use_zipstream"
  4593.           if test "$no_cache" != 1; then
  4594.             echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
  4595.           fi
  4596.  
  4597.           if test "$wxUSE_ZIPSTREAM" = yes; then
  4598.             echo "$ac_t""yes" 1>&6
  4599.           else
  4600.             echo "$ac_t""no" 1>&6
  4601.           fi
  4602.         
  4603.  
  4604.  
  4605.           echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
  4606. echo "configure:4607: checking for --enable-catch_segvs" >&5
  4607.           no_cache=0
  4608.           # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
  4609. if test "${enable_catch_segvs+set}" = set; then
  4610.   enableval="$enable_catch_segvs"
  4611.   
  4612.                           if test "$enableval" = yes; then
  4613.                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
  4614.                           else
  4615.                             ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
  4616.                           fi
  4617.                         
  4618. else
  4619.   
  4620.                           LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
  4621.                           if test "x$LINE" != x ; then
  4622.                             eval "DEFAULT_$LINE"
  4623.                           else
  4624.                             no_cache=1
  4625.                           fi
  4626.  
  4627.                           ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
  4628.                         
  4629. fi
  4630.  
  4631.  
  4632.           eval "$ac_cv_use_catch_segvs"
  4633.           if test "$no_cache" != 1; then
  4634.             echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
  4635.           fi
  4636.  
  4637.           if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
  4638.             echo "$ac_t""yes" 1>&6
  4639.           else
  4640.             echo "$ac_t""no" 1>&6
  4641.           fi
  4642.         
  4643.  
  4644.           echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
  4645. echo "configure:4646: checking for --enable-snglinst" >&5
  4646.           no_cache=0
  4647.           # Check whether --enable-snglinst or --disable-snglinst was given.
  4648. if test "${enable_snglinst+set}" = set; then
  4649.   enableval="$enable_snglinst"
  4650.   
  4651.                           if test "$enableval" = yes; then
  4652.                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
  4653.                           else
  4654.                             ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
  4655.                           fi
  4656.                         
  4657. else
  4658.   
  4659.                           LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
  4660.                           if test "x$LINE" != x ; then
  4661.                             eval "DEFAULT_$LINE"
  4662.                           else
  4663.                             no_cache=1
  4664.                           fi
  4665.  
  4666.                           ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
  4667.                         
  4668. fi
  4669.  
  4670.  
  4671.           eval "$ac_cv_use_snglinst"
  4672.           if test "$no_cache" != 1; then
  4673.             echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
  4674.           fi
  4675.  
  4676.           if test "$wxUSE_SNGLINST_CHECKER" = yes; then
  4677.             echo "$ac_t""yes" 1>&6
  4678.           else
  4679.             echo "$ac_t""no" 1>&6
  4680.           fi
  4681.         
  4682.  
  4683.  
  4684.           echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
  4685. echo "configure:4686: checking for --enable-mimetype" >&5
  4686.           no_cache=0
  4687.           # Check whether --enable-mimetype or --disable-mimetype was given.
  4688. if test "${enable_mimetype+set}" = set; then
  4689.   enableval="$enable_mimetype"
  4690.   
  4691.                           if test "$enableval" = yes; then
  4692.                             ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
  4693.                           else
  4694.                             ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
  4695.                           fi
  4696.                         
  4697. else
  4698.   
  4699.                           LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
  4700.                           if test "x$LINE" != x ; then
  4701.                             eval "DEFAULT_$LINE"
  4702.                           else
  4703.                             no_cache=1
  4704.                           fi
  4705.  
  4706.                           ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
  4707.                         
  4708. fi
  4709.  
  4710.  
  4711.           eval "$ac_cv_use_mimetype"
  4712.           if test "$no_cache" != 1; then
  4713.             echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
  4714.           fi
  4715.  
  4716.           if test "$wxUSE_MIMETYPE" = yes; then
  4717.             echo "$ac_t""yes" 1>&6
  4718.           else
  4719.             echo "$ac_t""no" 1>&6
  4720.           fi
  4721.         
  4722.  
  4723.           echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
  4724. echo "configure:4725: checking for --enable-system_options" >&5
  4725.           no_cache=0
  4726.           # Check whether --enable-system_options or --disable-system_options was given.
  4727. if test "${enable_system_options+set}" = set; then
  4728.   enableval="$enable_system_options"
  4729.   
  4730.                           if test "$enableval" = yes; then
  4731.                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
  4732.                           else
  4733.                             ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
  4734.                           fi
  4735.                         
  4736. else
  4737.   
  4738.                           LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
  4739.                           if test "x$LINE" != x ; then
  4740.                             eval "DEFAULT_$LINE"
  4741.                           else
  4742.                             no_cache=1
  4743.                           fi
  4744.  
  4745.                           ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
  4746.                         
  4747. fi
  4748.  
  4749.  
  4750.           eval "$ac_cv_use_system_options"
  4751.           if test "$no_cache" != 1; then
  4752.             echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
  4753.           fi
  4754.  
  4755.           if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
  4756.             echo "$ac_t""yes" 1>&6
  4757.           else
  4758.             echo "$ac_t""no" 1>&6
  4759.           fi
  4760.         
  4761.  
  4762.  
  4763.           echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
  4764. echo "configure:4765: checking for --enable-url" >&5
  4765.           no_cache=0
  4766.           # Check whether --enable-url or --disable-url was given.
  4767. if test "${enable_url+set}" = set; then
  4768.   enableval="$enable_url"
  4769.   
  4770.                           if test "$enableval" = yes; then
  4771.                             ac_cv_use_url='wxUSE_URL=yes'
  4772.                           else
  4773.                             ac_cv_use_url='wxUSE_URL=no'
  4774.                           fi
  4775.                         
  4776. else
  4777.   
  4778.                           LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
  4779.                           if test "x$LINE" != x ; then
  4780.                             eval "DEFAULT_$LINE"
  4781.                           else
  4782.                             no_cache=1
  4783.                           fi
  4784.  
  4785.                           ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
  4786.                         
  4787. fi
  4788.  
  4789.  
  4790.           eval "$ac_cv_use_url"
  4791.           if test "$no_cache" != 1; then
  4792.             echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
  4793.           fi
  4794.  
  4795.           if test "$wxUSE_URL" = yes; then
  4796.             echo "$ac_t""yes" 1>&6
  4797.           else
  4798.             echo "$ac_t""no" 1>&6
  4799.           fi
  4800.         
  4801.  
  4802.           echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
  4803. echo "configure:4804: checking for --enable-protocol" >&5
  4804.           no_cache=0
  4805.           # Check whether --enable-protocol or --disable-protocol was given.
  4806. if test "${enable_protocol+set}" = set; then
  4807.   enableval="$enable_protocol"
  4808.   
  4809.                           if test "$enableval" = yes; then
  4810.                             ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
  4811.                           else
  4812.                             ac_cv_use_protocol='wxUSE_PROTOCOL=no'
  4813.                           fi
  4814.                         
  4815. else
  4816.   
  4817.                           LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
  4818.                           if test "x$LINE" != x ; then
  4819.                             eval "DEFAULT_$LINE"
  4820.                           else
  4821.                             no_cache=1
  4822.                           fi
  4823.  
  4824.                           ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
  4825.                         
  4826. fi
  4827.  
  4828.  
  4829.           eval "$ac_cv_use_protocol"
  4830.           if test "$no_cache" != 1; then
  4831.             echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
  4832.           fi
  4833.  
  4834.           if test "$wxUSE_PROTOCOL" = yes; then
  4835.             echo "$ac_t""yes" 1>&6
  4836.           else
  4837.             echo "$ac_t""no" 1>&6
  4838.           fi
  4839.         
  4840.  
  4841.           echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
  4842. echo "configure:4843: checking for --enable-protocol_http" >&5
  4843.           no_cache=0
  4844.           # Check whether --enable-protocol_http or --disable-protocol_http was given.
  4845. if test "${enable_protocol_http+set}" = set; then
  4846.   enableval="$enable_protocol_http"
  4847.   
  4848.                           if test "$enableval" = yes; then
  4849.                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
  4850.                           else
  4851.                             ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
  4852.                           fi
  4853.                         
  4854. else
  4855.   
  4856.                           LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
  4857.                           if test "x$LINE" != x ; then
  4858.                             eval "DEFAULT_$LINE"
  4859.                           else
  4860.                             no_cache=1
  4861.                           fi
  4862.  
  4863.                           ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
  4864.                         
  4865. fi
  4866.  
  4867.  
  4868.           eval "$ac_cv_use_protocol_http"
  4869.           if test "$no_cache" != 1; then
  4870.             echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
  4871.           fi
  4872.  
  4873.           if test "$wxUSE_PROTOCOL_HTTP" = yes; then
  4874.             echo "$ac_t""yes" 1>&6
  4875.           else
  4876.             echo "$ac_t""no" 1>&6
  4877.           fi
  4878.         
  4879.  
  4880.           echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
  4881. echo "configure:4882: checking for --enable-protocol_ftp" >&5
  4882.           no_cache=0
  4883.           # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
  4884. if test "${enable_protocol_ftp+set}" = set; then
  4885.   enableval="$enable_protocol_ftp"
  4886.   
  4887.                           if test "$enableval" = yes; then
  4888.                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
  4889.                           else
  4890.                             ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
  4891.                           fi
  4892.                         
  4893. else
  4894.   
  4895.                           LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
  4896.                           if test "x$LINE" != x ; then
  4897.                             eval "DEFAULT_$LINE"
  4898.                           else
  4899.                             no_cache=1
  4900.                           fi
  4901.  
  4902.                           ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
  4903.                         
  4904. fi
  4905.  
  4906.  
  4907.           eval "$ac_cv_use_protocol_ftp"
  4908.           if test "$no_cache" != 1; then
  4909.             echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
  4910.           fi
  4911.  
  4912.           if test "$wxUSE_PROTOCOL_FTP" = yes; then
  4913.             echo "$ac_t""yes" 1>&6
  4914.           else
  4915.             echo "$ac_t""no" 1>&6
  4916.           fi
  4917.         
  4918.  
  4919.           echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
  4920. echo "configure:4921: checking for --enable-protocol_file" >&5
  4921.           no_cache=0
  4922.           # Check whether --enable-protocol_file or --disable-protocol_file was given.
  4923. if test "${enable_protocol_file+set}" = set; then
  4924.   enableval="$enable_protocol_file"
  4925.   
  4926.                           if test "$enableval" = yes; then
  4927.                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
  4928.                           else
  4929.                             ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
  4930.                           fi
  4931.                         
  4932. else
  4933.   
  4934.                           LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
  4935.                           if test "x$LINE" != x ; then
  4936.                             eval "DEFAULT_$LINE"
  4937.                           else
  4938.                             no_cache=1
  4939.                           fi
  4940.  
  4941.                           ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
  4942.                         
  4943. fi
  4944.  
  4945.  
  4946.           eval "$ac_cv_use_protocol_file"
  4947.           if test "$no_cache" != 1; then
  4948.             echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
  4949.           fi
  4950.  
  4951.           if test "$wxUSE_PROTOCOL_FILE" = yes; then
  4952.             echo "$ac_t""yes" 1>&6
  4953.           else
  4954.             echo "$ac_t""no" 1>&6
  4955.           fi
  4956.         
  4957.  
  4958.  
  4959.  
  4960.  
  4961.           echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
  4962. echo "configure:4963: checking for --enable-threads" >&5
  4963.           no_cache=0
  4964.           # Check whether --enable-threads or --disable-threads was given.
  4965. if test "${enable_threads+set}" = set; then
  4966.   enableval="$enable_threads"
  4967.   
  4968.                           if test "$enableval" = yes; then
  4969.                             ac_cv_use_threads='wxUSE_THREADS=yes'
  4970.                           else
  4971.                             ac_cv_use_threads='wxUSE_THREADS=no'
  4972.                           fi
  4973.                         
  4974. else
  4975.   
  4976.                           LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
  4977.                           if test "x$LINE" != x ; then
  4978.                             eval "DEFAULT_$LINE"
  4979.                           else
  4980.                             no_cache=1
  4981.                           fi
  4982.  
  4983.                           ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
  4984.                         
  4985. fi
  4986.  
  4987.  
  4988.           eval "$ac_cv_use_threads"
  4989.           if test "$no_cache" != 1; then
  4990.             echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
  4991.           fi
  4992.  
  4993.           if test "$wxUSE_THREADS" = yes; then
  4994.             echo "$ac_t""yes" 1>&6
  4995.           else
  4996.             echo "$ac_t""no" 1>&6
  4997.           fi
  4998.         
  4999.  
  5000. if test "$wxUSE_GUI" = "yes"; then
  5001.  
  5002.  
  5003.  
  5004.           echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
  5005. echo "configure:5006: checking for --enable-docview" >&5
  5006.           no_cache=0
  5007.           # Check whether --enable-docview or --disable-docview was given.
  5008. if test "${enable_docview+set}" = set; then
  5009.   enableval="$enable_docview"
  5010.   
  5011.                           if test "$enableval" = yes; then
  5012.                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
  5013.                           else
  5014.                             ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
  5015.                           fi
  5016.                         
  5017. else
  5018.   
  5019.                           LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
  5020.                           if test "x$LINE" != x ; then
  5021.                             eval "DEFAULT_$LINE"
  5022.                           else
  5023.                             no_cache=1
  5024.                           fi
  5025.  
  5026.                           ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
  5027.                         
  5028. fi
  5029.  
  5030.  
  5031.           eval "$ac_cv_use_docview"
  5032.           if test "$no_cache" != 1; then
  5033.             echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
  5034.           fi
  5035.  
  5036.           if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
  5037.             echo "$ac_t""yes" 1>&6
  5038.           else
  5039.             echo "$ac_t""no" 1>&6
  5040.           fi
  5041.         
  5042.  
  5043.           echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
  5044. echo "configure:5045: checking for --enable-help" >&5
  5045.           no_cache=0
  5046.           # Check whether --enable-help or --disable-help was given.
  5047. if test "${enable_help+set}" = set; then
  5048.   enableval="$enable_help"
  5049.   
  5050.                           if test "$enableval" = yes; then
  5051.                             ac_cv_use_help='wxUSE_HELP=yes'
  5052.                           else
  5053.                             ac_cv_use_help='wxUSE_HELP=no'
  5054.                           fi
  5055.                         
  5056. else
  5057.   
  5058.                           LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
  5059.                           if test "x$LINE" != x ; then
  5060.                             eval "DEFAULT_$LINE"
  5061.                           else
  5062.                             no_cache=1
  5063.                           fi
  5064.  
  5065.                           ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
  5066.                         
  5067. fi
  5068.  
  5069.  
  5070.           eval "$ac_cv_use_help"
  5071.           if test "$no_cache" != 1; then
  5072.             echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
  5073.           fi
  5074.  
  5075.           if test "$wxUSE_HELP" = yes; then
  5076.             echo "$ac_t""yes" 1>&6
  5077.           else
  5078.             echo "$ac_t""no" 1>&6
  5079.           fi
  5080.         
  5081.  
  5082.           echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
  5083. echo "configure:5084: checking for --enable-mshtmlhelp" >&5
  5084.           no_cache=0
  5085.           # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
  5086. if test "${enable_mshtmlhelp+set}" = set; then
  5087.   enableval="$enable_mshtmlhelp"
  5088.   
  5089.                           if test "$enableval" = yes; then
  5090.                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
  5091.                           else
  5092.                             ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
  5093.                           fi
  5094.                         
  5095. else
  5096.   
  5097.                           LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
  5098.                           if test "x$LINE" != x ; then
  5099.                             eval "DEFAULT_$LINE"
  5100.                           else
  5101.                             no_cache=1
  5102.                           fi
  5103.  
  5104.                           ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
  5105.                         
  5106. fi
  5107.  
  5108.  
  5109.           eval "$ac_cv_use_mshtmlhelp"
  5110.           if test "$no_cache" != 1; then
  5111.             echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
  5112.           fi
  5113.  
  5114.           if test "$wxUSE_MS_HTML_HELP" = yes; then
  5115.             echo "$ac_t""yes" 1>&6
  5116.           else
  5117.             echo "$ac_t""no" 1>&6
  5118.           fi
  5119.         
  5120.  
  5121.           echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
  5122. echo "configure:5123: checking for --enable-html" >&5
  5123.           no_cache=0
  5124.           # Check whether --enable-html or --disable-html was given.
  5125. if test "${enable_html+set}" = set; then
  5126.   enableval="$enable_html"
  5127.   
  5128.                           if test "$enableval" = yes; then
  5129.                             ac_cv_use_html='wxUSE_HTML=yes'
  5130.                           else
  5131.                             ac_cv_use_html='wxUSE_HTML=no'
  5132.                           fi
  5133.                         
  5134. else
  5135.   
  5136.                           LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
  5137.                           if test "x$LINE" != x ; then
  5138.                             eval "DEFAULT_$LINE"
  5139.                           else
  5140.                             no_cache=1
  5141.                           fi
  5142.  
  5143.                           ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
  5144.                         
  5145. fi
  5146.  
  5147.  
  5148.           eval "$ac_cv_use_html"
  5149.           if test "$no_cache" != 1; then
  5150.             echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
  5151.           fi
  5152.  
  5153.           if test "$wxUSE_HTML" = yes; then
  5154.             echo "$ac_t""yes" 1>&6
  5155.           else
  5156.             echo "$ac_t""no" 1>&6
  5157.           fi
  5158.         
  5159.  
  5160.           echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
  5161. echo "configure:5162: checking for --enable-htmlhelp" >&5
  5162.           no_cache=0
  5163.           # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
  5164. if test "${enable_htmlhelp+set}" = set; then
  5165.   enableval="$enable_htmlhelp"
  5166.   
  5167.                           if test "$enableval" = yes; then
  5168.                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
  5169.                           else
  5170.                             ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
  5171.                           fi
  5172.                         
  5173. else
  5174.   
  5175.                           LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
  5176.                           if test "x$LINE" != x ; then
  5177.                             eval "DEFAULT_$LINE"
  5178.                           else
  5179.                             no_cache=1
  5180.                           fi
  5181.  
  5182.                           ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
  5183.                         
  5184. fi
  5185.  
  5186.  
  5187.           eval "$ac_cv_use_htmlhelp"
  5188.           if test "$no_cache" != 1; then
  5189.             echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
  5190.           fi
  5191.  
  5192.           if test "$wxUSE_WXHTML_HELP" = yes; then
  5193.             echo "$ac_t""yes" 1>&6
  5194.           else
  5195.             echo "$ac_t""no" 1>&6
  5196.           fi
  5197.         
  5198.  
  5199.           echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
  5200. echo "configure:5201: checking for --enable-constraints" >&5
  5201.           no_cache=0
  5202.           # Check whether --enable-constraints or --disable-constraints was given.
  5203. if test "${enable_constraints+set}" = set; then
  5204.   enableval="$enable_constraints"
  5205.   
  5206.                           if test "$enableval" = yes; then
  5207.                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
  5208.                           else
  5209.                             ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
  5210.                           fi
  5211.                         
  5212. else
  5213.   
  5214.                           LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
  5215.                           if test "x$LINE" != x ; then
  5216.                             eval "DEFAULT_$LINE"
  5217.                           else
  5218.                             no_cache=1
  5219.                           fi
  5220.  
  5221.                           ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
  5222.                         
  5223. fi
  5224.  
  5225.  
  5226.           eval "$ac_cv_use_constraints"
  5227.           if test "$no_cache" != 1; then
  5228.             echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
  5229.           fi
  5230.  
  5231.           if test "$wxUSE_CONSTRAINTS" = yes; then
  5232.             echo "$ac_t""yes" 1>&6
  5233.           else
  5234.             echo "$ac_t""no" 1>&6
  5235.           fi
  5236.         
  5237.  
  5238.           echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
  5239. echo "configure:5240: checking for --enable-printarch" >&5
  5240.           no_cache=0
  5241.           # Check whether --enable-printarch or --disable-printarch was given.
  5242. if test "${enable_printarch+set}" = set; then
  5243.   enableval="$enable_printarch"
  5244.   
  5245.                           if test "$enableval" = yes; then
  5246.                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
  5247.                           else
  5248.                             ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
  5249.                           fi
  5250.                         
  5251. else
  5252.   
  5253.                           LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
  5254.                           if test "x$LINE" != x ; then
  5255.                             eval "DEFAULT_$LINE"
  5256.                           else
  5257.                             no_cache=1
  5258.                           fi
  5259.  
  5260.                           ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
  5261.                         
  5262. fi
  5263.  
  5264.  
  5265.           eval "$ac_cv_use_printarch"
  5266.           if test "$no_cache" != 1; then
  5267.             echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
  5268.           fi
  5269.  
  5270.           if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
  5271.             echo "$ac_t""yes" 1>&6
  5272.           else
  5273.             echo "$ac_t""no" 1>&6
  5274.           fi
  5275.         
  5276.  
  5277.           echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
  5278. echo "configure:5279: checking for --enable-mdi" >&5
  5279.           no_cache=0
  5280.           # Check whether --enable-mdi or --disable-mdi was given.
  5281. if test "${enable_mdi+set}" = set; then
  5282.   enableval="$enable_mdi"
  5283.   
  5284.                           if test "$enableval" = yes; then
  5285.                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
  5286.                           else
  5287.                             ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
  5288.                           fi
  5289.                         
  5290. else
  5291.   
  5292.                           LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
  5293.                           if test "x$LINE" != x ; then
  5294.                             eval "DEFAULT_$LINE"
  5295.                           else
  5296.                             no_cache=1
  5297.                           fi
  5298.  
  5299.                           ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
  5300.                         
  5301. fi
  5302.  
  5303.  
  5304.           eval "$ac_cv_use_mdi"
  5305.           if test "$no_cache" != 1; then
  5306.             echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
  5307.           fi
  5308.  
  5309.           if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
  5310.             echo "$ac_t""yes" 1>&6
  5311.           else
  5312.             echo "$ac_t""no" 1>&6
  5313.           fi
  5314.         
  5315.  
  5316.           echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
  5317. echo "configure:5318: checking for --enable-loggui" >&5
  5318.           no_cache=0
  5319.           # Check whether --enable-loggui or --disable-loggui was given.
  5320. if test "${enable_loggui+set}" = set; then
  5321.   enableval="$enable_loggui"
  5322.   
  5323.                           if test "$enableval" = yes; then
  5324.                             ac_cv_use_loggui='wxUSE_LOGGUI=yes'
  5325.                           else
  5326.                             ac_cv_use_loggui='wxUSE_LOGGUI=no'
  5327.                           fi
  5328.                         
  5329. else
  5330.   
  5331.                           LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
  5332.                           if test "x$LINE" != x ; then
  5333.                             eval "DEFAULT_$LINE"
  5334.                           else
  5335.                             no_cache=1
  5336.                           fi
  5337.  
  5338.                           ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
  5339.                         
  5340. fi
  5341.  
  5342.  
  5343.           eval "$ac_cv_use_loggui"
  5344.           if test "$no_cache" != 1; then
  5345.             echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
  5346.           fi
  5347.  
  5348.           if test "$wxUSE_LOGGUI" = yes; then
  5349.             echo "$ac_t""yes" 1>&6
  5350.           else
  5351.             echo "$ac_t""no" 1>&6
  5352.           fi
  5353.         
  5354.  
  5355.           echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
  5356. echo "configure:5357: checking for --enable-logwin" >&5
  5357.           no_cache=0
  5358.           # Check whether --enable-logwin or --disable-logwin was given.
  5359. if test "${enable_logwin+set}" = set; then
  5360.   enableval="$enable_logwin"
  5361.   
  5362.                           if test "$enableval" = yes; then
  5363.                             ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
  5364.                           else
  5365.                             ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
  5366.                           fi
  5367.                         
  5368. else
  5369.   
  5370.                           LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
  5371.                           if test "x$LINE" != x ; then
  5372.                             eval "DEFAULT_$LINE"
  5373.                           else
  5374.                             no_cache=1
  5375.                           fi
  5376.  
  5377.                           ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
  5378.                         
  5379. fi
  5380.  
  5381.  
  5382.           eval "$ac_cv_use_logwin"
  5383.           if test "$no_cache" != 1; then
  5384.             echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
  5385.           fi
  5386.  
  5387.           if test "$wxUSE_LOGWINDOW" = yes; then
  5388.             echo "$ac_t""yes" 1>&6
  5389.           else
  5390.             echo "$ac_t""no" 1>&6
  5391.           fi
  5392.         
  5393.  
  5394.           echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
  5395. echo "configure:5396: checking for --enable-logdialog" >&5
  5396.           no_cache=0
  5397.           # Check whether --enable-logdialog or --disable-logdialog was given.
  5398. if test "${enable_logdialog+set}" = set; then
  5399.   enableval="$enable_logdialog"
  5400.   
  5401.                           if test "$enableval" = yes; then
  5402.                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
  5403.                           else
  5404.                             ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
  5405.                           fi
  5406.                         
  5407. else
  5408.   
  5409.                           LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
  5410.                           if test "x$LINE" != x ; then
  5411.                             eval "DEFAULT_$LINE"
  5412.                           else
  5413.                             no_cache=1
  5414.                           fi
  5415.  
  5416.                           ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
  5417.                         
  5418. fi
  5419.  
  5420.  
  5421.           eval "$ac_cv_use_logdialog"
  5422.           if test "$no_cache" != 1; then
  5423.             echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
  5424.           fi
  5425.  
  5426.           if test "$wxUSE_LOGDIALOG" = yes; then
  5427.             echo "$ac_t""yes" 1>&6
  5428.           else
  5429.             echo "$ac_t""no" 1>&6
  5430.           fi
  5431.         
  5432.  
  5433.  
  5434.           echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
  5435. echo "configure:5436: checking for --enable-postscript" >&5
  5436.           no_cache=0
  5437.           # Check whether --enable-postscript or --disable-postscript was given.
  5438. if test "${enable_postscript+set}" = set; then
  5439.   enableval="$enable_postscript"
  5440.   
  5441.                           if test "$enableval" = yes; then
  5442.                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
  5443.                           else
  5444.                             ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
  5445.                           fi
  5446.                         
  5447. else
  5448.   
  5449.                           LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
  5450.                           if test "x$LINE" != x ; then
  5451.                             eval "DEFAULT_$LINE"
  5452.                           else
  5453.                             no_cache=1
  5454.                           fi
  5455.  
  5456.                           ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
  5457.                         
  5458. fi
  5459.  
  5460.  
  5461.           eval "$ac_cv_use_postscript"
  5462.           if test "$no_cache" != 1; then
  5463.             echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
  5464.           fi
  5465.  
  5466.           if test "$wxUSE_POSTSCRIPT" = yes; then
  5467.             echo "$ac_t""yes" 1>&6
  5468.           else
  5469.             echo "$ac_t""no" 1>&6
  5470.           fi
  5471.         
  5472.  
  5473.  
  5474.  
  5475.  
  5476.           echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
  5477. echo "configure:5478: checking for --enable-prologio" >&5
  5478.           no_cache=0
  5479.           # Check whether --enable-prologio or --disable-prologio was given.
  5480. if test "${enable_prologio+set}" = set; then
  5481.   enableval="$enable_prologio"
  5482.   
  5483.                           if test "$enableval" = yes; then
  5484.                             ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
  5485.                           else
  5486.                             ac_cv_use_prologio='wxUSE_PROLOGIO=no'
  5487.                           fi
  5488.                         
  5489. else
  5490.   
  5491.                           LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
  5492.                           if test "x$LINE" != x ; then
  5493.                             eval "DEFAULT_$LINE"
  5494.                           else
  5495.                             no_cache=1
  5496.                           fi
  5497.  
  5498.                           ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
  5499.                         
  5500. fi
  5501.  
  5502.  
  5503.           eval "$ac_cv_use_prologio"
  5504.           if test "$no_cache" != 1; then
  5505.             echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
  5506.           fi
  5507.  
  5508.           if test "$wxUSE_PROLOGIO" = yes; then
  5509.             echo "$ac_t""yes" 1>&6
  5510.           else
  5511.             echo "$ac_t""no" 1>&6
  5512.           fi
  5513.         
  5514.  
  5515.           echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
  5516. echo "configure:5517: checking for --enable-resources" >&5
  5517.           no_cache=0
  5518.           # Check whether --enable-resources or --disable-resources was given.
  5519. if test "${enable_resources+set}" = set; then
  5520.   enableval="$enable_resources"
  5521.   
  5522.                           if test "$enableval" = yes; then
  5523.                             ac_cv_use_resources='wxUSE_RESOURCES=yes'
  5524.                           else
  5525.                             ac_cv_use_resources='wxUSE_RESOURCES=no'
  5526.                           fi
  5527.                         
  5528. else
  5529.   
  5530.                           LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
  5531.                           if test "x$LINE" != x ; then
  5532.                             eval "DEFAULT_$LINE"
  5533.                           else
  5534.                             no_cache=1
  5535.                           fi
  5536.  
  5537.                           ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
  5538.                         
  5539. fi
  5540.  
  5541.  
  5542.           eval "$ac_cv_use_resources"
  5543.           if test "$no_cache" != 1; then
  5544.             echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
  5545.           fi
  5546.  
  5547.           if test "$wxUSE_RESOURCES" = yes; then
  5548.             echo "$ac_t""yes" 1>&6
  5549.           else
  5550.             echo "$ac_t""no" 1>&6
  5551.           fi
  5552.         
  5553.  
  5554.  
  5555.           echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
  5556. echo "configure:5557: checking for --enable-xresources" >&5
  5557.           no_cache=0
  5558.           # Check whether --enable-xresources or --disable-xresources was given.
  5559. if test "${enable_xresources+set}" = set; then
  5560.   enableval="$enable_xresources"
  5561.   
  5562.                           if test "$enableval" = yes; then
  5563.                             ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
  5564.                           else
  5565.                             ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
  5566.                           fi
  5567.                         
  5568. else
  5569.   
  5570.                           LINE=`grep "wxUSE_X_RESOURCES" ${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_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
  5578.                         
  5579. fi
  5580.  
  5581.  
  5582.           eval "$ac_cv_use_xresources"
  5583.           if test "$no_cache" != 1; then
  5584.             echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
  5585.           fi
  5586.  
  5587.           if test "$wxUSE_X_RESOURCES" = yes; then
  5588.             echo "$ac_t""yes" 1>&6
  5589.           else
  5590.             echo "$ac_t""no" 1>&6
  5591.           fi
  5592.         
  5593.  
  5594.  
  5595.  
  5596.           echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
  5597. echo "configure:5598: checking for --enable-clipboard" >&5
  5598.           no_cache=0
  5599.           # Check whether --enable-clipboard or --disable-clipboard was given.
  5600. if test "${enable_clipboard+set}" = set; then
  5601.   enableval="$enable_clipboard"
  5602.   
  5603.                           if test "$enableval" = yes; then
  5604.                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
  5605.                           else
  5606.                             ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
  5607.                           fi
  5608.                         
  5609. else
  5610.   
  5611.                           LINE=`grep "wxUSE_CLIPBOARD" ${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_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
  5619.                         
  5620. fi
  5621.  
  5622.  
  5623.           eval "$ac_cv_use_clipboard"
  5624.           if test "$no_cache" != 1; then
  5625.             echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
  5626.           fi
  5627.  
  5628.           if test "$wxUSE_CLIPBOARD" = yes; then
  5629.             echo "$ac_t""yes" 1>&6
  5630.           else
  5631.             echo "$ac_t""no" 1>&6
  5632.           fi
  5633.         
  5634.  
  5635.           echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
  5636. echo "configure:5637: checking for --enable-dnd" >&5
  5637.           no_cache=0
  5638.           # Check whether --enable-dnd or --disable-dnd was given.
  5639. if test "${enable_dnd+set}" = set; then
  5640.   enableval="$enable_dnd"
  5641.   
  5642.                           if test "$enableval" = yes; then
  5643.                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
  5644.                           else
  5645.                             ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
  5646.                           fi
  5647.                         
  5648. else
  5649.   
  5650.                           LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
  5651.                           if test "x$LINE" != x ; then
  5652.                             eval "DEFAULT_$LINE"
  5653.                           else
  5654.                             no_cache=1
  5655.                           fi
  5656.  
  5657.                           ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
  5658.                         
  5659. fi
  5660.  
  5661.  
  5662.           eval "$ac_cv_use_dnd"
  5663.           if test "$no_cache" != 1; then
  5664.             echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
  5665.           fi
  5666.  
  5667.           if test "$wxUSE_DRAG_AND_DROP" = yes; then
  5668.             echo "$ac_t""yes" 1>&6
  5669.           else
  5670.             echo "$ac_t""no" 1>&6
  5671.           fi
  5672.         
  5673.  
  5674.           echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
  5675. echo "configure:5676: checking for --enable-metafile" >&5
  5676.           no_cache=0
  5677.           # Check whether --enable-metafile or --disable-metafile was given.
  5678. if test "${enable_metafile+set}" = set; then
  5679.   enableval="$enable_metafile"
  5680.   
  5681.                           if test "$enableval" = yes; then
  5682.                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
  5683.                           else
  5684.                             ac_cv_use_metafile='wxUSE_METAFILE=no'
  5685.                           fi
  5686.                         
  5687. else
  5688.   
  5689.                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
  5690.                           if test "x$LINE" != x ; then
  5691.                             eval "DEFAULT_$LINE"
  5692.                           else
  5693.                             no_cache=1
  5694.                           fi
  5695.  
  5696.                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
  5697.                         
  5698. fi
  5699.  
  5700.  
  5701.           eval "$ac_cv_use_metafile"
  5702.           if test "$no_cache" != 1; then
  5703.             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
  5704.           fi
  5705.  
  5706.           if test "$wxUSE_METAFILE" = yes; then
  5707.             echo "$ac_t""yes" 1>&6
  5708.           else
  5709.             echo "$ac_t""no" 1>&6
  5710.           fi
  5711.         
  5712.  
  5713.  
  5714.           echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
  5715. echo "configure:5716: checking for --enable-treelayout" >&5
  5716.           no_cache=0
  5717.           # Check whether --enable-treelayout or --disable-treelayout was given.
  5718. if test "${enable_treelayout+set}" = set; then
  5719.   enableval="$enable_treelayout"
  5720.   
  5721.                           if test "$enableval" = yes; then
  5722.                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
  5723.                           else
  5724.                             ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
  5725.                           fi
  5726.                         
  5727. else
  5728.   
  5729.                           LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
  5730.                           if test "x$LINE" != x ; then
  5731.                             eval "DEFAULT_$LINE"
  5732.                           else
  5733.                             no_cache=1
  5734.                           fi
  5735.  
  5736.                           ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
  5737.                         
  5738. fi
  5739.  
  5740.  
  5741.           eval "$ac_cv_use_treelayout"
  5742.           if test "$no_cache" != 1; then
  5743.             echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
  5744.           fi
  5745.  
  5746.           if test "$wxUSE_TREELAYOUT" = yes; then
  5747.             echo "$ac_t""yes" 1>&6
  5748.           else
  5749.             echo "$ac_t""no" 1>&6
  5750.           fi
  5751.         
  5752.  
  5753.  
  5754.  
  5755.           echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
  5756. echo "configure:5757: checking for --enable-controls" >&5
  5757.           no_cache=0
  5758.           # Check whether --enable-controls or --disable-controls was given.
  5759. if test "${enable_controls+set}" = set; then
  5760.   enableval="$enable_controls"
  5761.   
  5762.                           if test "$enableval" = yes; then
  5763.                             ac_cv_use_controls='wxUSE_CONTROLS=yes'
  5764.                           else
  5765.                             ac_cv_use_controls='wxUSE_CONTROLS=no'
  5766.                           fi
  5767.                         
  5768. else
  5769.   
  5770.                           LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
  5771.                           if test "x$LINE" != x ; then
  5772.                             eval "DEFAULT_$LINE"
  5773.                           else
  5774.                             no_cache=1
  5775.                           fi
  5776.  
  5777.                           ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
  5778.                         
  5779. fi
  5780.  
  5781.  
  5782.           eval "$ac_cv_use_controls"
  5783.           if test "$no_cache" != 1; then
  5784.             echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
  5785.           fi
  5786.  
  5787.           if test "$wxUSE_CONTROLS" = yes; then
  5788.             echo "$ac_t""yes" 1>&6
  5789.           else
  5790.             echo "$ac_t""no" 1>&6
  5791.           fi
  5792.         
  5793.  
  5794. if test "$wxUSE_CONTROLS" = "yes"; then
  5795.   DEFAULT_wxUSE_ACCEL=yes
  5796.   DEFAULT_wxUSE_BMPBUTTON=yes
  5797.   DEFAULT_wxUSE_BUTTON=yes
  5798.   DEFAULT_wxUSE_CALCTRL=no
  5799.   DEFAULT_wxUSE_CARET=yes
  5800.   DEFAULT_wxUSE_COMBOBOX=yes
  5801.   DEFAULT_wxUSE_CHECKBOX=yes
  5802.   DEFAULT_wxUSE_CHECKLISTBOX=yes
  5803.   DEFAULT_wxUSE_CHOICE=yes
  5804.   DEFAULT_wxUSE_GAUGE=yes
  5805.   DEFAULT_wxUSE_GRID=yes
  5806.   DEFAULT_wxUSE_NEW_GRID=yes
  5807.   DEFAULT_wxUSE_IMAGLIST=yes
  5808.   DEFAULT_wxUSE_LISTBOX=yes
  5809.   DEFAULT_wxUSE_LISTCTRL=yes
  5810.   DEFAULT_wxUSE_NOTEBOOK=yes
  5811.   DEFAULT_wxUSE_PROPSHEET=yes
  5812.   DEFAULT_wxUSE_RADIOBOX=yes
  5813.   DEFAULT_wxUSE_RADIOBTN=yes
  5814.   DEFAULT_wxUSE_SASH=yes
  5815.   DEFAULT_wxUSE_SCROLLBAR=yes
  5816.   DEFAULT_wxUSE_SLIDER=yes
  5817.   DEFAULT_wxUSE_SPINBTN=yes
  5818.   DEFAULT_wxUSE_SPINCTRL=yes
  5819.   DEFAULT_wxUSE_SPLITTER=yes
  5820.   DEFAULT_wxUSE_STATBMP=yes
  5821.   DEFAULT_wxUSE_STATBOX=yes
  5822.   DEFAULT_wxUSE_STATLINE=yes
  5823.   DEFAULT_wxUSE_STATUSBAR=yes
  5824.   DEFAULT_wxUSE_TAB_DIALOG=yes
  5825.   DEFAULT_wxUSE_TOGGLEBTN=yes
  5826.   DEFAULT_wxUSE_TOOLBAR=yes
  5827.   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
  5828.   DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
  5829.   DEFAULT_wxUSE_TOOLTIPS=yes
  5830.   DEFAULT_wxUSE_TREECTRL=yes
  5831.   DEFAULT_wxUSE_POPUPWIN=yes
  5832.   DEFAULT_wxUSE_TIPWINDOW=yes
  5833. elif test "$wxUSE_CONTROLS" = "no"; then
  5834.   DEFAULT_wxUSE_ACCEL=no
  5835.   DEFAULT_wxUSE_BMPBUTTON=no
  5836.   DEFAULT_wxUSE_BUTTON=no
  5837.   DEFAULT_wxUSE_CALCTRL=no
  5838.   DEFAULT_wxUSE_CARET=no
  5839.   DEFAULT_wxUSE_COMBOBOX=no
  5840.   DEFAULT_wxUSE_CHECKBOX=no
  5841.   DEFAULT_wxUSE_CHECKLISTBOX=no
  5842.   DEFAULT_wxUSE_CHOICE=no
  5843.   DEFAULT_wxUSE_GAUGE=no
  5844.   DEFAULT_wxUSE_GRID=no
  5845.   DEFAULT_wxUSE_NEW_GRID=no
  5846.   DEFAULT_wxUSE_IMAGLIST=no
  5847.   DEFAULT_wxUSE_LISTBOX=no
  5848.   DEFAULT_wxUSE_LISTCTRL=no
  5849.   DEFAULT_wxUSE_NOTEBOOK=no
  5850.   DEFAULT_wxUSE_PROPSHEET=no
  5851.   DEFAULT_wxUSE_RADIOBOX=no
  5852.   DEFAULT_wxUSE_RADIOBTN=no
  5853.   DEFAULT_wxUSE_SASH=no
  5854.   DEFAULT_wxUSE_SCROLLBAR=no
  5855.   DEFAULT_wxUSE_SLIDER=no
  5856.   DEFAULT_wxUSE_SPINBTN=no
  5857.   DEFAULT_wxUSE_SPINCTRL=no
  5858.   DEFAULT_wxUSE_SPLITTER=no
  5859.   DEFAULT_wxUSE_STATBMP=no
  5860.   DEFAULT_wxUSE_STATBOX=no
  5861.   DEFAULT_wxUSE_STATLINE=no
  5862.   DEFAULT_wxUSE_STATUSBAR=no
  5863.   DEFAULT_wxUSE_TAB_DIALOG=no
  5864.   DEFAULT_wxUSE_TOGGLEBTN=no
  5865.   DEFAULT_wxUSE_TOOLBAR=no
  5866.   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
  5867.   DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
  5868.   DEFAULT_wxUSE_TOOLTIPS=no
  5869.   DEFAULT_wxUSE_TREECTRL=no
  5870.   DEFAULT_wxUSE_POPUPWIN=no
  5871.   DEFAULT_wxUSE_TIPWINDOW=no
  5872. fi
  5873.  
  5874.  
  5875.           echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
  5876. echo "configure:5877: checking for --enable-accel" >&5
  5877.           no_cache=0
  5878.           # Check whether --enable-accel or --disable-accel was given.
  5879. if test "${enable_accel+set}" = set; then
  5880.   enableval="$enable_accel"
  5881.   
  5882.                           if test "$enableval" = yes; then
  5883.                             ac_cv_use_accel='wxUSE_ACCEL=yes'
  5884.                           else
  5885.                             ac_cv_use_accel='wxUSE_ACCEL=no'
  5886.                           fi
  5887.                         
  5888. else
  5889.   
  5890.                           LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
  5891.                           if test "x$LINE" != x ; then
  5892.                             eval "DEFAULT_$LINE"
  5893.                           else
  5894.                             no_cache=1
  5895.                           fi
  5896.  
  5897.                           ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
  5898.                         
  5899. fi
  5900.  
  5901.  
  5902.           eval "$ac_cv_use_accel"
  5903.           if test "$no_cache" != 1; then
  5904.             echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
  5905.           fi
  5906.  
  5907.           if test "$wxUSE_ACCEL" = yes; then
  5908.             echo "$ac_t""yes" 1>&6
  5909.           else
  5910.             echo "$ac_t""no" 1>&6
  5911.           fi
  5912.         
  5913.  
  5914.           echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
  5915. echo "configure:5916: checking for --enable-button" >&5
  5916.           no_cache=0
  5917.           # Check whether --enable-button or --disable-button was given.
  5918. if test "${enable_button+set}" = set; then
  5919.   enableval="$enable_button"
  5920.   
  5921.                           if test "$enableval" = yes; then
  5922.                             ac_cv_use_button='wxUSE_BUTTON=yes'
  5923.                           else
  5924.                             ac_cv_use_button='wxUSE_BUTTON=no'
  5925.                           fi
  5926.                         
  5927. else
  5928.   
  5929.                           LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
  5930.                           if test "x$LINE" != x ; then
  5931.                             eval "DEFAULT_$LINE"
  5932.                           else
  5933.                             no_cache=1
  5934.                           fi
  5935.  
  5936.                           ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
  5937.                         
  5938. fi
  5939.  
  5940.  
  5941.           eval "$ac_cv_use_button"
  5942.           if test "$no_cache" != 1; then
  5943.             echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
  5944.           fi
  5945.  
  5946.           if test "$wxUSE_BUTTON" = yes; then
  5947.             echo "$ac_t""yes" 1>&6
  5948.           else
  5949.             echo "$ac_t""no" 1>&6
  5950.           fi
  5951.         
  5952.  
  5953.           echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
  5954. echo "configure:5955: checking for --enable-bmpbutton" >&5
  5955.           no_cache=0
  5956.           # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
  5957. if test "${enable_bmpbutton+set}" = set; then
  5958.   enableval="$enable_bmpbutton"
  5959.   
  5960.                           if test "$enableval" = yes; then
  5961.                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
  5962.                           else
  5963.                             ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
  5964.                           fi
  5965.                         
  5966. else
  5967.   
  5968.                           LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
  5969.                           if test "x$LINE" != x ; then
  5970.                             eval "DEFAULT_$LINE"
  5971.                           else
  5972.                             no_cache=1
  5973.                           fi
  5974.  
  5975.                           ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
  5976.                         
  5977. fi
  5978.  
  5979.  
  5980.           eval "$ac_cv_use_bmpbutton"
  5981.           if test "$no_cache" != 1; then
  5982.             echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
  5983.           fi
  5984.  
  5985.           if test "$wxUSE_BMPBUTTON" = yes; then
  5986.             echo "$ac_t""yes" 1>&6
  5987.           else
  5988.             echo "$ac_t""no" 1>&6
  5989.           fi
  5990.         
  5991.  
  5992.           echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
  5993. echo "configure:5994: checking for --enable-calendar" >&5
  5994.           no_cache=0
  5995.           # Check whether --enable-calendar or --disable-calendar was given.
  5996. if test "${enable_calendar+set}" = set; then
  5997.   enableval="$enable_calendar"
  5998.   
  5999.                           if test "$enableval" = yes; then
  6000.                             ac_cv_use_calendar='wxUSE_CALCTRL=yes'
  6001.                           else
  6002.                             ac_cv_use_calendar='wxUSE_CALCTRL=no'
  6003.                           fi
  6004.                         
  6005. else
  6006.   
  6007.                           LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
  6008.                           if test "x$LINE" != x ; then
  6009.                             eval "DEFAULT_$LINE"
  6010.                           else
  6011.                             no_cache=1
  6012.                           fi
  6013.  
  6014.                           ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
  6015.                         
  6016. fi
  6017.  
  6018.  
  6019.           eval "$ac_cv_use_calendar"
  6020.           if test "$no_cache" != 1; then
  6021.             echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
  6022.           fi
  6023.  
  6024.           if test "$wxUSE_CALCTRL" = yes; then
  6025.             echo "$ac_t""yes" 1>&6
  6026.           else
  6027.             echo "$ac_t""no" 1>&6
  6028.           fi
  6029.         
  6030.  
  6031.           echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
  6032. echo "configure:6033: checking for --enable-caret" >&5
  6033.           no_cache=0
  6034.           # Check whether --enable-caret or --disable-caret was given.
  6035. if test "${enable_caret+set}" = set; then
  6036.   enableval="$enable_caret"
  6037.   
  6038.                           if test "$enableval" = yes; then
  6039.                             ac_cv_use_caret='wxUSE_CARET=yes'
  6040.                           else
  6041.                             ac_cv_use_caret='wxUSE_CARET=no'
  6042.                           fi
  6043.                         
  6044. else
  6045.   
  6046.                           LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
  6047.                           if test "x$LINE" != x ; then
  6048.                             eval "DEFAULT_$LINE"
  6049.                           else
  6050.                             no_cache=1
  6051.                           fi
  6052.  
  6053.                           ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
  6054.                         
  6055. fi
  6056.  
  6057.  
  6058.           eval "$ac_cv_use_caret"
  6059.           if test "$no_cache" != 1; then
  6060.             echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
  6061.           fi
  6062.  
  6063.           if test "$wxUSE_CARET" = yes; then
  6064.             echo "$ac_t""yes" 1>&6
  6065.           else
  6066.             echo "$ac_t""no" 1>&6
  6067.           fi
  6068.         
  6069.  
  6070.           echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
  6071. echo "configure:6072: checking for --enable-checkbox" >&5
  6072.           no_cache=0
  6073.           # Check whether --enable-checkbox or --disable-checkbox was given.
  6074. if test "${enable_checkbox+set}" = set; then
  6075.   enableval="$enable_checkbox"
  6076.   
  6077.                           if test "$enableval" = yes; then
  6078.                             ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
  6079.                           else
  6080.                             ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
  6081.                           fi
  6082.                         
  6083. else
  6084.   
  6085.                           LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
  6086.                           if test "x$LINE" != x ; then
  6087.                             eval "DEFAULT_$LINE"
  6088.                           else
  6089.                             no_cache=1
  6090.                           fi
  6091.  
  6092.                           ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
  6093.                         
  6094. fi
  6095.  
  6096.  
  6097.           eval "$ac_cv_use_checkbox"
  6098.           if test "$no_cache" != 1; then
  6099.             echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
  6100.           fi
  6101.  
  6102.           if test "$wxUSE_CHECKBOX" = yes; then
  6103.             echo "$ac_t""yes" 1>&6
  6104.           else
  6105.             echo "$ac_t""no" 1>&6
  6106.           fi
  6107.         
  6108.  
  6109.           echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
  6110. echo "configure:6111: checking for --enable-checklst" >&5
  6111.           no_cache=0
  6112.           # Check whether --enable-checklst or --disable-checklst was given.
  6113. if test "${enable_checklst+set}" = set; then
  6114.   enableval="$enable_checklst"
  6115.   
  6116.                           if test "$enableval" = yes; then
  6117.                             ac_cv_use_checklst='wxUSE_CHECKLST=yes'
  6118.                           else
  6119.                             ac_cv_use_checklst='wxUSE_CHECKLST=no'
  6120.                           fi
  6121.                         
  6122. else
  6123.   
  6124.                           LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
  6125.                           if test "x$LINE" != x ; then
  6126.                             eval "DEFAULT_$LINE"
  6127.                           else
  6128.                             no_cache=1
  6129.                           fi
  6130.  
  6131.                           ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
  6132.                         
  6133. fi
  6134.  
  6135.  
  6136.           eval "$ac_cv_use_checklst"
  6137.           if test "$no_cache" != 1; then
  6138.             echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
  6139.           fi
  6140.  
  6141.           if test "$wxUSE_CHECKLST" = yes; then
  6142.             echo "$ac_t""yes" 1>&6
  6143.           else
  6144.             echo "$ac_t""no" 1>&6
  6145.           fi
  6146.         
  6147.  
  6148.           echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
  6149. echo "configure:6150: checking for --enable-choice" >&5
  6150.           no_cache=0
  6151.           # Check whether --enable-choice or --disable-choice was given.
  6152. if test "${enable_choice+set}" = set; then
  6153.   enableval="$enable_choice"
  6154.   
  6155.                           if test "$enableval" = yes; then
  6156.                             ac_cv_use_choice='wxUSE_CHOICE=yes'
  6157.                           else
  6158.                             ac_cv_use_choice='wxUSE_CHOICE=no'
  6159.                           fi
  6160.                         
  6161. else
  6162.   
  6163.                           LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
  6164.                           if test "x$LINE" != x ; then
  6165.                             eval "DEFAULT_$LINE"
  6166.                           else
  6167.                             no_cache=1
  6168.                           fi
  6169.  
  6170.                           ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
  6171.                         
  6172. fi
  6173.  
  6174.  
  6175.           eval "$ac_cv_use_choice"
  6176.           if test "$no_cache" != 1; then
  6177.             echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
  6178.           fi
  6179.  
  6180.           if test "$wxUSE_CHOICE" = yes; then
  6181.             echo "$ac_t""yes" 1>&6
  6182.           else
  6183.             echo "$ac_t""no" 1>&6
  6184.           fi
  6185.         
  6186.  
  6187.           echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
  6188. echo "configure:6189: checking for --enable-combobox" >&5
  6189.           no_cache=0
  6190.           # Check whether --enable-combobox or --disable-combobox was given.
  6191. if test "${enable_combobox+set}" = set; then
  6192.   enableval="$enable_combobox"
  6193.   
  6194.                           if test "$enableval" = yes; then
  6195.                             ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
  6196.                           else
  6197.                             ac_cv_use_combobox='wxUSE_COMBOBOX=no'
  6198.                           fi
  6199.                         
  6200. else
  6201.   
  6202.                           LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
  6203.                           if test "x$LINE" != x ; then
  6204.                             eval "DEFAULT_$LINE"
  6205.                           else
  6206.                             no_cache=1
  6207.                           fi
  6208.  
  6209.                           ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
  6210.                         
  6211. fi
  6212.  
  6213.  
  6214.           eval "$ac_cv_use_combobox"
  6215.           if test "$no_cache" != 1; then
  6216.             echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
  6217.           fi
  6218.  
  6219.           if test "$wxUSE_COMBOBOX" = yes; then
  6220.             echo "$ac_t""yes" 1>&6
  6221.           else
  6222.             echo "$ac_t""no" 1>&6
  6223.           fi
  6224.         
  6225.  
  6226.           echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
  6227. echo "configure:6228: checking for --enable-gauge" >&5
  6228.           no_cache=0
  6229.           # Check whether --enable-gauge or --disable-gauge was given.
  6230. if test "${enable_gauge+set}" = set; then
  6231.   enableval="$enable_gauge"
  6232.   
  6233.                           if test "$enableval" = yes; then
  6234.                             ac_cv_use_gauge='wxUSE_GAUGE=yes'
  6235.                           else
  6236.                             ac_cv_use_gauge='wxUSE_GAUGE=no'
  6237.                           fi
  6238.                         
  6239. else
  6240.   
  6241.                           LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
  6242.                           if test "x$LINE" != x ; then
  6243.                             eval "DEFAULT_$LINE"
  6244.                           else
  6245.                             no_cache=1
  6246.                           fi
  6247.  
  6248.                           ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
  6249.                         
  6250. fi
  6251.  
  6252.  
  6253.           eval "$ac_cv_use_gauge"
  6254.           if test "$no_cache" != 1; then
  6255.             echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
  6256.           fi
  6257.  
  6258.           if test "$wxUSE_GAUGE" = yes; then
  6259.             echo "$ac_t""yes" 1>&6
  6260.           else
  6261.             echo "$ac_t""no" 1>&6
  6262.           fi
  6263.         
  6264.  
  6265.           echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
  6266. echo "configure:6267: checking for --enable-grid" >&5
  6267.           no_cache=0
  6268.           # Check whether --enable-grid or --disable-grid was given.
  6269. if test "${enable_grid+set}" = set; then
  6270.   enableval="$enable_grid"
  6271.   
  6272.                           if test "$enableval" = yes; then
  6273.                             ac_cv_use_grid='wxUSE_GRID=yes'
  6274.                           else
  6275.                             ac_cv_use_grid='wxUSE_GRID=no'
  6276.                           fi
  6277.                         
  6278. else
  6279.   
  6280.                           LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
  6281.                           if test "x$LINE" != x ; then
  6282.                             eval "DEFAULT_$LINE"
  6283.                           else
  6284.                             no_cache=1
  6285.                           fi
  6286.  
  6287.                           ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
  6288.                         
  6289. fi
  6290.  
  6291.  
  6292.           eval "$ac_cv_use_grid"
  6293.           if test "$no_cache" != 1; then
  6294.             echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
  6295.           fi
  6296.  
  6297.           if test "$wxUSE_GRID" = yes; then
  6298.             echo "$ac_t""yes" 1>&6
  6299.           else
  6300.             echo "$ac_t""no" 1>&6
  6301.           fi
  6302.         
  6303.  
  6304.           echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
  6305. echo "configure:6306: checking for --enable-newgrid" >&5
  6306.           no_cache=0
  6307.           # Check whether --enable-newgrid or --disable-newgrid was given.
  6308. if test "${enable_newgrid+set}" = set; then
  6309.   enableval="$enable_newgrid"
  6310.   
  6311.                           if test "$enableval" = yes; then
  6312.                             ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
  6313.                           else
  6314.                             ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
  6315.                           fi
  6316.                         
  6317. else
  6318.   
  6319.                           LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
  6320.                           if test "x$LINE" != x ; then
  6321.                             eval "DEFAULT_$LINE"
  6322.                           else
  6323.                             no_cache=1
  6324.                           fi
  6325.  
  6326.                           ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
  6327.                         
  6328. fi
  6329.  
  6330.  
  6331.           eval "$ac_cv_use_newgrid"
  6332.           if test "$no_cache" != 1; then
  6333.             echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
  6334.           fi
  6335.  
  6336.           if test "$wxUSE_NEW_GRID" = yes; then
  6337.             echo "$ac_t""yes" 1>&6
  6338.           else
  6339.             echo "$ac_t""no" 1>&6
  6340.           fi
  6341.         
  6342.  
  6343.           echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
  6344. echo "configure:6345: checking for --enable-imaglist" >&5
  6345.           no_cache=0
  6346.           # Check whether --enable-imaglist or --disable-imaglist was given.
  6347. if test "${enable_imaglist+set}" = set; then
  6348.   enableval="$enable_imaglist"
  6349.   
  6350.                           if test "$enableval" = yes; then
  6351.                             ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
  6352.                           else
  6353.                             ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
  6354.                           fi
  6355.                         
  6356. else
  6357.   
  6358.                           LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
  6359.                           if test "x$LINE" != x ; then
  6360.                             eval "DEFAULT_$LINE"
  6361.                           else
  6362.                             no_cache=1
  6363.                           fi
  6364.  
  6365.                           ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
  6366.                         
  6367. fi
  6368.  
  6369.  
  6370.           eval "$ac_cv_use_imaglist"
  6371.           if test "$no_cache" != 1; then
  6372.             echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
  6373.           fi
  6374.  
  6375.           if test "$wxUSE_IMAGLIST" = yes; then
  6376.             echo "$ac_t""yes" 1>&6
  6377.           else
  6378.             echo "$ac_t""no" 1>&6
  6379.           fi
  6380.         
  6381.  
  6382.           echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
  6383. echo "configure:6384: checking for --enable-listbox" >&5
  6384.           no_cache=0
  6385.           # Check whether --enable-listbox or --disable-listbox was given.
  6386. if test "${enable_listbox+set}" = set; then
  6387.   enableval="$enable_listbox"
  6388.   
  6389.                           if test "$enableval" = yes; then
  6390.                             ac_cv_use_listbox='wxUSE_LISTBOX=yes'
  6391.                           else
  6392.                             ac_cv_use_listbox='wxUSE_LISTBOX=no'
  6393.                           fi
  6394.                         
  6395. else
  6396.   
  6397.                           LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
  6398.                           if test "x$LINE" != x ; then
  6399.                             eval "DEFAULT_$LINE"
  6400.                           else
  6401.                             no_cache=1
  6402.                           fi
  6403.  
  6404.                           ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
  6405.                         
  6406. fi
  6407.  
  6408.  
  6409.           eval "$ac_cv_use_listbox"
  6410.           if test "$no_cache" != 1; then
  6411.             echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
  6412.           fi
  6413.  
  6414.           if test "$wxUSE_LISTBOX" = yes; then
  6415.             echo "$ac_t""yes" 1>&6
  6416.           else
  6417.             echo "$ac_t""no" 1>&6
  6418.           fi
  6419.         
  6420.  
  6421.           echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
  6422. echo "configure:6423: checking for --enable-listctrl" >&5
  6423.           no_cache=0
  6424.           # Check whether --enable-listctrl or --disable-listctrl was given.
  6425. if test "${enable_listctrl+set}" = set; then
  6426.   enableval="$enable_listctrl"
  6427.   
  6428.                           if test "$enableval" = yes; then
  6429.                             ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
  6430.                           else
  6431.                             ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
  6432.                           fi
  6433.                         
  6434. else
  6435.   
  6436.                           LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
  6437.                           if test "x$LINE" != x ; then
  6438.                             eval "DEFAULT_$LINE"
  6439.                           else
  6440.                             no_cache=1
  6441.                           fi
  6442.  
  6443.                           ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
  6444.                         
  6445. fi
  6446.  
  6447.  
  6448.           eval "$ac_cv_use_listctrl"
  6449.           if test "$no_cache" != 1; then
  6450.             echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
  6451.           fi
  6452.  
  6453.           if test "$wxUSE_LISTCTRL" = yes; then
  6454.             echo "$ac_t""yes" 1>&6
  6455.           else
  6456.             echo "$ac_t""no" 1>&6
  6457.           fi
  6458.         
  6459.  
  6460.           echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
  6461. echo "configure:6462: checking for --enable-notebook" >&5
  6462.           no_cache=0
  6463.           # Check whether --enable-notebook or --disable-notebook was given.
  6464. if test "${enable_notebook+set}" = set; then
  6465.   enableval="$enable_notebook"
  6466.   
  6467.                           if test "$enableval" = yes; then
  6468.                             ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
  6469.                           else
  6470.                             ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
  6471.                           fi
  6472.                         
  6473. else
  6474.   
  6475.                           LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
  6476.                           if test "x$LINE" != x ; then
  6477.                             eval "DEFAULT_$LINE"
  6478.                           else
  6479.                             no_cache=1
  6480.                           fi
  6481.  
  6482.                           ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
  6483.                         
  6484. fi
  6485.  
  6486.  
  6487.           eval "$ac_cv_use_notebook"
  6488.           if test "$no_cache" != 1; then
  6489.             echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
  6490.           fi
  6491.  
  6492.           if test "$wxUSE_NOTEBOOK" = yes; then
  6493.             echo "$ac_t""yes" 1>&6
  6494.           else
  6495.             echo "$ac_t""no" 1>&6
  6496.           fi
  6497.         
  6498.  
  6499.           echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
  6500. echo "configure:6501: checking for --enable-propsheet" >&5
  6501.           no_cache=0
  6502.           # Check whether --enable-propsheet or --disable-propsheet was given.
  6503. if test "${enable_propsheet+set}" = set; then
  6504.   enableval="$enable_propsheet"
  6505.   
  6506.                           if test "$enableval" = yes; then
  6507.                             ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
  6508.                           else
  6509.                             ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
  6510.                           fi
  6511.                         
  6512. else
  6513.   
  6514.                           LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
  6515.                           if test "x$LINE" != x ; then
  6516.                             eval "DEFAULT_$LINE"
  6517.                           else
  6518.                             no_cache=1
  6519.                           fi
  6520.  
  6521.                           ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
  6522.                         
  6523. fi
  6524.  
  6525.  
  6526.           eval "$ac_cv_use_propsheet"
  6527.           if test "$no_cache" != 1; then
  6528.             echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
  6529.           fi
  6530.  
  6531.           if test "$wxUSE_PROPSHEET" = yes; then
  6532.             echo "$ac_t""yes" 1>&6
  6533.           else
  6534.             echo "$ac_t""no" 1>&6
  6535.           fi
  6536.         
  6537.  
  6538.           echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
  6539. echo "configure:6540: checking for --enable-radiobox" >&5
  6540.           no_cache=0
  6541.           # Check whether --enable-radiobox or --disable-radiobox was given.
  6542. if test "${enable_radiobox+set}" = set; then
  6543.   enableval="$enable_radiobox"
  6544.   
  6545.                           if test "$enableval" = yes; then
  6546.                             ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
  6547.                           else
  6548.                             ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
  6549.                           fi
  6550.                         
  6551. else
  6552.   
  6553.                           LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
  6554.                           if test "x$LINE" != x ; then
  6555.                             eval "DEFAULT_$LINE"
  6556.                           else
  6557.                             no_cache=1
  6558.                           fi
  6559.  
  6560.                           ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
  6561.                         
  6562. fi
  6563.  
  6564.  
  6565.           eval "$ac_cv_use_radiobox"
  6566.           if test "$no_cache" != 1; then
  6567.             echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
  6568.           fi
  6569.  
  6570.           if test "$wxUSE_RADIOBOX" = yes; then
  6571.             echo "$ac_t""yes" 1>&6
  6572.           else
  6573.             echo "$ac_t""no" 1>&6
  6574.           fi
  6575.         
  6576.  
  6577.           echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
  6578. echo "configure:6579: checking for --enable-radiobtn" >&5
  6579.           no_cache=0
  6580.           # Check whether --enable-radiobtn or --disable-radiobtn was given.
  6581. if test "${enable_radiobtn+set}" = set; then
  6582.   enableval="$enable_radiobtn"
  6583.   
  6584.                           if test "$enableval" = yes; then
  6585.                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
  6586.                           else
  6587.                             ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
  6588.                           fi
  6589.                         
  6590. else
  6591.   
  6592.                           LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
  6593.                           if test "x$LINE" != x ; then
  6594.                             eval "DEFAULT_$LINE"
  6595.                           else
  6596.                             no_cache=1
  6597.                           fi
  6598.  
  6599.                           ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
  6600.                         
  6601. fi
  6602.  
  6603.  
  6604.           eval "$ac_cv_use_radiobtn"
  6605.           if test "$no_cache" != 1; then
  6606.             echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
  6607.           fi
  6608.  
  6609.           if test "$wxUSE_RADIOBTN" = yes; then
  6610.             echo "$ac_t""yes" 1>&6
  6611.           else
  6612.             echo "$ac_t""no" 1>&6
  6613.           fi
  6614.         
  6615.  
  6616.           echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
  6617. echo "configure:6618: checking for --enable-sash" >&5
  6618.           no_cache=0
  6619.           # Check whether --enable-sash or --disable-sash was given.
  6620. if test "${enable_sash+set}" = set; then
  6621.   enableval="$enable_sash"
  6622.   
  6623.                           if test "$enableval" = yes; then
  6624.                             ac_cv_use_sash='wxUSE_SASH=yes'
  6625.                           else
  6626.                             ac_cv_use_sash='wxUSE_SASH=no'
  6627.                           fi
  6628.                         
  6629. else
  6630.   
  6631.                           LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
  6632.                           if test "x$LINE" != x ; then
  6633.                             eval "DEFAULT_$LINE"
  6634.                           else
  6635.                             no_cache=1
  6636.                           fi
  6637.  
  6638.                           ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
  6639.                         
  6640. fi
  6641.  
  6642.  
  6643.           eval "$ac_cv_use_sash"
  6644.           if test "$no_cache" != 1; then
  6645.             echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
  6646.           fi
  6647.  
  6648.           if test "$wxUSE_SASH" = yes; then
  6649.             echo "$ac_t""yes" 1>&6
  6650.           else
  6651.             echo "$ac_t""no" 1>&6
  6652.           fi
  6653.         
  6654.  
  6655.           echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
  6656. echo "configure:6657: checking for --enable-scrollbar" >&5
  6657.           no_cache=0
  6658.           # Check whether --enable-scrollbar or --disable-scrollbar was given.
  6659. if test "${enable_scrollbar+set}" = set; then
  6660.   enableval="$enable_scrollbar"
  6661.   
  6662.                           if test "$enableval" = yes; then
  6663.                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
  6664.                           else
  6665.                             ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
  6666.                           fi
  6667.                         
  6668. else
  6669.   
  6670.                           LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
  6671.                           if test "x$LINE" != x ; then
  6672.                             eval "DEFAULT_$LINE"
  6673.                           else
  6674.                             no_cache=1
  6675.                           fi
  6676.  
  6677.                           ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
  6678.                         
  6679. fi
  6680.  
  6681.  
  6682.           eval "$ac_cv_use_scrollbar"
  6683.           if test "$no_cache" != 1; then
  6684.             echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
  6685.           fi
  6686.  
  6687.           if test "$wxUSE_SCROLLBAR" = yes; then
  6688.             echo "$ac_t""yes" 1>&6
  6689.           else
  6690.             echo "$ac_t""no" 1>&6
  6691.           fi
  6692.         
  6693.  
  6694.           echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
  6695. echo "configure:6696: checking for --enable-slider" >&5
  6696.           no_cache=0
  6697.           # Check whether --enable-slider or --disable-slider was given.
  6698. if test "${enable_slider+set}" = set; then
  6699.   enableval="$enable_slider"
  6700.   
  6701.                           if test "$enableval" = yes; then
  6702.                             ac_cv_use_slider='wxUSE_SLIDER=yes'
  6703.                           else
  6704.                             ac_cv_use_slider='wxUSE_SLIDER=no'
  6705.                           fi
  6706.                         
  6707. else
  6708.   
  6709.                           LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
  6710.                           if test "x$LINE" != x ; then
  6711.                             eval "DEFAULT_$LINE"
  6712.                           else
  6713.                             no_cache=1
  6714.                           fi
  6715.  
  6716.                           ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
  6717.                         
  6718. fi
  6719.  
  6720.  
  6721.           eval "$ac_cv_use_slider"
  6722.           if test "$no_cache" != 1; then
  6723.             echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
  6724.           fi
  6725.  
  6726.           if test "$wxUSE_SLIDER" = yes; then
  6727.             echo "$ac_t""yes" 1>&6
  6728.           else
  6729.             echo "$ac_t""no" 1>&6
  6730.           fi
  6731.         
  6732.  
  6733.           echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
  6734. echo "configure:6735: checking for --enable-spinbtn" >&5
  6735.           no_cache=0
  6736.           # Check whether --enable-spinbtn or --disable-spinbtn was given.
  6737. if test "${enable_spinbtn+set}" = set; then
  6738.   enableval="$enable_spinbtn"
  6739.   
  6740.                           if test "$enableval" = yes; then
  6741.                             ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
  6742.                           else
  6743.                             ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
  6744.                           fi
  6745.                         
  6746. else
  6747.   
  6748.                           LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
  6749.                           if test "x$LINE" != x ; then
  6750.                             eval "DEFAULT_$LINE"
  6751.                           else
  6752.                             no_cache=1
  6753.                           fi
  6754.  
  6755.                           ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
  6756.                         
  6757. fi
  6758.  
  6759.  
  6760.           eval "$ac_cv_use_spinbtn"
  6761.           if test "$no_cache" != 1; then
  6762.             echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
  6763.           fi
  6764.  
  6765.           if test "$wxUSE_SPINBTN" = yes; then
  6766.             echo "$ac_t""yes" 1>&6
  6767.           else
  6768.             echo "$ac_t""no" 1>&6
  6769.           fi
  6770.         
  6771.  
  6772.           echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
  6773. echo "configure:6774: checking for --enable-spinctrl" >&5
  6774.           no_cache=0
  6775.           # Check whether --enable-spinctrl or --disable-spinctrl was given.
  6776. if test "${enable_spinctrl+set}" = set; then
  6777.   enableval="$enable_spinctrl"
  6778.   
  6779.                           if test "$enableval" = yes; then
  6780.                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
  6781.                           else
  6782.                             ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
  6783.                           fi
  6784.                         
  6785. else
  6786.   
  6787.                           LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
  6788.                           if test "x$LINE" != x ; then
  6789.                             eval "DEFAULT_$LINE"
  6790.                           else
  6791.                             no_cache=1
  6792.                           fi
  6793.  
  6794.                           ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
  6795.                         
  6796. fi
  6797.  
  6798.  
  6799.           eval "$ac_cv_use_spinctrl"
  6800.           if test "$no_cache" != 1; then
  6801.             echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
  6802.           fi
  6803.  
  6804.           if test "$wxUSE_SPINCTRL" = yes; then
  6805.             echo "$ac_t""yes" 1>&6
  6806.           else
  6807.             echo "$ac_t""no" 1>&6
  6808.           fi
  6809.         
  6810.  
  6811.           echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
  6812. echo "configure:6813: checking for --enable-splitter" >&5
  6813.           no_cache=0
  6814.           # Check whether --enable-splitter or --disable-splitter was given.
  6815. if test "${enable_splitter+set}" = set; then
  6816.   enableval="$enable_splitter"
  6817.   
  6818.                           if test "$enableval" = yes; then
  6819.                             ac_cv_use_splitter='wxUSE_SPLITTER=yes'
  6820.                           else
  6821.                             ac_cv_use_splitter='wxUSE_SPLITTER=no'
  6822.                           fi
  6823.                         
  6824. else
  6825.   
  6826.                           LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
  6827.                           if test "x$LINE" != x ; then
  6828.                             eval "DEFAULT_$LINE"
  6829.                           else
  6830.                             no_cache=1
  6831.                           fi
  6832.  
  6833.                           ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
  6834.                         
  6835. fi
  6836.  
  6837.  
  6838.           eval "$ac_cv_use_splitter"
  6839.           if test "$no_cache" != 1; then
  6840.             echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
  6841.           fi
  6842.  
  6843.           if test "$wxUSE_SPLITTER" = yes; then
  6844.             echo "$ac_t""yes" 1>&6
  6845.           else
  6846.             echo "$ac_t""no" 1>&6
  6847.           fi
  6848.         
  6849.  
  6850.           echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
  6851. echo "configure:6852: checking for --enable-statbmp" >&5
  6852.           no_cache=0
  6853.           # Check whether --enable-statbmp or --disable-statbmp was given.
  6854. if test "${enable_statbmp+set}" = set; then
  6855.   enableval="$enable_statbmp"
  6856.   
  6857.                           if test "$enableval" = yes; then
  6858.                             ac_cv_use_statbmp='wxUSE_STATBMP=yes'
  6859.                           else
  6860.                             ac_cv_use_statbmp='wxUSE_STATBMP=no'
  6861.                           fi
  6862.                         
  6863. else
  6864.   
  6865.                           LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
  6866.                           if test "x$LINE" != x ; then
  6867.                             eval "DEFAULT_$LINE"
  6868.                           else
  6869.                             no_cache=1
  6870.                           fi
  6871.  
  6872.                           ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
  6873.                         
  6874. fi
  6875.  
  6876.  
  6877.           eval "$ac_cv_use_statbmp"
  6878.           if test "$no_cache" != 1; then
  6879.             echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
  6880.           fi
  6881.  
  6882.           if test "$wxUSE_STATBMP" = yes; then
  6883.             echo "$ac_t""yes" 1>&6
  6884.           else
  6885.             echo "$ac_t""no" 1>&6
  6886.           fi
  6887.         
  6888.  
  6889.           echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
  6890. echo "configure:6891: checking for --enable-statbox" >&5
  6891.           no_cache=0
  6892.           # Check whether --enable-statbox or --disable-statbox was given.
  6893. if test "${enable_statbox+set}" = set; then
  6894.   enableval="$enable_statbox"
  6895.   
  6896.                           if test "$enableval" = yes; then
  6897.                             ac_cv_use_statbox='wxUSE_STATBOX=yes'
  6898.                           else
  6899.                             ac_cv_use_statbox='wxUSE_STATBOX=no'
  6900.                           fi
  6901.                         
  6902. else
  6903.   
  6904.                           LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
  6905.                           if test "x$LINE" != x ; then
  6906.                             eval "DEFAULT_$LINE"
  6907.                           else
  6908.                             no_cache=1
  6909.                           fi
  6910.  
  6911.                           ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
  6912.                         
  6913. fi
  6914.  
  6915.  
  6916.           eval "$ac_cv_use_statbox"
  6917.           if test "$no_cache" != 1; then
  6918.             echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
  6919.           fi
  6920.  
  6921.           if test "$wxUSE_STATBOX" = yes; then
  6922.             echo "$ac_t""yes" 1>&6
  6923.           else
  6924.             echo "$ac_t""no" 1>&6
  6925.           fi
  6926.         
  6927.  
  6928.           echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
  6929. echo "configure:6930: checking for --enable-statline" >&5
  6930.           no_cache=0
  6931.           # Check whether --enable-statline or --disable-statline was given.
  6932. if test "${enable_statline+set}" = set; then
  6933.   enableval="$enable_statline"
  6934.   
  6935.                           if test "$enableval" = yes; then
  6936.                             ac_cv_use_statline='wxUSE_STATLINE=yes'
  6937.                           else
  6938.                             ac_cv_use_statline='wxUSE_STATLINE=no'
  6939.                           fi
  6940.                         
  6941. else
  6942.   
  6943.                           LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
  6944.                           if test "x$LINE" != x ; then
  6945.                             eval "DEFAULT_$LINE"
  6946.                           else
  6947.                             no_cache=1
  6948.                           fi
  6949.  
  6950.                           ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
  6951.                         
  6952. fi
  6953.  
  6954.  
  6955.           eval "$ac_cv_use_statline"
  6956.           if test "$no_cache" != 1; then
  6957.             echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
  6958.           fi
  6959.  
  6960.           if test "$wxUSE_STATLINE" = yes; then
  6961.             echo "$ac_t""yes" 1>&6
  6962.           else
  6963.             echo "$ac_t""no" 1>&6
  6964.           fi
  6965.         
  6966.  
  6967.           echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
  6968. echo "configure:6969: checking for --enable-stattext" >&5
  6969.           no_cache=0
  6970.           # Check whether --enable-stattext or --disable-stattext was given.
  6971. if test "${enable_stattext+set}" = set; then
  6972.   enableval="$enable_stattext"
  6973.   
  6974.                           if test "$enableval" = yes; then
  6975.                             ac_cv_use_stattext='wxUSE_STATTEXT=yes'
  6976.                           else
  6977.                             ac_cv_use_stattext='wxUSE_STATTEXT=no'
  6978.                           fi
  6979.                         
  6980. else
  6981.   
  6982.                           LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
  6983.                           if test "x$LINE" != x ; then
  6984.                             eval "DEFAULT_$LINE"
  6985.                           else
  6986.                             no_cache=1
  6987.                           fi
  6988.  
  6989.                           ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
  6990.                         
  6991. fi
  6992.  
  6993.  
  6994.           eval "$ac_cv_use_stattext"
  6995.           if test "$no_cache" != 1; then
  6996.             echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
  6997.           fi
  6998.  
  6999.           if test "$wxUSE_STATTEXT" = yes; then
  7000.             echo "$ac_t""yes" 1>&6
  7001.           else
  7002.             echo "$ac_t""no" 1>&6
  7003.           fi
  7004.         
  7005.  
  7006.           echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
  7007. echo "configure:7008: checking for --enable-statusbar" >&5
  7008.           no_cache=0
  7009.           # Check whether --enable-statusbar or --disable-statusbar was given.
  7010. if test "${enable_statusbar+set}" = set; then
  7011.   enableval="$enable_statusbar"
  7012.   
  7013.                           if test "$enableval" = yes; then
  7014.                             ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
  7015.                           else
  7016.                             ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
  7017.                           fi
  7018.                         
  7019. else
  7020.   
  7021.                           LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
  7022.                           if test "x$LINE" != x ; then
  7023.                             eval "DEFAULT_$LINE"
  7024.                           else
  7025.                             no_cache=1
  7026.                           fi
  7027.  
  7028.                           ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
  7029.                         
  7030. fi
  7031.  
  7032.  
  7033.           eval "$ac_cv_use_statusbar"
  7034.           if test "$no_cache" != 1; then
  7035.             echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
  7036.           fi
  7037.  
  7038.           if test "$wxUSE_STATUSBAR" = yes; then
  7039.             echo "$ac_t""yes" 1>&6
  7040.           else
  7041.             echo "$ac_t""no" 1>&6
  7042.           fi
  7043.         
  7044.  
  7045.           echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
  7046. echo "configure:7047: checking for --enable-tabdialog" >&5
  7047.           no_cache=0
  7048.           # Check whether --enable-tabdialog or --disable-tabdialog was given.
  7049. if test "${enable_tabdialog+set}" = set; then
  7050.   enableval="$enable_tabdialog"
  7051.   
  7052.                           if test "$enableval" = yes; then
  7053.                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
  7054.                           else
  7055.                             ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
  7056.                           fi
  7057.                         
  7058. else
  7059.   
  7060.                           LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
  7061.                           if test "x$LINE" != x ; then
  7062.                             eval "DEFAULT_$LINE"
  7063.                           else
  7064.                             no_cache=1
  7065.                           fi
  7066.  
  7067.                           ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
  7068.                         
  7069. fi
  7070.  
  7071.  
  7072.           eval "$ac_cv_use_tabdialog"
  7073.           if test "$no_cache" != 1; then
  7074.             echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
  7075.           fi
  7076.  
  7077.           if test "$wxUSE_TABDIALOG" = yes; then
  7078.             echo "$ac_t""yes" 1>&6
  7079.           else
  7080.             echo "$ac_t""no" 1>&6
  7081.           fi
  7082.         
  7083.  
  7084.           echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
  7085. echo "configure:7086: checking for --enable-textctrl" >&5
  7086.           no_cache=0
  7087.           # Check whether --enable-textctrl or --disable-textctrl was given.
  7088. if test "${enable_textctrl+set}" = set; then
  7089.   enableval="$enable_textctrl"
  7090.   
  7091.                           if test "$enableval" = yes; then
  7092.                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
  7093.                           else
  7094.                             ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
  7095.                           fi
  7096.                         
  7097. else
  7098.   
  7099.                           LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
  7100.                           if test "x$LINE" != x ; then
  7101.                             eval "DEFAULT_$LINE"
  7102.                           else
  7103.                             no_cache=1
  7104.                           fi
  7105.  
  7106.                           ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
  7107.                         
  7108. fi
  7109.  
  7110.  
  7111.           eval "$ac_cv_use_textctrl"
  7112.           if test "$no_cache" != 1; then
  7113.             echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
  7114.           fi
  7115.  
  7116.           if test "$wxUSE_TEXTCTRL" = yes; then
  7117.             echo "$ac_t""yes" 1>&6
  7118.           else
  7119.             echo "$ac_t""no" 1>&6
  7120.           fi
  7121.         
  7122.  
  7123.           echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
  7124. echo "configure:7125: checking for --enable-togglebtn" >&5
  7125.           no_cache=0
  7126.           # Check whether --enable-togglebtn or --disable-togglebtn was given.
  7127. if test "${enable_togglebtn+set}" = set; then
  7128.   enableval="$enable_togglebtn"
  7129.   
  7130.                           if test "$enableval" = yes; then
  7131.                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
  7132.                           else
  7133.                             ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
  7134.                           fi
  7135.                         
  7136. else
  7137.   
  7138.                           LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
  7139.                           if test "x$LINE" != x ; then
  7140.                             eval "DEFAULT_$LINE"
  7141.                           else
  7142.                             no_cache=1
  7143.                           fi
  7144.  
  7145.                           ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
  7146.                         
  7147. fi
  7148.  
  7149.  
  7150.           eval "$ac_cv_use_togglebtn"
  7151.           if test "$no_cache" != 1; then
  7152.             echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
  7153.           fi
  7154.  
  7155.           if test "$wxUSE_TOGGLEBTN" = yes; then
  7156.             echo "$ac_t""yes" 1>&6
  7157.           else
  7158.             echo "$ac_t""no" 1>&6
  7159.           fi
  7160.         
  7161.  
  7162.           echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
  7163. echo "configure:7164: checking for --enable-toolbar" >&5
  7164.           no_cache=0
  7165.           # Check whether --enable-toolbar or --disable-toolbar was given.
  7166. if test "${enable_toolbar+set}" = set; then
  7167.   enableval="$enable_toolbar"
  7168.   
  7169.                           if test "$enableval" = yes; then
  7170.                             ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
  7171.                           else
  7172.                             ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
  7173.                           fi
  7174.                         
  7175. else
  7176.   
  7177.                           LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
  7178.                           if test "x$LINE" != x ; then
  7179.                             eval "DEFAULT_$LINE"
  7180.                           else
  7181.                             no_cache=1
  7182.                           fi
  7183.  
  7184.                           ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
  7185.                         
  7186. fi
  7187.  
  7188.  
  7189.           eval "$ac_cv_use_toolbar"
  7190.           if test "$no_cache" != 1; then
  7191.             echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
  7192.           fi
  7193.  
  7194.           if test "$wxUSE_TOOLBAR" = yes; then
  7195.             echo "$ac_t""yes" 1>&6
  7196.           else
  7197.             echo "$ac_t""no" 1>&6
  7198.           fi
  7199.         
  7200.  
  7201.           echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
  7202. echo "configure:7203: checking for --enable-tbarnative" >&5
  7203.           no_cache=0
  7204.           # Check whether --enable-tbarnative or --disable-tbarnative was given.
  7205. if test "${enable_tbarnative+set}" = set; then
  7206.   enableval="$enable_tbarnative"
  7207.   
  7208.                           if test "$enableval" = yes; then
  7209.                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
  7210.                           else
  7211.                             ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
  7212.                           fi
  7213.                         
  7214. else
  7215.   
  7216.                           LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
  7217.                           if test "x$LINE" != x ; then
  7218.                             eval "DEFAULT_$LINE"
  7219.                           else
  7220.                             no_cache=1
  7221.                           fi
  7222.  
  7223.                           ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
  7224.                         
  7225. fi
  7226.  
  7227.  
  7228.           eval "$ac_cv_use_tbarnative"
  7229.           if test "$no_cache" != 1; then
  7230.             echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
  7231.           fi
  7232.  
  7233.           if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
  7234.             echo "$ac_t""yes" 1>&6
  7235.           else
  7236.             echo "$ac_t""no" 1>&6
  7237.           fi
  7238.         
  7239.  
  7240.           echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
  7241. echo "configure:7242: checking for --enable-tbarsmpl" >&5
  7242.           no_cache=0
  7243.           # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
  7244. if test "${enable_tbarsmpl+set}" = set; then
  7245.   enableval="$enable_tbarsmpl"
  7246.   
  7247.                           if test "$enableval" = yes; then
  7248.                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
  7249.                           else
  7250.                             ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
  7251.                           fi
  7252.                         
  7253. else
  7254.   
  7255.                           LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
  7256.                           if test "x$LINE" != x ; then
  7257.                             eval "DEFAULT_$LINE"
  7258.                           else
  7259.                             no_cache=1
  7260.                           fi
  7261.  
  7262.                           ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
  7263.                         
  7264. fi
  7265.  
  7266.  
  7267.           eval "$ac_cv_use_tbarsmpl"
  7268.           if test "$no_cache" != 1; then
  7269.             echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
  7270.           fi
  7271.  
  7272.           if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
  7273.             echo "$ac_t""yes" 1>&6
  7274.           else
  7275.             echo "$ac_t""no" 1>&6
  7276.           fi
  7277.         
  7278.  
  7279.           echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
  7280. echo "configure:7281: checking for --enable-treectrl" >&5
  7281.           no_cache=0
  7282.           # Check whether --enable-treectrl or --disable-treectrl was given.
  7283. if test "${enable_treectrl+set}" = set; then
  7284.   enableval="$enable_treectrl"
  7285.   
  7286.                           if test "$enableval" = yes; then
  7287.                             ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
  7288.                           else
  7289.                             ac_cv_use_treectrl='wxUSE_TREECTRL=no'
  7290.                           fi
  7291.                         
  7292. else
  7293.   
  7294.                           LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
  7295.                           if test "x$LINE" != x ; then
  7296.                             eval "DEFAULT_$LINE"
  7297.                           else
  7298.                             no_cache=1
  7299.                           fi
  7300.  
  7301.                           ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
  7302.                         
  7303. fi
  7304.  
  7305.  
  7306.           eval "$ac_cv_use_treectrl"
  7307.           if test "$no_cache" != 1; then
  7308.             echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
  7309.           fi
  7310.  
  7311.           if test "$wxUSE_TREECTRL" = yes; then
  7312.             echo "$ac_t""yes" 1>&6
  7313.           else
  7314.             echo "$ac_t""no" 1>&6
  7315.           fi
  7316.         
  7317.  
  7318.           echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
  7319. echo "configure:7320: checking for --enable-tipwindow" >&5
  7320.           no_cache=0
  7321.           # Check whether --enable-tipwindow or --disable-tipwindow was given.
  7322. if test "${enable_tipwindow+set}" = set; then
  7323.   enableval="$enable_tipwindow"
  7324.   
  7325.                           if test "$enableval" = yes; then
  7326.                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
  7327.                           else
  7328.                             ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
  7329.                           fi
  7330.                         
  7331. else
  7332.   
  7333.                           LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
  7334.                           if test "x$LINE" != x ; then
  7335.                             eval "DEFAULT_$LINE"
  7336.                           else
  7337.                             no_cache=1
  7338.                           fi
  7339.  
  7340.                           ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
  7341.                         
  7342. fi
  7343.  
  7344.  
  7345.           eval "$ac_cv_use_tipwindow"
  7346.           if test "$no_cache" != 1; then
  7347.             echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
  7348.           fi
  7349.  
  7350.           if test "$wxUSE_TIPWINDOW" = yes; then
  7351.             echo "$ac_t""yes" 1>&6
  7352.           else
  7353.             echo "$ac_t""no" 1>&6
  7354.           fi
  7355.         
  7356.  
  7357.           echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
  7358. echo "configure:7359: checking for --enable-popupwin" >&5
  7359.           no_cache=0
  7360.           # Check whether --enable-popupwin or --disable-popupwin was given.
  7361. if test "${enable_popupwin+set}" = set; then
  7362.   enableval="$enable_popupwin"
  7363.   
  7364.                           if test "$enableval" = yes; then
  7365.                             ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
  7366.                           else
  7367.                             ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
  7368.                           fi
  7369.                         
  7370. else
  7371.   
  7372.                           LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
  7373.                           if test "x$LINE" != x ; then
  7374.                             eval "DEFAULT_$LINE"
  7375.                           else
  7376.                             no_cache=1
  7377.                           fi
  7378.  
  7379.                           ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
  7380.                         
  7381. fi
  7382.  
  7383.  
  7384.           eval "$ac_cv_use_popupwin"
  7385.           if test "$no_cache" != 1; then
  7386.             echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
  7387.           fi
  7388.  
  7389.           if test "$wxUSE_POPUPWIN" = yes; then
  7390.             echo "$ac_t""yes" 1>&6
  7391.           else
  7392.             echo "$ac_t""no" 1>&6
  7393.           fi
  7394.         
  7395.  
  7396.  
  7397.  
  7398.           echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
  7399. echo "configure:7400: checking for --enable-commondlg" >&5
  7400.           no_cache=0
  7401.           # Check whether --enable-commondlg or --disable-commondlg was given.
  7402. if test "${enable_commondlg+set}" = set; then
  7403.   enableval="$enable_commondlg"
  7404.   
  7405.                           if test "$enableval" = yes; then
  7406.                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
  7407.                           else
  7408.                             ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
  7409.                           fi
  7410.                         
  7411. else
  7412.   
  7413.                           LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
  7414.                           if test "x$LINE" != x ; then
  7415.                             eval "DEFAULT_$LINE"
  7416.                           else
  7417.                             no_cache=1
  7418.                           fi
  7419.  
  7420.                           ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
  7421.                         
  7422. fi
  7423.  
  7424.  
  7425.           eval "$ac_cv_use_commondlg"
  7426.           if test "$no_cache" != 1; then
  7427.             echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
  7428.           fi
  7429.  
  7430.           if test "$wxUSE_COMMONDLGS" = yes; then
  7431.             echo "$ac_t""yes" 1>&6
  7432.           else
  7433.             echo "$ac_t""no" 1>&6
  7434.           fi
  7435.         
  7436.  
  7437.           echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
  7438. echo "configure:7439: checking for --enable-choicedlg" >&5
  7439.           no_cache=0
  7440.           # Check whether --enable-choicedlg or --disable-choicedlg was given.
  7441. if test "${enable_choicedlg+set}" = set; then
  7442.   enableval="$enable_choicedlg"
  7443.   
  7444.                           if test "$enableval" = yes; then
  7445.                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
  7446.                           else
  7447.                             ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
  7448.                           fi
  7449.                         
  7450. else
  7451.   
  7452.                           LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
  7453.                           if test "x$LINE" != x ; then
  7454.                             eval "DEFAULT_$LINE"
  7455.                           else
  7456.                             no_cache=1
  7457.                           fi
  7458.  
  7459.                           ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
  7460.                         
  7461. fi
  7462.  
  7463.  
  7464.           eval "$ac_cv_use_choicedlg"
  7465.           if test "$no_cache" != 1; then
  7466.             echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
  7467.           fi
  7468.  
  7469.           if test "$wxUSE_CHOICEDLG" = yes; then
  7470.             echo "$ac_t""yes" 1>&6
  7471.           else
  7472.             echo "$ac_t""no" 1>&6
  7473.           fi
  7474.         
  7475.  
  7476.           echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
  7477. echo "configure:7478: checking for --enable-coldlg" >&5
  7478.           no_cache=0
  7479.           # Check whether --enable-coldlg or --disable-coldlg was given.
  7480. if test "${enable_coldlg+set}" = set; then
  7481.   enableval="$enable_coldlg"
  7482.   
  7483.                           if test "$enableval" = yes; then
  7484.                             ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
  7485.                           else
  7486.                             ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
  7487.                           fi
  7488.                         
  7489. else
  7490.   
  7491.                           LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
  7492.                           if test "x$LINE" != x ; then
  7493.                             eval "DEFAULT_$LINE"
  7494.                           else
  7495.                             no_cache=1
  7496.                           fi
  7497.  
  7498.                           ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
  7499.                         
  7500. fi
  7501.  
  7502.  
  7503.           eval "$ac_cv_use_coldlg"
  7504.           if test "$no_cache" != 1; then
  7505.             echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
  7506.           fi
  7507.  
  7508.           if test "$wxUSE_COLOURDLG" = yes; then
  7509.             echo "$ac_t""yes" 1>&6
  7510.           else
  7511.             echo "$ac_t""no" 1>&6
  7512.           fi
  7513.         
  7514.  
  7515.           echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
  7516. echo "configure:7517: checking for --enable-filedlg" >&5
  7517.           no_cache=0
  7518.           # Check whether --enable-filedlg or --disable-filedlg was given.
  7519. if test "${enable_filedlg+set}" = set; then
  7520.   enableval="$enable_filedlg"
  7521.   
  7522.                           if test "$enableval" = yes; then
  7523.                             ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
  7524.                           else
  7525.                             ac_cv_use_filedlg='wxUSE_FILEDLG=no'
  7526.                           fi
  7527.                         
  7528. else
  7529.   
  7530.                           LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
  7531.                           if test "x$LINE" != x ; then
  7532.                             eval "DEFAULT_$LINE"
  7533.                           else
  7534.                             no_cache=1
  7535.                           fi
  7536.  
  7537.                           ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
  7538.                         
  7539. fi
  7540.  
  7541.  
  7542.           eval "$ac_cv_use_filedlg"
  7543.           if test "$no_cache" != 1; then
  7544.             echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
  7545.           fi
  7546.  
  7547.           if test "$wxUSE_FILEDLG" = yes; then
  7548.             echo "$ac_t""yes" 1>&6
  7549.           else
  7550.             echo "$ac_t""no" 1>&6
  7551.           fi
  7552.         
  7553.  
  7554.           echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
  7555. echo "configure:7556: checking for --enable-finddlg" >&5
  7556.           no_cache=0
  7557.           # Check whether --enable-finddlg or --disable-finddlg was given.
  7558. if test "${enable_finddlg+set}" = set; then
  7559.   enableval="$enable_finddlg"
  7560.   
  7561.                           if test "$enableval" = yes; then
  7562.                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
  7563.                           else
  7564.                             ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
  7565.                           fi
  7566.                         
  7567. else
  7568.   
  7569.                           LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
  7570.                           if test "x$LINE" != x ; then
  7571.                             eval "DEFAULT_$LINE"
  7572.                           else
  7573.                             no_cache=1
  7574.                           fi
  7575.  
  7576.                           ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
  7577.                         
  7578. fi
  7579.  
  7580.  
  7581.           eval "$ac_cv_use_finddlg"
  7582.           if test "$no_cache" != 1; then
  7583.             echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
  7584.           fi
  7585.  
  7586.           if test "$wxUSE_FINDREPLDLG" = yes; then
  7587.             echo "$ac_t""yes" 1>&6
  7588.           else
  7589.             echo "$ac_t""no" 1>&6
  7590.           fi
  7591.         
  7592.  
  7593.           echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
  7594. echo "configure:7595: checking for --enable-fontdlg" >&5
  7595.           no_cache=0
  7596.           # Check whether --enable-fontdlg or --disable-fontdlg was given.
  7597. if test "${enable_fontdlg+set}" = set; then
  7598.   enableval="$enable_fontdlg"
  7599.   
  7600.                           if test "$enableval" = yes; then
  7601.                             ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
  7602.                           else
  7603.                             ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
  7604.                           fi
  7605.                         
  7606. else
  7607.   
  7608.                           LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
  7609.                           if test "x$LINE" != x ; then
  7610.                             eval "DEFAULT_$LINE"
  7611.                           else
  7612.                             no_cache=1
  7613.                           fi
  7614.  
  7615.                           ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
  7616.                         
  7617. fi
  7618.  
  7619.  
  7620.           eval "$ac_cv_use_fontdlg"
  7621.           if test "$no_cache" != 1; then
  7622.             echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
  7623.           fi
  7624.  
  7625.           if test "$wxUSE_FONTDLG" = yes; then
  7626.             echo "$ac_t""yes" 1>&6
  7627.           else
  7628.             echo "$ac_t""no" 1>&6
  7629.           fi
  7630.         
  7631.  
  7632.           echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
  7633. echo "configure:7634: checking for --enable-dirdlg" >&5
  7634.           no_cache=0
  7635.           # Check whether --enable-dirdlg or --disable-dirdlg was given.
  7636. if test "${enable_dirdlg+set}" = set; then
  7637.   enableval="$enable_dirdlg"
  7638.   
  7639.                           if test "$enableval" = yes; then
  7640.                             ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
  7641.                           else
  7642.                             ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
  7643.                           fi
  7644.                         
  7645. else
  7646.   
  7647.                           LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
  7648.                           if test "x$LINE" != x ; then
  7649.                             eval "DEFAULT_$LINE"
  7650.                           else
  7651.                             no_cache=1
  7652.                           fi
  7653.  
  7654.                           ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
  7655.                         
  7656. fi
  7657.  
  7658.  
  7659.           eval "$ac_cv_use_dirdlg"
  7660.           if test "$no_cache" != 1; then
  7661.             echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
  7662.           fi
  7663.  
  7664.           if test "$wxUSE_DIRDLG" = yes; then
  7665.             echo "$ac_t""yes" 1>&6
  7666.           else
  7667.             echo "$ac_t""no" 1>&6
  7668.           fi
  7669.         
  7670.  
  7671.           echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
  7672. echo "configure:7673: checking for --enable-msgdlg" >&5
  7673.           no_cache=0
  7674.           # Check whether --enable-msgdlg or --disable-msgdlg was given.
  7675. if test "${enable_msgdlg+set}" = set; then
  7676.   enableval="$enable_msgdlg"
  7677.   
  7678.                           if test "$enableval" = yes; then
  7679.                             ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
  7680.                           else
  7681.                             ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
  7682.                           fi
  7683.                         
  7684. else
  7685.   
  7686.                           LINE=`grep "wxUSE_MSGDLG" ${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_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
  7694.                         
  7695. fi
  7696.  
  7697.  
  7698.           eval "$ac_cv_use_msgdlg"
  7699.           if test "$no_cache" != 1; then
  7700.             echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
  7701.           fi
  7702.  
  7703.           if test "$wxUSE_MSGDLG" = yes; then
  7704.             echo "$ac_t""yes" 1>&6
  7705.           else
  7706.             echo "$ac_t""no" 1>&6
  7707.           fi
  7708.         
  7709.  
  7710.           echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
  7711. echo "configure:7712: checking for --enable-numberdlg" >&5
  7712.           no_cache=0
  7713.           # Check whether --enable-numberdlg or --disable-numberdlg was given.
  7714. if test "${enable_numberdlg+set}" = set; then
  7715.   enableval="$enable_numberdlg"
  7716.   
  7717.                           if test "$enableval" = yes; then
  7718.                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
  7719.                           else
  7720.                             ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
  7721.                           fi
  7722.                         
  7723. else
  7724.   
  7725.                           LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
  7726.                           if test "x$LINE" != x ; then
  7727.                             eval "DEFAULT_$LINE"
  7728.                           else
  7729.                             no_cache=1
  7730.                           fi
  7731.  
  7732.                           ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
  7733.                         
  7734. fi
  7735.  
  7736.  
  7737.           eval "$ac_cv_use_numberdlg"
  7738.           if test "$no_cache" != 1; then
  7739.             echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
  7740.           fi
  7741.  
  7742.           if test "$wxUSE_NUMBERDLG" = yes; then
  7743.             echo "$ac_t""yes" 1>&6
  7744.           else
  7745.             echo "$ac_t""no" 1>&6
  7746.           fi
  7747.         
  7748.  
  7749.           echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
  7750. echo "configure:7751: checking for --enable-splash" >&5
  7751.           no_cache=0
  7752.           # Check whether --enable-splash or --disable-splash was given.
  7753. if test "${enable_splash+set}" = set; then
  7754.   enableval="$enable_splash"
  7755.   
  7756.                           if test "$enableval" = yes; then
  7757.                             ac_cv_use_splash='wxUSE_SPLASH=yes'
  7758.                           else
  7759.                             ac_cv_use_splash='wxUSE_SPLASH=no'
  7760.                           fi
  7761.                         
  7762. else
  7763.   
  7764.                           LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
  7765.                           if test "x$LINE" != x ; then
  7766.                             eval "DEFAULT_$LINE"
  7767.                           else
  7768.                             no_cache=1
  7769.                           fi
  7770.  
  7771.                           ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
  7772.                         
  7773. fi
  7774.  
  7775.  
  7776.           eval "$ac_cv_use_splash"
  7777.           if test "$no_cache" != 1; then
  7778.             echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
  7779.           fi
  7780.  
  7781.           if test "$wxUSE_SPLASH" = yes; then
  7782.             echo "$ac_t""yes" 1>&6
  7783.           else
  7784.             echo "$ac_t""no" 1>&6
  7785.           fi
  7786.         
  7787.  
  7788.           echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
  7789. echo "configure:7790: checking for --enable-textdlg" >&5
  7790.           no_cache=0
  7791.           # Check whether --enable-textdlg or --disable-textdlg was given.
  7792. if test "${enable_textdlg+set}" = set; then
  7793.   enableval="$enable_textdlg"
  7794.   
  7795.                           if test "$enableval" = yes; then
  7796.                             ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
  7797.                           else
  7798.                             ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
  7799.                           fi
  7800.                         
  7801. else
  7802.   
  7803.                           LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
  7804.                           if test "x$LINE" != x ; then
  7805.                             eval "DEFAULT_$LINE"
  7806.                           else
  7807.                             no_cache=1
  7808.                           fi
  7809.  
  7810.                           ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
  7811.                         
  7812. fi
  7813.  
  7814.  
  7815.           eval "$ac_cv_use_textdlg"
  7816.           if test "$no_cache" != 1; then
  7817.             echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
  7818.           fi
  7819.  
  7820.           if test "$wxUSE_TEXTDLG" = yes; then
  7821.             echo "$ac_t""yes" 1>&6
  7822.           else
  7823.             echo "$ac_t""no" 1>&6
  7824.           fi
  7825.         
  7826.  
  7827.           echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
  7828. echo "configure:7829: checking for --enable-tipdlg" >&5
  7829.           no_cache=0
  7830.           # Check whether --enable-tipdlg or --disable-tipdlg was given.
  7831. if test "${enable_tipdlg+set}" = set; then
  7832.   enableval="$enable_tipdlg"
  7833.   
  7834.                           if test "$enableval" = yes; then
  7835.                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
  7836.                           else
  7837.                             ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
  7838.                           fi
  7839.                         
  7840. else
  7841.   
  7842.                           LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
  7843.                           if test "x$LINE" != x ; then
  7844.                             eval "DEFAULT_$LINE"
  7845.                           else
  7846.                             no_cache=1
  7847.                           fi
  7848.  
  7849.                           ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
  7850.                         
  7851. fi
  7852.  
  7853.  
  7854.           eval "$ac_cv_use_tipdlg"
  7855.           if test "$no_cache" != 1; then
  7856.             echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
  7857.           fi
  7858.  
  7859.           if test "$wxUSE_STARTUP_TIPS" = yes; then
  7860.             echo "$ac_t""yes" 1>&6
  7861.           else
  7862.             echo "$ac_t""no" 1>&6
  7863.           fi
  7864.         
  7865.  
  7866.           echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
  7867. echo "configure:7868: checking for --enable-progressdlg" >&5
  7868.           no_cache=0
  7869.           # Check whether --enable-progressdlg or --disable-progressdlg was given.
  7870. if test "${enable_progressdlg+set}" = set; then
  7871.   enableval="$enable_progressdlg"
  7872.   
  7873.                           if test "$enableval" = yes; then
  7874.                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
  7875.                           else
  7876.                             ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
  7877.                           fi
  7878.                         
  7879. else
  7880.   
  7881.                           LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
  7882.                           if test "x$LINE" != x ; then
  7883.                             eval "DEFAULT_$LINE"
  7884.                           else
  7885.                             no_cache=1
  7886.                           fi
  7887.  
  7888.                           ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
  7889.                         
  7890. fi
  7891.  
  7892.  
  7893.           eval "$ac_cv_use_progressdlg"
  7894.           if test "$no_cache" != 1; then
  7895.             echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
  7896.           fi
  7897.  
  7898.           if test "$wxUSE_PROGRESSDLG" = yes; then
  7899.             echo "$ac_t""yes" 1>&6
  7900.           else
  7901.             echo "$ac_t""no" 1>&6
  7902.           fi
  7903.         
  7904.  
  7905.           echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
  7906. echo "configure:7907: checking for --enable-wizarddlg" >&5
  7907.           no_cache=0
  7908.           # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
  7909. if test "${enable_wizarddlg+set}" = set; then
  7910.   enableval="$enable_wizarddlg"
  7911.   
  7912.                           if test "$enableval" = yes; then
  7913.                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
  7914.                           else
  7915.                             ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
  7916.                           fi
  7917.                         
  7918. else
  7919.   
  7920.                           LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
  7921.                           if test "x$LINE" != x ; then
  7922.                             eval "DEFAULT_$LINE"
  7923.                           else
  7924.                             no_cache=1
  7925.                           fi
  7926.  
  7927.                           ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
  7928.                         
  7929. fi
  7930.  
  7931.  
  7932.           eval "$ac_cv_use_wizarddlg"
  7933.           if test "$no_cache" != 1; then
  7934.             echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
  7935.           fi
  7936.  
  7937.           if test "$wxUSE_WIZARDDLG" = yes; then
  7938.             echo "$ac_t""yes" 1>&6
  7939.           else
  7940.             echo "$ac_t""no" 1>&6
  7941.           fi
  7942.         
  7943.  
  7944.  
  7945.  
  7946.           echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
  7947. echo "configure:7948: checking for --enable-menus" >&5
  7948.           no_cache=0
  7949.           # Check whether --enable-menus or --disable-menus was given.
  7950. if test "${enable_menus+set}" = set; then
  7951.   enableval="$enable_menus"
  7952.   
  7953.                           if test "$enableval" = yes; then
  7954.                             ac_cv_use_menus='wxUSE_MENUS=yes'
  7955.                           else
  7956.                             ac_cv_use_menus='wxUSE_MENUS=no'
  7957.                           fi
  7958.                         
  7959. else
  7960.   
  7961.                           LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
  7962.                           if test "x$LINE" != x ; then
  7963.                             eval "DEFAULT_$LINE"
  7964.                           else
  7965.                             no_cache=1
  7966.                           fi
  7967.  
  7968.                           ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
  7969.                         
  7970. fi
  7971.  
  7972.  
  7973.           eval "$ac_cv_use_menus"
  7974.           if test "$no_cache" != 1; then
  7975.             echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
  7976.           fi
  7977.  
  7978.           if test "$wxUSE_MENUS" = yes; then
  7979.             echo "$ac_t""yes" 1>&6
  7980.           else
  7981.             echo "$ac_t""no" 1>&6
  7982.           fi
  7983.         
  7984.  
  7985.           echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
  7986. echo "configure:7987: checking for --enable-miniframe" >&5
  7987.           no_cache=0
  7988.           # Check whether --enable-miniframe or --disable-miniframe was given.
  7989. if test "${enable_miniframe+set}" = set; then
  7990.   enableval="$enable_miniframe"
  7991.   
  7992.                           if test "$enableval" = yes; then
  7993.                             ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
  7994.                           else
  7995.                             ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
  7996.                           fi
  7997.                         
  7998. else
  7999.   
  8000.                           LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
  8001.                           if test "x$LINE" != x ; then
  8002.                             eval "DEFAULT_$LINE"
  8003.                           else
  8004.                             no_cache=1
  8005.                           fi
  8006.  
  8007.                           ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
  8008.                         
  8009. fi
  8010.  
  8011.  
  8012.           eval "$ac_cv_use_miniframe"
  8013.           if test "$no_cache" != 1; then
  8014.             echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
  8015.           fi
  8016.  
  8017.           if test "$wxUSE_MINIFRAME" = yes; then
  8018.             echo "$ac_t""yes" 1>&6
  8019.           else
  8020.             echo "$ac_t""no" 1>&6
  8021.           fi
  8022.         
  8023.  
  8024.           echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
  8025. echo "configure:8026: checking for --enable-tooltips" >&5
  8026.           no_cache=0
  8027.           # Check whether --enable-tooltips or --disable-tooltips was given.
  8028. if test "${enable_tooltips+set}" = set; then
  8029.   enableval="$enable_tooltips"
  8030.   
  8031.                           if test "$enableval" = yes; then
  8032.                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
  8033.                           else
  8034.                             ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
  8035.                           fi
  8036.                         
  8037. else
  8038.   
  8039.                           LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
  8040.                           if test "x$LINE" != x ; then
  8041.                             eval "DEFAULT_$LINE"
  8042.                           else
  8043.                             no_cache=1
  8044.                           fi
  8045.  
  8046.                           ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
  8047.                         
  8048. fi
  8049.  
  8050.  
  8051.           eval "$ac_cv_use_tooltips"
  8052.           if test "$no_cache" != 1; then
  8053.             echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
  8054.           fi
  8055.  
  8056.           if test "$wxUSE_TOOLTIPS" = yes; then
  8057.             echo "$ac_t""yes" 1>&6
  8058.           else
  8059.             echo "$ac_t""no" 1>&6
  8060.           fi
  8061.         
  8062.  
  8063.           echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
  8064. echo "configure:8065: checking for --enable-splines" >&5
  8065.           no_cache=0
  8066.           # Check whether --enable-splines or --disable-splines was given.
  8067. if test "${enable_splines+set}" = set; then
  8068.   enableval="$enable_splines"
  8069.   
  8070.                           if test "$enableval" = yes; then
  8071.                             ac_cv_use_splines='wxUSE_SPLINES=yes'
  8072.                           else
  8073.                             ac_cv_use_splines='wxUSE_SPLINES=no'
  8074.                           fi
  8075.                         
  8076. else
  8077.   
  8078.                           LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
  8079.                           if test "x$LINE" != x ; then
  8080.                             eval "DEFAULT_$LINE"
  8081.                           else
  8082.                             no_cache=1
  8083.                           fi
  8084.  
  8085.                           ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
  8086.                         
  8087. fi
  8088.  
  8089.  
  8090.           eval "$ac_cv_use_splines"
  8091.           if test "$no_cache" != 1; then
  8092.             echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
  8093.           fi
  8094.  
  8095.           if test "$wxUSE_SPLINES" = yes; then
  8096.             echo "$ac_t""yes" 1>&6
  8097.           else
  8098.             echo "$ac_t""no" 1>&6
  8099.           fi
  8100.         
  8101.  
  8102.           echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
  8103. echo "configure:8104: checking for --enable-validators" >&5
  8104.           no_cache=0
  8105.           # Check whether --enable-validators or --disable-validators was given.
  8106. if test "${enable_validators+set}" = set; then
  8107.   enableval="$enable_validators"
  8108.   
  8109.                           if test "$enableval" = yes; then
  8110.                             ac_cv_use_validators='wxUSE_VALIDATORS=yes'
  8111.                           else
  8112.                             ac_cv_use_validators='wxUSE_VALIDATORS=no'
  8113.                           fi
  8114.                         
  8115. else
  8116.   
  8117.                           LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
  8118.                           if test "x$LINE" != x ; then
  8119.                             eval "DEFAULT_$LINE"
  8120.                           else
  8121.                             no_cache=1
  8122.                           fi
  8123.  
  8124.                           ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
  8125.                         
  8126. fi
  8127.  
  8128.  
  8129.           eval "$ac_cv_use_validators"
  8130.           if test "$no_cache" != 1; then
  8131.             echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
  8132.           fi
  8133.  
  8134.           if test "$wxUSE_VALIDATORS" = yes; then
  8135.             echo "$ac_t""yes" 1>&6
  8136.           else
  8137.             echo "$ac_t""no" 1>&6
  8138.           fi
  8139.         
  8140.  
  8141.           echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
  8142. echo "configure:8143: checking for --enable-busyinfo" >&5
  8143.           no_cache=0
  8144.           # Check whether --enable-busyinfo or --disable-busyinfo was given.
  8145. if test "${enable_busyinfo+set}" = set; then
  8146.   enableval="$enable_busyinfo"
  8147.   
  8148.                           if test "$enableval" = yes; then
  8149.                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
  8150.                           else
  8151.                             ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
  8152.                           fi
  8153.                         
  8154. else
  8155.   
  8156.                           LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
  8157.                           if test "x$LINE" != x ; then
  8158.                             eval "DEFAULT_$LINE"
  8159.                           else
  8160.                             no_cache=1
  8161.                           fi
  8162.  
  8163.                           ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
  8164.                         
  8165. fi
  8166.  
  8167.  
  8168.           eval "$ac_cv_use_busyinfo"
  8169.           if test "$no_cache" != 1; then
  8170.             echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
  8171.           fi
  8172.  
  8173.           if test "$wxUSE_BUSYINFO" = yes; then
  8174.             echo "$ac_t""yes" 1>&6
  8175.           else
  8176.             echo "$ac_t""no" 1>&6
  8177.           fi
  8178.         
  8179.  
  8180.           echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
  8181. echo "configure:8182: checking for --enable-joystick" >&5
  8182.           no_cache=0
  8183.           # Check whether --enable-joystick or --disable-joystick was given.
  8184. if test "${enable_joystick+set}" = set; then
  8185.   enableval="$enable_joystick"
  8186.   
  8187.                           if test "$enableval" = yes; then
  8188.                             ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
  8189.                           else
  8190.                             ac_cv_use_joystick='wxUSE_JOYSTICK=no'
  8191.                           fi
  8192.                         
  8193. else
  8194.   
  8195.                           LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
  8196.                           if test "x$LINE" != x ; then
  8197.                             eval "DEFAULT_$LINE"
  8198.                           else
  8199.                             no_cache=1
  8200.                           fi
  8201.  
  8202.                           ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
  8203.                         
  8204. fi
  8205.  
  8206.  
  8207.           eval "$ac_cv_use_joystick"
  8208.           if test "$no_cache" != 1; then
  8209.             echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
  8210.           fi
  8211.  
  8212.           if test "$wxUSE_JOYSTICK" = yes; then
  8213.             echo "$ac_t""yes" 1>&6
  8214.           else
  8215.             echo "$ac_t""no" 1>&6
  8216.           fi
  8217.         
  8218.  
  8219.           echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
  8220. echo "configure:8221: checking for --enable-metafile" >&5
  8221.           no_cache=0
  8222.           # Check whether --enable-metafile or --disable-metafile was given.
  8223. if test "${enable_metafile+set}" = set; then
  8224.   enableval="$enable_metafile"
  8225.   
  8226.                           if test "$enableval" = yes; then
  8227.                             ac_cv_use_metafile='wxUSE_METAFILE=yes'
  8228.                           else
  8229.                             ac_cv_use_metafile='wxUSE_METAFILE=no'
  8230.                           fi
  8231.                         
  8232. else
  8233.   
  8234.                           LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
  8235.                           if test "x$LINE" != x ; then
  8236.                             eval "DEFAULT_$LINE"
  8237.                           else
  8238.                             no_cache=1
  8239.                           fi
  8240.  
  8241.                           ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
  8242.                         
  8243. fi
  8244.  
  8245.  
  8246.           eval "$ac_cv_use_metafile"
  8247.           if test "$no_cache" != 1; then
  8248.             echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
  8249.           fi
  8250.  
  8251.           if test "$wxUSE_METAFILE" = yes; then
  8252.             echo "$ac_t""yes" 1>&6
  8253.           else
  8254.             echo "$ac_t""no" 1>&6
  8255.           fi
  8256.         
  8257.  
  8258.           echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
  8259. echo "configure:8260: checking for --enable-dragimage" >&5
  8260.           no_cache=0
  8261.           # Check whether --enable-dragimage or --disable-dragimage was given.
  8262. if test "${enable_dragimage+set}" = set; then
  8263.   enableval="$enable_dragimage"
  8264.   
  8265.                           if test "$enableval" = yes; then
  8266.                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
  8267.                           else
  8268.                             ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
  8269.                           fi
  8270.                         
  8271. else
  8272.   
  8273.                           LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
  8274.                           if test "x$LINE" != x ; then
  8275.                             eval "DEFAULT_$LINE"
  8276.                           else
  8277.                             no_cache=1
  8278.                           fi
  8279.  
  8280.                           ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
  8281.                         
  8282. fi
  8283.  
  8284.  
  8285.           eval "$ac_cv_use_dragimage"
  8286.           if test "$no_cache" != 1; then
  8287.             echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
  8288.           fi
  8289.  
  8290.           if test "$wxUSE_DRAGIMAGE" = yes; then
  8291.             echo "$ac_t""yes" 1>&6
  8292.           else
  8293.             echo "$ac_t""no" 1>&6
  8294.           fi
  8295.         
  8296.  
  8297.  
  8298.  
  8299.           echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
  8300. echo "configure:8301: checking for --enable-palette" >&5
  8301.           no_cache=0
  8302.           # Check whether --enable-palette or --disable-palette was given.
  8303. if test "${enable_palette+set}" = set; then
  8304.   enableval="$enable_palette"
  8305.   
  8306.                           if test "$enableval" = yes; then
  8307.                             ac_cv_use_palette='wxUSE_PALETTE=yes'
  8308.                           else
  8309.                             ac_cv_use_palette='wxUSE_PALETTE=no'
  8310.                           fi
  8311.                         
  8312. else
  8313.   
  8314.                           LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
  8315.                           if test "x$LINE" != x ; then
  8316.                             eval "DEFAULT_$LINE"
  8317.                           else
  8318.                             no_cache=1
  8319.                           fi
  8320.  
  8321.                           ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
  8322.                         
  8323. fi
  8324.  
  8325.  
  8326.           eval "$ac_cv_use_palette"
  8327.           if test "$no_cache" != 1; then
  8328.             echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
  8329.           fi
  8330.  
  8331.           if test "$wxUSE_PALETTE" = yes; then
  8332.             echo "$ac_t""yes" 1>&6
  8333.           else
  8334.             echo "$ac_t""no" 1>&6
  8335.           fi
  8336.         
  8337.  
  8338.           echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
  8339. echo "configure:8340: checking for --enable-image" >&5
  8340.           no_cache=0
  8341.           # Check whether --enable-image or --disable-image was given.
  8342. if test "${enable_image+set}" = set; then
  8343.   enableval="$enable_image"
  8344.   
  8345.                           if test "$enableval" = yes; then
  8346.                             ac_cv_use_image='wxUSE_IMAGE=yes'
  8347.                           else
  8348.                             ac_cv_use_image='wxUSE_IMAGE=no'
  8349.                           fi
  8350.                         
  8351. else
  8352.   
  8353.                           LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
  8354.                           if test "x$LINE" != x ; then
  8355.                             eval "DEFAULT_$LINE"
  8356.                           else
  8357.                             no_cache=1
  8358.                           fi
  8359.  
  8360.                           ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
  8361.                         
  8362. fi
  8363.  
  8364.  
  8365.           eval "$ac_cv_use_image"
  8366.           if test "$no_cache" != 1; then
  8367.             echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
  8368.           fi
  8369.  
  8370.           if test "$wxUSE_IMAGE" = yes; then
  8371.             echo "$ac_t""yes" 1>&6
  8372.           else
  8373.             echo "$ac_t""no" 1>&6
  8374.           fi
  8375.         
  8376.  
  8377.           echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
  8378. echo "configure:8379: checking for --enable-gif" >&5
  8379.           no_cache=0
  8380.           # Check whether --enable-gif or --disable-gif was given.
  8381. if test "${enable_gif+set}" = set; then
  8382.   enableval="$enable_gif"
  8383.   
  8384.                           if test "$enableval" = yes; then
  8385.                             ac_cv_use_gif='wxUSE_GIF=yes'
  8386.                           else
  8387.                             ac_cv_use_gif='wxUSE_GIF=no'
  8388.                           fi
  8389.                         
  8390. else
  8391.   
  8392.                           LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
  8393.                           if test "x$LINE" != x ; then
  8394.                             eval "DEFAULT_$LINE"
  8395.                           else
  8396.                             no_cache=1
  8397.                           fi
  8398.  
  8399.                           ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
  8400.                         
  8401. fi
  8402.  
  8403.  
  8404.           eval "$ac_cv_use_gif"
  8405.           if test "$no_cache" != 1; then
  8406.             echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
  8407.           fi
  8408.  
  8409.           if test "$wxUSE_GIF" = yes; then
  8410.             echo "$ac_t""yes" 1>&6
  8411.           else
  8412.             echo "$ac_t""no" 1>&6
  8413.           fi
  8414.         
  8415.  
  8416.           echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
  8417. echo "configure:8418: checking for --enable-pcx" >&5
  8418.           no_cache=0
  8419.           # Check whether --enable-pcx or --disable-pcx was given.
  8420. if test "${enable_pcx+set}" = set; then
  8421.   enableval="$enable_pcx"
  8422.   
  8423.                           if test "$enableval" = yes; then
  8424.                             ac_cv_use_pcx='wxUSE_PCX=yes'
  8425.                           else
  8426.                             ac_cv_use_pcx='wxUSE_PCX=no'
  8427.                           fi
  8428.                         
  8429. else
  8430.   
  8431.                           LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
  8432.                           if test "x$LINE" != x ; then
  8433.                             eval "DEFAULT_$LINE"
  8434.                           else
  8435.                             no_cache=1
  8436.                           fi
  8437.  
  8438.                           ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
  8439.                         
  8440. fi
  8441.  
  8442.  
  8443.           eval "$ac_cv_use_pcx"
  8444.           if test "$no_cache" != 1; then
  8445.             echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
  8446.           fi
  8447.  
  8448.           if test "$wxUSE_PCX" = yes; then
  8449.             echo "$ac_t""yes" 1>&6
  8450.           else
  8451.             echo "$ac_t""no" 1>&6
  8452.           fi
  8453.         
  8454.  
  8455.           echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
  8456. echo "configure:8457: checking for --enable-iff" >&5
  8457.           no_cache=0
  8458.           # Check whether --enable-iff or --disable-iff was given.
  8459. if test "${enable_iff+set}" = set; then
  8460.   enableval="$enable_iff"
  8461.   
  8462.                           if test "$enableval" = yes; then
  8463.                             ac_cv_use_iff='wxUSE_IFF=yes'
  8464.                           else
  8465.                             ac_cv_use_iff='wxUSE_IFF=no'
  8466.                           fi
  8467.                         
  8468. else
  8469.   
  8470.                           LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
  8471.                           if test "x$LINE" != x ; then
  8472.                             eval "DEFAULT_$LINE"
  8473.                           else
  8474.                             no_cache=1
  8475.                           fi
  8476.  
  8477.                           ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
  8478.                         
  8479. fi
  8480.  
  8481.  
  8482.           eval "$ac_cv_use_iff"
  8483.           if test "$no_cache" != 1; then
  8484.             echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
  8485.           fi
  8486.  
  8487.           if test "$wxUSE_IFF" = yes; then
  8488.             echo "$ac_t""yes" 1>&6
  8489.           else
  8490.             echo "$ac_t""no" 1>&6
  8491.           fi
  8492.         
  8493.  
  8494.           echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
  8495. echo "configure:8496: checking for --enable-pnm" >&5
  8496.           no_cache=0
  8497.           # Check whether --enable-pnm or --disable-pnm was given.
  8498. if test "${enable_pnm+set}" = set; then
  8499.   enableval="$enable_pnm"
  8500.   
  8501.                           if test "$enableval" = yes; then
  8502.                             ac_cv_use_pnm='wxUSE_PNM=yes'
  8503.                           else
  8504.                             ac_cv_use_pnm='wxUSE_PNM=no'
  8505.                           fi
  8506.                         
  8507. else
  8508.   
  8509.                           LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
  8510.                           if test "x$LINE" != x ; then
  8511.                             eval "DEFAULT_$LINE"
  8512.                           else
  8513.                             no_cache=1
  8514.                           fi
  8515.  
  8516.                           ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
  8517.                         
  8518. fi
  8519.  
  8520.  
  8521.           eval "$ac_cv_use_pnm"
  8522.           if test "$no_cache" != 1; then
  8523.             echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
  8524.           fi
  8525.  
  8526.           if test "$wxUSE_PNM" = yes; then
  8527.             echo "$ac_t""yes" 1>&6
  8528.           else
  8529.             echo "$ac_t""no" 1>&6
  8530.           fi
  8531.         
  8532.  
  8533.           echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
  8534. echo "configure:8535: checking for --enable-xpm" >&5
  8535.           no_cache=0
  8536.           # Check whether --enable-xpm or --disable-xpm was given.
  8537. if test "${enable_xpm+set}" = set; then
  8538.   enableval="$enable_xpm"
  8539.   
  8540.                           if test "$enableval" = yes; then
  8541.                             ac_cv_use_xpm='wxUSE_XPM=yes'
  8542.                           else
  8543.                             ac_cv_use_xpm='wxUSE_XPM=no'
  8544.                           fi
  8545.                         
  8546. else
  8547.   
  8548.                           LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
  8549.                           if test "x$LINE" != x ; then
  8550.                             eval "DEFAULT_$LINE"
  8551.                           else
  8552.                             no_cache=1
  8553.                           fi
  8554.  
  8555.                           ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
  8556.                         
  8557. fi
  8558.  
  8559.  
  8560.           eval "$ac_cv_use_xpm"
  8561.           if test "$no_cache" != 1; then
  8562.             echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
  8563.           fi
  8564.  
  8565.           if test "$wxUSE_XPM" = yes; then
  8566.             echo "$ac_t""yes" 1>&6
  8567.           else
  8568.             echo "$ac_t""no" 1>&6
  8569.           fi
  8570.         
  8571.  
  8572.           echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
  8573. echo "configure:8574: checking for --enable-ico_cur" >&5
  8574.           no_cache=0
  8575.           # Check whether --enable-ico_cur or --disable-ico_cur was given.
  8576. if test "${enable_ico_cur+set}" = set; then
  8577.   enableval="$enable_ico_cur"
  8578.   
  8579.                           if test "$enableval" = yes; then
  8580.                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
  8581.                           else
  8582.                             ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
  8583.                           fi
  8584.                         
  8585. else
  8586.   
  8587.                           LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
  8588.                           if test "x$LINE" != x ; then
  8589.                             eval "DEFAULT_$LINE"
  8590.                           else
  8591.                             no_cache=1
  8592.                           fi
  8593.  
  8594.                           ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
  8595.                         
  8596. fi
  8597.  
  8598.  
  8599.           eval "$ac_cv_use_ico_cur"
  8600.           if test "$no_cache" != 1; then
  8601.             echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
  8602.           fi
  8603.  
  8604.           if test "$wxUSE_ICO_CUR" = yes; then
  8605.             echo "$ac_t""yes" 1>&6
  8606.           else
  8607.             echo "$ac_t""no" 1>&6
  8608.           fi
  8609.         
  8610.  
  8611. fi
  8612.  
  8613. case "${host}" in
  8614.   *-pc-os2_emx | *-pc-os2-emx )
  8615.     PATH_IFS=';'
  8616.     LEX_STEM="lexyy"
  8617.   ;;
  8618.   *)
  8619.     PATH_IFS=':'
  8620.     LEX_STEM="lex.yy"
  8621.   ;;
  8622. esac
  8623.  
  8624.  
  8625.  
  8626.           echo "saving argument cache $wx_arg_cache_file"
  8627.           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
  8628.         
  8629.  
  8630.  
  8631. echo $ac_n "checking for toolkit""... $ac_c" 1>&6
  8632. echo "configure:8633: checking for toolkit" >&5
  8633.  
  8634. if test "$wxUSE_GUI" = "yes"; then
  8635.  
  8636.     if test "$USE_BEOS" = 1; then
  8637.         { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
  8638.     fi
  8639.  
  8640.     if test "$TOOLKIT_GIVEN" = 1; then
  8641.             for toolkit in `echo $ALL_TOOLKITS`; do
  8642.         var=wxUSE_$toolkit
  8643.         eval "value=\$${var}"
  8644.         eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
  8645.       done
  8646.     else
  8647.             for toolkit in `echo $ALL_TOOLKITS`; do
  8648.         if test "$has_toolkit_in_cache" != 1; then
  8649.           var=DEFAULT_DEFAULT_wxUSE_$toolkit
  8650.         else
  8651.           var=DEFAULT_wxUSE_$toolkit
  8652.         fi
  8653.         eval "wxUSE_$toolkit=\$${var}"
  8654.       done
  8655.     fi
  8656.  
  8657.             NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0}  \
  8658.                   + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
  8659.  
  8660.         case "${host}" in
  8661.       *-pc-os2_emx | *-pc-os2-emx )
  8662.         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
  8663.     esac
  8664.  
  8665.     case "$NUM_TOOLKITS" in
  8666.       1)
  8667.       ;;
  8668.       0)
  8669.         { echo "configure: error: Please specify a toolkit -- cannot determine the default for ${host}" 1>&2; exit 1; }
  8670.       ;;
  8671.       *)
  8672.         { echo "configure: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" 1>&2; exit 1; }
  8673.     esac
  8674.  
  8675.         for toolkit in `echo $ALL_TOOLKITS`; do
  8676.       var=wxUSE_$toolkit
  8677.       eval "value=\$${var}"
  8678.       if test "x$value" != x; then
  8679.         cache_var=CACHE_$toolkit
  8680.         eval "cache=\$${cache_var}"
  8681.         if test "$cache" = 1; then
  8682.           echo "$var=$value" >> ${wx_arg_cache_file}
  8683.         fi
  8684.         if test "$value" = 1; then
  8685.           toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
  8686.           echo "$ac_t""$toolkit_echo" 1>&6
  8687.         fi
  8688.       fi
  8689.     done
  8690. else
  8691.     echo "$ac_t""base ($host_alias hosted) only" 1>&6
  8692. fi
  8693.  
  8694. case "${host}" in
  8695.   *-pc-os2_emx | *-pc-os2-emx )
  8696.             LIBS="$LIBS -lstdcpp"
  8697.       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
  8698.                           echo $ac_n "checking for drand48 in -lcExt""... $ac_c" 1>&6
  8699. echo "configure:8700: checking for drand48 in -lcExt" >&5
  8700. ac_lib_var=`echo cExt'_'drand48 | sed 'y%./+-%__p_%'`
  8701. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  8702.   echo $ac_n "(cached) $ac_c" 1>&6
  8703. else
  8704.   ac_save_LIBS="$LIBS"
  8705. LIBS="-lcExt  $LIBS"
  8706. cat > conftest.$ac_ext <<EOF
  8707. #line 8708 "configure"
  8708. #include "confdefs.h"
  8709. /* Override any gcc2 internal prototype to avoid an error.  */
  8710. /* We use char because int might match the return type of a gcc2
  8711.     builtin and then its argument prototype would still apply.  */
  8712. char drand48();
  8713.  
  8714. int main() {
  8715. drand48()
  8716. ; return 0; }
  8717. EOF
  8718. if { (eval echo configure:8719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  8719.   rm -rf conftest*
  8720.   eval "ac_cv_lib_$ac_lib_var=yes"
  8721. else
  8722.   echo "configure: failed program was:" >&5
  8723.   cat conftest.$ac_ext >&5
  8724.   rm -rf conftest*
  8725.   eval "ac_cv_lib_$ac_lib_var=no"
  8726. fi
  8727. rm -f conftest*
  8728. LIBS="$ac_save_LIBS"
  8729.  
  8730. fi
  8731. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  8732.   echo "$ac_t""yes" 1>&6
  8733.   LIBS="$LIBS -lcExt"
  8734. else
  8735.   echo "$ac_t""no" 1>&6
  8736. fi
  8737.  
  8738.       else
  8739.                 RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
  8740.       fi
  8741.   ;;
  8742. esac
  8743.  
  8744. wants_win32=0
  8745. doesnt_want_win32=0
  8746. case "${host}" in
  8747.   *-*-cygwin*)
  8748.       if test "$wxUSE_MSW" = 1 ; then
  8749.         wants_win32=1
  8750.       else
  8751.         doesnt_want_win32=1
  8752.       fi
  8753.   ;;
  8754.   *-*-mingw*)
  8755.       wants_win32=1
  8756.   ;;
  8757. esac
  8758.  
  8759. if test "$wants_win32" = 1 ; then
  8760.     USE_UNIX=0
  8761.     USE_WIN32=1
  8762.     cat >> confdefs.h <<\EOF
  8763. #define __WIN32__ 1
  8764. EOF
  8765.  
  8766.     cat >> confdefs.h <<\EOF
  8767. #define __WIN95__ 1
  8768. EOF
  8769.  
  8770.     cat >> confdefs.h <<\EOF
  8771. #define __WINDOWS__ 1
  8772. EOF
  8773.  
  8774.     cat >> confdefs.h <<\EOF
  8775. #define __GNUWIN32__ 1
  8776. EOF
  8777.  
  8778.     cat >> confdefs.h <<\EOF
  8779. #define STRICT 1
  8780. EOF
  8781.  
  8782.     cat >> confdefs.h <<\EOF
  8783. #define WINVER 0x0400
  8784. EOF
  8785.  
  8786. fi
  8787. if test "$doesnt_want_win32" = 1 ; then
  8788.     USE_UNIX=1
  8789.     USE_WIN32=0
  8790. fi
  8791.  
  8792. if test "$USE_UNIX" = 1 ; then
  8793.     wxUSE_UNIX=yes
  8794.     cat >> confdefs.h <<\EOF
  8795. #define __UNIX__ 1
  8796. EOF
  8797.  
  8798. fi
  8799.  
  8800.  
  8801. cat > confcache <<\EOF
  8802. # This file is a shell script that caches the results of configure
  8803. # tests run on this system so they can be shared between configure
  8804. # scripts and configure runs.  It is not useful on other systems.
  8805. # If it contains results you don't want to keep, you may remove or edit it.
  8806. #
  8807. # By default, configure uses ./config.cache as the cache file,
  8808. # creating it if it does not exist already.  You can give configure
  8809. # the --cache-file=FILE option to use a different cache file; that is
  8810. # what configure does when it calls configure scripts in
  8811. # subdirectories, so they share the cache.
  8812. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  8813. # config.status only pays attention to the cache file if you give it the
  8814. # --recheck option to rerun configure.
  8815. #
  8816. EOF
  8817. # The following way of writing the cache mishandles newlines in values,
  8818. # but we know of no workaround that is simple, portable, and efficient.
  8819. # So, don't put newlines in cache variables' values.
  8820. # Ultrix sh set writes to stderr and can't be redirected directly,
  8821. # and sets the high bit in the cache file unless we assign to the vars.
  8822. (set) 2>&1 |
  8823.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  8824.   *ac_space=\ *)
  8825.     # `set' does not quote correctly, so add quotes (double-quote substitution
  8826.     # turns \\\\ into \\, and sed turns \\ into \).
  8827.     sed -n \
  8828.       -e "s/'/'\\\\''/g" \
  8829.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  8830.     ;;
  8831.   *)
  8832.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  8833.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  8834.     ;;
  8835.   esac >> confcache
  8836. if cmp -s $cache_file confcache; then
  8837.   :
  8838. else
  8839.   if test -w $cache_file; then
  8840.     echo "updating cache $cache_file"
  8841.     cat confcache > $cache_file
  8842.   else
  8843.     echo "not updating unwritable cache $cache_file"
  8844.   fi
  8845. fi
  8846. rm -f confcache
  8847.  
  8848.  
  8849. if test "$build" != "$host" ; then
  8850.     if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
  8851.         CC=$host_alias-gcc
  8852.         CXX=$host_alias-c++
  8853.         AR=$host_alias-ar
  8854.         RANLIB=$host_alias-ranlib
  8855.         DLLTOOL=$host_alias-dlltool
  8856.         RESCOMP=$host_alias-windres
  8857.         LD=$host_alias-ld
  8858.         NM=$host_alias-nm
  8859.         STRIP=$host_alias-strip
  8860.     else
  8861.         { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
  8862.     fi
  8863. fi
  8864.  
  8865. CFLAGS=${CFLAGS:=}
  8866. # Extract the first word of "gcc", so it can be a program name with args.
  8867. set dummy gcc; ac_word=$2
  8868. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8869. echo "configure:8870: checking for $ac_word" >&5
  8870. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  8871.   echo $ac_n "(cached) $ac_c" 1>&6
  8872. else
  8873.   if test -n "$CC"; then
  8874.   ac_cv_prog_CC="$CC" # Let the user override the test.
  8875. else
  8876.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  8877.   ac_dummy="$PATH"
  8878.   for ac_dir in $ac_dummy; do
  8879.     test -z "$ac_dir" && ac_dir=.
  8880.     if test -f $ac_dir/$ac_word -o \
  8881.             -f $ac_dir/$ac_word$ac_exeext ; then
  8882.       ac_cv_prog_CC="gcc"
  8883.       break
  8884.     fi
  8885.   done
  8886.   IFS="$ac_save_ifs"
  8887. fi
  8888. fi
  8889. CC="$ac_cv_prog_CC"
  8890. if test -n "$CC"; then
  8891.   echo "$ac_t""$CC" 1>&6
  8892. else
  8893.   echo "$ac_t""no" 1>&6
  8894. fi
  8895.  
  8896. if test -z "$CC"; then
  8897.   # Extract the first word of "cc", so it can be a program name with args.
  8898. set dummy cc; ac_word=$2
  8899. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8900. echo "configure:8901: checking for $ac_word" >&5
  8901. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  8902.   echo $ac_n "(cached) $ac_c" 1>&6
  8903. else
  8904.   if test -n "$CC"; then
  8905.   ac_cv_prog_CC="$CC" # Let the user override the test.
  8906. else
  8907.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  8908.   ac_prog_rejected=no
  8909.   ac_dummy="$PATH"
  8910.   for ac_dir in $ac_dummy; do
  8911.     test -z "$ac_dir" && ac_dir=.
  8912.     if test -f $ac_dir/$ac_word -o \
  8913.             -f $ac_dir/$ac_word$ac_exeext ; then
  8914.       if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
  8915.                "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
  8916.         ac_prog_rejected=yes
  8917.     continue
  8918.       fi
  8919.       ac_cv_prog_CC="cc"
  8920.       break
  8921.     fi
  8922.   done
  8923.   IFS="$ac_save_ifs"
  8924. if test $ac_prog_rejected = yes; then
  8925.   # We found a bogon in the path, so make sure we never use it.
  8926.   set dummy $ac_cv_prog_CC
  8927.   shift
  8928.   if test $# -gt 0; then
  8929.     # We chose a different compiler from the bogus one.
  8930.     # However, it has the same basename, so the bogon will be chosen
  8931.     # first if we set CC to just the basename; use the full file name.
  8932.     shift
  8933.     set dummy "$ac_dir/$ac_word" "$@"
  8934.     shift
  8935.     ac_cv_prog_CC="$@"
  8936.   fi
  8937. fi
  8938. fi
  8939. fi
  8940. CC="$ac_cv_prog_CC"
  8941. if test -n "$CC"; then
  8942.   echo "$ac_t""$CC" 1>&6
  8943. else
  8944.   echo "$ac_t""no" 1>&6
  8945. fi
  8946.  
  8947.   if test -z "$CC"; then
  8948.     case "`uname -s`" in
  8949.     *win32* | *WIN32*)
  8950.       # Extract the first word of "cl", so it can be a program name with args.
  8951. set dummy cl; ac_word=$2
  8952. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  8953. echo "configure:8954: checking for $ac_word" >&5
  8954. if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  8955.   echo $ac_n "(cached) $ac_c" 1>&6
  8956. else
  8957.   if test -n "$CC"; then
  8958.   ac_cv_prog_CC="$CC" # Let the user override the test.
  8959. else
  8960.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  8961.   ac_dummy="$PATH"
  8962.   for ac_dir in $ac_dummy; do
  8963.     test -z "$ac_dir" && ac_dir=.
  8964.     if test -f $ac_dir/$ac_word -o \
  8965.             -f $ac_dir/$ac_word$ac_exeext ; then
  8966.       ac_cv_prog_CC="cl"
  8967.       break
  8968.     fi
  8969.   done
  8970.   IFS="$ac_save_ifs"
  8971. fi
  8972. fi
  8973. CC="$ac_cv_prog_CC"
  8974. if test -n "$CC"; then
  8975.   echo "$ac_t""$CC" 1>&6
  8976. else
  8977.   echo "$ac_t""no" 1>&6
  8978. fi
  8979.  ;;
  8980.     esac
  8981.   fi
  8982.   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  8983. fi
  8984.  
  8985. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  8986. echo "configure:8987: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  8987.  
  8988. ac_ext=c
  8989. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  8990. ac_cpp='$CPP $CPPFLAGS'
  8991. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  8992. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  8993. cross_compiling=$ac_cv_prog_cc_cross
  8994.  
  8995. cat > conftest.$ac_ext << EOF
  8996.  
  8997. #line 8998 "configure"
  8998. #include "confdefs.h"
  8999.  
  9000. main(){return(0);}
  9001. EOF
  9002. if { (eval echo configure:9003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9003.   ac_cv_prog_cc_works=yes
  9004.   # If we can't run a trivial program, we are probably using a cross compiler.
  9005.   if (./conftest; exit) 2>/dev/null; then
  9006.     ac_cv_prog_cc_cross=no
  9007.   else
  9008.     ac_cv_prog_cc_cross=yes
  9009.   fi
  9010. else
  9011.   echo "configure: failed program was:" >&5
  9012.   cat conftest.$ac_ext >&5
  9013.   ac_cv_prog_cc_works=no
  9014. fi
  9015. rm -fr conftest*
  9016. ac_ext=c
  9017. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9018. ac_cpp='$CPP $CPPFLAGS'
  9019. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9020. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9021. cross_compiling=$ac_cv_prog_cc_cross
  9022.  
  9023. echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
  9024. if test $ac_cv_prog_cc_works = no; then
  9025.   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
  9026. fi
  9027. echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  9028. echo "configure:9029: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
  9029. echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
  9030. cross_compiling=$ac_cv_prog_cc_cross
  9031.  
  9032. echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
  9033. echo "configure:9034: checking whether we are using GNU C" >&5
  9034. if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
  9035.   echo $ac_n "(cached) $ac_c" 1>&6
  9036. else
  9037.   cat > conftest.c <<EOF
  9038. #ifdef __GNUC__
  9039.   yes;
  9040. #endif
  9041. EOF
  9042. if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:9043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  9043.   ac_cv_prog_gcc=yes
  9044. else
  9045.   ac_cv_prog_gcc=no
  9046. fi
  9047. fi
  9048.  
  9049. echo "$ac_t""$ac_cv_prog_gcc" 1>&6
  9050.  
  9051. if test $ac_cv_prog_gcc = yes; then
  9052.   GCC=yes
  9053. else
  9054.   GCC=
  9055. fi
  9056.  
  9057. ac_test_CFLAGS="${CFLAGS+set}"
  9058. ac_save_CFLAGS="$CFLAGS"
  9059. CFLAGS=
  9060. echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
  9061. echo "configure:9062: checking whether ${CC-cc} accepts -g" >&5
  9062. if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
  9063.   echo $ac_n "(cached) $ac_c" 1>&6
  9064. else
  9065.   echo 'void f(){}' > conftest.c
  9066. if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
  9067.   ac_cv_prog_cc_g=yes
  9068. else
  9069.   ac_cv_prog_cc_g=no
  9070. fi
  9071. rm -f conftest*
  9072.  
  9073. fi
  9074.  
  9075. echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
  9076. if test "$ac_test_CFLAGS" = set; then
  9077.   CFLAGS="$ac_save_CFLAGS"
  9078. elif test $ac_cv_prog_cc_g = yes; then
  9079.   if test "$GCC" = yes; then
  9080.     CFLAGS="-g -O2"
  9081.   else
  9082.     CFLAGS="-g"
  9083.   fi
  9084. else
  9085.   if test "$GCC" = yes; then
  9086.     CFLAGS="-O2"
  9087.   else
  9088.     CFLAGS=
  9089.   fi
  9090. fi
  9091.  
  9092.  
  9093. echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
  9094. echo "configure:9095: checking how to run the C preprocessor" >&5
  9095. # On Suns, sometimes $CPP names a directory.
  9096. if test -n "$CPP" && test -d "$CPP"; then
  9097.   CPP=
  9098. fi
  9099. if test -z "$CPP"; then
  9100. if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
  9101.   echo $ac_n "(cached) $ac_c" 1>&6
  9102. else
  9103.     # This must be in double quotes, not single quotes, because CPP may get
  9104.   # substituted into the Makefile and "${CC-cc}" will confuse make.
  9105.   CPP="${CC-cc} -E"
  9106.   # On the NeXT, cc -E runs the code through the compiler's parser,
  9107.   # not just through cpp.
  9108.   cat > conftest.$ac_ext <<EOF
  9109. #include <sys/types.h>
  9110. #line 9111 "configure"
  9111. #include "confdefs.h"
  9112. #include <assert.h>
  9113. Syntax Error
  9114. EOF
  9115. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9116. { (eval echo configure:9117: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9117. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9118. if test -z "$ac_err"; then
  9119.   :
  9120. else
  9121.   echo "$ac_err" >&5
  9122.   echo "configure: failed program was:" >&5
  9123.   cat conftest.$ac_ext >&5
  9124.   rm -rf conftest*
  9125.   CPP="${CC-cc} -E -traditional-cpp"
  9126.   cat > conftest.$ac_ext <<EOF
  9127. #include <sys/types.h>
  9128. #line 9129 "configure"
  9129. #include "confdefs.h"
  9130. #include <assert.h>
  9131. Syntax Error
  9132. EOF
  9133. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9134. { (eval echo configure:9135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9135. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9136. if test -z "$ac_err"; then
  9137.   :
  9138. else
  9139.   echo "$ac_err" >&5
  9140.   echo "configure: failed program was:" >&5
  9141.   cat conftest.$ac_ext >&5
  9142.   rm -rf conftest*
  9143.   CPP="${CC-cc} -nologo -E"
  9144.   cat > conftest.$ac_ext <<EOF
  9145. #include <sys/types.h>
  9146. #line 9147 "configure"
  9147. #include "confdefs.h"
  9148. #include <assert.h>
  9149. Syntax Error
  9150. EOF
  9151. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9152. { (eval echo configure:9153: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9153. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9154. if test -z "$ac_err"; then
  9155.   :
  9156. else
  9157.   echo "$ac_err" >&5
  9158.   echo "configure: failed program was:" >&5
  9159.   cat conftest.$ac_ext >&5
  9160.   rm -rf conftest*
  9161.   CPP=/lib/cpp
  9162. fi
  9163. rm -f conftest*
  9164. fi
  9165. rm -f conftest*
  9166. fi
  9167. rm -f conftest*
  9168.   ac_cv_prog_CPP="$CPP"
  9169. fi
  9170.   CPP="$ac_cv_prog_CPP"
  9171. else
  9172.   ac_cv_prog_CPP="$CPP"
  9173. fi
  9174. echo "$ac_t""$CPP" 1>&6
  9175.  
  9176. if test $ac_cv_prog_gcc = yes; then
  9177.     echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
  9178. echo "configure:9179: checking whether ${CC-cc} needs -traditional" >&5
  9179. if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
  9180.   echo $ac_n "(cached) $ac_c" 1>&6
  9181. else
  9182.     ac_pattern="Autoconf.*'x'"
  9183.   cat > conftest.$ac_ext <<EOF
  9184. #line 9185 "configure"
  9185. #include "confdefs.h"
  9186. #include <sgtty.h>
  9187. Autoconf TIOCGETP
  9188. EOF
  9189. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9190.   egrep "$ac_pattern" >/dev/null 2>&1; then
  9191.   rm -rf conftest*
  9192.   ac_cv_prog_gcc_traditional=yes
  9193. else
  9194.   rm -rf conftest*
  9195.   ac_cv_prog_gcc_traditional=no
  9196. fi
  9197. rm -f conftest*
  9198.  
  9199.  
  9200.   if test $ac_cv_prog_gcc_traditional = no; then
  9201.     cat > conftest.$ac_ext <<EOF
  9202. #line 9203 "configure"
  9203. #include "confdefs.h"
  9204. #include <termio.h>
  9205. Autoconf TCGETA
  9206. EOF
  9207. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9208.   egrep "$ac_pattern" >/dev/null 2>&1; then
  9209.   rm -rf conftest*
  9210.   ac_cv_prog_gcc_traditional=yes
  9211. fi
  9212. rm -f conftest*
  9213.  
  9214.   fi
  9215. fi
  9216.  
  9217. echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
  9218.   if test $ac_cv_prog_gcc_traditional = yes; then
  9219.     CC="$CC -traditional"
  9220.   fi
  9221. fi
  9222.  
  9223.  
  9224.  
  9225. ac_ext=C
  9226. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9227. ac_cpp='$CXXCPP $CPPFLAGS'
  9228. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9229. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9230. cross_compiling=$ac_cv_prog_cxx_cross
  9231.  
  9232.  
  9233. CXXFLAGS=${CXXFLAGS:=}
  9234. for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
  9235. do
  9236. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9237. set dummy $ac_prog; ac_word=$2
  9238. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9239. echo "configure:9240: checking for $ac_word" >&5
  9240. if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
  9241.   echo $ac_n "(cached) $ac_c" 1>&6
  9242. else
  9243.   if test -n "$CXX"; then
  9244.   ac_cv_prog_CXX="$CXX" # Let the user override the test.
  9245. else
  9246.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9247.   ac_dummy="$PATH"
  9248.   for ac_dir in $ac_dummy; do
  9249.     test -z "$ac_dir" && ac_dir=.
  9250.     if test -f $ac_dir/$ac_word -o \
  9251.             -f $ac_dir/$ac_word$ac_exeext ; then
  9252.       ac_cv_prog_CXX="$ac_prog"
  9253.       break
  9254.     fi
  9255.   done
  9256.   IFS="$ac_save_ifs"
  9257. fi
  9258. fi
  9259. CXX="$ac_cv_prog_CXX"
  9260. if test -n "$CXX"; then
  9261.   echo "$ac_t""$CXX" 1>&6
  9262. else
  9263.   echo "$ac_t""no" 1>&6
  9264. fi
  9265.  
  9266. test -n "$CXX" && break
  9267. done
  9268. test -n "$CXX" || CXX="gcc"
  9269.  
  9270.  
  9271. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  9272. echo "configure:9273: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
  9273.  
  9274. ac_ext=C
  9275. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9276. ac_cpp='$CXXCPP $CPPFLAGS'
  9277. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9278. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9279. cross_compiling=$ac_cv_prog_cxx_cross
  9280.  
  9281. cat > conftest.$ac_ext << EOF
  9282.  
  9283. #line 9284 "configure"
  9284. #include "confdefs.h"
  9285.  
  9286. int main(){return(0);}
  9287. EOF
  9288. if { (eval echo configure:9289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9289.   ac_cv_prog_cxx_works=yes
  9290.   # If we can't run a trivial program, we are probably using a cross compiler.
  9291.   if (./conftest; exit) 2>/dev/null; then
  9292.     ac_cv_prog_cxx_cross=no
  9293.   else
  9294.     ac_cv_prog_cxx_cross=yes
  9295.   fi
  9296. else
  9297.   echo "configure: failed program was:" >&5
  9298.   cat conftest.$ac_ext >&5
  9299.   ac_cv_prog_cxx_works=no
  9300. fi
  9301. rm -fr conftest*
  9302. ac_ext=C
  9303. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9304. ac_cpp='$CXXCPP $CPPFLAGS'
  9305. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9306. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9307. cross_compiling=$ac_cv_prog_cxx_cross
  9308.  
  9309. echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  9310. if test $ac_cv_prog_cxx_works = no; then
  9311.   { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  9312. fi
  9313. echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
  9314. echo "configure:9315: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
  9315. echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  9316. cross_compiling=$ac_cv_prog_cxx_cross
  9317.  
  9318. echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
  9319. echo "configure:9320: checking whether we are using GNU C++" >&5
  9320. if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
  9321.   echo $ac_n "(cached) $ac_c" 1>&6
  9322. else
  9323.   cat > conftest.C <<EOF
  9324. #ifdef __GNUC__
  9325.   yes;
  9326. #endif
  9327. EOF
  9328. if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9329: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  9329.   ac_cv_prog_gxx=yes
  9330. else
  9331.   ac_cv_prog_gxx=no
  9332. fi
  9333. fi
  9334.  
  9335. echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  9336.  
  9337. if test $ac_cv_prog_gxx = yes; then
  9338.   GXX=yes
  9339. else
  9340.   GXX=
  9341. fi
  9342.  
  9343. ac_test_CXXFLAGS="${CXXFLAGS+set}"
  9344. ac_save_CXXFLAGS="$CXXFLAGS"
  9345. CXXFLAGS=
  9346. echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
  9347. echo "configure:9348: checking whether ${CXX-g++} accepts -g" >&5
  9348. if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
  9349.   echo $ac_n "(cached) $ac_c" 1>&6
  9350. else
  9351.   echo 'void f(){}' > conftest.cc
  9352. if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  9353.   ac_cv_prog_cxx_g=yes
  9354. else
  9355.   ac_cv_prog_cxx_g=no
  9356. fi
  9357. rm -f conftest*
  9358.  
  9359. fi
  9360.  
  9361. echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  9362. if test "$ac_test_CXXFLAGS" = set; then
  9363.   CXXFLAGS="$ac_save_CXXFLAGS"
  9364. elif test $ac_cv_prog_cxx_g = yes; then
  9365.   if test "$GXX" = yes; then
  9366.     CXXFLAGS="-g -O2"
  9367.   else
  9368.     CXXFLAGS="-g"
  9369.   fi
  9370. else
  9371.   if test "$GXX" = yes; then
  9372.     CXXFLAGS="-O2"
  9373.   else
  9374.     CXXFLAGS=
  9375.   fi
  9376. fi
  9377.  
  9378.  
  9379. ac_ext=c
  9380. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  9381. ac_cpp='$CPP $CPPFLAGS'
  9382. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  9383. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  9384. cross_compiling=$ac_cv_prog_cc_cross
  9385.  
  9386.  
  9387. # Extract the first word of "ranlib", so it can be a program name with args.
  9388. set dummy ranlib; ac_word=$2
  9389. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9390. echo "configure:9391: checking for $ac_word" >&5
  9391. if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
  9392.   echo $ac_n "(cached) $ac_c" 1>&6
  9393. else
  9394.   if test -n "$RANLIB"; then
  9395.   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  9396. else
  9397.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9398.   ac_dummy="$PATH"
  9399.   for ac_dir in $ac_dummy; do
  9400.     test -z "$ac_dir" && ac_dir=.
  9401.     if test -f $ac_dir/$ac_word -o \
  9402.             -f $ac_dir/$ac_word$ac_exeext ; then
  9403.       ac_cv_prog_RANLIB="ranlib"
  9404.       break
  9405.     fi
  9406.   done
  9407.   IFS="$ac_save_ifs"
  9408.   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
  9409. fi
  9410. fi
  9411. RANLIB="$ac_cv_prog_RANLIB"
  9412. if test -n "$RANLIB"; then
  9413.   echo "$ac_t""$RANLIB" 1>&6
  9414. else
  9415.   echo "$ac_t""no" 1>&6
  9416. fi
  9417.  
  9418.  
  9419. # Extract the first word of "ar", so it can be a program name with args.
  9420. set dummy ar; ac_word=$2
  9421. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9422. echo "configure:9423: checking for $ac_word" >&5
  9423. if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
  9424.   echo $ac_n "(cached) $ac_c" 1>&6
  9425. else
  9426.   if test -n "$AR"; then
  9427.   ac_cv_prog_AR="$AR" # Let the user override the test.
  9428. else
  9429.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9430.   ac_dummy="$PATH"
  9431.   for ac_dir in $ac_dummy; do
  9432.     test -z "$ac_dir" && ac_dir=.
  9433.     if test -f $ac_dir/$ac_word -o \
  9434.             -f $ac_dir/$ac_word$ac_exeext ; then
  9435.       ac_cv_prog_AR="ar"
  9436.       break
  9437.     fi
  9438.   done
  9439.   IFS="$ac_save_ifs"
  9440.   test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
  9441. fi
  9442. fi
  9443. AR="$ac_cv_prog_AR"
  9444. if test -n "$AR"; then
  9445.   echo "$ac_t""$AR" 1>&6
  9446. else
  9447.   echo "$ac_t""no" 1>&6
  9448. fi
  9449.  
  9450.  
  9451. # Find a good install program.  We prefer a C program (faster),
  9452. # so one script is as good as another.  But avoid the broken or
  9453. # incompatible versions:
  9454. # SysV /etc/install, /usr/sbin/install
  9455. # SunOS /usr/etc/install
  9456. # IRIX /sbin/install
  9457. # AIX /bin/install
  9458. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  9459. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  9460. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9461. # ./install, which can be erroneously created by make from ./install.sh.
  9462. echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  9463. echo "configure:9464: checking for a BSD compatible install" >&5
  9464. if test -z "$INSTALL"; then
  9465. if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  9466.   echo $ac_n "(cached) $ac_c" 1>&6
  9467. else
  9468.     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
  9469.   for ac_dir in $PATH; do
  9470.     # Account for people who put trailing slashes in PATH elements.
  9471.     case "$ac_dir/" in
  9472.     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  9473.     # We reject the install program from OS/2 or W3.1
  9474.     */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
  9475.     *)
  9476.       # OSF1 and SCO ODT 3.0 have their own names for install.
  9477.       # Don't use installbsd from OSF since it installs stuff as root
  9478.       # by default.
  9479.       for ac_prog in ginstall scoinst install; do
  9480.         if test -f $ac_dir/$ac_prog$ac_exeext; then
  9481.       if test $ac_prog = install &&
  9482.             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  9483.         # AIX install.  It has an incompatible calling convention.
  9484.         :
  9485.       else
  9486.         ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
  9487.         break 2
  9488.       fi
  9489.     fi
  9490.       done
  9491.       ;;
  9492.     esac
  9493.   done
  9494.   IFS="$ac_save_IFS"
  9495.  
  9496. fi
  9497.   if test "${ac_cv_path_install+set}" = set; then
  9498.     INSTALL="$ac_cv_path_install"
  9499.   else
  9500.     # As a last resort, use the slow shell script.  We don't cache a
  9501.     # path for INSTALL within a source directory, because that will
  9502.     # break other packages using the cache if that directory is
  9503.     # removed, or if the path is relative.
  9504.     INSTALL="$ac_install_sh"
  9505.   fi
  9506. fi
  9507. echo "$ac_t""$INSTALL" 1>&6
  9508.  
  9509. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  9510. # It thinks the first close brace ends the variable substitution.
  9511. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  9512.  
  9513. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  9514.  
  9515. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  9516.  
  9517.  
  9518. case ${INSTALL} in
  9519.   /* ) # Absolute
  9520.      ;;
  9521.   *)
  9522.      INSTALL=`pwd`/${INSTALL} ;;
  9523. esac
  9524.  
  9525.  
  9526. case "${host}" in
  9527.  
  9528.                 powerpc-*-darwin* )
  9529.         INSTALL_PROGRAM="cp -fp"
  9530.         INSTALL_DATA="cp -fp"
  9531.         ;;
  9532.     *)
  9533.         ;;
  9534. esac
  9535.  
  9536. # Extract the first word of "strip", so it can be a program name with args.
  9537. set dummy strip; ac_word=$2
  9538. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9539. echo "configure:9540: checking for $ac_word" >&5
  9540. if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
  9541.   echo $ac_n "(cached) $ac_c" 1>&6
  9542. else
  9543.   if test -n "$STRIP"; then
  9544.   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  9545. else
  9546.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9547.   ac_dummy="$PATH"
  9548.   for ac_dir in $ac_dummy; do
  9549.     test -z "$ac_dir" && ac_dir=.
  9550.     if test -f $ac_dir/$ac_word -o \
  9551.             -f $ac_dir/$ac_word$ac_exeext ; then
  9552.       ac_cv_prog_STRIP="strip"
  9553.       break
  9554.     fi
  9555.   done
  9556.   IFS="$ac_save_ifs"
  9557.   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
  9558. fi
  9559. fi
  9560. STRIP="$ac_cv_prog_STRIP"
  9561. if test -n "$STRIP"; then
  9562.   echo "$ac_t""$STRIP" 1>&6
  9563. else
  9564.   echo "$ac_t""no" 1>&6
  9565. fi
  9566.  
  9567.  
  9568. echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
  9569. echo "configure:9570: checking if make is GNU make" >&5
  9570. if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
  9571.   echo $ac_n "(cached) $ac_c" 1>&6
  9572. else
  9573.   
  9574.     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
  9575.             egrep -s GNU > /dev/null); then
  9576.         wx_cv_prog_makeisgnu="yes"
  9577.     else
  9578.         wx_cv_prog_makeisgnu="no"
  9579.     fi
  9580.  
  9581. fi
  9582.  
  9583. echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
  9584.  
  9585. if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
  9586.     IF_GNU_MAKE=""
  9587. else
  9588.     IF_GNU_MAKE="#"
  9589. fi
  9590.  
  9591.  
  9592.  
  9593. if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
  9594. echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
  9595. echo "configure:9596: checking if make supports VPATH" >&5
  9596. if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
  9597.   echo $ac_n "(cached) $ac_c" 1>&6
  9598. else
  9599.   
  9600. cat - << EOF > confMake
  9601. check : file
  9602.     cp \$? \$@
  9603.     cp \$? final_file
  9604. EOF
  9605.  
  9606. if test ! -d sub ; then
  9607.   mkdir sub
  9608. fi
  9609. echo dummy > sub/file
  9610. ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
  9611. RESULT=$?
  9612. rm -f sub/file check final_file confMake
  9613. rmdir sub
  9614. if test "$RESULT" = 0; then
  9615.   wx_cv_prog_makevpath="yes"
  9616. else
  9617.   wx_cv_prog_makevpath="no"
  9618. fi
  9619.  
  9620. fi
  9621.  
  9622. echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
  9623.  
  9624. if test "x$wx_cv_prog_makevpath" != "xyes"; then
  9625. { echo "configure: error: 
  9626. You need a make-utility that is able to use the variable
  9627. VPATH correctly.
  9628. If your version of make does not support VPATH correctly,
  9629. please install GNU-make (possibly as gmake), and start
  9630. configure with the following command:
  9631. export MAKE=gmake; ./configure  for sh-type shells
  9632. setenv MAKE gmake; ./configure  for csh-type shells
  9633. Also please do remember to use gmake in this case every time
  9634. you are trying to compile.
  9635. " 1>&2; exit 1; }
  9636. fi fi 
  9637. for ac_prog in 'bison -y' byacc
  9638. do
  9639. # Extract the first word of "$ac_prog", so it can be a program name with args.
  9640. set dummy $ac_prog; ac_word=$2
  9641. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9642. echo "configure:9643: checking for $ac_word" >&5
  9643. if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
  9644.   echo $ac_n "(cached) $ac_c" 1>&6
  9645. else
  9646.   if test -n "$YACC"; then
  9647.   ac_cv_prog_YACC="$YACC" # Let the user override the test.
  9648. else
  9649.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9650.   ac_dummy="$PATH"
  9651.   for ac_dir in $ac_dummy; do
  9652.     test -z "$ac_dir" && ac_dir=.
  9653.     if test -f $ac_dir/$ac_word -o \
  9654.             -f $ac_dir/$ac_word$ac_exeext ; then
  9655.       ac_cv_prog_YACC="$ac_prog"
  9656.       break
  9657.     fi
  9658.   done
  9659.   IFS="$ac_save_ifs"
  9660. fi
  9661. fi
  9662. YACC="$ac_cv_prog_YACC"
  9663. if test -n "$YACC"; then
  9664.   echo "$ac_t""$YACC" 1>&6
  9665. else
  9666.   echo "$ac_t""no" 1>&6
  9667. fi
  9668.  
  9669. test -n "$YACC" && break
  9670. done
  9671. test -n "$YACC" || YACC="yacc"
  9672.  
  9673.  
  9674. # Extract the first word of "flex", so it can be a program name with args.
  9675. set dummy flex; ac_word=$2
  9676. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  9677. echo "configure:9678: checking for $ac_word" >&5
  9678. if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
  9679.   echo $ac_n "(cached) $ac_c" 1>&6
  9680. else
  9681.   if test -n "$LEX"; then
  9682.   ac_cv_prog_LEX="$LEX" # Let the user override the test.
  9683. else
  9684.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  9685.   ac_dummy="$PATH"
  9686.   for ac_dir in $ac_dummy; do
  9687.     test -z "$ac_dir" && ac_dir=.
  9688.     if test -f $ac_dir/$ac_word -o \
  9689.             -f $ac_dir/$ac_word$ac_exeext ; then
  9690.       ac_cv_prog_LEX="flex"
  9691.       break
  9692.     fi
  9693.   done
  9694.   IFS="$ac_save_ifs"
  9695.   test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
  9696. fi
  9697. fi
  9698. LEX="$ac_cv_prog_LEX"
  9699. if test -n "$LEX"; then
  9700.   echo "$ac_t""$LEX" 1>&6
  9701. else
  9702.   echo "$ac_t""no" 1>&6
  9703. fi
  9704.  
  9705. if test -z "$LEXLIB"
  9706. then
  9707.   case "$LEX" in
  9708.   flex*) ac_lib=fl ;;
  9709.   *) ac_lib=l ;;
  9710.   esac
  9711.   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
  9712. echo "configure:9713: checking for yywrap in -l$ac_lib" >&5
  9713. ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
  9714. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  9715.   echo $ac_n "(cached) $ac_c" 1>&6
  9716. else
  9717.   ac_save_LIBS="$LIBS"
  9718. LIBS="-l$ac_lib  $LIBS"
  9719. cat > conftest.$ac_ext <<EOF
  9720. #line 9721 "configure"
  9721. #include "confdefs.h"
  9722. /* Override any gcc2 internal prototype to avoid an error.  */
  9723. /* We use char because int might match the return type of a gcc2
  9724.     builtin and then its argument prototype would still apply.  */
  9725. char yywrap();
  9726.  
  9727. int main() {
  9728. yywrap()
  9729. ; return 0; }
  9730. EOF
  9731. if { (eval echo configure:9732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  9732.   rm -rf conftest*
  9733.   eval "ac_cv_lib_$ac_lib_var=yes"
  9734. else
  9735.   echo "configure: failed program was:" >&5
  9736.   cat conftest.$ac_ext >&5
  9737.   rm -rf conftest*
  9738.   eval "ac_cv_lib_$ac_lib_var=no"
  9739. fi
  9740. rm -f conftest*
  9741. LIBS="$ac_save_LIBS"
  9742.  
  9743. fi
  9744. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  9745.   echo "$ac_t""yes" 1>&6
  9746.   LEXLIB="-l$ac_lib"
  9747. else
  9748.   echo "$ac_t""no" 1>&6
  9749. fi
  9750.  
  9751. fi
  9752.  
  9753.  
  9754. echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
  9755. echo "configure:9756: checking whether ln -s works" >&5
  9756. if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
  9757.   echo $ac_n "(cached) $ac_c" 1>&6
  9758. else
  9759.   rm -f conftestdata
  9760. if ln -s X conftestdata 2>/dev/null
  9761. then
  9762.   rm -f conftestdata
  9763.   ac_cv_prog_LN_S="ln -s"
  9764. else
  9765.   echo A > conftestdata;
  9766.   if ln conftestdata conftestdata2 2>/dev/null; then
  9767.     ac_cv_prog_LN_S=ln
  9768.   else
  9769.     ac_cv_prog_LN_S=cp
  9770.   fi
  9771. fi
  9772. rm -f conftestdata*
  9773. fi
  9774. LN_S="$ac_cv_prog_LN_S"
  9775. if test "$ac_cv_prog_LN_S" = "ln -s"; then
  9776.   echo "$ac_t""yes" 1>&6
  9777. else
  9778.   echo "$ac_t""no" 1>&6
  9779. fi
  9780.  
  9781.  
  9782.  
  9783. if test "$wxUSE_MAC" != 1; then
  9784.     for ac_hdr in strings.h
  9785. do
  9786. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9787. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9788. echo "configure:9789: checking for $ac_hdr" >&5
  9789. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  9790.   echo $ac_n "(cached) $ac_c" 1>&6
  9791. else
  9792.   cat > conftest.$ac_ext <<EOF
  9793. #include <sys/types.h>
  9794. #line 9795 "configure"
  9795. #include "confdefs.h"
  9796. #include <$ac_hdr>
  9797. EOF
  9798. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9799. { (eval echo configure:9800: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9800. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9801. if test -z "$ac_err"; then
  9802.   rm -rf conftest*
  9803.   eval "ac_cv_header_$ac_safe=yes"
  9804. else
  9805.   echo "$ac_err" >&5
  9806.   echo "configure: failed program was:" >&5
  9807.   cat conftest.$ac_ext >&5
  9808.   rm -rf conftest*
  9809.   eval "ac_cv_header_$ac_safe=no"
  9810. fi
  9811. rm -f conftest*
  9812. fi
  9813. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9814.   echo "$ac_t""yes" 1>&6
  9815.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9816.   cat >> confdefs.h <<EOF
  9817. #define $ac_tr_hdr 1
  9818. EOF
  9819.  
  9820. else
  9821.   echo "$ac_t""no" 1>&6
  9822. fi
  9823. done
  9824.  
  9825. fi
  9826.  
  9827. for ac_hdr in stdlib.h
  9828. do
  9829. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9830. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9831. echo "configure:9832: checking for $ac_hdr" >&5
  9832. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  9833.   echo $ac_n "(cached) $ac_c" 1>&6
  9834. else
  9835.   cat > conftest.$ac_ext <<EOF
  9836. #include <sys/types.h>
  9837. #line 9838 "configure"
  9838. #include "confdefs.h"
  9839. #include <$ac_hdr>
  9840. EOF
  9841. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9842. { (eval echo configure:9843: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9843. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9844. if test -z "$ac_err"; then
  9845.   rm -rf conftest*
  9846.   eval "ac_cv_header_$ac_safe=yes"
  9847. else
  9848.   echo "$ac_err" >&5
  9849.   echo "configure: failed program was:" >&5
  9850.   cat conftest.$ac_ext >&5
  9851.   rm -rf conftest*
  9852.   eval "ac_cv_header_$ac_safe=no"
  9853. fi
  9854. rm -f conftest*
  9855. fi
  9856. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9857.   echo "$ac_t""yes" 1>&6
  9858.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9859.   cat >> confdefs.h <<EOF
  9860. #define $ac_tr_hdr 1
  9861. EOF
  9862.  
  9863. else
  9864.   echo "$ac_t""no" 1>&6
  9865. fi
  9866. done
  9867.  
  9868. for ac_hdr in malloc.h
  9869. do
  9870. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9871. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9872. echo "configure:9873: checking for $ac_hdr" >&5
  9873. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  9874.   echo $ac_n "(cached) $ac_c" 1>&6
  9875. else
  9876.   cat > conftest.$ac_ext <<EOF
  9877. #include <sys/types.h>
  9878. #line 9879 "configure"
  9879. #include "confdefs.h"
  9880. #include <$ac_hdr>
  9881. EOF
  9882. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9883. { (eval echo configure:9884: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9884. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9885. if test -z "$ac_err"; then
  9886.   rm -rf conftest*
  9887.   eval "ac_cv_header_$ac_safe=yes"
  9888. else
  9889.   echo "$ac_err" >&5
  9890.   echo "configure: failed program was:" >&5
  9891.   cat conftest.$ac_ext >&5
  9892.   rm -rf conftest*
  9893.   eval "ac_cv_header_$ac_safe=no"
  9894. fi
  9895. rm -f conftest*
  9896. fi
  9897. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9898.   echo "$ac_t""yes" 1>&6
  9899.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9900.   cat >> confdefs.h <<EOF
  9901. #define $ac_tr_hdr 1
  9902. EOF
  9903.  
  9904. else
  9905.   echo "$ac_t""no" 1>&6
  9906. fi
  9907. done
  9908.  
  9909. for ac_hdr in unistd.h
  9910. do
  9911. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9912. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9913. echo "configure:9914: checking for $ac_hdr" >&5
  9914. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  9915.   echo $ac_n "(cached) $ac_c" 1>&6
  9916. else
  9917.   cat > conftest.$ac_ext <<EOF
  9918. #include <sys/types.h>
  9919. #line 9920 "configure"
  9920. #include "confdefs.h"
  9921. #include <$ac_hdr>
  9922. EOF
  9923. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9924. { (eval echo configure:9925: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9925. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9926. if test -z "$ac_err"; then
  9927.   rm -rf conftest*
  9928.   eval "ac_cv_header_$ac_safe=yes"
  9929. else
  9930.   echo "$ac_err" >&5
  9931.   echo "configure: failed program was:" >&5
  9932.   cat conftest.$ac_ext >&5
  9933.   rm -rf conftest*
  9934.   eval "ac_cv_header_$ac_safe=no"
  9935. fi
  9936. rm -f conftest*
  9937. fi
  9938. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9939.   echo "$ac_t""yes" 1>&6
  9940.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9941.   cat >> confdefs.h <<EOF
  9942. #define $ac_tr_hdr 1
  9943. EOF
  9944.  
  9945. else
  9946.   echo "$ac_t""no" 1>&6
  9947. fi
  9948. done
  9949.  
  9950. for ac_hdr in wchar.h
  9951. do
  9952. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9953. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9954. echo "configure:9955: checking for $ac_hdr" >&5
  9955. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  9956.   echo $ac_n "(cached) $ac_c" 1>&6
  9957. else
  9958.   cat > conftest.$ac_ext <<EOF
  9959. #include <sys/types.h>
  9960. #line 9961 "configure"
  9961. #include "confdefs.h"
  9962. #include <$ac_hdr>
  9963. EOF
  9964. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  9965. { (eval echo configure:9966: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  9966. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  9967. if test -z "$ac_err"; then
  9968.   rm -rf conftest*
  9969.   eval "ac_cv_header_$ac_safe=yes"
  9970. else
  9971.   echo "$ac_err" >&5
  9972.   echo "configure: failed program was:" >&5
  9973.   cat conftest.$ac_ext >&5
  9974.   rm -rf conftest*
  9975.   eval "ac_cv_header_$ac_safe=no"
  9976. fi
  9977. rm -f conftest*
  9978. fi
  9979. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  9980.   echo "$ac_t""yes" 1>&6
  9981.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  9982.   cat >> confdefs.h <<EOF
  9983. #define $ac_tr_hdr 1
  9984. EOF
  9985.  
  9986. else
  9987.   echo "$ac_t""no" 1>&6
  9988. fi
  9989. done
  9990.  
  9991.  
  9992. if test "$ac_cv_header_wchar_h" != "yes"; then
  9993.         for ac_hdr in wcstr.h
  9994. do
  9995. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  9996. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  9997. echo "configure:9998: checking for $ac_hdr" >&5
  9998. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  9999.   echo $ac_n "(cached) $ac_c" 1>&6
  10000. else
  10001.   cat > conftest.$ac_ext <<EOF
  10002. #include <sys/types.h>
  10003. #line 10004 "configure"
  10004. #include "confdefs.h"
  10005. #include <$ac_hdr>
  10006. EOF
  10007. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10008. { (eval echo configure:10009: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10009. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10010. if test -z "$ac_err"; then
  10011.   rm -rf conftest*
  10012.   eval "ac_cv_header_$ac_safe=yes"
  10013. else
  10014.   echo "$ac_err" >&5
  10015.   echo "configure: failed program was:" >&5
  10016.   cat conftest.$ac_ext >&5
  10017.   rm -rf conftest*
  10018.   eval "ac_cv_header_$ac_safe=no"
  10019. fi
  10020. rm -f conftest*
  10021. fi
  10022. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10023.   echo "$ac_t""yes" 1>&6
  10024.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10025.   cat >> confdefs.h <<EOF
  10026. #define $ac_tr_hdr 1
  10027. EOF
  10028.  
  10029. else
  10030.   echo "$ac_t""no" 1>&6
  10031. fi
  10032. done
  10033.  
  10034. fi
  10035.  
  10036. for ac_hdr in fnmatch.h
  10037. do
  10038. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10039. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10040. echo "configure:10041: checking for $ac_hdr" >&5
  10041. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10042.   echo $ac_n "(cached) $ac_c" 1>&6
  10043. else
  10044.   cat > conftest.$ac_ext <<EOF
  10045. #include <sys/types.h>
  10046. #line 10047 "configure"
  10047. #include "confdefs.h"
  10048. #include <$ac_hdr>
  10049. EOF
  10050. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10051. { (eval echo configure:10052: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10052. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10053. if test -z "$ac_err"; then
  10054.   rm -rf conftest*
  10055.   eval "ac_cv_header_$ac_safe=yes"
  10056. else
  10057.   echo "$ac_err" >&5
  10058.   echo "configure: failed program was:" >&5
  10059.   cat conftest.$ac_ext >&5
  10060.   rm -rf conftest*
  10061.   eval "ac_cv_header_$ac_safe=no"
  10062. fi
  10063. rm -f conftest*
  10064. fi
  10065. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10066.   echo "$ac_t""yes" 1>&6
  10067.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10068.   cat >> confdefs.h <<EOF
  10069. #define $ac_tr_hdr 1
  10070. EOF
  10071.  
  10072. else
  10073.   echo "$ac_t""no" 1>&6
  10074. fi
  10075. done
  10076.  
  10077.  
  10078. if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
  10079.     for ac_func in fnmatch
  10080. do
  10081. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  10082. echo "configure:10083: checking for $ac_func" >&5
  10083. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  10084.   echo $ac_n "(cached) $ac_c" 1>&6
  10085. else
  10086.   cat > conftest.$ac_ext <<EOF
  10087. #line 10088 "configure"
  10088. #include "confdefs.h"
  10089. /* System header to define __stub macros and hopefully few prototypes,
  10090.     which can conflict with char $ac_func(); below.  */
  10091. #include <assert.h>
  10092. /* Override any gcc2 internal prototype to avoid an error.  */
  10093. /* We use char because int might match the return type of a gcc2
  10094.     builtin and then its argument prototype would still apply.  */
  10095. char $ac_func();
  10096.  
  10097. int main() {
  10098.  
  10099. /* The GNU C library defines this for functions which it implements
  10100.     to always fail with ENOSYS.  Some functions are actually named
  10101.     something starting with __ and the normal name is an alias.  */
  10102. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  10103. choke me
  10104. #else
  10105. $ac_func();
  10106. #endif
  10107.  
  10108. ; return 0; }
  10109. EOF
  10110. if { (eval echo configure:10111: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  10111.   rm -rf conftest*
  10112.   eval "ac_cv_func_$ac_func=yes"
  10113. else
  10114.   echo "configure: failed program was:" >&5
  10115.   cat conftest.$ac_ext >&5
  10116.   rm -rf conftest*
  10117.   eval "ac_cv_func_$ac_func=no"
  10118. fi
  10119. rm -f conftest*
  10120. fi
  10121.  
  10122. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  10123.   echo "$ac_t""yes" 1>&6
  10124.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  10125.   cat >> confdefs.h <<EOF
  10126. #define $ac_tr_func 1
  10127. EOF
  10128.  
  10129. else
  10130.   echo "$ac_t""no" 1>&6
  10131. fi
  10132. done
  10133.  
  10134. fi
  10135.  
  10136. for ac_hdr in langinfo.h
  10137. do
  10138. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10139. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10140. echo "configure:10141: checking for $ac_hdr" >&5
  10141. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10142.   echo $ac_n "(cached) $ac_c" 1>&6
  10143. else
  10144.   cat > conftest.$ac_ext <<EOF
  10145. #include <sys/types.h>
  10146. #line 10147 "configure"
  10147. #include "confdefs.h"
  10148. #include <$ac_hdr>
  10149. EOF
  10150. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10151. { (eval echo configure:10152: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10152. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10153. if test -z "$ac_err"; then
  10154.   rm -rf conftest*
  10155.   eval "ac_cv_header_$ac_safe=yes"
  10156. else
  10157.   echo "$ac_err" >&5
  10158.   echo "configure: failed program was:" >&5
  10159.   cat conftest.$ac_ext >&5
  10160.   rm -rf conftest*
  10161.   eval "ac_cv_header_$ac_safe=no"
  10162. fi
  10163. rm -f conftest*
  10164. fi
  10165. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10166.   echo "$ac_t""yes" 1>&6
  10167.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10168.   cat >> confdefs.h <<EOF
  10169. #define $ac_tr_hdr 1
  10170. EOF
  10171.  
  10172. else
  10173.   echo "$ac_t""no" 1>&6
  10174. fi
  10175. done
  10176.  
  10177.  
  10178. if test "$wxUSE_GUI" = "yes"; then
  10179.     if test "$wxUSE_UNIX" = "yes"; then
  10180.                 for ac_hdr in X11/XKBlib.h
  10181. do
  10182. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10183. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10184. echo "configure:10185: checking for $ac_hdr" >&5
  10185. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10186.   echo $ac_n "(cached) $ac_c" 1>&6
  10187. else
  10188.   cat > conftest.$ac_ext <<EOF
  10189. #include <sys/types.h>
  10190. #line 10191 "configure"
  10191. #include "confdefs.h"
  10192. #include <$ac_hdr>
  10193. EOF
  10194. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10195. { (eval echo configure:10196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10196. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10197. if test -z "$ac_err"; then
  10198.   rm -rf conftest*
  10199.   eval "ac_cv_header_$ac_safe=yes"
  10200. else
  10201.   echo "$ac_err" >&5
  10202.   echo "configure: failed program was:" >&5
  10203.   cat conftest.$ac_ext >&5
  10204.   rm -rf conftest*
  10205.   eval "ac_cv_header_$ac_safe=no"
  10206. fi
  10207. rm -f conftest*
  10208. fi
  10209. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10210.   echo "$ac_t""yes" 1>&6
  10211.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10212.   cat >> confdefs.h <<EOF
  10213. #define $ac_tr_hdr 1
  10214. EOF
  10215.  
  10216. else
  10217.   echo "$ac_t""no" 1>&6
  10218. fi
  10219. done
  10220.  
  10221.     fi
  10222. fi
  10223.  
  10224.  
  10225. echo $ac_n "checking for working const""... $ac_c" 1>&6
  10226. echo "configure:10227: checking for working const" >&5
  10227. if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
  10228.   echo $ac_n "(cached) $ac_c" 1>&6
  10229. else
  10230.   cat > conftest.$ac_ext <<EOF
  10231. #line 10232 "configure"
  10232. #include "confdefs.h"
  10233.  
  10234. int main() {
  10235.  
  10236. /* Ultrix mips cc rejects this.  */
  10237. typedef int charset[2]; const charset x;
  10238. /* SunOS 4.1.1 cc rejects this.  */
  10239. char const *const *ccp;
  10240. char **p;
  10241. /* NEC SVR4.0.2 mips cc rejects this.  */
  10242. struct point {int x, y;};
  10243. static struct point const zero = {0,0};
  10244. /* AIX XL C 1.02.0.0 rejects this.
  10245.    It does not let you subtract one const X* pointer from another in an arm
  10246.    of an if-expression whose if-part is not a constant expression */
  10247. const char *g = "string";
  10248. ccp = &g + (g ? g-g : 0);
  10249. /* HPUX 7.0 cc rejects these. */
  10250. ++ccp;
  10251. p = (char**) ccp;
  10252. ccp = (char const *const *) p;
  10253. { /* SCO 3.2v4 cc rejects this.  */
  10254.   char *t;
  10255.   char const *s = 0 ? (char *) 0 : (char const *) 0;
  10256.  
  10257.   *t++ = 0;
  10258. }
  10259. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
  10260.   int x[] = {25, 17};
  10261.   const int *foo = &x[0];
  10262.   ++foo;
  10263. }
  10264. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10265.   typedef const int *iptr;
  10266.   iptr p = 0;
  10267.   ++p;
  10268. }
  10269. { /* AIX XL C 1.02.0.0 rejects this saying
  10270.      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10271.   struct s { int j; const int *ap[3]; };
  10272.   struct s *b; b->j = 5;
  10273. }
  10274. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10275.   const int foo = 10;
  10276. }
  10277.  
  10278. ; return 0; }
  10279. EOF
  10280. if { (eval echo configure:10281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10281.   rm -rf conftest*
  10282.   ac_cv_c_const=yes
  10283. else
  10284.   echo "configure: failed program was:" >&5
  10285.   cat conftest.$ac_ext >&5
  10286.   rm -rf conftest*
  10287.   ac_cv_c_const=no
  10288. fi
  10289. rm -f conftest*
  10290. fi
  10291.  
  10292. echo "$ac_t""$ac_cv_c_const" 1>&6
  10293. if test $ac_cv_c_const = no; then
  10294.   cat >> confdefs.h <<\EOF
  10295. #define const 
  10296. EOF
  10297.  
  10298. fi
  10299.  
  10300. echo $ac_n "checking for inline""... $ac_c" 1>&6
  10301. echo "configure:10302: checking for inline" >&5
  10302. if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
  10303.   echo $ac_n "(cached) $ac_c" 1>&6
  10304. else
  10305.   ac_cv_c_inline=no
  10306. for ac_kw in inline __inline__ __inline; do
  10307.   cat > conftest.$ac_ext <<EOF
  10308. #line 10309 "configure"
  10309. #include "confdefs.h"
  10310.  
  10311. int main() {
  10312. } $ac_kw foo() {
  10313. ; return 0; }
  10314. EOF
  10315. if { (eval echo configure:10316: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10316.   rm -rf conftest*
  10317.   ac_cv_c_inline=$ac_kw; break
  10318. else
  10319.   echo "configure: failed program was:" >&5
  10320.   cat conftest.$ac_ext >&5
  10321. fi
  10322. rm -f conftest*
  10323. done
  10324.  
  10325. fi
  10326.  
  10327. echo "$ac_t""$ac_cv_c_inline" 1>&6
  10328. case "$ac_cv_c_inline" in
  10329.   inline | yes) ;;
  10330.   no) cat >> confdefs.h <<\EOF
  10331. #define inline 
  10332. EOF
  10333.  ;;
  10334.   *)  cat >> confdefs.h <<EOF
  10335. #define inline $ac_cv_c_inline
  10336. EOF
  10337.  ;;
  10338. esac
  10339.  
  10340.  
  10341. echo $ac_n "checking size of char""... $ac_c" 1>&6
  10342. echo "configure:10343: checking size of char" >&5
  10343. if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
  10344.   echo $ac_n "(cached) $ac_c" 1>&6
  10345. else
  10346.   if test "$cross_compiling" = yes; then
  10347.   ac_cv_sizeof_char=1
  10348. else
  10349.   cat > conftest.$ac_ext <<EOF
  10350. #line 10351 "configure"
  10351. #include "confdefs.h"
  10352. #include <stdio.h>
  10353. main()
  10354. {
  10355.   FILE *f=fopen("conftestval", "w");
  10356.   if (!f) exit(1);
  10357.   fprintf(f, "%d\n", sizeof(char));
  10358.   exit(0);
  10359. }
  10360. EOF
  10361. if { (eval echo configure:10362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10362. then
  10363.   ac_cv_sizeof_char=`cat conftestval`
  10364. else
  10365.   echo "configure: failed program was:" >&5
  10366.   cat conftest.$ac_ext >&5
  10367.   rm -fr conftest*
  10368.   ac_cv_sizeof_char=0
  10369. fi
  10370. rm -fr conftest*
  10371. fi
  10372.  
  10373. fi
  10374. echo "$ac_t""$ac_cv_sizeof_char" 1>&6
  10375. cat >> confdefs.h <<EOF
  10376. #define SIZEOF_CHAR $ac_cv_sizeof_char
  10377. EOF
  10378.  
  10379.  
  10380. echo $ac_n "checking size of short""... $ac_c" 1>&6
  10381. echo "configure:10382: checking size of short" >&5
  10382. if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
  10383.   echo $ac_n "(cached) $ac_c" 1>&6
  10384. else
  10385.   if test "$cross_compiling" = yes; then
  10386.   ac_cv_sizeof_short=2
  10387. else
  10388.   cat > conftest.$ac_ext <<EOF
  10389. #line 10390 "configure"
  10390. #include "confdefs.h"
  10391. #include <stdio.h>
  10392. main()
  10393. {
  10394.   FILE *f=fopen("conftestval", "w");
  10395.   if (!f) exit(1);
  10396.   fprintf(f, "%d\n", sizeof(short));
  10397.   exit(0);
  10398. }
  10399. EOF
  10400. if { (eval echo configure:10401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10401. then
  10402.   ac_cv_sizeof_short=`cat conftestval`
  10403. else
  10404.   echo "configure: failed program was:" >&5
  10405.   cat conftest.$ac_ext >&5
  10406.   rm -fr conftest*
  10407.   ac_cv_sizeof_short=0
  10408. fi
  10409. rm -fr conftest*
  10410. fi
  10411.  
  10412. fi
  10413. echo "$ac_t""$ac_cv_sizeof_short" 1>&6
  10414. cat >> confdefs.h <<EOF
  10415. #define SIZEOF_SHORT $ac_cv_sizeof_short
  10416. EOF
  10417.  
  10418.  
  10419. echo $ac_n "checking size of void *""... $ac_c" 1>&6
  10420. echo "configure:10421: checking size of void *" >&5
  10421. if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
  10422.   echo $ac_n "(cached) $ac_c" 1>&6
  10423. else
  10424.   if test "$cross_compiling" = yes; then
  10425.   ac_cv_sizeof_void_p=4
  10426. else
  10427.   cat > conftest.$ac_ext <<EOF
  10428. #line 10429 "configure"
  10429. #include "confdefs.h"
  10430. #include <stdio.h>
  10431. main()
  10432. {
  10433.   FILE *f=fopen("conftestval", "w");
  10434.   if (!f) exit(1);
  10435.   fprintf(f, "%d\n", sizeof(void *));
  10436.   exit(0);
  10437. }
  10438. EOF
  10439. if { (eval echo configure:10440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10440. then
  10441.   ac_cv_sizeof_void_p=`cat conftestval`
  10442. else
  10443.   echo "configure: failed program was:" >&5
  10444.   cat conftest.$ac_ext >&5
  10445.   rm -fr conftest*
  10446.   ac_cv_sizeof_void_p=0
  10447. fi
  10448. rm -fr conftest*
  10449. fi
  10450.  
  10451. fi
  10452. echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
  10453. cat >> confdefs.h <<EOF
  10454. #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
  10455. EOF
  10456.  
  10457.  
  10458. echo $ac_n "checking size of int""... $ac_c" 1>&6
  10459. echo "configure:10460: checking size of int" >&5
  10460. if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
  10461.   echo $ac_n "(cached) $ac_c" 1>&6
  10462. else
  10463.   if test "$cross_compiling" = yes; then
  10464.   ac_cv_sizeof_int=4
  10465. else
  10466.   cat > conftest.$ac_ext <<EOF
  10467. #line 10468 "configure"
  10468. #include "confdefs.h"
  10469. #include <stdio.h>
  10470. main()
  10471. {
  10472.   FILE *f=fopen("conftestval", "w");
  10473.   if (!f) exit(1);
  10474.   fprintf(f, "%d\n", sizeof(int));
  10475.   exit(0);
  10476. }
  10477. EOF
  10478. if { (eval echo configure:10479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10479. then
  10480.   ac_cv_sizeof_int=`cat conftestval`
  10481. else
  10482.   echo "configure: failed program was:" >&5
  10483.   cat conftest.$ac_ext >&5
  10484.   rm -fr conftest*
  10485.   ac_cv_sizeof_int=0
  10486. fi
  10487. rm -fr conftest*
  10488. fi
  10489.  
  10490. fi
  10491. echo "$ac_t""$ac_cv_sizeof_int" 1>&6
  10492. cat >> confdefs.h <<EOF
  10493. #define SIZEOF_INT $ac_cv_sizeof_int
  10494. EOF
  10495.  
  10496.  
  10497. echo $ac_n "checking size of long""... $ac_c" 1>&6
  10498. echo "configure:10499: checking size of long" >&5
  10499. if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
  10500.   echo $ac_n "(cached) $ac_c" 1>&6
  10501. else
  10502.   if test "$cross_compiling" = yes; then
  10503.   ac_cv_sizeof_long=4
  10504. else
  10505.   cat > conftest.$ac_ext <<EOF
  10506. #line 10507 "configure"
  10507. #include "confdefs.h"
  10508. #include <stdio.h>
  10509. main()
  10510. {
  10511.   FILE *f=fopen("conftestval", "w");
  10512.   if (!f) exit(1);
  10513.   fprintf(f, "%d\n", sizeof(long));
  10514.   exit(0);
  10515. }
  10516. EOF
  10517. if { (eval echo configure:10518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10518. then
  10519.   ac_cv_sizeof_long=`cat conftestval`
  10520. else
  10521.   echo "configure: failed program was:" >&5
  10522.   cat conftest.$ac_ext >&5
  10523.   rm -fr conftest*
  10524.   ac_cv_sizeof_long=0
  10525. fi
  10526. rm -fr conftest*
  10527. fi
  10528.  
  10529. fi
  10530. echo "$ac_t""$ac_cv_sizeof_long" 1>&6
  10531. cat >> confdefs.h <<EOF
  10532. #define SIZEOF_LONG $ac_cv_sizeof_long
  10533. EOF
  10534.  
  10535.  
  10536.  
  10537. case "${host}" in
  10538.     arm-*-linux* )
  10539.         echo $ac_n "checking size of long long""... $ac_c" 1>&6
  10540. echo "configure:10541: checking size of long long" >&5
  10541. if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  10542.   echo $ac_n "(cached) $ac_c" 1>&6
  10543. else
  10544.   if test "$cross_compiling" = yes; then
  10545.   ac_cv_sizeof_long_long=8
  10546. else
  10547.   cat > conftest.$ac_ext <<EOF
  10548. #line 10549 "configure"
  10549. #include "confdefs.h"
  10550. #include <stdio.h>
  10551. main()
  10552. {
  10553.   FILE *f=fopen("conftestval", "w");
  10554.   if (!f) exit(1);
  10555.   fprintf(f, "%d\n", sizeof(long long));
  10556.   exit(0);
  10557. }
  10558. EOF
  10559. if { (eval echo configure:10560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10560. then
  10561.   ac_cv_sizeof_long_long=`cat conftestval`
  10562. else
  10563.   echo "configure: failed program was:" >&5
  10564.   cat conftest.$ac_ext >&5
  10565.   rm -fr conftest*
  10566.   ac_cv_sizeof_long_long=0
  10567. fi
  10568. rm -fr conftest*
  10569. fi
  10570.  
  10571. fi
  10572. echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
  10573. cat >> confdefs.h <<EOF
  10574. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10575. EOF
  10576.  
  10577.  
  10578.     ;;
  10579.     * )
  10580.         echo $ac_n "checking size of long long""... $ac_c" 1>&6
  10581. echo "configure:10582: checking size of long long" >&5
  10582. if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
  10583.   echo $ac_n "(cached) $ac_c" 1>&6
  10584. else
  10585.   if test "$cross_compiling" = yes; then
  10586.   ac_cv_sizeof_long_long=0
  10587. else
  10588.   cat > conftest.$ac_ext <<EOF
  10589. #line 10590 "configure"
  10590. #include "confdefs.h"
  10591. #include <stdio.h>
  10592. main()
  10593. {
  10594.   FILE *f=fopen("conftestval", "w");
  10595.   if (!f) exit(1);
  10596.   fprintf(f, "%d\n", sizeof(long long));
  10597.   exit(0);
  10598. }
  10599. EOF
  10600. if { (eval echo configure:10601: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10601. then
  10602.   ac_cv_sizeof_long_long=`cat conftestval`
  10603. else
  10604.   echo "configure: failed program was:" >&5
  10605.   cat conftest.$ac_ext >&5
  10606.   rm -fr conftest*
  10607.   ac_cv_sizeof_long_long=0
  10608. fi
  10609. rm -fr conftest*
  10610. fi
  10611.  
  10612. fi
  10613. echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
  10614. cat >> confdefs.h <<EOF
  10615. #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
  10616. EOF
  10617.  
  10618.  
  10619. esac
  10620.  
  10621. echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
  10622. echo "configure:10623: checking size of wchar_t" >&5
  10623. if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
  10624.   echo $ac_n "(cached) $ac_c" 1>&6
  10625. else
  10626.   
  10627.     if test "$cross_compiling" = yes; then
  10628.   wx_cv_sizeof_wchar_t=4
  10629.     
  10630. else
  10631.   cat > conftest.$ac_ext <<EOF
  10632. #line 10633 "configure"
  10633. #include "confdefs.h"
  10634.  
  10635.             #ifdef HAVE_WCHAR_H
  10636.             #  ifdef __CYGWIN__
  10637.             #    include <stddef.h>
  10638.             #  endif
  10639.             #  include <wchar.h>
  10640.             #endif
  10641.             #ifdef HAVE_STDLIB_H
  10642.             #  include <stdlib.h>
  10643.             #endif
  10644.             #include <stdio.h>
  10645.             int main()
  10646.             {
  10647.                 FILE *f=fopen("conftestval", "w");
  10648.                 if (!f) exit(1);
  10649.                 fprintf(f, "%i", sizeof(wchar_t));
  10650.                 exit(0);
  10651.             }
  10652.         
  10653. EOF
  10654. if { (eval echo configure:10655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10655. then
  10656.   wx_cv_sizeof_wchar_t=`cat conftestval`
  10657. else
  10658.   echo "configure: failed program was:" >&5
  10659.   cat conftest.$ac_ext >&5
  10660.   rm -fr conftest*
  10661.   wx_cv_sizeof_wchar_t=0
  10662. fi
  10663. rm -fr conftest*
  10664. fi
  10665.  
  10666.  
  10667. fi
  10668.  
  10669. echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
  10670.  
  10671. cat >> confdefs.h <<EOF
  10672. #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
  10673. EOF
  10674.  
  10675.  
  10676. # Check whether --enable-largefile or --disable-largefile was given.
  10677. if test "${enable_largefile+set}" = set; then
  10678.   enableval="$enable_largefile"
  10679.   :
  10680. fi
  10681.  
  10682. if test "$enable_largefile" != no; then
  10683.             wx_largefile=no
  10684.     
  10685.     echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
  10686. echo "configure:10687: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  10687. if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
  10688.   echo $ac_n "(cached) $ac_c" 1>&6
  10689. else
  10690.   
  10691.           cat > conftest.$ac_ext <<EOF
  10692. #line 10693 "configure"
  10693. #include "confdefs.h"
  10694. #define _FILE_OFFSET_BITS 64
  10695.                           #include <sys/types.h>
  10696. int main() {
  10697. typedef struct {
  10698.     unsigned int field: sizeof(off_t) == 8;
  10699. } wxlf;
  10700.  
  10701. ; return 0; }
  10702. EOF
  10703. if { (eval echo configure:10704: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10704.   rm -rf conftest*
  10705.   ac_cv_sys_file_offset_bits=64
  10706. else
  10707.   echo "configure: failed program was:" >&5
  10708.   cat conftest.$ac_ext >&5
  10709.   rm -rf conftest*
  10710.   ac_cv_sys_file_offset_bits=no
  10711. fi
  10712. rm -f conftest*
  10713.         
  10714.     
  10715. fi
  10716.  
  10717. echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
  10718.  
  10719.     if test "$ac_cv_sys_file_offset_bits" != no; then
  10720.         wx_largefile=yes
  10721.         cat >> confdefs.h <<EOF
  10722. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  10723. EOF
  10724.  
  10725.     fi
  10726.  
  10727.     if test "x$wx_largefile" != "xyes"; then
  10728.         
  10729.     echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
  10730. echo "configure:10731: checking for _LARGE_FILES value needed for large files" >&5
  10731. if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
  10732.   echo $ac_n "(cached) $ac_c" 1>&6
  10733. else
  10734.   
  10735.           cat > conftest.$ac_ext <<EOF
  10736. #line 10737 "configure"
  10737. #include "confdefs.h"
  10738. #define _LARGE_FILES 1
  10739.                           #include <sys/types.h>
  10740. int main() {
  10741. typedef struct {
  10742.     unsigned int field: sizeof(off_t) == 8;
  10743. } wxlf;
  10744.  
  10745. ; return 0; }
  10746. EOF
  10747. if { (eval echo configure:10748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10748.   rm -rf conftest*
  10749.   ac_cv_sys_large_files=1
  10750. else
  10751.   echo "configure: failed program was:" >&5
  10752.   cat conftest.$ac_ext >&5
  10753.   rm -rf conftest*
  10754.   ac_cv_sys_large_files=no
  10755. fi
  10756. rm -f conftest*
  10757.         
  10758.     
  10759. fi
  10760.  
  10761. echo "$ac_t""$ac_cv_sys_large_files" 1>&6
  10762.  
  10763.     if test "$ac_cv_sys_large_files" != no; then
  10764.         wx_largefile=yes
  10765.         cat >> confdefs.h <<EOF
  10766. #define _LARGE_FILES $ac_cv_sys_large_files
  10767. EOF
  10768.  
  10769.     fi
  10770.  
  10771.     fi
  10772.  
  10773.     echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
  10774. echo "configure:10775: checking if large file support is available" >&5
  10775.     if test "x$wx_largefile" = "xyes"; then
  10776.         cat >> confdefs.h <<\EOF
  10777. #define HAVE_LARGEFILE_SUPPORT 1
  10778. EOF
  10779.  
  10780.     fi
  10781.     echo "$ac_t""$wx_largefile" 1>&6
  10782. fi
  10783.  
  10784.  
  10785. echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
  10786. echo "configure:10787: checking whether byte ordering is bigendian" >&5
  10787. if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
  10788.   echo $ac_n "(cached) $ac_c" 1>&6
  10789. else
  10790.   ac_cv_c_bigendian=unknown
  10791. # See if sys/param.h defines the BYTE_ORDER macro.
  10792. cat > conftest.$ac_ext <<EOF
  10793. #line 10794 "configure"
  10794. #include "confdefs.h"
  10795. #include <sys/types.h>
  10796. #include <sys/param.h>
  10797. int main() {
  10798.  
  10799. #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
  10800.  bogus endian macros
  10801. #endif
  10802. ; return 0; }
  10803. EOF
  10804. if { (eval echo configure:10805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10805.   rm -rf conftest*
  10806.   # It does; now see whether it defined to BIG_ENDIAN or not.
  10807. cat > conftest.$ac_ext <<EOF
  10808. #line 10809 "configure"
  10809. #include "confdefs.h"
  10810. #include <sys/types.h>
  10811. #include <sys/param.h>
  10812. int main() {
  10813.  
  10814. #if BYTE_ORDER != BIG_ENDIAN
  10815.  not big endian
  10816. #endif
  10817. ; return 0; }
  10818. EOF
  10819. if { (eval echo configure:10820: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  10820.   rm -rf conftest*
  10821.   ac_cv_c_bigendian=yes
  10822. else
  10823.   echo "configure: failed program was:" >&5
  10824.   cat conftest.$ac_ext >&5
  10825.   rm -rf conftest*
  10826.   ac_cv_c_bigendian=no
  10827. fi
  10828. rm -f conftest*
  10829. else
  10830.   echo "configure: failed program was:" >&5
  10831.   cat conftest.$ac_ext >&5
  10832. fi
  10833. rm -f conftest*
  10834. if test $ac_cv_c_bigendian = unknown; then
  10835. if test "$cross_compiling" = yes; then
  10836.   ac_cv_c_bigendian=unknown
  10837. else
  10838.   cat > conftest.$ac_ext <<EOF
  10839. #line 10840 "configure"
  10840. #include "confdefs.h"
  10841. main () {
  10842.   /* Are we little or big endian?  From Harbison&Steele.  */
  10843.   union
  10844.   {
  10845.     long l;
  10846.     char c[sizeof (long)];
  10847.   } u;
  10848.   u.l = 1;
  10849.   exit (u.c[sizeof (long) - 1] == 1);
  10850. }
  10851. EOF
  10852. if { (eval echo configure:10853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  10853. then
  10854.   ac_cv_c_bigendian=no
  10855. else
  10856.   echo "configure: failed program was:" >&5
  10857.   cat conftest.$ac_ext >&5
  10858.   rm -fr conftest*
  10859.   ac_cv_c_bigendian=yes
  10860. fi
  10861. rm -fr conftest*
  10862. fi
  10863.  
  10864. fi
  10865. fi
  10866.  
  10867. echo "$ac_t""$ac_cv_c_bigendian" 1>&6
  10868. if test $ac_cv_c_bigendian = unknown; then
  10869.   echo "configure: 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" 1>&2
  10870. fi
  10871. if test $ac_cv_c_bigendian = yes; then
  10872.   cat >> confdefs.h <<\EOF
  10873. #define WORDS_BIGENDIAN 1
  10874. EOF
  10875.  
  10876. fi
  10877.  
  10878.  
  10879. echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
  10880. echo "configure:10881: checking how to run the C++ preprocessor" >&5
  10881. if test -z "$CXXCPP"; then
  10882. if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
  10883.   echo $ac_n "(cached) $ac_c" 1>&6
  10884. else
  10885.   ac_ext=C
  10886. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10887. ac_cpp='$CXXCPP $CPPFLAGS'
  10888. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10889. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10890. cross_compiling=$ac_cv_prog_cxx_cross
  10891.   CXXCPP="${CXX-g++} -E"
  10892.   cat > conftest.$ac_ext <<EOF
  10893. #include <sys/types.h>
  10894. #line 10895 "configure"
  10895. #include "confdefs.h"
  10896. #include <stdlib.h>
  10897. EOF
  10898. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10899. { (eval echo configure:10900: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10900. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10901. if test -z "$ac_err"; then
  10902.   :
  10903. else
  10904.   echo "$ac_err" >&5
  10905.   echo "configure: failed program was:" >&5
  10906.   cat conftest.$ac_ext >&5
  10907.   rm -rf conftest*
  10908.   CXXCPP=/lib/cpp
  10909. fi
  10910. rm -f conftest*
  10911.   ac_cv_prog_CXXCPP="$CXXCPP"
  10912. ac_ext=C
  10913. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10914. ac_cpp='$CXXCPP $CPPFLAGS'
  10915. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10916. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10917. cross_compiling=$ac_cv_prog_cxx_cross
  10918. fi
  10919. fi
  10920. CXXCPP="$ac_cv_prog_CXXCPP"
  10921. echo "$ac_t""$CXXCPP" 1>&6
  10922.  
  10923.  
  10924.   if test "$cross_compiling" = "yes"; then
  10925.     cat >> confdefs.h <<\EOF
  10926. #define wxUSE_IOSTREAMH 1
  10927. EOF
  10928.  
  10929.   else
  10930.     
  10931.     ac_ext=C
  10932. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10933. ac_cpp='$CXXCPP $CPPFLAGS'
  10934. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10935. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10936. cross_compiling=$ac_cv_prog_cxx_cross
  10937.  
  10938.  
  10939.     for ac_hdr in iostream
  10940. do
  10941. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  10942. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  10943. echo "configure:10944: checking for $ac_hdr" >&5
  10944. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  10945.   echo $ac_n "(cached) $ac_c" 1>&6
  10946. else
  10947.   cat > conftest.$ac_ext <<EOF
  10948. #include <sys/types.h>
  10949. #line 10950 "configure"
  10950. #include "confdefs.h"
  10951. #include <$ac_hdr>
  10952. EOF
  10953. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  10954. { (eval echo configure:10955: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  10955. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  10956. if test -z "$ac_err"; then
  10957.   rm -rf conftest*
  10958.   eval "ac_cv_header_$ac_safe=yes"
  10959. else
  10960.   echo "$ac_err" >&5
  10961.   echo "configure: failed program was:" >&5
  10962.   cat conftest.$ac_ext >&5
  10963.   rm -rf conftest*
  10964.   eval "ac_cv_header_$ac_safe=no"
  10965. fi
  10966. rm -f conftest*
  10967. fi
  10968. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  10969.   echo "$ac_t""yes" 1>&6
  10970.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  10971.   cat >> confdefs.h <<EOF
  10972. #define $ac_tr_hdr 1
  10973. EOF
  10974.  
  10975. else
  10976.   echo "$ac_t""no" 1>&6
  10977. fi
  10978. done
  10979.  
  10980.  
  10981.     if test "$ac_cv_header_iostream" = "yes" ; then
  10982.       :
  10983.     else
  10984.       cat >> confdefs.h <<\EOF
  10985. #define wxUSE_IOSTREAMH 1
  10986. EOF
  10987.  
  10988.     fi
  10989.  
  10990.     ac_ext=c
  10991. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10992. ac_cpp='$CPP $CPPFLAGS'
  10993. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10994. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10995. cross_compiling=$ac_cv_prog_cc_cross
  10996.  
  10997.   fi
  10998.  
  10999.  
  11000.  
  11001.   echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
  11002. echo "configure:11003: checking if C++ compiler supports bool" >&5
  11003. if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
  11004.   echo $ac_n "(cached) $ac_c" 1>&6
  11005. else
  11006.   
  11007.     
  11008.     ac_ext=C
  11009. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11010. ac_cpp='$CXXCPP $CPPFLAGS'
  11011. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11012. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11013. cross_compiling=$ac_cv_prog_cxx_cross
  11014.  
  11015.  
  11016.     cat > conftest.$ac_ext <<EOF
  11017. #line 11018 "configure"
  11018. #include "confdefs.h"
  11019.  
  11020.       
  11021. int main() {
  11022.  
  11023.         bool b = true;
  11024.  
  11025.         return 0;
  11026.       
  11027. ; return 0; }
  11028. EOF
  11029. if { (eval echo configure:11030: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11030.   rm -rf conftest*
  11031.   
  11032.         wx_cv_cpp_bool=yes
  11033.       
  11034. else
  11035.   echo "configure: failed program was:" >&5
  11036.   cat conftest.$ac_ext >&5
  11037.   rm -rf conftest*
  11038.   
  11039.         wx_cv_cpp_bool=no
  11040.       
  11041.     
  11042. fi
  11043. rm -f conftest*
  11044.  
  11045.     ac_ext=c
  11046. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11047. ac_cpp='$CPP $CPPFLAGS'
  11048. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11049. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11050. cross_compiling=$ac_cv_prog_cc_cross
  11051.  
  11052.   
  11053. fi
  11054.  
  11055. echo "$ac_t""$wx_cv_cpp_bool" 1>&6
  11056.  
  11057.   if test "$wx_cv_cpp_bool" = "yes"; then
  11058.     cat >> confdefs.h <<\EOF
  11059. #define HAVE_BOOL 1
  11060. EOF
  11061.  
  11062.   fi
  11063.  
  11064.  
  11065.  
  11066.   echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
  11067. echo "configure:11068: checking if C++ compiler supports the explicit keyword" >&5
  11068. if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
  11069.   echo $ac_n "(cached) $ac_c" 1>&6
  11070. else
  11071.   
  11072.     
  11073.     ac_ext=C
  11074. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11075. ac_cpp='$CXXCPP $CPPFLAGS'
  11076. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11077. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11078. cross_compiling=$ac_cv_prog_cxx_cross
  11079.  
  11080.  
  11081.             cat > conftest.$ac_ext <<EOF
  11082. #line 11083 "configure"
  11083. #include "confdefs.h"
  11084.  
  11085.         class Foo { public: explicit Foo(int) {} };
  11086.       
  11087. int main() {
  11088.  
  11089.         return 0;
  11090.       
  11091. ; return 0; }
  11092. EOF
  11093. if { (eval echo configure:11094: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11094.   rm -rf conftest*
  11095.   
  11096.         cat > conftest.$ac_ext <<EOF
  11097. #line 11098 "configure"
  11098. #include "confdefs.h"
  11099.  
  11100.                 class Foo { public: explicit Foo(int) {} };
  11101.                 static void TakeFoo(const Foo& foo) { }
  11102.             
  11103. int main() {
  11104.  
  11105.                 TakeFoo(17);
  11106.                 return 0;
  11107.             
  11108. ; return 0; }
  11109. EOF
  11110. if { (eval echo configure:11111: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11111.   rm -rf conftest*
  11112.   wx_cv_explicit=no
  11113. else
  11114.   echo "configure: failed program was:" >&5
  11115.   cat conftest.$ac_ext >&5
  11116.   rm -rf conftest*
  11117.   wx_cv_explicit=yes
  11118.         
  11119. fi
  11120. rm -f conftest*
  11121.       
  11122. else
  11123.   echo "configure: failed program was:" >&5
  11124.   cat conftest.$ac_ext >&5
  11125.   rm -rf conftest*
  11126.   wx_cv_explicit=no
  11127.     
  11128. fi
  11129. rm -f conftest*
  11130.  
  11131.     ac_ext=c
  11132. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  11133. ac_cpp='$CPP $CPPFLAGS'
  11134. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  11135. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  11136. cross_compiling=$ac_cv_prog_cc_cross
  11137.  
  11138.   
  11139. fi
  11140.  
  11141. echo "$ac_t""$wx_cv_explicit" 1>&6
  11142.  
  11143.   if test "$wx_cv_explicit" = "yes"; then
  11144.     cat >> confdefs.h <<\EOF
  11145. #define HAVE_EXPLICIT 1
  11146. EOF
  11147.  
  11148.   fi
  11149.  
  11150.  
  11151.  
  11152. SEARCH_INCLUDE="\
  11153.     /usr/local/include        \
  11154.                               \
  11155.     /usr/Motif-1.2/include    \
  11156.     /usr/Motif-2.1/include    \
  11157.                               \
  11158.     /usr/include/Motif1.2     \
  11159.     /opt/xpm/include/X11      \
  11160.     /opt/GBxpm/include/       \
  11161.     /opt/GBxpm/X11/include/   \
  11162.                               \
  11163.     /usr/Motif1.2/include     \
  11164.     /usr/dt/include           \
  11165.     /usr/openwin/include      \
  11166.                               \
  11167.     /usr/include/Xm           \
  11168.                               \
  11169.     /usr/X11R6/include        \
  11170.     /usr/X11R6.4/include      \
  11171.     /usr/X11R5/include        \
  11172.     /usr/X11R4/include        \
  11173.                               \
  11174.     /usr/include/X11R6        \
  11175.     /usr/include/X11R5        \
  11176.     /usr/include/X11R4        \
  11177.                               \
  11178.     /usr/local/X11R6/include  \
  11179.     /usr/local/X11R5/include  \
  11180.     /usr/local/X11R4/include  \
  11181.                               \
  11182.     /usr/local/include/X11R6  \
  11183.     /usr/local/include/X11R5  \
  11184.     /usr/local/include/X11R4  \
  11185.                               \
  11186.     /usr/X11/include          \
  11187.     /usr/include/X11          \
  11188.     /usr/local/X11/include    \
  11189.     /usr/local/include/X11    \
  11190.                               \
  11191.     /usr/X386/include         \
  11192.     /usr/x386/include         \
  11193.     /usr/XFree86/include/X11  \
  11194.                               \
  11195.     X:/XFree86/include        \
  11196.     X:/XFree86/include/X11    \
  11197.                               \
  11198.     /usr/include/gtk          \
  11199.     /usr/local/include/gtk    \
  11200.     /usr/include/glib         \
  11201.     /usr/local/include/glib   \
  11202.                               \
  11203.     /usr/include/qt           \
  11204.     /usr/local/include/qt     \
  11205.                               \
  11206.     /usr/include/windows      \
  11207.     /usr/include/wine         \
  11208.     /usr/local/include/wine   \
  11209.                               \
  11210.     /usr/unsupported/include  \
  11211.     /usr/athena/include       \
  11212.     /usr/local/x11r5/include  \
  11213.     /usr/lpp/Xamples/include  \
  11214.                               \
  11215.     /usr/openwin/share/include \
  11216.                                \
  11217.     /usr/include"
  11218.  
  11219. SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
  11220.  
  11221.  
  11222. cat > confcache <<\EOF
  11223. # This file is a shell script that caches the results of configure
  11224. # tests run on this system so they can be shared between configure
  11225. # scripts and configure runs.  It is not useful on other systems.
  11226. # If it contains results you don't want to keep, you may remove or edit it.
  11227. #
  11228. # By default, configure uses ./config.cache as the cache file,
  11229. # creating it if it does not exist already.  You can give configure
  11230. # the --cache-file=FILE option to use a different cache file; that is
  11231. # what configure does when it calls configure scripts in
  11232. # subdirectories, so they share the cache.
  11233. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  11234. # config.status only pays attention to the cache file if you give it the
  11235. # --recheck option to rerun configure.
  11236. #
  11237. EOF
  11238. # The following way of writing the cache mishandles newlines in values,
  11239. # but we know of no workaround that is simple, portable, and efficient.
  11240. # So, don't put newlines in cache variables' values.
  11241. # Ultrix sh set writes to stderr and can't be redirected directly,
  11242. # and sets the high bit in the cache file unless we assign to the vars.
  11243. (set) 2>&1 |
  11244.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  11245.   *ac_space=\ *)
  11246.     # `set' does not quote correctly, so add quotes (double-quote substitution
  11247.     # turns \\\\ into \\, and sed turns \\ into \).
  11248.     sed -n \
  11249.       -e "s/'/'\\\\''/g" \
  11250.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  11251.     ;;
  11252.   *)
  11253.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  11254.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  11255.     ;;
  11256.   esac >> confcache
  11257. if cmp -s $cache_file confcache; then
  11258.   :
  11259. else
  11260.   if test -w $cache_file; then
  11261.     echo "updating cache $cache_file"
  11262.     cat confcache > $cache_file
  11263.   else
  11264.     echo "not updating unwritable cache $cache_file"
  11265.   fi
  11266. fi
  11267. rm -f confcache
  11268.  
  11269.  
  11270. if test "$USE_LINUX" = 1; then
  11271.     echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
  11272. echo "configure:11273: checking for glibc 2.1 or later" >&5
  11273. if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
  11274.   echo $ac_n "(cached) $ac_c" 1>&6
  11275. else
  11276.   
  11277.         cat > conftest.$ac_ext <<EOF
  11278. #line 11279 "configure"
  11279. #include "confdefs.h"
  11280. #include <features.h>
  11281. int main() {
  11282.  
  11283.                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
  11284.                     #error not glibc2.1
  11285.                 #endif
  11286.             
  11287. ; return 0; }
  11288. EOF
  11289. if { (eval echo configure:11290: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11290.   rm -rf conftest*
  11291.   
  11292.                 wx_cv_lib_glibc21=yes
  11293.             
  11294. else
  11295.   echo "configure: failed program was:" >&5
  11296.   cat conftest.$ac_ext >&5
  11297.   rm -rf conftest*
  11298.   
  11299.                 wx_cv_lib_glibc21=no
  11300.             
  11301.         
  11302. fi
  11303. rm -f conftest*
  11304.     
  11305. fi
  11306.  
  11307. echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
  11308.     if test "$wx_cv_lib_glibc21" = "yes"; then
  11309.         cat >> confdefs.h <<\EOF
  11310. #define wxHAVE_GLIBC2 1
  11311. EOF
  11312.  
  11313.     fi
  11314. fi
  11315.  
  11316. if test "x$wx_cv_lib_glibc21" = "xyes"; then
  11317.     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
  11318.         cat >> confdefs.h <<\EOF
  11319. #define _GNU_SOURCE 1
  11320. EOF
  11321.  
  11322.     fi
  11323. fi
  11324.  
  11325.  
  11326.  
  11327. REGEX_INCLUDE=
  11328. if test "$wxUSE_REGEX" != "no"; then
  11329.     cat >> confdefs.h <<\EOF
  11330. #define wxUSE_REGEX 1
  11331. EOF
  11332.  
  11333.  
  11334.     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
  11335.                         ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
  11336. echo $ac_n "checking for regex.h""... $ac_c" 1>&6
  11337. echo "configure:11338: checking for regex.h" >&5
  11338. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11339.   echo $ac_n "(cached) $ac_c" 1>&6
  11340. else
  11341.   cat > conftest.$ac_ext <<EOF
  11342. #include <sys/types.h>
  11343. #line 11344 "configure"
  11344. #include "confdefs.h"
  11345. #include <regex.h>
  11346. EOF
  11347. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11348. { (eval echo configure:11349: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11349. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11350. if test -z "$ac_err"; then
  11351.   rm -rf conftest*
  11352.   eval "ac_cv_header_$ac_safe=yes"
  11353. else
  11354.   echo "$ac_err" >&5
  11355.   echo "configure: failed program was:" >&5
  11356.   cat conftest.$ac_ext >&5
  11357.   rm -rf conftest*
  11358.   eval "ac_cv_header_$ac_safe=no"
  11359. fi
  11360. rm -f conftest*
  11361. fi
  11362. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11363.   echo "$ac_t""yes" 1>&6
  11364.   for ac_func in regcomp
  11365. do
  11366. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  11367. echo "configure:11368: checking for $ac_func" >&5
  11368. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  11369.   echo $ac_n "(cached) $ac_c" 1>&6
  11370. else
  11371.   cat > conftest.$ac_ext <<EOF
  11372. #line 11373 "configure"
  11373. #include "confdefs.h"
  11374. /* System header to define __stub macros and hopefully few prototypes,
  11375.     which can conflict with char $ac_func(); below.  */
  11376. #include <assert.h>
  11377. /* Override any gcc2 internal prototype to avoid an error.  */
  11378. /* We use char because int might match the return type of a gcc2
  11379.     builtin and then its argument prototype would still apply.  */
  11380. char $ac_func();
  11381.  
  11382. int main() {
  11383.  
  11384. /* The GNU C library defines this for functions which it implements
  11385.     to always fail with ENOSYS.  Some functions are actually named
  11386.     something starting with __ and the normal name is an alias.  */
  11387. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  11388. choke me
  11389. #else
  11390. $ac_func();
  11391. #endif
  11392.  
  11393. ; return 0; }
  11394. EOF
  11395. if { (eval echo configure:11396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11396.   rm -rf conftest*
  11397.   eval "ac_cv_func_$ac_func=yes"
  11398. else
  11399.   echo "configure: failed program was:" >&5
  11400.   cat conftest.$ac_ext >&5
  11401.   rm -rf conftest*
  11402.   eval "ac_cv_func_$ac_func=no"
  11403. fi
  11404. rm -f conftest*
  11405. fi
  11406.  
  11407. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  11408.   echo "$ac_t""yes" 1>&6
  11409.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  11410.   cat >> confdefs.h <<EOF
  11411. #define $ac_tr_func 1
  11412. EOF
  11413.  
  11414. else
  11415.   echo "$ac_t""no" 1>&6
  11416. fi
  11417. done
  11418.  
  11419. else
  11420.   echo "$ac_t""no" 1>&6
  11421. fi
  11422.  
  11423.  
  11424.         if test "x$ac_cv_func_regcomp" != "xyes"; then
  11425.             if test "$wxUSE_REGEX" = "sys" ; then
  11426.                 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
  11427.             else
  11428.                 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
  11429.                 wxUSE_REGEX=builtin
  11430.             fi
  11431.         else
  11432.                         wxUSE_REGEX=sys
  11433.         fi
  11434.     fi
  11435.  
  11436.     if test "$wxUSE_REGEX" = "builtin" ; then
  11437.         REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
  11438.     fi
  11439. fi
  11440.  
  11441.  
  11442. ZLIB_INCLUDE=
  11443. ZLIB_LINK=
  11444. if test "$wxUSE_ZLIB" != "no" ; then
  11445.     cat >> confdefs.h <<\EOF
  11446. #define wxUSE_ZLIB 1
  11447. EOF
  11448.  
  11449.  
  11450.     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
  11451.         ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
  11452. echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
  11453. echo "configure:11454: checking for zlib.h" >&5
  11454. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11455.   echo $ac_n "(cached) $ac_c" 1>&6
  11456. else
  11457.   cat > conftest.$ac_ext <<EOF
  11458. #include <sys/types.h>
  11459. #line 11460 "configure"
  11460. #include "confdefs.h"
  11461. #include <zlib.h>
  11462. EOF
  11463. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11464. { (eval echo configure:11465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11465. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11466. if test -z "$ac_err"; then
  11467.   rm -rf conftest*
  11468.   eval "ac_cv_header_$ac_safe=yes"
  11469. else
  11470.   echo "$ac_err" >&5
  11471.   echo "configure: failed program was:" >&5
  11472.   cat conftest.$ac_ext >&5
  11473.   rm -rf conftest*
  11474.   eval "ac_cv_header_$ac_safe=no"
  11475. fi
  11476. rm -f conftest*
  11477. fi
  11478. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11479.   echo "$ac_t""yes" 1>&6
  11480.   echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
  11481. echo "configure:11482: checking for deflate in -lz" >&5
  11482. ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
  11483. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  11484.   echo $ac_n "(cached) $ac_c" 1>&6
  11485. else
  11486.   ac_save_LIBS="$LIBS"
  11487. LIBS="-lz  $LIBS"
  11488. cat > conftest.$ac_ext <<EOF
  11489. #line 11490 "configure"
  11490. #include "confdefs.h"
  11491. /* Override any gcc2 internal prototype to avoid an error.  */
  11492. /* We use char because int might match the return type of a gcc2
  11493.     builtin and then its argument prototype would still apply.  */
  11494. char deflate();
  11495.  
  11496. int main() {
  11497. deflate()
  11498. ; return 0; }
  11499. EOF
  11500. if { (eval echo configure:11501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11501.   rm -rf conftest*
  11502.   eval "ac_cv_lib_$ac_lib_var=yes"
  11503. else
  11504.   echo "configure: failed program was:" >&5
  11505.   cat conftest.$ac_ext >&5
  11506.   rm -rf conftest*
  11507.   eval "ac_cv_lib_$ac_lib_var=no"
  11508. fi
  11509. rm -f conftest*
  11510. LIBS="$ac_save_LIBS"
  11511.  
  11512. fi
  11513. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  11514.   echo "$ac_t""yes" 1>&6
  11515.   ZLIB_LINK=" -lz"
  11516. else
  11517.   echo "$ac_t""no" 1>&6
  11518. fi
  11519.  
  11520. else
  11521.   echo "$ac_t""no" 1>&6
  11522. fi
  11523.  
  11524.  
  11525.         if test "x$ZLIB_LINK" = "x" ; then
  11526.             if test "$wxUSE_ZLIB" = "sys" ; then
  11527.                 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
  11528.             else
  11529.                 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
  11530.                 wxUSE_ZLIB=builtin
  11531.             fi
  11532.         else
  11533.                         wxUSE_ZLIB=sys
  11534.         fi
  11535.     fi
  11536.  
  11537.     if test "$wxUSE_ZLIB" = "builtin" ; then
  11538.         ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
  11539.     fi
  11540. fi
  11541.  
  11542.  
  11543. PNG_INCLUDE=
  11544. PNG_LINK=
  11545. if test "$wxUSE_LIBPNG" != "no" ; then
  11546.     cat >> confdefs.h <<\EOF
  11547. #define wxUSE_LIBPNG 1
  11548. EOF
  11549.  
  11550.  
  11551.     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
  11552.         echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
  11553.         wxUSE_LIBPNG=sys
  11554.     fi
  11555.  
  11556.                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
  11557.         echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
  11558.         wxUSE_LIBPNG=builtin
  11559.     fi
  11560.  
  11561.     if test "$wxUSE_MGL" != 1 ; then
  11562.                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
  11563.             ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
  11564. echo $ac_n "checking for png.h""... $ac_c" 1>&6
  11565. echo "configure:11566: checking for png.h" >&5
  11566. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11567.   echo $ac_n "(cached) $ac_c" 1>&6
  11568. else
  11569.   cat > conftest.$ac_ext <<EOF
  11570. #include <sys/types.h>
  11571. #line 11572 "configure"
  11572. #include "confdefs.h"
  11573. #include <png.h>
  11574. EOF
  11575. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11576. { (eval echo configure:11577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11577. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11578. if test -z "$ac_err"; then
  11579.   rm -rf conftest*
  11580.   eval "ac_cv_header_$ac_safe=yes"
  11581. else
  11582.   echo "$ac_err" >&5
  11583.   echo "configure: failed program was:" >&5
  11584.   cat conftest.$ac_ext >&5
  11585.   rm -rf conftest*
  11586.   eval "ac_cv_header_$ac_safe=no"
  11587. fi
  11588. rm -f conftest*
  11589. fi
  11590. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11591.   echo "$ac_t""yes" 1>&6
  11592.   echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
  11593. echo "configure:11594: checking for png_check_sig in -lpng" >&5
  11594. ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
  11595. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  11596.   echo $ac_n "(cached) $ac_c" 1>&6
  11597. else
  11598.   ac_save_LIBS="$LIBS"
  11599. LIBS="-lpng -lz -lm $LIBS"
  11600. cat > conftest.$ac_ext <<EOF
  11601. #line 11602 "configure"
  11602. #include "confdefs.h"
  11603. /* Override any gcc2 internal prototype to avoid an error.  */
  11604. /* We use char because int might match the return type of a gcc2
  11605.     builtin and then its argument prototype would still apply.  */
  11606. char png_check_sig();
  11607.  
  11608. int main() {
  11609. png_check_sig()
  11610. ; return 0; }
  11611. EOF
  11612. if { (eval echo configure:11613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11613.   rm -rf conftest*
  11614.   eval "ac_cv_lib_$ac_lib_var=yes"
  11615. else
  11616.   echo "configure: failed program was:" >&5
  11617.   cat conftest.$ac_ext >&5
  11618.   rm -rf conftest*
  11619.   eval "ac_cv_lib_$ac_lib_var=no"
  11620. fi
  11621. rm -f conftest*
  11622. LIBS="$ac_save_LIBS"
  11623.  
  11624. fi
  11625. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  11626.   echo "$ac_t""yes" 1>&6
  11627.   PNG_LINK=" -lpng"
  11628. else
  11629.   echo "$ac_t""no" 1>&6
  11630. fi
  11631.  
  11632.                            
  11633. else
  11634.   echo "$ac_t""no" 1>&6
  11635. fi
  11636.  
  11637.  
  11638.             if test "x$PNG_LINK" = "x" ; then
  11639.                 if test "$wxUSE_LIBPNG" = "sys" ; then
  11640.                     { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
  11641.                 else
  11642.                     echo "configure: warning: system png library not found, will use built-in instead" 1>&2
  11643.                     wxUSE_LIBPNG=builtin
  11644.                 fi
  11645.             else
  11646.                                 wxUSE_LIBPNG=yes
  11647.             fi
  11648.         fi
  11649.     fi
  11650.  
  11651.     if test "$wxUSE_LIBPNG" = "builtin" ; then
  11652.         PNG_INCLUDE="-I\${top_srcdir}/src/png"
  11653.     fi
  11654.  
  11655.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
  11656. fi
  11657.  
  11658.  
  11659. JPEG_INCLUDE=
  11660. JPEG_LINK=
  11661. if test "$wxUSE_LIBJPEG" != "no" ; then
  11662.     cat >> confdefs.h <<\EOF
  11663. #define wxUSE_LIBJPEG 1
  11664. EOF
  11665.  
  11666.  
  11667.     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
  11668.         echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
  11669.         wxUSE_LIBJPEG=sys
  11670.     fi
  11671.  
  11672.     if test "$wxUSE_MGL" != 1 ; then
  11673.                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
  11674.                                                 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
  11675. echo "configure:11676: checking for jpeglib.h" >&5
  11676.             if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
  11677.   echo $ac_n "(cached) $ac_c" 1>&6
  11678. else
  11679.   cat > conftest.$ac_ext <<EOF
  11680. #line 11681 "configure"
  11681. #include "confdefs.h"
  11682.  
  11683.                         #undef HAVE_STDLIB_H
  11684.                         #include <stdio.h>
  11685.                         #include <jpeglib.h>
  11686.                     
  11687. int main() {
  11688.  
  11689.                     
  11690. ; return 0; }
  11691. EOF
  11692. if { (eval echo configure:11693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11693.   rm -rf conftest*
  11694.   ac_cv_header_jpeglib_h=yes
  11695. else
  11696.   echo "configure: failed program was:" >&5
  11697.   cat conftest.$ac_ext >&5
  11698.   rm -rf conftest*
  11699.   ac_cv_header_jpeglib_h=no
  11700.                 
  11701. fi
  11702. rm -f conftest*
  11703.             
  11704. fi
  11705.  
  11706.             echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
  11707.  
  11708.             if test "$ac_cv_header_jpeglib_h" = "yes"; then
  11709.                 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
  11710. echo "configure:11711: checking for jpeg_read_header in -ljpeg" >&5
  11711. ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
  11712. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  11713.   echo $ac_n "(cached) $ac_c" 1>&6
  11714. else
  11715.   ac_save_LIBS="$LIBS"
  11716. LIBS="-ljpeg  $LIBS"
  11717. cat > conftest.$ac_ext <<EOF
  11718. #line 11719 "configure"
  11719. #include "confdefs.h"
  11720. /* Override any gcc2 internal prototype to avoid an error.  */
  11721. /* We use char because int might match the return type of a gcc2
  11722.     builtin and then its argument prototype would still apply.  */
  11723. char jpeg_read_header();
  11724.  
  11725. int main() {
  11726. jpeg_read_header()
  11727. ; return 0; }
  11728. EOF
  11729. if { (eval echo configure:11730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11730.   rm -rf conftest*
  11731.   eval "ac_cv_lib_$ac_lib_var=yes"
  11732. else
  11733.   echo "configure: failed program was:" >&5
  11734.   cat conftest.$ac_ext >&5
  11735.   rm -rf conftest*
  11736.   eval "ac_cv_lib_$ac_lib_var=no"
  11737. fi
  11738. rm -f conftest*
  11739. LIBS="$ac_save_LIBS"
  11740.  
  11741. fi
  11742. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  11743.   echo "$ac_t""yes" 1>&6
  11744.   JPEG_LINK=" -ljpeg"
  11745. else
  11746.   echo "$ac_t""no" 1>&6
  11747. fi
  11748.  
  11749.             fi
  11750.  
  11751.             if test "x$JPEG_LINK" = "x" ; then
  11752.                 if test "$wxUSE_LIBJPEG" = "sys" ; then
  11753.                     { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
  11754.                 else
  11755.                     echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
  11756.                     wxUSE_LIBJPEG=builtin
  11757.                 fi
  11758.             else
  11759.                                 wxUSE_LIBJPEG=sys
  11760.             fi
  11761.         fi
  11762.     fi
  11763.  
  11764.     if test "$wxUSE_LIBJPEG" = "builtin" ; then
  11765.         JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
  11766.     fi
  11767. fi
  11768.  
  11769.  
  11770. TIFF_INCLUDE=
  11771. TIFF_LINK=
  11772. if test "$wxUSE_LIBTIFF" != "no" ; then
  11773.     cat >> confdefs.h <<\EOF
  11774. #define wxUSE_LIBTIFF 1
  11775. EOF
  11776.  
  11777.  
  11778.     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
  11779.         ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
  11780. echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
  11781. echo "configure:11782: checking for tiffio.h" >&5
  11782. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11783.   echo $ac_n "(cached) $ac_c" 1>&6
  11784. else
  11785.   cat > conftest.$ac_ext <<EOF
  11786. #include <sys/types.h>
  11787. #line 11788 "configure"
  11788. #include "confdefs.h"
  11789. #include <tiffio.h>
  11790. EOF
  11791. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11792. { (eval echo configure:11793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11793. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11794. if test -z "$ac_err"; then
  11795.   rm -rf conftest*
  11796.   eval "ac_cv_header_$ac_safe=yes"
  11797. else
  11798.   echo "$ac_err" >&5
  11799.   echo "configure: failed program was:" >&5
  11800.   cat conftest.$ac_ext >&5
  11801.   rm -rf conftest*
  11802.   eval "ac_cv_header_$ac_safe=no"
  11803. fi
  11804. rm -f conftest*
  11805. fi
  11806. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11807.   echo "$ac_t""yes" 1>&6
  11808.   echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
  11809. echo "configure:11810: checking for TIFFError in -ltiff" >&5
  11810. ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
  11811. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  11812.   echo $ac_n "(cached) $ac_c" 1>&6
  11813. else
  11814.   ac_save_LIBS="$LIBS"
  11815. LIBS="-ltiff -lm $LIBS"
  11816. cat > conftest.$ac_ext <<EOF
  11817. #line 11818 "configure"
  11818. #include "confdefs.h"
  11819. /* Override any gcc2 internal prototype to avoid an error.  */
  11820. /* We use char because int might match the return type of a gcc2
  11821.     builtin and then its argument prototype would still apply.  */
  11822. char TIFFError();
  11823.  
  11824. int main() {
  11825. TIFFError()
  11826. ; return 0; }
  11827. EOF
  11828. if { (eval echo configure:11829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  11829.   rm -rf conftest*
  11830.   eval "ac_cv_lib_$ac_lib_var=yes"
  11831. else
  11832.   echo "configure: failed program was:" >&5
  11833.   cat conftest.$ac_ext >&5
  11834.   rm -rf conftest*
  11835.   eval "ac_cv_lib_$ac_lib_var=no"
  11836. fi
  11837. rm -f conftest*
  11838. LIBS="$ac_save_LIBS"
  11839.  
  11840. fi
  11841. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  11842.   echo "$ac_t""yes" 1>&6
  11843.   TIFF_LINK=" -ltiff"
  11844. else
  11845.   echo "$ac_t""no" 1>&6
  11846. fi
  11847.  
  11848.                        
  11849. else
  11850.   echo "$ac_t""no" 1>&6
  11851. fi
  11852.  
  11853.  
  11854.         if test "x$TIFF_LINK" = "x" ; then
  11855.             if test "$wxUSE_LIBTIFF" = "sys" ; then
  11856.                 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
  11857.             else
  11858.                 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
  11859.                 wxUSE_LIBTIFF=builtin
  11860.             fi
  11861.         else
  11862.                         wxUSE_LIBTIFF=sys
  11863.         fi
  11864.     fi
  11865.  
  11866.     if test "$wxUSE_LIBTIFF" = "builtin" ; then
  11867.         TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
  11868.     fi
  11869. fi
  11870.  
  11871.  
  11872. AFMINSTALL=
  11873.  
  11874. TOOLKIT=
  11875. TOOLKIT_INCLUDE=
  11876. WIDGET_SET=
  11877.  
  11878. if test "$USE_WIN32" = 1 ; then
  11879.     for ac_hdr in w32api.h
  11880. do
  11881. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  11882. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  11883. echo "configure:11884: checking for $ac_hdr" >&5
  11884. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11885.   echo $ac_n "(cached) $ac_c" 1>&6
  11886. else
  11887.   cat > conftest.$ac_ext <<EOF
  11888. #include <sys/types.h>
  11889. #line 11890 "configure"
  11890. #include "confdefs.h"
  11891. #include <$ac_hdr>
  11892. EOF
  11893. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11894. { (eval echo configure:11895: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11895. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11896. if test -z "$ac_err"; then
  11897.   rm -rf conftest*
  11898.   eval "ac_cv_header_$ac_safe=yes"
  11899. else
  11900.   echo "$ac_err" >&5
  11901.   echo "configure: failed program was:" >&5
  11902.   cat conftest.$ac_ext >&5
  11903.   rm -rf conftest*
  11904.   eval "ac_cv_header_$ac_safe=no"
  11905. fi
  11906. rm -f conftest*
  11907. fi
  11908. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11909.   echo "$ac_t""yes" 1>&6
  11910.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  11911.   cat >> confdefs.h <<EOF
  11912. #define $ac_tr_hdr 1
  11913. EOF
  11914.  
  11915. else
  11916.   echo "$ac_t""no" 1>&6
  11917. fi
  11918. done
  11919.  
  11920.     ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
  11921. echo $ac_n "checking for windows.h""... $ac_c" 1>&6
  11922. echo "configure:11923: checking for windows.h" >&5
  11923. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  11924.   echo $ac_n "(cached) $ac_c" 1>&6
  11925. else
  11926.   cat > conftest.$ac_ext <<EOF
  11927. #include <sys/types.h>
  11928. #line 11929 "configure"
  11929. #include "confdefs.h"
  11930. #include <windows.h>
  11931. EOF
  11932. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  11933. { (eval echo configure:11934: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  11934. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  11935. if test -z "$ac_err"; then
  11936.   rm -rf conftest*
  11937.   eval "ac_cv_header_$ac_safe=yes"
  11938. else
  11939.   echo "$ac_err" >&5
  11940.   echo "configure: failed program was:" >&5
  11941.   cat conftest.$ac_ext >&5
  11942.   rm -rf conftest*
  11943.   eval "ac_cv_header_$ac_safe=no"
  11944. fi
  11945. rm -f conftest*
  11946. fi
  11947. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  11948.   echo "$ac_t""yes" 1>&6
  11949.   :
  11950. else
  11951.   echo "$ac_t""no" 1>&6
  11952.  
  11953.         { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
  11954.     
  11955. fi
  11956.  
  11957.  
  11958.         echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
  11959. echo "configure:11960: checking if w32api has good enough MSIE support" >&5
  11960. if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
  11961.   echo $ac_n "(cached) $ac_c" 1>&6
  11962. else
  11963.   
  11964.       cat > conftest.$ac_ext <<EOF
  11965. #line 11966 "configure"
  11966. #include "confdefs.h"
  11967. #include <w32api.h>
  11968. int main() {
  11969.  
  11970.                        #define wxCHECK_W32API_VERSION( major, minor ) \
  11971.                        ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
  11972.                        && ( ( __W32API_MAJOR_VERSION > (major) ) \
  11973.                        || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
  11974.  
  11975.                        #if !wxCHECK_W32API_VERSION(1,1)
  11976.                        #error You need w32api 1.1 or newer
  11977.                        #endif
  11978.                      
  11979. ; return 0; }
  11980. EOF
  11981. if { (eval echo configure:11982: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  11982.   rm -rf conftest*
  11983.   
  11984.                         wx_cv_w32api_win32_ie=yes
  11985.                      
  11986. else
  11987.   echo "configure: failed program was:" >&5
  11988.   cat conftest.$ac_ext >&5
  11989.   rm -rf conftest*
  11990.   
  11991.                         wx_cv_w32api_win32_ie=no
  11992.                      
  11993. fi
  11994. rm -f conftest*
  11995.     
  11996. fi
  11997.  
  11998. echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
  11999.     if test "$wx_cv_w32api_win32_ie" = "yes" ; then
  12000.         CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
  12001.     fi
  12002.  
  12003.             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
  12004.  
  12005.     case "${host}" in
  12006.         *-*-cygwin* )
  12007.                         LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
  12008.             TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
  12009.     esac
  12010.  
  12011.         if test "$wxUSE_ODBC" = "yes" ; then
  12012.         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
  12013.     fi
  12014.  
  12015.     RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
  12016.     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
  12017. fi
  12018.  
  12019. if test "$wxUSE_GUI" = "yes"; then
  12020.     USE_GUI=1
  12021.  
  12022.     GUI_TK_LIBRARY=
  12023.  
  12024.     WXGTK12=
  12025.     WXGTK127=
  12026.     WXGTK20=
  12027.  
  12028.     if test "$wxUSE_MSW" = 1 ; then
  12029.         TOOLKIT=MSW
  12030.         GUIDIST=MSW_DIST
  12031.  
  12032.                                 case "${host}" in
  12033.             *-*-mingw32* )
  12034.                 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
  12035.         esac
  12036.     fi
  12037.  
  12038.     if test "$wxUSE_GTK" = 1; then
  12039.         echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
  12040. echo "configure:12041: checking for GTK+ version" >&5
  12041.  
  12042.         gtk_version_cached=1
  12043.         if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
  12044.   echo $ac_n "(cached) $ac_c" 1>&6
  12045. else
  12046.   
  12047.                                                 gtk_version_cached=0
  12048.                 echo "$ac_t""" 1>&6
  12049.  
  12050.                                                 GTK_MODULES=
  12051.                 if test "$wxUSE_THREADS" = "yes"; then
  12052.                     GTK_MODULES=gthread
  12053.                 fi
  12054.  
  12055.                 wx_cv_lib_gtk=
  12056.                 if test "x$wxUSE_GTK2" = "xyes"; then
  12057.                     # Check whether --enable-gtktest or --disable-gtktest was given.
  12058. if test "${enable_gtktest+set}" = set; then
  12059.   enableval="$enable_gtktest"
  12060.   :
  12061. else
  12062.   enable_gtktest=yes
  12063. fi
  12064.  
  12065.  
  12066.   pkg_config_args=gtk+-2.0
  12067.   for module in . $GTK_MODULES
  12068.   do
  12069.       case "$module" in
  12070.          gthread) 
  12071.              pkg_config_args="$pkg_config_args gthread-2.0"
  12072.          ;;
  12073.       esac
  12074.   done
  12075.  
  12076.   no_gtk=""
  12077.  
  12078.   # Extract the first word of "pkg-config", so it can be a program name with args.
  12079. set dummy pkg-config; ac_word=$2
  12080. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12081. echo "configure:12082: checking for $ac_word" >&5
  12082. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12083.   echo $ac_n "(cached) $ac_c" 1>&6
  12084. else
  12085.   case "$PKG_CONFIG" in
  12086.   /* | [a-zA-Z]:*)
  12087.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12088.   ;;
  12089.   ?:/*)             
  12090.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12091.   ;;
  12092.   *)
  12093.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  12094.   ac_dummy="$PATH"
  12095.   for ac_dir in $ac_dummy; do 
  12096.     test -z "$ac_dir" && ac_dir=.
  12097.     if test -f $ac_dir/$ac_word; then
  12098.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12099.       break
  12100.     fi
  12101.     if test -f $ac_dir/$ac_word$ac_exeext; then
  12102.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word$ac_exeext"
  12103.       break
  12104.     fi
  12105.   done
  12106.   IFS="$ac_save_ifs"
  12107.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12108.   ;;
  12109. esac
  12110. fi
  12111. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12112. if test -n "$PKG_CONFIG"; then
  12113.   echo "$ac_t""$PKG_CONFIG" 1>&6
  12114. else
  12115.   echo "$ac_t""no" 1>&6
  12116. fi
  12117.  
  12118.  
  12119.   if test x$PKG_CONFIG != xno ; then
  12120.     if pkg-config --atleast-pkgconfig-version 0.7 ; then
  12121.       :
  12122.     else
  12123.       echo *** pkg-config too old; version 0.7 or better required.
  12124.       no_gtk=yes
  12125.       PKG_CONFIG=no
  12126.     fi
  12127.   else
  12128.     no_gtk=yes
  12129.   fi
  12130.  
  12131.   min_gtk_version=2.0.0
  12132.   echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
  12133. echo "configure:12134: checking for GTK+ - version >= $min_gtk_version" >&5
  12134.  
  12135.   if test x$PKG_CONFIG != xno ; then
  12136.     ## don't try to run the test against uninstalled libtool libs
  12137.     if $PKG_CONFIG --uninstalled $pkg_config_args; then
  12138.       echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
  12139.       enable_gtktest=no
  12140.     fi
  12141.  
  12142.     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
  12143.       :
  12144.     else
  12145.       no_gtk=yes
  12146.     fi
  12147.   fi
  12148.  
  12149.   if test x"$no_gtk" = x ; then
  12150.     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
  12151.     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
  12152.     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  12153.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  12154.     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  12155.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  12156.     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
  12157.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  12158.     if test "x$enable_gtktest" = "xyes" ; then
  12159.       ac_save_CFLAGS="$CFLAGS"
  12160.       ac_save_LIBS="$LIBS"
  12161.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  12162.       LIBS="$GTK_LIBS $LIBS"
  12163.       rm -f conf.gtktest
  12164.       if test "$cross_compiling" = yes; then
  12165.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  12166. else
  12167.   cat > conftest.$ac_ext <<EOF
  12168. #line 12169 "configure"
  12169. #include "confdefs.h"
  12170.  
  12171. #include <gtk/gtk.h>
  12172. #include <stdio.h>
  12173. #include <stdlib.h>
  12174.  
  12175. int 
  12176. main ()
  12177. {
  12178.   int major, minor, micro;
  12179.   char *tmp_version;
  12180.  
  12181.   system ("touch conf.gtktest");
  12182.  
  12183.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  12184.   tmp_version = g_strdup("$min_gtk_version");
  12185.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  12186.      printf("%s, bad version string\n", "$min_gtk_version");
  12187.      exit(1);
  12188.    }
  12189.  
  12190.   if ((gtk_major_version != $gtk_config_major_version) ||
  12191.       (gtk_minor_version != $gtk_config_minor_version) ||
  12192.       (gtk_micro_version != $gtk_config_micro_version))
  12193.     {
  12194.       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
  12195.              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  12196.              gtk_major_version, gtk_minor_version, gtk_micro_version);
  12197.       printf ("*** was found! If pkg-config was correct, then it is best\n");
  12198.       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  12199.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  12200.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  12201.       printf("*** required on your system.\n");
  12202.       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
  12203.       printf("*** to point to the correct configuration files\n");
  12204.     } 
  12205.   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  12206.        (gtk_minor_version != GTK_MINOR_VERSION) ||
  12207.            (gtk_micro_version != GTK_MICRO_VERSION))
  12208.     {
  12209.       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  12210.          GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  12211.       printf("*** library (version %d.%d.%d)\n",
  12212.          gtk_major_version, gtk_minor_version, gtk_micro_version);
  12213.     }
  12214.   else
  12215.     {
  12216.       if ((gtk_major_version > major) ||
  12217.         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  12218.         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  12219.       {
  12220.         return 0;
  12221.        }
  12222.      else
  12223.       {
  12224.         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  12225.                gtk_major_version, gtk_minor_version, gtk_micro_version);
  12226.         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  12227.            major, minor, micro);
  12228.         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  12229.         printf("***\n");
  12230.         printf("*** If you have already installed a sufficiently new version, this error\n");
  12231.         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
  12232.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  12233.         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
  12234.         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
  12235.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  12236.         printf("*** so that the correct libraries are found at run-time))\n");
  12237.       }
  12238.     }
  12239.   return 1;
  12240. }
  12241.  
  12242. EOF
  12243. if { (eval echo configure:12244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12244. then
  12245.   :
  12246. else
  12247.   echo "configure: failed program was:" >&5
  12248.   cat conftest.$ac_ext >&5
  12249.   rm -fr conftest*
  12250.   no_gtk=yes
  12251. fi
  12252. rm -fr conftest*
  12253. fi
  12254.  
  12255.        CFLAGS="$ac_save_CFLAGS"
  12256.        LIBS="$ac_save_LIBS"
  12257.      fi
  12258.   fi
  12259.   if test "x$no_gtk" = x ; then
  12260.      echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
  12261.      wx_cv_lib_gtk=2.0     
  12262.   else
  12263.      echo "$ac_t""no" 1>&6
  12264.      if test "$PKG_CONFIG" = "no" ; then
  12265.        echo "*** A new enough version of pkg-config was not found."
  12266.        echo "*** See http://pkgconfig.sourceforge.net"
  12267.      else
  12268.        if test -f conf.gtktest ; then
  12269.         :
  12270.        else
  12271.           echo "*** Could not run GTK+ test program, checking why..."
  12272.       ac_save_CFLAGS="$CFLAGS"
  12273.       ac_save_LIBS="$LIBS"
  12274.           CFLAGS="$CFLAGS $GTK_CFLAGS"
  12275.           LIBS="$LIBS $GTK_LIBS"
  12276.           cat > conftest.$ac_ext <<EOF
  12277. #line 12278 "configure"
  12278. #include "confdefs.h"
  12279.  
  12280. #include <gtk/gtk.h>
  12281. #include <stdio.h>
  12282.  
  12283. int main() {
  12284.  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
  12285. ; return 0; }
  12286. EOF
  12287. if { (eval echo configure:12288: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12288.   rm -rf conftest*
  12289.    echo "*** The test program compiled, but did not run. This usually means"
  12290.           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
  12291.           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
  12292.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  12293.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  12294.           echo "*** is required on your system"
  12295.       echo "***"
  12296.           echo "*** If you have an old version installed, it is best to remove it, although"
  12297.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 
  12298. else
  12299.   echo "configure: failed program was:" >&5
  12300.   cat conftest.$ac_ext >&5
  12301.   rm -rf conftest*
  12302.    echo "*** The test program failed to compile or link. See the file config.log for the"
  12303.           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
  12304. fi
  12305. rm -f conftest*
  12306.           CFLAGS="$ac_save_CFLAGS"
  12307.           LIBS="$ac_save_LIBS"
  12308.        fi
  12309.      fi
  12310.      GTK_CFLAGS=""
  12311.      GTK_LIBS=""
  12312.      :
  12313.   fi
  12314.   
  12315.   
  12316.   rm -f conf.gtktest
  12317.  
  12318.                 fi
  12319.  
  12320.                 if test -z "$wx_cv_lib_gtk"; then
  12321.                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
  12322. if test "${with_gtk_prefix+set}" = set; then
  12323.   withval="$with_gtk_prefix"
  12324.   gtk_config_prefix="$withval"
  12325. else
  12326.   gtk_config_prefix=""
  12327. fi
  12328.  
  12329. # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
  12330. if test "${with_gtk_exec_prefix+set}" = set; then
  12331.   withval="$with_gtk_exec_prefix"
  12332.   gtk_config_exec_prefix="$withval"
  12333. else
  12334.   gtk_config_exec_prefix=""
  12335. fi
  12336.  
  12337. # Check whether --enable-gtktest or --disable-gtktest was given.
  12338. if test "${enable_gtktest+set}" = set; then
  12339.   enableval="$enable_gtktest"
  12340.   :
  12341. else
  12342.   enable_gtktest=yes
  12343. fi
  12344.  
  12345.  
  12346.   for module in . $GTK_MODULES
  12347.   do
  12348.       case "$module" in
  12349.          gthread) 
  12350.              gtk_config_args="$gtk_config_args gthread"
  12351.          ;;
  12352.       esac
  12353.   done
  12354.  
  12355.   if test x$gtk_config_exec_prefix != x ; then
  12356.      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  12357.      if test x${GTK_CONFIG+set} != xset ; then
  12358.         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  12359.      fi
  12360.   fi
  12361.   if test x$gtk_config_prefix != x ; then
  12362.      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  12363.      if test x${GTK_CONFIG+set} != xset ; then
  12364.         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  12365.      fi
  12366.   fi
  12367.  
  12368.   # Extract the first word of "gtk-config", so it can be a program name with args.
  12369. set dummy gtk-config; ac_word=$2
  12370. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12371. echo "configure:12372: checking for $ac_word" >&5
  12372. if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  12373.   echo $ac_n "(cached) $ac_c" 1>&6
  12374. else
  12375.   case "$GTK_CONFIG" in
  12376.   /* | [a-zA-Z]:*)
  12377.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  12378.   ;;
  12379.   ?:/*)             
  12380.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  12381.   ;;
  12382.   *)
  12383.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  12384.   ac_dummy="$PATH"
  12385.   for ac_dir in $ac_dummy; do 
  12386.     test -z "$ac_dir" && ac_dir=.
  12387.     if test -f $ac_dir/$ac_word; then
  12388.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
  12389.       break
  12390.     fi
  12391.     if test -f $ac_dir/$ac_word$ac_exeext; then
  12392.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word$ac_exeext"
  12393.       break
  12394.     fi
  12395.   done
  12396.   IFS="$ac_save_ifs"
  12397.   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  12398.   ;;
  12399. esac
  12400. fi
  12401. GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
  12402. if test -n "$GTK_CONFIG"; then
  12403.   echo "$ac_t""$GTK_CONFIG" 1>&6
  12404. else
  12405.   echo "$ac_t""no" 1>&6
  12406. fi
  12407.  
  12408.   min_gtk_version=1.2.7
  12409.   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
  12410. echo "configure:12411: checking for GTK - version >= $min_gtk_version" >&5
  12411.   no_gtk=""
  12412.   if test "$GTK_CONFIG" = "no" ; then
  12413.     no_gtk=yes
  12414.   else
  12415.     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  12416.     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  12417.     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  12418.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  12419.     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  12420.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  12421.     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  12422.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  12423.     if test "x$enable_gtktest" = "xyes" ; then
  12424.       ac_save_CFLAGS="$CFLAGS"
  12425.       ac_save_LIBS="$LIBS"
  12426.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  12427.       LIBS="$GTK_LIBS $LIBS"
  12428.       rm -f conf.gtktest
  12429.       if test "$cross_compiling" = yes; then
  12430.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  12431. else
  12432.   cat > conftest.$ac_ext <<EOF
  12433. #line 12434 "configure"
  12434. #include "confdefs.h"
  12435.  
  12436. #include <gtk/gtk.h>
  12437. #include <stdio.h>
  12438. #include <stdlib.h>
  12439.  
  12440. int 
  12441. main ()
  12442. {
  12443.   int major, minor, micro;
  12444.   char *tmp_version;
  12445.  
  12446.   system ("touch conf.gtktest");
  12447.  
  12448.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  12449.   tmp_version = g_strdup("$min_gtk_version");
  12450.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  12451.      printf("%s, bad version string\n", "$min_gtk_version");
  12452.      exit(1);
  12453.    }
  12454.  
  12455.   if ((gtk_major_version != $gtk_config_major_version) ||
  12456.       (gtk_minor_version != $gtk_config_minor_version) ||
  12457.       (gtk_micro_version != $gtk_config_micro_version))
  12458.     {
  12459.       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
  12460.              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  12461.              gtk_major_version, gtk_minor_version, gtk_micro_version);
  12462.       printf ("*** was found! If gtk-config was correct, then it is best\n");
  12463.       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  12464.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  12465.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  12466.       printf("*** required on your system.\n");
  12467.       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
  12468.       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
  12469.       printf("*** before re-running configure\n");
  12470.     } 
  12471. #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  12472.   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  12473.        (gtk_minor_version != GTK_MINOR_VERSION) ||
  12474.            (gtk_micro_version != GTK_MICRO_VERSION))
  12475.     {
  12476.       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  12477.          GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  12478.       printf("*** library (version %d.%d.%d)\n",
  12479.          gtk_major_version, gtk_minor_version, gtk_micro_version);
  12480.     }
  12481. #endif /* defined (GTK_MAJOR_VERSION) ... */
  12482.   else
  12483.     {
  12484.       if ((gtk_major_version > major) ||
  12485.         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  12486.         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  12487.       {
  12488.         return 0;
  12489.        }
  12490.      else
  12491.       {
  12492.         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  12493.                gtk_major_version, gtk_minor_version, gtk_micro_version);
  12494.         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  12495.            major, minor, micro);
  12496.         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  12497.         printf("***\n");
  12498.         printf("*** If you have already installed a sufficiently new version, this error\n");
  12499.         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
  12500.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  12501.         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
  12502.         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
  12503.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  12504.         printf("*** so that the correct libraries are found at run-time))\n");
  12505.       }
  12506.     }
  12507.   return 1;
  12508. }
  12509.  
  12510. EOF
  12511. if { (eval echo configure:12512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12512. then
  12513.   :
  12514. else
  12515.   echo "configure: failed program was:" >&5
  12516.   cat conftest.$ac_ext >&5
  12517.   rm -fr conftest*
  12518.   no_gtk=yes
  12519. fi
  12520. rm -fr conftest*
  12521. fi
  12522.  
  12523.        CFLAGS="$ac_save_CFLAGS"
  12524.        LIBS="$ac_save_LIBS"
  12525.      fi
  12526.   fi
  12527.   if test "x$no_gtk" = x ; then
  12528.      echo "$ac_t""yes" 1>&6
  12529.      wx_cv_lib_gtk=1.2.7     
  12530.   else
  12531.      echo "$ac_t""no" 1>&6
  12532.      if test "$GTK_CONFIG" = "no" ; then
  12533.        echo "*** The gtk-config script installed by GTK could not be found"
  12534.        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
  12535.        echo "*** your path, or set the GTK_CONFIG environment variable to the"
  12536.        echo "*** full path to gtk-config."
  12537.      else
  12538.        if test -f conf.gtktest ; then
  12539.         :
  12540.        else
  12541.           echo "*** Could not run GTK test program, checking why..."
  12542.           CFLAGS="$CFLAGS $GTK_CFLAGS"
  12543.           LIBS="$LIBS $GTK_LIBS"
  12544.           cat > conftest.$ac_ext <<EOF
  12545. #line 12546 "configure"
  12546. #include "confdefs.h"
  12547.  
  12548. #include <gtk/gtk.h>
  12549. #include <stdio.h>
  12550.  
  12551. int main() {
  12552.  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
  12553. ; return 0; }
  12554. EOF
  12555. if { (eval echo configure:12556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12556.   rm -rf conftest*
  12557.    echo "*** The test program compiled, but did not run. This usually means"
  12558.           echo "*** that the run-time linker is not finding GTK or finding the wrong"
  12559.           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
  12560.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  12561.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  12562.           echo "*** is required on your system"
  12563.       echo "***"
  12564.           echo "*** If you have an old version installed, it is best to remove it, although"
  12565.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  12566.           echo "***"
  12567.           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  12568.           echo "*** came with the system with the command"
  12569.           echo "***"
  12570.           echo "***    rpm --erase --nodeps gtk gtk-devel" 
  12571. else
  12572.   echo "configure: failed program was:" >&5
  12573.   cat conftest.$ac_ext >&5
  12574.   rm -rf conftest*
  12575.    echo "*** The test program failed to compile or link. See the file config.log for the"
  12576.           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
  12577.           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
  12578.           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
  12579. fi
  12580. rm -f conftest*
  12581.           CFLAGS="$ac_save_CFLAGS"
  12582.           LIBS="$ac_save_LIBS"
  12583.        fi
  12584.      fi
  12585.      GTK_CFLAGS=""
  12586.      GTK_LIBS=""
  12587.      :
  12588.   fi
  12589.   
  12590.   
  12591.   rm -f conf.gtktest
  12592.  
  12593.                 fi
  12594.  
  12595.                 if test -z "$wx_cv_lib_gtk"; then
  12596.                     # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
  12597. if test "${with_gtk_prefix+set}" = set; then
  12598.   withval="$with_gtk_prefix"
  12599.   gtk_config_prefix="$withval"
  12600. else
  12601.   gtk_config_prefix=""
  12602. fi
  12603.  
  12604. # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
  12605. if test "${with_gtk_exec_prefix+set}" = set; then
  12606.   withval="$with_gtk_exec_prefix"
  12607.   gtk_config_exec_prefix="$withval"
  12608. else
  12609.   gtk_config_exec_prefix=""
  12610. fi
  12611.  
  12612. # Check whether --enable-gtktest or --disable-gtktest was given.
  12613. if test "${enable_gtktest+set}" = set; then
  12614.   enableval="$enable_gtktest"
  12615.   :
  12616. else
  12617.   enable_gtktest=yes
  12618. fi
  12619.  
  12620.  
  12621.   for module in . $GTK_MODULES
  12622.   do
  12623.       case "$module" in
  12624.          gthread) 
  12625.              gtk_config_args="$gtk_config_args gthread"
  12626.          ;;
  12627.       esac
  12628.   done
  12629.  
  12630.   if test x$gtk_config_exec_prefix != x ; then
  12631.      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
  12632.      if test x${GTK_CONFIG+set} != xset ; then
  12633.         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
  12634.      fi
  12635.   fi
  12636.   if test x$gtk_config_prefix != x ; then
  12637.      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
  12638.      if test x${GTK_CONFIG+set} != xset ; then
  12639.         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
  12640.      fi
  12641.   fi
  12642.  
  12643.   # Extract the first word of "gtk-config", so it can be a program name with args.
  12644. set dummy gtk-config; ac_word=$2
  12645. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12646. echo "configure:12647: checking for $ac_word" >&5
  12647. if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
  12648.   echo $ac_n "(cached) $ac_c" 1>&6
  12649. else
  12650.   case "$GTK_CONFIG" in
  12651.   /* | [a-zA-Z]:*)
  12652.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
  12653.   ;;
  12654.   ?:/*)             
  12655.   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
  12656.   ;;
  12657.   *)
  12658.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  12659.   ac_dummy="$PATH"
  12660.   for ac_dir in $ac_dummy; do 
  12661.     test -z "$ac_dir" && ac_dir=.
  12662.     if test -f $ac_dir/$ac_word; then
  12663.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
  12664.       break
  12665.     fi
  12666.     if test -f $ac_dir/$ac_word$ac_exeext; then
  12667.       ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word$ac_exeext"
  12668.       break
  12669.     fi
  12670.   done
  12671.   IFS="$ac_save_ifs"
  12672.   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
  12673.   ;;
  12674. esac
  12675. fi
  12676. GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
  12677. if test -n "$GTK_CONFIG"; then
  12678.   echo "$ac_t""$GTK_CONFIG" 1>&6
  12679. else
  12680.   echo "$ac_t""no" 1>&6
  12681. fi
  12682.  
  12683.   min_gtk_version=1.2.3
  12684.   echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
  12685. echo "configure:12686: checking for GTK - version >= $min_gtk_version" >&5
  12686.   no_gtk=""
  12687.   if test "$GTK_CONFIG" = "no" ; then
  12688.     no_gtk=yes
  12689.   else
  12690.     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
  12691.     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
  12692.     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
  12693.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
  12694.     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
  12695.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
  12696.     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
  12697.            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
  12698.     if test "x$enable_gtktest" = "xyes" ; then
  12699.       ac_save_CFLAGS="$CFLAGS"
  12700.       ac_save_LIBS="$LIBS"
  12701.       CFLAGS="$CFLAGS $GTK_CFLAGS"
  12702.       LIBS="$GTK_LIBS $LIBS"
  12703.       rm -f conf.gtktest
  12704.       if test "$cross_compiling" = yes; then
  12705.   echo $ac_n "cross compiling; assumed OK... $ac_c"
  12706. else
  12707.   cat > conftest.$ac_ext <<EOF
  12708. #line 12709 "configure"
  12709. #include "confdefs.h"
  12710.  
  12711. #include <gtk/gtk.h>
  12712. #include <stdio.h>
  12713. #include <stdlib.h>
  12714.  
  12715. int 
  12716. main ()
  12717. {
  12718.   int major, minor, micro;
  12719.   char *tmp_version;
  12720.  
  12721.   system ("touch conf.gtktest");
  12722.  
  12723.   /* HP/UX 9 (%@#!) writes to sscanf strings */
  12724.   tmp_version = g_strdup("$min_gtk_version");
  12725.   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
  12726.      printf("%s, bad version string\n", "$min_gtk_version");
  12727.      exit(1);
  12728.    }
  12729.  
  12730.   if ((gtk_major_version != $gtk_config_major_version) ||
  12731.       (gtk_minor_version != $gtk_config_minor_version) ||
  12732.       (gtk_micro_version != $gtk_config_micro_version))
  12733.     {
  12734.       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
  12735.              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
  12736.              gtk_major_version, gtk_minor_version, gtk_micro_version);
  12737.       printf ("*** was found! If gtk-config was correct, then it is best\n");
  12738.       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
  12739.       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
  12740.       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
  12741.       printf("*** required on your system.\n");
  12742.       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
  12743.       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
  12744.       printf("*** before re-running configure\n");
  12745.     } 
  12746. #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
  12747.   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
  12748.        (gtk_minor_version != GTK_MINOR_VERSION) ||
  12749.            (gtk_micro_version != GTK_MICRO_VERSION))
  12750.     {
  12751.       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
  12752.          GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
  12753.       printf("*** library (version %d.%d.%d)\n",
  12754.          gtk_major_version, gtk_minor_version, gtk_micro_version);
  12755.     }
  12756. #endif /* defined (GTK_MAJOR_VERSION) ... */
  12757.   else
  12758.     {
  12759.       if ((gtk_major_version > major) ||
  12760.         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
  12761.         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
  12762.       {
  12763.         return 0;
  12764.        }
  12765.      else
  12766.       {
  12767.         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
  12768.                gtk_major_version, gtk_minor_version, gtk_micro_version);
  12769.         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
  12770.            major, minor, micro);
  12771.         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
  12772.         printf("***\n");
  12773.         printf("*** If you have already installed a sufficiently new version, this error\n");
  12774.         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
  12775.         printf("*** being found. The easiest way to fix this is to remove the old version\n");
  12776.         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
  12777.         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
  12778.         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
  12779.         printf("*** so that the correct libraries are found at run-time))\n");
  12780.       }
  12781.     }
  12782.   return 1;
  12783. }
  12784.  
  12785. EOF
  12786. if { (eval echo configure:12787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  12787. then
  12788.   :
  12789. else
  12790.   echo "configure: failed program was:" >&5
  12791.   cat conftest.$ac_ext >&5
  12792.   rm -fr conftest*
  12793.   no_gtk=yes
  12794. fi
  12795. rm -fr conftest*
  12796. fi
  12797.  
  12798.        CFLAGS="$ac_save_CFLAGS"
  12799.        LIBS="$ac_save_LIBS"
  12800.      fi
  12801.   fi
  12802.   if test "x$no_gtk" = x ; then
  12803.      echo "$ac_t""yes" 1>&6
  12804.      wx_cv_lib_gtk=1.2.3     
  12805.   else
  12806.      echo "$ac_t""no" 1>&6
  12807.      if test "$GTK_CONFIG" = "no" ; then
  12808.        echo "*** The gtk-config script installed by GTK could not be found"
  12809.        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
  12810.        echo "*** your path, or set the GTK_CONFIG environment variable to the"
  12811.        echo "*** full path to gtk-config."
  12812.      else
  12813.        if test -f conf.gtktest ; then
  12814.         :
  12815.        else
  12816.           echo "*** Could not run GTK test program, checking why..."
  12817.           CFLAGS="$CFLAGS $GTK_CFLAGS"
  12818.           LIBS="$LIBS $GTK_LIBS"
  12819.           cat > conftest.$ac_ext <<EOF
  12820. #line 12821 "configure"
  12821. #include "confdefs.h"
  12822.  
  12823. #include <gtk/gtk.h>
  12824. #include <stdio.h>
  12825.  
  12826. int main() {
  12827.  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
  12828. ; return 0; }
  12829. EOF
  12830. if { (eval echo configure:12831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  12831.   rm -rf conftest*
  12832.    echo "*** The test program compiled, but did not run. This usually means"
  12833.           echo "*** that the run-time linker is not finding GTK or finding the wrong"
  12834.           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
  12835.           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
  12836.           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
  12837.           echo "*** is required on your system"
  12838.       echo "***"
  12839.           echo "*** If you have an old version installed, it is best to remove it, although"
  12840.           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
  12841.           echo "***"
  12842.           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
  12843.           echo "*** came with the system with the command"
  12844.           echo "***"
  12845.           echo "***    rpm --erase --nodeps gtk gtk-devel" 
  12846. else
  12847.   echo "configure: failed program was:" >&5
  12848.   cat conftest.$ac_ext >&5
  12849.   rm -rf conftest*
  12850.    echo "*** The test program failed to compile or link. See the file config.log for the"
  12851.           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
  12852.           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
  12853.           echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
  12854. fi
  12855. rm -f conftest*
  12856.           CFLAGS="$ac_save_CFLAGS"
  12857.           LIBS="$ac_save_LIBS"
  12858.        fi
  12859.      fi
  12860.      GTK_CFLAGS=""
  12861.      GTK_LIBS=""
  12862.      :
  12863.   fi
  12864.   
  12865.   
  12866.   rm -f conf.gtktest
  12867.  
  12868.                 fi
  12869.  
  12870.                 if test -z "$wx_cv_lib_gtk"; then
  12871.                                         wx_cv_lib_gtk=none
  12872.                 else
  12873.                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
  12874.                     wx_cv_libs_gtk=$GTK_LIBS
  12875.                 fi
  12876.             
  12877.         
  12878. fi
  12879.  
  12880.  
  12881.                         if test "$gtk_version_cached" = 1; then
  12882.             echo "$ac_t""$wx_cv_lib_gtk" 1>&6
  12883.         fi
  12884.  
  12885.         case "$wx_cv_lib_gtk" in
  12886.             2.0)    WXGTK20=1
  12887.                     ;;
  12888.             1.2.7)  WXGTK127=1
  12889.                     WXGTK12=1
  12890.                     ;;
  12891.             1.2.3)  WXGTK12=1
  12892.                     ;;
  12893.             *)      { echo "configure: error: 
  12894. Please check that gtk-config is in path, the directory
  12895. where GTK+ libraries are installed (returned by
  12896. 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
  12897. equivalent variable and GTK+ is version 1.2.3 or above.
  12898.                             " 1>&2; exit 1; }
  12899.                     ;;
  12900.         esac
  12901.  
  12902.         if test "$WXGTK20" = 1; then
  12903.             if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
  12904.                 
  12905.   succeeded=no
  12906.  
  12907.   if test -z "$PKG_CONFIG"; then
  12908.     # Extract the first word of "pkg-config", so it can be a program name with args.
  12909. set dummy pkg-config; ac_word=$2
  12910. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  12911. echo "configure:12912: checking for $ac_word" >&5
  12912. if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
  12913.   echo $ac_n "(cached) $ac_c" 1>&6
  12914. else
  12915.   case "$PKG_CONFIG" in
  12916.   /* | [a-zA-Z]:*)
  12917.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12918.   ;;
  12919.   ?:/*)             
  12920.   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
  12921.   ;;
  12922.   *)
  12923.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  12924.   ac_dummy="$PATH"
  12925.   for ac_dir in $ac_dummy; do 
  12926.     test -z "$ac_dir" && ac_dir=.
  12927.     if test -f $ac_dir/$ac_word; then
  12928.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
  12929.       break
  12930.     fi
  12931.     if test -f $ac_dir/$ac_word$ac_exeext; then
  12932.       ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word$ac_exeext"
  12933.       break
  12934.     fi
  12935.   done
  12936.   IFS="$ac_save_ifs"
  12937.   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12938.   ;;
  12939. esac
  12940. fi
  12941. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  12942. if test -n "$PKG_CONFIG"; then
  12943.   echo "$ac_t""$PKG_CONFIG" 1>&6
  12944. else
  12945.   echo "$ac_t""no" 1>&6
  12946. fi
  12947.  
  12948.   fi
  12949.  
  12950.   if test "$PKG_CONFIG" = "no" ; then
  12951.      echo "*** The pkg-config script could not be found. Make sure it is"
  12952.      echo "*** in your path, or set the PKG_CONFIG environment variable"
  12953.      echo "*** to the full path to pkg-config."
  12954.      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12955.   else
  12956.      PKG_CONFIG_MIN_VERSION=0.9.0
  12957.      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12958.         echo $ac_n "checking for pangoft2""... $ac_c" 1>&6
  12959. echo "configure:12960: checking for pangoft2" >&5
  12960.  
  12961.         if $PKG_CONFIG --exists "pangoft2" ; then
  12962.             echo "$ac_t""yes" 1>&6
  12963.             succeeded=yes
  12964.  
  12965.             echo $ac_n "checking PANGOFT2_CFLAGS""... $ac_c" 1>&6
  12966. echo "configure:12967: checking PANGOFT2_CFLAGS" >&5
  12967.             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
  12968.             echo "$ac_t""$PANGOFT2_CFLAGS" 1>&6
  12969.  
  12970.             echo $ac_n "checking PANGOFT2_LIBS""... $ac_c" 1>&6
  12971. echo "configure:12972: checking PANGOFT2_LIBS" >&5
  12972.             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
  12973.             echo "$ac_t""$PANGOFT2_LIBS" 1>&6
  12974.         else
  12975.             PANGOFT2_CFLAGS=""
  12976.             PANGOFT2_LIBS=""
  12977.             ## If we have a custom action on failure, don't print errors, but 
  12978.             ## do set a variable so people can do so.
  12979.             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
  12980.             
  12981.         fi
  12982.  
  12983.         
  12984.         
  12985.      else
  12986.         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12987.         echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12988.      fi
  12989.   fi
  12990.  
  12991.   if test $succeeded = yes; then
  12992.      
  12993.                         CXXFLAGS="$CXXFLAGS $PANGOFT2_CFLAGS"
  12994.                         LIBS="$LIBS $PANGOFT2_LIBS"
  12995.                     
  12996.   else
  12997.      
  12998.                         echo "configure: warning: pangoft2 library not found, library will be compiled without printing support" 1>&2
  12999.                         wxUSE_PRINTING_ARCHITECTURE="no"
  13000.                     
  13001.                 
  13002.   fi
  13003.  
  13004.             fi
  13005.         fi
  13006.  
  13007.         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
  13008.         GUI_TK_LIBRARY="$wx_cv_libs_gtk"
  13009.  
  13010.         AFMINSTALL=afminstall
  13011.         TOOLKIT=GTK
  13012.         GUIDIST=GTK_DIST
  13013.  
  13014.                 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
  13015. echo "configure:13016: checking for gdk_im_open in -lgdk" >&5
  13016. ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
  13017. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13018.   echo $ac_n "(cached) $ac_c" 1>&6
  13019. else
  13020.   ac_save_LIBS="$LIBS"
  13021. LIBS="-lgdk  $LIBS"
  13022. cat > conftest.$ac_ext <<EOF
  13023. #line 13024 "configure"
  13024. #include "confdefs.h"
  13025. /* Override any gcc2 internal prototype to avoid an error.  */
  13026. /* We use char because int might match the return type of a gcc2
  13027.     builtin and then its argument prototype would still apply.  */
  13028. char gdk_im_open();
  13029.  
  13030. int main() {
  13031. gdk_im_open()
  13032. ; return 0; }
  13033. EOF
  13034. if { (eval echo configure:13035: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13035.   rm -rf conftest*
  13036.   eval "ac_cv_lib_$ac_lib_var=yes"
  13037. else
  13038.   echo "configure: failed program was:" >&5
  13039.   cat conftest.$ac_ext >&5
  13040.   rm -rf conftest*
  13041.   eval "ac_cv_lib_$ac_lib_var=no"
  13042. fi
  13043. rm -f conftest*
  13044. LIBS="$ac_save_LIBS"
  13045.  
  13046. fi
  13047. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13048.   echo "$ac_t""yes" 1>&6
  13049.   cat >> confdefs.h <<\EOF
  13050. #define HAVE_XIM 1
  13051. EOF
  13052.  
  13053. else
  13054.   echo "$ac_t""no" 1>&6
  13055. fi
  13056.  
  13057.     fi
  13058.  
  13059.     if test "$wxUSE_MGL" = 1; then
  13060.         echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
  13061. echo "configure:13062: checking for SciTech MGL library" >&5
  13062.         if test "x$MGL_ROOT" = x ; then
  13063.             echo "$ac_t""not found" 1>&6
  13064.             { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
  13065.         else
  13066.             echo "$ac_t""$MGL_ROOT" 1>&6
  13067.         fi
  13068.  
  13069.                         case "${host}" in
  13070.             *-*-linux* )
  13071.               mgl_os=linux/gcc/glibc
  13072.               ;;
  13073.             *-pc-msdosdjgpp )
  13074.               mgl_os=dos32/dj2
  13075.               ;;
  13076.             *)
  13077.               { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
  13078.         esac
  13079.  
  13080.         mgl_lib_type=""
  13081.  
  13082.         if test "$wxUSE_DEBUG_FLAG" = yes ; then
  13083.             if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
  13084.                     -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
  13085.                 mgl_lib_type=debug
  13086.             fi
  13087.         fi
  13088.         if test "x$mgl_lib_type" = x ; then
  13089.             if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
  13090.                     -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
  13091.                 mgl_lib_type=release
  13092.             else
  13093.                 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
  13094.             fi
  13095.         fi
  13096.  
  13097.         wxUSE_UNIVERSAL="yes"
  13098.  
  13099.         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
  13100.         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
  13101.  
  13102.         AFMINSTALL=afminstall
  13103.         TOOLKIT=MGL
  13104.         GUIDIST=MGL_DIST
  13105.     fi
  13106.  
  13107.     if test "$wxUSE_MICROWIN" = 1; then
  13108.         echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
  13109. echo "configure:13110: checking for MicroWindows" >&5
  13110.         if test "x$MICROWINDOWS" = x ; then
  13111.             echo "$ac_t""not found" 1>&6
  13112.             { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
  13113.         else
  13114.             echo "$ac_t""$MICROWINDOWS" 1>&6
  13115.         fi
  13116.  
  13117.         if test -f $MICROWINDOWS/lib/libmwin.a; then
  13118.             echo "$ac_t""MicroWindows' libraries found." 1>&6
  13119.         else
  13120.             { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
  13121.         fi
  13122.  
  13123.         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
  13124.         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
  13125.  
  13126.         wxUSE_UNIVERSAL="yes"
  13127.  
  13128.         AFMINSTALL=afminstall
  13129.         TOOLKIT=MICROWIN
  13130.         GUIDIST=MICROWIN_DIST
  13131.  
  13132.         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
  13133.     fi
  13134.  
  13135.     if test "$wxUSE_X11" = 1; then
  13136.                         # If we find X, set shell vars x_includes and x_libraries to the
  13137. # paths, otherwise set no_x=yes.
  13138. # Uses ac_ vars as temps to allow command line to override cache and checks.
  13139. # --without-x overrides everything else, but does not touch the cache.
  13140. echo $ac_n "checking for X""... $ac_c" 1>&6
  13141. echo "configure:13142: checking for X" >&5
  13142.  
  13143. # Check whether --with-x or --without-x was given.
  13144. if test "${with_x+set}" = set; then
  13145.   withval="$with_x"
  13146.   :
  13147. fi
  13148.  
  13149. # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
  13150. if test "x$with_x" = xno; then
  13151.   # The user explicitly disabled X.
  13152.   have_x=disabled
  13153. else
  13154.   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
  13155.     # Both variables are already set.
  13156.     have_x=yes
  13157.   else
  13158. if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
  13159.   echo $ac_n "(cached) $ac_c" 1>&6
  13160. else
  13161.   # One or both of the vars are not set, and there is no cached value.
  13162. ac_x_includes=NO ac_x_libraries=NO
  13163. rm -fr conftestdir
  13164. if mkdir conftestdir; then
  13165.   cd conftestdir
  13166.   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
  13167.   cat > Imakefile <<'EOF'
  13168. acfindx:
  13169.     @sh -c 'echo \'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${DESTDIR}${USRLIBDIR}"; ac_im_libdir="${DESTDIR}${LIBDIR}"\''
  13170. EOF
  13171.   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
  13172.     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  13173.     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
  13174.     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
  13175.     for ac_extension in a so sl; do
  13176.       if test ! -f $ac_im_usrlibdir/${ac_cv_libpre}X11.$ac_extension &&
  13177.         test -f $ac_im_libdir/${ac_cv_libpre}X11.$ac_extension; then
  13178.         ac_im_usrlibdir=$ac_im_libdir; break
  13179.       fi
  13180.     done
  13181.     # Screen out bogus values from the imake configuration.  They are
  13182.     # bogus both because they are the default anyway, and because
  13183.     # using them would break gcc on systems where it needs fixed includes.
  13184.     case "$ac_im_incroot" in
  13185.     /usr/include) ;;
  13186.     *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
  13187.     esac
  13188.     case "$ac_im_usrlibdir" in
  13189.     /usr/lib | /lib) ;;
  13190.     *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
  13191.     esac
  13192.   fi
  13193.   cd ..
  13194.   rm -fr conftestdir
  13195. fi
  13196.  
  13197. if test "$ac_x_includes" = NO; then
  13198.   # Guess where to find include files, by looking for this one X11 .h file.
  13199.   test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
  13200.  
  13201.   # First, try using that file with no special directory specified.
  13202. cat > conftest.$ac_ext <<EOF
  13203. #include <sys/types.h>
  13204. #line 13205 "configure"
  13205. #include "confdefs.h"
  13206. #include <$x_direct_test_include>
  13207. EOF
  13208. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  13209. { (eval echo configure:13210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  13210. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  13211. if test -z "$ac_err"; then
  13212.   rm -rf conftest*
  13213.   # We can compile using X headers with no special include directory.
  13214. ac_x_includes=
  13215. else
  13216.   echo "$ac_err" >&5
  13217.   echo "configure: failed program was:" >&5
  13218.   cat conftest.$ac_ext >&5
  13219.   rm -rf conftest*
  13220.   # Look for the header file in a standard set of common directories.
  13221. # Check X11 before X11Rn because it is often a symlink to the current release.
  13222.   for ac_dir in               \
  13223.     /usr/X11/include          \
  13224.     /usr/X11R6/include        \
  13225.     /usr/X11R5/include        \
  13226.     /usr/X11R4/include        \
  13227.                               \
  13228.     /usr/include/X11          \
  13229.     /usr/include/X11R6        \
  13230.     /usr/include/X11R5        \
  13231.     /usr/include/X11R4        \
  13232.                               \
  13233.     /usr/local/X11/include    \
  13234.     /usr/local/X11R6/include  \
  13235.     /usr/local/X11R5/include  \
  13236.     /usr/local/X11R4/include  \
  13237.                               \
  13238.     /usr/local/include/X11    \
  13239.     /usr/local/include/X11R6  \
  13240.     /usr/local/include/X11R5  \
  13241.     /usr/local/include/X11R4  \
  13242.                               \
  13243.     /usr/X386/include         \
  13244.     /usr/x386/include         \
  13245.     /usr/XFree86/include/X11  \
  13246.                               \
  13247.     /usr/include              \
  13248.     /usr/local/include        \
  13249.     /usr/unsupported/include  \
  13250.     /usr/athena/include       \
  13251.     /usr/local/x11r5/include  \
  13252.     /usr/lpp/Xamples/include  \
  13253.                               \
  13254.     /usr/openwin/include      \
  13255.     /usr/openwin/share/include \
  13256.     ; \
  13257.   do
  13258.     if test -r "$ac_dir/$x_direct_test_include"; then
  13259.       ac_x_includes=$ac_dir
  13260.       break
  13261.     fi
  13262.   done
  13263. fi
  13264. rm -f conftest*
  13265. fi # $ac_x_includes = NO
  13266.  
  13267. if test "$ac_x_libraries" = NO; then
  13268.   # Check for the libraries.
  13269.  
  13270.   test -z "$x_direct_test_library" && x_direct_test_library=Xt
  13271.   test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
  13272.  
  13273.   # See if we find them without any special options.
  13274.   # Don't add to $LIBS permanently.
  13275.   ac_save_LIBS="$LIBS"
  13276.   LIBS="-l$x_direct_test_library $LIBS"
  13277. cat > conftest.$ac_ext <<EOF
  13278. #line 13279 "configure"
  13279. #include "confdefs.h"
  13280.  
  13281. int main() {
  13282. ${x_direct_test_function}()
  13283. ; return 0; }
  13284. EOF
  13285. if { (eval echo configure:13286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13286.   rm -rf conftest*
  13287.   LIBS="$ac_save_LIBS"
  13288. # We can link X programs with no special library path.
  13289. ac_x_libraries=
  13290. else
  13291.   echo "configure: failed program was:" >&5
  13292.   cat conftest.$ac_ext >&5
  13293.   rm -rf conftest*
  13294.   LIBS="$ac_save_LIBS"
  13295. # First see if replacing the include by lib works.
  13296. # Check X11 before X11Rn because it is often a symlink to the current release.
  13297. for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
  13298.     /usr/X11/lib          \
  13299.     /usr/X11R6/lib        \
  13300.     /usr/X11R5/lib        \
  13301.     /usr/X11R4/lib        \
  13302.                           \
  13303.     /usr/lib/X11          \
  13304.     /usr/lib/X11R6        \
  13305.     /usr/lib/X11R5        \
  13306.     /usr/lib/X11R4        \
  13307.                           \
  13308.     /usr/local/X11/lib    \
  13309.     /usr/local/X11R6/lib  \
  13310.     /usr/local/X11R5/lib  \
  13311.     /usr/local/X11R4/lib  \
  13312.                           \
  13313.     /usr/local/lib/X11    \
  13314.     /usr/local/lib/X11R6  \
  13315.     /usr/local/lib/X11R5  \
  13316.     /usr/local/lib/X11R4  \
  13317.                           \
  13318.     /usr/X386/lib         \
  13319.     /usr/x386/lib         \
  13320.     /usr/XFree86/lib/X11  \
  13321.                           \
  13322.     /usr/lib              \
  13323.     /usr/local/lib        \
  13324.     /usr/unsupported/lib  \
  13325.     /usr/athena/lib       \
  13326.     /usr/local/x11r5/lib  \
  13327.     /usr/lpp/Xamples/lib  \
  13328.     /lib/usr/lib/X11      \
  13329.                           \
  13330.     /usr/openwin/lib      \
  13331.     /usr/openwin/share/lib \
  13332.     ; \
  13333. do
  13334.   for ac_extension in a so sl; do
  13335.     if test -r $ac_dir/${ac_cv_libpre}${x_direct_test_library}.$ac_extension; then
  13336.       ac_x_libraries=$ac_dir
  13337.       break 2
  13338.     fi
  13339.   done
  13340. done
  13341. fi
  13342. rm -f conftest*
  13343. fi # $ac_x_libraries = NO
  13344.  
  13345. if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
  13346.   # Didn't find X anywhere.  Cache the known absence of X.
  13347.   ac_cv_have_x="have_x=no"
  13348. else
  13349.   # Record where we found X for the cache.
  13350.   ac_cv_have_x="have_x=yes \
  13351.             ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
  13352. fi
  13353. fi
  13354.   fi
  13355.   eval "$ac_cv_have_x"
  13356. fi # $with_x != no
  13357.  
  13358. if test "$have_x" != yes; then
  13359.   echo "$ac_t""$have_x" 1>&6
  13360.   no_x=yes
  13361. else
  13362.   # If each of the values was on the command line, it overrides each guess.
  13363.   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
  13364.   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
  13365.   # Update the cache value to reflect the command line values.
  13366.   ac_cv_have_x="have_x=yes \
  13367.         ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
  13368.   echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
  13369. fi
  13370.  
  13371. if test "$no_x" = yes; then
  13372.   # Not all programs may use this symbol, but it does not hurt to define it.
  13373.   cat >> confdefs.h <<\EOF
  13374. #define X_DISPLAY_MISSING 1
  13375. EOF
  13376.  
  13377.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  13378. else
  13379.   if test -n "$x_includes"; then
  13380.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  13381.   fi
  13382.   test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes"
  13383.  
  13384.   # It would also be nice to do this for all -L options, not just this one.
  13385.   if test -n "$x_libraries"; then
  13386.     X_LIBS="$X_LIBS -L$x_libraries"
  13387.     # For Solaris; some versions of Sun CC require a space after -R and
  13388.     # others require no space.  Words are not sufficient . . . .
  13389.     case "`(uname -sr) 2>/dev/null`" in
  13390.     "SunOS 5"*)
  13391.       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  13392. echo "configure:13393: checking whether -R must be followed by a space" >&5
  13393.       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  13394.       cat > conftest.$ac_ext <<EOF
  13395. #line 13396 "configure"
  13396. #include "confdefs.h"
  13397.  
  13398. int main() {
  13399.  
  13400. ; return 0; }
  13401. EOF
  13402. if { (eval echo configure:13403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13403.   rm -rf conftest*
  13404.   ac_R_nospace=yes
  13405. else
  13406.   echo "configure: failed program was:" >&5
  13407.   cat conftest.$ac_ext >&5
  13408.   rm -rf conftest*
  13409.   ac_R_nospace=no
  13410. fi
  13411. rm -f conftest*
  13412.       if test $ac_R_nospace = yes; then
  13413.     echo "$ac_t""no" 1>&6
  13414.     X_LIBS="$X_LIBS -R$x_libraries"
  13415.       else
  13416.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  13417.     cat > conftest.$ac_ext <<EOF
  13418. #line 13419 "configure"
  13419. #include "confdefs.h"
  13420.  
  13421. int main() {
  13422.  
  13423. ; return 0; }
  13424. EOF
  13425. if { (eval echo configure:13426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13426.   rm -rf conftest*
  13427.   ac_R_space=yes
  13428. else
  13429.   echo "configure: failed program was:" >&5
  13430.   cat conftest.$ac_ext >&5
  13431.   rm -rf conftest*
  13432.   ac_R_space=no
  13433. fi
  13434. rm -f conftest*
  13435.     if test $ac_R_space = yes; then
  13436.       echo "$ac_t""yes" 1>&6
  13437.       X_LIBS="$X_LIBS -R $x_libraries"
  13438.     else
  13439.       echo "$ac_t""neither works" 1>&6
  13440.     fi
  13441.       fi
  13442.       LIBS="$ac_xsave_LIBS"
  13443.     esac
  13444.   fi
  13445.  
  13446.   # Check for system-dependent libraries X programs must link with.
  13447.   # Do this before checking for the system-independent R6 libraries
  13448.   # (-lICE), since we may need -lsocket or whatever for X linking.
  13449.  
  13450.   if test "$ISC" = yes; then
  13451.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  13452.   else
  13453.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  13454.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  13455.     # the Alpha needs dnet_stub (dnet does not exist).
  13456.     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  13457. echo "configure:13458: checking for dnet_ntoa in -ldnet" >&5
  13458. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  13459. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13460.   echo $ac_n "(cached) $ac_c" 1>&6
  13461. else
  13462.   ac_save_LIBS="$LIBS"
  13463. LIBS="-ldnet  $LIBS"
  13464. cat > conftest.$ac_ext <<EOF
  13465. #line 13466 "configure"
  13466. #include "confdefs.h"
  13467. /* Override any gcc2 internal prototype to avoid an error.  */
  13468. /* We use char because int might match the return type of a gcc2
  13469.     builtin and then its argument prototype would still apply.  */
  13470. char dnet_ntoa();
  13471.  
  13472. int main() {
  13473. dnet_ntoa()
  13474. ; return 0; }
  13475. EOF
  13476. if { (eval echo configure:13477: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13477.   rm -rf conftest*
  13478.   eval "ac_cv_lib_$ac_lib_var=yes"
  13479. else
  13480.   echo "configure: failed program was:" >&5
  13481.   cat conftest.$ac_ext >&5
  13482.   rm -rf conftest*
  13483.   eval "ac_cv_lib_$ac_lib_var=no"
  13484. fi
  13485. rm -f conftest*
  13486. LIBS="$ac_save_LIBS"
  13487.  
  13488. fi
  13489. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13490.   echo "$ac_t""yes" 1>&6
  13491.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  13492. else
  13493.   echo "$ac_t""no" 1>&6
  13494. fi
  13495.  
  13496.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  13497.       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  13498. echo "configure:13499: checking for dnet_ntoa in -ldnet_stub" >&5
  13499. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  13500. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13501.   echo $ac_n "(cached) $ac_c" 1>&6
  13502. else
  13503.   ac_save_LIBS="$LIBS"
  13504. LIBS="-ldnet_stub  $LIBS"
  13505. cat > conftest.$ac_ext <<EOF
  13506. #line 13507 "configure"
  13507. #include "confdefs.h"
  13508. /* Override any gcc2 internal prototype to avoid an error.  */
  13509. /* We use char because int might match the return type of a gcc2
  13510.     builtin and then its argument prototype would still apply.  */
  13511. char dnet_ntoa();
  13512.  
  13513. int main() {
  13514. dnet_ntoa()
  13515. ; return 0; }
  13516. EOF
  13517. if { (eval echo configure:13518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13518.   rm -rf conftest*
  13519.   eval "ac_cv_lib_$ac_lib_var=yes"
  13520. else
  13521.   echo "configure: failed program was:" >&5
  13522.   cat conftest.$ac_ext >&5
  13523.   rm -rf conftest*
  13524.   eval "ac_cv_lib_$ac_lib_var=no"
  13525. fi
  13526. rm -f conftest*
  13527. LIBS="$ac_save_LIBS"
  13528.  
  13529. fi
  13530. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13531.   echo "$ac_t""yes" 1>&6
  13532.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  13533. else
  13534.   echo "$ac_t""no" 1>&6
  13535. fi
  13536.  
  13537.     fi
  13538.  
  13539.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  13540.     # to get the SysV transport functions.
  13541.     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  13542.     # needs -lnsl.
  13543.     # The nsl library prevents programs from opening the X display
  13544.     # on Irix 5.2, according to dickey@clark.net.
  13545.     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  13546. echo "configure:13547: checking for gethostbyname" >&5
  13547. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  13548.   echo $ac_n "(cached) $ac_c" 1>&6
  13549. else
  13550.   cat > conftest.$ac_ext <<EOF
  13551. #line 13552 "configure"
  13552. #include "confdefs.h"
  13553. /* System header to define __stub macros and hopefully few prototypes,
  13554.     which can conflict with char gethostbyname(); below.  */
  13555. #include <assert.h>
  13556. /* Override any gcc2 internal prototype to avoid an error.  */
  13557. /* We use char because int might match the return type of a gcc2
  13558.     builtin and then its argument prototype would still apply.  */
  13559. char gethostbyname();
  13560.  
  13561. int main() {
  13562.  
  13563. /* The GNU C library defines this for functions which it implements
  13564.     to always fail with ENOSYS.  Some functions are actually named
  13565.     something starting with __ and the normal name is an alias.  */
  13566. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  13567. choke me
  13568. #else
  13569. gethostbyname();
  13570. #endif
  13571.  
  13572. ; return 0; }
  13573. EOF
  13574. if { (eval echo configure:13575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13575.   rm -rf conftest*
  13576.   eval "ac_cv_func_gethostbyname=yes"
  13577. else
  13578.   echo "configure: failed program was:" >&5
  13579.   cat conftest.$ac_ext >&5
  13580.   rm -rf conftest*
  13581.   eval "ac_cv_func_gethostbyname=no"
  13582. fi
  13583. rm -f conftest*
  13584. fi
  13585.  
  13586. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  13587.   echo "$ac_t""yes" 1>&6
  13588.   :
  13589. else
  13590.   echo "$ac_t""no" 1>&6
  13591. fi
  13592.  
  13593.     if test $ac_cv_func_gethostbyname = no; then
  13594.       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  13595. echo "configure:13596: checking for gethostbyname in -lnsl" >&5
  13596. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  13597. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13598.   echo $ac_n "(cached) $ac_c" 1>&6
  13599. else
  13600.   ac_save_LIBS="$LIBS"
  13601. LIBS="-lnsl  $LIBS"
  13602. cat > conftest.$ac_ext <<EOF
  13603. #line 13604 "configure"
  13604. #include "confdefs.h"
  13605. /* Override any gcc2 internal prototype to avoid an error.  */
  13606. /* We use char because int might match the return type of a gcc2
  13607.     builtin and then its argument prototype would still apply.  */
  13608. char gethostbyname();
  13609.  
  13610. int main() {
  13611. gethostbyname()
  13612. ; return 0; }
  13613. EOF
  13614. if { (eval echo configure:13615: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13615.   rm -rf conftest*
  13616.   eval "ac_cv_lib_$ac_lib_var=yes"
  13617. else
  13618.   echo "configure: failed program was:" >&5
  13619.   cat conftest.$ac_ext >&5
  13620.   rm -rf conftest*
  13621.   eval "ac_cv_lib_$ac_lib_var=no"
  13622. fi
  13623. rm -f conftest*
  13624. LIBS="$ac_save_LIBS"
  13625.  
  13626. fi
  13627. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13628.   echo "$ac_t""yes" 1>&6
  13629.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  13630. else
  13631.   echo "$ac_t""no" 1>&6
  13632. fi
  13633.  
  13634.     fi
  13635.  
  13636.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  13637.     # socket/setsockopt and other routines are undefined under SCO ODT
  13638.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  13639.     # on later versions), says simon@lia.di.epfl.ch: it contains
  13640.     # gethostby* variants that don't use the nameserver (or something).
  13641.     # -lsocket must be given before -lnsl if both are needed.
  13642.     # We assume that if connect needs -lnsl, so does gethostbyname.
  13643.     echo $ac_n "checking for connect""... $ac_c" 1>&6
  13644. echo "configure:13645: checking for connect" >&5
  13645. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  13646.   echo $ac_n "(cached) $ac_c" 1>&6
  13647. else
  13648.   cat > conftest.$ac_ext <<EOF
  13649. #line 13650 "configure"
  13650. #include "confdefs.h"
  13651. /* System header to define __stub macros and hopefully few prototypes,
  13652.     which can conflict with char connect(); below.  */
  13653. #include <assert.h>
  13654. /* Override any gcc2 internal prototype to avoid an error.  */
  13655. /* We use char because int might match the return type of a gcc2
  13656.     builtin and then its argument prototype would still apply.  */
  13657. char connect();
  13658.  
  13659. int main() {
  13660.  
  13661. /* The GNU C library defines this for functions which it implements
  13662.     to always fail with ENOSYS.  Some functions are actually named
  13663.     something starting with __ and the normal name is an alias.  */
  13664. #if defined (__stub_connect) || defined (__stub___connect)
  13665. choke me
  13666. #else
  13667. connect();
  13668. #endif
  13669.  
  13670. ; return 0; }
  13671. EOF
  13672. if { (eval echo configure:13673: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13673.   rm -rf conftest*
  13674.   eval "ac_cv_func_connect=yes"
  13675. else
  13676.   echo "configure: failed program was:" >&5
  13677.   cat conftest.$ac_ext >&5
  13678.   rm -rf conftest*
  13679.   eval "ac_cv_func_connect=no"
  13680. fi
  13681. rm -f conftest*
  13682. fi
  13683.  
  13684. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  13685.   echo "$ac_t""yes" 1>&6
  13686.   :
  13687. else
  13688.   echo "$ac_t""no" 1>&6
  13689. fi
  13690.  
  13691.     if test $ac_cv_func_connect = no; then
  13692.       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  13693. echo "configure:13694: checking for connect in -lsocket" >&5
  13694. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  13695. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13696.   echo $ac_n "(cached) $ac_c" 1>&6
  13697. else
  13698.   ac_save_LIBS="$LIBS"
  13699. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  13700. cat > conftest.$ac_ext <<EOF
  13701. #line 13702 "configure"
  13702. #include "confdefs.h"
  13703. /* Override any gcc2 internal prototype to avoid an error.  */
  13704. /* We use char because int might match the return type of a gcc2
  13705.     builtin and then its argument prototype would still apply.  */
  13706. char connect();
  13707.  
  13708. int main() {
  13709. connect()
  13710. ; return 0; }
  13711. EOF
  13712. if { (eval echo configure:13713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13713.   rm -rf conftest*
  13714.   eval "ac_cv_lib_$ac_lib_var=yes"
  13715. else
  13716.   echo "configure: failed program was:" >&5
  13717.   cat conftest.$ac_ext >&5
  13718.   rm -rf conftest*
  13719.   eval "ac_cv_lib_$ac_lib_var=no"
  13720. fi
  13721. rm -f conftest*
  13722. LIBS="$ac_save_LIBS"
  13723.  
  13724. fi
  13725. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13726.   echo "$ac_t""yes" 1>&6
  13727.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  13728. else
  13729.   echo "$ac_t""no" 1>&6
  13730. fi
  13731.  
  13732.     fi
  13733.  
  13734.     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  13735.     echo $ac_n "checking for remove""... $ac_c" 1>&6
  13736. echo "configure:13737: checking for remove" >&5
  13737. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  13738.   echo $ac_n "(cached) $ac_c" 1>&6
  13739. else
  13740.   cat > conftest.$ac_ext <<EOF
  13741. #line 13742 "configure"
  13742. #include "confdefs.h"
  13743. /* System header to define __stub macros and hopefully few prototypes,
  13744.     which can conflict with char remove(); below.  */
  13745. #include <assert.h>
  13746. /* Override any gcc2 internal prototype to avoid an error.  */
  13747. /* We use char because int might match the return type of a gcc2
  13748.     builtin and then its argument prototype would still apply.  */
  13749. char remove();
  13750.  
  13751. int main() {
  13752.  
  13753. /* The GNU C library defines this for functions which it implements
  13754.     to always fail with ENOSYS.  Some functions are actually named
  13755.     something starting with __ and the normal name is an alias.  */
  13756. #if defined (__stub_remove) || defined (__stub___remove)
  13757. choke me
  13758. #else
  13759. remove();
  13760. #endif
  13761.  
  13762. ; return 0; }
  13763. EOF
  13764. if { (eval echo configure:13765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13765.   rm -rf conftest*
  13766.   eval "ac_cv_func_remove=yes"
  13767. else
  13768.   echo "configure: failed program was:" >&5
  13769.   cat conftest.$ac_ext >&5
  13770.   rm -rf conftest*
  13771.   eval "ac_cv_func_remove=no"
  13772. fi
  13773. rm -f conftest*
  13774. fi
  13775.  
  13776. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  13777.   echo "$ac_t""yes" 1>&6
  13778.   :
  13779. else
  13780.   echo "$ac_t""no" 1>&6
  13781. fi
  13782.  
  13783.     if test $ac_cv_func_remove = no; then
  13784.       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  13785. echo "configure:13786: checking for remove in -lposix" >&5
  13786. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  13787. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13788.   echo $ac_n "(cached) $ac_c" 1>&6
  13789. else
  13790.   ac_save_LIBS="$LIBS"
  13791. LIBS="-lposix  $LIBS"
  13792. cat > conftest.$ac_ext <<EOF
  13793. #line 13794 "configure"
  13794. #include "confdefs.h"
  13795. /* Override any gcc2 internal prototype to avoid an error.  */
  13796. /* We use char because int might match the return type of a gcc2
  13797.     builtin and then its argument prototype would still apply.  */
  13798. char remove();
  13799.  
  13800. int main() {
  13801. remove()
  13802. ; return 0; }
  13803. EOF
  13804. if { (eval echo configure:13805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13805.   rm -rf conftest*
  13806.   eval "ac_cv_lib_$ac_lib_var=yes"
  13807. else
  13808.   echo "configure: failed program was:" >&5
  13809.   cat conftest.$ac_ext >&5
  13810.   rm -rf conftest*
  13811.   eval "ac_cv_lib_$ac_lib_var=no"
  13812. fi
  13813. rm -f conftest*
  13814. LIBS="$ac_save_LIBS"
  13815.  
  13816. fi
  13817. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13818.   echo "$ac_t""yes" 1>&6
  13819.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  13820. else
  13821.   echo "$ac_t""no" 1>&6
  13822. fi
  13823.  
  13824.     fi
  13825.  
  13826.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  13827.     echo $ac_n "checking for shmat""... $ac_c" 1>&6
  13828. echo "configure:13829: checking for shmat" >&5
  13829. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  13830.   echo $ac_n "(cached) $ac_c" 1>&6
  13831. else
  13832.   cat > conftest.$ac_ext <<EOF
  13833. #line 13834 "configure"
  13834. #include "confdefs.h"
  13835. /* System header to define __stub macros and hopefully few prototypes,
  13836.     which can conflict with char shmat(); below.  */
  13837. #include <assert.h>
  13838. /* Override any gcc2 internal prototype to avoid an error.  */
  13839. /* We use char because int might match the return type of a gcc2
  13840.     builtin and then its argument prototype would still apply.  */
  13841. char shmat();
  13842.  
  13843. int main() {
  13844.  
  13845. /* The GNU C library defines this for functions which it implements
  13846.     to always fail with ENOSYS.  Some functions are actually named
  13847.     something starting with __ and the normal name is an alias.  */
  13848. #if defined (__stub_shmat) || defined (__stub___shmat)
  13849. choke me
  13850. #else
  13851. shmat();
  13852. #endif
  13853.  
  13854. ; return 0; }
  13855. EOF
  13856. if { (eval echo configure:13857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13857.   rm -rf conftest*
  13858.   eval "ac_cv_func_shmat=yes"
  13859. else
  13860.   echo "configure: failed program was:" >&5
  13861.   cat conftest.$ac_ext >&5
  13862.   rm -rf conftest*
  13863.   eval "ac_cv_func_shmat=no"
  13864. fi
  13865. rm -f conftest*
  13866. fi
  13867.  
  13868. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  13869.   echo "$ac_t""yes" 1>&6
  13870.   :
  13871. else
  13872.   echo "$ac_t""no" 1>&6
  13873. fi
  13874.  
  13875.     if test $ac_cv_func_shmat = no; then
  13876.       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  13877. echo "configure:13878: checking for shmat in -lipc" >&5
  13878. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  13879. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13880.   echo $ac_n "(cached) $ac_c" 1>&6
  13881. else
  13882.   ac_save_LIBS="$LIBS"
  13883. LIBS="-lipc  $LIBS"
  13884. cat > conftest.$ac_ext <<EOF
  13885. #line 13886 "configure"
  13886. #include "confdefs.h"
  13887. /* Override any gcc2 internal prototype to avoid an error.  */
  13888. /* We use char because int might match the return type of a gcc2
  13889.     builtin and then its argument prototype would still apply.  */
  13890. char shmat();
  13891.  
  13892. int main() {
  13893. shmat()
  13894. ; return 0; }
  13895. EOF
  13896. if { (eval echo configure:13897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13897.   rm -rf conftest*
  13898.   eval "ac_cv_lib_$ac_lib_var=yes"
  13899. else
  13900.   echo "configure: failed program was:" >&5
  13901.   cat conftest.$ac_ext >&5
  13902.   rm -rf conftest*
  13903.   eval "ac_cv_lib_$ac_lib_var=no"
  13904. fi
  13905. rm -f conftest*
  13906. LIBS="$ac_save_LIBS"
  13907.  
  13908. fi
  13909. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13910.   echo "$ac_t""yes" 1>&6
  13911.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  13912. else
  13913.   echo "$ac_t""no" 1>&6
  13914. fi
  13915.  
  13916.     fi
  13917.     # XFree86/OS2
  13918.     if test $ac_cv_func_shmat = no; then
  13919.       echo $ac_n "checking for shmat in -lshm""... $ac_c" 1>&6
  13920. echo "configure:13921: checking for shmat in -lshm" >&5
  13921. ac_lib_var=`echo shm'_'shmat | sed 'y%./+-%__p_%'`
  13922. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13923.   echo $ac_n "(cached) $ac_c" 1>&6
  13924. else
  13925.   ac_save_LIBS="$LIBS"
  13926. LIBS="-lshm  $LIBS"
  13927. cat > conftest.$ac_ext <<EOF
  13928. #line 13929 "configure"
  13929. #include "confdefs.h"
  13930. /* Override any gcc2 internal prototype to avoid an error.  */
  13931. /* We use char because int might match the return type of a gcc2
  13932.     builtin and then its argument prototype would still apply.  */
  13933. char shmat();
  13934.  
  13935. int main() {
  13936. shmat()
  13937. ; return 0; }
  13938. EOF
  13939. if { (eval echo configure:13940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13940.   rm -rf conftest*
  13941.   eval "ac_cv_lib_$ac_lib_var=yes"
  13942. else
  13943.   echo "configure: failed program was:" >&5
  13944.   cat conftest.$ac_ext >&5
  13945.   rm -rf conftest*
  13946.   eval "ac_cv_lib_$ac_lib_var=no"
  13947. fi
  13948. rm -f conftest*
  13949. LIBS="$ac_save_LIBS"
  13950.  
  13951. fi
  13952. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  13953.   echo "$ac_t""yes" 1>&6
  13954.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lshm"
  13955. else
  13956.   echo "$ac_t""no" 1>&6
  13957. fi
  13958.  
  13959.     fi
  13960.   fi
  13961.  
  13962.   # Check for libraries that X11R6 Xt/Xaw programs need.
  13963.   ac_save_LDFLAGS="$LDFLAGS"
  13964.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  13965.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  13966.   # check for ICE first), but we must link in the order -lSM -lICE or
  13967.   # we get undefined symbols.  So assume we have SM if we have ICE.
  13968.   # These have to be linked with before -lX11, unlike the other
  13969.   # libraries we check for below, so use a different variable.
  13970.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  13971.   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  13972. echo "configure:13973: checking for IceConnectionNumber in -lICE" >&5
  13973. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  13974. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  13975.   echo $ac_n "(cached) $ac_c" 1>&6
  13976. else
  13977.   ac_save_LIBS="$LIBS"
  13978. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  13979. cat > conftest.$ac_ext <<EOF
  13980. #line 13981 "configure"
  13981. #include "confdefs.h"
  13982. /* Override any gcc2 internal prototype to avoid an error.  */
  13983. /* We use char because int might match the return type of a gcc2
  13984.     builtin and then its argument prototype would still apply.  */
  13985. char IceConnectionNumber();
  13986.  
  13987. int main() {
  13988. IceConnectionNumber()
  13989. ; return 0; }
  13990. EOF
  13991. if { (eval echo configure:13992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  13992.   rm -rf conftest*
  13993.   eval "ac_cv_lib_$ac_lib_var=yes"
  13994. else
  13995.   echo "configure: failed program was:" >&5
  13996.   cat conftest.$ac_ext >&5
  13997.   rm -rf conftest*
  13998.   eval "ac_cv_lib_$ac_lib_var=no"
  13999. fi
  14000. rm -f conftest*
  14001. LIBS="$ac_save_LIBS"
  14002.  
  14003. fi
  14004. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14005.   echo "$ac_t""yes" 1>&6
  14006.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  14007. else
  14008.   echo "$ac_t""no" 1>&6
  14009. fi
  14010.  
  14011.   LDFLAGS="$ac_save_LDFLAGS"
  14012.  
  14013. fi
  14014.  
  14015.  
  14016.         if test "$no_x" = "yes"; then
  14017.           { echo "configure: error: X11 not found" 1>&2; exit 1; }
  14018.         fi
  14019.  
  14020.         GUI_TK_LIBRARY="$X_LIBS"
  14021.         TOOLKIT_INCLUDE="$X_CFLAGS"
  14022.         AFMINSTALL=afminstall
  14023.         COMPILED_X_PROGRAM=0
  14024.  
  14025.         if test "$wxUSE_NANOX" = "yes"; then
  14026.             echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
  14027. echo "configure:14028: checking for MicroWindows/NanoX distribution" >&5
  14028.             if test "x$MICROWIN" = x ; then
  14029.                 echo "$ac_t""not found" 1>&6
  14030.                 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
  14031.             else
  14032.                 echo "$ac_t""$MICROWIN" 1>&6
  14033.                 cat >> confdefs.h <<\EOF
  14034. #define wxUSE_NANOX 1
  14035. EOF
  14036.  
  14037.             fi
  14038.         fi
  14039.  
  14040.         xpm_link=
  14041.         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
  14042. echo "configure:14043: checking for Xpm library" >&5
  14043.         
  14044. ac_find_libraries=
  14045. for ac_dir in $SEARCH_LIB;
  14046.   do
  14047.     for ac_extension in a so sl dylib; do
  14048.       if test -f "$ac_dir/libXpm.$ac_extension"; then
  14049.         ac_find_libraries=$ac_dir
  14050.         break 2
  14051.       fi
  14052.     done
  14053.   done
  14054.  
  14055.         if test "$ac_find_libraries" != "" ; then
  14056.             
  14057.   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
  14058.   result=$?
  14059.   if test $result = 0; then
  14060.     ac_path_to_link=""
  14061.   else
  14062.     ac_path_to_link=" -L$ac_find_libraries"
  14063.   fi
  14064.  
  14065.             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
  14066.             xpm_link=" -lXpm"
  14067.             cat >> confdefs.h <<\EOF
  14068. #define wxHAVE_LIB_XPM 1
  14069. EOF
  14070.  
  14071.             echo "$ac_t""found at $ac_find_libraries" 1>&6
  14072.         else
  14073.             cat > conftest.$ac_ext <<EOF
  14074. #line 14075 "configure"
  14075. #include "confdefs.h"
  14076.  
  14077.                     #include <X11/xpm.h>
  14078.                 
  14079. int main() {
  14080.  
  14081.                     int version;
  14082.                     version = XpmLibraryVersion();
  14083.                 
  14084. ; return 0; }
  14085. EOF
  14086. if { (eval echo configure:14087: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  14087.   rm -rf conftest*
  14088.   
  14089.                     xpm_link=" -lXpm"
  14090.                     cat >> confdefs.h <<\EOF
  14091. #define wxHAVE_LIB_XPM 1
  14092. EOF
  14093.  
  14094.                     echo "$ac_t""found in default search path" 1>&6
  14095.                     COMPILED_X_PROGRAM=0
  14096.                 
  14097. else
  14098.   echo "configure: failed program was:" >&5
  14099.   cat conftest.$ac_ext >&5
  14100.   rm -rf conftest*
  14101.   
  14102.                     echo "$ac_t""no" 1>&6
  14103.                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
  14104.                 
  14105.             
  14106. fi
  14107. rm -f conftest*
  14108.         fi
  14109.  
  14110.         wxUSE_UNIVERSAL="yes"
  14111.  
  14112.         if test "$wxUSE_NANOX" = "yes"; then
  14113.             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
  14114.             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 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
  14115.             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
  14116.         else
  14117.             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
  14118.         fi
  14119.  
  14120.         TOOLKIT_VPATH="\${top_srcdir}/src/x11"
  14121.         TOOLKIT=X11
  14122.         GUIDIST=X11_DIST
  14123.     fi
  14124.  
  14125.     if test "$wxUSE_WINE" = 1; then
  14126.         ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
  14127. echo $ac_n "checking for windows.h""... $ac_c" 1>&6
  14128. echo "configure:14129: checking for windows.h" >&5
  14129. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  14130.   echo $ac_n "(cached) $ac_c" 1>&6
  14131. else
  14132.   cat > conftest.$ac_ext <<EOF
  14133. #include <sys/types.h>
  14134. #line 14135 "configure"
  14135. #include "confdefs.h"
  14136. #include <windows.h>
  14137. EOF
  14138. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  14139. { (eval echo configure:14140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  14140. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  14141. if test -z "$ac_err"; then
  14142.   rm -rf conftest*
  14143.   eval "ac_cv_header_$ac_safe=yes"
  14144. else
  14145.   echo "$ac_err" >&5
  14146.   echo "configure: failed program was:" >&5
  14147.   cat conftest.$ac_ext >&5
  14148.   rm -rf conftest*
  14149.   eval "ac_cv_header_$ac_safe=no"
  14150. fi
  14151. rm -f conftest*
  14152. fi
  14153. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  14154.   echo "$ac_t""yes" 1>&6
  14155.   :
  14156. else
  14157.   echo "$ac_t""no" 1>&6
  14158.  
  14159.             { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
  14160.         
  14161. fi
  14162.  
  14163.  
  14164.         xpm_link=
  14165.         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
  14166. echo "configure:14167: checking for Xpm library" >&5
  14167.         
  14168. ac_find_libraries=
  14169. for ac_dir in $SEARCH_LIB;
  14170.   do
  14171.     for ac_extension in a so sl dylib; do
  14172.       if test -f "$ac_dir/libXpm.$ac_extension"; then
  14173.         ac_find_libraries=$ac_dir
  14174.         break 2
  14175.       fi
  14176.     done
  14177.   done
  14178.  
  14179.         if test "$ac_find_libraries" != "" ; then
  14180.             GUI_TK_LIBRARY="-L$ac_find_libraries"
  14181.             xpm_link=" -lXpm"
  14182.             cat >> confdefs.h <<\EOF
  14183. #define wxHAVE_LIB_XPM 1
  14184. EOF
  14185.  
  14186.             echo "$ac_t""found at $ac_find_libraries" 1>&6
  14187.         else
  14188.             echo "$ac_t""no" 1>&6
  14189.             echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
  14190.         fi
  14191.  
  14192.         mesa_link=
  14193.         echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
  14194. echo "configure:14195: checking for Mesa library" >&5
  14195.         
  14196. ac_find_libraries=
  14197. for ac_dir in $SEARCH_LIB;
  14198.   do
  14199.     for ac_extension in a so sl dylib; do
  14200.       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
  14201.         ac_find_libraries=$ac_dir
  14202.         break 2
  14203.       fi
  14204.     done
  14205.   done
  14206.  
  14207.         if test "$ac_find_libraries" != "" ; then
  14208.             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
  14209.             mesa_link=" -lMesaGL"
  14210.             echo "$ac_t""found at $ac_find_libraries" 1>&6
  14211.         else
  14212.             { echo "configure: error: no" 1>&2; exit 1; }
  14213.         fi
  14214.  
  14215.         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
  14216.         TOOLKIT=MSW
  14217.         GUIDIST=MSW_DIST
  14218.         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
  14219.     fi
  14220.  
  14221.     if test "$wxUSE_MOTIF" = 1; then
  14222.                         if test "$no_x" = yes; then
  14223.   # Not all programs may use this symbol, but it does not hurt to define it.
  14224.   cat >> confdefs.h <<\EOF
  14225. #define X_DISPLAY_MISSING 1
  14226. EOF
  14227.  
  14228.   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
  14229. else
  14230.   if test -n "$x_includes"; then
  14231.     X_CFLAGS="$X_CFLAGS -I$x_includes"
  14232.   fi
  14233.   test -n "$x_includes" && CPPFLAGS="$CPPFLAGS -I$x_includes"
  14234.  
  14235.   # It would also be nice to do this for all -L options, not just this one.
  14236.   if test -n "$x_libraries"; then
  14237.     X_LIBS="$X_LIBS -L$x_libraries"
  14238.     # For Solaris; some versions of Sun CC require a space after -R and
  14239.     # others require no space.  Words are not sufficient . . . .
  14240.     case "`(uname -sr) 2>/dev/null`" in
  14241.     "SunOS 5"*)
  14242.       echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
  14243. echo "configure:14244: checking whether -R must be followed by a space" >&5
  14244.       ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
  14245.       cat > conftest.$ac_ext <<EOF
  14246. #line 14247 "configure"
  14247. #include "confdefs.h"
  14248.  
  14249. int main() {
  14250.  
  14251. ; return 0; }
  14252. EOF
  14253. if { (eval echo configure:14254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14254.   rm -rf conftest*
  14255.   ac_R_nospace=yes
  14256. else
  14257.   echo "configure: failed program was:" >&5
  14258.   cat conftest.$ac_ext >&5
  14259.   rm -rf conftest*
  14260.   ac_R_nospace=no
  14261. fi
  14262. rm -f conftest*
  14263.       if test $ac_R_nospace = yes; then
  14264.     echo "$ac_t""no" 1>&6
  14265.     X_LIBS="$X_LIBS -R$x_libraries"
  14266.       else
  14267.     LIBS="$ac_xsave_LIBS -R $x_libraries"
  14268.     cat > conftest.$ac_ext <<EOF
  14269. #line 14270 "configure"
  14270. #include "confdefs.h"
  14271.  
  14272. int main() {
  14273.  
  14274. ; return 0; }
  14275. EOF
  14276. if { (eval echo configure:14277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14277.   rm -rf conftest*
  14278.   ac_R_space=yes
  14279. else
  14280.   echo "configure: failed program was:" >&5
  14281.   cat conftest.$ac_ext >&5
  14282.   rm -rf conftest*
  14283.   ac_R_space=no
  14284. fi
  14285. rm -f conftest*
  14286.     if test $ac_R_space = yes; then
  14287.       echo "$ac_t""yes" 1>&6
  14288.       X_LIBS="$X_LIBS -R $x_libraries"
  14289.     else
  14290.       echo "$ac_t""neither works" 1>&6
  14291.     fi
  14292.       fi
  14293.       LIBS="$ac_xsave_LIBS"
  14294.     esac
  14295.   fi
  14296.  
  14297.   # Check for system-dependent libraries X programs must link with.
  14298.   # Do this before checking for the system-independent R6 libraries
  14299.   # (-lICE), since we may need -lsocket or whatever for X linking.
  14300.  
  14301.   if test "$ISC" = yes; then
  14302.     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
  14303.   else
  14304.     # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
  14305.     # libraries were built with DECnet support.  And karl@cs.umb.edu says
  14306.     # the Alpha needs dnet_stub (dnet does not exist).
  14307.     echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
  14308. echo "configure:14309: checking for dnet_ntoa in -ldnet" >&5
  14309. ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  14310. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14311.   echo $ac_n "(cached) $ac_c" 1>&6
  14312. else
  14313.   ac_save_LIBS="$LIBS"
  14314. LIBS="-ldnet  $LIBS"
  14315. cat > conftest.$ac_ext <<EOF
  14316. #line 14317 "configure"
  14317. #include "confdefs.h"
  14318. /* Override any gcc2 internal prototype to avoid an error.  */
  14319. /* We use char because int might match the return type of a gcc2
  14320.     builtin and then its argument prototype would still apply.  */
  14321. char dnet_ntoa();
  14322.  
  14323. int main() {
  14324. dnet_ntoa()
  14325. ; return 0; }
  14326. EOF
  14327. if { (eval echo configure:14328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14328.   rm -rf conftest*
  14329.   eval "ac_cv_lib_$ac_lib_var=yes"
  14330. else
  14331.   echo "configure: failed program was:" >&5
  14332.   cat conftest.$ac_ext >&5
  14333.   rm -rf conftest*
  14334.   eval "ac_cv_lib_$ac_lib_var=no"
  14335. fi
  14336. rm -f conftest*
  14337. LIBS="$ac_save_LIBS"
  14338.  
  14339. fi
  14340. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14341.   echo "$ac_t""yes" 1>&6
  14342.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
  14343. else
  14344.   echo "$ac_t""no" 1>&6
  14345. fi
  14346.  
  14347.     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
  14348.       echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
  14349. echo "configure:14350: checking for dnet_ntoa in -ldnet_stub" >&5
  14350. ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
  14351. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14352.   echo $ac_n "(cached) $ac_c" 1>&6
  14353. else
  14354.   ac_save_LIBS="$LIBS"
  14355. LIBS="-ldnet_stub  $LIBS"
  14356. cat > conftest.$ac_ext <<EOF
  14357. #line 14358 "configure"
  14358. #include "confdefs.h"
  14359. /* Override any gcc2 internal prototype to avoid an error.  */
  14360. /* We use char because int might match the return type of a gcc2
  14361.     builtin and then its argument prototype would still apply.  */
  14362. char dnet_ntoa();
  14363.  
  14364. int main() {
  14365. dnet_ntoa()
  14366. ; return 0; }
  14367. EOF
  14368. if { (eval echo configure:14369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14369.   rm -rf conftest*
  14370.   eval "ac_cv_lib_$ac_lib_var=yes"
  14371. else
  14372.   echo "configure: failed program was:" >&5
  14373.   cat conftest.$ac_ext >&5
  14374.   rm -rf conftest*
  14375.   eval "ac_cv_lib_$ac_lib_var=no"
  14376. fi
  14377. rm -f conftest*
  14378. LIBS="$ac_save_LIBS"
  14379.  
  14380. fi
  14381. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14382.   echo "$ac_t""yes" 1>&6
  14383.   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
  14384. else
  14385.   echo "$ac_t""no" 1>&6
  14386. fi
  14387.  
  14388.     fi
  14389.  
  14390.     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
  14391.     # to get the SysV transport functions.
  14392.     # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
  14393.     # needs -lnsl.
  14394.     # The nsl library prevents programs from opening the X display
  14395.     # on Irix 5.2, according to dickey@clark.net.
  14396.     echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
  14397. echo "configure:14398: checking for gethostbyname" >&5
  14398. if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
  14399.   echo $ac_n "(cached) $ac_c" 1>&6
  14400. else
  14401.   cat > conftest.$ac_ext <<EOF
  14402. #line 14403 "configure"
  14403. #include "confdefs.h"
  14404. /* System header to define __stub macros and hopefully few prototypes,
  14405.     which can conflict with char gethostbyname(); below.  */
  14406. #include <assert.h>
  14407. /* Override any gcc2 internal prototype to avoid an error.  */
  14408. /* We use char because int might match the return type of a gcc2
  14409.     builtin and then its argument prototype would still apply.  */
  14410. char gethostbyname();
  14411.  
  14412. int main() {
  14413.  
  14414. /* The GNU C library defines this for functions which it implements
  14415.     to always fail with ENOSYS.  Some functions are actually named
  14416.     something starting with __ and the normal name is an alias.  */
  14417. #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
  14418. choke me
  14419. #else
  14420. gethostbyname();
  14421. #endif
  14422.  
  14423. ; return 0; }
  14424. EOF
  14425. if { (eval echo configure:14426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14426.   rm -rf conftest*
  14427.   eval "ac_cv_func_gethostbyname=yes"
  14428. else
  14429.   echo "configure: failed program was:" >&5
  14430.   cat conftest.$ac_ext >&5
  14431.   rm -rf conftest*
  14432.   eval "ac_cv_func_gethostbyname=no"
  14433. fi
  14434. rm -f conftest*
  14435. fi
  14436.  
  14437. if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
  14438.   echo "$ac_t""yes" 1>&6
  14439.   :
  14440. else
  14441.   echo "$ac_t""no" 1>&6
  14442. fi
  14443.  
  14444.     if test $ac_cv_func_gethostbyname = no; then
  14445.       echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
  14446. echo "configure:14447: checking for gethostbyname in -lnsl" >&5
  14447. ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
  14448. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14449.   echo $ac_n "(cached) $ac_c" 1>&6
  14450. else
  14451.   ac_save_LIBS="$LIBS"
  14452. LIBS="-lnsl  $LIBS"
  14453. cat > conftest.$ac_ext <<EOF
  14454. #line 14455 "configure"
  14455. #include "confdefs.h"
  14456. /* Override any gcc2 internal prototype to avoid an error.  */
  14457. /* We use char because int might match the return type of a gcc2
  14458.     builtin and then its argument prototype would still apply.  */
  14459. char gethostbyname();
  14460.  
  14461. int main() {
  14462. gethostbyname()
  14463. ; return 0; }
  14464. EOF
  14465. if { (eval echo configure:14466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14466.   rm -rf conftest*
  14467.   eval "ac_cv_lib_$ac_lib_var=yes"
  14468. else
  14469.   echo "configure: failed program was:" >&5
  14470.   cat conftest.$ac_ext >&5
  14471.   rm -rf conftest*
  14472.   eval "ac_cv_lib_$ac_lib_var=no"
  14473. fi
  14474. rm -f conftest*
  14475. LIBS="$ac_save_LIBS"
  14476.  
  14477. fi
  14478. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14479.   echo "$ac_t""yes" 1>&6
  14480.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
  14481. else
  14482.   echo "$ac_t""no" 1>&6
  14483. fi
  14484.  
  14485.     fi
  14486.  
  14487.     # lieder@skyler.mavd.honeywell.com says without -lsocket,
  14488.     # socket/setsockopt and other routines are undefined under SCO ODT
  14489.     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
  14490.     # on later versions), says simon@lia.di.epfl.ch: it contains
  14491.     # gethostby* variants that don't use the nameserver (or something).
  14492.     # -lsocket must be given before -lnsl if both are needed.
  14493.     # We assume that if connect needs -lnsl, so does gethostbyname.
  14494.     echo $ac_n "checking for connect""... $ac_c" 1>&6
  14495. echo "configure:14496: checking for connect" >&5
  14496. if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
  14497.   echo $ac_n "(cached) $ac_c" 1>&6
  14498. else
  14499.   cat > conftest.$ac_ext <<EOF
  14500. #line 14501 "configure"
  14501. #include "confdefs.h"
  14502. /* System header to define __stub macros and hopefully few prototypes,
  14503.     which can conflict with char connect(); below.  */
  14504. #include <assert.h>
  14505. /* Override any gcc2 internal prototype to avoid an error.  */
  14506. /* We use char because int might match the return type of a gcc2
  14507.     builtin and then its argument prototype would still apply.  */
  14508. char connect();
  14509.  
  14510. int main() {
  14511.  
  14512. /* The GNU C library defines this for functions which it implements
  14513.     to always fail with ENOSYS.  Some functions are actually named
  14514.     something starting with __ and the normal name is an alias.  */
  14515. #if defined (__stub_connect) || defined (__stub___connect)
  14516. choke me
  14517. #else
  14518. connect();
  14519. #endif
  14520.  
  14521. ; return 0; }
  14522. EOF
  14523. if { (eval echo configure:14524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14524.   rm -rf conftest*
  14525.   eval "ac_cv_func_connect=yes"
  14526. else
  14527.   echo "configure: failed program was:" >&5
  14528.   cat conftest.$ac_ext >&5
  14529.   rm -rf conftest*
  14530.   eval "ac_cv_func_connect=no"
  14531. fi
  14532. rm -f conftest*
  14533. fi
  14534.  
  14535. if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
  14536.   echo "$ac_t""yes" 1>&6
  14537.   :
  14538. else
  14539.   echo "$ac_t""no" 1>&6
  14540. fi
  14541.  
  14542.     if test $ac_cv_func_connect = no; then
  14543.       echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
  14544. echo "configure:14545: checking for connect in -lsocket" >&5
  14545. ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
  14546. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14547.   echo $ac_n "(cached) $ac_c" 1>&6
  14548. else
  14549.   ac_save_LIBS="$LIBS"
  14550. LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
  14551. cat > conftest.$ac_ext <<EOF
  14552. #line 14553 "configure"
  14553. #include "confdefs.h"
  14554. /* Override any gcc2 internal prototype to avoid an error.  */
  14555. /* We use char because int might match the return type of a gcc2
  14556.     builtin and then its argument prototype would still apply.  */
  14557. char connect();
  14558.  
  14559. int main() {
  14560. connect()
  14561. ; return 0; }
  14562. EOF
  14563. if { (eval echo configure:14564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14564.   rm -rf conftest*
  14565.   eval "ac_cv_lib_$ac_lib_var=yes"
  14566. else
  14567.   echo "configure: failed program was:" >&5
  14568.   cat conftest.$ac_ext >&5
  14569.   rm -rf conftest*
  14570.   eval "ac_cv_lib_$ac_lib_var=no"
  14571. fi
  14572. rm -f conftest*
  14573. LIBS="$ac_save_LIBS"
  14574.  
  14575. fi
  14576. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14577.   echo "$ac_t""yes" 1>&6
  14578.   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
  14579. else
  14580.   echo "$ac_t""no" 1>&6
  14581. fi
  14582.  
  14583.     fi
  14584.  
  14585.     # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
  14586.     echo $ac_n "checking for remove""... $ac_c" 1>&6
  14587. echo "configure:14588: checking for remove" >&5
  14588. if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
  14589.   echo $ac_n "(cached) $ac_c" 1>&6
  14590. else
  14591.   cat > conftest.$ac_ext <<EOF
  14592. #line 14593 "configure"
  14593. #include "confdefs.h"
  14594. /* System header to define __stub macros and hopefully few prototypes,
  14595.     which can conflict with char remove(); below.  */
  14596. #include <assert.h>
  14597. /* Override any gcc2 internal prototype to avoid an error.  */
  14598. /* We use char because int might match the return type of a gcc2
  14599.     builtin and then its argument prototype would still apply.  */
  14600. char remove();
  14601.  
  14602. int main() {
  14603.  
  14604. /* The GNU C library defines this for functions which it implements
  14605.     to always fail with ENOSYS.  Some functions are actually named
  14606.     something starting with __ and the normal name is an alias.  */
  14607. #if defined (__stub_remove) || defined (__stub___remove)
  14608. choke me
  14609. #else
  14610. remove();
  14611. #endif
  14612.  
  14613. ; return 0; }
  14614. EOF
  14615. if { (eval echo configure:14616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14616.   rm -rf conftest*
  14617.   eval "ac_cv_func_remove=yes"
  14618. else
  14619.   echo "configure: failed program was:" >&5
  14620.   cat conftest.$ac_ext >&5
  14621.   rm -rf conftest*
  14622.   eval "ac_cv_func_remove=no"
  14623. fi
  14624. rm -f conftest*
  14625. fi
  14626.  
  14627. if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
  14628.   echo "$ac_t""yes" 1>&6
  14629.   :
  14630. else
  14631.   echo "$ac_t""no" 1>&6
  14632. fi
  14633.  
  14634.     if test $ac_cv_func_remove = no; then
  14635.       echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
  14636. echo "configure:14637: checking for remove in -lposix" >&5
  14637. ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
  14638. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14639.   echo $ac_n "(cached) $ac_c" 1>&6
  14640. else
  14641.   ac_save_LIBS="$LIBS"
  14642. LIBS="-lposix  $LIBS"
  14643. cat > conftest.$ac_ext <<EOF
  14644. #line 14645 "configure"
  14645. #include "confdefs.h"
  14646. /* Override any gcc2 internal prototype to avoid an error.  */
  14647. /* We use char because int might match the return type of a gcc2
  14648.     builtin and then its argument prototype would still apply.  */
  14649. char remove();
  14650.  
  14651. int main() {
  14652. remove()
  14653. ; return 0; }
  14654. EOF
  14655. if { (eval echo configure:14656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14656.   rm -rf conftest*
  14657.   eval "ac_cv_lib_$ac_lib_var=yes"
  14658. else
  14659.   echo "configure: failed program was:" >&5
  14660.   cat conftest.$ac_ext >&5
  14661.   rm -rf conftest*
  14662.   eval "ac_cv_lib_$ac_lib_var=no"
  14663. fi
  14664. rm -f conftest*
  14665. LIBS="$ac_save_LIBS"
  14666.  
  14667. fi
  14668. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14669.   echo "$ac_t""yes" 1>&6
  14670.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
  14671. else
  14672.   echo "$ac_t""no" 1>&6
  14673. fi
  14674.  
  14675.     fi
  14676.  
  14677.     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
  14678.     echo $ac_n "checking for shmat""... $ac_c" 1>&6
  14679. echo "configure:14680: checking for shmat" >&5
  14680. if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
  14681.   echo $ac_n "(cached) $ac_c" 1>&6
  14682. else
  14683.   cat > conftest.$ac_ext <<EOF
  14684. #line 14685 "configure"
  14685. #include "confdefs.h"
  14686. /* System header to define __stub macros and hopefully few prototypes,
  14687.     which can conflict with char shmat(); below.  */
  14688. #include <assert.h>
  14689. /* Override any gcc2 internal prototype to avoid an error.  */
  14690. /* We use char because int might match the return type of a gcc2
  14691.     builtin and then its argument prototype would still apply.  */
  14692. char shmat();
  14693.  
  14694. int main() {
  14695.  
  14696. /* The GNU C library defines this for functions which it implements
  14697.     to always fail with ENOSYS.  Some functions are actually named
  14698.     something starting with __ and the normal name is an alias.  */
  14699. #if defined (__stub_shmat) || defined (__stub___shmat)
  14700. choke me
  14701. #else
  14702. shmat();
  14703. #endif
  14704.  
  14705. ; return 0; }
  14706. EOF
  14707. if { (eval echo configure:14708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14708.   rm -rf conftest*
  14709.   eval "ac_cv_func_shmat=yes"
  14710. else
  14711.   echo "configure: failed program was:" >&5
  14712.   cat conftest.$ac_ext >&5
  14713.   rm -rf conftest*
  14714.   eval "ac_cv_func_shmat=no"
  14715. fi
  14716. rm -f conftest*
  14717. fi
  14718.  
  14719. if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
  14720.   echo "$ac_t""yes" 1>&6
  14721.   :
  14722. else
  14723.   echo "$ac_t""no" 1>&6
  14724. fi
  14725.  
  14726.     if test $ac_cv_func_shmat = no; then
  14727.       echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
  14728. echo "configure:14729: checking for shmat in -lipc" >&5
  14729. ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
  14730. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14731.   echo $ac_n "(cached) $ac_c" 1>&6
  14732. else
  14733.   ac_save_LIBS="$LIBS"
  14734. LIBS="-lipc  $LIBS"
  14735. cat > conftest.$ac_ext <<EOF
  14736. #line 14737 "configure"
  14737. #include "confdefs.h"
  14738. /* Override any gcc2 internal prototype to avoid an error.  */
  14739. /* We use char because int might match the return type of a gcc2
  14740.     builtin and then its argument prototype would still apply.  */
  14741. char shmat();
  14742.  
  14743. int main() {
  14744. shmat()
  14745. ; return 0; }
  14746. EOF
  14747. if { (eval echo configure:14748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14748.   rm -rf conftest*
  14749.   eval "ac_cv_lib_$ac_lib_var=yes"
  14750. else
  14751.   echo "configure: failed program was:" >&5
  14752.   cat conftest.$ac_ext >&5
  14753.   rm -rf conftest*
  14754.   eval "ac_cv_lib_$ac_lib_var=no"
  14755. fi
  14756. rm -f conftest*
  14757. LIBS="$ac_save_LIBS"
  14758.  
  14759. fi
  14760. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14761.   echo "$ac_t""yes" 1>&6
  14762.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
  14763. else
  14764.   echo "$ac_t""no" 1>&6
  14765. fi
  14766.  
  14767.     fi
  14768.     # XFree86/OS2
  14769.     if test $ac_cv_func_shmat = no; then
  14770.       echo $ac_n "checking for shmat in -lshm""... $ac_c" 1>&6
  14771. echo "configure:14772: checking for shmat in -lshm" >&5
  14772. ac_lib_var=`echo shm'_'shmat | sed 'y%./+-%__p_%'`
  14773. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14774.   echo $ac_n "(cached) $ac_c" 1>&6
  14775. else
  14776.   ac_save_LIBS="$LIBS"
  14777. LIBS="-lshm  $LIBS"
  14778. cat > conftest.$ac_ext <<EOF
  14779. #line 14780 "configure"
  14780. #include "confdefs.h"
  14781. /* Override any gcc2 internal prototype to avoid an error.  */
  14782. /* We use char because int might match the return type of a gcc2
  14783.     builtin and then its argument prototype would still apply.  */
  14784. char shmat();
  14785.  
  14786. int main() {
  14787. shmat()
  14788. ; return 0; }
  14789. EOF
  14790. if { (eval echo configure:14791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14791.   rm -rf conftest*
  14792.   eval "ac_cv_lib_$ac_lib_var=yes"
  14793. else
  14794.   echo "configure: failed program was:" >&5
  14795.   cat conftest.$ac_ext >&5
  14796.   rm -rf conftest*
  14797.   eval "ac_cv_lib_$ac_lib_var=no"
  14798. fi
  14799. rm -f conftest*
  14800. LIBS="$ac_save_LIBS"
  14801.  
  14802. fi
  14803. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14804.   echo "$ac_t""yes" 1>&6
  14805.   X_EXTRA_LIBS="$X_EXTRA_LIBS -lshm"
  14806. else
  14807.   echo "$ac_t""no" 1>&6
  14808. fi
  14809.  
  14810.     fi
  14811.   fi
  14812.  
  14813.   # Check for libraries that X11R6 Xt/Xaw programs need.
  14814.   ac_save_LDFLAGS="$LDFLAGS"
  14815.   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
  14816.   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
  14817.   # check for ICE first), but we must link in the order -lSM -lICE or
  14818.   # we get undefined symbols.  So assume we have SM if we have ICE.
  14819.   # These have to be linked with before -lX11, unlike the other
  14820.   # libraries we check for below, so use a different variable.
  14821.   #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
  14822.   echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
  14823. echo "configure:14824: checking for IceConnectionNumber in -lICE" >&5
  14824. ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
  14825. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  14826.   echo $ac_n "(cached) $ac_c" 1>&6
  14827. else
  14828.   ac_save_LIBS="$LIBS"
  14829. LIBS="-lICE $X_EXTRA_LIBS $LIBS"
  14830. cat > conftest.$ac_ext <<EOF
  14831. #line 14832 "configure"
  14832. #include "confdefs.h"
  14833. /* Override any gcc2 internal prototype to avoid an error.  */
  14834. /* We use char because int might match the return type of a gcc2
  14835.     builtin and then its argument prototype would still apply.  */
  14836. char IceConnectionNumber();
  14837.  
  14838. int main() {
  14839. IceConnectionNumber()
  14840. ; return 0; }
  14841. EOF
  14842. if { (eval echo configure:14843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  14843.   rm -rf conftest*
  14844.   eval "ac_cv_lib_$ac_lib_var=yes"
  14845. else
  14846.   echo "configure: failed program was:" >&5
  14847.   cat conftest.$ac_ext >&5
  14848.   rm -rf conftest*
  14849.   eval "ac_cv_lib_$ac_lib_var=no"
  14850. fi
  14851. rm -f conftest*
  14852. LIBS="$ac_save_LIBS"
  14853.  
  14854. fi
  14855. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  14856.   echo "$ac_t""yes" 1>&6
  14857.   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
  14858. else
  14859.   echo "$ac_t""no" 1>&6
  14860. fi
  14861.  
  14862.   LDFLAGS="$ac_save_LDFLAGS"
  14863.  
  14864. fi
  14865.  
  14866.  
  14867.         if test "$no_x" = "yes"; then
  14868.           { echo "configure: error: X11 not found" 1>&2; exit 1; }
  14869.         fi
  14870.  
  14871.         GUI_TK_LIBRARY="$X_LIBS"
  14872.         TOOLKIT_INCLUDE="$X_CFLAGS"
  14873.         AFMINSTALL=afminstall
  14874.         COMPILED_X_PROGRAM=0
  14875.  
  14876.         echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
  14877. echo "configure:14878: checking for Motif/Lesstif headers" >&5
  14878.         
  14879. ac_find_includes=
  14880. for ac_dir in $SEARCH_INCLUDE;
  14881.   do
  14882.     if test -f "$ac_dir/Xm/Xm.h"; then
  14883.       ac_find_includes=$ac_dir
  14884.       break
  14885.     fi
  14886.   done
  14887.  
  14888.         if test "$ac_find_includes" != "" ; then
  14889.             echo "$ac_t""found in $ac_find_includes" 1>&6
  14890.             
  14891.   ac_path_to_include=$ac_find_includes
  14892.   echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
  14893.   result=$?
  14894.   if test $result = 0; then
  14895.     ac_path_to_include=""
  14896.   else
  14897.     ac_path_to_include=" -I$ac_find_includes"
  14898.   fi
  14899.  
  14900.             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
  14901.         else
  14902.             cat > conftest.$ac_ext <<EOF
  14903. #line 14904 "configure"
  14904. #include "confdefs.h"
  14905.  
  14906.                     #include <Xm/Xm.h>
  14907.                 
  14908. int main() {
  14909.  
  14910.                     int version;
  14911.                     version = xmUseVersion;
  14912.                 
  14913. ; return 0; }
  14914. EOF
  14915. if { (eval echo configure:14916: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  14916.   rm -rf conftest*
  14917.   
  14918.                     echo "$ac_t""found in default search path" 1>&6
  14919.                     COMPILED_X_PROGRAM=1
  14920.                 
  14921. else
  14922.   echo "configure: failed program was:" >&5
  14923.   cat conftest.$ac_ext >&5
  14924.   rm -rf conftest*
  14925.   
  14926.                     echo "$ac_t""no" 1>&6
  14927.                     { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
  14928.                 
  14929.             
  14930. fi
  14931. rm -f conftest*
  14932.         fi
  14933.  
  14934.         if test "$COMPILED_X_PROGRAM" = 0; then
  14935.             echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
  14936. echo "configure:14937: checking for Motif/Lesstif library" >&5
  14937.             
  14938. ac_find_libraries=
  14939. for ac_dir in $SEARCH_LIB;
  14940.   do
  14941.     for ac_extension in a so sl dylib; do
  14942.       if test -f "$ac_dir/libXm.$ac_extension"; then
  14943.         ac_find_libraries=$ac_dir
  14944.         break 2
  14945.       fi
  14946.     done
  14947.   done
  14948.  
  14949.             if test "$ac_find_libraries" != "" ; then
  14950.                 echo "$ac_t""found at $ac_find_libraries" 1>&6
  14951.  
  14952.                 
  14953.   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
  14954.   result=$?
  14955.   if test $result = 0; then
  14956.     ac_path_to_link=""
  14957.   else
  14958.     ac_path_to_link=" -L$ac_find_libraries"
  14959.   fi
  14960.  
  14961.                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
  14962.             else
  14963.                                                                 save_CFLAGS=$CFLAGS
  14964.                 CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
  14965.  
  14966.                 cat > conftest.$ac_ext <<EOF
  14967. #line 14968 "configure"
  14968. #include "confdefs.h"
  14969.  
  14970.                         #include <Xm/Xm.h>
  14971.                     
  14972. int main() {
  14973.  
  14974.                         int version;
  14975.                         version = xmUseVersion;
  14976.                     
  14977. ; return 0; }
  14978. EOF
  14979. if { (eval echo configure:14980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  14980.   rm -rf conftest*
  14981.   
  14982.                         echo "$ac_t""found in default search path" 1>&6
  14983.                         COMPILED_X_PROGRAM=1
  14984.                     
  14985. else
  14986.   echo "configure: failed program was:" >&5
  14987.   cat conftest.$ac_ext >&5
  14988.   rm -rf conftest*
  14989.   
  14990.                         echo "$ac_t""no" 1>&6
  14991.                         { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
  14992.                     
  14993.                 
  14994. fi
  14995. rm -f conftest*
  14996.  
  14997.                 CFLAGS=$save_CFLAGS
  14998.             fi
  14999.         fi
  15000.  
  15001.         xpm_link=
  15002.         echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
  15003. echo "configure:15004: checking for Xpm library" >&5
  15004.         
  15005. ac_find_libraries=
  15006. for ac_dir in $SEARCH_LIB;
  15007.   do
  15008.     for ac_extension in a so sl dylib; do
  15009.       if test -f "$ac_dir/libXpm.$ac_extension"; then
  15010.         ac_find_libraries=$ac_dir
  15011.         break 2
  15012.       fi
  15013.     done
  15014.   done
  15015.  
  15016.         if test "$ac_find_libraries" != "" ; then
  15017.             
  15018.   echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
  15019.   result=$?
  15020.   if test $result = 0; then
  15021.     ac_path_to_link=""
  15022.   else
  15023.     ac_path_to_link=" -L$ac_find_libraries"
  15024.   fi
  15025.  
  15026.             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
  15027.  
  15028.             xpm_link=" -lXpm"
  15029.             cat >> confdefs.h <<\EOF
  15030. #define wxHAVE_LIB_XPM 1
  15031. EOF
  15032.  
  15033.             echo "$ac_t""found at $ac_find_libraries" 1>&6
  15034.         else
  15035.             save_CFLAGS=$CFLAGS
  15036.             CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
  15037.  
  15038.             cat > conftest.$ac_ext <<EOF
  15039. #line 15040 "configure"
  15040. #include "confdefs.h"
  15041.  
  15042.                     #include <X11/xpm.h>
  15043.                 
  15044. int main() {
  15045.  
  15046.                     int version;
  15047.                     version = XpmLibraryVersion();
  15048.                 
  15049. ; return 0; }
  15050. EOF
  15051. if { (eval echo configure:15052: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  15052.   rm -rf conftest*
  15053.   
  15054.                     xpm_link=" -lXpm"
  15055.                     cat >> confdefs.h <<\EOF
  15056. #define wxHAVE_LIB_XPM 1
  15057. EOF
  15058.  
  15059.                     echo "$ac_t""found in default search path" 1>&6
  15060.                     COMPILED_X_PROGRAM=0
  15061.                 
  15062. else
  15063.   echo "configure: failed program was:" >&5
  15064.   cat conftest.$ac_ext >&5
  15065.   rm -rf conftest*
  15066.   
  15067.                     echo "$ac_t""no" 1>&6
  15068.                     echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
  15069.                 
  15070.             
  15071. fi
  15072. rm -f conftest*
  15073.  
  15074.             CFLAGS=$save_CFLAGS
  15075.         fi
  15076.  
  15077.         echo $ac_n "checking if we need -lXp and/or -lSM -lICE""... $ac_c" 1>&6
  15078. echo "configure:15079: checking if we need -lXp and/or -lSM -lICE" >&5
  15079.         libp_link=""
  15080.         libsm_ice_link=""
  15081.         libs_found=0
  15082.         for libp in "" " -lXp"; do
  15083.             if test "$libs_found" = "0"; then
  15084.                 for libsm_ice in " -lSM -lICE"; do
  15085.                     if test "$libs_found" = "0"; then                
  15086.                         save_LIBS="$LIBS"
  15087.                         LIBS="$GUI_TK_LIBRARY -lXm${xpm_link} ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
  15088.                         save_CFLAGS=$CFLAGS
  15089.                         CFLAGS="$CFLAGS $TOOLKIT_INCLUDE"
  15090.  
  15091.                         cat > conftest.$ac_ext <<EOF
  15092. #line 15093 "configure"
  15093. #include "confdefs.h"
  15094.  
  15095.                                 #include <Xm/Xm.h>
  15096.                                 #include <Xm/List.h>
  15097.                             
  15098. int main() {
  15099.  
  15100.                                 XmString string = NULL;
  15101.                                 Widget w = NULL;
  15102.                                 int position = 0;
  15103.                                 XmListAddItem(w, string, position);
  15104.                             
  15105. ; return 0; }
  15106. EOF
  15107. if { (eval echo configure:15108: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  15108.   rm -rf conftest*
  15109.   
  15110.                                 libp_link="$libp"
  15111.                                 libsm_ice_link="$libsm_ice"
  15112.                                 echo "$ac_t""need${libp_link}${libsm_ice_link}" 1>&6
  15113.                                 libs_found=1
  15114.                             
  15115. else
  15116.   echo "configure: failed program was:" >&5
  15117.   cat conftest.$ac_ext >&5
  15118.   rm -rf conftest*
  15119.   
  15120.                         
  15121. fi
  15122. rm -f conftest*
  15123.  
  15124.                         LIBS="$save_LIBS"
  15125.                         CFLAGS=$save_CFLAGS
  15126.                     fi
  15127.                 done
  15128.             fi
  15129.         done
  15130.  
  15131.         if test "$libs_found" = "0"; then
  15132.             echo "$ac_t""can't find the right libraries" 1>&6
  15133.             { echo "configure: error: can't link a simple motif program" 1>&2; exit 1; }
  15134.         fi
  15135.  
  15136.         GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
  15137.         TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
  15138.         TOOLKIT=MOTIF
  15139.         GUIDIST=MOTIF_DIST
  15140.     fi
  15141.  
  15142.     if test "$wxUSE_MAC" = 1; then
  15143.         if test "$wxUSE_PRECOMP" = "yes"; then
  15144.             CPPFLAGS="$CPPFLAGS -cpp-precomp"
  15145.         else
  15146.             CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
  15147.         fi
  15148.         CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
  15149.         CFLAGS="$CFLAGS -fpascal-strings"
  15150.         CXXFLAGS="$CXXFLAGS -fpascal-strings"
  15151.  
  15152.         TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
  15153.         TOOLKIT=MAC
  15154.                 GUIDIST=MACX_DIST
  15155.     fi
  15156.  
  15157.     if test "$wxUSE_PM" = 1; then
  15158.         TOOLKIT=PM
  15159.         GUIDIST=GTK_DIST
  15160.     fi
  15161.  
  15162.         if test "$TOOLKIT" = "PM" ; then
  15163.         TOOLKIT_DIR="os2"
  15164.     else
  15165.         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
  15166.     fi
  15167.  
  15168.         PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
  15169.  
  15170.     if test "$wxUSE_UNIVERSAL" = "yes"; then
  15171.         ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
  15172.  
  15173.                                 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
  15174.         ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
  15175.  
  15176.         PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
  15177.         if test "$wxUSE_X11" = 1; then
  15178.             TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
  15179.         else
  15180.             TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
  15181.         fi
  15182.         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
  15183.         WIDGET_SET=univ
  15184.     else
  15185.         ALL_OBJECTS="\$(GUIOBJS)"
  15186.         ALL_SOURCES="\$(ALL_SOURCES)"
  15187.         ALL_HEADERS="\$(ALL_HEADERS)"
  15188.     fi
  15189.  
  15190.     ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
  15191.  
  15192.     if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
  15193.         ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
  15194.     fi
  15195.  
  15196.     if test "$wxUSE_HTML" = "yes"; then
  15197.         ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
  15198.     fi
  15199.  
  15200.     if test "$wxUSE_LIBJPEG" = "builtin" ; then
  15201.         ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
  15202.     fi
  15203.     if test "$wxUSE_LIBTIFF" = "builtin" ; then
  15204.         ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
  15205.     fi
  15206.     if test "$wxUSE_LIBPNG" = "builtin" ; then
  15207.         ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
  15208.     fi
  15209.  
  15210.         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
  15211.     DISTDIR="wx\$(TOOLKIT)"
  15212. else
  15213.     USE_GUI=0
  15214.  
  15215.             TOOLKIT_DIR="base"
  15216.  
  15217.         if test "$USE_WIN32" = 1 ; then
  15218.         ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
  15219.         TOOLKIT_VPATH="\${top_srcdir}/src/msw"
  15220.  
  15221.                         TOOLKIT="MSW"
  15222.     else
  15223.         ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
  15224.         TOOLKIT_VPATH="\${top_srcdir}/src/unix"
  15225.     fi
  15226.  
  15227.     ALL_SOURCES="\$(ALL_SOURCES)"
  15228.     ALL_HEADERS="\$(ALL_HEADERS)"
  15229.  
  15230.     PORT_FILES="\${top_srcdir}/src/files.lst"
  15231.  
  15232.         GUIDIST="BASE_DIST"
  15233.     DISTDIR="wxBase"
  15234. fi
  15235.  
  15236.  
  15237. if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
  15238.     ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
  15239. fi
  15240.  
  15241. if test "$wxUSE_REGEX" = "builtin" ; then
  15242.     ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
  15243. fi
  15244. if test "$wxUSE_ZLIB" = "builtin" ; then
  15245.     ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
  15246. fi
  15247.  
  15248.  
  15249. if test "$wxUSE_OPENGL" = "yes"; then
  15250.     if test "$wxUSE_MAC" = 1; then
  15251.         OPENGL_LIBS="-framework OpenGL -framework AGL"
  15252.     elif test "$wxUSE_MSW" = 1; then
  15253.         OPENGL_LIBS="-lopengl32 -lglu32"
  15254.     else
  15255.         ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
  15256. echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
  15257. echo "configure:15258: checking for GL/gl.h" >&5
  15258. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  15259.   echo $ac_n "(cached) $ac_c" 1>&6
  15260. else
  15261.   cat > conftest.$ac_ext <<EOF
  15262. #include <sys/types.h>
  15263. #line 15264 "configure"
  15264. #include "confdefs.h"
  15265. #include <GL/gl.h>
  15266. EOF
  15267. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  15268. { (eval echo configure:15269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  15269. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  15270. if test -z "$ac_err"; then
  15271.   rm -rf conftest*
  15272.   eval "ac_cv_header_$ac_safe=yes"
  15273. else
  15274.   echo "$ac_err" >&5
  15275.   echo "configure: failed program was:" >&5
  15276.   cat conftest.$ac_ext >&5
  15277.   rm -rf conftest*
  15278.   eval "ac_cv_header_$ac_safe=no"
  15279. fi
  15280. rm -f conftest*
  15281. fi
  15282. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  15283.   echo "$ac_t""yes" 1>&6
  15284.   
  15285.                 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
  15286. echo "configure:15287: checking for -lGL" >&5
  15287.                 
  15288. ac_find_libraries=
  15289. for ac_dir in $SEARCH_LIB;
  15290.   do
  15291.     for ac_extension in a so sl dylib; do
  15292.       if test -f "$ac_dir/libGL.$ac_extension"; then
  15293.         ac_find_libraries=$ac_dir
  15294.         break 2
  15295.       fi
  15296.     done
  15297.   done
  15298.  
  15299.                 if test "$ac_find_libraries" != "" ; then
  15300.                     
  15301.   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
  15302.   result=$?
  15303.   if test $result = 0; then
  15304.     ac_path_to_link=""
  15305.   else
  15306.     ac_path_to_link=" -L$ac_find_libraries"
  15307.   fi
  15308.  
  15309.                     if test "$ac_path_to_link" = " -L/usr/lib" ; then
  15310.                         LDFLAGS_GL="$LDFLAGS"
  15311.                     else
  15312.                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
  15313.                     fi
  15314.                     OPENGL_LIBS="-lGL -lGLU"
  15315.                     echo "$ac_t""yes" 1>&6
  15316.                 else
  15317.                     echo "$ac_t""no" 1>&6
  15318.                     echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
  15319. echo "configure:15320: checking for -lMesaGL" >&5
  15320.                     
  15321. ac_find_libraries=
  15322. for ac_dir in $SEARCH_LIB;
  15323.   do
  15324.     for ac_extension in a so sl dylib; do
  15325.       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
  15326.         ac_find_libraries=$ac_dir
  15327.         break 2
  15328.       fi
  15329.     done
  15330.   done
  15331.  
  15332.                     if test "$ac_find_libraries" != "" ; then
  15333.                         
  15334.   echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
  15335.   result=$?
  15336.   if test $result = 0; then
  15337.     ac_path_to_link=""
  15338.   else
  15339.     ac_path_to_link=" -L$ac_find_libraries"
  15340.   fi
  15341.  
  15342.                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
  15343.                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
  15344.                         echo "$ac_t""yes" 1>&6
  15345.                     else
  15346.                         echo "$ac_t""no" 1>&6
  15347.                     fi
  15348.                 fi
  15349.             
  15350. else
  15351.   echo "$ac_t""no" 1>&6
  15352. fi
  15353.  
  15354.  
  15355.         if test "x$OPENGL_LIBS" = "x"; then
  15356.                                                 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
  15357.         fi
  15358.     fi
  15359.  
  15360.     if test "$wxUSE_OPENGL" = "yes"; then
  15361.         cat >> confdefs.h <<\EOF
  15362. #define wxUSE_OPENGL 1
  15363. EOF
  15364.  
  15365.         cat >> confdefs.h <<\EOF
  15366. #define wxUSE_GLCANVAS 1
  15367. EOF
  15368.  
  15369.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
  15370.     fi
  15371. fi
  15372.  
  15373. if test -z "$TOOLKIT_VPATH" ; then
  15374.     TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
  15375. fi
  15376.  
  15377. if test -n "$TOOLKIT" ; then
  15378.     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
  15379. fi
  15380.  
  15381. lib_unicode_suffix=
  15382. if test "$wxUSE_UNICODE" = "yes"; then
  15383.     lib_unicode_suffix=u
  15384. fi
  15385.  
  15386. lib_debug_suffix=
  15387. if test "$wxUSE_DEBUG_FLAG" = "yes"; then
  15388.     lib_debug_suffix=d
  15389. fi
  15390.  
  15391. TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
  15392. TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
  15393.  
  15394. if test "$cross_compiling" = "yes"; then
  15395.     TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
  15396.     TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
  15397. fi
  15398.  
  15399. WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
  15400. WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
  15401.  
  15402. WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
  15403. WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
  15404.  
  15405. WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
  15406. WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
  15407. WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
  15408. WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
  15409.  
  15410. case "${host}" in
  15411.     *-*-cygwin* | *-*-mingw32* )
  15412.  
  15413.                         
  15414.         
  15415.         if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
  15416.             WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
  15417.             WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
  15418.             WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
  15419.             WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
  15420.         else
  15421.             WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
  15422.             WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
  15423.         fi
  15424.         ;;
  15425.  
  15426.     *-*-darwin* )
  15427.                         if test "$wxUSE_MAC" = 1; then
  15428.                         WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
  15429.             WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
  15430.         fi
  15431.         ;;
  15432. esac
  15433.  
  15434. WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
  15435. WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
  15436.  
  15437. WXCONFIG_LIBS="-l${WX_LIBRARY}"
  15438. WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
  15439.  
  15440. if test "$wxUSE_OPENGL" = "yes"; then
  15441.     WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
  15442.     WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
  15443. fi
  15444.  
  15445.  
  15446.  
  15447. if test "$wxUSE_SHARED" = "yes"; then
  15448.     case "${host}" in
  15449.       *-pc-os2_emx | *-pc-os2-emx | \
  15450.       *-pc-msdosdjgpp )
  15451.                 wxUSE_SHARED=no
  15452.         echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
  15453.       ;;
  15454.     esac
  15455. fi
  15456.  
  15457. if test "$wxUSE_SHARED" = "yes"; then
  15458.  
  15459.         if test "$wxUSE_OPENGL" = "yes"; then
  15460.         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
  15461.         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
  15462.     else
  15463.         WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
  15464.         WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
  15465.     fi
  15466.  
  15467.         if test "$GCC" = "yes"; then
  15468.                 PIC_FLAG="-fPIC"
  15469.     fi
  15470.  
  15471.         SHARED_LD="${CXX} -shared -o"
  15472.  
  15473.     case "${host}" in
  15474.       *-hp-hpux* )
  15475.                 if test "$GCC" == "yes"; then
  15476.             SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
  15477.         else
  15478.                         LDFLAGS="$LDFLAGS -L/usr/lib"
  15479.  
  15480.             SHARED_LD="${CXX} -b -o"
  15481.             PIC_FLAG="+Z"
  15482.         fi
  15483.  
  15484.                 if test "$wxUSE_OPENGL" = "yes"; then
  15485.             WX_ALL_INSTALLED="preinstall_gl"
  15486.             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
  15487.         else
  15488.             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
  15489.         fi
  15490.       ;;
  15491.  
  15492.       *-*-linux* )
  15493.         if test "$GCC" != "yes"; then
  15494.             echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
  15495. echo "configure:15496: checking for Intel compiler" >&5
  15496. if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
  15497.   echo $ac_n "(cached) $ac_c" 1>&6
  15498. else
  15499.   
  15500.                 cat > conftest.$ac_ext <<EOF
  15501. #line 15502 "configure"
  15502. #include "confdefs.h"
  15503.  
  15504. int main() {
  15505.  
  15506.                         #ifndef __INTEL_COMPILER
  15507.                         #error Not icc
  15508.                         #endif
  15509.                     
  15510. ; return 0; }
  15511. EOF
  15512. if { (eval echo configure:15513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  15513.   rm -rf conftest*
  15514.   wx_cv_prog_icc=yes
  15515. else
  15516.   echo "configure: failed program was:" >&5
  15517.   cat conftest.$ac_ext >&5
  15518.   rm -rf conftest*
  15519.   wx_cv_prog_icc=no
  15520.                 
  15521. fi
  15522. rm -f conftest*
  15523.             
  15524. fi
  15525.  
  15526. echo "$ac_t""$wx_cv_prog_icc" 1>&6
  15527.             if test "$wx_cv_prog_icc" = "yes"; then
  15528.                 PIC_FLAG="-KPIC"
  15529.             fi
  15530.         fi
  15531.  
  15532.         if test "$wxUSE_SONAME" = "yes" ; then
  15533.             SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
  15534.             SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
  15535.                         WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
  15536.         fi
  15537.       ;;
  15538.  
  15539.       *-*-solaris2* )
  15540.         if test "$GCC" = yes ; then
  15541.                                     CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
  15542.         else
  15543.             SHARED_LD="${CXX} -G -o"
  15544.             PIC_FLAG="-KPIC"
  15545.             SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
  15546.             SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
  15547.         fi
  15548.       ;;
  15549.  
  15550.       *-*-darwin* )
  15551.                         CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
  15552.         CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
  15553.                                         SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
  15554.         PIC_FLAG="-dynamic -fPIC"
  15555.         SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
  15556.         SONAME_FLAGS_GL=${SONAME_FLAGS}
  15557.       ;;
  15558.  
  15559.       *-*-aix* )
  15560.                         # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
  15561. set dummy makeC++SharedLib; ac_word=$2
  15562. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  15563. echo "configure:15564: checking for $ac_word" >&5
  15564. if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
  15565.   echo $ac_n "(cached) $ac_c" 1>&6
  15566. else
  15567.   if test -n "$AIX_CXX_LD"; then
  15568.   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
  15569. else
  15570.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  15571.   ac_dummy="$PATH"
  15572.   for ac_dir in $ac_dummy; do
  15573.     test -z "$ac_dir" && ac_dir=.
  15574.     if test -f $ac_dir/$ac_word -o \
  15575.             -f $ac_dir/$ac_word$ac_exeext ; then
  15576.       ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
  15577.       break
  15578.     fi
  15579.   done
  15580.   IFS="$ac_save_ifs"
  15581.   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
  15582. fi
  15583. fi
  15584. AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
  15585. if test -n "$AIX_CXX_LD"; then
  15586.   echo "$ac_t""$AIX_CXX_LD" 1>&6
  15587. else
  15588.   echo "$ac_t""no" 1>&6
  15589. fi
  15590.  
  15591.  
  15592.         SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
  15593.       ;;
  15594.  
  15595.       *-*-cygwin* | *-*-mingw32* )
  15596.  
  15597.         WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
  15598.  
  15599.         SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
  15600.         TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
  15601.  
  15602.         PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
  15603.  
  15604.                 if test "$wxUSE_OPENGL" = "yes"; then
  15605.             WX_ALL_INSTALLED="preinstall_gl"
  15606.             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
  15607.         else
  15608.             WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
  15609.         fi
  15610.       ;;
  15611.  
  15612.       *-*-beos* )
  15613.                         SHARED_LD="${LD} -shared -o"
  15614.       ;;
  15615.  
  15616.       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
  15617.       *-*-sunos4* | \
  15618.       *-*-irix5* | *-*-irix6* | \
  15619.       *-*-osf* | \
  15620.       *-*-dgux5* | \
  15621.       *-*-sysv5* )
  15622.               ;;
  15623.  
  15624.       *)
  15625.         { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
  15626.     esac
  15627.  
  15628.         if test "x$WX_TARGET_LIBRARY" = "x"; then
  15629.         WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
  15630.         WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
  15631.     fi
  15632.  
  15633.         WX_TARGET_LIBRARY_TYPE="so"
  15634.     INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
  15635. fi
  15636.  
  15637. if test "$wxUSE_SHARED" = "no"; then
  15638.  
  15639.         if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
  15640.                 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
  15641.     fi
  15642.  
  15643.     if test "$wxUSE_MAC" = 1; then
  15644.         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
  15645.     fi
  15646.  
  15647.     if test "$wxUSE_OPENGL" = "yes"; then
  15648.         WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
  15649.         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
  15650.     else
  15651.         WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
  15652.     fi
  15653.  
  15654.     WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
  15655.     WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
  15656.  
  15657.     WX_TARGET_LIBRARY_TYPE="a"
  15658.     INSTALL_LIBRARY='$(INSTALL_DATA)'
  15659. fi
  15660.  
  15661. if test "$wxUSE_MAC" = 1; then
  15662.         LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
  15663.     WX_ALL="${WX_ALL} ${LIBWXMACRES}"
  15664.     WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
  15665.     # Extract the first word of "Rez", so it can be a program name with args.
  15666. set dummy Rez; ac_word=$2
  15667. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  15668. echo "configure:15669: checking for $ac_word" >&5
  15669. if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
  15670.   echo $ac_n "(cached) $ac_c" 1>&6
  15671. else
  15672.   if test -n "$RESCOMP"; then
  15673.   ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
  15674. else
  15675.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  15676.   ac_dummy="$PATH"
  15677.   for ac_dir in $ac_dummy; do
  15678.     test -z "$ac_dir" && ac_dir=.
  15679.     if test -f $ac_dir/$ac_word -o \
  15680.             -f $ac_dir/$ac_word$ac_exeext ; then
  15681.       ac_cv_prog_RESCOMP="Rez"
  15682.       break
  15683.     fi
  15684.   done
  15685.   IFS="$ac_save_ifs"
  15686.   test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
  15687. fi
  15688. fi
  15689. RESCOMP="$ac_cv_prog_RESCOMP"
  15690. if test -n "$RESCOMP"; then
  15691.   echo "$ac_t""$RESCOMP" 1>&6
  15692. else
  15693.   echo "$ac_t""no" 1>&6
  15694. fi
  15695.  
  15696.     # Extract the first word of "DeRez", so it can be a program name with args.
  15697. set dummy DeRez; ac_word=$2
  15698. echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  15699. echo "configure:15700: checking for $ac_word" >&5
  15700. if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
  15701.   echo $ac_n "(cached) $ac_c" 1>&6
  15702. else
  15703.   if test -n "$DEREZ"; then
  15704.   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
  15705. else
  15706.   IFS="${IFS=     }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
  15707.   ac_dummy="$PATH"
  15708.   for ac_dir in $ac_dummy; do
  15709.     test -z "$ac_dir" && ac_dir=.
  15710.     if test -f $ac_dir/$ac_word -o \
  15711.             -f $ac_dir/$ac_word$ac_exeext ; then
  15712.       ac_cv_prog_DEREZ="DeRez"
  15713.       break
  15714.     fi
  15715.   done
  15716.   IFS="$ac_save_ifs"
  15717.   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
  15718. fi
  15719. fi
  15720. DEREZ="$ac_cv_prog_DEREZ"
  15721. if test -n "$DEREZ"; then
  15722.   echo "$ac_t""$DEREZ" 1>&6
  15723. else
  15724.   echo "$ac_t""no" 1>&6
  15725. fi
  15726.  
  15727.     MACOSX_BUNDLE="bundle"
  15728.     if test "$wxUSE_SHARED" = "yes"; then
  15729.                 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
  15730.         LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
  15731.     else
  15732.                 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
  15733.         LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
  15734.     fi
  15735. else
  15736.     if test "$wxUSE_PM" = 1; then
  15737.         LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
  15738.     fi
  15739. fi
  15740.  
  15741.  
  15742. echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
  15743. echo "configure:15744: checking for ANSI C header files" >&5
  15744. if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
  15745.   echo $ac_n "(cached) $ac_c" 1>&6
  15746. else
  15747.   cat > conftest.$ac_ext <<EOF
  15748. #include <sys/types.h>
  15749. #line 15750 "configure"
  15750. #include "confdefs.h"
  15751. #include <stdlib.h>
  15752. #include <stdarg.h>
  15753. #include <string.h>
  15754. #include <float.h>
  15755. EOF
  15756. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  15757. { (eval echo configure:15758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  15758. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  15759. if test -z "$ac_err"; then
  15760.   rm -rf conftest*
  15761.   ac_cv_header_stdc=yes
  15762. else
  15763.   echo "$ac_err" >&5
  15764.   echo "configure: failed program was:" >&5
  15765.   cat conftest.$ac_ext >&5
  15766.   rm -rf conftest*
  15767.   ac_cv_header_stdc=no
  15768. fi
  15769. rm -f conftest*
  15770.  
  15771. if test $ac_cv_header_stdc = yes; then
  15772.   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  15773. cat > conftest.$ac_ext <<EOF
  15774. #line 15775 "configure"
  15775. #include "confdefs.h"
  15776. #include <string.h>
  15777. EOF
  15778. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15779.   egrep "memchr" >/dev/null 2>&1; then
  15780.   :
  15781. else
  15782.   rm -rf conftest*
  15783.   ac_cv_header_stdc=no
  15784. fi
  15785. rm -f conftest*
  15786.  
  15787. fi
  15788.  
  15789. if test $ac_cv_header_stdc = yes; then
  15790.   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  15791. cat > conftest.$ac_ext <<EOF
  15792. #line 15793 "configure"
  15793. #include "confdefs.h"
  15794. #include <stdlib.h>
  15795. EOF
  15796. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15797.   egrep "free" >/dev/null 2>&1; then
  15798.   :
  15799. else
  15800.   rm -rf conftest*
  15801.   ac_cv_header_stdc=no
  15802. fi
  15803. rm -f conftest*
  15804.  
  15805. fi
  15806.  
  15807. if test $ac_cv_header_stdc = yes; then
  15808.   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  15809. if test "$cross_compiling" = yes; then
  15810.   :
  15811. else
  15812.   cat > conftest.$ac_ext <<EOF
  15813. #line 15814 "configure"
  15814. #include "confdefs.h"
  15815. #include <ctype.h>
  15816. #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  15817. #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  15818. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  15819. int main () { int i; for (i = 0; i < 256; i++)
  15820. if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
  15821. exit (0); }
  15822.  
  15823. EOF
  15824. if { (eval echo configure:15825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
  15825. then
  15826.   :
  15827. else
  15828.   echo "configure: failed program was:" >&5
  15829.   cat conftest.$ac_ext >&5
  15830.   rm -fr conftest*
  15831.   ac_cv_header_stdc=no
  15832. fi
  15833. rm -fr conftest*
  15834. fi
  15835.  
  15836. fi
  15837. fi
  15838.  
  15839. echo "$ac_t""$ac_cv_header_stdc" 1>&6
  15840. if test $ac_cv_header_stdc = yes; then
  15841.   cat >> confdefs.h <<\EOF
  15842. #define STDC_HEADERS 1
  15843. EOF
  15844.  
  15845. fi
  15846.  
  15847. echo $ac_n "checking for mode_t""... $ac_c" 1>&6
  15848. echo "configure:15849: checking for mode_t" >&5
  15849. if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
  15850.   echo $ac_n "(cached) $ac_c" 1>&6
  15851. else
  15852.   cat > conftest.$ac_ext <<EOF
  15853. #line 15854 "configure"
  15854. #include "confdefs.h"
  15855. #include <sys/types.h>
  15856. #if STDC_HEADERS
  15857. #include <stdlib.h>
  15858. #include <stddef.h>
  15859. #endif
  15860. EOF
  15861. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15862.   egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  15863.   rm -rf conftest*
  15864.   ac_cv_type_mode_t=yes
  15865. else
  15866.   rm -rf conftest*
  15867.   ac_cv_type_mode_t=no
  15868. fi
  15869. rm -f conftest*
  15870.  
  15871. fi
  15872. echo "$ac_t""$ac_cv_type_mode_t" 1>&6
  15873. if test $ac_cv_type_mode_t = no; then
  15874.   cat >> confdefs.h <<\EOF
  15875. #define mode_t int
  15876. EOF
  15877.  
  15878. fi
  15879.  
  15880. echo $ac_n "checking for off_t""... $ac_c" 1>&6
  15881. echo "configure:15882: checking for off_t" >&5
  15882. if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
  15883.   echo $ac_n "(cached) $ac_c" 1>&6
  15884. else
  15885.   cat > conftest.$ac_ext <<EOF
  15886. #line 15887 "configure"
  15887. #include "confdefs.h"
  15888. #include <sys/types.h>
  15889. #if STDC_HEADERS
  15890. #include <stdlib.h>
  15891. #include <stddef.h>
  15892. #endif
  15893. EOF
  15894. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15895.   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  15896.   rm -rf conftest*
  15897.   ac_cv_type_off_t=yes
  15898. else
  15899.   rm -rf conftest*
  15900.   ac_cv_type_off_t=no
  15901. fi
  15902. rm -f conftest*
  15903.  
  15904. fi
  15905. echo "$ac_t""$ac_cv_type_off_t" 1>&6
  15906. if test $ac_cv_type_off_t = no; then
  15907.   cat >> confdefs.h <<\EOF
  15908. #define off_t long
  15909. EOF
  15910.  
  15911. fi
  15912.  
  15913. echo $ac_n "checking for pid_t""... $ac_c" 1>&6
  15914. echo "configure:15915: checking for pid_t" >&5
  15915. if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
  15916.   echo $ac_n "(cached) $ac_c" 1>&6
  15917. else
  15918.   cat > conftest.$ac_ext <<EOF
  15919. #line 15920 "configure"
  15920. #include "confdefs.h"
  15921. #include <sys/types.h>
  15922. #if STDC_HEADERS
  15923. #include <stdlib.h>
  15924. #include <stddef.h>
  15925. #endif
  15926. EOF
  15927. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15928.   egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  15929.   rm -rf conftest*
  15930.   ac_cv_type_pid_t=yes
  15931. else
  15932.   rm -rf conftest*
  15933.   ac_cv_type_pid_t=no
  15934. fi
  15935. rm -f conftest*
  15936.  
  15937. fi
  15938. echo "$ac_t""$ac_cv_type_pid_t" 1>&6
  15939. if test $ac_cv_type_pid_t = no; then
  15940.   cat >> confdefs.h <<\EOF
  15941. #define pid_t int
  15942. EOF
  15943.  
  15944. fi
  15945.  
  15946. echo $ac_n "checking for size_t""... $ac_c" 1>&6
  15947. echo "configure:15948: checking for size_t" >&5
  15948. if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
  15949.   echo $ac_n "(cached) $ac_c" 1>&6
  15950. else
  15951.   cat > conftest.$ac_ext <<EOF
  15952. #line 15953 "configure"
  15953. #include "confdefs.h"
  15954. #include <sys/types.h>
  15955. #if STDC_HEADERS
  15956. #include <stdlib.h>
  15957. #include <stddef.h>
  15958. #endif
  15959. EOF
  15960. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15961.   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
  15962.   rm -rf conftest*
  15963.   ac_cv_type_size_t=yes
  15964. else
  15965.   rm -rf conftest*
  15966.   ac_cv_type_size_t=no
  15967. fi
  15968. rm -f conftest*
  15969.  
  15970. fi
  15971. echo "$ac_t""$ac_cv_type_size_t" 1>&6
  15972. if test $ac_cv_type_size_t = no; then
  15973.   cat >> confdefs.h <<\EOF
  15974. #define size_t unsigned
  15975. EOF
  15976.  
  15977. fi
  15978.  
  15979. echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
  15980. echo "configure:15981: checking for uid_t in sys/types.h" >&5
  15981. if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
  15982.   echo $ac_n "(cached) $ac_c" 1>&6
  15983. else
  15984.   cat > conftest.$ac_ext <<EOF
  15985. #line 15986 "configure"
  15986. #include "confdefs.h"
  15987. #include <sys/types.h>
  15988. EOF
  15989. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  15990.   egrep "uid_t" >/dev/null 2>&1; then
  15991.   rm -rf conftest*
  15992.   ac_cv_type_uid_t=yes
  15993. else
  15994.   rm -rf conftest*
  15995.   ac_cv_type_uid_t=no
  15996. fi
  15997. rm -f conftest*
  15998.  
  15999. fi
  16000.  
  16001. echo "$ac_t""$ac_cv_type_uid_t" 1>&6
  16002. if test $ac_cv_type_uid_t = no; then
  16003.   cat >> confdefs.h <<\EOF
  16004. #define uid_t int
  16005. EOF
  16006.  
  16007.   cat >> confdefs.h <<\EOF
  16008. #define gid_t int
  16009. EOF
  16010.  
  16011. fi
  16012.  
  16013.  
  16014.  
  16015. ac_ext=C
  16016. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  16017. ac_cpp='$CXXCPP $CPPFLAGS'
  16018. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  16019. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  16020. cross_compiling=$ac_cv_prog_cxx_cross
  16021.  
  16022. echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
  16023. echo "configure:16024: checking if size_t is unsigned int" >&5
  16024. if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
  16025.   echo $ac_n "(cached) $ac_c" 1>&6
  16026. else
  16027.                           cat > conftest.$ac_ext <<EOF
  16028. #line 16029 "configure"
  16029. #include "confdefs.h"
  16030. #include <stddef.h>
  16031. int main() {
  16032.  
  16033.             return 0; }
  16034.  
  16035.             struct Foo { void foo(size_t); void foo(unsigned int); };
  16036.  
  16037.             int bar() {
  16038.         
  16039. ; return 0; }
  16040. EOF
  16041. if { (eval echo configure:16042: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  16042.   rm -rf conftest*
  16043.   wx_cv_size_t_is_uint=no
  16044. else
  16045.   echo "configure: failed program was:" >&5
  16046.   cat conftest.$ac_ext >&5
  16047.   rm -rf conftest*
  16048.   wx_cv_size_t_is_uint=yes
  16049.     
  16050. fi
  16051. rm -f conftest*
  16052.  
  16053. fi
  16054.  
  16055. echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
  16056.  
  16057. if test "$wx_cv_size_t_is_uint" = "yes"; then
  16058.     cat >> confdefs.h <<\EOF
  16059. #define wxSIZE_T_IS_UINT 1
  16060. EOF
  16061.  
  16062. else
  16063.     echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
  16064. echo "configure:16065: checking if size_t is unsigned long" >&5
  16065. if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
  16066.   echo $ac_n "(cached) $ac_c" 1>&6
  16067. else
  16068.   cat > conftest.$ac_ext <<EOF
  16069. #line 16070 "configure"
  16070. #include "confdefs.h"
  16071. #include <stddef.h>
  16072. int main() {
  16073.  
  16074.                 return 0; }
  16075.  
  16076.                 struct Foo { void foo(size_t); void foo(unsigned long); };
  16077.  
  16078.                 int bar() {
  16079.             
  16080. ; return 0; }
  16081. EOF
  16082. if { (eval echo configure:16083: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  16083.   rm -rf conftest*
  16084.   wx_cv_size_t_is_ulong=no
  16085. else
  16086.   echo "configure: failed program was:" >&5
  16087.   cat conftest.$ac_ext >&5
  16088.   rm -rf conftest*
  16089.   wx_cv_size_t_is_ulong=yes
  16090.         
  16091. fi
  16092. rm -f conftest*
  16093.     
  16094. fi
  16095.  
  16096. echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
  16097.  
  16098.     if test "$wx_cv_size_t_is_ulong" = "yes"; then
  16099.         cat >> confdefs.h <<\EOF
  16100. #define wxSIZE_T_IS_ULONG 1
  16101. EOF
  16102.  
  16103.     fi
  16104. fi
  16105.  
  16106. ac_ext=c
  16107. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  16108. ac_cpp='$CPP $CPPFLAGS'
  16109. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  16110. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  16111. cross_compiling=$ac_cv_prog_cc_cross
  16112.  
  16113.  
  16114.  
  16115. echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
  16116. echo "configure:16117: checking for pw_gecos in struct passwd" >&5
  16117. if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
  16118.   echo $ac_n "(cached) $ac_c" 1>&6
  16119. else
  16120.   
  16121.         cat > conftest.$ac_ext <<EOF
  16122. #line 16123 "configure"
  16123. #include "confdefs.h"
  16124. #include <pwd.h>
  16125. int main() {
  16126.  
  16127.                 char *p;
  16128.                 struct passwd *pw;
  16129.                 p = pw->pw_gecos;
  16130.              
  16131. ; return 0; }
  16132. EOF
  16133. if { (eval echo configure:16134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  16134.   rm -rf conftest*
  16135.   
  16136.                 wx_cv_struct_pw_gecos=yes
  16137.              
  16138. else
  16139.   echo "configure: failed program was:" >&5
  16140.   cat conftest.$ac_ext >&5
  16141.   rm -rf conftest*
  16142.   
  16143.                 wx_cv_struct_pw_gecos=no
  16144.              
  16145.         
  16146. fi
  16147. rm -f conftest*
  16148.     
  16149.  
  16150. fi
  16151.  
  16152. echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
  16153.  
  16154. if test "$wx_cv_struct_pw_gecos" = "yes"; then
  16155.     cat >> confdefs.h <<\EOF
  16156. #define HAVE_PW_GECOS 1
  16157. EOF
  16158.  
  16159. fi
  16160.  
  16161.  
  16162. if test "$wx_cv_sizeof_wchar_t" != "0"; then
  16163.     cat >> confdefs.h <<\EOF
  16164. #define wxUSE_WCHAR_T 1
  16165. EOF
  16166.  
  16167.  
  16168.         WCSLEN_FOUND=0
  16169.     WCHAR_LINK=
  16170.     for ac_func in wcslen
  16171. do
  16172. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  16173. echo "configure:16174: checking for $ac_func" >&5
  16174. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  16175.   echo $ac_n "(cached) $ac_c" 1>&6
  16176. else
  16177.   cat > conftest.$ac_ext <<EOF
  16178. #line 16179 "configure"
  16179. #include "confdefs.h"
  16180. /* System header to define __stub macros and hopefully few prototypes,
  16181.     which can conflict with char $ac_func(); below.  */
  16182. #include <assert.h>
  16183. /* Override any gcc2 internal prototype to avoid an error.  */
  16184. /* We use char because int might match the return type of a gcc2
  16185.     builtin and then its argument prototype would still apply.  */
  16186. char $ac_func();
  16187.  
  16188. int main() {
  16189.  
  16190. /* The GNU C library defines this for functions which it implements
  16191.     to always fail with ENOSYS.  Some functions are actually named
  16192.     something starting with __ and the normal name is an alias.  */
  16193. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  16194. choke me
  16195. #else
  16196. $ac_func();
  16197. #endif
  16198.  
  16199. ; return 0; }
  16200. EOF
  16201. if { (eval echo configure:16202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  16202.   rm -rf conftest*
  16203.   eval "ac_cv_func_$ac_func=yes"
  16204. else
  16205.   echo "configure: failed program was:" >&5
  16206.   cat conftest.$ac_ext >&5
  16207.   rm -rf conftest*
  16208.   eval "ac_cv_func_$ac_func=no"
  16209. fi
  16210. rm -f conftest*
  16211. fi
  16212.  
  16213. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  16214.   echo "$ac_t""yes" 1>&6
  16215.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  16216.   cat >> confdefs.h <<EOF
  16217. #define $ac_tr_func 1
  16218. EOF
  16219.  WCSLEN_FOUND=1
  16220. else
  16221.   echo "$ac_t""no" 1>&6
  16222. fi
  16223. done
  16224.  
  16225.  
  16226.     if test "$WCSLEN_FOUND" = 0; then
  16227.         if test "$TOOLKIT" = "MSW"; then
  16228.             echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
  16229. echo "configure:16230: checking for wcslen in -lmsvcrt" >&5
  16230. ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
  16231. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  16232.   echo $ac_n "(cached) $ac_c" 1>&6
  16233. else
  16234.   ac_save_LIBS="$LIBS"
  16235. LIBS="-lmsvcrt  $LIBS"
  16236. cat > conftest.$ac_ext <<EOF
  16237. #line 16238 "configure"
  16238. #include "confdefs.h"
  16239. /* Override any gcc2 internal prototype to avoid an error.  */
  16240. /* We use char because int might match the return type of a gcc2
  16241.     builtin and then its argument prototype would still apply.  */
  16242. char wcslen();
  16243.  
  16244. int main() {
  16245. wcslen()
  16246. ; return 0; }
  16247. EOF
  16248. if { (eval echo configure:16249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  16249.   rm -rf conftest*
  16250.   eval "ac_cv_lib_$ac_lib_var=yes"
  16251. else
  16252.   echo "configure: failed program was:" >&5
  16253.   cat conftest.$ac_ext >&5
  16254.   rm -rf conftest*
  16255.   eval "ac_cv_lib_$ac_lib_var=no"
  16256. fi
  16257. rm -f conftest*
  16258. LIBS="$ac_save_LIBS"
  16259.  
  16260. fi
  16261. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  16262.   echo "$ac_t""yes" 1>&6
  16263.   WCHAR_OK=1
  16264. else
  16265.   echo "$ac_t""no" 1>&6
  16266. fi
  16267.  
  16268.         else
  16269.             echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
  16270. echo "configure:16271: checking for wcslen in -lw" >&5
  16271. ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
  16272. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  16273.   echo $ac_n "(cached) $ac_c" 1>&6
  16274. else
  16275.   ac_save_LIBS="$LIBS"
  16276. LIBS="-lw  $LIBS"
  16277. cat > conftest.$ac_ext <<EOF
  16278. #line 16279 "configure"
  16279. #include "confdefs.h"
  16280. /* Override any gcc2 internal prototype to avoid an error.  */
  16281. /* We use char because int might match the return type of a gcc2
  16282.     builtin and then its argument prototype would still apply.  */
  16283. char wcslen();
  16284.  
  16285. int main() {
  16286. wcslen()
  16287. ; return 0; }
  16288. EOF
  16289. if { (eval echo configure:16290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  16290.   rm -rf conftest*
  16291.   eval "ac_cv_lib_$ac_lib_var=yes"
  16292. else
  16293.   echo "configure: failed program was:" >&5
  16294.   cat conftest.$ac_ext >&5
  16295.   rm -rf conftest*
  16296.   eval "ac_cv_lib_$ac_lib_var=no"
  16297. fi
  16298. rm -f conftest*
  16299. LIBS="$ac_save_LIBS"
  16300.  
  16301. fi
  16302. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  16303.   echo "$ac_t""yes" 1>&6
  16304.   
  16305.                             WCHAR_LINK=" -lw"
  16306.                             WCSLEN_FOUND=1
  16307.                         
  16308. else
  16309.   echo "$ac_t""no" 1>&6
  16310. fi
  16311.  
  16312.         fi
  16313.     fi
  16314.  
  16315.     if test "$WCSLEN_FOUND" = 1; then
  16316.         cat >> confdefs.h <<\EOF
  16317. #define HAVE_WCSLEN 1
  16318. EOF
  16319.  
  16320.     fi
  16321.  
  16322.             for ac_func in wcsrtombs
  16323. do
  16324. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  16325. echo "configure:16326: checking for $ac_func" >&5
  16326. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  16327.   echo $ac_n "(cached) $ac_c" 1>&6
  16328. else
  16329.   cat > conftest.$ac_ext <<EOF
  16330. #line 16331 "configure"
  16331. #include "confdefs.h"
  16332. /* System header to define __stub macros and hopefully few prototypes,
  16333.     which can conflict with char $ac_func(); below.  */
  16334. #include <assert.h>
  16335. /* Override any gcc2 internal prototype to avoid an error.  */
  16336. /* We use char because int might match the return type of a gcc2
  16337.     builtin and then its argument prototype would still apply.  */
  16338. char $ac_func();
  16339.  
  16340. int main() {
  16341.  
  16342. /* The GNU C library defines this for functions which it implements
  16343.     to always fail with ENOSYS.  Some functions are actually named
  16344.     something starting with __ and the normal name is an alias.  */
  16345. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  16346. choke me
  16347. #else
  16348. $ac_func();
  16349. #endif
  16350.  
  16351. ; return 0; }
  16352. EOF
  16353. if { (eval echo configure:16354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  16354.   rm -rf conftest*
  16355.   eval "ac_cv_func_$ac_func=yes"
  16356. else
  16357.   echo "configure: failed program was:" >&5
  16358.   cat conftest.$ac_ext >&5
  16359.   rm -rf conftest*
  16360.   eval "ac_cv_func_$ac_func=no"
  16361. fi
  16362. rm -f conftest*
  16363. fi
  16364.  
  16365. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  16366.   echo "$ac_t""yes" 1>&6
  16367.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  16368.   cat >> confdefs.h <<EOF
  16369. #define $ac_tr_func 1
  16370. EOF
  16371.  
  16372. else
  16373.   echo "$ac_t""no" 1>&6
  16374. fi
  16375. done
  16376.  
  16377. else
  16378.     echo "configure: warning: Wide character support is unavailable" 1>&2
  16379. fi
  16380.  
  16381.  
  16382. ac_ext=C
  16383. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  16384. ac_cpp='$CXXCPP $CPPFLAGS'
  16385. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  16386. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  16387. cross_compiling=$ac_cv_prog_cxx_cross
  16388.  
  16389.  
  16390. for ac_func in vsnprintf
  16391. do
  16392. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  16393. echo "configure:16394: checking for $ac_func" >&5
  16394. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  16395.   echo $ac_n "(cached) $ac_c" 1>&6
  16396. else
  16397.   cat > conftest.$ac_ext <<EOF
  16398. #line 16399 "configure"
  16399. #include "confdefs.h"
  16400. /* System header to define __stub macros and hopefully few prototypes,
  16401.     which can conflict with char $ac_func(); below.  */
  16402. #include <assert.h>
  16403. /* Override any gcc2 internal prototype to avoid an error.  */
  16404. #ifdef __cplusplus
  16405. extern "C"
  16406. #endif
  16407. /* We use char because int might match the return type of a gcc2
  16408.     builtin and then its argument prototype would still apply.  */
  16409. char $ac_func();
  16410.  
  16411. int main() {
  16412.  
  16413. /* The GNU C library defines this for functions which it implements
  16414.     to always fail with ENOSYS.  Some functions are actually named
  16415.     something starting with __ and the normal name is an alias.  */
  16416. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  16417. choke me
  16418. #else
  16419. $ac_func();
  16420. #endif
  16421.  
  16422. ; return 0; }
  16423. EOF
  16424. if { (eval echo configure:16425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  16425.   rm -rf conftest*
  16426.   eval "ac_cv_func_$ac_func=yes"
  16427. else
  16428.   echo "configure: failed program was:" >&5
  16429.   cat conftest.$ac_ext >&5
  16430.   rm -rf conftest*
  16431.   eval "ac_cv_func_$ac_func=no"
  16432. fi
  16433. rm -f conftest*
  16434. fi
  16435.  
  16436. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  16437.   echo "$ac_t""yes" 1>&6
  16438.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  16439.   cat >> confdefs.h <<EOF
  16440. #define $ac_tr_func 1
  16441. EOF
  16442.  
  16443. else
  16444.   echo "$ac_t""no" 1>&6
  16445. fi
  16446. done
  16447.  
  16448.  
  16449. if test "$wxUSE_UNICODE" = yes; then
  16450.         for ac_func in fputwc wprintf vswprintf
  16451. do
  16452. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  16453. echo "configure:16454: checking for $ac_func" >&5
  16454. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  16455.   echo $ac_n "(cached) $ac_c" 1>&6
  16456. else
  16457.   cat > conftest.$ac_ext <<EOF
  16458. #line 16459 "configure"
  16459. #include "confdefs.h"
  16460. /* System header to define __stub macros and hopefully few prototypes,
  16461.     which can conflict with char $ac_func(); below.  */
  16462. #include <assert.h>
  16463. /* Override any gcc2 internal prototype to avoid an error.  */
  16464. #ifdef __cplusplus
  16465. extern "C"
  16466. #endif
  16467. /* We use char because int might match the return type of a gcc2
  16468.     builtin and then its argument prototype would still apply.  */
  16469. char $ac_func();
  16470.  
  16471. int main() {
  16472.  
  16473. /* The GNU C library defines this for functions which it implements
  16474.     to always fail with ENOSYS.  Some functions are actually named
  16475.     something starting with __ and the normal name is an alias.  */
  16476. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  16477. choke me
  16478. #else
  16479. $ac_func();
  16480. #endif
  16481.  
  16482. ; return 0; }
  16483. EOF
  16484. if { (eval echo configure:16485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  16485.   rm -rf conftest*
  16486.   eval "ac_cv_func_$ac_func=yes"
  16487. else
  16488.   echo "configure: failed program was:" >&5
  16489.   cat conftest.$ac_ext >&5
  16490.   rm -rf conftest*
  16491.   eval "ac_cv_func_$ac_func=no"
  16492. fi
  16493. rm -f conftest*
  16494. fi
  16495.  
  16496. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  16497.   echo "$ac_t""yes" 1>&6
  16498.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  16499.   cat >> confdefs.h <<EOF
  16500. #define $ac_tr_func 1
  16501. EOF
  16502.  
  16503. else
  16504.   echo "$ac_t""no" 1>&6
  16505. fi
  16506. done
  16507.  
  16508. fi
  16509.  
  16510. ac_ext=c
  16511. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  16512. ac_cpp='$CPP $CPPFLAGS'
  16513. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  16514. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  16515. cross_compiling=$ac_cv_prog_cc_cross
  16516.  
  16517.  
  16518.  
  16519.  
  16520. if test "$TOOLKIT" != "MSW"; then
  16521.  
  16522.  
  16523.  
  16524. ac_ext=C
  16525. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  16526. ac_cpp='$CXXCPP $CPPFLAGS'
  16527. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  16528. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  16529. cross_compiling=$ac_cv_prog_cxx_cross
  16530.  
  16531.  
  16532.     
  16533.   # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
  16534. if test "${with_libiconv_prefix+set}" = set; then
  16535.   withval="$with_libiconv_prefix"
  16536.   
  16537.     for dir in `echo "$withval" | tr : ' '`; do
  16538.       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
  16539.       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
  16540.     done
  16541.    
  16542. fi
  16543.  
  16544.  
  16545.   echo $ac_n "checking for iconv""... $ac_c" 1>&6
  16546. echo "configure:16547: checking for iconv" >&5
  16547. if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
  16548.   echo $ac_n "(cached) $ac_c" 1>&6
  16549. else
  16550.   
  16551.     am_cv_func_iconv="no, consider installing GNU libiconv"
  16552.     am_cv_lib_iconv=no
  16553.     cat > conftest.$ac_ext <<EOF
  16554. #line 16555 "configure"
  16555. #include "confdefs.h"
  16556. #include <stdlib.h>
  16557. #include <iconv.h>
  16558. int main() {
  16559. iconv_t cd = iconv_open("","");
  16560.        iconv(cd,NULL,NULL,NULL,NULL);
  16561.        iconv_close(cd);
  16562. ; return 0; }
  16563. EOF
  16564. if { (eval echo configure:16565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  16565.   rm -rf conftest*
  16566.   am_cv_func_iconv=yes
  16567. else
  16568.   echo "configure: failed program was:" >&5
  16569.   cat conftest.$ac_ext >&5
  16570. fi
  16571. rm -f conftest*
  16572.     if test "$am_cv_func_iconv" != yes; then
  16573.       am_save_LIBS="$LIBS"
  16574.       LIBS="$LIBS -liconv"
  16575.       cat > conftest.$ac_ext <<EOF
  16576. #line 16577 "configure"
  16577. #include "confdefs.h"
  16578. #include <stdlib.h>
  16579. #include <iconv.h>
  16580. int main() {
  16581. iconv_t cd = iconv_open("","");
  16582.          iconv(cd,NULL,NULL,NULL,NULL);
  16583.          iconv_close(cd);
  16584. ; return 0; }
  16585. EOF
  16586. if { (eval echo configure:16587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  16587.   rm -rf conftest*
  16588.   am_cv_lib_iconv=yes
  16589.         am_cv_func_iconv=yes
  16590. else
  16591.   echo "configure: failed program was:" >&5
  16592.   cat conftest.$ac_ext >&5
  16593. fi
  16594. rm -f conftest*
  16595.       LIBS="$am_save_LIBS"
  16596.     fi
  16597.   
  16598. fi
  16599.  
  16600. echo "$ac_t""$am_cv_func_iconv" 1>&6
  16601.   if test "$am_cv_func_iconv" = yes; then
  16602.     cat >> confdefs.h <<\EOF
  16603. #define HAVE_ICONV 1
  16604. EOF
  16605.  
  16606.     echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
  16607. echo "configure:16608: checking if iconv needs const" >&5
  16608. if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
  16609.   echo $ac_n "(cached) $ac_c" 1>&6
  16610. else
  16611.   cat > conftest.$ac_ext <<EOF
  16612. #line 16613 "configure"
  16613. #include "confdefs.h"
  16614.  
  16615. #include <stdlib.h>
  16616. #include <iconv.h>
  16617. extern
  16618. #ifdef __cplusplus
  16619. "C"
  16620. #endif
  16621. #if defined(__STDC__) || defined(__cplusplus)
  16622. size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
  16623. #else
  16624. size_t iconv();
  16625. #endif
  16626.         
  16627. int main() {
  16628.  
  16629. ; return 0; }
  16630. EOF
  16631. if { (eval echo configure:16632: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  16632.   rm -rf conftest*
  16633.   wx_cv_func_iconv_const="no"
  16634. else
  16635.   echo "configure: failed program was:" >&5
  16636.   cat conftest.$ac_ext >&5
  16637.   rm -rf conftest*
  16638.   wx_cv_func_iconv_const="yes"
  16639.       
  16640. fi
  16641. rm -f conftest*
  16642.     
  16643. fi
  16644.  
  16645. echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
  16646.  
  16647.     iconv_const=
  16648.     if test "x$wx_cv_func_iconv_const" = "xyes"; then
  16649.         iconv_const="const"
  16650.     fi
  16651.  
  16652.     cat >> confdefs.h <<EOF
  16653. #define ICONV_CONST $iconv_const
  16654. EOF
  16655.  
  16656.   fi
  16657.   LIBICONV=
  16658.   if test "$am_cv_lib_iconv" = yes; then
  16659.     LIBICONV="-liconv"
  16660.   fi
  16661.   
  16662.  
  16663. LIBS="$LIBICONV $LIBS"
  16664. ac_ext=c
  16665. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  16666. ac_cpp='$CPP $CPPFLAGS'
  16667. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  16668. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  16669. cross_compiling=$ac_cv_prog_cc_cross
  16670.  
  16671.  
  16672. if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
  16673.     for ac_func in sigaction
  16674. do
  16675. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  16676. echo "configure:16677: checking for $ac_func" >&5
  16677. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  16678.   echo $ac_n "(cached) $ac_c" 1>&6
  16679. else
  16680.   cat > conftest.$ac_ext <<EOF
  16681. #line 16682 "configure"
  16682. #include "confdefs.h"
  16683. /* System header to define __stub macros and hopefully few prototypes,
  16684.     which can conflict with char $ac_func(); below.  */
  16685. #include <assert.h>
  16686. /* Override any gcc2 internal prototype to avoid an error.  */
  16687. /* We use char because int might match the return type of a gcc2
  16688.     builtin and then its argument prototype would still apply.  */
  16689. char $ac_func();
  16690.  
  16691. int main() {
  16692.  
  16693. /* The GNU C library defines this for functions which it implements
  16694.     to always fail with ENOSYS.  Some functions are actually named
  16695.     something starting with __ and the normal name is an alias.  */
  16696. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  16697. choke me
  16698. #else
  16699. $ac_func();
  16700. #endif
  16701.  
  16702. ; return 0; }
  16703. EOF
  16704. if { (eval echo configure:16705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  16705.   rm -rf conftest*
  16706.   eval "ac_cv_func_$ac_func=yes"
  16707. else
  16708.   echo "configure: failed program was:" >&5
  16709.   cat conftest.$ac_ext >&5
  16710.   rm -rf conftest*
  16711.   eval "ac_cv_func_$ac_func=no"
  16712. fi
  16713. rm -f conftest*
  16714. fi
  16715.  
  16716. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  16717.   echo "$ac_t""yes" 1>&6
  16718.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  16719.   cat >> confdefs.h <<EOF
  16720. #define $ac_tr_func 1
  16721. EOF
  16722.  
  16723. else
  16724.   echo "$ac_t""no" 1>&6
  16725. fi
  16726. done
  16727.  
  16728.  
  16729.     if test "$ac_cv_func_sigaction" = "no"; then
  16730.         echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
  16731.         wxUSE_ON_FATAL_EXCEPTION=no
  16732.     fi
  16733.  
  16734.     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
  16735.       
  16736.       ac_ext=C
  16737. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  16738. ac_cpp='$CXXCPP $CPPFLAGS'
  16739. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  16740. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  16741. cross_compiling=$ac_cv_prog_cxx_cross
  16742.  
  16743.  
  16744.       echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
  16745. echo "configure:16746: checking for sa_handler type" >&5
  16746. if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
  16747.   echo $ac_n "(cached) $ac_c" 1>&6
  16748. else
  16749.   
  16750.         cat > conftest.$ac_ext <<EOF
  16751. #line 16752 "configure"
  16752. #include "confdefs.h"
  16753. #include <signal.h>
  16754. int main() {
  16755.  
  16756.                         extern void testSigHandler(int);
  16757.  
  16758.                         struct sigaction sa;
  16759.                         sa.sa_handler = testSigHandler;
  16760.                      
  16761. ; return 0; }
  16762. EOF
  16763. if { (eval echo configure:16764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  16764.   rm -rf conftest*
  16765.   
  16766.                         wx_cv_type_sa_handler=int
  16767.                      
  16768. else
  16769.   echo "configure: failed program was:" >&5
  16770.   cat conftest.$ac_ext >&5
  16771.   rm -rf conftest*
  16772.   
  16773.                         wx_cv_type_sa_handler=void
  16774.                      
  16775. fi
  16776. rm -f conftest*
  16777.       
  16778. fi
  16779.  
  16780. echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
  16781.  
  16782.       ac_ext=c
  16783. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  16784. ac_cpp='$CPP $CPPFLAGS'
  16785. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  16786. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  16787. cross_compiling=$ac_cv_prog_cc_cross
  16788.  
  16789.  
  16790.       cat >> confdefs.h <<EOF
  16791. #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
  16792. EOF
  16793.  
  16794.     fi
  16795. fi
  16796.  
  16797. for ac_func in vfork
  16798. do
  16799. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  16800. echo "configure:16801: checking for $ac_func" >&5
  16801. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  16802.   echo $ac_n "(cached) $ac_c" 1>&6
  16803. else
  16804.   cat > conftest.$ac_ext <<EOF
  16805. #line 16806 "configure"
  16806. #include "confdefs.h"
  16807. /* System header to define __stub macros and hopefully few prototypes,
  16808.     which can conflict with char $ac_func(); below.  */
  16809. #include <assert.h>
  16810. /* Override any gcc2 internal prototype to avoid an error.  */
  16811. /* We use char because int might match the return type of a gcc2
  16812.     builtin and then its argument prototype would still apply.  */
  16813. char $ac_func();
  16814.  
  16815. int main() {
  16816.  
  16817. /* The GNU C library defines this for functions which it implements
  16818.     to always fail with ENOSYS.  Some functions are actually named
  16819.     something starting with __ and the normal name is an alias.  */
  16820. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  16821. choke me
  16822. #else
  16823. $ac_func();
  16824. #endif
  16825.  
  16826. ; return 0; }
  16827. EOF
  16828. if { (eval echo configure:16829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  16829.   rm -rf conftest*
  16830.   eval "ac_cv_func_$ac_func=yes"
  16831. else
  16832.   echo "configure: failed program was:" >&5
  16833.   cat conftest.$ac_ext >&5
  16834.   rm -rf conftest*
  16835.   eval "ac_cv_func_$ac_func=no"
  16836. fi
  16837. rm -f conftest*
  16838. fi
  16839.  
  16840. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  16841.   echo "$ac_t""yes" 1>&6
  16842.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  16843.   cat >> confdefs.h <<EOF
  16844. #define $ac_tr_func 1
  16845. EOF
  16846.  
  16847. else
  16848.   echo "$ac_t""no" 1>&6
  16849. fi
  16850. done
  16851.  
  16852.  
  16853. for ac_func in mkstemp mktemp
  16854. do
  16855. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  16856. echo "configure:16857: checking for $ac_func" >&5
  16857. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  16858.   echo $ac_n "(cached) $ac_c" 1>&6
  16859. else
  16860.   cat > conftest.$ac_ext <<EOF
  16861. #line 16862 "configure"
  16862. #include "confdefs.h"
  16863. /* System header to define __stub macros and hopefully few prototypes,
  16864.     which can conflict with char $ac_func(); below.  */
  16865. #include <assert.h>
  16866. /* Override any gcc2 internal prototype to avoid an error.  */
  16867. /* We use char because int might match the return type of a gcc2
  16868.     builtin and then its argument prototype would still apply.  */
  16869. char $ac_func();
  16870.  
  16871. int main() {
  16872.  
  16873. /* The GNU C library defines this for functions which it implements
  16874.     to always fail with ENOSYS.  Some functions are actually named
  16875.     something starting with __ and the normal name is an alias.  */
  16876. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  16877. choke me
  16878. #else
  16879. $ac_func();
  16880. #endif
  16881.  
  16882. ; return 0; }
  16883. EOF
  16884. if { (eval echo configure:16885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  16885.   rm -rf conftest*
  16886.   eval "ac_cv_func_$ac_func=yes"
  16887. else
  16888.   echo "configure: failed program was:" >&5
  16889.   cat conftest.$ac_ext >&5
  16890.   rm -rf conftest*
  16891.   eval "ac_cv_func_$ac_func=no"
  16892. fi
  16893. rm -f conftest*
  16894. fi
  16895.  
  16896. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  16897.   echo "$ac_t""yes" 1>&6
  16898.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  16899.   cat >> confdefs.h <<EOF
  16900. #define $ac_tr_func 1
  16901. EOF
  16902.  break
  16903. else
  16904.   echo "$ac_t""no" 1>&6
  16905. fi
  16906. done
  16907.  
  16908.  
  16909. echo $ac_n "checking for statfs""... $ac_c" 1>&6
  16910. echo "configure:16911: checking for statfs" >&5
  16911. if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
  16912.   echo $ac_n "(cached) $ac_c" 1>&6
  16913. else
  16914.   cat > conftest.$ac_ext <<EOF
  16915. #line 16916 "configure"
  16916. #include "confdefs.h"
  16917.  
  16918.              #if defined(__BSD__)
  16919.                #include <sys/param.h>
  16920.                #include <sys/mount.h>
  16921.              #else
  16922.                #include <sys/vfs.h>
  16923.              #endif
  16924.         
  16925. int main() {
  16926.  
  16927.              long l;
  16928.              struct statfs fs;
  16929.              statfs("/", &fs);
  16930.              l = fs.f_bsize;
  16931.              l += fs.f_blocks;
  16932.              l += fs.f_bavail;
  16933.         
  16934. ; return 0; }
  16935. EOF
  16936. if { (eval echo configure:16937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  16937.   rm -rf conftest*
  16938.   
  16939.              wx_cv_func_statfs=yes
  16940.         
  16941. else
  16942.   echo "configure: failed program was:" >&5
  16943.   cat conftest.$ac_ext >&5
  16944.   rm -rf conftest*
  16945.   
  16946.              wx_cv_func_statfs=no
  16947.         
  16948.     
  16949. fi
  16950. rm -f conftest*
  16951.  
  16952. fi
  16953.  
  16954. echo "$ac_t""$wx_cv_func_statfs" 1>&6
  16955.  
  16956. if test "$wx_cv_func_statfs" = "yes"; then
  16957.     cat >> confdefs.h <<\EOF
  16958. #define HAVE_STATFS 1
  16959. EOF
  16960.  
  16961. else
  16962.     echo $ac_n "checking for statvfs""... $ac_c" 1>&6
  16963. echo "configure:16964: checking for statvfs" >&5
  16964. if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
  16965.   echo $ac_n "(cached) $ac_c" 1>&6
  16966. else
  16967.   cat > conftest.$ac_ext <<EOF
  16968. #line 16969 "configure"
  16969. #include "confdefs.h"
  16970.  
  16971.                  #include <sys/statvfs.h>
  16972.             
  16973. int main() {
  16974.  
  16975.                  long l;
  16976.                  struct statvfs fs;
  16977.                  statvfs("/", &fs);
  16978.                  l = fs.f_bsize;
  16979.                  l += fs.f_blocks;
  16980.                  l += fs.f_bavail;
  16981.             
  16982. ; return 0; }
  16983. EOF
  16984. if { (eval echo configure:16985: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  16985.   rm -rf conftest*
  16986.   
  16987.                  wx_cv_func_statvfs=yes
  16988.             
  16989. else
  16990.   echo "configure: failed program was:" >&5
  16991.   cat conftest.$ac_ext >&5
  16992.   rm -rf conftest*
  16993.   
  16994.                  wx_cv_func_statvfs=no
  16995.             
  16996.         
  16997. fi
  16998. rm -f conftest*
  16999.     
  17000. fi
  17001.  
  17002. echo "$ac_t""$wx_cv_func_statvfs" 1>&6
  17003.  
  17004.     if test "$wx_cv_func_statvfs" = "yes"; then
  17005.         cat >> confdefs.h <<\EOF
  17006. #define HAVE_STATVFS 1
  17007. EOF
  17008.  
  17009.     else
  17010.         echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
  17011.     fi
  17012. fi
  17013.  
  17014. if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
  17015.     for ac_func in fcntl flock
  17016. do
  17017. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17018. echo "configure:17019: checking for $ac_func" >&5
  17019. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17020.   echo $ac_n "(cached) $ac_c" 1>&6
  17021. else
  17022.   cat > conftest.$ac_ext <<EOF
  17023. #line 17024 "configure"
  17024. #include "confdefs.h"
  17025. /* System header to define __stub macros and hopefully few prototypes,
  17026.     which can conflict with char $ac_func(); below.  */
  17027. #include <assert.h>
  17028. /* Override any gcc2 internal prototype to avoid an error.  */
  17029. /* We use char because int might match the return type of a gcc2
  17030.     builtin and then its argument prototype would still apply.  */
  17031. char $ac_func();
  17032.  
  17033. int main() {
  17034.  
  17035. /* The GNU C library defines this for functions which it implements
  17036.     to always fail with ENOSYS.  Some functions are actually named
  17037.     something starting with __ and the normal name is an alias.  */
  17038. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17039. choke me
  17040. #else
  17041. $ac_func();
  17042. #endif
  17043.  
  17044. ; return 0; }
  17045. EOF
  17046. if { (eval echo configure:17047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17047.   rm -rf conftest*
  17048.   eval "ac_cv_func_$ac_func=yes"
  17049. else
  17050.   echo "configure: failed program was:" >&5
  17051.   cat conftest.$ac_ext >&5
  17052.   rm -rf conftest*
  17053.   eval "ac_cv_func_$ac_func=no"
  17054. fi
  17055. rm -f conftest*
  17056. fi
  17057.  
  17058. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17059.   echo "$ac_t""yes" 1>&6
  17060.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17061.   cat >> confdefs.h <<EOF
  17062. #define $ac_tr_func 1
  17063. EOF
  17064.  break
  17065. else
  17066.   echo "$ac_t""no" 1>&6
  17067. fi
  17068. done
  17069.  
  17070.  
  17071.     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
  17072.         echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
  17073.         wxUSE_SNGLINST_CHECKER=no
  17074.     fi
  17075. fi
  17076.  
  17077. for ac_func in timegm
  17078. do
  17079. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17080. echo "configure:17081: checking for $ac_func" >&5
  17081. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17082.   echo $ac_n "(cached) $ac_c" 1>&6
  17083. else
  17084.   cat > conftest.$ac_ext <<EOF
  17085. #line 17086 "configure"
  17086. #include "confdefs.h"
  17087. /* System header to define __stub macros and hopefully few prototypes,
  17088.     which can conflict with char $ac_func(); below.  */
  17089. #include <assert.h>
  17090. /* Override any gcc2 internal prototype to avoid an error.  */
  17091. /* We use char because int might match the return type of a gcc2
  17092.     builtin and then its argument prototype would still apply.  */
  17093. char $ac_func();
  17094.  
  17095. int main() {
  17096.  
  17097. /* The GNU C library defines this for functions which it implements
  17098.     to always fail with ENOSYS.  Some functions are actually named
  17099.     something starting with __ and the normal name is an alias.  */
  17100. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17101. choke me
  17102. #else
  17103. $ac_func();
  17104. #endif
  17105.  
  17106. ; return 0; }
  17107. EOF
  17108. if { (eval echo configure:17109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17109.   rm -rf conftest*
  17110.   eval "ac_cv_func_$ac_func=yes"
  17111. else
  17112.   echo "configure: failed program was:" >&5
  17113.   cat conftest.$ac_ext >&5
  17114.   rm -rf conftest*
  17115.   eval "ac_cv_func_$ac_func=no"
  17116. fi
  17117. rm -f conftest*
  17118. fi
  17119.  
  17120. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17121.   echo "$ac_t""yes" 1>&6
  17122.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17123.   cat >> confdefs.h <<EOF
  17124. #define $ac_tr_func 1
  17125. EOF
  17126.  
  17127. else
  17128.   echo "$ac_t""no" 1>&6
  17129. fi
  17130. done
  17131.  
  17132.  
  17133. for ac_func in putenv setenv
  17134. do
  17135. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17136. echo "configure:17137: checking for $ac_func" >&5
  17137. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17138.   echo $ac_n "(cached) $ac_c" 1>&6
  17139. else
  17140.   cat > conftest.$ac_ext <<EOF
  17141. #line 17142 "configure"
  17142. #include "confdefs.h"
  17143. /* System header to define __stub macros and hopefully few prototypes,
  17144.     which can conflict with char $ac_func(); below.  */
  17145. #include <assert.h>
  17146. /* Override any gcc2 internal prototype to avoid an error.  */
  17147. /* We use char because int might match the return type of a gcc2
  17148.     builtin and then its argument prototype would still apply.  */
  17149. char $ac_func();
  17150.  
  17151. int main() {
  17152.  
  17153. /* The GNU C library defines this for functions which it implements
  17154.     to always fail with ENOSYS.  Some functions are actually named
  17155.     something starting with __ and the normal name is an alias.  */
  17156. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17157. choke me
  17158. #else
  17159. $ac_func();
  17160. #endif
  17161.  
  17162. ; return 0; }
  17163. EOF
  17164. if { (eval echo configure:17165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17165.   rm -rf conftest*
  17166.   eval "ac_cv_func_$ac_func=yes"
  17167. else
  17168.   echo "configure: failed program was:" >&5
  17169.   cat conftest.$ac_ext >&5
  17170.   rm -rf conftest*
  17171.   eval "ac_cv_func_$ac_func=no"
  17172. fi
  17173. rm -f conftest*
  17174. fi
  17175.  
  17176. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17177.   echo "$ac_t""yes" 1>&6
  17178.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17179.   cat >> confdefs.h <<EOF
  17180. #define $ac_tr_func 1
  17181. EOF
  17182.  break
  17183. else
  17184.   echo "$ac_t""no" 1>&6
  17185. fi
  17186. done
  17187.  
  17188.  
  17189. HAVE_SOME_SLEEP_FUNC=0
  17190. if test "$USE_BEOS" = 1; then
  17191.             cat >> confdefs.h <<\EOF
  17192. #define HAVE_SLEEP 1
  17193. EOF
  17194.  
  17195.     HAVE_SOME_SLEEP_FUNC=1
  17196. fi
  17197.  
  17198. if test "$USE_DARWIN" = 1; then
  17199.             cat >> confdefs.h <<\EOF
  17200. #define HAVE_USLEEP 1
  17201. EOF
  17202.  
  17203.     HAVE_SOME_SLEEP_FUNC=1
  17204. fi
  17205.  
  17206. if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
  17207.         POSIX4_LINK=
  17208.     for ac_func in nanosleep
  17209. do
  17210. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17211. echo "configure:17212: checking for $ac_func" >&5
  17212. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17213.   echo $ac_n "(cached) $ac_c" 1>&6
  17214. else
  17215.   cat > conftest.$ac_ext <<EOF
  17216. #line 17217 "configure"
  17217. #include "confdefs.h"
  17218. /* System header to define __stub macros and hopefully few prototypes,
  17219.     which can conflict with char $ac_func(); below.  */
  17220. #include <assert.h>
  17221. /* Override any gcc2 internal prototype to avoid an error.  */
  17222. /* We use char because int might match the return type of a gcc2
  17223.     builtin and then its argument prototype would still apply.  */
  17224. char $ac_func();
  17225.  
  17226. int main() {
  17227.  
  17228. /* The GNU C library defines this for functions which it implements
  17229.     to always fail with ENOSYS.  Some functions are actually named
  17230.     something starting with __ and the normal name is an alias.  */
  17231. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17232. choke me
  17233. #else
  17234. $ac_func();
  17235. #endif
  17236.  
  17237. ; return 0; }
  17238. EOF
  17239. if { (eval echo configure:17240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17240.   rm -rf conftest*
  17241.   eval "ac_cv_func_$ac_func=yes"
  17242. else
  17243.   echo "configure: failed program was:" >&5
  17244.   cat conftest.$ac_ext >&5
  17245.   rm -rf conftest*
  17246.   eval "ac_cv_func_$ac_func=no"
  17247. fi
  17248. rm -f conftest*
  17249. fi
  17250.  
  17251. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17252.   echo "$ac_t""yes" 1>&6
  17253.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17254.   cat >> confdefs.h <<EOF
  17255. #define $ac_tr_func 1
  17256. EOF
  17257.  cat >> confdefs.h <<\EOF
  17258. #define HAVE_NANOSLEEP 1
  17259. EOF
  17260.  
  17261. else
  17262.   echo "$ac_t""no" 1>&6
  17263. echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
  17264. echo "configure:17265: checking for nanosleep in -lposix4" >&5
  17265. ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
  17266. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  17267.   echo $ac_n "(cached) $ac_c" 1>&6
  17268. else
  17269.   ac_save_LIBS="$LIBS"
  17270. LIBS="-lposix4  $LIBS"
  17271. cat > conftest.$ac_ext <<EOF
  17272. #line 17273 "configure"
  17273. #include "confdefs.h"
  17274. /* Override any gcc2 internal prototype to avoid an error.  */
  17275. /* We use char because int might match the return type of a gcc2
  17276.     builtin and then its argument prototype would still apply.  */
  17277. char nanosleep();
  17278.  
  17279. int main() {
  17280. nanosleep()
  17281. ; return 0; }
  17282. EOF
  17283. if { (eval echo configure:17284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17284.   rm -rf conftest*
  17285.   eval "ac_cv_lib_$ac_lib_var=yes"
  17286. else
  17287.   echo "configure: failed program was:" >&5
  17288.   cat conftest.$ac_ext >&5
  17289.   rm -rf conftest*
  17290.   eval "ac_cv_lib_$ac_lib_var=no"
  17291. fi
  17292. rm -f conftest*
  17293. LIBS="$ac_save_LIBS"
  17294.  
  17295. fi
  17296. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  17297.   echo "$ac_t""yes" 1>&6
  17298.   
  17299.                     cat >> confdefs.h <<\EOF
  17300. #define HAVE_NANOSLEEP 1
  17301. EOF
  17302.  
  17303.                     POSIX4_LINK=" -lposix4"
  17304.                 
  17305. else
  17306.   echo "$ac_t""no" 1>&6
  17307.  
  17308.                     for ac_func in usleep
  17309. do
  17310. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17311. echo "configure:17312: checking for $ac_func" >&5
  17312. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17313.   echo $ac_n "(cached) $ac_c" 1>&6
  17314. else
  17315.   cat > conftest.$ac_ext <<EOF
  17316. #line 17317 "configure"
  17317. #include "confdefs.h"
  17318. /* System header to define __stub macros and hopefully few prototypes,
  17319.     which can conflict with char $ac_func(); below.  */
  17320. #include <assert.h>
  17321. /* Override any gcc2 internal prototype to avoid an error.  */
  17322. /* We use char because int might match the return type of a gcc2
  17323.     builtin and then its argument prototype would still apply.  */
  17324. char $ac_func();
  17325.  
  17326. int main() {
  17327.  
  17328. /* The GNU C library defines this for functions which it implements
  17329.     to always fail with ENOSYS.  Some functions are actually named
  17330.     something starting with __ and the normal name is an alias.  */
  17331. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17332. choke me
  17333. #else
  17334. $ac_func();
  17335. #endif
  17336.  
  17337. ; return 0; }
  17338. EOF
  17339. if { (eval echo configure:17340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17340.   rm -rf conftest*
  17341.   eval "ac_cv_func_$ac_func=yes"
  17342. else
  17343.   echo "configure: failed program was:" >&5
  17344.   cat conftest.$ac_ext >&5
  17345.   rm -rf conftest*
  17346.   eval "ac_cv_func_$ac_func=no"
  17347. fi
  17348. rm -f conftest*
  17349. fi
  17350.  
  17351. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17352.   echo "$ac_t""yes" 1>&6
  17353.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17354.   cat >> confdefs.h <<EOF
  17355. #define $ac_tr_func 1
  17356. EOF
  17357.  cat >> confdefs.h <<\EOF
  17358. #define HAVE_USLEEP 1
  17359. EOF
  17360.  
  17361. else
  17362.   echo "$ac_t""no" 1>&6
  17363. echo "configure: warning: wxSleep() function will not work" 1>&2
  17364.                     
  17365. fi
  17366. done
  17367.  
  17368.                 
  17369.             
  17370. fi
  17371.  
  17372.         
  17373.     
  17374. fi
  17375. done
  17376.  
  17377. fi
  17378.  
  17379. for ac_func in uname gethostname
  17380. do
  17381. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17382. echo "configure:17383: checking for $ac_func" >&5
  17383. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17384.   echo $ac_n "(cached) $ac_c" 1>&6
  17385. else
  17386.   cat > conftest.$ac_ext <<EOF
  17387. #line 17388 "configure"
  17388. #include "confdefs.h"
  17389. /* System header to define __stub macros and hopefully few prototypes,
  17390.     which can conflict with char $ac_func(); below.  */
  17391. #include <assert.h>
  17392. /* Override any gcc2 internal prototype to avoid an error.  */
  17393. /* We use char because int might match the return type of a gcc2
  17394.     builtin and then its argument prototype would still apply.  */
  17395. char $ac_func();
  17396.  
  17397. int main() {
  17398.  
  17399. /* The GNU C library defines this for functions which it implements
  17400.     to always fail with ENOSYS.  Some functions are actually named
  17401.     something starting with __ and the normal name is an alias.  */
  17402. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17403. choke me
  17404. #else
  17405. $ac_func();
  17406. #endif
  17407.  
  17408. ; return 0; }
  17409. EOF
  17410. if { (eval echo configure:17411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17411.   rm -rf conftest*
  17412.   eval "ac_cv_func_$ac_func=yes"
  17413. else
  17414.   echo "configure: failed program was:" >&5
  17415.   cat conftest.$ac_ext >&5
  17416.   rm -rf conftest*
  17417.   eval "ac_cv_func_$ac_func=no"
  17418. fi
  17419. rm -f conftest*
  17420. fi
  17421.  
  17422. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17423.   echo "$ac_t""yes" 1>&6
  17424.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17425.   cat >> confdefs.h <<EOF
  17426. #define $ac_tr_func 1
  17427. EOF
  17428.  break
  17429. else
  17430.   echo "$ac_t""no" 1>&6
  17431. fi
  17432. done
  17433.  
  17434.  
  17435.  
  17436. ac_ext=C
  17437. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  17438. ac_cpp='$CXXCPP $CPPFLAGS'
  17439. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  17440. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  17441. cross_compiling=$ac_cv_prog_cxx_cross
  17442.  
  17443.  
  17444. for ac_func in strtok_r
  17445. do
  17446. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17447. echo "configure:17448: checking for $ac_func" >&5
  17448. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17449.   echo $ac_n "(cached) $ac_c" 1>&6
  17450. else
  17451.   cat > conftest.$ac_ext <<EOF
  17452. #line 17453 "configure"
  17453. #include "confdefs.h"
  17454. /* System header to define __stub macros and hopefully few prototypes,
  17455.     which can conflict with char $ac_func(); below.  */
  17456. #include <assert.h>
  17457. /* Override any gcc2 internal prototype to avoid an error.  */
  17458. #ifdef __cplusplus
  17459. extern "C"
  17460. #endif
  17461. /* We use char because int might match the return type of a gcc2
  17462.     builtin and then its argument prototype would still apply.  */
  17463. char $ac_func();
  17464.  
  17465. int main() {
  17466.  
  17467. /* The GNU C library defines this for functions which it implements
  17468.     to always fail with ENOSYS.  Some functions are actually named
  17469.     something starting with __ and the normal name is an alias.  */
  17470. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17471. choke me
  17472. #else
  17473. $ac_func();
  17474. #endif
  17475.  
  17476. ; return 0; }
  17477. EOF
  17478. if { (eval echo configure:17479: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17479.   rm -rf conftest*
  17480.   eval "ac_cv_func_$ac_func=yes"
  17481. else
  17482.   echo "configure: failed program was:" >&5
  17483.   cat conftest.$ac_ext >&5
  17484.   rm -rf conftest*
  17485.   eval "ac_cv_func_$ac_func=no"
  17486. fi
  17487. rm -f conftest*
  17488. fi
  17489.  
  17490. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17491.   echo "$ac_t""yes" 1>&6
  17492.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17493.   cat >> confdefs.h <<EOF
  17494. #define $ac_tr_func 1
  17495. EOF
  17496.  
  17497. else
  17498.   echo "$ac_t""no" 1>&6
  17499. fi
  17500. done
  17501.  
  17502.  
  17503. ac_ext=c
  17504. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  17505. ac_cpp='$CPP $CPPFLAGS'
  17506. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  17507. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  17508. cross_compiling=$ac_cv_prog_cc_cross
  17509.  
  17510.  
  17511. INET_LINK=
  17512. for ac_func in inet_addr
  17513. do
  17514. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17515. echo "configure:17516: checking for $ac_func" >&5
  17516. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17517.   echo $ac_n "(cached) $ac_c" 1>&6
  17518. else
  17519.   cat > conftest.$ac_ext <<EOF
  17520. #line 17521 "configure"
  17521. #include "confdefs.h"
  17522. /* System header to define __stub macros and hopefully few prototypes,
  17523.     which can conflict with char $ac_func(); below.  */
  17524. #include <assert.h>
  17525. /* Override any gcc2 internal prototype to avoid an error.  */
  17526. /* We use char because int might match the return type of a gcc2
  17527.     builtin and then its argument prototype would still apply.  */
  17528. char $ac_func();
  17529.  
  17530. int main() {
  17531.  
  17532. /* The GNU C library defines this for functions which it implements
  17533.     to always fail with ENOSYS.  Some functions are actually named
  17534.     something starting with __ and the normal name is an alias.  */
  17535. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17536. choke me
  17537. #else
  17538. $ac_func();
  17539. #endif
  17540.  
  17541. ; return 0; }
  17542. EOF
  17543. if { (eval echo configure:17544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17544.   rm -rf conftest*
  17545.   eval "ac_cv_func_$ac_func=yes"
  17546. else
  17547.   echo "configure: failed program was:" >&5
  17548.   cat conftest.$ac_ext >&5
  17549.   rm -rf conftest*
  17550.   eval "ac_cv_func_$ac_func=no"
  17551. fi
  17552. rm -f conftest*
  17553. fi
  17554.  
  17555. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17556.   echo "$ac_t""yes" 1>&6
  17557.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17558.   cat >> confdefs.h <<EOF
  17559. #define $ac_tr_func 1
  17560. EOF
  17561.  cat >> confdefs.h <<\EOF
  17562. #define HAVE_INET_ADDR 1
  17563. EOF
  17564.  
  17565. else
  17566.   echo "$ac_t""no" 1>&6
  17567. echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
  17568. echo "configure:17569: checking for inet_addr in -lnsl" >&5
  17569. ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
  17570. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  17571.   echo $ac_n "(cached) $ac_c" 1>&6
  17572. else
  17573.   ac_save_LIBS="$LIBS"
  17574. LIBS="-lnsl  $LIBS"
  17575. cat > conftest.$ac_ext <<EOF
  17576. #line 17577 "configure"
  17577. #include "confdefs.h"
  17578. /* Override any gcc2 internal prototype to avoid an error.  */
  17579. /* We use char because int might match the return type of a gcc2
  17580.     builtin and then its argument prototype would still apply.  */
  17581. char inet_addr();
  17582.  
  17583. int main() {
  17584. inet_addr()
  17585. ; return 0; }
  17586. EOF
  17587. if { (eval echo configure:17588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17588.   rm -rf conftest*
  17589.   eval "ac_cv_lib_$ac_lib_var=yes"
  17590. else
  17591.   echo "configure: failed program was:" >&5
  17592.   cat conftest.$ac_ext >&5
  17593.   rm -rf conftest*
  17594.   eval "ac_cv_lib_$ac_lib_var=no"
  17595. fi
  17596. rm -f conftest*
  17597. LIBS="$ac_save_LIBS"
  17598.  
  17599. fi
  17600. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  17601.   echo "$ac_t""yes" 1>&6
  17602.   INET_LINK="nsl"
  17603. else
  17604.   echo "$ac_t""no" 1>&6
  17605. echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
  17606. echo "configure:17607: checking for inet_addr in -lresolv" >&5
  17607. ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
  17608. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  17609.   echo $ac_n "(cached) $ac_c" 1>&6
  17610. else
  17611.   ac_save_LIBS="$LIBS"
  17612. LIBS="-lresolv  $LIBS"
  17613. cat > conftest.$ac_ext <<EOF
  17614. #line 17615 "configure"
  17615. #include "confdefs.h"
  17616. /* Override any gcc2 internal prototype to avoid an error.  */
  17617. /* We use char because int might match the return type of a gcc2
  17618.     builtin and then its argument prototype would still apply.  */
  17619. char inet_addr();
  17620.  
  17621. int main() {
  17622. inet_addr()
  17623. ; return 0; }
  17624. EOF
  17625. if { (eval echo configure:17626: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17626.   rm -rf conftest*
  17627.   eval "ac_cv_lib_$ac_lib_var=yes"
  17628. else
  17629.   echo "configure: failed program was:" >&5
  17630.   cat conftest.$ac_ext >&5
  17631.   rm -rf conftest*
  17632.   eval "ac_cv_lib_$ac_lib_var=no"
  17633. fi
  17634. rm -f conftest*
  17635. LIBS="$ac_save_LIBS"
  17636.  
  17637. fi
  17638. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  17639.   echo "$ac_t""yes" 1>&6
  17640.   INET_LINK="resolv"
  17641. else
  17642.   echo "$ac_t""no" 1>&6
  17643. echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
  17644. echo "configure:17645: checking for inet_addr in -lsocket" >&5
  17645. ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
  17646. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  17647.   echo $ac_n "(cached) $ac_c" 1>&6
  17648. else
  17649.   ac_save_LIBS="$LIBS"
  17650. LIBS="-lsocket  $LIBS"
  17651. cat > conftest.$ac_ext <<EOF
  17652. #line 17653 "configure"
  17653. #include "confdefs.h"
  17654. /* Override any gcc2 internal prototype to avoid an error.  */
  17655. /* We use char because int might match the return type of a gcc2
  17656.     builtin and then its argument prototype would still apply.  */
  17657. char inet_addr();
  17658.  
  17659. int main() {
  17660. inet_addr()
  17661. ; return 0; }
  17662. EOF
  17663. if { (eval echo configure:17664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17664.   rm -rf conftest*
  17665.   eval "ac_cv_lib_$ac_lib_var=yes"
  17666. else
  17667.   echo "configure: failed program was:" >&5
  17668.   cat conftest.$ac_ext >&5
  17669.   rm -rf conftest*
  17670.   eval "ac_cv_lib_$ac_lib_var=no"
  17671. fi
  17672. rm -f conftest*
  17673. LIBS="$ac_save_LIBS"
  17674.  
  17675. fi
  17676. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  17677.   echo "$ac_t""yes" 1>&6
  17678.   INET_LINK="socket"
  17679.                 
  17680. else
  17681.   echo "$ac_t""no" 1>&6
  17682. fi
  17683.  
  17684.             
  17685. fi
  17686.  
  17687.         
  17688. fi
  17689.  
  17690.     
  17691.  
  17692. fi
  17693. done
  17694.  
  17695.  
  17696. for ac_func in inet_aton
  17697. do
  17698. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17699. echo "configure:17700: checking for $ac_func" >&5
  17700. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17701.   echo $ac_n "(cached) $ac_c" 1>&6
  17702. else
  17703.   cat > conftest.$ac_ext <<EOF
  17704. #line 17705 "configure"
  17705. #include "confdefs.h"
  17706. /* System header to define __stub macros and hopefully few prototypes,
  17707.     which can conflict with char $ac_func(); below.  */
  17708. #include <assert.h>
  17709. /* Override any gcc2 internal prototype to avoid an error.  */
  17710. /* We use char because int might match the return type of a gcc2
  17711.     builtin and then its argument prototype would still apply.  */
  17712. char $ac_func();
  17713.  
  17714. int main() {
  17715.  
  17716. /* The GNU C library defines this for functions which it implements
  17717.     to always fail with ENOSYS.  Some functions are actually named
  17718.     something starting with __ and the normal name is an alias.  */
  17719. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  17720. choke me
  17721. #else
  17722. $ac_func();
  17723. #endif
  17724.  
  17725. ; return 0; }
  17726. EOF
  17727. if { (eval echo configure:17728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17728.   rm -rf conftest*
  17729.   eval "ac_cv_func_$ac_func=yes"
  17730. else
  17731.   echo "configure: failed program was:" >&5
  17732.   cat conftest.$ac_ext >&5
  17733.   rm -rf conftest*
  17734.   eval "ac_cv_func_$ac_func=no"
  17735. fi
  17736. rm -f conftest*
  17737. fi
  17738.  
  17739. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  17740.   echo "$ac_t""yes" 1>&6
  17741.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  17742.   cat >> confdefs.h <<EOF
  17743. #define $ac_tr_func 1
  17744. EOF
  17745.  cat >> confdefs.h <<\EOF
  17746. #define HAVE_INET_ATON 1
  17747. EOF
  17748.  
  17749. else
  17750.   echo "$ac_t""no" 1>&6
  17751.             echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
  17752. echo "configure:17753: checking for inet_aton in -l$INET_LINK" >&5
  17753. ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
  17754. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  17755.   echo $ac_n "(cached) $ac_c" 1>&6
  17756. else
  17757.   ac_save_LIBS="$LIBS"
  17758. LIBS="-l$INET_LINK  $LIBS"
  17759. cat > conftest.$ac_ext <<EOF
  17760. #line 17761 "configure"
  17761. #include "confdefs.h"
  17762. /* Override any gcc2 internal prototype to avoid an error.  */
  17763. /* We use char because int might match the return type of a gcc2
  17764.     builtin and then its argument prototype would still apply.  */
  17765. char inet_aton();
  17766.  
  17767. int main() {
  17768. inet_aton()
  17769. ; return 0; }
  17770. EOF
  17771. if { (eval echo configure:17772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17772.   rm -rf conftest*
  17773.   eval "ac_cv_lib_$ac_lib_var=yes"
  17774. else
  17775.   echo "configure: failed program was:" >&5
  17776.   cat conftest.$ac_ext >&5
  17777.   rm -rf conftest*
  17778.   eval "ac_cv_lib_$ac_lib_var=no"
  17779. fi
  17780. rm -f conftest*
  17781. LIBS="$ac_save_LIBS"
  17782.  
  17783. fi
  17784. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  17785.   echo "$ac_t""yes" 1>&6
  17786.   cat >> confdefs.h <<\EOF
  17787. #define HAVE_INET_ATON 1
  17788. EOF
  17789.  
  17790. else
  17791.   echo "$ac_t""no" 1>&6
  17792. fi
  17793.  
  17794.         
  17795. fi
  17796. done
  17797.  
  17798.  
  17799. if test "x$INET_LINK" != "x"; then
  17800.     cat >> confdefs.h <<\EOF
  17801. #define HAVE_INET_ADDR 1
  17802. EOF
  17803.  
  17804.     INET_LINK=" -l$INET_LINK"
  17805. fi
  17806.  
  17807. fi
  17808.  
  17809.  
  17810. cat > confcache <<\EOF
  17811. # This file is a shell script that caches the results of configure
  17812. # tests run on this system so they can be shared between configure
  17813. # scripts and configure runs.  It is not useful on other systems.
  17814. # If it contains results you don't want to keep, you may remove or edit it.
  17815. #
  17816. # By default, configure uses ./config.cache as the cache file,
  17817. # creating it if it does not exist already.  You can give configure
  17818. # the --cache-file=FILE option to use a different cache file; that is
  17819. # what configure does when it calls configure scripts in
  17820. # subdirectories, so they share the cache.
  17821. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  17822. # config.status only pays attention to the cache file if you give it the
  17823. # --recheck option to rerun configure.
  17824. #
  17825. EOF
  17826. # The following way of writing the cache mishandles newlines in values,
  17827. # but we know of no workaround that is simple, portable, and efficient.
  17828. # So, don't put newlines in cache variables' values.
  17829. # Ultrix sh set writes to stderr and can't be redirected directly,
  17830. # and sets the high bit in the cache file unless we assign to the vars.
  17831. (set) 2>&1 |
  17832.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  17833.   *ac_space=\ *)
  17834.     # `set' does not quote correctly, so add quotes (double-quote substitution
  17835.     # turns \\\\ into \\, and sed turns \\ into \).
  17836.     sed -n \
  17837.       -e "s/'/'\\\\''/g" \
  17838.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  17839.     ;;
  17840.   *)
  17841.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  17842.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  17843.     ;;
  17844.   esac >> confcache
  17845. if cmp -s $cache_file confcache; then
  17846.   :
  17847. else
  17848.   if test -w $cache_file; then
  17849.     echo "updating cache $cache_file"
  17850.     cat confcache > $cache_file
  17851.   else
  17852.     echo "not updating unwritable cache $cache_file"
  17853.   fi
  17854. fi
  17855. rm -f confcache
  17856.  
  17857.  
  17858.  
  17859. CPP_MT_FLAG=
  17860. if test "$TOOLKIT" != "MSW"; then
  17861.  
  17862.                             
  17863.     THREADS_LINK=
  17864.     THREADS_CFLAGS=
  17865.  
  17866.     if test "$wxUSE_THREADS" = "yes" ; then
  17867.         if test "$wxUSE_WINE" = 1 ; then
  17868.             echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
  17869.             wxUSE_THREADS="no"
  17870.         elif test "$USE_BEOS" = 1; then
  17871.             echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
  17872.             wxUSE_THREADS="no"
  17873.         fi
  17874.     fi
  17875.  
  17876.     if test "$wxUSE_THREADS" = "yes" ; then
  17877.                                                         
  17878.         
  17879.                                 THREAD_OPTS="-pthread"
  17880.         case "${host}" in
  17881.           *-*-solaris2* | *-*-sunos4* )
  17882.                 if test "x$GCC" = "xyes"; then
  17883.                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
  17884.                 else
  17885.                     THREAD_OPTS="-mt $THREAD_OPTS"
  17886.                 fi
  17887.                 ;;
  17888.           *-*-freebsd*)
  17889.                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
  17890.                 ;;
  17891.           *-*-darwin* | *-*-cygwin* )
  17892.                                                 THREAD_OPTS=""
  17893.                 ;;
  17894.           *-*-aix*)
  17895.                                 THREAD_OPTS="pthreads"
  17896.                 ;;
  17897.         esac
  17898.  
  17899.                                 THREAD_OPTS="$THREAD_OPTS pthread none"
  17900.  
  17901.                 THREADS_OK=no
  17902.         for flag in $THREAD_OPTS; do
  17903.             case $flag in
  17904.                 none)
  17905.                     echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
  17906. echo "configure:17907: checking whether pthreads work without any flags" >&5
  17907.                     ;;
  17908.  
  17909.                 -*)
  17910.                     echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
  17911. echo "configure:17912: checking whether pthreads work with $flag" >&5
  17912.                     THREADS_CFLAGS="$flag"
  17913.                     ;;
  17914.  
  17915.                 *)
  17916.                     echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
  17917. echo "configure:17918: checking for the pthreads library -l$flag" >&5
  17918.                     THREADS_LINK="-l$flag"
  17919.                     ;;
  17920.               esac
  17921.  
  17922.               save_LIBS="$LIBS"
  17923.               save_CFLAGS="$CFLAGS"
  17924.               LIBS="$THREADS_LINK $LIBS"
  17925.               CFLAGS="$THREADS_CFLAGS $CFLAGS"
  17926.  
  17927.               cat > conftest.$ac_ext <<EOF
  17928. #line 17929 "configure"
  17929. #include "confdefs.h"
  17930. #include <pthread.h>
  17931. int main() {
  17932. pthread_create(0,0,0,0);
  17933. ; return 0; }
  17934. EOF
  17935. if { (eval echo configure:17936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  17936.   rm -rf conftest*
  17937.   THREADS_OK=yes
  17938. else
  17939.   echo "configure: failed program was:" >&5
  17940.   cat conftest.$ac_ext >&5
  17941. fi
  17942. rm -f conftest*
  17943.  
  17944.               LIBS="$save_LIBS"
  17945.               CFLAGS="$save_CFLAGS"
  17946.  
  17947.               echo "$ac_t""$THREADS_OK" 1>&6
  17948.               if test "x$THREADS_OK" = "xyes"; then
  17949.                       break;
  17950.               fi
  17951.  
  17952.               THREADS_LINK=""
  17953.               THREADS_CFLAGS=""
  17954.       done
  17955.  
  17956.       if test "x$THREADS_OK" != "xyes"; then
  17957.           wxUSE_THREADS=no
  17958.           echo "configure: warning: No thread support on this system... disabled" 1>&2
  17959.       else
  17960.                               LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
  17961.  
  17962.           echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
  17963. echo "configure:17964: checking if more special flags are required for pthreads" >&5
  17964.           flag=no
  17965.           case "${host}" in
  17966.             *-aix* | *-freebsd*)
  17967.                 flag="-D_THREAD_SAFE"
  17968.                 ;;
  17969.             *solaris* | alpha*-osf*)
  17970.                 flag="-D_REENTRANT"
  17971.                 ;;
  17972.           esac
  17973.           echo "$ac_t""${flag}" 1>&6
  17974.           if test "x$flag" != xno; then
  17975.               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
  17976.           fi
  17977.  
  17978.           if test "x$THREADS_CFLAGS" != "x"; then
  17979.                         CFLAGS="$CFLAGS $THREADS_CFLAGS"
  17980.             CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
  17981.           fi
  17982.       fi
  17983.     fi
  17984.  
  17985.         if test "$wxUSE_THREADS" = "yes" ; then
  17986.       for ac_func in thr_setconcurrency
  17987. do
  17988. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  17989. echo "configure:17990: checking for $ac_func" >&5
  17990. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  17991.   echo $ac_n "(cached) $ac_c" 1>&6
  17992. else
  17993.   cat > conftest.$ac_ext <<EOF
  17994. #line 17995 "configure"
  17995. #include "confdefs.h"
  17996. /* System header to define __stub macros and hopefully few prototypes,
  17997.     which can conflict with char $ac_func(); below.  */
  17998. #include <assert.h>
  17999. /* Override any gcc2 internal prototype to avoid an error.  */
  18000. /* We use char because int might match the return type of a gcc2
  18001.     builtin and then its argument prototype would still apply.  */
  18002. char $ac_func();
  18003.  
  18004. int main() {
  18005.  
  18006. /* The GNU C library defines this for functions which it implements
  18007.     to always fail with ENOSYS.  Some functions are actually named
  18008.     something starting with __ and the normal name is an alias.  */
  18009. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18010. choke me
  18011. #else
  18012. $ac_func();
  18013. #endif
  18014.  
  18015. ; return 0; }
  18016. EOF
  18017. if { (eval echo configure:18018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18018.   rm -rf conftest*
  18019.   eval "ac_cv_func_$ac_func=yes"
  18020. else
  18021.   echo "configure: failed program was:" >&5
  18022.   cat conftest.$ac_ext >&5
  18023.   rm -rf conftest*
  18024.   eval "ac_cv_func_$ac_func=no"
  18025. fi
  18026. rm -f conftest*
  18027. fi
  18028.  
  18029. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  18030.   echo "$ac_t""yes" 1>&6
  18031.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  18032.   cat >> confdefs.h <<EOF
  18033. #define $ac_tr_func 1
  18034. EOF
  18035.  
  18036. else
  18037.   echo "$ac_t""no" 1>&6
  18038. fi
  18039. done
  18040.  
  18041.  
  18042.       for ac_hdr in sched.h
  18043. do
  18044. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  18045. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  18046. echo "configure:18047: checking for $ac_hdr" >&5
  18047. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  18048.   echo $ac_n "(cached) $ac_c" 1>&6
  18049. else
  18050.   cat > conftest.$ac_ext <<EOF
  18051. #include <sys/types.h>
  18052. #line 18053 "configure"
  18053. #include "confdefs.h"
  18054. #include <$ac_hdr>
  18055. EOF
  18056. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  18057. { (eval echo configure:18058: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  18058. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  18059. if test -z "$ac_err"; then
  18060.   rm -rf conftest*
  18061.   eval "ac_cv_header_$ac_safe=yes"
  18062. else
  18063.   echo "$ac_err" >&5
  18064.   echo "configure: failed program was:" >&5
  18065.   cat conftest.$ac_ext >&5
  18066.   rm -rf conftest*
  18067.   eval "ac_cv_header_$ac_safe=no"
  18068. fi
  18069. rm -f conftest*
  18070. fi
  18071. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  18072.   echo "$ac_t""yes" 1>&6
  18073.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  18074.   cat >> confdefs.h <<EOF
  18075. #define $ac_tr_hdr 1
  18076. EOF
  18077.  
  18078. else
  18079.   echo "$ac_t""no" 1>&6
  18080. fi
  18081. done
  18082.  
  18083.       if test "$ac_cv_header_sched_h" = "yes"; then
  18084.           echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
  18085. echo "configure:18086: checking for sched_yield" >&5
  18086. if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
  18087.   echo $ac_n "(cached) $ac_c" 1>&6
  18088. else
  18089.   cat > conftest.$ac_ext <<EOF
  18090. #line 18091 "configure"
  18091. #include "confdefs.h"
  18092. /* System header to define __stub macros and hopefully few prototypes,
  18093.     which can conflict with char sched_yield(); below.  */
  18094. #include <assert.h>
  18095. /* Override any gcc2 internal prototype to avoid an error.  */
  18096. /* We use char because int might match the return type of a gcc2
  18097.     builtin and then its argument prototype would still apply.  */
  18098. char sched_yield();
  18099.  
  18100. int main() {
  18101.  
  18102. /* The GNU C library defines this for functions which it implements
  18103.     to always fail with ENOSYS.  Some functions are actually named
  18104.     something starting with __ and the normal name is an alias.  */
  18105. #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
  18106. choke me
  18107. #else
  18108. sched_yield();
  18109. #endif
  18110.  
  18111. ; return 0; }
  18112. EOF
  18113. if { (eval echo configure:18114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18114.   rm -rf conftest*
  18115.   eval "ac_cv_func_sched_yield=yes"
  18116. else
  18117.   echo "configure: failed program was:" >&5
  18118.   cat conftest.$ac_ext >&5
  18119.   rm -rf conftest*
  18120.   eval "ac_cv_func_sched_yield=no"
  18121. fi
  18122. rm -f conftest*
  18123. fi
  18124.  
  18125. if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
  18126.   echo "$ac_t""yes" 1>&6
  18127.   cat >> confdefs.h <<\EOF
  18128. #define HAVE_SCHED_YIELD 1
  18129. EOF
  18130.  
  18131. else
  18132.   echo "$ac_t""no" 1>&6
  18133.  
  18134.                 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
  18135. echo "configure:18136: checking for sched_yield in -lposix4" >&5
  18136. ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
  18137. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  18138.   echo $ac_n "(cached) $ac_c" 1>&6
  18139. else
  18140.   ac_save_LIBS="$LIBS"
  18141. LIBS="-lposix4  $LIBS"
  18142. cat > conftest.$ac_ext <<EOF
  18143. #line 18144 "configure"
  18144. #include "confdefs.h"
  18145. /* Override any gcc2 internal prototype to avoid an error.  */
  18146. /* We use char because int might match the return type of a gcc2
  18147.     builtin and then its argument prototype would still apply.  */
  18148. char sched_yield();
  18149.  
  18150. int main() {
  18151. sched_yield()
  18152. ; return 0; }
  18153. EOF
  18154. if { (eval echo configure:18155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18155.   rm -rf conftest*
  18156.   eval "ac_cv_lib_$ac_lib_var=yes"
  18157. else
  18158.   echo "configure: failed program was:" >&5
  18159.   cat conftest.$ac_ext >&5
  18160.   rm -rf conftest*
  18161.   eval "ac_cv_lib_$ac_lib_var=no"
  18162. fi
  18163. rm -f conftest*
  18164. LIBS="$ac_save_LIBS"
  18165.  
  18166. fi
  18167. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  18168.   echo "$ac_t""yes" 1>&6
  18169.   cat >> confdefs.h <<\EOF
  18170. #define HAVE_SCHED_YIELD 1
  18171. EOF
  18172.  POSIX4_LINK=" -lposix4"
  18173. else
  18174.   echo "$ac_t""no" 1>&6
  18175. echo "configure: warning: wxThread::Yield will not work properly" 1>&2
  18176.                 
  18177. fi
  18178.  
  18179.             
  18180.           
  18181. fi
  18182.  
  18183.       fi
  18184.  
  18185.                                           HAVE_PRIOR_FUNCS=0
  18186.       echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
  18187. echo "configure:18188: checking for pthread_attr_getschedpolicy" >&5
  18188. if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
  18189.   echo $ac_n "(cached) $ac_c" 1>&6
  18190. else
  18191.   cat > conftest.$ac_ext <<EOF
  18192. #line 18193 "configure"
  18193. #include "confdefs.h"
  18194. /* System header to define __stub macros and hopefully few prototypes,
  18195.     which can conflict with char pthread_attr_getschedpolicy(); below.  */
  18196. #include <assert.h>
  18197. /* Override any gcc2 internal prototype to avoid an error.  */
  18198. /* We use char because int might match the return type of a gcc2
  18199.     builtin and then its argument prototype would still apply.  */
  18200. char pthread_attr_getschedpolicy();
  18201.  
  18202. int main() {
  18203.  
  18204. /* The GNU C library defines this for functions which it implements
  18205.     to always fail with ENOSYS.  Some functions are actually named
  18206.     something starting with __ and the normal name is an alias.  */
  18207. #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
  18208. choke me
  18209. #else
  18210. pthread_attr_getschedpolicy();
  18211. #endif
  18212.  
  18213. ; return 0; }
  18214. EOF
  18215. if { (eval echo configure:18216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18216.   rm -rf conftest*
  18217.   eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
  18218. else
  18219.   echo "configure: failed program was:" >&5
  18220.   cat conftest.$ac_ext >&5
  18221.   rm -rf conftest*
  18222.   eval "ac_cv_func_pthread_attr_getschedpolicy=no"
  18223. fi
  18224. rm -f conftest*
  18225. fi
  18226.  
  18227. if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
  18228.   echo "$ac_t""yes" 1>&6
  18229.   echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
  18230. echo "configure:18231: checking for pthread_attr_setschedparam" >&5
  18231. if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
  18232.   echo $ac_n "(cached) $ac_c" 1>&6
  18233. else
  18234.   cat > conftest.$ac_ext <<EOF
  18235. #line 18236 "configure"
  18236. #include "confdefs.h"
  18237. /* System header to define __stub macros and hopefully few prototypes,
  18238.     which can conflict with char pthread_attr_setschedparam(); below.  */
  18239. #include <assert.h>
  18240. /* Override any gcc2 internal prototype to avoid an error.  */
  18241. /* We use char because int might match the return type of a gcc2
  18242.     builtin and then its argument prototype would still apply.  */
  18243. char pthread_attr_setschedparam();
  18244.  
  18245. int main() {
  18246.  
  18247. /* The GNU C library defines this for functions which it implements
  18248.     to always fail with ENOSYS.  Some functions are actually named
  18249.     something starting with __ and the normal name is an alias.  */
  18250. #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
  18251. choke me
  18252. #else
  18253. pthread_attr_setschedparam();
  18254. #endif
  18255.  
  18256. ; return 0; }
  18257. EOF
  18258. if { (eval echo configure:18259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18259.   rm -rf conftest*
  18260.   eval "ac_cv_func_pthread_attr_setschedparam=yes"
  18261. else
  18262.   echo "configure: failed program was:" >&5
  18263.   cat conftest.$ac_ext >&5
  18264.   rm -rf conftest*
  18265.   eval "ac_cv_func_pthread_attr_setschedparam=no"
  18266. fi
  18267. rm -f conftest*
  18268. fi
  18269.  
  18270. if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
  18271.   echo "$ac_t""yes" 1>&6
  18272.   echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
  18273. echo "configure:18274: checking for sched_get_priority_max" >&5
  18274. if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
  18275.   echo $ac_n "(cached) $ac_c" 1>&6
  18276. else
  18277.   cat > conftest.$ac_ext <<EOF
  18278. #line 18279 "configure"
  18279. #include "confdefs.h"
  18280. /* System header to define __stub macros and hopefully few prototypes
  18281. else
  18282.   echo "$ac_t""no" 1>&6
  18283. which can conflict with char sched_get_priority_max(); below.  */
  18284. #include <assert.h>
  18285. /* Override any gcc2 internal prototype to avoid an error.  */
  18286. /* We use char because int might match the return type of a gcc2
  18287.     builtin and then its argument prototype would still apply.  */
  18288. char sched_get_priority_max();
  18289.  
  18290. int main() {
  18291.  
  18292. /* The GNU C library defines this for functions which it implements
  18293.     to always fail with ENOSYS.  Some functions are actually named
  18294.     something starting with __ and the normal name is an alias.  */
  18295. #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
  18296. choke me
  18297. #else
  18298. sched_get_priority_max();
  18299. #endif
  18300.  
  18301. ; return 0; }
  18302. EOF
  18303. if { (eval echo configure:18304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18304.   rm -rf conftest*
  18305.   eval "ac_cv_func_sched_get_priority_max=yes"
  18306. else
  18307.   echo "configure: failed program was:" >&5
  18308.   cat conftest.$ac_ext >&5
  18309.   rm -rf conftest*
  18310.   eval "ac_cv_func_sched_get_priority_max=no"
  18311. fi
  18312. rm -f conftest*
  18313. fi
  18314.  
  18315. if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
  18316.   echo "$ac_t""yes" 1>&6
  18317.   HAVE_PRIOR_FUNCS=1
  18318. else
  18319.   echo "$ac_t""no" 1>&6
  18320. echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
  18321. echo "configure:18322: checking for sched_get_priority_max in -lposix4" >&5
  18322. ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
  18323. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  18324.   echo $ac_n "(cached) $ac_c" 1>&6
  18325. else
  18326.   ac_save_LIBS="$LIBS"
  18327. LIBS="-lposix4  $LIBS"
  18328. cat > conftest.$ac_ext <<EOF
  18329. #line 18330 "configure"
  18330. #include "confdefs.h"
  18331. /* Override any gcc2 internal prototype to avoid an error.  */
  18332. /* We use char because int might match the return type of a gcc2
  18333.     builtin and then its argument prototype would still apply.  */
  18334. char sched_get_priority_max();
  18335.  
  18336. int main() {
  18337. sched_get_priority_max()
  18338. ; return 0; }
  18339. EOF
  18340. if { (eval echo configure:18341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18341.   rm -rf conftest*
  18342.   eval "ac_cv_lib_$ac_lib_var=yes"
  18343. else
  18344.   echo "configure: failed program was:" >&5
  18345.   cat conftest.$ac_ext >&5
  18346.   rm -rf conftest*
  18347.   eval "ac_cv_lib_$ac_lib_var=no"
  18348. fi
  18349. rm -f conftest*
  18350. LIBS="$ac_save_LIBS"
  18351.  
  18352. fi
  18353. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  18354.   echo "$ac_t""yes" 1>&6
  18355.   
  18356.                                 HAVE_PRIOR_FUNCS=1
  18357.                                 POSIX4_LINK=" -lposix4"
  18358.                              
  18359. else
  18360.   echo "$ac_t""no" 1>&6
  18361. fi
  18362.  
  18363.                        
  18364. fi
  18365.  
  18366.                      
  18367. else
  18368.   echo "$ac_t""no" 1>&6
  18369. fi
  18370.  
  18371.                    
  18372. fi
  18373.  
  18374.  
  18375.       if test "$HAVE_PRIOR_FUNCS" = 1; then
  18376.         cat >> confdefs.h <<\EOF
  18377. #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
  18378. EOF
  18379.  
  18380.       else
  18381.         echo "configure: warning: Setting thread priority will not work" 1>&2
  18382.       fi
  18383.  
  18384.       echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
  18385. echo "configure:18386: checking for pthread_cancel" >&5
  18386. if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
  18387.   echo $ac_n "(cached) $ac_c" 1>&6
  18388. else
  18389.   cat > conftest.$ac_ext <<EOF
  18390. #line 18391 "configure"
  18391. #include "confdefs.h"
  18392. /* System header to define __stub macros and hopefully few prototypes,
  18393.     which can conflict with char pthread_cancel(); below.  */
  18394. #include <assert.h>
  18395. /* Override any gcc2 internal prototype to avoid an error.  */
  18396. /* We use char because int might match the return type of a gcc2
  18397.     builtin and then its argument prototype would still apply.  */
  18398. char pthread_cancel();
  18399.  
  18400. int main() {
  18401.  
  18402. /* The GNU C library defines this for functions which it implements
  18403.     to always fail with ENOSYS.  Some functions are actually named
  18404.     something starting with __ and the normal name is an alias.  */
  18405. #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
  18406. choke me
  18407. #else
  18408. pthread_cancel();
  18409. #endif
  18410.  
  18411. ; return 0; }
  18412. EOF
  18413. if { (eval echo configure:18414: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18414.   rm -rf conftest*
  18415.   eval "ac_cv_func_pthread_cancel=yes"
  18416. else
  18417.   echo "configure: failed program was:" >&5
  18418.   cat conftest.$ac_ext >&5
  18419.   rm -rf conftest*
  18420.   eval "ac_cv_func_pthread_cancel=no"
  18421. fi
  18422. rm -f conftest*
  18423. fi
  18424.  
  18425. if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
  18426.   echo "$ac_t""yes" 1>&6
  18427.   cat >> confdefs.h <<\EOF
  18428. #define HAVE_PTHREAD_CANCEL 1
  18429. EOF
  18430.  
  18431. else
  18432.   echo "$ac_t""no" 1>&6
  18433. echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
  18434. fi
  18435.  
  18436.  
  18437.       echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
  18438. echo "configure:18439: checking for pthread_cleanup_push/pop" >&5
  18439. if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
  18440.   echo $ac_n "(cached) $ac_c" 1>&6
  18441. else
  18442.   
  18443.         cat > conftest.$ac_ext <<EOF
  18444. #line 18445 "configure"
  18445. #include "confdefs.h"
  18446. #include <pthread.h>
  18447. int main() {
  18448.  
  18449.                         pthread_cleanup_push(NULL, NULL);
  18450.                         pthread_cleanup_pop(0);
  18451.                      
  18452. ; return 0; }
  18453. EOF
  18454. if { (eval echo configure:18455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  18455.   rm -rf conftest*
  18456.   
  18457.                         wx_cv_func_pthread_cleanup_push=yes
  18458.                      
  18459. else
  18460.   echo "configure: failed program was:" >&5
  18461.   cat conftest.$ac_ext >&5
  18462.   rm -rf conftest*
  18463.   
  18464.                         wx_cv_func_pthread_cleanup_push=no
  18465.                      
  18466. fi
  18467. rm -f conftest*
  18468.       
  18469. fi
  18470.  
  18471. echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
  18472.  
  18473.       if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
  18474.           cat >> confdefs.h <<\EOF
  18475. #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
  18476. EOF
  18477.  
  18478.       fi
  18479.  
  18480.                                                 
  18481.       echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
  18482. echo "configure:18483: checking for pthread_mutexattr_t" >&5
  18483. if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
  18484.   echo $ac_n "(cached) $ac_c" 1>&6
  18485. else
  18486.   
  18487.         cat > conftest.$ac_ext <<EOF
  18488. #line 18489 "configure"
  18489. #include "confdefs.h"
  18490. #include <pthread.h>
  18491. int main() {
  18492.  
  18493.                pthread_mutexattr_t attr;
  18494.                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
  18495.             
  18496. ; return 0; }
  18497. EOF
  18498. if { (eval echo configure:18499: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  18499.   rm -rf conftest*
  18500.   
  18501.                wx_cv_type_pthread_mutexattr_t=yes
  18502.             
  18503. else
  18504.   echo "configure: failed program was:" >&5
  18505.   cat conftest.$ac_ext >&5
  18506.   rm -rf conftest*
  18507.   
  18508.                wx_cv_type_pthread_mutexattr_t=no
  18509.             
  18510.         
  18511. fi
  18512. rm -f conftest*
  18513.       
  18514. fi
  18515.  
  18516. echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
  18517.  
  18518.       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
  18519.         cat >> confdefs.h <<\EOF
  18520. #define HAVE_PTHREAD_MUTEXATTR_T 1
  18521. EOF
  18522.  
  18523.       else
  18524.                 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
  18525. echo "configure:18526: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
  18526. if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
  18527.   echo $ac_n "(cached) $ac_c" 1>&6
  18528. else
  18529.   
  18530.             cat > conftest.$ac_ext <<EOF
  18531. #line 18532 "configure"
  18532. #include "confdefs.h"
  18533. #include <pthread.h>
  18534. int main() {
  18535.  
  18536.                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
  18537.                 
  18538. ; return 0; }
  18539. EOF
  18540. if { (eval echo configure:18541: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  18541.   rm -rf conftest*
  18542.   
  18543.                     wx_cv_type_pthread_rec_mutex_init=yes
  18544.                 
  18545. else
  18546.   echo "configure: failed program was:" >&5
  18547.   cat conftest.$ac_ext >&5
  18548.   rm -rf conftest*
  18549.   
  18550.                     wx_cv_type_pthread_rec_mutex_init=no
  18551.                 
  18552.             
  18553. fi
  18554. rm -f conftest*
  18555.         
  18556. fi
  18557.  
  18558. echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
  18559.         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
  18560.           cat >> confdefs.h <<\EOF
  18561. #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
  18562. EOF
  18563.  
  18564.         else
  18565.                     echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
  18566.         fi
  18567.       fi
  18568.     fi
  18569.  
  18570. fi
  18571.  
  18572. if test "$wxUSE_THREADS" = "yes"; then
  18573.   cat >> confdefs.h <<\EOF
  18574. #define wxUSE_THREADS 1
  18575. EOF
  18576.  
  18577.  
  18578.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
  18579. else
  18580.       if test "$ac_cv_func_strtok_r" = "yes"; then
  18581.     echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
  18582. echo "configure:18583: checking if -D_REENTRANT is needed" >&5
  18583.     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
  18584.         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
  18585.         echo "$ac_t""yes" 1>&6
  18586.     else
  18587.         echo "$ac_t""no" 1>&6
  18588.     fi
  18589.   fi
  18590. fi
  18591.  
  18592. if test "$WXGTK20" = 1 ; then
  18593.   cat >> confdefs.h <<EOF
  18594. #define __WXGTK20__ $WXGTK20
  18595. EOF
  18596.  
  18597.   WXGTK12=1
  18598. fi
  18599.  
  18600. if test "$WXGTK12" = 1 ; then
  18601.   cat >> confdefs.h <<EOF
  18602. #define __WXGTK12__ $WXGTK12
  18603. EOF
  18604.  
  18605. fi
  18606.  
  18607. if test "$WXGTK127" = 1 ; then
  18608.   cat >> confdefs.h <<EOF
  18609. #define __WXGTK127__ $WXGTK127
  18610. EOF
  18611.  
  18612. fi
  18613.  
  18614. WXDEBUG=
  18615.  
  18616. if test "$wxUSE_DEBUG_INFO" = "yes" ; then
  18617.     WXDEBUG="-g"
  18618.     wxUSE_OPTIMISE=no
  18619. fi
  18620.  
  18621. if test "$wxUSE_DEBUG_GDB" = "yes" ; then
  18622.     wxUSE_DEBUG_INFO=yes
  18623.     WXDEBUG="-ggdb"
  18624. fi
  18625.  
  18626. if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
  18627.     cat >> confdefs.h <<\EOF
  18628. #define WXDEBUG 1
  18629. EOF
  18630.  
  18631.     WXDEBUG_DEFINE="-D__WXDEBUG__"
  18632. else
  18633.     if test "$wxUSE_GTK" = 1 ; then
  18634.         WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
  18635.     fi
  18636. fi
  18637.  
  18638. if test "$wxUSE_MEM_TRACING" = "yes" ; then
  18639.     cat >> confdefs.h <<\EOF
  18640. #define wxUSE_MEMORY_TRACING 1
  18641. EOF
  18642.  
  18643.     cat >> confdefs.h <<\EOF
  18644. #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
  18645. EOF
  18646.  
  18647.     cat >> confdefs.h <<\EOF
  18648. #define wxUSE_DEBUG_NEW_ALWAYS 1
  18649. EOF
  18650.  
  18651.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
  18652. fi
  18653.  
  18654. if test "$wxUSE_DMALLOC" = "yes" ; then
  18655.     DMALLOC_LIBS="-ldmalloc"
  18656. fi
  18657.  
  18658. PROFILE=
  18659. if test "$wxUSE_PROFILE" = "yes" ; then
  18660.     PROFILE=" -pg"
  18661. fi
  18662.  
  18663. CODE_GEN_FLAGS=
  18664. CODE_GEN_FLAGS_CXX=
  18665. if test "$GCC" = "yes" ; then
  18666.     if test "$wxUSE_NO_RTTI" = "yes" ; then
  18667.         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
  18668.     fi
  18669.     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
  18670.         CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
  18671.     fi
  18672.     if test "$wxUSE_PERMISSIVE" = "yes" ; then
  18673.         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
  18674.     fi
  18675.     if test "$USE_WIN32" = 1 ; then
  18676.         # I'm not even really sure what this was ever added to solve,
  18677.         # but someone added it for mingw native builds, so I guess
  18678.         # they had a reason, right??
  18679.         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
  18680.     fi
  18681.  
  18682.                             case "${host}" in
  18683.       powerpc*-*-aix* )
  18684.         CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
  18685.         ;;
  18686.     esac
  18687. fi
  18688.  
  18689. if test "$wxUSE_OPTIMISE" = "no" ; then
  18690.     OPTIMISE=
  18691. else
  18692.     if test "$GCC" = yes ; then
  18693.         OPTIMISE="-O2"
  18694.         case "${host}" in
  18695.             i586-*-*|i686-*-* )
  18696.             OPTIMISE="${OPTIMISE} "
  18697.         ;;
  18698.         esac
  18699.     else
  18700.         OPTIMISE="-O"
  18701.     fi
  18702. fi
  18703.  
  18704. if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
  18705.     cat >> confdefs.h <<\EOF
  18706. #define WXWIN_COMPATIBILITY_2 1
  18707. EOF
  18708.  
  18709.  
  18710.     WXWIN_COMPATIBILITY_2_2="yes"
  18711. fi
  18712.  
  18713. if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
  18714.     cat >> confdefs.h <<\EOF
  18715. #define WXWIN_COMPATIBILITY_2_2 1
  18716. EOF
  18717.  
  18718. fi
  18719.  
  18720.  
  18721. if test "$wxUSE_GUI" = "yes"; then
  18722.   cat >> confdefs.h <<\EOF
  18723. #define wxUSE_GUI 1
  18724. EOF
  18725.  
  18726.  
  18727.                       else
  18728.   cat >> confdefs.h <<\EOF
  18729. #define wxUSE_NOGUI 1
  18730. EOF
  18731.  
  18732. fi
  18733.  
  18734.  
  18735. if test "$wxUSE_UNIX" = "yes"; then
  18736.   cat >> confdefs.h <<\EOF
  18737. #define wxUSE_UNIX 1
  18738. EOF
  18739.  
  18740. fi
  18741.  
  18742.  
  18743. if test "$wxUSE_APPLE_IEEE" = "yes"; then
  18744.   cat >> confdefs.h <<\EOF
  18745. #define wxUSE_APPLE_IEEE 1
  18746. EOF
  18747.  
  18748. fi
  18749.  
  18750. if test "$wxUSE_TIMER" = "yes"; then
  18751.   cat >> confdefs.h <<\EOF
  18752. #define wxUSE_TIMER 1
  18753. EOF
  18754.  
  18755. fi
  18756.  
  18757. if test "$wxUSE_WAVE" = "yes"; then
  18758.   cat >> confdefs.h <<\EOF
  18759. #define wxUSE_WAVE 1
  18760. EOF
  18761.  
  18762. fi
  18763.  
  18764. if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
  18765.   cat >> confdefs.h <<\EOF
  18766. #define wxUSE_CMDLINE_PARSER 1
  18767. EOF
  18768.  
  18769. fi
  18770.  
  18771. if test "$wxUSE_STOPWATCH" = "yes"; then
  18772.   cat >> confdefs.h <<\EOF
  18773. #define wxUSE_STOPWATCH 1
  18774. EOF
  18775.  
  18776. fi
  18777.  
  18778. if test "$wxUSE_DATETIME" = "yes"; then
  18779.   cat >> confdefs.h <<\EOF
  18780. #define wxUSE_DATETIME 1
  18781. EOF
  18782.  
  18783. fi
  18784.  
  18785. if test "$wxUSE_TIMEDATE" = "yes"; then
  18786.   cat >> confdefs.h <<\EOF
  18787. #define wxUSE_TIMEDATE 1
  18788. EOF
  18789.  
  18790. fi
  18791.  
  18792. if test "$wxUSE_FILE" = "yes"; then
  18793.   cat >> confdefs.h <<\EOF
  18794. #define wxUSE_FILE 1
  18795. EOF
  18796.  
  18797. fi
  18798.  
  18799. if test "$wxUSE_FFILE" = "yes"; then
  18800.   cat >> confdefs.h <<\EOF
  18801. #define wxUSE_FFILE 1
  18802. EOF
  18803.  
  18804. fi
  18805.  
  18806. if test "$wxUSE_FILESYSTEM" = "yes"; then
  18807.   cat >> confdefs.h <<\EOF
  18808. #define wxUSE_FILESYSTEM 1
  18809. EOF
  18810.  
  18811. fi
  18812.  
  18813. if test "$wxUSE_FS_INET" = "yes"; then
  18814.   cat >> confdefs.h <<\EOF
  18815. #define wxUSE_FS_INET 1
  18816. EOF
  18817.  
  18818. fi
  18819.  
  18820. if test "$wxUSE_FS_ZIP" = "yes"; then
  18821.   cat >> confdefs.h <<\EOF
  18822. #define wxUSE_FS_ZIP 1
  18823. EOF
  18824.  
  18825. fi
  18826.  
  18827. if test "$wxUSE_ZIPSTREAM" = "yes"; then
  18828.   cat >> confdefs.h <<\EOF
  18829. #define wxUSE_ZIPSTREAM 1
  18830. EOF
  18831.  
  18832. fi
  18833.  
  18834. if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
  18835.   cat >> confdefs.h <<\EOF
  18836. #define wxUSE_ON_FATAL_EXCEPTION 1
  18837. EOF
  18838.  
  18839. fi
  18840.  
  18841. if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
  18842.   cat >> confdefs.h <<\EOF
  18843. #define wxUSE_SNGLINST_CHECKER 1
  18844. EOF
  18845.  
  18846. fi
  18847.  
  18848. if test "$wxUSE_BUSYINFO" = "yes"; then
  18849.   cat >> confdefs.h <<\EOF
  18850. #define wxUSE_BUSYINFO 1
  18851. EOF
  18852.  
  18853. fi
  18854.  
  18855. if test "$wxUSE_STD_IOSTREAM" = "yes"; then
  18856.   cat >> confdefs.h <<\EOF
  18857. #define wxUSE_STD_IOSTREAM 1
  18858. EOF
  18859.  
  18860. fi
  18861.  
  18862. if test "$wxUSE_TEXTBUFFER" = "yes"; then
  18863.     cat >> confdefs.h <<\EOF
  18864. #define wxUSE_TEXTBUFFER 1
  18865. EOF
  18866.  
  18867. fi
  18868.  
  18869. if test "$wxUSE_TEXTFILE" = "yes"; then
  18870.   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
  18871.     echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
  18872.   else
  18873.     cat >> confdefs.h <<\EOF
  18874. #define wxUSE_TEXTFILE 1
  18875. EOF
  18876.  
  18877.   fi
  18878. fi
  18879.  
  18880. if test "$wxUSE_CONFIG" = "yes" ; then
  18881.   if test "$wxUSE_TEXTFILE" != "yes"; then
  18882.     echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
  18883.   else
  18884.     cat >> confdefs.h <<\EOF
  18885. #define wxUSE_CONFIG 1
  18886. EOF
  18887.  
  18888.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
  18889.   fi
  18890. fi
  18891.  
  18892. if test "$wxUSE_INTL" = "yes" ; then
  18893.   if test "$wxUSE_FILE" != "yes"; then
  18894.     echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
  18895.   else
  18896.     cat >> confdefs.h <<\EOF
  18897. #define wxUSE_INTL 1
  18898. EOF
  18899.  
  18900.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
  18901.     GUIDIST="$GUIDIST INTL_DIST"
  18902.   fi
  18903. fi
  18904.  
  18905. if test "$wxUSE_LOG" = "yes"; then
  18906.   cat >> confdefs.h <<\EOF
  18907. #define wxUSE_LOG 1
  18908. EOF
  18909.  
  18910.  
  18911.     if test "$wxUSE_LOGGUI" = "yes"; then
  18912.       cat >> confdefs.h <<\EOF
  18913. #define wxUSE_LOGGUI 1
  18914. EOF
  18915.  
  18916.     fi
  18917.  
  18918.     if test "$wxUSE_LOGWINDOW" = "yes"; then
  18919.       cat >> confdefs.h <<\EOF
  18920. #define wxUSE_LOGWINDOW 1
  18921. EOF
  18922.  
  18923.     fi
  18924.  
  18925.     if test "$wxUSE_LOGDIALOG" = "yes"; then
  18926.       cat >> confdefs.h <<\EOF
  18927. #define wxUSE_LOG_DIALOG 1
  18928. EOF
  18929.  
  18930.     fi
  18931. fi
  18932.  
  18933. if test "$wxUSE_LONGLONG" = "yes"; then
  18934.   cat >> confdefs.h <<\EOF
  18935. #define wxUSE_LONGLONG 1
  18936. EOF
  18937.  
  18938. fi
  18939.  
  18940. if test "$wxUSE_GEOMETRY" = "yes"; then
  18941.   cat >> confdefs.h <<\EOF
  18942. #define wxUSE_GEOMETRY 1
  18943. EOF
  18944.  
  18945. fi
  18946.  
  18947. if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
  18948.   cat >> confdefs.h <<\EOF
  18949. #define wxUSE_DIALUP_MANAGER 1
  18950. EOF
  18951.  
  18952.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
  18953. fi
  18954.  
  18955. if test "$wxUSE_STREAMS" = "yes" ; then
  18956.   cat >> confdefs.h <<\EOF
  18957. #define wxUSE_STREAMS 1
  18958. EOF
  18959.  
  18960. fi
  18961.  
  18962.  
  18963. if test "$wxUSE_DATETIME" = "yes"; then
  18964.         for ac_func in strptime
  18965. do
  18966. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  18967. echo "configure:18968: checking for $ac_func" >&5
  18968. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  18969.   echo $ac_n "(cached) $ac_c" 1>&6
  18970. else
  18971.   cat > conftest.$ac_ext <<EOF
  18972. #line 18973 "configure"
  18973. #include "confdefs.h"
  18974. /* System header to define __stub macros and hopefully few prototypes,
  18975.     which can conflict with char $ac_func(); below.  */
  18976. #include <assert.h>
  18977. /* Override any gcc2 internal prototype to avoid an error.  */
  18978. /* We use char because int might match the return type of a gcc2
  18979.     builtin and then its argument prototype would still apply.  */
  18980. char $ac_func();
  18981.  
  18982. int main() {
  18983.  
  18984. /* The GNU C library defines this for functions which it implements
  18985.     to always fail with ENOSYS.  Some functions are actually named
  18986.     something starting with __ and the normal name is an alias.  */
  18987. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  18988. choke me
  18989. #else
  18990. $ac_func();
  18991. #endif
  18992.  
  18993. ; return 0; }
  18994. EOF
  18995. if { (eval echo configure:18996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  18996.   rm -rf conftest*
  18997.   eval "ac_cv_func_$ac_func=yes"
  18998. else
  18999.   echo "configure: failed program was:" >&5
  19000.   cat conftest.$ac_ext >&5
  19001.   rm -rf conftest*
  19002.   eval "ac_cv_func_$ac_func=no"
  19003. fi
  19004. rm -f conftest*
  19005. fi
  19006.  
  19007. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  19008.   echo "$ac_t""yes" 1>&6
  19009.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  19010.   cat >> confdefs.h <<EOF
  19011. #define $ac_tr_func 1
  19012. EOF
  19013.  
  19014. else
  19015.   echo "$ac_t""no" 1>&6
  19016. fi
  19017. done
  19018.  
  19019.  
  19020.             echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
  19021. echo "configure:19022: checking for timezone variable in <time.h>" >&5
  19022. if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
  19023.   echo $ac_n "(cached) $ac_c" 1>&6
  19024. else
  19025.   
  19026.                         cat > conftest.$ac_ext <<EOF
  19027. #line 19028 "configure"
  19028. #include "confdefs.h"
  19029.  
  19030.                                 #include <time.h>
  19031.                             
  19032. int main() {
  19033.  
  19034.                                 int tz;
  19035.                                 tz = timezone;
  19036.                             
  19037. ; return 0; }
  19038. EOF
  19039. if { (eval echo configure:19040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19040.   rm -rf conftest*
  19041.   
  19042.                                 wx_cv_var_timezone=timezone
  19043.                             
  19044. else
  19045.   echo "configure: failed program was:" >&5
  19046.   cat conftest.$ac_ext >&5
  19047.   rm -rf conftest*
  19048.   
  19049.                                 cat > conftest.$ac_ext <<EOF
  19050. #line 19051 "configure"
  19051. #include "confdefs.h"
  19052.  
  19053.                                         #include <time.h>
  19054.                                     
  19055. int main() {
  19056.  
  19057.                                         int tz;
  19058.                                         tz = _timezone;
  19059.                                     
  19060. ; return 0; }
  19061. EOF
  19062. if { (eval echo configure:19063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19063.   rm -rf conftest*
  19064.   
  19065.                                         wx_cv_var_timezone=_timezone
  19066.                                     
  19067. else
  19068.   echo "configure: failed program was:" >&5
  19069.   cat conftest.$ac_ext >&5
  19070.   rm -rf conftest*
  19071.   
  19072.                                         cat > conftest.$ac_ext <<EOF
  19073. #line 19074 "configure"
  19074. #include "confdefs.h"
  19075.  
  19076.                                                 #include <time.h>
  19077.                                             
  19078. int main() {
  19079.  
  19080.                                                 int tz;
  19081.                                                 tz = __timezone;
  19082.                                             
  19083. ; return 0; }
  19084. EOF
  19085. if { (eval echo configure:19086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19086.   rm -rf conftest*
  19087.   
  19088.                                                 wx_cv_var_timezone=__timezone
  19089.                                             
  19090. else
  19091.   echo "configure: failed program was:" >&5
  19092.   cat conftest.$ac_ext >&5
  19093.   rm -rf conftest*
  19094.   
  19095.                                                 if test "$USE_DOS" = 0 ; then
  19096.                                                     echo "configure: warning: no timezone variable" 1>&2
  19097.                                                 fi
  19098.                                             
  19099.                                         
  19100. fi
  19101. rm -f conftest*
  19102.                                     
  19103.                                 
  19104. fi
  19105. rm -f conftest*
  19106.                             
  19107.                         
  19108. fi
  19109. rm -f conftest*
  19110.                    
  19111.     
  19112. fi
  19113.  
  19114. echo "$ac_t""$wx_cv_var_timezone" 1>&6
  19115.  
  19116.         if test "x$wx_cv_var_timezone" != x ; then
  19117.         cat >> confdefs.h <<EOF
  19118. #define WX_TIMEZONE $wx_cv_var_timezone
  19119. EOF
  19120.  
  19121.     fi
  19122.  
  19123.         for ac_func in localtime
  19124. do
  19125. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  19126. echo "configure:19127: checking for $ac_func" >&5
  19127. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  19128.   echo $ac_n "(cached) $ac_c" 1>&6
  19129. else
  19130.   cat > conftest.$ac_ext <<EOF
  19131. #line 19132 "configure"
  19132. #include "confdefs.h"
  19133. /* System header to define __stub macros and hopefully few prototypes,
  19134.     which can conflict with char $ac_func(); below.  */
  19135. #include <assert.h>
  19136. /* Override any gcc2 internal prototype to avoid an error.  */
  19137. /* We use char because int might match the return type of a gcc2
  19138.     builtin and then its argument prototype would still apply.  */
  19139. char $ac_func();
  19140.  
  19141. int main() {
  19142.  
  19143. /* The GNU C library defines this for functions which it implements
  19144.     to always fail with ENOSYS.  Some functions are actually named
  19145.     something starting with __ and the normal name is an alias.  */
  19146. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19147. choke me
  19148. #else
  19149. $ac_func();
  19150. #endif
  19151.  
  19152. ; return 0; }
  19153. EOF
  19154. if { (eval echo configure:19155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19155.   rm -rf conftest*
  19156.   eval "ac_cv_func_$ac_func=yes"
  19157. else
  19158.   echo "configure: failed program was:" >&5
  19159.   cat conftest.$ac_ext >&5
  19160.   rm -rf conftest*
  19161.   eval "ac_cv_func_$ac_func=no"
  19162. fi
  19163. rm -f conftest*
  19164. fi
  19165.  
  19166. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  19167.   echo "$ac_t""yes" 1>&6
  19168.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  19169.   cat >> confdefs.h <<EOF
  19170. #define $ac_tr_func 1
  19171. EOF
  19172.  
  19173. else
  19174.   echo "$ac_t""no" 1>&6
  19175. fi
  19176. done
  19177.  
  19178.  
  19179.     if test "$ac_cv_func_localtime" = "yes"; then
  19180.         echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
  19181. echo "configure:19182: checking for tm_gmtoff in struct tm" >&5
  19182. if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
  19183.   echo $ac_n "(cached) $ac_c" 1>&6
  19184. else
  19185.   
  19186.             cat > conftest.$ac_ext <<EOF
  19187. #line 19188 "configure"
  19188. #include "confdefs.h"
  19189.  
  19190.                     #include <time.h>
  19191.                 
  19192. int main() {
  19193.  
  19194.                     struct tm tm;
  19195.                     tm.tm_gmtoff++;
  19196.                 
  19197. ; return 0; }
  19198. EOF
  19199. if { (eval echo configure:19200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19200.   rm -rf conftest*
  19201.   
  19202.                     wx_cv_struct_tm_has_gmtoff=yes
  19203.                 
  19204. else
  19205.   echo "configure: failed program was:" >&5
  19206.   cat conftest.$ac_ext >&5
  19207.   rm -rf conftest*
  19208.   wx_cv_struct_tm_has_gmtoff=no
  19209.             
  19210. fi
  19211. rm -f conftest*
  19212.         
  19213. fi
  19214.  
  19215. echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
  19216.     fi
  19217.  
  19218.     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
  19219.         cat >> confdefs.h <<\EOF
  19220. #define WX_GMTOFF_IN_TM 1
  19221. EOF
  19222.  
  19223.     fi
  19224.  
  19225.             for ac_func in gettimeofday ftime
  19226. do
  19227. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  19228. echo "configure:19229: checking for $ac_func" >&5
  19229. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  19230.   echo $ac_n "(cached) $ac_c" 1>&6
  19231. else
  19232.   cat > conftest.$ac_ext <<EOF
  19233. #line 19234 "configure"
  19234. #include "confdefs.h"
  19235. /* System header to define __stub macros and hopefully few prototypes,
  19236.     which can conflict with char $ac_func(); below.  */
  19237. #include <assert.h>
  19238. /* Override any gcc2 internal prototype to avoid an error.  */
  19239. /* We use char because int might match the return type of a gcc2
  19240.     builtin and then its argument prototype would still apply.  */
  19241. char $ac_func();
  19242.  
  19243. int main() {
  19244.  
  19245. /* The GNU C library defines this for functions which it implements
  19246.     to always fail with ENOSYS.  Some functions are actually named
  19247.     something starting with __ and the normal name is an alias.  */
  19248. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19249. choke me
  19250. #else
  19251. $ac_func();
  19252. #endif
  19253.  
  19254. ; return 0; }
  19255. EOF
  19256. if { (eval echo configure:19257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19257.   rm -rf conftest*
  19258.   eval "ac_cv_func_$ac_func=yes"
  19259. else
  19260.   echo "configure: failed program was:" >&5
  19261.   cat conftest.$ac_ext >&5
  19262.   rm -rf conftest*
  19263.   eval "ac_cv_func_$ac_func=no"
  19264. fi
  19265. rm -f conftest*
  19266. fi
  19267.  
  19268. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  19269.   echo "$ac_t""yes" 1>&6
  19270.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  19271.   cat >> confdefs.h <<EOF
  19272. #define $ac_tr_func 1
  19273. EOF
  19274.  break
  19275. else
  19276.   echo "$ac_t""no" 1>&6
  19277. fi
  19278. done
  19279.  
  19280.  
  19281.     if test "$ac_cv_func_gettimeofday" = "yes"; then
  19282.         echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
  19283. echo "configure:19284: checking whether gettimeofday takes two arguments" >&5
  19284. if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
  19285.   echo $ac_n "(cached) $ac_c" 1>&6
  19286. else
  19287.   
  19288.                         
  19289.             ac_ext=C
  19290. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  19291. ac_cpp='$CXXCPP $CPPFLAGS'
  19292. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  19293. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  19294. cross_compiling=$ac_cv_prog_cxx_cross
  19295.  
  19296.  
  19297.             cat > conftest.$ac_ext <<EOF
  19298. #line 19299 "configure"
  19299. #include "confdefs.h"
  19300.  
  19301.                     #include <sys/time.h>
  19302.                     #include <unistd.h>
  19303.                 
  19304. int main() {
  19305.  
  19306.                     struct timeval tv;
  19307.                     gettimeofday(&tv, NULL);
  19308.                 
  19309. ; return 0; }
  19310. EOF
  19311. if { (eval echo configure:19312: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19312.   rm -rf conftest*
  19313.   wx_cv_func_gettimeofday_has_2_args=yes
  19314. else
  19315.   echo "configure: failed program was:" >&5
  19316.   cat conftest.$ac_ext >&5
  19317.   rm -rf conftest*
  19318.   cat > conftest.$ac_ext <<EOF
  19319. #line 19320 "configure"
  19320. #include "confdefs.h"
  19321.  
  19322.                         #include <sys/time.h>
  19323.                         #include <unistd.h>
  19324.                     
  19325. int main() {
  19326.  
  19327.                         struct timeval tv;
  19328.                         gettimeofday(&tv);
  19329.                     
  19330. ; return 0; }
  19331. EOF
  19332. if { (eval echo configure:19333: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19333.   rm -rf conftest*
  19334.   wx_cv_func_gettimeofday_has_2_args=no
  19335. else
  19336.   echo "configure: failed program was:" >&5
  19337.   cat conftest.$ac_ext >&5
  19338.   rm -rf conftest*
  19339.   
  19340.                         echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
  19341.                         wx_cv_func_gettimeofday_has_2_args=unknown
  19342.                     
  19343.                 
  19344. fi
  19345. rm -f conftest*
  19346.             
  19347. fi
  19348. rm -f conftest*
  19349.             ac_ext=c
  19350. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  19351. ac_cpp='$CPP $CPPFLAGS'
  19352. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  19353. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  19354. cross_compiling=$ac_cv_prog_cc_cross
  19355.  
  19356.         
  19357. fi
  19358.  
  19359. echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
  19360.  
  19361.         if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
  19362.             cat >> confdefs.h <<\EOF
  19363. #define WX_GETTIMEOFDAY_NO_TZ 1
  19364. EOF
  19365.  
  19366.         fi
  19367.     fi
  19368.  
  19369.     cat >> confdefs.h <<\EOF
  19370. #define wxUSE_TIMEDATE 1
  19371. EOF
  19372.  
  19373.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
  19374. fi
  19375.  
  19376.  
  19377. if test "$wxUSE_SOCKETS" = "yes"; then
  19378.     if test "$wxUSE_MGL" = "1"; then
  19379.         echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
  19380.         wxUSE_SOCKETS="no"
  19381.     fi
  19382. fi
  19383.  
  19384. if test "$wxUSE_SOCKETS" = "yes"; then
  19385.         if test "$TOOLKIT" != "MSW"; then
  19386.                 echo $ac_n "checking for socket""... $ac_c" 1>&6
  19387. echo "configure:19388: checking for socket" >&5
  19388. if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
  19389.   echo $ac_n "(cached) $ac_c" 1>&6
  19390. else
  19391.   cat > conftest.$ac_ext <<EOF
  19392. #line 19393 "configure"
  19393. #include "confdefs.h"
  19394. /* System header to define __stub macros and hopefully few prototypes,
  19395.     which can conflict with char socket(); below.  */
  19396. #include <assert.h>
  19397. /* Override any gcc2 internal prototype to avoid an error.  */
  19398. /* We use char because int might match the return type of a gcc2
  19399.     builtin and then its argument prototype would still apply.  */
  19400. char socket();
  19401.  
  19402. int main() {
  19403.  
  19404. /* The GNU C library defines this for functions which it implements
  19405.     to always fail with ENOSYS.  Some functions are actually named
  19406.     something starting with __ and the normal name is an alias.  */
  19407. #if defined (__stub_socket) || defined (__stub___socket)
  19408. choke me
  19409. #else
  19410. socket();
  19411. #endif
  19412.  
  19413. ; return 0; }
  19414. EOF
  19415. if { (eval echo configure:19416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19416.   rm -rf conftest*
  19417.   eval "ac_cv_func_socket=yes"
  19418. else
  19419.   echo "configure: failed program was:" >&5
  19420.   cat conftest.$ac_ext >&5
  19421.   rm -rf conftest*
  19422.   eval "ac_cv_func_socket=no"
  19423. fi
  19424. rm -f conftest*
  19425. fi
  19426.  
  19427. if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
  19428.   echo "$ac_t""yes" 1>&6
  19429.   :
  19430. else
  19431.   echo "$ac_t""no" 1>&6
  19432. echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
  19433. echo "configure:19434: checking for socket in -lsocket" >&5
  19434. ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
  19435. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  19436.   echo $ac_n "(cached) $ac_c" 1>&6
  19437. else
  19438.   ac_save_LIBS="$LIBS"
  19439. LIBS="-lsocket  $LIBS"
  19440. cat > conftest.$ac_ext <<EOF
  19441. #line 19442 "configure"
  19442. #include "confdefs.h"
  19443. /* Override any gcc2 internal prototype to avoid an error.  */
  19444. /* We use char because int might match the return type of a gcc2
  19445.     builtin and then its argument prototype would still apply.  */
  19446. char socket();
  19447.  
  19448. int main() {
  19449. socket()
  19450. ; return 0; }
  19451. EOF
  19452. if { (eval echo configure:19453: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19453.   rm -rf conftest*
  19454.   eval "ac_cv_lib_$ac_lib_var=yes"
  19455. else
  19456.   echo "configure: failed program was:" >&5
  19457.   cat conftest.$ac_ext >&5
  19458.   rm -rf conftest*
  19459.   eval "ac_cv_lib_$ac_lib_var=no"
  19460. fi
  19461. rm -f conftest*
  19462. LIBS="$ac_save_LIBS"
  19463.  
  19464. fi
  19465. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  19466.   echo "$ac_t""yes" 1>&6
  19467.   if test "$INET_LINK" != " -lsocket"; then
  19468.                     INET_LINK="$INET_LINK -lsocket"
  19469.                 fi
  19470. else
  19471.   echo "$ac_t""no" 1>&6
  19472.  
  19473.                     echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
  19474.                     wxUSE_SOCKETS=no
  19475.                 
  19476.             
  19477. fi
  19478.  
  19479.         
  19480. fi
  19481.  
  19482.     fi
  19483. fi
  19484.  
  19485. if test "$wxUSE_SOCKETS" = "yes" ; then
  19486.                 if test "$TOOLKIT" != "MSW"; then
  19487.                 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
  19488. echo "configure:19489: checking what is the type of the third argument of getsockname" >&5
  19489. if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
  19490.   echo $ac_n "(cached) $ac_c" 1>&6
  19491. else
  19492.   
  19493.                 
  19494.                 ac_ext=C
  19495. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  19496. ac_cpp='$CXXCPP $CPPFLAGS'
  19497. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  19498. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  19499. cross_compiling=$ac_cv_prog_cxx_cross
  19500.  
  19501.  
  19502.                 cat > conftest.$ac_ext <<EOF
  19503. #line 19504 "configure"
  19504. #include "confdefs.h"
  19505.  
  19506.                         #include <sys/types.h>
  19507.                         #include <sys/socket.h>
  19508.                     
  19509. int main() {
  19510.  
  19511.                         socklen_t len;
  19512.                         getsockname(0, 0, &len);
  19513.                     
  19514. ; return 0; }
  19515. EOF
  19516. if { (eval echo configure:19517: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19517.   rm -rf conftest*
  19518.   wx_cv_type_getsockname3=socklen_t
  19519. else
  19520.   echo "configure: failed program was:" >&5
  19521.   cat conftest.$ac_ext >&5
  19522.   rm -rf conftest*
  19523.   cat > conftest.$ac_ext <<EOF
  19524. #line 19525 "configure"
  19525. #include "confdefs.h"
  19526.  
  19527.                             #include <sys/types.h>
  19528.                             #include <sys/socket.h>
  19529.                         
  19530. int main() {
  19531.  
  19532.                             size_t len;
  19533.                             getsockname(0, 0, &len);
  19534.                         
  19535. ; return 0; }
  19536. EOF
  19537. if { (eval echo configure:19538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19538.   rm -rf conftest*
  19539.   wx_cv_type_getsockname3=size_t
  19540. else
  19541.   echo "configure: failed program was:" >&5
  19542.   cat conftest.$ac_ext >&5
  19543.   rm -rf conftest*
  19544.   cat > conftest.$ac_ext <<EOF
  19545. #line 19546 "configure"
  19546. #include "confdefs.h"
  19547.  
  19548.                                 #include <sys/types.h>
  19549.                                 #include <sys/socket.h>
  19550.                             
  19551. int main() {
  19552.  
  19553.                                 int len;
  19554.                                 getsockname(0, 0, &len);
  19555.                             
  19556. ; return 0; }
  19557. EOF
  19558. if { (eval echo configure:19559: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  19559.   rm -rf conftest*
  19560.   wx_cv_type_getsockname3=int
  19561. else
  19562.   echo "configure: failed program was:" >&5
  19563.   cat conftest.$ac_ext >&5
  19564.   rm -rf conftest*
  19565.   wx_cv_type_getsockname3=unknown
  19566.                         
  19567. fi
  19568. rm -f conftest*
  19569.                     
  19570. fi
  19571. rm -f conftest*
  19572.                 
  19573. fi
  19574. rm -f conftest*
  19575.  
  19576.                 ac_ext=c
  19577. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  19578. ac_cpp='$CPP $CPPFLAGS'
  19579. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  19580. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  19581. cross_compiling=$ac_cv_prog_cc_cross
  19582.  
  19583.             
  19584. fi
  19585.  
  19586. echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
  19587.  
  19588.         if test "$wx_cv_type_getsockname3" = "unknown"; then
  19589.             wxUSE_SOCKETS=no
  19590.             echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
  19591.         else
  19592.             cat >> confdefs.h <<EOF
  19593. #define SOCKLEN_T $wx_cv_type_getsockname3
  19594. EOF
  19595.  
  19596.         fi
  19597.     fi
  19598. fi
  19599.  
  19600. if test "$wxUSE_SOCKETS" = "yes" ; then
  19601.     cat >> confdefs.h <<\EOF
  19602. #define wxUSE_SOCKETS 1
  19603. EOF
  19604.  
  19605.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
  19606. fi
  19607.  
  19608.  
  19609. if test "$wxUSE_GUI" = "yes"; then
  19610.  
  19611.     if test "$TOOLKIT" = "MAC"; then
  19612.         echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
  19613.         wxUSE_JOYSTICK=no
  19614.      fi
  19615.     if test "$TOOLKIT" = "MOTIF"; then
  19616.         echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
  19617.         wxUSE_JOYSTICK=no
  19618.      fi
  19619.     if test "$TOOLKIT" = "X11"; then
  19620.         echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
  19621.         wxUSE_JOYSTICK=no
  19622.      fi
  19623.  
  19624.         if test "$TOOLKIT" != "MSW"; then
  19625.         if test "$wxUSE_JOYSTICK" = "yes"; then
  19626.                         for ac_hdr in linux/joystick.h
  19627. do
  19628. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  19629. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  19630. echo "configure:19631: checking for $ac_hdr" >&5
  19631. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  19632.   echo $ac_n "(cached) $ac_c" 1>&6
  19633. else
  19634.   cat > conftest.$ac_ext <<EOF
  19635. #include <sys/types.h>
  19636. #line 19637 "configure"
  19637. #include "confdefs.h"
  19638. #include <$ac_hdr>
  19639. EOF
  19640. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  19641. { (eval echo configure:19642: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  19642. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  19643. if test -z "$ac_err"; then
  19644.   rm -rf conftest*
  19645.   eval "ac_cv_header_$ac_safe=yes"
  19646. else
  19647.   echo "$ac_err" >&5
  19648.   echo "configure: failed program was:" >&5
  19649.   cat conftest.$ac_ext >&5
  19650.   rm -rf conftest*
  19651.   eval "ac_cv_header_$ac_safe=no"
  19652. fi
  19653. rm -f conftest*
  19654. fi
  19655. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  19656.   echo "$ac_t""yes" 1>&6
  19657.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  19658.   cat >> confdefs.h <<EOF
  19659. #define $ac_tr_hdr 1
  19660. EOF
  19661.  
  19662. else
  19663.   echo "$ac_t""no" 1>&6
  19664. fi
  19665. done
  19666.  
  19667.             if test "$ac_cv_header_linux_joystick_h" != "yes"; then
  19668.                 wxUSE_JOYSTICK=no
  19669.                 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
  19670.             fi
  19671.         fi
  19672.     fi
  19673.  
  19674.     if test "$wxUSE_JOYSTICK" = "yes"; then
  19675.         cat >> confdefs.h <<\EOF
  19676. #define wxUSE_JOYSTICK 1
  19677. EOF
  19678.  
  19679.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
  19680.     fi
  19681. fi
  19682.  
  19683.  
  19684. if test "$TOOLKIT" != "MSW"; then
  19685.  
  19686.     HAVE_DL_FUNCS=0
  19687.     HAVE_SHL_FUNCS=0
  19688.     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
  19689.         if test "$USE_DARWIN" = 1; then
  19690.                         HAVE_DL_FUNCS=1
  19691.         else
  19692.                                                 for ac_func in dlopen
  19693. do
  19694. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  19695. echo "configure:19696: checking for $ac_func" >&5
  19696. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  19697.   echo $ac_n "(cached) $ac_c" 1>&6
  19698. else
  19699.   cat > conftest.$ac_ext <<EOF
  19700. #line 19701 "configure"
  19701. #include "confdefs.h"
  19702. /* System header to define __stub macros and hopefully few prototypes,
  19703.     which can conflict with char $ac_func(); below.  */
  19704. #include <assert.h>
  19705. /* Override any gcc2 internal prototype to avoid an error.  */
  19706. /* We use char because int might match the return type of a gcc2
  19707.     builtin and then its argument prototype would still apply.  */
  19708. char $ac_func();
  19709.  
  19710. int main() {
  19711.  
  19712. /* The GNU C library defines this for functions which it implements
  19713.     to always fail with ENOSYS.  Some functions are actually named
  19714.     something starting with __ and the normal name is an alias.  */
  19715. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19716. choke me
  19717. #else
  19718. $ac_func();
  19719. #endif
  19720.  
  19721. ; return 0; }
  19722. EOF
  19723. if { (eval echo configure:19724: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19724.   rm -rf conftest*
  19725.   eval "ac_cv_func_$ac_func=yes"
  19726. else
  19727.   echo "configure: failed program was:" >&5
  19728.   cat conftest.$ac_ext >&5
  19729.   rm -rf conftest*
  19730.   eval "ac_cv_func_$ac_func=no"
  19731. fi
  19732. rm -f conftest*
  19733. fi
  19734.  
  19735. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  19736.   echo "$ac_t""yes" 1>&6
  19737.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  19738.   cat >> confdefs.h <<EOF
  19739. #define $ac_tr_func 1
  19740. EOF
  19741.  
  19742.                 cat >> confdefs.h <<\EOF
  19743. #define HAVE_DLOPEN 1
  19744. EOF
  19745.  
  19746.                 HAVE_DL_FUNCS=1
  19747.             
  19748. else
  19749.   echo "$ac_t""no" 1>&6
  19750. echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  19751. echo "configure:19752: checking for dlopen in -ldl" >&5
  19752. ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  19753. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  19754.   echo $ac_n "(cached) $ac_c" 1>&6
  19755. else
  19756.   ac_save_LIBS="$LIBS"
  19757. LIBS="-ldl  $LIBS"
  19758. cat > conftest.$ac_ext <<EOF
  19759. #line 19760 "configure"
  19760. #include "confdefs.h"
  19761. /* Override any gcc2 internal prototype to avoid an error.  */
  19762. /* We use char because int might match the return type of a gcc2
  19763.     builtin and then its argument prototype would still apply.  */
  19764. char dlopen();
  19765.  
  19766. int main() {
  19767. dlopen()
  19768. ; return 0; }
  19769. EOF
  19770. if { (eval echo configure:19771: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19771.   rm -rf conftest*
  19772.   eval "ac_cv_lib_$ac_lib_var=yes"
  19773. else
  19774.   echo "configure: failed program was:" >&5
  19775.   cat conftest.$ac_ext >&5
  19776.   rm -rf conftest*
  19777.   eval "ac_cv_lib_$ac_lib_var=no"
  19778. fi
  19779. rm -f conftest*
  19780. LIBS="$ac_save_LIBS"
  19781.  
  19782. fi
  19783. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  19784.   echo "$ac_t""yes" 1>&6
  19785.   
  19786.                                 cat >> confdefs.h <<\EOF
  19787. #define HAVE_DLOPEN 1
  19788. EOF
  19789.  
  19790.                                 HAVE_DL_FUNCS=1
  19791.                                 DL_LINK=" -ldl$DL_LINK"
  19792.                             
  19793. else
  19794.   echo "$ac_t""no" 1>&6
  19795.  
  19796.                                 for ac_func in shl_load
  19797. do
  19798. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  19799. echo "configure:19800: checking for $ac_func" >&5
  19800. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  19801.   echo $ac_n "(cached) $ac_c" 1>&6
  19802. else
  19803.   cat > conftest.$ac_ext <<EOF
  19804. #line 19805 "configure"
  19805. #include "confdefs.h"
  19806. /* System header to define __stub macros and hopefully few prototypes,
  19807.     which can conflict with char $ac_func(); below.  */
  19808. #include <assert.h>
  19809. /* Override any gcc2 internal prototype to avoid an error.  */
  19810. /* We use char because int might match the return type of a gcc2
  19811.     builtin and then its argument prototype would still apply.  */
  19812. char $ac_func();
  19813.  
  19814. int main() {
  19815.  
  19816. /* The GNU C library defines this for functions which it implements
  19817.     to always fail with ENOSYS.  Some functions are actually named
  19818.     something starting with __ and the normal name is an alias.  */
  19819. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19820. choke me
  19821. #else
  19822. $ac_func();
  19823. #endif
  19824.  
  19825. ; return 0; }
  19826. EOF
  19827. if { (eval echo configure:19828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19828.   rm -rf conftest*
  19829.   eval "ac_cv_func_$ac_func=yes"
  19830. else
  19831.   echo "configure: failed program was:" >&5
  19832.   cat conftest.$ac_ext >&5
  19833.   rm -rf conftest*
  19834.   eval "ac_cv_func_$ac_func=no"
  19835. fi
  19836. rm -f conftest*
  19837. fi
  19838.  
  19839. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  19840.   echo "$ac_t""yes" 1>&6
  19841.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  19842.   cat >> confdefs.h <<EOF
  19843. #define $ac_tr_func 1
  19844. EOF
  19845.  
  19846.                                                 cat >> confdefs.h <<\EOF
  19847. #define HAVE_SHL_LOAD 1
  19848. EOF
  19849.  
  19850.                                                 HAVE_SHL_FUNCS=1
  19851.                                               
  19852. else
  19853.   echo "$ac_t""no" 1>&6
  19854. echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
  19855. echo "configure:19856: checking for dld in -lshl_load" >&5
  19856. ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
  19857. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  19858.   echo $ac_n "(cached) $ac_c" 1>&6
  19859. else
  19860.   ac_save_LIBS="$LIBS"
  19861. LIBS="-lshl_load  $LIBS"
  19862. cat > conftest.$ac_ext <<EOF
  19863. #line 19864 "configure"
  19864. #include "confdefs.h"
  19865. /* Override any gcc2 internal prototype to avoid an error.  */
  19866. /* We use char because int might match the return type of a gcc2
  19867.     builtin and then its argument prototype would still apply.  */
  19868. char dld();
  19869.  
  19870. int main() {
  19871. dld()
  19872. ; return 0; }
  19873. EOF
  19874. if { (eval echo configure:19875: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19875.   rm -rf conftest*
  19876.   eval "ac_cv_lib_$ac_lib_var=yes"
  19877. else
  19878.   echo "configure: failed program was:" >&5
  19879.   cat conftest.$ac_ext >&5
  19880.   rm -rf conftest*
  19881.   eval "ac_cv_lib_$ac_lib_var=no"
  19882. fi
  19883. rm -f conftest*
  19884. LIBS="$ac_save_LIBS"
  19885.  
  19886. fi
  19887. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  19888.   echo "$ac_t""yes" 1>&6
  19889.   
  19890.                                                                 HAVE_SHL_FUNCS=1
  19891.                                                                 DL_LINK=" -ldld$DL_LINK"
  19892.                                                              
  19893. else
  19894.   echo "$ac_t""no" 1>&6
  19895. fi
  19896.  
  19897.                                               
  19898. fi
  19899. done
  19900.  
  19901.                             
  19902. fi
  19903.  
  19904.             
  19905. fi
  19906. done
  19907.  
  19908.  
  19909.                 if test "$HAVE_DL_FUNCS" = 1; then
  19910.             for ac_func in dlerror
  19911. do
  19912. echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
  19913. echo "configure:19914: checking for $ac_func" >&5
  19914. if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
  19915.   echo $ac_n "(cached) $ac_c" 1>&6
  19916. else
  19917.   cat > conftest.$ac_ext <<EOF
  19918. #line 19919 "configure"
  19919. #include "confdefs.h"
  19920. /* System header to define __stub macros and hopefully few prototypes,
  19921.     which can conflict with char $ac_func(); below.  */
  19922. #include <assert.h>
  19923. /* Override any gcc2 internal prototype to avoid an error.  */
  19924. /* We use char because int might match the return type of a gcc2
  19925.     builtin and then its argument prototype would still apply.  */
  19926. char $ac_func();
  19927.  
  19928. int main() {
  19929.  
  19930. /* The GNU C library defines this for functions which it implements
  19931.     to always fail with ENOSYS.  Some functions are actually named
  19932.     something starting with __ and the normal name is an alias.  */
  19933. #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  19934. choke me
  19935. #else
  19936. $ac_func();
  19937. #endif
  19938.  
  19939. ; return 0; }
  19940. EOF
  19941. if { (eval echo configure:19942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19942.   rm -rf conftest*
  19943.   eval "ac_cv_func_$ac_func=yes"
  19944. else
  19945.   echo "configure: failed program was:" >&5
  19946.   cat conftest.$ac_ext >&5
  19947.   rm -rf conftest*
  19948.   eval "ac_cv_func_$ac_func=no"
  19949. fi
  19950. rm -f conftest*
  19951. fi
  19952.  
  19953. if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
  19954.   echo "$ac_t""yes" 1>&6
  19955.     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
  19956.   cat >> confdefs.h <<EOF
  19957. #define $ac_tr_func 1
  19958. EOF
  19959.  cat >> confdefs.h <<\EOF
  19960. #define HAVE_DLERROR 1
  19961. EOF
  19962.  
  19963. else
  19964.   echo "$ac_t""no" 1>&6
  19965. echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
  19966. echo "configure:19967: checking for dlerror in -ldl" >&5
  19967. ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
  19968. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  19969.   echo $ac_n "(cached) $ac_c" 1>&6
  19970. else
  19971.   ac_save_LIBS="$LIBS"
  19972. LIBS="-ldl  $LIBS"
  19973. cat > conftest.$ac_ext <<EOF
  19974. #line 19975 "configure"
  19975. #include "confdefs.h"
  19976. /* Override any gcc2 internal prototype to avoid an error.  */
  19977. /* We use char because int might match the return type of a gcc2
  19978.     builtin and then its argument prototype would still apply.  */
  19979. char dlerror();
  19980.  
  19981. int main() {
  19982. dlerror()
  19983. ; return 0; }
  19984. EOF
  19985. if { (eval echo configure:19986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19986.   rm -rf conftest*
  19987.   eval "ac_cv_lib_$ac_lib_var=yes"
  19988. else
  19989.   echo "configure: failed program was:" >&5
  19990.   cat conftest.$ac_ext >&5
  19991.   rm -rf conftest*
  19992.   eval "ac_cv_lib_$ac_lib_var=no"
  19993. fi
  19994. rm -f conftest*
  19995. LIBS="$ac_save_LIBS"
  19996.  
  19997. fi
  19998. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  19999.   echo "$ac_t""yes" 1>&6
  20000.   cat >> confdefs.h <<\EOF
  20001. #define HAVE_DLERROR 1
  20002. EOF
  20003.  
  20004. else
  20005.   echo "$ac_t""no" 1>&6
  20006. fi
  20007.  
  20008. fi
  20009. done
  20010.  
  20011.         fi
  20012.         fi
  20013.  
  20014.         if test "$HAVE_DL_FUNCS" = 0; then
  20015.             if test "$HAVE_SHL_FUNCS" = 0; then
  20016.               if test "$USE_UNIX" = 1; then
  20017.                   echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
  20018.                   wxUSE_DYNAMIC_LOADER=no
  20019.                   wxUSE_DYNLIB_CLASS=no
  20020.               else
  20021.                   echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
  20022.               fi
  20023.             fi
  20024.         fi
  20025.     fi
  20026. fi
  20027.  
  20028. if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
  20029.     cat >> confdefs.h <<\EOF
  20030. #define wxUSE_DYNAMIC_LOADER 1
  20031. EOF
  20032.  
  20033. elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
  20034.     cat >> confdefs.h <<\EOF
  20035. #define wxUSE_DYNLIB_CLASS 1
  20036. EOF
  20037.  
  20038. fi
  20039.  
  20040.  
  20041. if test "$wxUSE_FONTMAP" = "yes" ; then
  20042.   cat >> confdefs.h <<\EOF
  20043. #define wxUSE_FONTMAP 1
  20044. EOF
  20045.  
  20046. fi
  20047.  
  20048. if test "$wxUSE_UNICODE" = "yes" ; then
  20049.   cat >> confdefs.h <<\EOF
  20050. #define wxUSE_UNICODE 1
  20051. EOF
  20052.  
  20053.  
  20054.   if test "$wxUSE_MSW" != 1; then
  20055.       wxUSE_UNICODE_MSLU=no
  20056.   fi
  20057.  
  20058.   if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
  20059.         echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
  20060. echo "configure:20061: checking for main in -lunicows" >&5
  20061. ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
  20062. if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  20063.   echo $ac_n "(cached) $ac_c" 1>&6
  20064. else
  20065.   ac_save_LIBS="$LIBS"
  20066. LIBS="-lunicows  $LIBS"
  20067. cat > conftest.$ac_ext <<EOF
  20068. #line 20069 "configure"
  20069. #include "confdefs.h"
  20070.  
  20071. int main() {
  20072. main()
  20073. ; return 0; }
  20074. EOF
  20075. if { (eval echo configure:20076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  20076.   rm -rf conftest*
  20077.   eval "ac_cv_lib_$ac_lib_var=yes"
  20078. else
  20079.   echo "configure: failed program was:" >&5
  20080.   cat conftest.$ac_ext >&5
  20081.   rm -rf conftest*
  20082.   eval "ac_cv_lib_$ac_lib_var=no"
  20083. fi
  20084. rm -f conftest*
  20085. LIBS="$ac_save_LIBS"
  20086.  
  20087. fi
  20088. if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
  20089.   echo "$ac_t""yes" 1>&6
  20090.   
  20091.                 cat >> confdefs.h <<\EOF
  20092. #define wxUSE_UNICODE_MSLU 1
  20093. EOF
  20094.  
  20095.             
  20096. else
  20097.   echo "$ac_t""no" 1>&6
  20098.  
  20099.                 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
  20100.                              Applications will only run on Windows NT/2000/XP!" 1>&2
  20101.                 wxUSE_UNICODE_MSLU=no
  20102.             
  20103. fi
  20104.  
  20105.     fi
  20106. fi
  20107.  
  20108. if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
  20109.   cat >> confdefs.h <<\EOF
  20110. #define wxUSE_EXPERIMENTAL_PRINTF 1
  20111. EOF
  20112.  
  20113. fi
  20114.  
  20115.  
  20116.  
  20117. IODBC_C_SRC=""
  20118. if test "$wxUSE_ODBC" = "yes" ; then
  20119.     cat >> confdefs.h <<\EOF
  20120. #define wxUSE_ODBC 1
  20121. EOF
  20122.  
  20123.     WXODBCFLAG="-D_IODBC_"
  20124.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
  20125. fi
  20126.  
  20127.  
  20128. if test "$wxUSE_POSTSCRIPT" = "yes" ; then
  20129.   cat >> confdefs.h <<\EOF
  20130. #define wxUSE_POSTSCRIPT 1
  20131. EOF
  20132.  
  20133. fi
  20134.  
  20135. cat >> confdefs.h <<\EOF
  20136. #define wxUSE_AFM_FOR_POSTSCRIPT 1
  20137. EOF
  20138.  
  20139.  
  20140. cat >> confdefs.h <<\EOF
  20141. #define wxUSE_NORMALIZED_PS_FONTS 1
  20142. EOF
  20143.  
  20144.  
  20145.  
  20146. if test "$wxUSE_CONSTRAINTS" = "yes"; then
  20147.     cat >> confdefs.h <<\EOF
  20148. #define wxUSE_CONSTRAINTS 1
  20149. EOF
  20150.  
  20151.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
  20152. fi
  20153.  
  20154. if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
  20155.  
  20156.  
  20157.    if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
  20158.        cat >> confdefs.h <<\EOF
  20159. #define wxUSE_MDI_ARCHITECTURE 1
  20160. EOF
  20161.  
  20162.        SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
  20163.    fi
  20164. fi
  20165.  
  20166. if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
  20167.     cat >> confdefs.h <<\EOF
  20168. #define wxUSE_DOC_VIEW_ARCHITECTURE 1
  20169. EOF
  20170.  
  20171.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
  20172.     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
  20173.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
  20174.     fi
  20175. fi
  20176.  
  20177. if test "$wxUSE_HELP" = "yes"; then
  20178.     cat >> confdefs.h <<\EOF
  20179. #define wxUSE_HELP 1
  20180. EOF
  20181.  
  20182.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
  20183.  
  20184.     if test "$wxUSE_MSW" = 1; then
  20185.       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
  20186.         cat >> confdefs.h <<\EOF
  20187. #define wxUSE_MS_HTML_HELP 1
  20188. EOF
  20189.  
  20190.       fi
  20191.     fi
  20192.  
  20193.     if test "$wxUSE_WXHTML_HELP" = "yes"; then
  20194.       if test "$wxUSE_HTML" = "yes"; then
  20195.         cat >> confdefs.h <<\EOF
  20196. #define wxUSE_WXHTML_HELP 1
  20197. EOF
  20198.  
  20199.       else
  20200.         echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
  20201.         wxUSE_WXHTML_HELP=no
  20202.       fi
  20203.     fi
  20204. fi
  20205.  
  20206. if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
  20207.     if test "$wxUSE_CONSTRAINTS" != "yes"; then
  20208.         echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
  20209.     else
  20210.         cat >> confdefs.h <<\EOF
  20211. #define wxUSE_PRINTING_ARCHITECTURE 1
  20212. EOF
  20213.  
  20214.     fi
  20215.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
  20216. fi
  20217.  
  20218. if test "$wxUSE_PROLOGIO" = "yes" ; then
  20219.     cat >> confdefs.h <<\EOF
  20220. #define wxUSE_PROLOGIO 1
  20221. EOF
  20222.  
  20223. fi
  20224.  
  20225. if test "$wxUSE_RESOURCES" = "yes" ; then
  20226.     if test "$wxUSE_NANOX" = "yes"; then
  20227.         echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
  20228.     else
  20229.         cat >> confdefs.h <<\EOF
  20230. #define wxUSE_RESOURCES 1
  20231. EOF
  20232.  
  20233.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
  20234.     fi
  20235. fi
  20236.  
  20237. if test "$wxUSE_X_RESOURCES" = "yes"; then
  20238.     cat >> confdefs.h <<\EOF
  20239. #define wxUSE_X_RESOURCES 1
  20240. EOF
  20241.  
  20242. fi
  20243.  
  20244.  
  20245. if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
  20246.                           -o "$wxUSE_CLIPBOARD"     = "yes" \
  20247.                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
  20248.     for ac_hdr in ole2.h
  20249. do
  20250. ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  20251. echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  20252. echo "configure:20253: checking for $ac_hdr" >&5
  20253. if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  20254.   echo $ac_n "(cached) $ac_c" 1>&6
  20255. else
  20256.   cat > conftest.$ac_ext <<EOF
  20257. #include <sys/types.h>
  20258. #line 20259 "configure"
  20259. #include "confdefs.h"
  20260. #include <$ac_hdr>
  20261. EOF
  20262. ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
  20263. { (eval echo configure:20264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  20264. ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  20265. if test -z "$ac_err"; then
  20266.   rm -rf conftest*
  20267.   eval "ac_cv_header_$ac_safe=yes"
  20268. else
  20269.   echo "$ac_err" >&5
  20270.   echo "configure: failed program was:" >&5
  20271.   cat conftest.$ac_ext >&5
  20272.   rm -rf conftest*
  20273.   eval "ac_cv_header_$ac_safe=no"
  20274. fi
  20275. rm -f conftest*
  20276. fi
  20277. if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
  20278.   echo "$ac_t""yes" 1>&6
  20279.     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
  20280.   cat >> confdefs.h <<EOF
  20281. #define $ac_tr_hdr 1
  20282. EOF
  20283.  
  20284. else
  20285.   echo "$ac_t""no" 1>&6
  20286. fi
  20287. done
  20288.  
  20289.  
  20290.     if test "$ac_cv_header_ole2_h" = "yes" ; then
  20291.         if test "$GCC" = yes ; then
  20292.             
  20293.             ac_ext=C
  20294. # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  20295. ac_cpp='$CXXCPP $CPPFLAGS'
  20296. ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  20297. ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  20298. cross_compiling=$ac_cv_prog_cxx_cross
  20299.  
  20300.  
  20301.             echo $ac_n "checking if g++ requires -fvtable-thunks""... $ac_c" 1>&6
  20302. echo "configure:20303: checking if g++ requires -fvtable-thunks" >&5
  20303.             cat > conftest.$ac_ext <<EOF
  20304. #line 20305 "configure"
  20305. #include "confdefs.h"
  20306. #include <windows.h>
  20307.                             #include <ole2.h>
  20308. int main() {
  20309.  
  20310. ; return 0; }
  20311. EOF
  20312. if { (eval echo configure:20313: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
  20313.   rm -rf conftest*
  20314.   echo "$ac_t""no" 1>&6
  20315. else
  20316.   echo "configure: failed program was:" >&5
  20317.   cat conftest.$ac_ext >&5
  20318.   rm -rf conftest*
  20319.   echo "$ac_t""yes" 1>&6
  20320.                             CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
  20321. fi
  20322. rm -f conftest*
  20323.             ac_ext=c
  20324. # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  20325. ac_cpp='$CPP $CPPFLAGS'
  20326. ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  20327. ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  20328. cross_compiling=$ac_cv_prog_cc_cross
  20329.  
  20330.             ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
  20331.             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
  20332.             cat >> confdefs.h <<\EOF
  20333. #define wxUSE_OLE 1
  20334. EOF
  20335.  
  20336.  
  20337.         fi
  20338.  
  20339.                 cat >> confdefs.h <<\EOF
  20340. #define wxUSE_DATAOBJ 1
  20341. EOF
  20342.  
  20343.     else
  20344.         echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
  20345.  
  20346.         wxUSE_CLIPBOARD=no
  20347.         wxUSE_DRAG_AND_DROP=no
  20348.         wxUSE_DATAOBJ=no
  20349.     fi
  20350.  
  20351.     if test "$wxUSE_METAFILE" = "yes"; then
  20352.         cat >> confdefs.h <<\EOF
  20353. #define wxUSE_METAFILE 1
  20354. EOF
  20355.  
  20356.  
  20357.                 cat >> confdefs.h <<\EOF
  20358. #define wxUSE_ENH_METAFILE 1
  20359. EOF
  20360.  
  20361.     fi
  20362. fi
  20363.  
  20364. if test "$wxUSE_IPC" = "yes"; then
  20365.     if test "$wxUSE_SOCKETS" != "yes"; then
  20366.         echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
  20367.     fi
  20368.  
  20369.     cat >> confdefs.h <<\EOF
  20370. #define wxUSE_IPC 1
  20371. EOF
  20372.  
  20373. fi
  20374.  
  20375. if test "$wxUSE_CLIPBOARD" = "yes"; then
  20376.     if test "$wxUSE_MGL" = 1; then
  20377.         echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
  20378.         wxUSE_CLIPBOARD=no
  20379.     fi
  20380.  
  20381.     if test "$wxUSE_CLIPBOARD" = "yes"; then
  20382.         cat >> confdefs.h <<\EOF
  20383. #define wxUSE_CLIPBOARD 1
  20384. EOF
  20385.  
  20386.  
  20387.                 cat >> confdefs.h <<\EOF
  20388. #define wxUSE_DATAOBJ 1
  20389. EOF
  20390.  
  20391.     fi
  20392. fi
  20393.  
  20394. if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
  20395.     if test "$wxUSE_GTK" = 1; then
  20396.         if test "$WXGTK12" != 1; then
  20397.             echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
  20398.             wxUSE_DRAG_AND_DROP=no
  20399.         fi
  20400.     fi
  20401.  
  20402.     if test "$wxUSE_MOTIF" = 1; then
  20403.         echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
  20404.         wxUSE_DRAG_AND_DROP=no
  20405.     fi
  20406.  
  20407.     if test "$wxUSE_X11" = 1; then
  20408.         echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
  20409.         wxUSE_DRAG_AND_DROP=no
  20410.     fi
  20411.  
  20412.     if test "$wxUSE_MGL" = 1; then
  20413.         echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
  20414.         wxUSE_DRAG_AND_DROP=no
  20415.     fi
  20416.  
  20417.     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
  20418.         cat >> confdefs.h <<\EOF
  20419. #define wxUSE_DRAG_AND_DROP 1
  20420. EOF
  20421.  
  20422.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
  20423.     fi
  20424.  
  20425. fi
  20426.  
  20427. if test "$wxUSE_SPLINES" = "yes" ; then
  20428.   cat >> confdefs.h <<\EOF
  20429. #define wxUSE_SPLINES 1
  20430. EOF
  20431.  
  20432. fi
  20433.  
  20434.  
  20435. USES_CONTROLS=0
  20436. if test "$wxUSE_CONTROLS" = "yes"; then
  20437.   USES_CONTROLS=1
  20438. fi
  20439.  
  20440. if test "$wxUSE_ACCEL" = "yes"; then
  20441.   cat >> confdefs.h <<\EOF
  20442. #define wxUSE_ACCEL 1
  20443. EOF
  20444.  
  20445.   USES_CONTROLS=1
  20446. fi
  20447.  
  20448. if test "$wxUSE_BUTTON" = "yes"; then
  20449.   cat >> confdefs.h <<\EOF
  20450. #define wxUSE_BUTTON 1
  20451. EOF
  20452.  
  20453.   USES_CONTROLS=1
  20454. fi
  20455.  
  20456. if test "$wxUSE_BMPBUTTON" = "yes"; then
  20457.   cat >> confdefs.h <<\EOF
  20458. #define wxUSE_BMPBUTTON 1
  20459. EOF
  20460.  
  20461.   USES_CONTROLS=1
  20462. fi
  20463.  
  20464. if test "$wxUSE_CALCTRL" = "yes"; then
  20465.   cat >> confdefs.h <<\EOF
  20466. #define wxUSE_CALENDARCTRL 1
  20467. EOF
  20468.  
  20469.   USES_CONTROLS=1
  20470.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
  20471. fi
  20472.  
  20473. if test "$wxUSE_CARET" = "yes"; then
  20474.   cat >> confdefs.h <<\EOF
  20475. #define wxUSE_CARET 1
  20476. EOF
  20477.  
  20478.   USES_CONTROLS=1
  20479.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
  20480. fi
  20481.  
  20482. if test "$wxUSE_COMBOBOX" = "yes"; then
  20483.   cat >> confdefs.h <<\EOF
  20484. #define wxUSE_COMBOBOX 1
  20485. EOF
  20486.  
  20487.   USES_CONTROLS=1
  20488. fi
  20489.  
  20490. if test "$wxUSE_CHOICE" = "yes"; then
  20491.   cat >> confdefs.h <<\EOF
  20492. #define wxUSE_CHOICE 1
  20493. EOF
  20494.  
  20495.   USES_CONTROLS=1
  20496. fi
  20497.  
  20498. if test "$wxUSE_CHECKBOX" = "yes"; then
  20499.   cat >> confdefs.h <<\EOF
  20500. #define wxUSE_CHECKBOX 1
  20501. EOF
  20502.  
  20503.   USES_CONTROLS=1
  20504. fi
  20505.  
  20506. if test "$wxUSE_CHECKLST" = "yes"; then
  20507.   cat >> confdefs.h <<\EOF
  20508. #define wxUSE_CHECKLISTBOX 1
  20509. EOF
  20510.  
  20511.   USES_CONTROLS=1
  20512.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
  20513. fi
  20514.  
  20515. if test "$wxUSE_GAUGE" = "yes"; then
  20516.   cat >> confdefs.h <<\EOF
  20517. #define wxUSE_GAUGE 1
  20518. EOF
  20519.  
  20520.   USES_CONTROLS=1
  20521. fi
  20522.  
  20523. if test "$wxUSE_NEW_GRID" = "yes"; then
  20524.   wxUSE_GRID="yes"
  20525.   cat >> confdefs.h <<\EOF
  20526. #define wxUSE_NEW_GRID 1
  20527. EOF
  20528.  
  20529.   USES_CONTROLS=1
  20530.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
  20531. fi
  20532.  
  20533. if test "$wxUSE_GRID" = "yes"; then
  20534.   cat >> confdefs.h <<\EOF
  20535. #define wxUSE_GRID 1
  20536. EOF
  20537.  
  20538.   USES_CONTROLS=1
  20539.   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
  20540. fi
  20541.  
  20542. if test "$wxUSE_IMAGLIST" = "yes"; then
  20543.     cat >> confdefs.h <<\EOF
  20544. #define wxUSE_IMAGLIST 1
  20545. EOF
  20546.  
  20547. fi
  20548.  
  20549. if test "$wxUSE_LISTBOX" = "yes"; then
  20550.     cat >> confdefs.h <<\EOF
  20551. #define wxUSE_LISTBOX 1
  20552. EOF
  20553.  
  20554.     USES_CONTROLS=1
  20555. fi
  20556.  
  20557. if test "$wxUSE_LISTCTRL" = "yes"; then
  20558.     if test "$wxUSE_IMAGLIST" = "yes"; then
  20559.         cat >> confdefs.h <<\EOF
  20560. #define wxUSE_LISTCTRL 1
  20561. EOF
  20562.  
  20563.         USES_CONTROLS=1
  20564.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
  20565.     else
  20566.         echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
  20567.     fi
  20568. fi
  20569.  
  20570. if test "$wxUSE_NOTEBOOK" = "yes"; then
  20571.     cat >> confdefs.h <<\EOF
  20572. #define wxUSE_NOTEBOOK 1
  20573. EOF
  20574.  
  20575.     USES_CONTROLS=1
  20576.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
  20577. fi
  20578.  
  20579. if test "$wxUSE_PROPSHEET" = "yes"; then
  20580.     cat >> confdefs.h <<\EOF
  20581. #define wxUSE_PROPSHEET 1
  20582. EOF
  20583.  
  20584.     USES_CONTROLS=1
  20585.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
  20586. fi
  20587.  
  20588. if test "$wxUSE_RADIOBOX" = "yes"; then
  20589.     cat >> confdefs.h <<\EOF
  20590. #define wxUSE_RADIOBOX 1
  20591. EOF
  20592.  
  20593.     USES_CONTROLS=1
  20594. fi
  20595.  
  20596. if test "$wxUSE_RADIOBTN" = "yes"; then
  20597.     cat >> confdefs.h <<\EOF
  20598. #define wxUSE_RADIOBTN 1
  20599. EOF
  20600.  
  20601.     USES_CONTROLS=1
  20602. fi
  20603.  
  20604. if test "$wxUSE_SASH" = "yes"; then
  20605.     cat >> confdefs.h <<\EOF
  20606. #define wxUSE_SASH 1
  20607. EOF
  20608.  
  20609.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
  20610. fi
  20611.  
  20612. if test "$wxUSE_SCROLLBAR" = "yes"; then
  20613.     cat >> confdefs.h <<\EOF
  20614. #define wxUSE_SCROLLBAR 1
  20615. EOF
  20616.  
  20617.     USES_CONTROLS=1
  20618.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
  20619. fi
  20620.  
  20621. if test "$wxUSE_SLIDER" = "yes"; then
  20622.     cat >> confdefs.h <<\EOF
  20623. #define wxUSE_SLIDER 1
  20624. EOF
  20625.  
  20626.     USES_CONTROLS=1
  20627. fi
  20628.  
  20629. if test "$wxUSE_SPINBTN" = "yes"; then
  20630.     cat >> confdefs.h <<\EOF
  20631. #define wxUSE_SPINBTN 1
  20632. EOF
  20633.  
  20634.     USES_CONTROLS=1
  20635. fi
  20636.  
  20637. if test "$wxUSE_SPINCTRL" = "yes"; then
  20638.     cat >> confdefs.h <<\EOF
  20639. #define wxUSE_SPINCTRL 1
  20640. EOF
  20641.  
  20642.     USES_CONTROLS=1
  20643. fi
  20644.  
  20645. if test "$wxUSE_SPLITTER" = "yes"; then
  20646.     cat >> confdefs.h <<\EOF
  20647. #define wxUSE_SPLITTER 1
  20648. EOF
  20649.  
  20650.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
  20651. fi
  20652.  
  20653. if test "$wxUSE_STATBMP" = "yes"; then
  20654.     cat >> confdefs.h <<\EOF
  20655. #define wxUSE_STATBMP 1
  20656. EOF
  20657.  
  20658.     USES_CONTROLS=1
  20659. fi
  20660.  
  20661. if test "$wxUSE_STATBOX" = "yes"; then
  20662.     cat >> confdefs.h <<\EOF
  20663. #define wxUSE_STATBOX 1
  20664. EOF
  20665.  
  20666.     USES_CONTROLS=1
  20667. fi
  20668.  
  20669. if test "$wxUSE_STATTEXT" = "yes"; then
  20670.     cat >> confdefs.h <<\EOF
  20671. #define wxUSE_STATTEXT 1
  20672. EOF
  20673.  
  20674.     USES_CONTROLS=1
  20675. fi
  20676.  
  20677. if test "$wxUSE_STATLINE" = "yes"; then
  20678.     if test "$wxUSE_WINE" = 1 ; then
  20679.         echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
  20680.     else
  20681.         cat >> confdefs.h <<\EOF
  20682. #define wxUSE_STATLINE 1
  20683. EOF
  20684.  
  20685.         USES_CONTROLS=1
  20686.     fi
  20687. fi
  20688.  
  20689. if test "$wxUSE_STATUSBAR" = "yes"; then
  20690.     cat >> confdefs.h <<\EOF
  20691. #define wxUSE_STATUSBAR 1
  20692. EOF
  20693.  
  20694.     USES_CONTROLS=1
  20695.  
  20696.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
  20697. fi
  20698.  
  20699. if test "$wxUSE_TABDIALOG" = "yes"; then
  20700.     cat >> confdefs.h <<\EOF
  20701. #define wxUSE_TAB_DIALOG 1
  20702. EOF
  20703.  
  20704.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
  20705. fi
  20706.  
  20707. if test "$wxUSE_TEXTCTRL" = "yes"; then
  20708.     cat >> confdefs.h <<\EOF
  20709. #define wxUSE_TEXTCTRL 1
  20710. EOF
  20711.  
  20712.     USES_CONTROLS=1
  20713.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
  20714. fi
  20715.  
  20716. if test "$wxUSE_TOGGLEBTN" = "yes"; then
  20717.     if test "$wxUSE_MAC" = 1; then
  20718.         echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
  20719.         wxUSE_TOGGLEBTN=no
  20720.     fi
  20721.     if test "$wxUSE_UNIVERSAL" = "yes"; then
  20722.         echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
  20723.         wxUSE_TOGGLEBTN=no
  20724.     fi
  20725.  
  20726.     if test "$wxUSE_TOGGLEBTN" = "yes"; then
  20727.         cat >> confdefs.h <<\EOF
  20728. #define wxUSE_TOGGLEBTN 1
  20729. EOF
  20730.  
  20731.         USES_CONTROLS=1
  20732.     fi
  20733. fi
  20734.  
  20735. if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
  20736.     cat >> confdefs.h <<\EOF
  20737. #define wxUSE_TOOLBAR_SIMPLE 1
  20738. EOF
  20739.  
  20740.     wxUSE_TOOLBAR="yes"
  20741.     USES_CONTROLS=1
  20742. fi
  20743.  
  20744. if test "$wxUSE_TOOLBAR" = "yes"; then
  20745.     cat >> confdefs.h <<\EOF
  20746. #define wxUSE_TOOLBAR 1
  20747. EOF
  20748.  
  20749.     USES_CONTROLS=1
  20750.  
  20751.         if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
  20752.         wxUSE_TOOLBAR_NATIVE="yes"
  20753.     fi
  20754.  
  20755.     if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
  20756.         cat >> confdefs.h <<\EOF
  20757. #define wxUSE_TOOLBAR_NATIVE 1
  20758. EOF
  20759.  
  20760.         USES_CONTROLS=1
  20761.     fi
  20762.  
  20763.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
  20764. fi
  20765.  
  20766. if test "$wxUSE_TOOLTIPS" = "yes"; then
  20767.     if test "$wxUSE_MOTIF" = 1; then
  20768.         echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
  20769.     else
  20770.         if test "$wxUSE_WINE" = 1; then
  20771.             echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
  20772.         else
  20773.             if test "$wxUSE_UNIVERSAL" = "yes"; then
  20774.                 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
  20775.             else
  20776.                 cat >> confdefs.h <<\EOF
  20777. #define wxUSE_TOOLTIPS 1
  20778. EOF
  20779.  
  20780.             fi
  20781.         fi
  20782.     fi
  20783. fi
  20784.  
  20785. if test "$wxUSE_TREECTRL" = "yes"; then
  20786.     if test "$wxUSE_IMAGLIST" = "yes"; then
  20787.         cat >> confdefs.h <<\EOF
  20788. #define wxUSE_TREECTRL 1
  20789. EOF
  20790.  
  20791.         USES_CONTROLS=1
  20792.         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
  20793.     else
  20794.         echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
  20795.     fi
  20796. fi
  20797.  
  20798. if test "$wxUSE_POPUPWIN" = "yes"; then
  20799.     if test "$wxUSE_MAC" = 1; then
  20800.         echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
  20801.     else
  20802.         if test "$wxUSE_MOTIF" = 1; then
  20803.             echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
  20804.         else
  20805.             if test "$wxUSE_PM" = 1; then
  20806.                 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
  20807.             else
  20808.                 cat >> confdefs.h <<\EOF
  20809. #define wxUSE_POPUPWIN 1
  20810. EOF
  20811.  
  20812.  
  20813.                 USES_CONTROLS=1
  20814.             fi
  20815.         fi
  20816.     fi
  20817. fi
  20818.  
  20819. if test "$wxUSE_TIPWINDOW" = "yes"; then
  20820.     if test "$wxUSE_PM" = 1; then
  20821.         echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
  20822.     else
  20823.         cat >> confdefs.h <<\EOF
  20824. #define wxUSE_TIPWINDOW 1
  20825. EOF
  20826.  
  20827.     fi
  20828. fi
  20829.  
  20830. if test "$USES_CONTROLS" = 1; then
  20831.     cat >> confdefs.h <<\EOF
  20832. #define wxUSE_CONTROLS 1
  20833. EOF
  20834.  
  20835. fi
  20836.  
  20837.  
  20838. if test "$wxUSE_TREELAYOUT" = "yes"; then
  20839.     cat >> confdefs.h <<\EOF
  20840. #define wxUSE_TREELAYOUT 1
  20841. EOF
  20842.  
  20843.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
  20844. fi
  20845.  
  20846. if test "$wxUSE_DRAGIMAGE" = "yes"; then
  20847.     cat >> confdefs.h <<\EOF
  20848. #define wxUSE_DRAGIMAGE 1
  20849. EOF
  20850.  
  20851.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
  20852. fi
  20853.  
  20854. if test "$wxUSE_MENUS" = "yes"; then
  20855.     cat >> confdefs.h <<\EOF
  20856. #define wxUSE_MENUS 1
  20857. EOF
  20858.  
  20859.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
  20860. fi
  20861.  
  20862. if test "$wxUSE_METAFILE" = "yes"; then
  20863.     cat >> confdefs.h <<\EOF
  20864. #define wxUSE_METAFILE 1
  20865. EOF
  20866.  
  20867. fi
  20868.  
  20869. if test "$wxUSE_MIMETYPE" = "yes"; then
  20870.     cat >> confdefs.h <<\EOF
  20871. #define wxUSE_MIMETYPE 1
  20872. EOF
  20873.  
  20874. fi
  20875.  
  20876. if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
  20877.     cat >> confdefs.h <<\EOF
  20878. #define wxUSE_SYSTEM_OPTIONS 1
  20879. EOF
  20880.  
  20881. if test "$TOOLKIT" = "MSW"; then
  20882.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
  20883. fi
  20884.  
  20885. fi
  20886.  
  20887. if test "$wxUSE_PROTOCOL" = "yes"; then
  20888.     if test "$wxUSE_SOCKETS" != "yes"; then
  20889.         echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
  20890.         wxUSE_PROTOCOL=no
  20891.     fi
  20892.  
  20893.     if test "$wxUSE_PROTOCOL" = "yes"; then
  20894.         cat >> confdefs.h <<\EOF
  20895. #define wxUSE_PROTOCOL 1
  20896. EOF
  20897.  
  20898.  
  20899.         if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
  20900.             cat >> confdefs.h <<\EOF
  20901. #define wxUSE_PROTOCOL_HTTP 1
  20902. EOF
  20903.  
  20904.         fi
  20905.         if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
  20906.             cat >> confdefs.h <<\EOF
  20907. #define wxUSE_PROTOCOL_FTP 1
  20908. EOF
  20909.  
  20910.         fi
  20911.         if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
  20912.             cat >> confdefs.h <<\EOF
  20913. #define wxUSE_PROTOCOL_FILE 1
  20914. EOF
  20915.  
  20916.         fi
  20917.     fi
  20918. fi
  20919.  
  20920. if test "$wxUSE_URL" = "yes"; then
  20921.     if test "$wxUSE_PROTOCOL" != "yes"; then
  20922.         echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
  20923.         wxUSE_URL=no
  20924.     fi
  20925.     if test "$wxUSE_URL" = "yes"; then
  20926.         cat >> confdefs.h <<\EOF
  20927. #define wxUSE_URL 1
  20928. EOF
  20929.  
  20930.     fi
  20931. fi
  20932.  
  20933. if test "$wxUSE_MINIFRAME" = "yes"; then
  20934.     cat >> confdefs.h <<\EOF
  20935. #define wxUSE_MINIFRAME 1
  20936. EOF
  20937.  
  20938.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
  20939. fi
  20940.  
  20941. if test "$wxUSE_HTML" = "yes"; then
  20942.     cat >> confdefs.h <<\EOF
  20943. #define wxUSE_HTML 1
  20944. EOF
  20945.  
  20946.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
  20947. fi
  20948.  
  20949. if test "$wxUSE_VALIDATORS" = "yes"; then
  20950.     cat >> confdefs.h <<\EOF
  20951. #define wxUSE_VALIDATORS 1
  20952. EOF
  20953.  
  20954.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
  20955. fi
  20956.  
  20957. if test "$wxUSE_PALETTE" = "yes" ; then
  20958.   cat >> confdefs.h <<\EOF
  20959. #define wxUSE_PALETTE 1
  20960. EOF
  20961.  
  20962. fi
  20963.  
  20964. if test "$wxUSE_IMAGE" = "yes" ; then
  20965.   cat >> confdefs.h <<\EOF
  20966. #define wxUSE_IMAGE 1
  20967. EOF
  20968.  
  20969. fi
  20970.  
  20971. if test "$wxUSE_GIF" = "yes" ; then
  20972.   cat >> confdefs.h <<\EOF
  20973. #define wxUSE_GIF 1
  20974. EOF
  20975.  
  20976. fi
  20977.  
  20978. if test "$wxUSE_PCX" = "yes" ; then
  20979.   cat >> confdefs.h <<\EOF
  20980. #define wxUSE_PCX 1
  20981. EOF
  20982.  
  20983. fi
  20984.  
  20985. if test "$wxUSE_IFF" = "yes" ; then
  20986.   cat >> confdefs.h <<\EOF
  20987. #define wxUSE_IFF 1
  20988. EOF
  20989.  
  20990. fi
  20991.  
  20992. if test "$wxUSE_PNM" = "yes" ; then
  20993.   cat >> confdefs.h <<\EOF
  20994. #define wxUSE_PNM 1
  20995. EOF
  20996.  
  20997. fi
  20998.  
  20999. if test "$wxUSE_XPM" = "yes" ; then
  21000.   cat >> confdefs.h <<\EOF
  21001. #define wxUSE_XPM 1
  21002. EOF
  21003.  
  21004. fi
  21005.  
  21006. if test "$wxUSE_ICO_CUR" = "yes" ; then
  21007.   cat >> confdefs.h <<\EOF
  21008. #define wxUSE_ICO_CUR 1
  21009. EOF
  21010.  
  21011. fi
  21012.  
  21013. if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
  21014.     LIBS=" -lunicows $LIBS"
  21015. fi
  21016.  
  21017.  
  21018. if test "$wxUSE_CHOICEDLG" = "yes"; then
  21019.     cat >> confdefs.h <<\EOF
  21020. #define wxUSE_CHOICEDLG 1
  21021. EOF
  21022.  
  21023. fi
  21024.  
  21025. if test "$wxUSE_COLOURDLG" = "yes"; then
  21026.     cat >> confdefs.h <<\EOF
  21027. #define wxUSE_COLOURDLG 1
  21028. EOF
  21029.  
  21030. fi
  21031.  
  21032. if test "$wxUSE_FILEDLG" = "yes"; then
  21033.     cat >> confdefs.h <<\EOF
  21034. #define wxUSE_FILEDLG 1
  21035. EOF
  21036.  
  21037. fi
  21038.  
  21039. if test "$wxUSE_FINDREPLDLG" = "yes"; then
  21040.     cat >> confdefs.h <<\EOF
  21041. #define wxUSE_FINDREPLDLG 1
  21042. EOF
  21043.  
  21044. fi
  21045.  
  21046. if test "$wxUSE_FONTDLG" = "yes"; then
  21047.     cat >> confdefs.h <<\EOF
  21048. #define wxUSE_FONTDLG 1
  21049. EOF
  21050.  
  21051. fi
  21052.  
  21053. if test "$wxUSE_DIRDLG" = "yes"; then
  21054.     if test "$wxUSE_TREECTRL" != "yes"; then
  21055.         echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
  21056.     else
  21057.         cat >> confdefs.h <<\EOF
  21058. #define wxUSE_DIRDLG 1
  21059. EOF
  21060.  
  21061.     fi
  21062. fi
  21063.  
  21064. if test "$wxUSE_MSGDLG" = "yes"; then
  21065.     cat >> confdefs.h <<\EOF
  21066. #define wxUSE_MSGDLG 1
  21067. EOF
  21068.  
  21069. fi
  21070.  
  21071. if test "$wxUSE_NUMBERDLG" = "yes"; then
  21072.     cat >> confdefs.h <<\EOF
  21073. #define wxUSE_NUMBERDLG 1
  21074. EOF
  21075.  
  21076. fi
  21077.  
  21078. if test "$wxUSE_PROGRESSDLG" = "yes"; then
  21079.     if test "$wxUSE_CONSTRAINTS" != "yes"; then
  21080.        echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
  21081.     else
  21082.         cat >> confdefs.h <<\EOF
  21083. #define wxUSE_PROGRESSDLG 1
  21084. EOF
  21085.  
  21086.     fi
  21087. fi
  21088.  
  21089. if test "$wxUSE_SPLASH" = "yes"; then
  21090.     cat >> confdefs.h <<\EOF
  21091. #define wxUSE_SPLASH 1
  21092. EOF
  21093.  
  21094. fi
  21095.  
  21096. if test "$wxUSE_STARTUP_TIPS" = "yes"; then
  21097.     if test "$wxUSE_CONSTRAINTS" != "yes"; then
  21098.        echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
  21099.     else
  21100.         cat >> confdefs.h <<\EOF
  21101. #define wxUSE_STARTUP_TIPS 1
  21102. EOF
  21103.  
  21104.     fi
  21105. fi
  21106.  
  21107. if test "$wxUSE_TEXTDLG" = "yes"; then
  21108.     cat >> confdefs.h <<\EOF
  21109. #define wxUSE_TEXTDLG 1
  21110. EOF
  21111.  
  21112. fi
  21113.  
  21114. if test "$wxUSE_WIZARDDLG" = "yes"; then
  21115.     cat >> confdefs.h <<\EOF
  21116. #define wxUSE_WIZARDDLG 1
  21117. EOF
  21118.  
  21119.     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
  21120. fi
  21121.  
  21122.  
  21123. if test "$cross_compiling" = "yes"; then
  21124.         OSINFO="\"$host\""
  21125. else
  21126.         OSINFO=`uname -s -r -m`
  21127.     OSINFO="\"$OSINFO\""
  21128. fi
  21129.  
  21130. cat >> confdefs.h <<EOF
  21131. #define WXWIN_OS_DESCRIPTION $OSINFO
  21132. EOF
  21133.  
  21134.  
  21135.  
  21136. if test "x$prefix" != "xNONE"; then
  21137.     wxPREFIX=$prefix
  21138. else
  21139.     wxPREFIX=$ac_default_prefix
  21140. fi
  21141.  
  21142. cat >> confdefs.h <<EOF
  21143. #define wxINSTALL_PREFIX "$wxPREFIX"
  21144. EOF
  21145.  
  21146.  
  21147.  
  21148.  
  21149.  
  21150. if test "$wxUSE_MAC" = 1 ; then
  21151.     LDFLAGS="$LDFLAGS -framework Carbon -framework System"
  21152. fi
  21153.  
  21154.  
  21155. LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
  21156.  
  21157. if test "$wxUSE_GUI" = "yes"; then
  21158.  
  21159.     LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
  21160.  
  21161.         
  21162.             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
  21163.                      drawing dynamic erase event exec font image \
  21164.                      minimal propsize rotate widgets"
  21165.  
  21166.         CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
  21167. else
  21168.     SAMPLES_SUBDIRS="console"
  21169. fi
  21170.  
  21171.  
  21172. INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
  21173. -I\${top_srcdir}/include \
  21174. $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
  21175. $TOOLKIT_INCLUDE"
  21176.  
  21177. if test "$wxUSE_GTK" = 1; then
  21178.     WXCONFIG_INCLUDE=
  21179. else
  21180.     WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
  21181. fi
  21182.  
  21183. if test "$GXX" = yes ; then
  21184.         CXXWARNINGS="-Wall"
  21185.         
  21186.             if test "$wxUSE_NO_DEPS" = "no" ; then
  21187.         CFLAGS="-MMD $CFLAGS"
  21188.         CXXFLAGS="-MMD $CXXFLAGS"
  21189.     fi
  21190. fi
  21191.  
  21192. EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
  21193.  
  21194. CFLAGS=`echo $EXTRA_CFLAGS $CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
  21195. CXXFLAGS=`echo $EXTRA_CFLAGS $CXXFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
  21196. LIBS=`echo $LIBS | sed 's/ \+/ /g'`
  21197.  
  21198. LDFLAGS="$LDFLAGS $PROFILE"
  21199.  
  21200. SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
  21201.  
  21202.  
  21203.  
  21204.  
  21205.  
  21206.  
  21207.  
  21208.  
  21209.  
  21210.  
  21211.  
  21212.  
  21213.  
  21214.  
  21215.  
  21216.  
  21217.  
  21218.  
  21219.  
  21220.  
  21221.  
  21222.  
  21223.  
  21224.  
  21225.  
  21226.  
  21227.  
  21228.  
  21229.  
  21230.  
  21231.  
  21232.  
  21233.  
  21234.  
  21235.  
  21236.  
  21237.  
  21238.  
  21239.  
  21240.  
  21241.  
  21242.  
  21243.  
  21244.  
  21245.  
  21246.  
  21247.  
  21248.  
  21249.  
  21250.  
  21251.  
  21252.  
  21253.  
  21254.  
  21255.  
  21256.  
  21257.  
  21258.  
  21259.  
  21260.  
  21261.  
  21262.  
  21263.  
  21264.  
  21265.  
  21266.  
  21267.  
  21268.  
  21269.  
  21270.  
  21271.  
  21272.  
  21273.  
  21274.  
  21275.  
  21276.  
  21277.  
  21278.  
  21279.  
  21280.  
  21281.  
  21282.  
  21283.  
  21284.  
  21285.  
  21286.  
  21287.  
  21288.  
  21289.  
  21290.  
  21291. echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  21292. echo "configure:21293: checking whether ${MAKE-make} sets \${MAKE}" >&5
  21293. set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  21294. if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  21295.   echo $ac_n "(cached) $ac_c" 1>&6
  21296. else
  21297.   cat > conftestmake <<EOF
  21298. all:
  21299.     @${SHELL} -c "echo ac_maketemp="\${MAKE}""
  21300. EOF
  21301. # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  21302. eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  21303. if test -n "$ac_maketemp"; then
  21304.   eval ac_cv_prog_make_${ac_make}_set=yes
  21305. else
  21306.   eval ac_cv_prog_make_${ac_make}_set=no
  21307. fi
  21308. rm -f conftestmake
  21309. fi
  21310. if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  21311.   echo "$ac_t""yes" 1>&6
  21312.   SET_MAKE=
  21313. else
  21314.   echo "$ac_t""no" 1>&6
  21315.   SET_MAKE="MAKE=${MAKE-make}"
  21316. fi
  21317.  
  21318.  
  21319. if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
  21320.     mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
  21321. fi
  21322.  
  21323.  
  21324.  
  21325. wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
  21326. wx_cv_if_gnu_make=$IF_GNU_MAKE
  21327. wx_cv_path_ifs=$PATH_IFS
  21328. wx_cv_program_ext=$PROGRAM_EXT
  21329. wx_cv_target_library=$WX_TARGET_LIBRARY
  21330. wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
  21331. wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
  21332. export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
  21333.        wx_cv_path_ifs wx_cv_program_ext \
  21334.        wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
  21335.  
  21336. subdirs="demos samples utils contrib"
  21337.  
  21338.  
  21339. trap '' 1 2 15
  21340. cat > confcache <<\EOF
  21341. # This file is a shell script that caches the results of configure
  21342. # tests run on this system so they can be shared between configure
  21343. # scripts and configure runs.  It is not useful on other systems.
  21344. # If it contains results you don't want to keep, you may remove or edit it.
  21345. #
  21346. # By default, configure uses ./config.cache as the cache file,
  21347. # creating it if it does not exist already.  You can give configure
  21348. # the --cache-file=FILE option to use a different cache file; that is
  21349. # what configure does when it calls configure scripts in
  21350. # subdirectories, so they share the cache.
  21351. # Giving --cache-file=/dev/null disables caching, for debugging configure.
  21352. # config.status only pays attention to the cache file if you give it the
  21353. # --recheck option to rerun configure.
  21354. #
  21355. EOF
  21356. # The following way of writing the cache mishandles newlines in values,
  21357. # but we know of no workaround that is simple, portable, and efficient.
  21358. # So, don't put newlines in cache variables' values.
  21359. # Ultrix sh set writes to stderr and can't be redirected directly,
  21360. # and sets the high bit in the cache file unless we assign to the vars.
  21361. (set) 2>&1 |
  21362.   case `(ac_space=' '; set | grep ac_space) 2>&1` in
  21363.   *ac_space=\ *)
  21364.     # `set' does not quote correctly, so add quotes (double-quote substitution
  21365.     # turns \\\\ into \\, and sed turns \\ into \).
  21366.     sed -n \
  21367.       -e "s/'/'\\\\''/g" \
  21368.       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
  21369.     ;;
  21370.   *)
  21371.     # `set' quotes correctly as required by POSIX, so do not add quotes.
  21372.     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
  21373.     ;;
  21374.   esac >> confcache
  21375. if cmp -s $cache_file confcache; then
  21376.   :
  21377. else
  21378.   if test -w $cache_file; then
  21379.     echo "updating cache $cache_file"
  21380.     cat confcache > $cache_file
  21381.   else
  21382.     echo "not updating unwritable cache $cache_file"
  21383.   fi
  21384. fi
  21385. rm -f confcache
  21386.  
  21387. trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  21388.  
  21389. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  21390. # Let make expand exec_prefix.
  21391. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  21392.  
  21393. # Any assignment to VPATH causes Sun make to only execute
  21394. # the first set of double-colon rules, so remove it if not needed.
  21395. # If there is a colon in the path, we need to keep it.
  21396. if test "x$srcdir" = x.; then
  21397.   ac_vpsub='/^[     ]*VPATH[     ]*=[^:]*$/d'
  21398. fi
  21399.  
  21400. trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
  21401.  
  21402. DEFS=-DHAVE_CONFIG_H
  21403.  
  21404. # Without the "./", some shells look in PATH for config.status.
  21405. : ${CONFIG_STATUS=./config.status}
  21406.  
  21407. echo creating $CONFIG_STATUS
  21408. rm -f $CONFIG_STATUS
  21409. cat > $CONFIG_STATUS <<EOF
  21410. #! /bin/sh
  21411. # Generated automatically by configure.
  21412. # Run this file to recreate the current configuration.
  21413. # This directory was configured as follows,
  21414. EOF
  21415. echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
  21416. cat >> $CONFIG_STATUS <<EOF
  21417. # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  21418. #
  21419. # $0 $ac_configure_args
  21420. #
  21421. # Compiler output produced by configure, useful for debugging
  21422. # configure, is in ./config.log if it exists.
  21423.  
  21424. ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
  21425. for ac_option
  21426. do
  21427.   case "\$ac_option" in
  21428.   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  21429.     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
  21430.     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
  21431.   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
  21432.     echo "$CONFIG_STATUS generated by autoconf version 2.13"
  21433.     exit 0 ;;
  21434.   -help | --help | --hel | --he | --h)
  21435.     echo "\$ac_cs_usage"; exit 0 ;;
  21436.   *) echo "\$ac_cs_usage"; exit 1 ;;
  21437.   esac
  21438. done
  21439.  
  21440. ac_given_srcdir=$srcdir
  21441. ac_given_INSTALL="$INSTALL"
  21442.  
  21443. trap 'rm -fr `echo "
  21444.             wx-config
  21445.             src/make.env
  21446.             src/makeprog.env
  21447.             src/makelib.env
  21448.             Makefile
  21449.            setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
  21450. EOF
  21451. cat >> $CONFIG_STATUS <<EOF
  21452.  
  21453. # Protect against being on the right side of a sed subst in config.status.
  21454. sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
  21455.  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
  21456. $ac_vpsub
  21457. $extrasub
  21458. s,/bin/sh,${CONFIG_SHELL-/bin/sh},g
  21459. s%@SHELL@%$SHELL%g
  21460. s%@CFLAGS@%$CFLAGS%g
  21461. s%@CPPFLAGS@%$CPPFLAGS%g
  21462. s%@CXXFLAGS@%$CXXFLAGS%g
  21463. s%@FFLAGS@%$FFLAGS%g
  21464. s%@DEFS@%$DEFS%g
  21465. s%@LDFLAGS@%$LDFLAGS%g
  21466. s%@LIBS@%$LIBS%g
  21467. s%@exec_prefix@%$exec_prefix%g
  21468. s%@prefix@%$prefix%g
  21469. s%@program_transform_name@%$program_transform_name%g
  21470. s%@bindir@%$bindir%g
  21471. s%@sbindir@%$sbindir%g
  21472. s%@libexecdir@%$libexecdir%g
  21473. s%@datadir@%$datadir%g
  21474. s%@sysconfdir@%$sysconfdir%g
  21475. s%@sharedstatedir@%$sharedstatedir%g
  21476. s%@localstatedir@%$localstatedir%g
  21477. s%@libdir@%$libdir%g
  21478. s%@includedir@%$includedir%g
  21479. s%@oldincludedir@%$oldincludedir%g
  21480. s%@infodir@%$infodir%g
  21481. s%@mandir@%$mandir%g
  21482. s%@PATH_IFS@%$PATH_IFS%g
  21483. s%@EXEEXT@%$EXEEXT%g
  21484. s%@host@%$host%g
  21485. s%@host_alias@%$host_alias%g
  21486. s%@host_cpu@%$host_cpu%g
  21487. s%@host_vendor@%$host_vendor%g
  21488. s%@host_os@%$host_os%g
  21489. s%@target@%$target%g
  21490. s%@target_alias@%$target_alias%g
  21491. s%@target_cpu@%$target_cpu%g
  21492. s%@target_vendor@%$target_vendor%g
  21493. s%@target_os@%$target_os%g
  21494. s%@build@%$build%g
  21495. s%@build_alias@%$build_alias%g
  21496. s%@build_cpu@%$build_cpu%g
  21497. s%@build_vendor@%$build_vendor%g
  21498. s%@build_os@%$build_os%g
  21499. s%@CC@%$CC%g
  21500. s%@CPP@%$CPP%g
  21501. s%@CXX@%$CXX%g
  21502. s%@RANLIB@%$RANLIB%g
  21503. s%@AR@%$AR%g
  21504. s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
  21505. s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
  21506. s%@INSTALL_DATA@%$INSTALL_DATA%g
  21507. s%@STRIP@%$STRIP%g
  21508. s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
  21509. s%@YACC@%$YACC%g
  21510. s%@LEX@%$LEX%g
  21511. s%@LEXLIB@%$LEXLIB%g
  21512. s%@LN_S@%$LN_S%g
  21513. s%@CXXCPP@%$CXXCPP%g
  21514. s%@PKG_CONFIG@%$PKG_CONFIG%g
  21515. s%@GTK_CFLAGS@%$GTK_CFLAGS%g
  21516. s%@GTK_LIBS@%$GTK_LIBS%g
  21517. s%@GTK_CONFIG@%$GTK_CONFIG%g
  21518. s%@PANGOFT2_CFLAGS@%$PANGOFT2_CFLAGS%g
  21519. s%@PANGOFT2_LIBS@%$PANGOFT2_LIBS%g
  21520. s%@X_CFLAGS@%$X_CFLAGS%g
  21521. s%@X_PRE_LIBS@%$X_PRE_LIBS%g
  21522. s%@X_LIBS@%$X_LIBS%g
  21523. s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
  21524. s%@AIX_CXX_LD@%$AIX_CXX_LD%g
  21525. s%@RESCOMP@%$RESCOMP%g
  21526. s%@DEREZ@%$DEREZ%g
  21527. s%@LIBICONV@%$LIBICONV%g
  21528. s%@LEX_STEM@%$LEX_STEM%g
  21529. s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
  21530. s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
  21531. s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
  21532. s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
  21533. s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
  21534. s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
  21535. s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
  21536. s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
  21537. s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
  21538. s%@PROGRAM_EXT@%$PROGRAM_EXT%g
  21539. s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
  21540. s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
  21541. s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
  21542. s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
  21543. s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
  21544. s%@WX_ALL@%$WX_ALL%g
  21545. s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
  21546. s%@SHARED_LD@%$SHARED_LD%g
  21547. s%@PIC_FLAG@%$PIC_FLAG%g
  21548. s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
  21549. s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
  21550. s%@SONAME_FLAGS@%$SONAME_FLAGS%g
  21551. s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
  21552. s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
  21553. s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
  21554. s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
  21555. s%@USE_GUI@%$USE_GUI%g
  21556. s%@AFMINSTALL@%$AFMINSTALL%g
  21557. s%@TOOLKIT@%$TOOLKIT%g
  21558. s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
  21559. s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
  21560. s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
  21561. s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
  21562. s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
  21563. s%@cross_compiling@%$cross_compiling%g
  21564. s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
  21565. s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
  21566. s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
  21567. s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
  21568. s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
  21569. s%@WXCONFIG_RPATH@%$WXCONFIG_RPATH%g
  21570. s%@ALL_OBJECTS@%$ALL_OBJECTS%g
  21571. s%@ALL_HEADERS@%$ALL_HEADERS%g
  21572. s%@ALL_SOURCES@%$ALL_SOURCES%g
  21573. s%@GUIDIST@%$GUIDIST%g
  21574. s%@PORT_FILES@%$PORT_FILES%g
  21575. s%@DISTDIR@%$DISTDIR%g
  21576. s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
  21577. s%@LDFLAGS_GL@%$LDFLAGS_GL%g
  21578. s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
  21579. s%@OPENGL_LIBS@%$OPENGL_LIBS%g
  21580. s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
  21581. s%@EXTRADEFS@%$EXTRADEFS%g
  21582. s%@RESFLAGS@%$RESFLAGS%g
  21583. s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
  21584. s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
  21585. s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
  21586. s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
  21587. s%@LIBWXMACRES@%$LIBWXMACRES%g
  21588. s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
  21589. s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
  21590. s%@DLLTOOL@%$DLLTOOL%g
  21591. s%@AS@%$AS%g
  21592. s%@NM@%$NM%g
  21593. s%@LD@%$LD%g
  21594. s%@MAKEINFO@%$MAKEINFO%g
  21595. s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
  21596. s%@SET_MAKE@%$SET_MAKE%g
  21597. s%@subdirs@%$subdirs%g
  21598.  
  21599. CEOF
  21600. EOF
  21601.  
  21602. cat >> $CONFIG_STATUS <<\EOF
  21603.  
  21604. # Split the substitutions into bite-sized pieces for seds with
  21605. # small command number limits, like on Digital OSF/1 and HP-UX.
  21606. ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
  21607. ac_file=1 # Number of current file.
  21608. ac_beg=1 # First line for current file.
  21609. ac_end=$ac_max_sed_cmds # Line after last line for current file.
  21610. ac_more_lines=:
  21611. ac_sed_cmds=""
  21612. while $ac_more_lines; do
  21613.   if test $ac_beg -gt 1; then
  21614.     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
  21615.   else
  21616.     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
  21617.   fi
  21618.   if test ! -s conftest.s$ac_file; then
  21619.     ac_more_lines=false
  21620.     rm -f conftest.s$ac_file
  21621.   else
  21622.     if test -z "$ac_sed_cmds"; then
  21623.       ac_sed_cmds="sed -f conftest.s$ac_file"
  21624.     else
  21625.       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
  21626.     fi
  21627.     ac_file=`expr $ac_file + 1`
  21628.     ac_beg=$ac_end
  21629.     ac_end=`expr $ac_end + $ac_max_sed_cmds`
  21630.   fi
  21631. done
  21632. if test -z "$ac_sed_cmds"; then
  21633.   ac_sed_cmds=cat
  21634. fi
  21635. EOF
  21636.  
  21637. cat >> $CONFIG_STATUS <<EOF
  21638.  
  21639. CONFIG_FILES=\${CONFIG_FILES-"wx-config
  21640.             src/make.env
  21641.             src/makeprog.env
  21642.             src/makelib.env
  21643.             Makefile
  21644.           "}
  21645. EOF
  21646. cat >> $CONFIG_STATUS <<\EOF
  21647. for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
  21648.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  21649.   case "$ac_file" in
  21650.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  21651.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  21652.   *) ac_file_in="${ac_file}.in" ;;
  21653.   esac
  21654.  
  21655.   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
  21656.  
  21657.   # Remove last slash and all that follows it.  Not all systems have dirname.
  21658.   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  21659.   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  21660.     # The file is in a subdirectory.
  21661.     test ! -d "$ac_dir" && mkdir "$ac_dir"
  21662.     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
  21663.     # A "../" for each directory in $ac_dir_suffix.
  21664.     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
  21665.   else
  21666.     ac_dir_suffix= ac_dots=
  21667.   fi
  21668.  
  21669.   case "$ac_given_srcdir" in
  21670.   .)  srcdir=.
  21671.       if test -z "$ac_dots"; then top_srcdir=.
  21672.       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
  21673.   /* | [A-Za-z]:*)
  21674.     srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
  21675.   *) # Relative path.
  21676.     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
  21677.     top_srcdir="$ac_dots$ac_given_srcdir" ;;
  21678.   esac
  21679.  
  21680.   case "$ac_given_INSTALL" in
  21681.   [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
  21682.   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  21683.   esac
  21684.  
  21685.   echo creating "$ac_file"
  21686.   rm -f "$ac_file"
  21687.   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
  21688.   case "$ac_file" in
  21689.   *Makefile*) ac_comsub="1i\\
  21690. # $configure_input" ;;
  21691.   *) ac_comsub= ;;
  21692.   esac
  21693.  
  21694.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  21695.   sed -e "$ac_comsub
  21696. s%@configure_input@%$configure_input%g
  21697. s%@srcdir@%$srcdir%g
  21698. s%@top_srcdir@%$top_srcdir%g
  21699. s%@INSTALL@%$INSTALL%g
  21700. " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
  21701. fi; done
  21702. rm -f conftest.s*
  21703.  
  21704. # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  21705. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  21706. #
  21707. # ac_d sets the value in "#define NAME VALUE" lines.
  21708. ac_dA='s%^\([     ]*\)#\([     ]*define[     ][     ]*\)'
  21709. ac_dB='\([     ][     ]*\)[^     ]*%\1#\2'
  21710. ac_dC='\3'
  21711. ac_dD='%g'
  21712. # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
  21713. ac_uA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  21714. ac_uB='\([     ]\)%\1#\2define\3'
  21715. ac_uC=' '
  21716. ac_uD='\4%g'
  21717. # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  21718. ac_eA='s%^\([     ]*\)#\([     ]*\)undef\([     ][     ]*\)'
  21719. ac_eB='$%\1#\2define\3'
  21720. ac_eC=' '
  21721. ac_eD='%g'
  21722.  
  21723. if test "${CONFIG_HEADERS+set}" != set; then
  21724. EOF
  21725. cat >> $CONFIG_STATUS <<EOF
  21726.   CONFIG_HEADERS="setup.h:setup.h.in"
  21727. EOF
  21728. cat >> $CONFIG_STATUS <<\EOF
  21729. fi
  21730. for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
  21731.   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  21732.   case "$ac_file" in
  21733.   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
  21734.        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
  21735.   *) ac_file_in="${ac_file}.in" ;;
  21736.   esac
  21737.  
  21738.   echo creating $ac_file
  21739.  
  21740.   rm -f conftest.frag conftest.in conftest.out
  21741.   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
  21742.   cat $ac_file_inputs > conftest.in
  21743.  
  21744. EOF
  21745.  
  21746. # Transform confdefs.h into a sed script conftest.vals that substitutes
  21747. # the proper values into config.h.in to produce config.h.  And first:
  21748. # Protect against being on the right side of a sed subst in config.status.
  21749. # Protect against being in an unquoted here document in config.status.
  21750. rm -f conftest.vals
  21751. cat > conftest.hdr <<\EOF
  21752. s/[\\&%]/\\&/g
  21753. s%[\\$`]%\\&%g
  21754. s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
  21755. s%ac_d%ac_u%gp
  21756. s%ac_u%ac_e%gp
  21757. EOF
  21758. sed -n -f conftest.hdr confdefs.h > conftest.vals
  21759. rm -f conftest.hdr
  21760.  
  21761. # This sed command replaces #undef with comments.  This is necessary, for
  21762. # example, in the case of _POSIX_SOURCE, which is predefined and required
  21763. # on some systems where configure will not decide to define it.
  21764. cat >> conftest.vals <<\EOF
  21765. s%^[     ]*#[     ]*undef[     ][     ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
  21766. EOF
  21767.  
  21768. # Break up conftest.vals because some shells have a limit on
  21769. # the size of here documents, and old seds have small limits too.
  21770.  
  21771. rm -f conftest.tail
  21772. while :
  21773. do
  21774.   ac_lines=`grep -c . conftest.vals`
  21775.   # grep -c gives empty output for an empty file on some AIX systems.
  21776.   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
  21777.   # Write a limited-size here document to conftest.frag.
  21778.   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
  21779.   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
  21780.   echo 'CEOF
  21781.   sed -f conftest.frag conftest.in > conftest.out
  21782.   rm -f conftest.in
  21783.   mv conftest.out conftest.in
  21784. ' >> $CONFIG_STATUS
  21785.   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
  21786.   rm -f conftest.vals
  21787.   mv conftest.tail conftest.vals
  21788. done
  21789. rm -f conftest.vals
  21790.  
  21791. cat >> $CONFIG_STATUS <<\EOF
  21792.   rm -f conftest.frag conftest.h
  21793.   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
  21794.   cat conftest.in >> conftest.h
  21795.   rm -f conftest.in
  21796.   if cmp -s $ac_file conftest.h 2>/dev/null; then
  21797.     echo "$ac_file is unchanged"
  21798.     rm -f conftest.h
  21799.   else
  21800.     # Remove last slash and all that follows it.  Not all systems have dirname.
  21801.       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
  21802.       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
  21803.       # The file is in a subdirectory.
  21804.       test ! -d "$ac_dir" && mkdir "$ac_dir"
  21805.     fi
  21806.     rm -f $ac_file
  21807.     mv conftest.h $ac_file
  21808.   fi
  21809. fi; done
  21810.  
  21811. EOF
  21812. cat >> $CONFIG_STATUS <<EOF
  21813.  
  21814.             TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
  21815.             LN_S="${LN_S}"
  21816.           
  21817.          
  21818. EOF
  21819. cat >> $CONFIG_STATUS <<\EOF
  21820.  
  21821.                                                                                                 if test ! -h wx-config; then
  21822.                 chmod +x wx-config
  21823.                 mv wx-config wx${TOOLCHAIN_NAME}-config
  21824.                 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
  21825.             fi
  21826.  
  21827.             if test ! -d lib; then
  21828.               mkdir lib
  21829.             fi
  21830.             if test ! -d lib/wx; then
  21831.               mkdir lib/wx
  21832.             fi
  21833.             if test ! -d lib/wx/include; then
  21834.               mkdir lib/wx/include
  21835.             fi
  21836.             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
  21837.               mkdir lib/wx/include/${TOOLCHAIN_NAME}
  21838.             fi
  21839.             if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
  21840.               mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
  21841.             fi
  21842.             if test -f setup.h; then
  21843.               mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
  21844.             fi
  21845.           
  21846. exit 0
  21847. EOF
  21848. chmod +x $CONFIG_STATUS
  21849. rm -fr confdefs* $ac_clean_files
  21850. test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
  21851.  
  21852. if test "$no_recursion" != yes; then
  21853.  
  21854.   # Remove --cache-file and --srcdir arguments so they do not pile up.
  21855.   ac_sub_configure_args=
  21856.   ac_prev=
  21857.   for ac_arg in $ac_configure_args; do
  21858.     if test -n "$ac_prev"; then
  21859.       ac_prev=
  21860.       continue
  21861.     fi
  21862.     case "$ac_arg" in
  21863.     -cache-file | --cache-file | --cache-fil | --cache-fi \
  21864.     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  21865.       ac_prev=cache_file ;;
  21866.     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  21867.     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  21868.       ;;
  21869.     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  21870.       ac_prev=srcdir ;;
  21871.     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  21872.       ;;
  21873.     *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
  21874.     esac
  21875.   done
  21876.  
  21877.   for ac_config_dir in demos samples utils contrib; do
  21878.  
  21879.     # Do not complain, so a configure script can configure whichever
  21880.     # parts of a large source tree are present.
  21881.     if test ! -d $srcdir/$ac_config_dir; then
  21882.       continue
  21883.     fi
  21884.  
  21885.     echo configuring in $ac_config_dir
  21886.  
  21887.     case "$srcdir" in
  21888.     .) ;;
  21889.     *)
  21890.       if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
  21891.       else
  21892.         { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
  21893.       fi
  21894.       ;;
  21895.     esac
  21896.  
  21897.     ac_popdir=`pwd`
  21898.     cd $ac_config_dir
  21899.  
  21900.       # A "../" for each directory in /$ac_config_dir.
  21901.       ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
  21902.  
  21903.     case "$srcdir" in
  21904.     .) # No --srcdir option.  We are building in place.
  21905.       ac_sub_srcdir=$srcdir ;;
  21906.     /* | [A-Za-z]:*) # Absolute path.
  21907.       ac_sub_srcdir=$srcdir/$ac_config_dir ;;
  21908.     *) # Relative path.
  21909.       ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
  21910.     esac
  21911.  
  21912.     # Check for guested configure; otherwise get Cygnus style configure.
  21913.     if test -f $ac_sub_srcdir/configure; then
  21914.       ac_sub_configure=$ac_sub_srcdir/configure
  21915.     elif test -f $ac_sub_srcdir/configure.in; then
  21916.       ac_sub_configure=$ac_configure
  21917.     else
  21918.       echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
  21919.       ac_sub_configure=
  21920.     fi
  21921.  
  21922.     # The recursion is here.
  21923.     if test -n "$ac_sub_configure"; then
  21924.  
  21925.       # Make the cache file name correct relative to the subdirectory.
  21926.       case "$cache_file" in
  21927.       /* | [A-Za-z]:*) ac_sub_cache_file=$cache_file ;;
  21928.       *) # Relative path.
  21929.         ac_sub_cache_file="$ac_dots$cache_file" ;;
  21930.       esac
  21931.   case "$ac_given_INSTALL" in
  21932.         [/$]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
  21933.         *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
  21934.         esac
  21935.  
  21936.       echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
  21937.       # The eval makes quoting arguments work.
  21938.       if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
  21939.       then :
  21940.       else
  21941.         { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
  21942.       fi
  21943.     fi
  21944.  
  21945.     cd $ac_popdir
  21946.   done
  21947. fi
  21948.  
  21949.  
  21950.